4a62029b3a8f00e6f2547b6c8c2a72dc33667c8a
[gnulib.git] / ChangeLog
1 2010-09-21  Simon Josefsson  <simon@josefsson.org>
2
3         * tests/test-net_if.c: New file.
4         * modules/net_if-tests: New file.
5
6 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
7
8         pthread: add pthread_spin_destroy
9         * lib/pthread.in.h (pthread_spin_destroy): New function.
10
11 2010-09-19  Bruno Haible  <bruno@clisp.org>
12
13         gnulib-tool: Fix --help output.
14         * gnulib-tool (func_usage): Fix help message.
15         Reported by Reuben Thomas <rrt@sc3d.org>.
16
17 2010-09-18  Jim Meyering  <meyering@redhat.com>
18
19         maint.mk: avoid unexpanded \n in two diagnostics
20         * top/maint.mk (sc_prohibit_always_true_header_tests):
21         Don't use a literal \n in a halt=... assignment.  It would not be
22         expanded, and the two \n bytes would appear in the diagnostic output
23         rather than the desired newline.  Use halt=$$(printf ... instead.
24         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25
26 2010-09-18  Bruno Haible  <bruno@clisp.org>
27
28         netinet_in: Doc tweak.
29         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31
32 2010-09-18  Jim Meyering  <meyering@redhat.com>
33
34         init.sh: correct an outdated comment
35         * tests/init.sh (create_exe_shims_):  s/function/alias/
36
37         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
38         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
39         a file named "*.exe" is removed between the glob expansion and the
40         processing of that oddly named file.
41
42 2010-09-17  Eric Blake  <eblake@redhat.com>
43
44         mirbsd: add some more support
45         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
46         in BSD family.
47         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
48         devices as OpenBSD.
49         * m4/host-os.m4 (mirbsd): Add MirBSD.
50
51         tests: fix unportable assumption on sys/wait.h
52         * tests/test-sys_wait.c (main): Relax test.
53         * tests/test-stdlib.c (main): Likewise.
54
55         init.sh: accomodate directory with no .exes
56         * tests/init.sh: Accomodate directory containing only scripts.
57
58         tests: avoid compiler warning
59         * tests/test-stdlib.c (main): Use the variable.
60
61         fdutimens, fdutimensat: update signature, again
62         * lib/utimens.h (gl_futimens): Delete, and move signature...
63         (fdutimens): ...here.
64         (fdutimensat): Rearrange signature.
65         (lutimensat): Rename variable for clarity.
66         * lib/fdutimensat.c (fdutimensat): Update signature.
67         * lib/utimens.c (fdutimens): Likewise.
68         (gl_futimens): Delete.
69         (utimens, lutimens): Update callers.
70         * lib/futimens.c (futimens): Likewise.
71         * tests/test-fdutimensat.c: Likewise.
72         * tests/test-utimens.c: Likewise.
73         * tests/test-futimens.h: Update comment.
74         * NEWS: Mention this.
75         Suggested by Paul Eggert.
76
77 2010-09-17  Bruno Haible  <bruno@clisp.org>
78
79         Take over the maintenance of some older macros from Autoconf.
80         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
81         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
82         GNU Autoconf.
83         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
84         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
85
86 2010-09-17  Eric Blake  <eblake@redhat.com>
87
88         fdutimensat: drop atflag validation
89         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
90         with valid fd, to close a race scenario where futimens is
91         unsupported and FILE was replaced by a symlink.
92         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
93         accordingly.
94         Suggested by Paul Eggert.
95
96 2010-09-16  Bruno Haible  <bruno@clisp.org>
97
98         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
99         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
100
101 2010-09-16  Bruno Haible  <bruno@clisp.org>
102
103         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
104         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
105         login_tty exists.
106         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
107
108 2010-09-16  Bruno Haible  <bruno@clisp.org>
109
110         login_tty: Make the replacement code work on BSD systems.
111         * lib/login_tty.c: Include <sys/ioctl.h>.
112         (login_tty): Use ioctl TIOCSCTTY when available.
113         * modules/login_tty (Depends-on): Add sys_ioctl.
114         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
115
116 2010-09-16  Bruno Haible  <bruno@clisp.org>
117
118         login_tty: Stricter unit test.
119         * modules/login_tty-tests (Depends-on): Add tcgetsid.
120         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
121         and tcgetsid() after login_tty.
122         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
123
124 2010-09-16  Bruno Haible  <bruno@clisp.org>
125
126         New module 'tcgetsid'.
127         * lib/tcgetsid.c: New file.
128         * m4/tcgetsid.m4: New file.
129         * modules/tcgetsid: New file.
130         * modules/termios (Depends-on): Add c++defs, warn-on-use.
131         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
132         GNULIB_TCGETSID, HAVE_TCGETSID.
133         * lib/termios.in.h: Include <sys/types.h>.
134         (tcgetsid): New declaration.
135         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
136         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
137         * doc/posix-functions/tcgetsid.texi: Mention the new module.
138         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
139
140 2010-09-16  Bruno Haible  <bruno@clisp.org>
141
142         Tests for module 'termios'.
143         * modules/termios-c++-tests: New file.
144         * modules/termios-tests: New file.
145         * tests/test-termios-c++.cc: New file.
146         * tests/test-termios.c: New file.
147
148         New module 'termios'.
149         * modules/termios: New file.
150         * lib/termios.in.h: New file.
151         * m4/termios_h.m4: New file.
152         * doc/posix-headers/termios.texi: Mention the new module.
153
154 2010-09-16  Eric Blake  <eblake@redhat.com>
155
156         fdutimensat: add an atflag parameter
157         * lib/fdutimensat.c (fdutimensat): Add new parameter.
158         * lib/utimens.h (fdutimensat): Update prototype.
159         * tests/test-fdutimensat.c: Adjust test to match.
160         * NEWS: Document the change.
161         Suggested by Paul Eggert.
162
163 2010-09-16  Bruno Haible  <bruno@clisp.org>
164
165         Fix typos in comments.
166         * lib/striconveh.h: Fix typo in comment.
167         * lib/login_tty.c (login_tty): Likewise.
168
169 2010-09-15  Bruno Haible  <bruno@clisp.org>
170
171         stdlib: clarify MirBSD WEXITSTATUS bug
172         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
173         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
174
175 2010-09-15  Eric Blake  <eblake@redhat.com>
176
177         stdlib: work around MirBSD WEXITSTATUS bug
178         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
179         * modules/stdlib (Depends-on): Add sys_wait.
180         * tests/test-sys_wait.c (main): Enhance test.
181         * tests/test-stdlib.c (main): Likewise.
182         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
183
184         docs: mention MacOS issue with WEXITSTATUS(constant)
185         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
186         issue.
187         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
188
189         strnlen: add tests
190         * modules/strnlen-tests: New file.
191         * tests/test-strnlen.c: Likewise.
192
193 2010-09-14  Bruno Haible  <bruno@clisp.org>
194
195         unistr/base: Avoid link errors when module 'libunistring' is also used.
196         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
197         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
198         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
199         Declare also when HAVE_LIBUNISTRING is set.
200         Reported by Pádraig Brady <P@draigbrady.com>.
201
202 2010-09-14  Eric Blake  <eblake@redhat.com>
203
204         test-rawmemchr: make more robust
205         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
206         (Depends-on, configure.ac): Add needed prerequisites to use it.
207         * modules/memchr-tests (Files, Depends-on, configure.ac):
208         Likewise, to avoid implicit reliance on memchr module prereqs.
209         * tests/test-memchr.c (main): Ensure proper masking.
210         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
211         reads.
212
213         memchr: detect glibc Alpha bug
214         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
215         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
216         Alpha.
217         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
218         * tests/test-memchr.c (main): Enhance test.
219         Reported by Nelson H. F. Beebe.
220
221 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
222
223         fts, getcwd, glob: audit for dirfd returning -1
224         * lib/fts.c (opendir): Remove #define; no longer used.
225         (opendirat): New arg PDIR_FD.  All callers changed.
226         (fts_build, _opendir2): Use new opendirat to avoid the need for
227         dirfd, or for checking whether dirfd returns a negative value.
228         Don't use opendir; always use openat followed by fdopendir.
229         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
230         it.
231         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
232         returns -1 here.
233         * modules/fts (Depends-on): Remove dirfd.
234         * modules/getcwd (Depends-on): Likewise.
235
236 2010-09-13  Eric Blake  <eblake@redhat.com>
237
238         float: fix broken MirBSD header
239         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
240         * doc/posix-headers/float.texi (float.h): Document it.
241
242 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
243
244         fts: use O_NOFOLLOW to avoid race condition when opening a directory
245         * lib/fts.c (opendirat): New arg extra_flags.
246         (__opendir2): Use it to avoid following symlinks when opening
247         a directory, if symlinks are not supposed to be followed.  See
248         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
249
250         fdopendir: preserve argument fd before returning
251         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
252         (fdopendir_with_dup, fd_clone_opendir): New static functions.
253         (fdopendir): Use them, arranging for FD to be open to the same
254         directory that it was when it started.  (It might be temporarily
255         closed while fdopendir is running, so this not thread- or
256         signal-safe.)  Be careful to do the right thing even when file
257         descriptors are scarce and dup fails with errno == EMFILE.  See
258         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
259
260 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
261
262         regex: Pass the system regex if its only problem is 32-bit regoff_t.
263         * NEWS: Document change.
264         * m4/regex.m4: Disable test for regoff_t size.
265
266 2010-09-13  Jim Meyering  <meyering@redhat.com>
267
268         fts: don't operate on an invalid file descriptor after failed dup
269         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
270         negative file descriptor.
271
272 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
273
274         savedir: add streamsavedir, deprecate fdsavedir
275         * NEWS: Mention deprecation of fdsavedir.
276         * lib/savedir.c (streamsavedir): New extern function, whose name
277         ends in "savedir" to be consistent with the others.  This differs
278         from savedirstream in that it doesn't close its argument.  The
279         next version of GNU tar will use this instead of fdsavedir, to
280         avoid some race conditions and conserve file descriptors.
281         (savedirstream): Reimplement as a wrapper around streamsavedir.
282         (fdsavedir): Add a comment deprecating this function.  As far as
283         I know, only GNU tar used it, and GNU tar doesn't need it any more.
284         * lib/savedir.h (streamsavedir): New decl.
285         (fdsavedir): Add a comment deprecating this.
286
287 2010-09-10  Bruno Haible  <bruno@clisp.org>
288
289         langinfo: Fix last commit.
290         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
291         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
292         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
293
294 2010-09-10  Bruno Haible  <bruno@clisp.org>
295
296         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
297         * lib/progreloc.c (O_EXEC): Define fallback.
298
299 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
300
301         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
302         * NEWS: Document recent changes to fcntl-h.
303         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
304         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
305         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
306         Similarly for O_SEARCH; this last was already true, but not documented.
307         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
308         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
309         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
310         Likewise.
311         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
312         is zero, not whether it is defined.
313         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
314         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
315         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
316
317 2010-09-10  Bruno Haible  <bruno@clisp.org>
318
319         langinfo, nl_langinfo: Fix for IRIX 5.3.
320         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
321         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
322         HAVE_LANGINFO_YESEXPR.
323         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
324         HAVE_LANGINFO_YESEXPR.
325         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
326         HAVE_LANGINFO_T_FMT_AMPM is 0.
327         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
328         HAVE_LANGINFO_YESEXPR is 0.
329         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
330         NOEXPR.
331         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
332         * doc/posix-functions/nl_langinfo.texi: Likewise.
333         Reported by Eric Blake.
334
335 2010-09-10  Bruno Haible  <bruno@clisp.org>
336
337         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
338         * doc/glibc-functions/login_tty.texi: Mention the include file problem
339         on FreeBSD 8.0 and OpenBSD 4.6.
340         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
341         * m4/pty_h.m4 (gl_PTY_H): Likewise.
342         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
343         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
344         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
345         ac_includes_default.
346         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
347
348 2010-09-09  Eric Blake  <eblake@redhat.com>
349
350         strsignal: work around NetBSD bug
351         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
352         * lib/string.in.h (includes): Likewise.
353         * doc/posix-functions/strsignal.texi (strsignal): Document the
354         bug.
355         Reported by Nelson H. F. Beebe.
356
357         gnulib-tool: work with NetBSD /bin/sh
358         * gnulib-tool (func_cache_var, func_cache_lookup_module)
359         (func_get_description, func_get_comment, func_get_status)
360         (func_get_notice, func_get_applicability, func_get_filelist)
361         (func_get_dependencies, func_get_autoconf_early_snippet)
362         (func_get_autoconf_snippet, func_get_automake_snippet)
363         (func_get_include_directive, func_get_link_directive)
364         (func_get_license, func_get_maintainer, func_import): Avoid
365         shell syntax errors from parsing syntax extensions.
366
367 2010-09-09  Bruno Haible  <bruno@clisp.org>
368
369         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
370         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
371         a reliable way to determine whether the 'alias' command works.
372
373 2010-09-08  Jim Meyering  <meyering@redhat.com>
374
375         init.sh: penalize a set-x-impaired shell; don't disqualify it
376         * tests/init.sh: Too many shells corrupt application stderr when
377         you set -x, so we can't afford to disqualify them, since at least
378         on Irix-6.5, that would disqualify all bourne shells.
379         Instead, use a two-pass approach.
380         On the first pass, try to find a shell that meets the stricter
381         condition that set -x does not corrupt stderr.
382         If no shell meets the stricter condition, retest each candidate
383         shell, but without that extra condition.  Finally, when
384         VERBOSE=yes is requested and set -x might cause trouble, simply
385         issue a warning and refrain from enabling debug output.
386
387 2010-09-08  Eric Blake  <eblake@redhat.com>
388
389         unsetenv: fix OpenBSD bug
390         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
391         * doc/posix-functions/unsetenv.texi (unsetenv): Update
392         documentation.
393         Reported by Jim Meyering.
394
395         strtod: work around IRIX 6.5 bug
396         * lib/strtod.c (strtod): Reparse number on shorter string if
397         exponent parse was invalid.
398         * tests/test-strtod.c (main): Add check for "0x1p 2".
399         Reported by Tom G. Christensen.
400
401         getopt: optimize previous patch
402         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
403         empty variable.  Speed up awk script.
404         Reported by Paolo Bonzini.
405
406 2010-09-08  Jim Meyering  <meyering@redhat.com>
407
408         test.sh: disqualify shells for which set -x corrupts stderr
409         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
410         and OpenBSD 4.7.  They make it so with "set -x", environment settings
411         appear in stderr output.  For example, this command:
412             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
413         prints "P=1" on those two systems:
414
415 2010-09-08  Bruno Haible  <bruno@clisp.org>
416
417         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
418         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
419         commands, because some shells ignore redirections when there is an
420         error in the command lookup.
421         Reported by Eric Blake.
422
423 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
424
425         * lib/regex.h: Fix a mention of `regex_compile' (should be
426         `re_compile_pattern').
427         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
428         (re_set_registers): Correct name of parameter in comment.
429
430         * doc/regex.texi: Add documentation for missing syntax flags.
431         Remove commented-out documentation of defunct syntax option
432         RE_NO_EMPTY_ALTS.
433         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
434         Add documentation of re_set_registers.
435         Document trick to re-use a pattern buffer by setting fastmap manually.
436         Update documentation of struct re_pattern_buffer per public members.
437         Uncomment documentation of equivalence class operators and
438         collating symbol operators, since they are now implemented,
439         Explain leftmost-longest matching in relation to alternatives.
440         Tidy documentation of substring matching.
441         Remove POSIX documentation, which is done better in
442         glibc, and refer the reader there. Keep BSD API documentation, as
443         that is not readily available elsewhere.
444
445 2010-09-07  Eric Blake  <eblake@redhat.com>
446
447         getopt: handle POSIXLY_CORRECT set but not exported
448         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
449         export state of POSIXLY_CORRECT, due to bash set -o posix.
450         Reported by Dustin J. Mitchell.
451
452 2010-09-05  Bruno Haible  <bruno@clisp.org>
453
454         gnulib-tool: Highlight the changed options.
455         * gnulib-tool (func_usage): Display the --import, --add-import,
456         --remove-import explanations in bold font.
457
458 2010-09-06  Karl Berry  <karl@gnu.org>
459
460         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
461
462 2010-09-05  Bruno Haible  <bruno@clisp.org>
463
464         uniwidth/width: Update comment.
465         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
466         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
467
468 2010-09-05  Bruno Haible  <bruno@clisp.org>
469
470         isinf, isnan: Relax license.
471         * modules/isinf (License): Change from GPL to LGPL, with consent from
472         Ben Pfaff.
473         * modules/isnan (License): Likewise.
474         Requested by Ludovic Courtès.
475
476 2010-09-04  Bruno Haible  <bruno@clisp.org>
477
478         gnulib-tool: Help migration from --import to --add-import or --update.
479         * gnulib-tool: Emit a verbose error message when --import is used
480         without any module name.
481
482 2010-09-04  Bruno Haible  <bruno@clisp.org>
483
484         Update doc about gnulib-tool.
485         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
486         'gnulib-tool --update' in more detail.
487         Reported by Eric Blake.
488
489 2010-09-04  Bruno Haible  <bruno@clisp.org>
490
491         gnulib-tool: Change --import. New options --add/remove-import.
492         * gnulib-tool: New options --add-import, --remove-import.
493         (func_usage): Document them.
494         (have_associative): Define always.
495         (func_import): In import mode, don't merge the specified settings with
496         the cached settings. Implement remove-import mode.
497         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
498         Explain when to use them versus --import.
499         (Simple update): Use --add-import instead of --import.
500         * NEWS: Mention the change.
501
502 2010-09-04  Bruno Haible  <bruno@clisp.org>
503
504         * doc/gnulib-tool.texi (Initial import): Update paragraph about
505         separate gnulib.mk.
506
507 2010-09-04  Bruno Haible  <bruno@clisp.org>
508
509         gnulib-tool: Don't talk about CVS any more.
510         * gnulib-tool (func_usage, func_import): Write "version control"
511         instead of CVS.
512
513 2010-09-04  Jim Meyering  <meyering@redhat.com>
514
515         maint.mk: avoid obscure sc_copyright_check failure in coreutils
516         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
517         false positives (whose names may be ill-chosen) when searching
518         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
519         would cause a false-positive.
520
521         avoid coreutils "make distcheck" failure
522         Coreutils tests with an absolute build directory name that contains
523         a space.  Not quoting this directory name caused a failure.
524         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
525         * tests/test-vc-list-files-cvs.sh: Likewise.
526
527 2010-09-04  Bruno Haible  <bruno@clisp.org>
528
529         gnulib-tool: Avoid error when run in a package without Makefile.am.
530         * gnulib-tool: When collecting the m4dirs in a package that does not
531         have a Makefile.am, eliminate those directories that contain no
532         gnulib-cache.m4. Fix expression that counts these directories.
533
534 2010-09-04  Bruno Haible  <bruno@clisp.org>
535
536         update-copyright test: Improve output when perl is missing or too old.
537         * tests/test-update-copyright.sh: Move test of Perl version down after
538         the test whether Perl exists. Provide an explanation relating Perl's
539         error message to Automake's SKIP: message.
540
541 2010-09-04  Bruno Haible  <bruno@clisp.org>
542
543         Don't augment PATH in TESTS_ENVIRONMENT.
544         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
545         set abs_aux_dir instead of augmenting PATH.
546         * modules/vc-list-files-tests (Makefile.am): Likewise.
547         * tests/test-update-copyright.sh: Augment PATH here.
548         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
549         path_prepend_.
550         * tests/test-vc-list-files-git.sh: Likewise.
551
552 2010-09-04  Jim Meyering  <meyering@redhat.com>
553
554         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
555         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
556
557 2010-09-04  Bruno Haible  <bruno@clisp.org>
558
559         strdup: Fix compilation error in C++ mode.
560         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
561         the macro.
562
563 2010-09-04  Bruno Haible  <bruno@clisp.org>
564
565         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
566         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
567         macro into a function.
568         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
569
570 2010-09-04  Bruno Haible  <bruno@clisp.org>
571
572         Set PATH_SEPARATOR the same way autoconf does.
573         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
574         the value of PATH_SEPARATOR the same way autoconf-generated configure
575         scripts do.
576         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
577         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
578
579 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
580
581         Set PATH_SEPARATOR the same way autoconf does.
582         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
583         the same way autoconf-generated configure scripts do.
584         * posix-modules: Likewise.
585
586 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
587
588         hash: fix safe_hasher const typo
589         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
590         const; otherwise, there is a type error later.
591
592 2010-09-02  Jim Meyering  <meyering@redhat.com>
593
594         test-update-copyright.sh: require perl 5.8.0
595         * tests/test-update-copyright.sh: Require 5.8.0,
596         which Tom G. Christensen has confirmed is adequate,
597         while 5.6.1 is not.
598
599 2010-09-02  Eric Blake  <eblake@redhat.com>
600
601         tests: init.sh improvements for re-exec'ing with zsh
602         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
603         -vx through shell re-exec.
604         Reported by Tom G. Christensen.
605
606         wctype: fix typo in previous commit
607         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
608         Reported by Ludovic Courtès.
609
610 2010-09-02  Jim Meyering  <meyering@redhat.com>
611
612         test-update-copyright.sh: skip test if Perl is too old
613         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
614         Reported by Tom G. Christensen.
615
616 2010-09-02  Bruno Haible  <bruno@clisp.org>
617
618         wctype: Avoid compilation error on IRIX 6.5.30.
619         * lib/wctype.in.h (iswblank): Declare with a replacement if
620         REPLACE_ISWBLANK is set.
621         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
622         declared. Set REPLACE_ISWBLANK.
623         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
624         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
625         * doc/posix-headers/wctype.texi: Likewise.
626         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
627
628 2010-09-01  Bruno Haible  <bruno@clisp.org>
629
630         New module 'socketlib'.
631         * modules/socketlib: New file.
632         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
633         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
634         * modules/sockets (Depends-on): Add socketlib.
635         Suggested by Sam Steingold <sds@gnu.org>.
636
637 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
638
639         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
640
641         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
642         when one needs search access to a directory but not read access.
643         On systems where it is available, it works in some cases where
644         O_RDONLY does not, namely on directories that are searchable but
645         not readable, and which need only to be searchable.  If O_SEARCH
646         is not available, fall back to the traditional method of using
647         O_RDONLY.
648
649         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
650         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
651         when opening a directory that needs only to be searchable.
652         * lib/chdir-safer.c (chdir_no_follow): Likewise.
653         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
654         * lib/openat-proc.c (openat_proc_name): Likewise.
655         * lib/openat.c (openat_needs_fchdir): Likewise.
656         * lib/save-cwd.c (save_cwd): Likewise.
657         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
658
659 2010-08-28  Bruno Haible  <bruno@clisp.org>
660
661         New module 'host-cpu-c-abi'.
662         * modules/host-cpu-c-abi: New file.
663         * m4/host-cpu-c-abi.m4: New file, based on part of
664         clisp/src/m4/general.m4.
665         Requested by Sam Steingold <sds@gnu.org>.
666
667 2010-08-31  Eric Blake  <eblake@redhat.com>
668         and Jim Meyering  <meyering@redhat.com>
669
670         hash: factor, and guard against misbehaving hasher function
671         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
672         of table->hasher's return value.  Also protect against a hash value
673         so large that adding it to table->bucket results in a NULL pointer.
674         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
675         Use it in place of open-coded check-and-abort.
676
677 2010-08-30  Bruno Haible  <bruno@clisp.org>
678
679         hash: silence spurious clang warning
680         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
681         Reported by Eric Blake.
682
683 2010-08-30  Eric Blake  <eblake@redhat.com>
684
685         strstr, memmem, strcasestr: avoid leaked shell message
686         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
687         FreeBSD.
688         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
689         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
690
691         tests: silence clang warning
692         * tests/test-malloca.c (do_allocation): Avoid dead store.
693
694 2010-08-29  Bruno Haible  <bruno@clisp.org>
695
696         gettext: Fix recent mistake.
697         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
698
699 2010-08-29  Bruno Haible  <bruno@clisp.org>
700
701         selinux-h: Offer a --without-selinux option.
702         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
703         --without-selinux was specified, skip all tests and define
704         HAVE_SELINUX_SELINUX_H to 0.
705         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
706         set LIB_SELINUX to empty.
707         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
708         gl_LIBSELINUX. If --without-selinux was specified, replace
709         selinux/context.h.
710         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
711
712 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
713             Bruno Haible  <bruno@clisp.org>
714
715         Make the module 'realloc-gnu' work again on AIX and OSF/1.
716         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
717         of HAVE_REALLOC.
718         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
719         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
720         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
721         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
722
723 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
724             Bruno Haible  <bruno@clisp.org>
725
726         Make the module 'calloc-gnu' work again on AIX and OSF/1.
727         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
728         HAVE_CALLOC.
729         * lib/xmalloc.c: Update accordingly.
730         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
731         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
732         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
733
734 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
735             Bruno Haible  <bruno@clisp.org>
736
737         Make the module 'malloc-gnu' work again on AIX and OSF/1.
738         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
739         HAVE_MALLOC.
740         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
741         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
742         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
743
744 2010-08-29  Bruno Haible  <bruno@clisp.org>
745
746         Update modules list.
747         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
748         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
749         (String handling <string.h>): Add astrxfrm.
750         (File system functions): Add readlinkat.
751
752 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
753
754         Tests for module 'realloc-gnu'.
755         * modules/realloc-gnu-tests: New file.
756         * tests/test-realloc-gnu.c: New file.
757
758         Tests for module 'calloc-gnu'.
759         * modules/calloc-gnu-tests: New file.
760         * tests/test-calloc-gnu.c: New file.
761
762         Tests for module 'malloc-gnu'.
763         * modules/malloc-gnu-tests: New file.
764         * tests/test-malloc-gnu.c: New file.
765
766 2010-08-28  Bruno Haible  <bruno@clisp.org>
767
768         Rename module 'realloc' -> 'realloc-gnu'.
769         * modules/realloc-gnu: New file, copied from modules/realloc.
770         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
771         obsolete.
772         * modules/mgetgroups (Depends-on): Update.
773         * doc/posix-functions/realloc.texi: Update.
774         * NEWS: Mention the change.
775
776         Rename module 'calloc' -> 'calloc-gnu'.
777         * modules/calloc-gnu: New file, copied from modules/calloc.
778         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
779         obsolete.
780         * doc/posix-functions/calloc.texi: Update.
781         * NEWS: Mention the change.
782
783         Rename module 'malloc' -> 'malloc-gnu'.
784         * modules/malloc-gnu: New file, copied from modules/malloc.
785         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
786         obsolete.
787         * modules/argp (Depends-on): Update.
788         * modules/regex (Depends-on): Update.
789         * doc/posix-functions/malloc.texi: Update.
790         * NEWS: Mention the change.
791
792 2010-08-28  Eric Blake  <eblake@redhat.com>
793
794         pread, pwrite: add missing dependency
795         * modules/pread (Depends-on): Add extensions.
796         * modules/pwrite (Depends-on): Likewise.
797
798 2010-08-28  Bruno Haible  <bruno@clisp.org>
799
800         unistr/u*-strchr: Fix tests dependencies.
801         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
802         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
803         Reported by Ian Beckwith <ianb@erislabs.net>.
804
805 2010-08-28  Bruno Haible  <bruno@clisp.org>
806
807         read-file: Don't occupy too much unused memory.
808         * lib/read-file.c (fread_file): Shrink the buffer at the end.
809
810 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
811             Eric Blake  <eblake@redhat.com>
812             Bruno Haible  <bruno@clisp.org>
813
814         read-file: Avoid memory reallocations with regular files.
815         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
816         (fread_file): With regular files, use the remaining length as the
817         initial buffer size.  Check against overflow.
818         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
819         sys_stat.
820
821 2010-08-28  Bruno Haible  <bruno@clisp.org>
822
823         ftello: Relax license.
824         * modules/ftello (License): Relax to LGPLv2+.
825         Reported by Eric Blake.
826
827 2010-08-28  Bruno Haible  <bruno@clisp.org>
828
829         Avoid relocwrapper link errors due to gnulib replacement functions.
830         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
831         function.
832         Reported by Ben Pfaff <blp@cs.stanford.edu>.
833
834 2010-08-28  Bruno Haible  <bruno@clisp.org>
835
836         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
837         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
838         defined.
839         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
840         Suggested by Eric Blake.
841
842 2010-08-28  Bruno Haible  <bruno@clisp.org>
843
844         sys_socket, netdb: Ensure socklen_t gets defined.
845         * modules/sys_socket (Depends-on): Add socklen.
846         * modules/netdb (Depends-on): Likewise.
847         * modules/getaddrinfo (Depends-on): Remove socklen.
848         * modules/getsockopt (Depends-on): Likewise.
849         * modules/setsockopt (Depends-on): Likewise.
850         * tests/test-sys_socket.c: Check that socklen_t is defined.
851         * tests/test-netdb.c: Likewise.
852         * m4/socklen.m4: Update comments.
853         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
854
855 2010-08-27  Eric Blake  <eblake@redhat.com>
856
857         login_tty: add missing dependency
858         * modules/login_tty (Depends-on): Add pty.
859
860 2010-08-26  Eric Blake  <eblake@redhat.com>
861
862         lib-symbol-versions: fix m4 quoting
863         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
864         format for AC_LINK_IFELSE.
865
866         glob: fix compile test
867         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
868
869         btowc: fix missing file
870         * modules/btowc (Files): Also ship locale-fr.m4.
871
872         lseek: fix link test
873         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
874         AC_LINK_IFELSE.
875
876         include_next: silence autoconf 2.68 warning
877         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
878         AC_COMPILE_IFELSE as special.
879         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
880         autoconf < 2.68.
881
882         acl: fix compilation test
883         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
884         AC_COMPILE_IFELSE.
885
886 2010-08-26  Bruno Haible  <bruno@clisp.org>
887
888         Modernize AC_TRY_RUN invocations.
889         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
890         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
891         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
892         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
893         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
894         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
895         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
896         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
897         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
898         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
899         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
900         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
901         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
902         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
903         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
904         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
905         gl_MBRLEN_NUL_RETVAL): Likewise.
906         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
907         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
908         Likewise.
909         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
910         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
911         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
912         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
913         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
914         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
915         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
916         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
917         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
918         Likewise.
919         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
920         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
921         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
922         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
923         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
924         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
925         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
926         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
927         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
928         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
929
930 2010-08-26  Bruno Haible  <bruno@clisp.org>
931
932         Modernize AC_TRY_LINK invocations.
933         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
934         AC_TRY_LINK.
935         * m4/argp.m4 (gl_ARGP): Likewise.
936         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
937         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
938         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
939         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
940         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
941         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
942         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
943         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
944         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
945         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
946         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
947         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
948         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
949         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
950         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
951         * m4/hostent.m4 (gl_HOSTENT): Likewise.
952         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
953         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
954         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
955         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
956         Likewise.
957         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
958         Likewise.
959         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
960         Likewise.
961         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
962         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
963         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
964         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
965         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
966         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
967         * m4/servent.m4 (gl_SERVENT): Likewise.
968         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
969         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
970         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
971         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
972         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
973         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
974         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
975         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
976         * modules/tsearch-tests (configure.ac): Likewise.
977
978 2010-08-26  Bruno Haible  <bruno@clisp.org>
979
980         Modernize AC_TRY_COMPILE invocations.
981         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
982         AC_TRY_COMPILE.
983         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
984         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
985         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
986         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
987         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
988         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
989         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
990         * m4/lock.m4 (gl_LOCK): Likewise.
991         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
992         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
993         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
994         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
995         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
996         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
997         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
998         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
999         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
1000         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
1001         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
1002         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1003         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
1004         extraneous semicolon.
1005
1006 2010-08-26  Jim Meyering  <meyering@redhat.com>
1007
1008         stat-time: relax license LGPL
1009         * modules/stat-time (License): Change from GPL to LGPL,
1010         with consent from all contributors, for use in libguile.
1011         Requested by Ludovic Courtès.
1012
1013 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
1014
1015         poll: return immediately on POLLHUP.
1016         * lib/poll.c (poll): Always set timeout before wait_timeout is
1017         computed.
1018
1019 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1020
1021         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
1022         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
1023         rmdir ("dir/.//"), unlinkat.
1024
1025 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1026
1027         stdbool: avoid spurious failure with modern xlc
1028         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1029
1030 2010-08-24  Bruno Haible  <bruno@clisp.org>
1031
1032         getloadavg: simplify code
1033         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
1034         gl_have_func. Update comments.
1035
1036 2010-08-24  Eric Blake  <eblake@redhat.com>
1037
1038         getloadavg: don't define SVR4 on cygwin
1039         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
1040         only define SVR4 when -lkvm is required.
1041         Reported by Yaakov Selkowitz.
1042
1043 2010-08-24  Bruno Haible  <bruno@clisp.org>
1044
1045         priv-set: fix comment
1046         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
1047
1048 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1049
1050         priv-set: fix comments
1051         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
1052         to match code, as suggested by David Bartley in:
1053         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
1054
1055 2010-08-23  Eric Blake  <eblake@redhat.com>
1056
1057         stdbool: avoid rejecting clang
1058         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1059         * tests/test-stdbool.c: Enable more tests if using the system
1060         <stdbool.h> instead of the gnulib replacement.
1061         (main): Move xlc bug test to a runtime test for all compilers.
1062         Reported by Anders Kaseorg.
1063
1064         argz: fix shell quoting issue
1065         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
1066         Reported by Charles Wilson.
1067
1068 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
1069             Erik Faye-Lund <kusmabite@gmail.com>
1070
1071         poll, select: handle ERROR_BROKEN_PIPE.
1072         * lib/poll.c (win32_compute_revents): Return POLLHUP when
1073         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1074         * lib/select.c (win32_compute_revents): Do not mark a pipe
1075         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1076
1077 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
1078
1079         fts: allow compilation with C++
1080         * lib/fts_.h: Specify extern "C" linkage with C++.
1081
1082 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1083
1084         Fix gnulib-tool sed script de-commentation for AIX sed.
1085         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
1086         sed.
1087
1088 2010-08-17  Eric Blake  <eblake@redhat.com>
1089
1090         test-stddef: test for (some) offsetof bugs
1091         * tests/test-stddef.c: Enhance test to ensure correct type of
1092         offsetof.
1093         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
1094         that we are not fixing at this time.
1095
1096 2010-08-15  Bruno Haible  <bruno@clisp.org>
1097
1098         stpncpy: Allow stpncpy to be defined as a macro.
1099         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
1100         if it's already correctly declared.
1101         * lib/string.in.h (stpncpy): Undefine before redefining.
1102         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
1103
1104 2010-08-14  Bruno Haible  <bruno@clisp.org>
1105
1106         Rename module 'memxfrm' to 'amemxfrm'.
1107         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
1108         (amemxfrm): Renamed from memxfrm.
1109         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
1110         (amemxfrm): Renamed from memxfrm.
1111         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
1112         * NEWS: Mention the change.
1113         * MODULES.html.sh (String handling <string.h>): Update.
1114         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
1115         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
1116         * lib/unicase/u16-casexfrm.c: Likewise.
1117         * lib/unicase/u32-casexfrm.c: Likewise.
1118         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
1119         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
1120         * lib/uninorm/u16-normxfrm.c: Likewise.
1121         * lib/uninorm/u32-normxfrm.c: Likewise.
1122         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
1123         memxfrm.
1124         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
1125         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
1126         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
1127         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
1128         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
1129         Suggested by Paul Eggert.
1130
1131 2010-08-14  Bruno Haible  <bruno@clisp.org>
1132
1133         Tests for module 'astrxfrm'.
1134         * modules/astrxfrm-tests: New file.
1135         * tests/test-astrxfrm.c: New file.
1136
1137         New module 'astrxfrm'.
1138         * lib/astrxfrm.h: New file.
1139         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
1140         * modules/astrxfrm: New file.
1141
1142 2010-08-14  Reuben Thomas <rrt@sc3d.org>
1143
1144         regex: Tweak doc.
1145         * doc/regex.texi (Overview): Don't mention regex.c.
1146         (GNU Regular Expression Compiling): Likewise.
1147         (Match-end-of-line Operator): Mention 'not_eol'.
1148
1149 2010-08-14  Brian Gough  <bjg@gnu.org>
1150             Bruno Haible  <bruno@clisp.org>
1151
1152         git-merge-changelog: add doc relating to use with bzr and hg.
1153         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
1154
1155 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
1156
1157         pthread: fix pthread.h creation for srcdir != builddir
1158         * modules/pthread (Makefile.am): Fix the rule to work also in a
1159         non-srcdir build.
1160
1161 2010-08-13  Karl Berry  <karl@gnu.org>
1162
1163         * doc/regex.texi (Predefined Syntaxes): @smallexample.
1164         * doc/posix-*/*: force line break before @url of POSIX
1165         specifications.
1166         Suggested by Werner Lemberg.
1167
1168 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1169
1170         strtod: fix const diagnostic
1171         * lib/strtod.c (strtod): Don't assign const char * to char *,
1172         as this elicits a warning from GCC when warnings are enabled.
1173
1174 2010-08-10  Pádraig Brady <P@draigbrady.com>
1175         and Eric Blake  <eblake@redhat.com>
1176
1177         copy-acl: ignore ENOTSUP on HP-UX
1178         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
1179         so that it is available for HP-UX.
1180         * lib/copy-acl.c (qcopy_acl): Use it.
1181         Reported by Patrick M. Callahan.
1182
1183 2010-08-10  Eric Blake  <eblake@redhat.com>
1184
1185         open, chown: relax license
1186         * modules/open (License): Change to LGPLv2+, with consent by all
1187         authors, for use in augeas.
1188         * modules/chown (License): Likewise.
1189         * modules/lchown (Likewise): Likewise.
1190         Requested by Adam Stokes.
1191
1192 2010-08-09  Karl Berry  <karl@gnu.org>
1193
1194         * build-aux/ar-lib: new file, import from Automake.
1195         * config/srclist.txt: autocheck for updates.
1196
1197 2010-08-09  Eric Blake  <eblake@redhat.com>
1198
1199         readlinkat: adjust client modules
1200         * modules/areadlinkat (Depends-on): Use readlinkat, not
1201         symlinkat.
1202         * modules/areadlinkat-with-size (Depends-on): Likewise.
1203
1204         mknod: be more vocal about danger of running tests as root
1205         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
1206         root, since that is just asking for problems.
1207         Suggested by Bruno Haible, based on a report by Rainer Tammer.
1208
1209         readlinkat: split into its own module
1210         * modules/symlinkat: Split readlinkat...
1211         * modules/readlinkat: ...into separate module.
1212         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
1213         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
1214         * lib/symlinkat.c (readlinkat): Move...
1215         * lib/readlinkat.c: ...into new file.
1216         * modules/symlinkat-tests: Split readlinkat test...
1217         * modules/readlinkat-tests: ...into separate module.
1218         * tests/test-symlinkat.c: Split...
1219         * tests/test-readlinkat.c: ...into new file.
1220         * NEWS: Document the split.
1221         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1222         * lib/unistd.in.h (readlinkat): Likewise.
1223         Suggested by Bruno Haible.
1224
1225 2010-08-08  Bruno Haible  <bruno@clisp.org>
1226
1227         memxfrm: Speed up.
1228         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
1229         that usually only one call to strxfrm is necessary for each string
1230         part.
1231         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1232
1233 2010-08-07  Karl Berry  <karl@gnu.org>
1234
1235         * doc/posix-headers/limits.texi,
1236         * doc/posix-functions/malloc.texi,
1237         * doc/posix-functions/strsignal.texi: missing @item.
1238         * doc/ld-version-script.texi: spurious leading i.
1239         * doc/regex.texi (Interval Operators): no commas inside @var.
1240
1241 2010-08-01  Bruno Haible  <bruno@clisp.org>
1242
1243         Integrate the regex documentation.
1244         * doc/gnulib.texi: Define 'cn' index.
1245         (Regular expressions): New a chapter that includes regex.texi and
1246         regexprops-generic.texi.
1247         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
1248         syntax.
1249
1250         Whitespace cleanup.
1251         * doc/regex.texi: Remove trailing spaces.
1252
1253         Add regex documentation.
1254         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
1255         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
1256         Written by Kathy A. Hargreaves and Karl Berry.
1257
1258 2010-08-01  Bruno Haible  <bruno@clisp.org>
1259
1260         link: Update documentation.
1261         * doc/posix-functions/link.texi: Update regarding Solaris.
1262
1263 2010-07-31  Bruno Haible  <bruno@clisp.org>
1264
1265         Update modules list.
1266         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
1267         (String handling <string.h>): Add memcmp2, memxfrm.
1268         (Container data structures): Add xlist, xsublist, xoset.
1269         (Core language properties): Add alignof, unused-parameter.
1270         (Process control, Numeric conversion functions <stdlib.h>): Renamed
1271         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
1272         (Unibyte characters <ctype.h>): New section.
1273         (String handling <string.h>): New section.
1274         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
1275         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
1276         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
1277         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
1278         tan, tanh, tanl, y0, y1, yn.
1279         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
1280         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
1281         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
1282         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
1283         unlockpt, vdprintf, vdprintf-posix.
1284         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
1285         (File system functions): Add concat-filename, sys_file, sys_ioctl,
1286         xconcat-filename.
1287         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
1288         getdtablesize, pipe2, pipe2-safer.
1289         (Security): New section.
1290         (Networking functions): Add accept4.
1291         (Signal handling): Add sigpipe.
1292         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
1293         mbmemcasecoll.
1294         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
1295         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
1296         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
1297         pipe-filter-ii.
1298         (Misc): Add argp-version-etc, login_tty, parse-duration.
1299
1300 2010-07-31  Bruno Haible  <bruno@clisp.org>
1301
1302         Improve doc in MODULES.html.
1303         * modules/linkat (Description): Add the word "function".
1304         * modules/mkfifo (Description): Likewise.
1305         * modules/mknod (Description): Likewise.
1306         * modules/remove (Description): Likewise.
1307         * modules/renameat (Description): Likewise.
1308         * modules/stat (Description): Likewise.
1309         * modules/symlink (Description): Likewise.
1310         * modules/unlink (Description): Likewise.
1311
1312 2010-07-31  Bruno Haible  <bruno@clisp.org>
1313
1314         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
1315         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
1316         option --enable/disable-c++ instead of --enable/disable-cxx.
1317         * NEWS: Mention the change.
1318
1319 2010-07-31  Bruno Haible  <bruno@clisp.org>
1320
1321         readlink, areadlink: Relax test a bit.
1322         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
1323         alternative to ENOTDIR.
1324         * tests/test-areadlink.h (test_areadlink): Likewise.
1325         Reported by Rainer Tammer.
1326
1327 2010-07-31  Bruno Haible  <bruno@clisp.org>
1328
1329         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
1330         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
1331         character, perform the search using U_STRCHR.
1332         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
1333         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
1334         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
1335         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
1336         Suggested by Paolo Bonzini.
1337
1338 2010-07-31  Bruno Haible  <bruno@clisp.org>
1339
1340         unistr/u*-strstr: Fix dependencies.
1341         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
1342         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
1343         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
1344
1345 2010-07-31  Bruno Haible  <bruno@clisp.org>
1346
1347         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
1348         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
1349         the beginning of the loop.
1350         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
1351         cases in 'switch' statement.
1352
1353         unistr/u8-strchr: Fix several bugs.
1354         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
1355         the string. When not found, return NULL, not a pointer near the end.
1356
1357         More tests for unistr/u8-strchr.
1358         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
1359         that the function does not read past the first occurrence of the byte
1360         being searched.
1361         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
1362         * tests/unistr/test-u16-strchr.c (main): New function.
1363         * tests/unistr/test-u32-strchr.c (main): New function.
1364
1365 2010-07-31  Bruno Haible  <bruno@clisp.org>
1366
1367         posix-modules: Ignore backup files of documentation files.
1368         * posix-modules: grep only through files named *.texi.
1369
1370 2010-07-31  Bruno Haible  <bruno@clisp.org>
1371
1372         symlinkat: Fix documentation.
1373         * doc/posix-functions/readlinkat.texi: Fix module name.
1374
1375 2010-07-31  Bruno Haible  <bruno@clisp.org>
1376
1377         fchownat: Replace also when chown has the trailing slash bug.
1378         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
1379         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
1380         introduced on 2010-04-10.
1381         Reported by Rainer Tammer.
1382
1383 2010-07-31  Bruno Haible  <bruno@clisp.org>
1384
1385         linkat: Work around AIX 7.1 bug.
1386         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
1387         whether linkat handles trailing slash correctly. If not, replace linkat
1388         and define LINKAT_TRAILING_SLASH_BUG.
1389         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
1390         check whether (fd1,file1) points to a directory if file1 or file2 ends
1391         in a slash. Code taken from lib/link.c.
1392         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
1393         Reported by Rainer Tammer.
1394
1395 2010-07-31  Bruno Haible  <bruno@clisp.org>
1396
1397         Correctly determine whether pow is available in libc on AIX 7 with xlc.
1398         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
1399         This disables an xlc optimization that was causing wrong test results.
1400         Reported by Rainer Tammer.
1401
1402 2010-07-31  Bruno Haible  <bruno@clisp.org>
1403
1404         iconv: Work around AIX 6.1..7.1 bug.
1405         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
1406         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
1407         cross-compiling, guess no on all versions of AIX.
1408         Reported by Rainer Tammer.
1409
1410 2010-07-31  Bruno Haible  <bruno@clisp.org>
1411
1412         readlink: Relax test a bit.
1413         * tests/test-readlink.h (test_readlink): Allow different errno value
1414         when readlink is called with a file name that ends in / and refers to
1415         a file.
1416         Suggested by Eric Blake.
1417         Reported by Rainer Tammer.
1418
1419 2010-07-31  Bruno Haible  <bruno@clisp.org>
1420
1421         copysign: Does not require -lm on glibc systems.
1422         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
1423         gl_COMMON_DOUBLE_MATHFUNC.
1424         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
1425
1426 2010-07-31  Bruno Haible  <bruno@clisp.org>
1427
1428         duplocale: Work around AIX 7.1 bug.
1429         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
1430         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
1431         * lib/duplocale.c (rpl_duplocale): Update comment.
1432         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
1433         Reported by Rainer Tammer.
1434
1435 2010-07-30  Bruno Haible  <bruno@clisp.org>
1436
1437         dirfd: Avoid link error on AIX 7.1.
1438         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
1439         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
1440         exist, set REPLACE_DIRFD.
1441         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
1442         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
1443         * doc/posix-functions/dirfd.texi: Update.
1444         Reported by Rainer Tammer.
1445
1446 2010-07-30  Eric Blake  <eblake@redhat.com>
1447
1448         strtod: next round of AIX fixes
1449         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
1450         exponent.
1451         * tests/test-strtod.c (main): Enhance tests.
1452         * doc/posix-functions/strtod.texi (strtod): Document next bug.
1453         Reported by Rainer Tammer.
1454
1455         futimens: fix configure check
1456         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
1457         Reported by Bruno Haible.
1458
1459 2010-07-30  Bruno Haible  <bruno@clisp.org>
1460
1461         getline: Update regarding AIX.
1462         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
1463         Reported by Rainer Tammer.
1464
1465 2010-07-30  Bruno Haible  <bruno@clisp.org>
1466
1467         wcwidth: Drop replacement on AIX 7.
1468         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
1469         AIX 7.
1470         Reported by Rainer Tammer.
1471
1472 2010-07-30  Bruno Haible  <bruno@clisp.org>
1473
1474         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
1475         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
1476         a 'char *'.
1477         Reported by Rainer Tammer.
1478
1479 2010-07-30  Bruno Haible  <bruno@clisp.org>
1480
1481         unlink: Update regarding AIX.
1482         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
1483         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
1484         Reported by Rainer Tammer.
1485
1486 2010-07-30  Bruno Haible  <bruno@clisp.org>
1487
1488         symlink: Update regarding AIX.
1489         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
1490         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
1491         Reported by Rainer Tammer.
1492
1493 2010-07-30  Bruno Haible  <bruno@clisp.org>
1494
1495         strndup: Update regarding AIX.
1496         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
1497         AIX 7.
1498         Reported by Rainer Tammer.
1499
1500 2010-07-30  Bruno Haible  <bruno@clisp.org>
1501
1502         stat: Update regarding AIX.
1503         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
1504         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
1505         Reported by Rainer Tammer.
1506
1507 2010-07-30  Bruno Haible  <bruno@clisp.org>
1508
1509         truncl: Fix autoconf test.
1510         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
1511         whether truncl works.
1512         Reported by Rainer Tammer.
1513
1514 2010-07-30  Bruno Haible  <bruno@clisp.org>
1515
1516         round: Update regarding AIX.
1517         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
1518         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
1519         Reported by Rainer Tammer.
1520
1521 2010-07-30  Bruno Haible  <bruno@clisp.org>
1522
1523         rename: Update regarding AIX.
1524         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
1525         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
1526         Reported by Rainer Tammer.
1527
1528 2010-07-30  Bruno Haible  <bruno@clisp.org>
1529
1530         printf.m4: Update regarding AIX.
1531         * m4/printf.m4: Update comments regarding AIX.
1532         Reported by Rainer Tammer.
1533
1534 2010-07-30  Bruno Haible  <bruno@clisp.org>
1535
1536         iconv: Update regarding AIX.
1537         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
1538         AIX 7.
1539         Reported by Rainer Tammer.
1540
1541 2010-07-30  Bruno Haible  <bruno@clisp.org>
1542
1543         getopt: Update regarding AIX.
1544         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
1545         no on AIX.
1546         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
1547         Reported by Rainer Tammer.
1548
1549 2010-07-30  Bruno Haible  <bruno@clisp.org>
1550
1551         ldexpl; Update regarding AIX.
1552         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
1553         on AIX 7.
1554         Reported by Rainer Tammer.
1555
1556 2010-07-30  Bruno Haible  <bruno@clisp.org>
1557
1558         frexpl: Update regarding AIX.
1559         * m4/frexpl.m4 (gl_FUNC_FREXPL_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         open, fopen: Update regarding AIX.
1566         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
1567         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1568         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
1569         * doc/posix-functions/fopen.texi: Likewise.
1570         Reported by Rainer Tammer.
1571
1572 2010-07-30  Bruno Haible  <bruno@clisp.org>
1573
1574         chown: Update doc regarding AIX.
1575         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
1576         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
1577         Reported by Rainer Tammer.
1578
1579 2010-07-30  Eric Blake  <eblake@redhat.com>
1580
1581         strtod: fix bug in replacement function on AIX
1582         * lib/strtod.c (strtod): Special case broken "0x" parse in
1583         underlying strtod.
1584         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
1585         * doc/posix-functions/strtod.texi (strtod): Likewise.
1586         Reported by Rainer Tammer.
1587
1588 2010-07-30  Bruno Haible  <bruno@clisp.org>
1589
1590         mbrlen: Fix cross-compilation guess for AIX.
1591         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1592         guess. Leftover from 2008-12-22.
1593
1594 2010-07-30  Bruno Haible  <bruno@clisp.org>
1595
1596         mbrtowc: Fix cross-compilation guess for AIX.
1597         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1598         guess. Leftover from 2008-12-21.
1599
1600 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1601
1602         init.sh: work around trap limitation of some shells
1603         * tests/init.sh (setup_): Move exit trap outside of shell function.
1604
1605 2010-07-29  Eric Blake  <eblake@redhat.com>
1606
1607         strtod: aid debugging
1608         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1609         understanding why strtod is rejected.
1610
1611 2010-07-28  Bruno Haible  <bruno@clisp.org>
1612
1613         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1614         * lib/unistr/u8-chr.c: Include <string.h>.
1615         * tests/unistr/test-u8-chr.c: Likewise.
1616         * tests/unistr/test-u16-chr.c: Likewise.
1617         * tests/unistr/test-u32-chr.c: Likewise.
1618         * tests/unistr/test-u8-strchr.c: Likewise.
1619         * tests/unistr/test-u16-strchr.c: Likewise.
1620         * tests/unistr/test-u32-strchr.c: Likewise.
1621         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1622         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1623         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1624         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1625
1626 2010-07-28  Bruno Haible  <bruno@clisp.org>
1627
1628         Use spaces for indentation, not tabs.
1629         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1630
1631 2010-07-27  Bruno Haible  <bruno@clisp.org>
1632
1633         mbspcasecmp: Fix function specification.
1634         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1635         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1636         Reported by Eric Blake <eblake@redhat.com>.
1637
1638 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1639
1640         timespec: use cast and not conditional, as truncation isn't possible
1641         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1642         instead of a conditional.  Comment about the situation in more detail.
1643         This undoes most of the 2009-10-29 patch.
1644
1645 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1646
1647         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1648         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1649         * lib/unistr/u8-strchr.c: Likewise.
1650         * modules/unistr/u8-chr: Depend on memchr.
1651
1652         unistr/u*-strchr: add tests
1653         * modules/unistr/u8-strchr-tests: New file.
1654         * modules/unistr/u16-strchr-tests: New file.
1655         * modules/unistr/u32-strchr-tests: New file.
1656         * tests/unistr/test-strchr.h: New file.
1657         * tests/unistr/test-u8-strchr.c: New file.
1658         * tests/unistr/test-u16-strchr.c: New file.
1659         * tests/unistr/test-u32-strchr.c: New file.
1660
1661         unistr/u*-chr: test multibyte sequences more
1662         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1663         test vector.
1664         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1665         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1666         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1667
1668         unistr/u*-chr: test multibyte sequences
1669         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1670
1671         unistr/u*-chr: prepare for multibyte tests
1672         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1673         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1674         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1675         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1676         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1677         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1678
1679 2010-07-18  Bruno Haible  <bruno@clisp.org>
1680
1681         unistr/u8-strchr: Optimize non-ASCII argument case.
1682         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1683         because the first byte often matches anyway.
1684         Reported by Pádraig Brady <P@draigbrady.com>.
1685
1686 2010-07-15  Karl Berry  <karl@gnu.org>
1687
1688         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1689
1690 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1691
1692         getcwd: on Solaris, work better if ancestors are inaccessible
1693         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1694         buffer and size, try again with a large buffer.  This works better
1695         on Solaris, since its getcwd succeeds even if the path to the root
1696         is inaccessible, and this is helpful in common cases such as .zfs
1697         hidden directories.  Problem reported by J Chapman Flack in
1698         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1699         Use system getcwd if it's declared, not merely if it's partly
1700         working; use the partly-working test only to avoid needless effort
1701         if the system getcwd fails.
1702         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1703         comment that was already obsolete and is now even more obsolete.
1704         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1705         now might call strdup.
1706
1707 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1708
1709         pthread: Add enough so that coreutils/src/sort.c compiles.
1710         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1711         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1712         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1713         Include <sys/types.h>, in case it defines pthread_t.
1714         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1715         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1716         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1717         (pthread_rwlockattr_t, pthread_spinlock_t):
1718         New typedefs, if HAVE_PTHREAD_T is not defined.
1719         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1720         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1721         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1722         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1723         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1724         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1725         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1726         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1727         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1728         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1729         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1730         New macros.
1731         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1732         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1733         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1734         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1735         (pthread_spin_unlock): New dummy functions.
1736         (pthread_create): Return EAGAIN; don't set errno.
1737         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1738         require AC_C_INLINE.
1739         * modules/pthread (Depends-on): Add sched, time.
1740         (pthread.h): Use AM_V_GEN.
1741
1742 2010-07-13  Bruno Haible  <bruno@clisp.org>
1743
1744         striconveh: Don't malloc memory if the result buffer is sufficient.
1745         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1746         buffer if its size is sufficient.
1747         Reported by Ludovic Courtès <ludo@gnu.org>.
1748
1749 2010-07-13  Bruno Haible  <bruno@clisp.org>
1750
1751         strtod: Add safety check.
1752         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1753
1754 2010-07-12  Bruno Haible  <bruno@clisp.org>
1755
1756         Unify tests that set gl_cv_func_ldexpl_no_libm.
1757         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1758         gl_FUNC_LDEXPL.
1759         (gl_FUNC_LDEXPL): Invoke it.
1760         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1761
1762 2010-07-12  Bruno Haible  <bruno@clisp.org>
1763
1764         Unify tests that set gl_cv_func_ldexp_no_libm.
1765         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1766         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1767         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1768         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1769         * modules/strtod (Files): Add m4/ldexp.m4.
1770
1771 2010-07-12  Bruno Haible  <bruno@clisp.org>
1772
1773         Unify tests that set gl_cv_func_frexpl_no_libm.
1774         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1775         gl_FUNC_FREXPL_NO_LIBM.
1776         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1777         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1778
1779 2010-07-12  Bruno Haible  <bruno@clisp.org>
1780
1781         Unify tests that set gl_cv_func_frexp_no_libm.
1782         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1783         gl_FUNC_FREXP_NO_LIBM.
1784         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1785         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1786
1787 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1788
1789         memcoll: clarify sizes versus lengths, document better, and tweak perf
1790         * lib/memcoll.c (strcoll_loop, memcoll0):
1791         Improve quality of descriptive comments.  Name variables
1792         consistently as to whether they are lengths (which do not include
1793         terminating null) versus sizes (which do).
1794         * lib/xmemcoll.c (xmemcoll0): Likewise.
1795         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1796         returned when s1size == 0; this is easier to compile and saves
1797         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1798
1799 2010-07-12  Bruno Haible  <bruno@clisp.org>
1800
1801         Tests for module '_Exit'.
1802         * modules/_Exit-tests: New file.
1803         * tests/test-_Exit.sh: New file.
1804         * tests/test-_Exit.c: New file.
1805
1806         New module '_Exit'.
1807         * lib/stdlib.in.h (__attribute__): New macro.
1808         (_Exit): New declaration.
1809         * lib/_Exit.c: New file.
1810         * m4/_Exit.m4: New file.
1811         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1812         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1813         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1814         * modules/_Exit: New file.
1815         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1816         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1817
1818 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1819
1820         strtod: make it more-accurate typically, and don't require libm
1821         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1822         Include limits.h.  Don't include string.h.
1823         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1824         (locale_isspace): New function, so that no casts are needed to
1825         check whether *s is a space.
1826         (ldexp): Provide an unused dummy if not available.
1827         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1828         (strtod): Use them.  This implementation prefers to use the
1829         underlying strtod if available, falling back on our own code
1830         only to fix known bugs.  This is more likely to produce an
1831         accurate result.  Also, it avoids the use of libm functions.
1832         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1833         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
1834         was absent, but it caused a test failure with coreutils.
1835         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
1836         with libm.
1837         * modules/strtod (Makefile.am, Link): libm is no longer needed.
1838         * modules/strtod-tests (Makefile.am): Likewise.
1839
1840 2010-07-11  Pádraig Brady  <P@draigBrady.com>
1841             Bruno Haible  <bruno@clisp.org>
1842
1843         unistr/u8-strchr: Optimize ASCII argument case.
1844         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
1845
1846 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1847
1848         (x)memcoll: minor tweaks
1849         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
1850         is after the type that it qualifies.
1851         (memcoll0): Likewise.
1852         * lib/memcoll.h (memcoll0): Likewise.
1853         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
1854         * lib/xmemcoll.h (xmemcoll0): Likewise.
1855         * lib/memcoll.c (memcoll0): Correct the comment.  This function
1856         differs from memcoll in that the NUL byte is part of the argument.
1857         Omit the abort-checks, as performance is a real issue here.  Plus,
1858         the checks were wrong anyway (an off-by-one error).  Omit local
1859         variable 'diff', as it's a bit clearer that way.
1860         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
1861         no longer needed.
1862
1863 2010-07-08  Chen Guo <chenguo4@yahoo.com>
1864
1865         (x)memcoll: speedup when input is known to be NUL delimited
1866         * lib/memcoll.c: Include stdlib.
1867         (memcoll0) New function.
1868         (strcoll_loop) New function, refactored for use in both memcoll
1869         and memcoll0.
1870         * lib/memcoll.h: Add prototype for memcoll0.
1871         * lib/xmemcoll.c: (xmemcoll0) New function.
1872         (collate_error) New function, refactored for use in both xmemcoll
1873         and xmemcoll0.
1874         * lib/xmemcoll.h: Add prototype for xmemcoll0.
1875         * m4/memcoll.m4: add inline invocation.
1876
1877 2010-07-06  Pádraig Brady  <P@draigBrady.com>
1878
1879         * build-aux/bootstrap: Remove any local translations
1880         from the translation project synchronization directory,
1881         so that local only translations are not distributed.
1882
1883 2010-07-04  Bruno Haible  <bruno@clisp.org>
1884
1885         fsusage: Clarify which code applies to which platforms.
1886         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
1887         platform.
1888         * lib/fsusage.c (get_fs_usage): Likewise.
1889
1890 2010-07-04  Bruno Haible  <bruno@clisp.org>
1891
1892         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
1893         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
1894         Reported by Martin Lambers <marlam@marlam.de>.
1895
1896 2010-07-04  Jim Meyering  <meyering@redhat.com>
1897
1898         hash: once again explicitly disallow insertion of NULL
1899         * lib/hash.c (hash_insert0): Reinstate just-removed test:
1900         inserting a NULL pointer cannot work with these functions.
1901         Add a comment with details.
1902         This reverts part of the 2010-07-01 commit, 5bef1a35
1903         "hash: extend module to deal with non-pointer keys".
1904
1905 2010-07-01  Bruno Haible  <bruno@clisp.org>
1906
1907         stdbool: Update doc.
1908         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
1909         Info from Christian Weisgerber <naddy@mips.inka.de>.
1910
1911 2010-07-01  Jim Meyering  <meyering@redhat.com>
1912
1913         hash: extend module to deal with non-pointer keys
1914         * lib/hash.c (hash_insert0): New interface, much like hash_insert
1915         but that allows insertion of non-pointer entries.
1916         Do not disallow an ENTRY value of NULL.
1917         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
1918         * lib/hash.h (hash_insert0): Declare.
1919
1920 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1921
1922         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
1923         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
1924         not present (i.e. with autoconf 2.59 and when using gettextize, not
1925         gnulib), require AC_GNU_SOURCE instead.
1926
1927 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
1928
1929         idpriv-drop: Fix tests.
1930         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
1931         not to the test-idpriv-droptemp program.
1932
1933 2010-06-29  Bruno Haible  <bruno@clisp.org>
1934
1935         string: Fix syntax error with g++ 2.96.
1936         * lib/string.in.h (__pure__): Remove definition.
1937         (_GL_ATTRIBUTE_PURE): New macro.
1938         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
1939         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
1940         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1941
1942 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
1943
1944         unitypes: Fix bug introduced on 2010-05-18.
1945         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
1946
1947 2010-06-22  Eric Blake  <eblake@redhat.com>
1948
1949         memmem: slight optimization
1950         * lib/str-two-way.h (critical_factorization): Update comments.
1951         Reduce work during factorization phase.
1952         Reported by Carlos Bueno <carlos@bueno.org>.
1953
1954 2010-06-21  Bruno Haible  <bruno@clisp.org>
1955
1956         Fix HAVE_CALLOC_POSIX misnomer.
1957         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
1958         !HAVE_CALLOC_POSIX.
1959         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
1960         HAVE_CALLOC_POSIX.
1961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
1962         instead of HAVE_CALLOC_POSIX.
1963         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
1964         HAVE_CALLOC_POSIX.
1965
1966         Use modern idiom for calloc() replacement.
1967         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
1968         AC_FUNC_CALLOC.
1969         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
1970         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
1971         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1972         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
1973         (gl_REPLACE_CALLOC): New macro.
1974
1975 2010-06-21  Bruno Haible  <bruno@clisp.org>
1976
1977         Fix HAVE_REALLOC_POSIX misnomer.
1978         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
1979         !HAVE_REALLOC_POSIX.
1980         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
1981         HAVE_REALLOC_POSIX.
1982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
1983         instead of HAVE_REALLOC_POSIX.
1984         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
1985         HAVE_REALLOC_POSIX.
1986
1987         Use modern idiom for realloc() replacement.
1988         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
1989         AC_FUNC_REALLOC.
1990         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
1991         Autoconf's AC_FUNC_REALLOC.
1992         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1993         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
1994         (gl_REPLACE_REALLOC): New macro.
1995         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
1996
1997 2010-06-21  Bruno Haible  <bruno@clisp.org>
1998
1999         Fix HAVE_MALLOC_POSIX misnomer.
2000         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
2001         !HAVE_MALLOC_POSIX.
2002         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
2003         HAVE_MALLOC_POSIX.
2004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
2005         instead of HAVE_MALLOC_POSIX.
2006         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
2007         HAVE_MALLOC_POSIX.
2008
2009         Use modern idiom for malloc() replacement.
2010         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
2011         AC_FUNC_MALLOC.
2012         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
2013         Autoconf's AC_FUNC_MALLOC.
2014         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2015         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
2016         (gl_REPLACE_MALLOC): New macro.
2017         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2018
2019 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
2020
2021         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
2022         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
2023         This macro takes 3 arguments, not 4.
2024
2025 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
2026
2027         ipv6: fix detection under mingw
2028         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
2029         in6_addr.
2030
2031 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
2032
2033         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
2034         that strtod() works when cross-compiling to a glibc version known
2035         to work.
2036
2037 2010-06-15  Bruno Haible  <bruno@clisp.org>
2038
2039         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
2040
2041 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
2042
2043         select: Correct timeout.
2044         * lib/select.c (rpl_select): Compute wait_timeout correctly.
2045
2046 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2047
2048         git-version-gen: init shell var to avoid env var influence
2049         * build-aux/git-version-gen (v): Init shell var to empty.
2050
2051 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
2052
2053         priv-set: Don't assume that priv.h exists merely because getppriv does.
2054         See Jan Andersen's bug report about AIX 5L in
2055         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
2056         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
2057         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
2058         * lib/priv-set.h: Likewise.
2059         * tests/test-priv-set.c: Likewise.
2060
2061 2010-06-13  Bruno Haible  <bruno@clisp.org>
2062
2063         relocatable: Make it easier to test whether to install wrappers.
2064         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
2065         RELOCATABLE_VIA_WRAPPER.
2066
2067 2010-06-13  Bruno Haible  <bruno@clisp.org>
2068
2069         gnulib-tool: Display specified modules and dependencies differently.
2070         * gnulib-tool (func_show_module_list): New function.
2071         (func_import, func_create_testdir): Invoke it.
2072         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2073
2074 2010-06-13  Bruno Haible  <bruno@clisp.org>
2075
2076         gnulib-tool: Align code of func_import and func_create_testdir.
2077         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
2078         specified_modules.
2079
2080 2010-06-12  Jim Meyering  <meyering@redhat.com>
2081
2082         test-inttostr: avoid spurious failure on Solaris 9
2083         * tests/test-inttostr.c (main): Skip the test when snprintf fails
2084         to accept "%ju".  Reported by Bruno Haible.
2085
2086 2010-06-11  Jim Meyering  <meyering@redhat.com>
2087
2088         test-sys_socket: mark variables as used more readably
2089         * tests/test-sys_socket.c (main): Mark otherwise unused variables
2090         as "used" explicitly via (void) statement casts.  This is more
2091         readable than using them in an artificial return expression.
2092         Suggestion from Bruno Haible.
2093
2094 2010-06-11  Bruno Haible  <bruno@clisp.org>
2095
2096         Avoid some more warnings from "gcc -Wwrite-strings".
2097         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
2098         to 'const char *'.
2099         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
2100         * tests/test-c-strcasestr.c (main): Likewise.
2101         * tests/test-mbscasestr1.c (main): Likewise.
2102         * tests/test-mbscasestr2.c (main): Likewise.
2103         * tests/test-memmem.c (main): Likewise.
2104         * tests/test-strstr.c (main): Likewise.
2105         * tests/test-strcasestr.c (main): Likewise.
2106
2107 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2108
2109         init.sh: change framework_failure_ to fail with status 99, not 1
2110         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
2111         automake's parallel-tests rule that this is an unexpected failure,
2112         even if the test is listed in XFAIL_TESTS.
2113
2114 2010-06-11  Jim Meyering  <meyering@redhat.com>
2115
2116         test-inttostr: avoid warnings about 4-6KB literal strings
2117         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
2118         Include "macros.h", for its definition of ASSERT.
2119         (CK): s/assert/ASSERT/
2120         * modules/inttostr-tests (Files): Add macros.h.
2121
2122         init.sh: don't use $ME_ or skip_ before they are defined
2123         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
2124         their first uses.  Also hoist their companions: warn_, fail_,
2125         framework_failure_, $stderr_fileno.  Prompted by a patch from
2126         Stefano Lattarini.
2127
2128         test-sys_socket: avoid set-but-not-used warnings from gcc
2129         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
2130         avoid warning about set-but-not-used variables.
2131
2132         test-xvasprintf: avoid 'const' discard warnings
2133         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
2134         "const" when assigning from literal strings.
2135         (test_xasprintf): Add "void" in function argument list to placate
2136         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
2137
2138         tests: avoid compilation warnings in argmatch and exclude tests...
2139         in packages that define ARGMATCH_DIE_DECL, like coreutils.
2140         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
2141         Since it always exits, declare with the "noreturn" attribute.
2142         * tests/test-argmatch.c: Likewise.
2143
2144         tests: avoid 'const' discard warnings in mbsstr tests
2145         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
2146         * tests/test-mbsstr2.c (main): Likewise.
2147
2148         test-verify: avoid warning from gcc's -Wmissing-declarations
2149         * tests/test-verify.c (function): Declare to be static.
2150
2151         test-inttostr.c: include <string.h> for use of strcmp
2152         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
2153
2154         test-linkat: avoid failed assertion on "other" architectures
2155         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
2156         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
2157         sparc: https://bugs.launchpad.net/bugs/591968
2158
2159 2010-06-11  Jim Meyering  <meyering@redhat.com>
2160
2161         printf.m4: avoid autoconf's "Expanded Before Required" warning
2162         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
2163         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
2164         autoconf warning.
2165
2166 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
2167
2168         Replacement header templates are now named with ".in", not "_".
2169         * doc/gnulib-intro.texi: Correct.
2170
2171 2010-06-10  Jim Meyering  <meyering@redhat.com>
2172
2173         inttostr-tests: depend on snprintf, not snprintf-posix
2174         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
2175         snprintf-posix, to avoid this aclocal failure:
2176           missing file gnulib-tests/vasnprintf.c
2177           configure.ac:45: error: expected source file, required through \
2178           AC_LIBSOURCES, not found
2179
2180 2010-06-10  Jim Meyering  <meyering@redhat.com>
2181
2182         inttostr: add a new function, inttostr, and tests
2183         The namesake function was not available.  The existence of the
2184         template file, inttostr.c makes its addition nontrivial.
2185         * lib/anytostr.c: Rename from inttostr.c.
2186         (anytostr): Rename from inttostr.
2187         * lib/inttostr.c: New file.
2188         * modules/inttostr (Files): Add anytostr.c.
2189         (Makefile.am): Set lib_SOURCES instead of ...
2190         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
2191         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
2192         * lib/offtostr.c: Likewise.
2193         * lib/uinttostr.c: Likewise.
2194         * lib/umaxtostr.c: Likewise.
2195         * modules/inttostr-tests: New file.
2196         * tests/test-inttostr.c: New file.  Test these functions.
2197
2198 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
2199             Bruno Haible  <bruno@clisp.org>
2200
2201         Add "Extending Gnulib" chapter to manual.
2202         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
2203         chapter.
2204         (Extending Gnulib): New chapter.
2205         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
2206         chapter.
2207
2208 2010-06-09  Bruno Haible  <bruno@clisp.org>
2209
2210         Avoid relocwrapper link errors due to gnulib replacement functions.
2211         * lib/areadlink.c: Use the system's malloc, realloc functions.
2212         (areadlink): Set errno to ENOMEM explicitly.
2213         * modules/areadlink (Depends-on): Remove malloc-posix.
2214         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2215
2216 2010-06-09  Bruno Haible  <bruno@clisp.org>
2217
2218         Avoid relocwrapper link errors due to gnulib replacement functions.
2219         * lib/canonicalize-lgpl.c: Use the system's malloc function.
2220         * lib/malloca.c: Likewise.
2221         * lib/relocatable.c: Likewise.
2222         * lib/progreloc.c: Use the system's malloc, sprintf functions.
2223         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
2224         * lib/setenv.c: Use the system's malloc, realloc functions.
2225         * lib/strerror.c: Use the system's sprintf function.
2226         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2227
2228 2010-06-04  Bruno Haible  <bruno@clisp.org>
2229
2230         Prefer documented low-level autoconf macro names.
2231         * m4/lib-link.m4: Use m4_translit instead of translit.
2232         * m4/environ.m4: Likewise.
2233         * m4/mathfunc.m4: Likewise.
2234         * m4/onceonly.m4: Likewise.
2235         * m4/stdint.m4: Likewise.
2236         Suggested by Eric Blake.
2237
2238 2010-06-04  Martin Lambers  <marlam@marlam.de>
2239             Bruno Haible  <bruno@clisp.org>
2240
2241         havelib: Allow library names with '+' characters.
2242         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2243         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
2244
2245 2010-06-09  Bruno Haible  <bruno@clisp.org>
2246
2247         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
2248         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
2249         realloc failed.
2250
2251 2010-06-08  Peter Simons  <simons@cryp.to>
2252
2253         maint.mk: make the news-check rule more configurable
2254         * top/maint.mk (news-check-lines-spec) New variable.
2255         (news-check): Use "sed -n 1,10p" in place of "head".
2256
2257 2010-06-07  Jim Meyering  <meyering@redhat.com>
2258
2259         do-release-commit-and-tag: fix typo in --help
2260         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
2261
2262         regex: avoid new dead-code warning with gcc-4.6.0
2263         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
2264         if-block containing a while-loop.  It's been unused for at least
2265         5 years.
2266
2267 2010-06-05  Bruno Haible  <bruno@clisp.org>
2268
2269         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
2270         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
2271
2272 2010-06-04  Bruno Haible  <bruno@clisp.org>
2273
2274         Update to GNU gettext 0.18.1.
2275         * modules/gettext (configure.ac): Require gettext infrastructure from
2276         version 0.18.1.
2277
2278 2010-06-03  Bruno Haible  <bruno@clisp.org>
2279
2280         Don't use AC_LIBOBJ with file names in subdirectories.
2281         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
2282         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
2283         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
2284         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
2285         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
2286         gl_LIBUNISTRING_LIBSOURCE.
2287         (Makefile.am): Augment lib_SOURCES here, conditionally.
2288         * NEWS: Drop requirement for Automake option 'subdir-objects'.
2289
2290 2010-06-03  Bruno Haible  <bruno@clisp.org>
2291
2292         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
2293         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
2294         expansion does not end with a newline.
2295         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
2296         unnecessary newline.
2297
2298 2010-06-03  Bruno Haible  <bruno@clisp.org>
2299
2300         Reduce dependencies.
2301         * tests/test-quotearg.h: New file, extracted from
2302         tests/test-quotearg.c.
2303         * tests/test-quotearg-simple.c: New file, extracted from
2304         tests/test-quotearg.c.
2305         * tests/test-quotearg.c: Don't include <ctype.h>.
2306         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
2307         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
2308         use_quote_double_quotes, use_quotearg_colon): Moved to
2309         tests/test-quotearg.h.
2310         (results_g, flag_results, custom_quotes, custom_results): Moved
2311         to tests/test-quotearg-simple.c.
2312         (main): Moved the part that does not depend on gettext to
2313         tests/test-quotearg-simple.c. Return 77 if the test cannot be
2314         performed.
2315         * modules/quotearg-simple: New file.
2316         * modules/quotearg-simple-tests: New file.
2317         * modules/quotearg (Depends-on): Add quotearg-simple.
2318         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
2319         (Files): Add tests/test-quotearg.h.
2320         Reported by Paolo Bonzini.
2321
2322 2010-06-03  Bruno Haible  <bruno@clisp.org>
2323
2324         Reduce dependencies.
2325         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
2326
2327 2010-06-03  Bruno Haible  <bruno@clisp.org>
2328
2329         time: Undefine more broken macros.
2330         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
2331         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
2332         Reported by Eric Blake.
2333
2334 2010-06-03  Bruno Haible  <bruno@clisp.org>
2335
2336         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
2337         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
2338         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
2339         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
2340         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
2341         Reported by Ludovic Courtès <ludo@gnu.org>.
2342
2343 2010-06-02  Eric Blake  <eblake@redhat.com>
2344
2345         time: work with mingw + pthreads-win32 library
2346         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
2347         if timespec is defined only in pthread.h.
2348         * modules/time (Makefile.am): Substitute it.
2349         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
2350         <pthread.h>, when needed.
2351         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
2352         from the library.
2353
2354 2010-05-31  Bruno Haible  <bruno@clisp.org>
2355
2356         Avoid expanding two macros in the wrong order.
2357         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
2358         gl_LIBUNISTRING if it is defined.
2359         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
2360         autoconf >= 2.64.
2361         Reported by Ludovic Courtès <ludo@gnu.org>.
2362
2363 2010-05-27  Jim Meyering  <meyering@redhat.com>
2364
2365         maint.mk: also prohibit "#undef" of always-defined symbols
2366         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
2367         Allow more than one space before the symbol name.
2368         (sc_prohibit_always-defined_macros): Use grep's -E, now that
2369         the regexp uses alternation.
2370
2371 2010-05-26  Eric Blake  <eblake@redhat.com>
2372
2373         maint.mk: avoid echo -e
2374         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
2375         Convert all uses of echo -* to printf.
2376         Reported by Matthias Bolte.
2377
2378 2010-05-25  Bruno Haible  <bruno@clisp.org>
2379
2380         Update to GNU gettext 0.18, part 2.
2381         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
2382         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
2383
2384 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2385
2386         Add missing include in test-pwrite.c.
2387         * tests/test-pwrite.c: Include string.h, for strcmp.
2388
2389 2010-05-24  Bruno Haible  <bruno@clisp.org>
2390
2391         * NEWS: Mention requirement for Automake option 'subdir-objects'.
2392
2393 2010-05-24  Bruno Haible  <bruno@clisp.org>
2394
2395         Don't use conversion with transliteration in u{8,16,32}_strcoll.
2396         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
2397         iconveh_error argument.
2398         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
2399         U_STRCONV_TO_LOCALE.
2400         * lib/unistr/u16-strcoll.c: Likewise.
2401         * lib/unistr/u32-strcoll.c: Likewise.
2402         * modules/unistr/u8-strcoll (Depends-on): Add
2403         uniconv/u8-strconv-to-enc, localcharset. Remove
2404         uniconv/u8-strconv-to-locale.
2405         (configure.ac): Bump version number.
2406         * modules/unistr/u16-strcoll (Depends-on): Add
2407         uniconv/u16-strconv-to-enc, localcharset. Remove
2408         uniconv/u16-strconv-to-locale.
2409         (configure.ac): Bump version number.
2410         * modules/unistr/u32-strcoll (Depends-on): Add
2411         uniconv/u32-strconv-to-enc, localcharset. Remove
2412         uniconv/u32-strconv-to-locale.
2413         (configure.ac): Bump version number.
2414
2415 2010-05-24  Bruno Haible  <bruno@clisp.org>
2416
2417         Avoid a test failure on NetBSD 5.0.
2418         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
2419         an iconv() bug.
2420
2421 2010-05-24  Bruno Haible  <bruno@clisp.org>
2422
2423         Adjust #include directive style.
2424         * modules/regex (Includes): Recommend to write <regex.h>.
2425
2426 2010-05-24  Bruno Haible  <bruno@clisp.org>
2427
2428         regex: Don't require alloca.
2429         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
2430         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
2431         only inside if (0).
2432
2433 2010-05-23  Jim Meyering  <meyering@redhat.com>
2434
2435         test-renameat.c: include <sys/stat.h>
2436         * tests/test-renameat.c: Include <sys/stat.h>; required for
2437         definition of S_IS* macros.
2438
2439 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
2440
2441         Update maintainer documentation for 'relocatable-prog' module.
2442         * doc/relocatable-maint.texi: Update.
2443         Comments by Bruno Haible.
2444
2445 2010-05-23  Bruno Haible  <bruno@clisp.org>
2446
2447         git-merge-changelog: Enable --split-merged-entry by default.
2448         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
2449         (usage): Don't mention this option any more.
2450         Reported by Ralf Wildenhues.
2451
2452 2010-05-23  Jim Meyering  <meyering@redhat.com>
2453
2454         test-pwrite: do not leave behind a test file named "out"
2455         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
2456         The trivial-looking use of init.sh is really necessary.
2457         It ensures that the temporary file, "out", is created in
2458         a temporary directory, and removed upon termination.
2459         * tests/test-pwrite.sh: Re-add file.
2460         * modules/pwrite-tests: Reference it.
2461
2462 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2463
2464         Fix output redirection buglet in init.sh.
2465         * tests/init.sh: Fix redirection of stderr.
2466
2467 2010-05-20  Simon Josefsson  <simon@josefsson.org>
2468
2469         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
2470
2471 2010-05-17  Simon Josefsson  <simon@josefsson.org>
2472
2473         * modules/valgrind-tests: New file.
2474         * m4/valgrind-tests.m4: New file.
2475         * doc/valgrind-tests.texi: New file.
2476         * doc/gnulib.texi (Running self-tests under valgrind): New
2477         section.
2478
2479 2010-05-19  Bruno Haible  <bruno@clisp.org>
2480
2481         Clean up dead code in recent commit.
2482         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
2483         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
2484         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
2485         Suggested by Paolo Bonzini.
2486
2487 2010-05-19  Bruno Haible  <bruno@clisp.org>
2488
2489         Avoid valgrind error reports from libunistring.
2490         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
2491         * modules/libunistring (Files): Add it.
2492         * modules/libunistring-optional (Files): Likewise.
2493
2494 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
2495             Bruno Haible  <bruno@clisp.org>
2496
2497         New module 'libunistring-optional'.
2498         * modules/libunistring-optional: New file.
2499         * m4/libunistring-base.m4: New file.
2500         * m4/libunistring-optional.m4: New file.
2501         * lib/unicase.in.h: Renamed from lib/unicase.h.
2502         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
2503         * lib/unictype.in.h: Renamed from lib/unictype.h.
2504         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
2505         * lib/uniname.in.h: Renamed from lib/uniname.h.
2506         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
2507         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
2508         * lib/unistr.in.h: Renamed from lib/unistr.h.
2509         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
2510         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
2511         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
2512         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
2513         gl_LIBUNISTRING. If the library was found, determine the installed
2514         version and set LIBUNISTRING_VERSION.
2515         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
2516         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
2517         handle a configuration option --with-included-libunistring.
2518         * modules/libunistring (Files): Add m4/absolute-header.m4.
2519         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
2520         Add m4/libunistring-base.m4.
2521         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2522         (Makefile.am): Build unicase.h from unicase.in.h.
2523         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
2524         Add m4/libunistring-base.m4.
2525         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2526         (Makefile.am): Build uniconv.h from uniconv.in.h.
2527         * modules/unictype/base (Files): Use unictype.in.h instead of
2528         unictype.h. Add m4/libunistring-base.m4.
2529         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2530         (Makefile.am): Build unictype.h from unictype.in.h.
2531         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
2532         Add m4/libunistring-base.m4.
2533         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2534         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
2535         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
2536         Add m4/libunistring-base.m4.
2537         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2538         (Makefile.am): Build uniname.h from uniname.in.h.
2539         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
2540         Add m4/libunistring-base.m4.
2541         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2542         (Makefile.am): Build uninorm.h from uninorm.in.h.
2543         * modules/unistdio/base (Files): Use unistdio.in.h instead of
2544         unistdio.h. Add m4/libunistring-base.m4.
2545         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2546         (Makefile.am): Build unistdio.h from unistdio.in.h.
2547         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
2548         Add m4/libunistring-base.m4.
2549         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2550         (Makefile.am): Build unistr.h from unistr.in.h.
2551         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
2552         Add m4/libunistring-base.m4.
2553         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2554         (Makefile.am): Build unitypes.h from unitypes.in.h.
2555         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
2556         Add m4/libunistring-base.m4.
2557         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2558         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
2559         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
2560         uniwidth.h. Add m4/libunistring-base.m4.
2561         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2562         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
2563         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
2564         instead of augmenting lib_SOURCES.
2565         * modules/unicase/empty-suffix-context: Likewise.
2566         * modules/unicase/locale-language: Likewise.
2567         * modules/unicase/tolower: Likewise.
2568         * modules/unicase/totitle: Likewise.
2569         * modules/unicase/toupper: Likewise.
2570         * modules/unicase/u8-casecmp: Likewise.
2571         * modules/unicase/u8-casecoll: Likewise.
2572         * modules/unicase/u8-casefold: Likewise.
2573         * modules/unicase/u8-casexfrm: Likewise.
2574         * modules/unicase/u8-ct-casefold: Likewise.
2575         * modules/unicase/u8-ct-tolower: Likewise.
2576         * modules/unicase/u8-ct-totitle: Likewise.
2577         * modules/unicase/u8-ct-toupper: Likewise.
2578         * modules/unicase/u8-is-cased: Likewise.
2579         * modules/unicase/u8-is-casefolded: Likewise.
2580         * modules/unicase/u8-is-lowercase: Likewise.
2581         * modules/unicase/u8-is-titlecase: Likewise.
2582         * modules/unicase/u8-is-uppercase: Likewise.
2583         * modules/unicase/u8-prefix-context: Likewise.
2584         * modules/unicase/u8-suffix-context: Likewise.
2585         * modules/unicase/u8-tolower: Likewise.
2586         * modules/unicase/u8-totitle: Likewise.
2587         * modules/unicase/u8-toupper: Likewise.
2588         * modules/unicase/u16-casecmp: Likewise.
2589         * modules/unicase/u16-casecoll: Likewise.
2590         * modules/unicase/u16-casefold: Likewise.
2591         * modules/unicase/u16-casexfrm: Likewise.
2592         * modules/unicase/u16-ct-casefold: Likewise.
2593         * modules/unicase/u16-ct-tolower: Likewise.
2594         * modules/unicase/u16-ct-totitle: Likewise.
2595         * modules/unicase/u16-ct-toupper: Likewise.
2596         * modules/unicase/u16-is-cased: Likewise.
2597         * modules/unicase/u16-is-casefolded: Likewise.
2598         * modules/unicase/u16-is-lowercase: Likewise.
2599         * modules/unicase/u16-is-titlecase: Likewise.
2600         * modules/unicase/u16-is-uppercase: Likewise.
2601         * modules/unicase/u16-prefix-context: Likewise.
2602         * modules/unicase/u16-suffix-context: Likewise.
2603         * modules/unicase/u16-tolower: Likewise.
2604         * modules/unicase/u16-totitle: Likewise.
2605         * modules/unicase/u16-toupper: Likewise.
2606         * modules/unicase/u32-casecmp: Likewise.
2607         * modules/unicase/u32-casecoll: Likewise.
2608         * modules/unicase/u32-casefold: Likewise.
2609         * modules/unicase/u32-casexfrm: Likewise.
2610         * modules/unicase/u32-ct-casefold: Likewise.
2611         * modules/unicase/u32-ct-tolower: Likewise.
2612         * modules/unicase/u32-ct-totitle: Likewise.
2613         * modules/unicase/u32-ct-toupper: Likewise.
2614         * modules/unicase/u32-is-cased: Likewise.
2615         * modules/unicase/u32-is-casefolded: Likewise.
2616         * modules/unicase/u32-is-lowercase: Likewise.
2617         * modules/unicase/u32-is-titlecase: Likewise.
2618         * modules/unicase/u32-is-uppercase: Likewise.
2619         * modules/unicase/u32-prefix-context: Likewise.
2620         * modules/unicase/u32-suffix-context: Likewise.
2621         * modules/unicase/u32-tolower: Likewise.
2622         * modules/unicase/u32-totitle: Likewise.
2623         * modules/unicase/u32-toupper: Likewise.
2624         * modules/unicase/ulc-casecmp: Likewise.
2625         * modules/unicase/ulc-casecoll: Likewise.
2626         * modules/unicase/ulc-casexfrm: Likewise.
2627         * modules/uniconv/u8-conv-from-enc: Likewise.
2628         * modules/uniconv/u8-conv-to-enc: Likewise.
2629         * modules/uniconv/u8-strconv-from-enc: Likewise.
2630         * modules/uniconv/u8-strconv-from-locale: Likewise.
2631         * modules/uniconv/u8-strconv-to-enc: Likewise.
2632         * modules/uniconv/u8-strconv-to-locale: Likewise.
2633         * modules/uniconv/u16-conv-from-enc: Likewise.
2634         * modules/uniconv/u16-conv-to-enc: Likewise.
2635         * modules/uniconv/u16-strconv-from-enc: Likewise.
2636         * modules/uniconv/u16-strconv-from-locale: Likewise.
2637         * modules/uniconv/u16-strconv-to-enc: Likewise.
2638         * modules/uniconv/u16-strconv-to-locale: Likewise.
2639         * modules/uniconv/u32-conv-from-enc: Likewise.
2640         * modules/uniconv/u32-conv-to-enc: Likewise.
2641         * modules/uniconv/u32-strconv-from-enc: Likewise.
2642         * modules/uniconv/u32-strconv-from-locale: Likewise.
2643         * modules/uniconv/u32-strconv-to-enc: Likewise.
2644         * modules/uniconv/u32-strconv-to-locale: Likewise.
2645         * modules/unictype/bidicategory-byname: Likewise.
2646         * modules/unictype/bidicategory-name: Likewise.
2647         * modules/unictype/bidicategory-of: Likewise.
2648         * modules/unictype/bidicategory-test: Likewise.
2649         * modules/unictype/block-list: Likewise.
2650         * modules/unictype/block-test: Likewise.
2651         * modules/unictype/category-C: Likewise.
2652         * modules/unictype/category-Cc: Likewise.
2653         * modules/unictype/category-Cf: Likewise.
2654         * modules/unictype/category-Cn: Likewise.
2655         * modules/unictype/category-Co: Likewise.
2656         * modules/unictype/category-Cs: Likewise.
2657         * modules/unictype/category-L: Likewise.
2658         * modules/unictype/category-Ll: Likewise.
2659         * modules/unictype/category-Lm: Likewise.
2660         * modules/unictype/category-Lo: Likewise.
2661         * modules/unictype/category-Lt: Likewise.
2662         * modules/unictype/category-Lu: Likewise.
2663         * modules/unictype/category-M: Likewise.
2664         * modules/unictype/category-Mc: Likewise.
2665         * modules/unictype/category-Me: Likewise.
2666         * modules/unictype/category-Mn: Likewise.
2667         * modules/unictype/category-N: Likewise.
2668         * modules/unictype/category-Nd: Likewise.
2669         * modules/unictype/category-Nl: Likewise.
2670         * modules/unictype/category-No: Likewise.
2671         * modules/unictype/category-P: Likewise.
2672         * modules/unictype/category-Pc: Likewise.
2673         * modules/unictype/category-Pd: Likewise.
2674         * modules/unictype/category-Pe: Likewise.
2675         * modules/unictype/category-Pf: Likewise.
2676         * modules/unictype/category-Pi: Likewise.
2677         * modules/unictype/category-Po: Likewise.
2678         * modules/unictype/category-Ps: Likewise.
2679         * modules/unictype/category-S: Likewise.
2680         * modules/unictype/category-Sc: Likewise.
2681         * modules/unictype/category-Sk: Likewise.
2682         * modules/unictype/category-Sm: Likewise.
2683         * modules/unictype/category-So: Likewise.
2684         * modules/unictype/category-Z: Likewise.
2685         * modules/unictype/category-Zl: Likewise.
2686         * modules/unictype/category-Zp: Likewise.
2687         * modules/unictype/category-Zs: Likewise.
2688         * modules/unictype/category-and: Likewise.
2689         * modules/unictype/category-and-not: Likewise.
2690         * modules/unictype/category-byname: Likewise.
2691         * modules/unictype/category-name: Likewise.
2692         * modules/unictype/category-none: Likewise.
2693         * modules/unictype/category-of: Likewise.
2694         * modules/unictype/category-or: Likewise.
2695         * modules/unictype/category-test: Likewise.
2696         * modules/unictype/combining-class: Likewise.
2697         * modules/unictype/ctype-alnum: Likewise.
2698         * modules/unictype/ctype-alpha: Likewise.
2699         * modules/unictype/ctype-blank: Likewise.
2700         * modules/unictype/ctype-cntrl: Likewise.
2701         * modules/unictype/ctype-digit: Likewise.
2702         * modules/unictype/ctype-graph: Likewise.
2703         * modules/unictype/ctype-lower: Likewise.
2704         * modules/unictype/ctype-print: Likewise.
2705         * modules/unictype/ctype-punct: Likewise.
2706         * modules/unictype/ctype-space: Likewise.
2707         * modules/unictype/ctype-upper: Likewise.
2708         * modules/unictype/ctype-xdigit: Likewise.
2709         * modules/unictype/decimal-digit: Likewise.
2710         * modules/unictype/digit: Likewise.
2711         * modules/unictype/mirror: Likewise.
2712         * modules/unictype/numeric: Likewise.
2713         * modules/unictype/property-alphabetic: Likewise.
2714         * modules/unictype/property-ascii-hex-digit: Likewise.
2715         * modules/unictype/property-bidi-arabic-digit: Likewise.
2716         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2717         * modules/unictype/property-bidi-block-separator: Likewise.
2718         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2719         * modules/unictype/property-bidi-common-separator: Likewise.
2720         * modules/unictype/property-bidi-control: Likewise.
2721         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2722         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2723         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2724         * modules/unictype/property-bidi-european-digit: Likewise.
2725         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2726         * modules/unictype/property-bidi-left-to-right: Likewise.
2727         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2728         * modules/unictype/property-bidi-other-neutral: Likewise.
2729         * modules/unictype/property-bidi-pdf: Likewise.
2730         * modules/unictype/property-bidi-segment-separator: Likewise.
2731         * modules/unictype/property-bidi-whitespace: Likewise.
2732         * modules/unictype/property-byname: Likewise.
2733         * modules/unictype/property-combining: Likewise.
2734         * modules/unictype/property-composite: Likewise.
2735         * modules/unictype/property-currency-symbol: Likewise.
2736         * modules/unictype/property-dash: Likewise.
2737         * modules/unictype/property-decimal-digit: Likewise.
2738         * modules/unictype/property-default-ignorable-code-point: Likewise.
2739         * modules/unictype/property-deprecated: Likewise.
2740         * modules/unictype/property-diacritic: Likewise.
2741         * modules/unictype/property-extender: Likewise.
2742         * modules/unictype/property-format-control: Likewise.
2743         * modules/unictype/property-grapheme-base: Likewise.
2744         * modules/unictype/property-grapheme-extend: Likewise.
2745         * modules/unictype/property-grapheme-link: Likewise.
2746         * modules/unictype/property-hex-digit: Likewise.
2747         * modules/unictype/property-hyphen: Likewise.
2748         * modules/unictype/property-id-continue: Likewise.
2749         * modules/unictype/property-id-start: Likewise.
2750         * modules/unictype/property-ideographic: Likewise.
2751         * modules/unictype/property-ids-binary-operator: Likewise.
2752         * modules/unictype/property-ids-trinary-operator: Likewise.
2753         * modules/unictype/property-ignorable-control: Likewise.
2754         * modules/unictype/property-iso-control: Likewise.
2755         * modules/unictype/property-join-control: Likewise.
2756         * modules/unictype/property-left-of-pair: Likewise.
2757         * modules/unictype/property-line-separator: Likewise.
2758         * modules/unictype/property-logical-order-exception: Likewise.
2759         * modules/unictype/property-lowercase: Likewise.
2760         * modules/unictype/property-math: Likewise.
2761         * modules/unictype/property-non-break: Likewise.
2762         * modules/unictype/property-not-a-character: Likewise.
2763         * modules/unictype/property-numeric: Likewise.
2764         * modules/unictype/property-other-alphabetic: Likewise.
2765         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2766         * modules/unictype/property-other-grapheme-extend: Likewise.
2767         * modules/unictype/property-other-id-continue: Likewise.
2768         * modules/unictype/property-other-id-start: Likewise.
2769         * modules/unictype/property-other-lowercase: Likewise.
2770         * modules/unictype/property-other-math: Likewise.
2771         * modules/unictype/property-other-uppercase: Likewise.
2772         * modules/unictype/property-paired-punctuation: Likewise.
2773         * modules/unictype/property-paragraph-separator: Likewise.
2774         * modules/unictype/property-pattern-syntax: Likewise.
2775         * modules/unictype/property-pattern-white-space: Likewise.
2776         * modules/unictype/property-private-use: Likewise.
2777         * modules/unictype/property-punctuation: Likewise.
2778         * modules/unictype/property-quotation-mark: Likewise.
2779         * modules/unictype/property-radical: Likewise.
2780         * modules/unictype/property-sentence-terminal: Likewise.
2781         * modules/unictype/property-soft-dotted: Likewise.
2782         * modules/unictype/property-space: Likewise.
2783         * modules/unictype/property-terminal-punctuation: Likewise.
2784         * modules/unictype/property-test: Likewise.
2785         * modules/unictype/property-titlecase: Likewise.
2786         * modules/unictype/property-unassigned-code-value: Likewise.
2787         * modules/unictype/property-unified-ideograph: Likewise.
2788         * modules/unictype/property-uppercase: Likewise.
2789         * modules/unictype/property-variation-selector: Likewise.
2790         * modules/unictype/property-white-space: Likewise.
2791         * modules/unictype/property-xid-continue: Likewise.
2792         * modules/unictype/property-xid-start: Likewise.
2793         * modules/unictype/property-zero-width: Likewise.
2794         * modules/unictype/scripts: Likewise.
2795         * modules/unictype/syntax-c-ident: Likewise.
2796         * modules/unictype/syntax-c-whitespace: Likewise.
2797         * modules/unictype/syntax-java-ident: Likewise.
2798         * modules/unictype/syntax-java-whitespace: Likewise.
2799         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2800         * modules/unilbrk/u8-width-linebreaks: Likewise.
2801         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2802         * modules/unilbrk/u16-width-linebreaks: Likewise.
2803         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2804         * modules/unilbrk/u32-width-linebreaks: Likewise.
2805         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2806         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2807         * modules/uniname/uniname: Likewise.
2808         * modules/uninorm/canonical-decomposition: Likewise.
2809         * modules/uninorm/composition: Likewise.
2810         * modules/uninorm/decomposing-form: Likewise.
2811         * modules/uninorm/decomposition: Likewise.
2812         * modules/uninorm/filter: Likewise.
2813         * modules/uninorm/nfc: Likewise.
2814         * modules/uninorm/nfd: Likewise.
2815         * modules/uninorm/nfkc: Likewise.
2816         * modules/uninorm/nfkd: Likewise.
2817         * modules/uninorm/u8-normalize: Likewise.
2818         * modules/uninorm/u8-normcmp: Likewise.
2819         * modules/uninorm/u8-normcoll: Likewise.
2820         * modules/uninorm/u8-normxfrm: Likewise.
2821         * modules/uninorm/u16-normalize: Likewise.
2822         * modules/uninorm/u16-normcmp: Likewise.
2823         * modules/uninorm/u16-normcoll: Likewise.
2824         * modules/uninorm/u16-normxfrm: Likewise.
2825         * modules/uninorm/u32-normalize: Likewise.
2826         * modules/uninorm/u32-normcmp: Likewise.
2827         * modules/uninorm/u32-normcoll: Likewise.
2828         * modules/uninorm/u32-normxfrm: Likewise.
2829         * modules/unistdio/u8-asnprintf: Likewise.
2830         * modules/unistdio/u8-asprintf: Likewise.
2831         * modules/unistdio/u8-snprintf: Likewise.
2832         * modules/unistdio/u8-sprintf: Likewise.
2833         * modules/unistdio/u8-u8-asnprintf: Likewise.
2834         * modules/unistdio/u8-u8-asprintf: Likewise.
2835         * modules/unistdio/u8-u8-snprintf: Likewise.
2836         * modules/unistdio/u8-u8-sprintf: Likewise.
2837         * modules/unistdio/u8-u8-vasnprintf: Likewise.
2838         * modules/unistdio/u8-u8-vasprintf: Likewise.
2839         * modules/unistdio/u8-u8-vsnprintf: Likewise.
2840         * modules/unistdio/u8-u8-vsprintf: Likewise.
2841         * modules/unistdio/u8-vasnprintf: Likewise.
2842         * modules/unistdio/u8-vasprintf: Likewise.
2843         * modules/unistdio/u8-vsnprintf: Likewise.
2844         * modules/unistdio/u8-vsprintf: Likewise.
2845         * modules/unistdio/u16-asnprintf: Likewise.
2846         * modules/unistdio/u16-asprintf: Likewise.
2847         * modules/unistdio/u16-snprintf: Likewise.
2848         * modules/unistdio/u16-sprintf: Likewise.
2849         * modules/unistdio/u16-u16-asnprintf: Likewise.
2850         * modules/unistdio/u16-u16-asprintf: Likewise.
2851         * modules/unistdio/u16-u16-snprintf: Likewise.
2852         * modules/unistdio/u16-u16-sprintf: Likewise.
2853         * modules/unistdio/u16-u16-vasnprintf: Likewise.
2854         * modules/unistdio/u16-u16-vasprintf: Likewise.
2855         * modules/unistdio/u16-u16-vsnprintf: Likewise.
2856         * modules/unistdio/u16-u16-vsprintf: Likewise.
2857         * modules/unistdio/u16-vasnprintf: Likewise.
2858         * modules/unistdio/u16-vasprintf: Likewise.
2859         * modules/unistdio/u16-vsnprintf: Likewise.
2860         * modules/unistdio/u16-vsprintf: Likewise.
2861         * modules/unistdio/u32-asnprintf: Likewise.
2862         * modules/unistdio/u32-asprintf: Likewise.
2863         * modules/unistdio/u32-snprintf: Likewise.
2864         * modules/unistdio/u32-sprintf: Likewise.
2865         * modules/unistdio/u32-u32-asnprintf: Likewise.
2866         * modules/unistdio/u32-u32-asprintf: Likewise.
2867         * modules/unistdio/u32-u32-snprintf: Likewise.
2868         * modules/unistdio/u32-u32-sprintf: Likewise.
2869         * modules/unistdio/u32-u32-vasnprintf: Likewise.
2870         * modules/unistdio/u32-u32-vasprintf: Likewise.
2871         * modules/unistdio/u32-u32-vsnprintf: Likewise.
2872         * modules/unistdio/u32-u32-vsprintf: Likewise.
2873         * modules/unistdio/u32-vasnprintf: Likewise.
2874         * modules/unistdio/u32-vasprintf: Likewise.
2875         * modules/unistdio/u32-vsnprintf: Likewise.
2876         * modules/unistdio/u32-vsprintf: Likewise.
2877         * modules/unistdio/ulc-asnprintf: Likewise.
2878         * modules/unistdio/ulc-asprintf: Likewise.
2879         * modules/unistdio/ulc-fprintf: Likewise.
2880         * modules/unistdio/ulc-snprintf: Likewise.
2881         * modules/unistdio/ulc-sprintf: Likewise.
2882         * modules/unistdio/ulc-vasnprintf: Likewise.
2883         * modules/unistdio/ulc-vasprintf: Likewise.
2884         * modules/unistdio/ulc-vfprintf: Likewise.
2885         * modules/unistdio/ulc-vsnprintf: Likewise.
2886         * modules/unistdio/ulc-vsprintf: Likewise.
2887         * modules/unistr/u8-check: Likewise.
2888         * modules/unistr/u8-chr: Likewise.
2889         * modules/unistr/u8-cmp: Likewise.
2890         * modules/unistr/u8-cmp2: Likewise.
2891         * modules/unistr/u8-cpy: Likewise.
2892         * modules/unistr/u8-cpy-alloc: Likewise.
2893         * modules/unistr/u8-endswith: Likewise.
2894         * modules/unistr/u8-mblen: Likewise.
2895         * modules/unistr/u8-mbsnlen: Likewise.
2896         * modules/unistr/u8-mbtouc: Likewise.
2897         * modules/unistr/u8-mbtouc-unsafe: Likewise.
2898         * modules/unistr/u8-mbtoucr: Likewise.
2899         * modules/unistr/u8-move: Likewise.
2900         * modules/unistr/u8-next: Likewise.
2901         * modules/unistr/u8-prev: Likewise.
2902         * modules/unistr/u8-set: Likewise.
2903         * modules/unistr/u8-startswith: Likewise.
2904         * modules/unistr/u8-stpcpy: Likewise.
2905         * modules/unistr/u8-stpncpy: Likewise.
2906         * modules/unistr/u8-strcat: Likewise.
2907         * modules/unistr/u8-strchr: Likewise.
2908         * modules/unistr/u8-strcmp: Likewise.
2909         * modules/unistr/u8-strcoll: Likewise.
2910         * modules/unistr/u8-strcpy: Likewise.
2911         * modules/unistr/u8-strcspn: Likewise.
2912         * modules/unistr/u8-strdup: Likewise.
2913         * modules/unistr/u8-strlen: Likewise.
2914         * modules/unistr/u8-strmblen: Likewise.
2915         * modules/unistr/u8-strmbtouc: Likewise.
2916         * modules/unistr/u8-strncat: Likewise.
2917         * modules/unistr/u8-strncmp: Likewise.
2918         * modules/unistr/u8-strncpy: Likewise.
2919         * modules/unistr/u8-strnlen: Likewise.
2920         * modules/unistr/u8-strpbrk: Likewise.
2921         * modules/unistr/u8-strrchr: Likewise.
2922         * modules/unistr/u8-strspn: Likewise.
2923         * modules/unistr/u8-strstr: Likewise.
2924         * modules/unistr/u8-strtok: Likewise.
2925         * modules/unistr/u8-to-u16: Likewise.
2926         * modules/unistr/u8-to-u32: Likewise.
2927         * modules/unistr/u8-uctomb: Likewise.
2928         * modules/unistr/u16-check: Likewise.
2929         * modules/unistr/u16-chr: Likewise.
2930         * modules/unistr/u16-cmp: Likewise.
2931         * modules/unistr/u16-cmp2: Likewise.
2932         * modules/unistr/u16-cpy: Likewise.
2933         * modules/unistr/u16-cpy-alloc: Likewise.
2934         * modules/unistr/u16-endswith: Likewise.
2935         * modules/unistr/u16-mblen: Likewise.
2936         * modules/unistr/u16-mbsnlen: Likewise.
2937         * modules/unistr/u16-mbtouc: Likewise.
2938         * modules/unistr/u16-mbtouc-unsafe: Likewise.
2939         * modules/unistr/u16-mbtoucr: Likewise.
2940         * modules/unistr/u16-move: Likewise.
2941         * modules/unistr/u16-next: Likewise.
2942         * modules/unistr/u16-prev: Likewise.
2943         * modules/unistr/u16-set: Likewise.
2944         * modules/unistr/u16-startswith: Likewise.
2945         * modules/unistr/u16-stpcpy: Likewise.
2946         * modules/unistr/u16-stpncpy: Likewise.
2947         * modules/unistr/u16-strcat: Likewise.
2948         * modules/unistr/u16-strchr: Likewise.
2949         * modules/unistr/u16-strcmp: Likewise.
2950         * modules/unistr/u16-strcoll: Likewise.
2951         * modules/unistr/u16-strcpy: Likewise.
2952         * modules/unistr/u16-strcspn: Likewise.
2953         * modules/unistr/u16-strdup: Likewise.
2954         * modules/unistr/u16-strlen: Likewise.
2955         * modules/unistr/u16-strmblen: Likewise.
2956         * modules/unistr/u16-strmbtouc: Likewise.
2957         * modules/unistr/u16-strncat: Likewise.
2958         * modules/unistr/u16-strncmp: Likewise.
2959         * modules/unistr/u16-strncpy: Likewise.
2960         * modules/unistr/u16-strnlen: Likewise.
2961         * modules/unistr/u16-strpbrk: Likewise.
2962         * modules/unistr/u16-strrchr: Likewise.
2963         * modules/unistr/u16-strspn: Likewise.
2964         * modules/unistr/u16-strstr: Likewise.
2965         * modules/unistr/u16-strtok: Likewise.
2966         * modules/unistr/u16-to-u32: Likewise.
2967         * modules/unistr/u16-to-u8: Likewise.
2968         * modules/unistr/u16-uctomb: Likewise.
2969         * modules/unistr/u32-check: Likewise.
2970         * modules/unistr/u32-chr: Likewise.
2971         * modules/unistr/u32-cmp: Likewise.
2972         * modules/unistr/u32-cmp2: Likewise.
2973         * modules/unistr/u32-cpy: Likewise.
2974         * modules/unistr/u32-cpy-alloc: Likewise.
2975         * modules/unistr/u32-endswith: Likewise.
2976         * modules/unistr/u32-mblen: Likewise.
2977         * modules/unistr/u32-mbsnlen: Likewise.
2978         * modules/unistr/u32-mbtouc: Likewise.
2979         * modules/unistr/u32-mbtouc-unsafe: Likewise.
2980         * modules/unistr/u32-mbtoucr: Likewise.
2981         * modules/unistr/u32-move: Likewise.
2982         * modules/unistr/u32-next: Likewise.
2983         * modules/unistr/u32-prev: Likewise.
2984         * modules/unistr/u32-set: Likewise.
2985         * modules/unistr/u32-startswith: Likewise.
2986         * modules/unistr/u32-stpcpy: Likewise.
2987         * modules/unistr/u32-stpncpy: Likewise.
2988         * modules/unistr/u32-strcat: Likewise.
2989         * modules/unistr/u32-strchr: Likewise.
2990         * modules/unistr/u32-strcmp: Likewise.
2991         * modules/unistr/u32-strcoll: Likewise.
2992         * modules/unistr/u32-strcpy: Likewise.
2993         * modules/unistr/u32-strcspn: Likewise.
2994         * modules/unistr/u32-strdup: Likewise.
2995         * modules/unistr/u32-strlen: Likewise.
2996         * modules/unistr/u32-strmblen: Likewise.
2997         * modules/unistr/u32-strmbtouc: Likewise.
2998         * modules/unistr/u32-strncat: Likewise.
2999         * modules/unistr/u32-strncmp: Likewise.
3000         * modules/unistr/u32-strncpy: Likewise.
3001         * modules/unistr/u32-strnlen: Likewise.
3002         * modules/unistr/u32-strpbrk: Likewise.
3003         * modules/unistr/u32-strrchr: Likewise.
3004         * modules/unistr/u32-strspn: Likewise.
3005         * modules/unistr/u32-strstr: Likewise.
3006         * modules/unistr/u32-strtok: Likewise.
3007         * modules/unistr/u32-to-u16: Likewise.
3008         * modules/unistr/u32-to-u8: Likewise.
3009         * modules/unistr/u32-uctomb: Likewise.
3010         * modules/uniwbrk/u8-wordbreaks: Likewise.
3011         * modules/uniwbrk/u16-wordbreaks: Likewise.
3012         * modules/uniwbrk/u32-wordbreaks: Likewise.
3013         * modules/uniwbrk/ulc-wordbreaks: Likewise.
3014         * modules/uniwbrk/wordbreak-property: Likewise.
3015         * modules/uniwidth/u8-strwidth: Likewise.
3016         * modules/uniwidth/u8-width: Likewise.
3017         * modules/uniwidth/u16-strwidth: Likewise.
3018         * modules/uniwidth/u16-width: Likewise.
3019         * modules/uniwidth/u32-strwidth: Likewise.
3020         * modules/uniwidth/u32-width: Likewise.
3021         * modules/uniwidth/width: Likewise.
3022         * modules/unicase/cased-tests (Makefile.am): Link all test programs
3023         with $(LIBUNISTRING).
3024         * modules/unicase/ignorable-tests: Likewise.
3025         * modules/unicase/locale-language-tests: Likewise.
3026         * modules/unicase/tolower-tests: Likewise.
3027         * modules/unicase/totitle-tests: Likewise.
3028         * modules/unicase/toupper-tests: Likewise.
3029         * modules/unicase/u8-casecmp-tests: Likewise.
3030         * modules/unicase/u8-casecoll-tests: Likewise.
3031         * modules/unicase/u8-casefold-tests: Likewise.
3032         * modules/unicase/u8-is-cased-tests: Likewise.
3033         * modules/unicase/u8-is-casefolded-tests: Likewise.
3034         * modules/unicase/u8-is-lowercase-tests: Likewise.
3035         * modules/unicase/u8-is-titlecase-tests: Likewise.
3036         * modules/unicase/u8-is-uppercase-tests: Likewise.
3037         * modules/unicase/u8-tolower-tests: Likewise.
3038         * modules/unicase/u8-totitle-tests: Likewise.
3039         * modules/unicase/u8-toupper-tests: Likewise.
3040         * modules/unicase/u16-casecmp-tests: Likewise.
3041         * modules/unicase/u16-casecoll-tests: Likewise.
3042         * modules/unicase/u16-casefold-tests: Likewise.
3043         * modules/unicase/u16-is-cased-tests: Likewise.
3044         * modules/unicase/u16-is-casefolded-tests: Likewise.
3045         * modules/unicase/u16-is-lowercase-tests: Likewise.
3046         * modules/unicase/u16-is-titlecase-tests: Likewise.
3047         * modules/unicase/u16-is-uppercase-tests: Likewise.
3048         * modules/unicase/u16-tolower-tests: Likewise.
3049         * modules/unicase/u16-totitle-tests: Likewise.
3050         * modules/unicase/u16-toupper-tests: Likewise.
3051         * modules/unicase/u32-casecmp-tests: Likewise.
3052         * modules/unicase/u32-casecoll-tests: Likewise.
3053         * modules/unicase/u32-casefold-tests: Likewise.
3054         * modules/unicase/u32-is-cased-tests: Likewise.
3055         * modules/unicase/u32-is-casefolded-tests: Likewise.
3056         * modules/unicase/u32-is-lowercase-tests: Likewise.
3057         * modules/unicase/u32-is-titlecase-tests: Likewise.
3058         * modules/unicase/u32-is-uppercase-tests: Likewise.
3059         * modules/unicase/u32-tolower-tests: Likewise.
3060         * modules/unicase/u32-totitle-tests: Likewise.
3061         * modules/unicase/u32-toupper-tests: Likewise.
3062         * modules/unicase/ulc-casecmp-tests: Likewise.
3063         * modules/unicase/ulc-casecoll-tests: Likewise.
3064         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
3065         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
3066         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
3067         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
3068         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
3069         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
3070         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
3071         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
3072         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
3073         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
3074         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
3075         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
3076         * modules/unictype/bidicategory-byname-tests: Likewise.
3077         * modules/unictype/bidicategory-name-tests: Likewise.
3078         * modules/unictype/bidicategory-of-tests: Likewise.
3079         * modules/unictype/bidicategory-test-tests: Likewise.
3080         * modules/unictype/block-list-tests: Likewise.
3081         * modules/unictype/block-of-tests: Likewise.
3082         * modules/unictype/block-test-tests: Likewise.
3083         * modules/unictype/category-C-tests: Likewise.
3084         * modules/unictype/category-Cc-tests: Likewise.
3085         * modules/unictype/category-Cf-tests: Likewise.
3086         * modules/unictype/category-Cn-tests: Likewise.
3087         * modules/unictype/category-Co-tests: Likewise.
3088         * modules/unictype/category-Cs-tests: Likewise.
3089         * modules/unictype/category-L-tests: Likewise.
3090         * modules/unictype/category-Ll-tests: Likewise.
3091         * modules/unictype/category-Lm-tests: Likewise.
3092         * modules/unictype/category-Lo-tests: Likewise.
3093         * modules/unictype/category-Lt-tests: Likewise.
3094         * modules/unictype/category-Lu-tests: Likewise.
3095         * modules/unictype/category-M-tests: Likewise.
3096         * modules/unictype/category-Mc-tests: Likewise.
3097         * modules/unictype/category-Me-tests: Likewise.
3098         * modules/unictype/category-Mn-tests: Likewise.
3099         * modules/unictype/category-N-tests: Likewise.
3100         * modules/unictype/category-Nd-tests: Likewise.
3101         * modules/unictype/category-Nl-tests: Likewise.
3102         * modules/unictype/category-No-tests: Likewise.
3103         * modules/unictype/category-P-tests: Likewise.
3104         * modules/unictype/category-Pc-tests: Likewise.
3105         * modules/unictype/category-Pd-tests: Likewise.
3106         * modules/unictype/category-Pe-tests: Likewise.
3107         * modules/unictype/category-Pf-tests: Likewise.
3108         * modules/unictype/category-Pi-tests: Likewise.
3109         * modules/unictype/category-Po-tests: Likewise.
3110         * modules/unictype/category-Ps-tests: Likewise.
3111         * modules/unictype/category-S-tests: Likewise.
3112         * modules/unictype/category-Sc-tests: Likewise.
3113         * modules/unictype/category-Sk-tests: Likewise.
3114         * modules/unictype/category-Sm-tests: Likewise.
3115         * modules/unictype/category-So-tests: Likewise.
3116         * modules/unictype/category-Z-tests: Likewise.
3117         * modules/unictype/category-Zl-tests: Likewise.
3118         * modules/unictype/category-Zp-tests: Likewise.
3119         * modules/unictype/category-Zs-tests: Likewise.
3120         * modules/unictype/category-and-not-tests: Likewise.
3121         * modules/unictype/category-and-tests: Likewise.
3122         * modules/unictype/category-byname-tests: Likewise.
3123         * modules/unictype/category-name-tests: Likewise.
3124         * modules/unictype/category-none-tests: Likewise.
3125         * modules/unictype/category-of-tests: Likewise.
3126         * modules/unictype/category-or-tests: Likewise.
3127         * modules/unictype/category-test-withtable-tests: Likewise.
3128         * modules/unictype/combining-class-tests: Likewise.
3129         * modules/unictype/ctype-alnum-tests: Likewise.
3130         * modules/unictype/ctype-alpha-tests: Likewise.
3131         * modules/unictype/ctype-blank-tests: Likewise.
3132         * modules/unictype/ctype-cntrl-tests: Likewise.
3133         * modules/unictype/ctype-digit-tests: Likewise.
3134         * modules/unictype/ctype-graph-tests: Likewise.
3135         * modules/unictype/ctype-lower-tests: Likewise.
3136         * modules/unictype/ctype-print-tests: Likewise.
3137         * modules/unictype/ctype-punct-tests: Likewise.
3138         * modules/unictype/ctype-space-tests: Likewise.
3139         * modules/unictype/ctype-upper-tests: Likewise.
3140         * modules/unictype/ctype-xdigit-tests: Likewise.
3141         * modules/unictype/decimal-digit-tests: Likewise.
3142         * modules/unictype/digit-tests: Likewise.
3143         * modules/unictype/mirror-tests: Likewise.
3144         * modules/unictype/numeric-tests: Likewise.
3145         * modules/unictype/property-alphabetic-tests: Likewise.
3146         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
3147         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
3148         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
3149         * modules/unictype/property-bidi-block-separator-tests: Likewise.
3150         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
3151         * modules/unictype/property-bidi-common-separator-tests: Likewise.
3152         * modules/unictype/property-bidi-control-tests: Likewise.
3153         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
3154         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
3155         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
3156         * modules/unictype/property-bidi-european-digit-tests: Likewise.
3157         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
3158         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
3159         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
3160         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
3161         * modules/unictype/property-bidi-pdf-tests: Likewise.
3162         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
3163         * modules/unictype/property-bidi-whitespace-tests: Likewise.
3164         * modules/unictype/property-byname-tests: Likewise.
3165         * modules/unictype/property-combining-tests: Likewise.
3166         * modules/unictype/property-composite-tests: Likewise.
3167         * modules/unictype/property-currency-symbol-tests: Likewise.
3168         * modules/unictype/property-dash-tests: Likewise.
3169         * modules/unictype/property-decimal-digit-tests: Likewise.
3170         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
3171         * modules/unictype/property-deprecated-tests: Likewise.
3172         * modules/unictype/property-diacritic-tests: Likewise.
3173         * modules/unictype/property-extender-tests: Likewise.
3174         * modules/unictype/property-format-control-tests: Likewise.
3175         * modules/unictype/property-grapheme-base-tests: Likewise.
3176         * modules/unictype/property-grapheme-extend-tests: Likewise.
3177         * modules/unictype/property-grapheme-link-tests: Likewise.
3178         * modules/unictype/property-hex-digit-tests: Likewise.
3179         * modules/unictype/property-hyphen-tests: Likewise.
3180         * modules/unictype/property-id-continue-tests: Likewise.
3181         * modules/unictype/property-id-start-tests: Likewise.
3182         * modules/unictype/property-ideographic-tests: Likewise.
3183         * modules/unictype/property-ids-binary-operator-tests: Likewise.
3184         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
3185         * modules/unictype/property-ignorable-control-tests: Likewise.
3186         * modules/unictype/property-iso-control-tests: Likewise.
3187         * modules/unictype/property-join-control-tests: Likewise.
3188         * modules/unictype/property-left-of-pair-tests: Likewise.
3189         * modules/unictype/property-line-separator-tests: Likewise.
3190         * modules/unictype/property-logical-order-exception-tests: Likewise.
3191         * modules/unictype/property-lowercase-tests: Likewise.
3192         * modules/unictype/property-math-tests: Likewise.
3193         * modules/unictype/property-non-break-tests: Likewise.
3194         * modules/unictype/property-not-a-character-tests: Likewise.
3195         * modules/unictype/property-numeric-tests: Likewise.
3196         * modules/unictype/property-other-alphabetic-tests: Likewise.
3197         * modules/unictype/property-other-default-ignorable-code-point-tests:
3198         Likewise.
3199         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
3200         * modules/unictype/property-other-id-continue-tests: Likewise.
3201         * modules/unictype/property-other-id-start-tests: Likewise.
3202         * modules/unictype/property-other-lowercase-tests: Likewise.
3203         * modules/unictype/property-other-math-tests: Likewise.
3204         * modules/unictype/property-other-uppercase-tests: Likewise.
3205         * modules/unictype/property-paired-punctuation-tests: Likewise.
3206         * modules/unictype/property-paragraph-separator-tests: Likewise.
3207         * modules/unictype/property-pattern-syntax-tests: Likewise.
3208         * modules/unictype/property-pattern-white-space-tests: Likewise.
3209         * modules/unictype/property-private-use-tests: Likewise.
3210         * modules/unictype/property-punctuation-tests: Likewise.
3211         * modules/unictype/property-quotation-mark-tests: Likewise.
3212         * modules/unictype/property-radical-tests: Likewise.
3213         * modules/unictype/property-sentence-terminal-tests: Likewise.
3214         * modules/unictype/property-soft-dotted-tests: Likewise.
3215         * modules/unictype/property-space-tests: Likewise.
3216         * modules/unictype/property-terminal-punctuation-tests: Likewise.
3217         * modules/unictype/property-test-tests: Likewise.
3218         * modules/unictype/property-titlecase-tests: Likewise.
3219         * modules/unictype/property-unassigned-code-value-tests: Likewise.
3220         * modules/unictype/property-unified-ideograph-tests: Likewise.
3221         * modules/unictype/property-uppercase-tests: Likewise.
3222         * modules/unictype/property-variation-selector-tests: Likewise.
3223         * modules/unictype/property-white-space-tests: Likewise.
3224         * modules/unictype/property-xid-continue-tests: Likewise.
3225         * modules/unictype/property-xid-start-tests: Likewise.
3226         * modules/unictype/property-zero-width-tests: Likewise.
3227         * modules/unictype/scripts-tests: Likewise.
3228         * modules/unictype/syntax-c-ident-tests: Likewise.
3229         * modules/unictype/syntax-c-whitespace-tests: Likewise.
3230         * modules/unictype/syntax-java-ident-tests: Likewise.
3231         * modules/unictype/syntax-java-whitespace-tests: Likewise.
3232         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
3233         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
3234         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
3235         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
3236         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
3237         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
3238         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
3239         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
3240         * modules/uniname/uniname-tests: Likewise.
3241         * modules/uninorm/canonical-decomposition-tests: Likewise.
3242         * modules/uninorm/compat-decomposition-tests: Likewise.
3243         * modules/uninorm/composition-tests: Likewise.
3244         * modules/uninorm/decomposing-form-tests: Likewise.
3245         * modules/uninorm/decomposition-tests: Likewise.
3246         * modules/uninorm/filter-tests: Likewise.
3247         * modules/uninorm/nfc-tests: Likewise.
3248         * modules/uninorm/nfd-tests: Likewise.
3249         * modules/uninorm/nfkc-tests: Likewise.
3250         * modules/uninorm/nfkd-tests: Likewise.
3251         * modules/uninorm/u8-normcmp-tests: Likewise.
3252         * modules/uninorm/u8-normcoll-tests: Likewise.
3253         * modules/uninorm/u16-normcmp-tests: Likewise.
3254         * modules/uninorm/u16-normcoll-tests: Likewise.
3255         * modules/uninorm/u32-normcmp-tests: Likewise.
3256         * modules/uninorm/u32-normcoll-tests: Likewise.
3257         * modules/unistdio/u8-asnprintf-tests: Likewise.
3258         * modules/unistdio/u8-vasnprintf-tests: Likewise.
3259         * modules/unistdio/u8-vasprintf-tests: Likewise.
3260         * modules/unistdio/u8-vsnprintf-tests: Likewise.
3261         * modules/unistdio/u8-vsprintf-tests: Likewise.
3262         * modules/unistdio/u16-asnprintf-tests: Likewise.
3263         * modules/unistdio/u16-vasnprintf-tests: Likewise.
3264         * modules/unistdio/u16-vasprintf-tests: Likewise.
3265         * modules/unistdio/u16-vsnprintf-tests: Likewise.
3266         * modules/unistdio/u16-vsprintf-tests: Likewise.
3267         * modules/unistdio/u32-asnprintf-tests: Likewise.
3268         * modules/unistdio/u32-vasnprintf-tests: Likewise.
3269         * modules/unistdio/u32-vasprintf-tests: Likewise.
3270         * modules/unistdio/u32-vsnprintf-tests: Likewise.
3271         * modules/unistdio/u32-vsprintf-tests: Likewise.
3272         * modules/unistdio/ulc-asnprintf-tests: Likewise.
3273         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
3274         * modules/unistdio/ulc-vasprintf-tests: Likewise.
3275         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
3276         * modules/unistdio/ulc-vsprintf-tests: Likewise.
3277         * modules/unistr/u8-check-tests: Likewise.
3278         * modules/unistr/u8-chr-tests: Likewise.
3279         * modules/unistr/u8-cmp-tests: Likewise.
3280         * modules/unistr/u8-cmp2-tests: Likewise.
3281         * modules/unistr/u8-cpy-alloc-tests: Likewise.
3282         * modules/unistr/u8-cpy-tests: Likewise.
3283         * modules/unistr/u8-mblen-tests: Likewise.
3284         * modules/unistr/u8-mbsnlen-tests: Likewise.
3285         * modules/unistr/u8-mbtouc-tests: Likewise.
3286         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
3287         * modules/unistr/u8-mbtoucr-tests: Likewise.
3288         * modules/unistr/u8-move-tests: Likewise.
3289         * modules/unistr/u8-next-tests: Likewise.
3290         * modules/unistr/u8-prev-tests: Likewise.
3291         * modules/unistr/u8-set-tests: Likewise.
3292         * modules/unistr/u8-stpcpy-tests: Likewise.
3293         * modules/unistr/u8-stpncpy-tests: Likewise.
3294         * modules/unistr/u8-strcat-tests: Likewise.
3295         * modules/unistr/u8-strcmp-tests: Likewise.
3296         * modules/unistr/u8-strcoll-tests: Likewise.
3297         * modules/unistr/u8-strcpy-tests: Likewise.
3298         * modules/unistr/u8-strdup-tests: Likewise.
3299         * modules/unistr/u8-strlen-tests: Likewise.
3300         * modules/unistr/u8-strmblen-tests: Likewise.
3301         * modules/unistr/u8-strmbtouc-tests: Likewise.
3302         * modules/unistr/u8-strncat-tests: Likewise.
3303         * modules/unistr/u8-strncmp-tests: Likewise.
3304         * modules/unistr/u8-strncpy-tests: Likewise.
3305         * modules/unistr/u8-strnlen-tests: Likewise.
3306         * modules/unistr/u8-to-u16-tests: Likewise.
3307         * modules/unistr/u8-to-u32-tests: Likewise.
3308         * modules/unistr/u8-uctomb-tests: Likewise.
3309         * modules/unistr/u16-check-tests: Likewise.
3310         * modules/unistr/u16-chr-tests: Likewise.
3311         * modules/unistr/u16-cmp-tests: Likewise.
3312         * modules/unistr/u16-cmp2-tests: Likewise.
3313         * modules/unistr/u16-cpy-alloc-tests: Likewise.
3314         * modules/unistr/u16-cpy-tests: Likewise.
3315         * modules/unistr/u16-mblen-tests: Likewise.
3316         * modules/unistr/u16-mbsnlen-tests: Likewise.
3317         * modules/unistr/u16-mbtouc-tests: Likewise.
3318         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
3319         * modules/unistr/u16-mbtoucr-tests: Likewise.
3320         * modules/unistr/u16-move-tests: Likewise.
3321         * modules/unistr/u16-next-tests: Likewise.
3322         * modules/unistr/u16-prev-tests: Likewise.
3323         * modules/unistr/u16-set-tests: Likewise.
3324         * modules/unistr/u16-stpcpy-tests: Likewise.
3325         * modules/unistr/u16-stpncpy-tests: Likewise.
3326         * modules/unistr/u16-strcat-tests: Likewise.
3327         * modules/unistr/u16-strcmp-tests: Likewise.
3328         * modules/unistr/u16-strcoll-tests: Likewise.
3329         * modules/unistr/u16-strcpy-tests: Likewise.
3330         * modules/unistr/u16-strdup-tests: Likewise.
3331         * modules/unistr/u16-strlen-tests: Likewise.
3332         * modules/unistr/u16-strmblen-tests: Likewise.
3333         * modules/unistr/u16-strmbtouc-tests: Likewise.
3334         * modules/unistr/u16-strncat-tests: Likewise.
3335         * modules/unistr/u16-strncmp-tests: Likewise.
3336         * modules/unistr/u16-strncpy-tests: Likewise.
3337         * modules/unistr/u16-strnlen-tests: Likewise.
3338         * modules/unistr/u16-to-u32-tests: Likewise.
3339         * modules/unistr/u16-to-u8-tests: Likewise.
3340         * modules/unistr/u16-uctomb-tests: Likewise.
3341         * modules/unistr/u32-check-tests: Likewise.
3342         * modules/unistr/u32-chr-tests: Likewise.
3343         * modules/unistr/u32-cmp-tests: Likewise.
3344         * modules/unistr/u32-cmp2-tests: Likewise.
3345         * modules/unistr/u32-cpy-alloc-tests: Likewise.
3346         * modules/unistr/u32-cpy-tests: Likewise.
3347         * modules/unistr/u32-mblen-tests: Likewise.
3348         * modules/unistr/u32-mbsnlen-tests: Likewise.
3349         * modules/unistr/u32-mbtouc-tests: Likewise.
3350         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
3351         * modules/unistr/u32-mbtoucr-tests: Likewise.
3352         * modules/unistr/u32-move-tests: Likewise.
3353         * modules/unistr/u32-next-tests: Likewise.
3354         * modules/unistr/u32-prev-tests: Likewise.
3355         * modules/unistr/u32-set-tests: Likewise.
3356         * modules/unistr/u32-stpcpy-tests: Likewise.
3357         * modules/unistr/u32-stpncpy-tests: Likewise.
3358         * modules/unistr/u32-strcat-tests: Likewise.
3359         * modules/unistr/u32-strcmp-tests: Likewise.
3360         * modules/unistr/u32-strcoll-tests: Likewise.
3361         * modules/unistr/u32-strcpy-tests: Likewise.
3362         * modules/unistr/u32-strdup-tests: Likewise.
3363         * modules/unistr/u32-strlen-tests: Likewise.
3364         * modules/unistr/u32-strmblen-tests: Likewise.
3365         * modules/unistr/u32-strmbtouc-tests: Likewise.
3366         * modules/unistr/u32-strncat-tests: Likewise.
3367         * modules/unistr/u32-strncmp-tests: Likewise.
3368         * modules/unistr/u32-strncpy-tests: Likewise.
3369         * modules/unistr/u32-strnlen-tests: Likewise.
3370         * modules/unistr/u32-to-u16-tests: Likewise.
3371         * modules/unistr/u32-to-u8-tests: Likewise.
3372         * modules/unistr/u32-uctomb-tests: Likewise.
3373         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
3374         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
3375         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
3376         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
3377         * modules/uniwidth/u8-strwidth-tests: Likewise.
3378         * modules/uniwidth/u8-width-tests: Likewise.
3379         * modules/uniwidth/u16-strwidth-tests: Likewise.
3380         * modules/uniwidth/u16-width-tests: Likewise.
3381         * modules/uniwidth/u32-strwidth-tests: Likewise.
3382         * modules/uniwidth/u32-width-tests: Likewise.
3383         * modules/uniwidth/width-tests: Likewise.
3384
3385 2010-05-18  Richard Jones  <rjones@redhat.com>
3386
3387         doc: users.txt: list hivex
3388         * users.txt: Add hivex.
3389
3390 2010-05-18  Richard Jones  <rjones@redhat.com>
3391
3392         doc: users.txt: list febootstrap
3393         * users.txt: Add febootstrap.
3394
3395 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
3396
3397         bootstrap: fix an error when gnulib is not used as a git submodule
3398         * build-aux/bootstrap (gnulib_path): If its length is zero then
3399         assign "gnulib" to it.
3400         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
3401
3402 2010-05-16  Bruno Haible  <bruno@clisp.org>
3403
3404         Avoid autoconf warnings about AM_ICONV.
3405         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
3406         2.64.
3407
3408 2010-05-16  Bruno Haible  <bruno@clisp.org>
3409
3410         absolute-header: Make the macro usable in more situations.
3411         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
3412         from gl_ABSOLUTE_HEADER.
3413         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
3414
3415 2010-05-16  James Youngman  <jay@gnu.org>
3416
3417         doc: update users.txt
3418         * users.txt: Add CSSC.
3419
3420 2010-05-16  Jim Meyering  <meyering@redhat.com>
3421
3422         init.sh: fix an error in the previous change; add more comments
3423         * tests/init.sh: Compare exit code in loop against 9, not 2.
3424         Patch by Bruno Haible.
3425         Make the two tests more similar by adding an empty "then" clause.
3426         Add comments.
3427
3428         init.sh: avoid unnecessary shell re-exec
3429         * tests/init.sh: Improve the re-exec-required check to first test the
3430         current shell.  If it passes the test, do not search for a shell that
3431         does pass, and do not re-exec.  This test is particularly contorted to
3432         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
3433         of $(...) evokes a syntax error and causes immediate shell exit with
3434         status 2.  Bruno Haible reported that the re-exec made it impossible
3435         to single-step through any init.sh-using script.
3436
3437 2010-05-16  Bruno Haible  <bruno@clisp.org>
3438
3439         Fix collision between gnulib's and libintl's printf replacements.
3440         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
3441         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
3442         (printf): When using GNU C, map the __printf__ function to rpl_printf
3443         via __asm__. When not using GNU C, define rpl_printf instead of
3444         __printf__.
3445         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
3446         commit.
3447         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
3448         commit.
3449         * m4/asm-underscore.m4: New file.
3450         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
3451         * modules/stdio (Files): Add m4/asm-underscore.m4.
3452         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
3453         Reported by Ben Pfaff.
3454
3455 2010-05-16  Bruno Haible  <bruno@clisp.org>
3456
3457         verify: Avoid skipping the test on openSUSE 11.0.
3458         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
3459
3460 2010-05-13  Bruno Haible  <bruno@clisp.org>
3461
3462         Avoid useless warnings from G++.
3463         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
3464         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
3465         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3466
3467 2010-05-11  Jim Meyering  <meyering@redhat.com>
3468
3469         maint.mk: tweak preceding change
3470         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
3471         regexps tighter by anchoring at EOL, and make the new group "shy"
3472         for slightly decreased overhead.
3473
3474 2010-05-11  Eric Blake  <eblake@redhat.com>
3475
3476         maint.mk: gnulib doesn't guarantee NSIG
3477         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
3478
3479 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3480
3481         test-pwrite.c: Remove unused variable declaration.
3482         * tests/test-pwrite.c (main): Remove read_buf declaration.
3483
3484         Remove useless test-pwrite.sh file.
3485         * tests/test-pwrite.sh: Delete file.
3486         * modules/pwrite-tests: Remove references.
3487         Reported by Bruno Haible.
3488
3489 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3490
3491         init.sh: fix a typo
3492         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
3493
3494 2010-05-10  Jim Meyering  <meyering@redhat.com>
3495
3496         maint.mk: avoid using a temporary file in the always-defined-macros check
3497         * top/maint.mk (.re-defmac): Remove rule.
3498         (gl_trap_): Remove definition.
3499         (sc_prohibit_always-defined_macros): Rewrite not to create and
3500         depend on a temporary file.  Instead, depend on GNU grep's ability
3501         to read a list of regular expressions from stdin when given "-f -".
3502
3503 2010-05-09  Bruno Haible  <bruno@clisp.org>
3504
3505         Update to GNU gettext 0.18, part 1.
3506         * m4/gettext.m4: Update to GNU gettext 0.18.
3507         * m4/intl.m4: Likewise.
3508         * m4/po.m4: Likewise.
3509         * modules/gettext (Files): Add m4/fcntl-o.m4.
3510         (configure.ac): Require gettext infrastructure from version 0.18.
3511
3512 2010-05-09  Jim Meyering  <meyering@redhat.com>
3513
3514         init.sh: enable MALLOC_PERTURB_
3515         * tests/init.sh: Enable glibc's malloc-perturbing option.
3516
3517         maint.mk: improve sc_cross_check_PATH_usage_in_tests
3518         With my recent change in init.sh from the two-line form:
3519             -#   : ${srcdir=.}
3520             -#   . "$srcdir/init.sh"; path_prepend_ .
3521             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
3522         I noticed that using the one-line form would cause this test
3523         to fail with a false-positive, or to stop working altogether,
3524         depending on whether help-version changed or all the tests did.
3525         * top/maint.mk (_hv_regex): Remove this definition.
3526         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
3527         (_hv_regex_strong): Use a stronger regex to check for conformance.
3528         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
3529         Give a separate diagnostic for lack of conforming use.
3530
3531         maint.mk: prohibit definition of symbols defined by gnulib
3532         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
3533         definition of symbols defined by gnulib.
3534
3535 2010-05-09  Bruno Haible  <bruno@clisp.org>
3536
3537         acl: Avoid test failure on Cygwin-hosted mingw.
3538         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
3539
3540 2010-05-09  Bruno Haible  <bruno@clisp.org>
3541
3542         error: Use system's fcntl function.
3543         * lib/error.c (fcntl): Undefine.
3544
3545 2010-05-09  Jim Meyering  <meyering@redhat.com>
3546
3547         verify: adjust formatting to be more consistent
3548         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
3549         argument-list '('s, and after one comma.
3550
3551 2010-05-09  Bruno Haible  <bruno@clisp.org>
3552
3553         error: More reliable output on mingw.
3554         * lib/error.c: Include <windows.h>.
3555         (is_open): New function.
3556         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
3557         defined.
3558
3559 2010-05-09  Bruno Haible  <bruno@clisp.org>
3560
3561         vasnprintf: Fix syntax errors in libintl build on mingw.
3562         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
3563         pad_ourselves and prec_ourselves after use.
3564
3565 2010-05-08  Bruno Haible  <bruno@clisp.org>
3566
3567         * lib/config.charset: Update comments for Cygwin 1.7.
3568         * lib/localcharset.c: Likewise.
3569
3570 2010-05-07  Jim Meyering  <meyering@redhat.com>
3571
3572         init.sh: improve comments
3573         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
3574         . "${srcdir=.}/init.sh"; path_prepend_ .
3575         Add a note about path_prepend_ and the alternative of using
3576         TESTS_ENVIRONMENT.
3577
3578 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3579
3580         exclude: Unescape hashed patterns in wildcard mode.
3581         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
3582         to the hash list.
3583         * tests/test-exclude8.sh: New test case.
3584         * modules/exclude-tests: Add new test.
3585
3586 2010-05-05  Eric Blake  <eblake@redhat.com>
3587
3588         verify: automate tests
3589         * modules/verify-tests: New module.
3590         * tests/test-verify.sh: New file.
3591         * tests/test-verify.c: Guard each negative test with a unique id.
3592         Also avoid warning about unused left hand of comma expressions.
3593
3594 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3595
3596         Further improvements to verify.h, suggested by Eric Blake.
3597         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3598         the GL_* versions, to avoid collision with OpenGL.
3599         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3600         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3601         than testing merely whether it's defined.
3602
3603         Modify verify.h to pacify gcc -Wredundant_decls.
3604         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3605         These use the prefix "GL_" since they're likely to be useful elsewhere.
3606         We may need to break them out into a different .h file.
3607         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3608         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3609         of verify_function__.
3610
3611 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3612
3613         Tests for module pwrite.
3614         * modules/pwrite-tests: New file.
3615         * tests/test-pwrite.sh: New file.
3616         * tests/test-pwrite.c: New file.
3617
3618         New module pwrite.
3619         * lib/unistd.in.h (pwrite): New declaration.
3620         * lib/pwrite.c: New file, from glibc with modifications.
3621         * m4/pwrite.m4: New file.
3622         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3623         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3624         REPLACE_PWRITE.
3625         * modules/pwrite: New file.
3626         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3627         REPLACE_PWRITE.
3628         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3629         * doc/posix-functions/pwrite.texi: Mention the new module.
3630
3631 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3632
3633         pread: Update documentation.
3634         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3635
3636 2010-05-04  Eric Blake  <eblake@redhat.com>
3637
3638         docs: update cygwin progress
3639         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3640         this bug.
3641         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3642         Added in cygwin 1.7.2.
3643         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3644         Likewise.
3645         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3646         Likewise.
3647         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3648         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3649         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3650         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3651         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3652         Mention nproc module.
3653         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3654         bug in cygwin 1.7.5 addition.
3655         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3656         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3657         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3658         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3659         1.7.5.
3660         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3661         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3662         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3663         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3664         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3665         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3666         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3667         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3668         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3669         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3670         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3671         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3672         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3673         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3674         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3675         Likewise.
3676         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3677         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3678         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3679         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3680         Likewise.
3681         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3682         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3683         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3684         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3685         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3686         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3687         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3688         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3689         Likewise.
3690         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3691         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3692         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3693         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3694         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3695         Likewise.
3696         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3697         Likewise.
3698         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3699         Likewise.
3700         * doc/glibc-functions/xdrrec_endofrecord.texi
3701         (xdrrec_endofrecord): Likewise.
3702         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3703         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3704         Likewise.
3705         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3706         Likewise.
3707
3708 2010-05-04  Jim Meyering  <meyering@redhat.com>
3709
3710         gendocs.sh: make its "-s FILE" option more useful
3711         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3712         $PACKAGE to reflect the probably-different basename of "FILE".
3713
3714 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3715
3716         bootstrap: don't ignore download_po_files failure
3717         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3718         failure.
3719
3720 2010-05-03  Jim Meyering  <meyering@redhat.com>
3721
3722         maint.mk: allow to pass options to gendocs.sh
3723         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3724         (gendocs_options_): New overridable variable.
3725
3726         gnu-web-doc-update: don't ignore configure or build failure
3727         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3728
3729         announce-gen: backslash-escape '@'s in --help output
3730         * build-aux/announce-gen: Fix syntax errors.
3731
3732         maint.mk, announce-gen: allow project-specific announcement mail headers
3733         * top/maint.mk (translation_project_): Define default.
3734         (announcement_Cc_, announcement_mail_headers_): Likewise.
3735         (announcement): Invoke announce-gen with new --mail-headers option.
3736         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3737
3738         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3739         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3740         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3741         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3742         line in the "err2" output file when running "make check" in verbose
3743         mode (i.e., with set -x enabled).
3744
3745 2010-05-03  Bruno Haible  <bruno@clisp.org>
3746
3747         wctob: Fix for weird platforms.
3748         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3749         argument value.
3750
3751 2010-05-03  Jim Meyering  <meyering@redhat.com>
3752
3753         maint.mk: prohibit unwarranted use of <strings.h>
3754         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3755         strings.h in a file that does not also use strcasecmp, strncasecmp,
3756         ffs or ffsll.
3757
3758         maint.mk: remove obsolete comments
3759         * top/maint.mk: Remove stale, commented-out rules.
3760
3761 2010-05-02  Bruno Haible  <bruno@clisp.org>
3762
3763         wcwidth: Declare also when it's aliased.
3764         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3765         macro.
3766
3767 2010-05-02  Bruno Haible  <bruno@clisp.org>
3768
3769         Fix regression from 2010-04-25.
3770         * gnulib-tool (func_modules_transitive_closure): Check the status of
3771         all modules, not only of the tests that are of the form foo-tests where
3772         foo is a module.
3773
3774 2010-05-02  Bruno Haible  <bruno@clisp.org>
3775
3776         wctob: Work around nasty Cygwin 1.7.2 bug.
3777         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3778         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3779
3780 2010-05-01  Bruno Haible  <bruno@clisp.org>
3781
3782         fpurge: Sharper test.
3783         * tests/test-fpurge.c (main): Add one more ftell check.
3784         * modules/fpurge-tests (Depends-on): Add ftell.
3785         Suggested by Eric Blake.
3786
3787 2010-05-01  Bruno Haible  <bruno@clisp.org>
3788
3789         ftello: Another test.
3790         * tests/test-ftello3.c: New file.
3791         * modules/ftello-tests (Files): Add it.
3792         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3793         MOSTLYCLEANFILES.
3794
3795         ftell: Another test.
3796         * tests/test-ftell3.c: New file.
3797         * modules/ftell-tests (Files): Add it.
3798         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3799         MOSTLYCLEANFILES.
3800
3801 2010-05-01  Bruno Haible  <bruno@clisp.org>
3802
3803         ftell, ftello: Work around Solaris bug.
3804         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3805         * lib/ftello.c: Include stdio-impl.h.
3806         (ftello): On Solaris, when _IOWRT is set, compute the result without
3807         looking at _IOREAD.
3808         * modules/ftello (Files): Add lib/stdio-impl.h.
3809         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3810         * doc/posix-functions/ftello.texi: Likewise.
3811         Reported by Eric Blake.
3812
3813 2010-05-01  Bruno Haible  <bruno@clisp.org>
3814
3815         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3816         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3817         the _IOWRT flag is also set.
3818
3819 2010-05-01  Bruno Haible  <bruno@clisp.org>
3820
3821         Fix doc about a HP-UX stdio bug.
3822         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3823         * doc/posix-functions/ftello.texi: Likewise.
3824
3825 2010-05-01  Bruno Haible  <bruno@clisp.org>
3826
3827         lseek test: Fix failure on Solaris.
3828         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3829         output.
3830
3831 2010-04-30  Jim Meyering  <meyering@redhat.com>
3832
3833         bootstrap: don't ignore failure to generate po*/Makevars
3834         * build-aux/bootstrap (with_gettext): Don't ignore failure
3835         to create po/Makevars or runtime-po/Makevars.
3836
3837 2010-04-29  Eric Blake  <eblake@redhat.com>
3838
3839         headers: relax license to LGPLv2+
3840         * modules/fcntl-h (License): Relax license.
3841         * modules/getopt-posix (License): Likewise.
3842         * modules/locale (License): Likewise.
3843         * modules/math (License): Likewise.
3844         * modules/pty (License): Likewise.
3845         * modules/sched (License): Likewise.
3846         * modules/search (License): Likewise.
3847         * modules/spawn (License): Likewise.
3848         * modules/stdarg (License): Likewise.
3849         * modules/sysexits (License): Likewise.
3850
3851 2010-04-29  Jim Meyering  <meyering@redhat.com>
3852
3853         inttypes: relax license to LGPLv2+
3854         * modules/inttypes (License): Relax license.
3855
3856 2010-04-29  Simon Josefsson  <simon@josefsson.org>
3857
3858         * top/maint.mk (indent): Run twice to produce idempotent results.
3859
3860 2010-04-28  Bruno Haible  <bruno@clisp.org>
3861
3862         getdate: Generate getdate.c in the source directory.
3863         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
3864         MOSTLYCLEANFILES.
3865         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
3866
3867 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
3868
3869         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
3870         is not declared as a const *; avoid warnings in that case.
3871
3872 2010-04-28  Eric Blake  <eblake@redhat.com>
3873
3874         canonicalize-lgpl: avoid compiler warning
3875         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
3876         declaration' / 'extraneous semicolon' warning with some compilers.
3877         Reported by Andreas Gruenbacher.
3878
3879 2010-04-28  Jim Meyering  <meyering@redhat.com>
3880
3881         init.sh: ensure a more reliable exit status when exiting via trap
3882         * tests/init.sh (setup_): Don't rely on $? in signal handler.
3883         Inspired by patches from Dmitry V. Levin.
3884         Also trap on signal 3 (SIGQUIT).
3885
3886 2010-04-27  Bruno Haible  <bruno@clisp.org>
3887
3888         Update doc about utimes().
3889         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
3890         'utimens' module.
3891         Reported by Andreas Gruenbacher <agruen@suse.de>.
3892
3893 2010-04-27  Eric Blake  <eblake@redhat.com>
3894
3895         full-read, full-write: relax license
3896         * modules/full-read (License): Drop to LGPLv2+.
3897         * modules/full-write (License): Likewise.
3898         * modules/safe-read (License): Likewise.
3899         * modules/safe-write (License): Likewise.
3900
3901         pthread: mention library for linking
3902         * modules/pthread (Link): Mention $(LIB_PTHREAD).
3903
3904 2010-04-27  Jim Meyering  <meyering@redhat.com>
3905
3906         maint.mk: fix a bug introduced in last change
3907         * top/maint.mk (gl_assured_headers_): Now that all names are on
3908         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
3909         is not anchored to end of word, it should be adequate.
3910
3911         maint.mk: avoid side-effect in latest syntax-check
3912         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
3913         to run commands via $(shell...), and hence to incur cost only when
3914         the new rule is actually run.
3915
3916         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
3917         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
3918         and use that to create a regexp used to detect all #if HAVE_..._H uses.
3919         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
3920         (gl_assured_headers_, az_, AZ_): Define.
3921         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
3922
3923 2010-04-26  Jim Meyering  <jim@meyering.net>
3924             Bruno Haible  <bruno@clisp.org>
3925
3926         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
3927         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
3928         Prompted by an exchange with Gilles Espinasse.
3929
3930 2010-04-26  Jim Meyering  <meyering@redhat.com>
3931
3932         git-version-gen: aesthetic tweak
3933         * build-aux/git-version-gen: Use "$nl" rather than a literal,
3934         so that the command remains on a single line.
3935
3936 2010-04-26  Eric Blake  <eblake@redhat.com>
3937
3938         git-version-gen: allow use on EBCDIC hosts
3939         * build-aux/git-version-gen (dirty): Use literal rather than tying
3940         ourselves to ascii.
3941         Reported by Steve Goetze.
3942
3943 2010-04-25  Bruno Haible  <bruno@clisp.org>
3944
3945         netdb: Add support for GNULIB_POSIXCHECK.
3946         * lib/netdb.in.h: Include warn-on-use.h.
3947         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
3948         functions are used when GNULIB_POSIXCHECK is defined and the
3949         getaddrinfo module is not in use.
3950         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
3951         freeaddrinfo, gai_strerror, getnameinfo are declared.
3952         * modules/netdb (Depends-on): Add warn-on-use.
3953         (Makefile.am): Include warn-on-use.h in netdb.h.
3954
3955 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
3956
3957         build: avoid "make check" failure without .git/ directory
3958         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
3959         there is no .git/ directory.
3960
3961 2010-04-25  Bruno Haible  <bruno@clisp.org>
3962
3963         ptsname: Fix misuse of ttyname_r.
3964         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
3965         of errno.
3966
3967 2010-04-25  Bruno Haible  <bruno@clisp.org>
3968
3969         ttyname_r: Make it work on Solaris 10.
3970         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
3971         if the system function has the POSIX declaration. Test whether the
3972         function fails if the buffer is less than 128 bytes large.
3973         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
3974         system's ttyname_r function. Provide a reasonably large buffer.
3975         * modules/ttyname_r (Depends-on): Add extensions.
3976         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
3977
3978 2010-04-25  Bruno Haible  <bruno@clisp.org>
3979
3980         Use the 'extensions' module for some more functions on Solaris.
3981         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
3982         module.
3983         * doc/posix-functions/ctime_r.texi: Likewise.
3984         * doc/posix-functions/getgrgid_r.texi: Likewise.
3985         * doc/posix-functions/getgrnam_r.texi: Likewise.
3986         * doc/posix-functions/getpwnam_r.texi: Likewise.
3987         * doc/posix-functions/getpwuid_r.texi: Likewise.
3988         * doc/posix-functions/readdir_r.texi: Likewise.
3989         * doc/posix-functions/sigwait.texi: Likewise.
3990         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
3991         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
3992
3993 2010-04-25  Bruno Haible  <bruno@clisp.org>
3994
3995         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
3996         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
3997         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
3998         * lib/ttyname_r.c: Include <limits.h>.
3999         (ttyname_r): Define using the system's ttyname_r function, if it exists
4000         and not on Solaris.
4001         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
4002         set.
4003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
4004         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
4005         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
4006         Reported by Simon Josefsson.
4007
4008 2010-04-25  Bruno Haible  <bruno@clisp.org>
4009
4010         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
4011         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
4012         * doc/posix-functions/ctime_r.texi: Likewise.
4013         * doc/posix-functions/getgrgid_r.texi: Likewise.
4014         * doc/posix-functions/getgrnam_r.texi: Likewise.
4015         * doc/posix-functions/getlogin_r.texi: Likewise.
4016         * doc/posix-functions/getpwnam_r.texi: Likewise.
4017         * doc/posix-functions/getpwuid_r.texi: Likewise.
4018         * doc/posix-functions/readdir_r.texi: Likewise.
4019         * doc/posix-functions/sigwait.texi: Likewise.
4020         * doc/posix-functions/ttyname_r.texi: Likewise.
4021         Reported by Simon Josefsson.
4022
4023 2010-04-25  Bruno Haible  <bruno@clisp.org>
4024
4025         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
4026         * gnulib-tool (func_usage): Document that --with-*-tests options apply
4027         also to --create-testdir.
4028         (func_acceptable): Don't consider the status of *-tests modules here.
4029         (func_modules_transitive_closure): Consider it here, before including a
4030         test module.
4031         (func_import, func_create_testdir): Set inc_all_direct_tests,
4032         inc_all_indirect_tests.
4033         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
4034         --create-testdir and --create-megatestdir.
4035
4036 2010-04-25  Bruno Haible  <bruno@clisp.org>
4037
4038         gnulib-tool: Add --without-*-tests options.
4039         * gnulib-tool (func_usage): Document the --without-*-tests options.
4040         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
4041         excl_unportable_tests): New variables.
4042         Fail if they are specified with --import or --update.
4043         (func_acceptable): Respect the excl_*_tests variables.
4044         (func_import): Set the excl_*_tests variables to empty.
4045
4046 2010-04-25  Simon Josefsson  <simon@josefsson.org>
4047             Bruno Haible  <bruno@clisp.org>
4048
4049         Work around a MacOS X 10.4 bug with openpty.
4050         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
4051         * tests/test-openpty.c (main): Close the master side explicitly.
4052
4053 2010-04-25  Bruno Haible  <bruno@clisp.org>
4054
4055         strnlen: Fix a C++ test error on MacOS X and Solaris.
4056         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
4057         the function is not declared.
4058         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
4059         Simon Josefsson.
4060
4061 2010-04-24  Bruno Haible  <bruno@clisp.org>
4062
4063         Avoid a gcc warning.
4064         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
4065         of correct type for %08lx directive.
4066         Reported by Eric Blake.
4067
4068 2010-04-24  Bruno Haible  <bruno@clisp.org>
4069
4070         vasnprintf: Correct errno value in case of out-of-memory.
4071         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
4072         or sprintf. Use the errno value from SNPRINTF or sprintf.
4073         Reported by Ian Beckwith <ianb@erislabs.net>.
4074
4075 2010-04-24  Bruno Haible  <bruno@clisp.org>
4076
4077         ansi-c++-opt: Find correct compiler when cross-compiling.
4078         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
4079         AC_CHECK_PROGS.
4080         Reported by Simon Josefsson.
4081
4082 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
4083
4084         vc-list-files: Add support for subversion
4085         * build-aux/vc-list-files: Use "svn list" to generate the list of
4086         files controlled by subversion.
4087
4088 2010-04-23  Jim Meyering  <meyering@redhat.com>
4089
4090         vc-list-files tests: convert to use init.sh
4091         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
4092         path_prepend_.
4093         Use Exit, not exit.
4094         Use skip_ rather than open coding it.
4095         Remove trap set-up and compare definitions.
4096         * tests/test-vc-list-files-git.sh: Likewise.
4097         * modules/vc-list-files-tests (Files): Add tests/init.sh.
4098
4099 2010-04-22  Simon Josefsson  <simon@josefsson.org>
4100
4101         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
4102         backup files.
4103
4104 2010-04-21  Simon Josefsson  <simon@josefsson.org>
4105
4106         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
4107
4108 2010-04-20  Eric Blake  <eblake@redhat.com>
4109
4110         tests: be robust to ignored SIGPIPE
4111         * tests/test-select-in.sh: Consume all output.
4112         * tests/test-lseek.sh: Check correct exit status, while avoiding
4113         EPIPE.
4114
4115 2010-04-20  Simon Josefsson  <simon@josefsson.org>
4116             Bruno Haible  <bruno@clisp.org>
4117
4118         visibility: Don't use -fvisibility if it leads to a warning.
4119         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
4120         yes, don't pretend that visibility works if it leads to a warning.
4121         Reported by Mike Gran <spk121@yahoo.com>.
4122
4123 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
4124
4125         * build-aux/bootstrap: Use "git -h" for testing for supported options
4126         instead of "git --help".  The short-form option only shows a summary,
4127         and doesn't layout the full man page.  Grep for the full option name
4128         in the summary, too.
4129
4130 2010-04-19  Bruno Haible  <bruno@clisp.org>
4131
4132         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
4133         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
4134         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
4135         mention of RELOCATABLE_STRIP.
4136         Reported by Sylvain Beucler <beuc@beuc.net>.
4137
4138 2010-04-19  Bruno Haible  <bruno@clisp.org>
4139
4140         * lib/diffseq.h: Fix typo in comment.
4141         Reported by Eric Blake.
4142
4143 2010-04-19  Bruno Haible  <bruno@clisp.org>
4144
4145         ioctl: Move autoconf macro to a .m4 file.
4146         * m4/ioctl.m4: New file, extracted from modules/ioctl.
4147         * modules/ioctl (Files): Add it.
4148         (configure.ac): Simply invoke gl_FUNC_IOCTL.
4149         Reported by Ian Beckwith <ianb@erislabs.net>.
4150
4151 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
4152             Bruno Haible  <bruno@clisp.org>
4153
4154         diffseq: Accommodate use-case with abstract arrays.
4155         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
4156         is not defined.
4157         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
4158         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
4159
4160 2010-04-18  Bruno Haible  <bruno@clisp.org>
4161
4162         * doc/posix-headers/stdbool.texi: More precise wording.
4163
4164 2010-04-17  Jim Meyering  <meyering@redhat.com>
4165
4166         maint.mk: use gnu-style indentation in an embedded perl script
4167         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
4168         Rename variable: s/two/last_two_bytes/
4169
4170 2010-04-16  Eric Blake  <eblake@redhat.com>
4171
4172         test-stdbool: skip test that fails with Solaris CC
4173         * tests/test-stdbool.c (f): Skip test that causes compilation
4174         error under buggy C++ compiler.
4175         * lib/stdbool.in.h: Document the limitation.
4176         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
4177
4178         setenv: allow compilation with C++
4179         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
4180         register keyword.
4181
4182         stdint: allow test to pass with C++
4183         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
4184
4185         getopt: allow compilation with C++
4186         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
4187         struct.
4188         * lib/getopt.c (_getopt_internal_r): Use correct type.
4189         Reported by Dagobert Michelson, via Joel E. Denny.
4190
4191 2010-04-16  Bruno Haible  <bruno@clisp.org>
4192
4193         Override netdb.h always.
4194         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
4195         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
4196         Reported by Ludovic Courtès <ludo@gnu.org>.
4197
4198 2010-04-15  Bruno Haible  <bruno@clisp.org>
4199
4200         openpty: Fix mistake from 2010-03-21.
4201         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
4202         Reported by Simon Josefsson.
4203
4204 2010-04-15  Eric Blake  <eblake@redhat.com>
4205
4206         test-forkpty: fix expected signature
4207         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
4208         Reported by Simon Josefsson.
4209
4210 2010-04-15  Jim Meyering  <meyering@redhat.com>
4211
4212         maint.mk: texinfo_suffix_re_: correct the default regexp
4213         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
4214
4215         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
4216         make it configurable via texinfo_suffix_re_.
4217
4218 2010-04-14  Eric Blake  <eblake@redhat.com>
4219
4220         strtok_r: relax license to LGPLv2+
4221         * modules/strtok_r (License): Relax license.
4222         Reported by Matthias Bolte.
4223
4224 2010-04-14  Simon Josefsson  <simon@josefsson.org>
4225
4226         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
4227         version 1.4.4 by default instead of requiring the libgcrypt
4228         version used during build.  This makes it possible to use the
4229         application with older but still binary compatible libgcrypt
4230         versions.
4231
4232 2010-04-13  Eric Blake  <eblake@redhat.com>
4233
4234         getopt-gnu: match recent glibc fixes and posix ruling
4235         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
4236         '+' handling, when requesting extensions.
4237         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
4238         'W;' handling.
4239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
4240         * doc/posix-functions/getopt.texi (getopt): Document this.
4241         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4242         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4243         Likewise.
4244
4245         getopt: merge bug fixes from glibc
4246         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
4247         diagnostics.  Honor '+:' correctly.  Reject ';'.
4248
4249         getopt-posix: detect MacOS bug
4250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
4251         optind when missing a required argument.
4252         * doc/posix-functions/getopt.texi (getopt): Document the bug.
4253         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4254         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4255         Likewise.
4256
4257         getopt-posix: avoid spurious failure on Solaris
4258         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
4259         an indicator that setting optind=1 is sufficient for reset.
4260
4261         getopt-posix: avoid spurious failure on FreeBSD
4262         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
4263         in POSIX mode, since the m4 test uses it.
4264
4265         gnulib-tool: silence warning on BSD sh
4266         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
4267
4268 2010-04-13  Jim Meyering  <meyering@redhat.com>
4269
4270         doc: users.txt: GNU patch now uses gnulib
4271         * users.txt: Add patch.
4272
4273 2010-04-12  Jim Meyering  <meyering@redhat.com>
4274
4275         maint.mk: generate more concise timing data for syntax-check rules
4276         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
4277         " done" from each line that reports a syntax-check test duration.
4278
4279 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
4280
4281         git-version-gen: use "git update-index..." rather than "git status"
4282         * build-aux/git-version-gen: Use git update-index --refresh, not
4283         "git status".  With some versions of git, "git status" would fail
4284         to update the index and result in an unwarranted "-dirty" suffix.
4285
4286 2010-04-11  Jim Meyering  <meyering@redhat.com>
4287
4288         openat: correct formatting (no semantic change)
4289         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
4290         Suggested by Bruno Haible.
4291
4292 2010-04-11  Bruno Haible  <bruno@clisp.org>
4293
4294         Stricter declaration checking in testdirs.
4295         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4296         If for_tests is true, augment AM_CPPFLAGS to define
4297         GNULIB_STRICT_CHECKING.
4298         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
4299         GNULIB_STRICT_CHECKING is defined, verify that the function is
4300         declared.
4301
4302 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
4303             Bruno Haible  <bruno@clisp.org>
4304
4305         libunistring: Improve configure output.
4306         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
4307         Don't say "consider installing GNU libunistring" when checking again
4308         with libiconv.
4309
4310 2010-04-11  Bruno Haible  <bruno@clisp.org>
4311
4312         libunistring: Correct value of $LTLIBUNISTRING.
4313         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
4314         correct the value of $LTLIBUNISTRING.
4315
4316 2010-04-11  Bruno Haible  <bruno@clisp.org>
4317
4318         havelib: Add static libraries to LIBS in the right order.
4319         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
4320         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
4321
4322 2010-04-11  Bruno Haible  <bruno@clisp.org>
4323
4324         libunistring: Detect libunistring also when it depends on libiconv.
4325         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
4326         the second AC_LIB_HAVE_LINKFLAGS invocation.
4327
4328 2010-04-11  James Youngman  <jay@gnu.org>
4329
4330         close-stream: declare local scalars to be "const"
4331         * lib/close-stream.c (close_stream): Make boolean variables const
4332         to document the fact that we set but do not change them.
4333
4334 2010-04-11  Bruno Haible  <bruno@clisp.org>
4335
4336         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
4337
4338 2010-04-11  Jim Meyering  <meyering@redhat.com>
4339
4340         maint.mk: don't include dist-check.mk
4341         * top/maint.mk: Remove bogus include directive.
4342
4343         maint.mk: improve empty-line-at-EOF check
4344         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
4345         solution, rather than tail+Perl-based one.  The latter would read
4346         a few kilobytes from the end of each file, and did not handle empty
4347         files properly.
4348
4349         maint.mk: print the elapsed time for each syntax-check rule
4350         * top/maint.mk (sc_m_rules_): Save start time in a file.
4351         (sc_z_rules_): New rules: remove temp file and print elapsed time.
4352         (local-check): Interpose the .z rules
4353
4354 2010-04-11  Jim Meyering  <meyering@redhat.com>
4355
4356         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
4357         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
4358         empty file with one that ends in an empty line.
4359
4360 2010-04-10  Bruno Haible  <bruno@clisp.org>
4361
4362         mkdir: Make it work on mingw64.
4363         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
4364         * lib/mkdir.c: Update comment.
4365         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
4366
4367 2010-04-10  Bruno Haible  <bruno@clisp.org>
4368
4369         Don't override improved macro from newer autoconf.
4370         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
4371         autoconf >= 2.62.
4372         Reported by Joel E. Denny <jdenny@clemson.edu>.
4373
4374 2010-04-10  Jim Meyering  <meyering@redhat.com>
4375
4376         maint.mk: new syntax-check rule: prohibit empty lines at end of file
4377         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
4378
4379         maint.mk: correct a diagnostic
4380         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
4381         in diagnostic; now use $prohibit.
4382
4383 2010-04-10  Bruno Haible  <address@hidden>
4384
4385         fchownat: Fix a C++ test error on Solaris 8.
4386         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
4387         the function does not exist.
4388
4389 2010-04-10  Bruno Haible  <bruno@clisp.org>
4390
4391         vasnprintf: Add more tests.
4392         * tests/test-vasnprintf-posix.c: Include <errno.h>.
4393         (test_function): Test converting an invalid wide string.
4394
4395         vasnprintf: Correct handling of unconvertible wide string arguments.
4396         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
4397         VASNPRINTF.
4398         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
4399         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
4400         smaller than the expected maximum need for the directive. Set errno to
4401         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
4402         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
4403         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
4404         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
4405         * modules/vasnprintf (Files): Add m4/printf.m4.
4406         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4407
4408 2010-04-10  Bruno Haible  <bruno@clisp.org>
4409
4410         vasnprintf: Fix crash in %ls directive.
4411         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
4412         string is passed as argument to %ls, with no precision and no width.
4413         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4414
4415 2010-04-10  Bruno Haible  <bruno@clisp.org>
4416
4417         vasnprintf: Fix multiple test failures on mingw.
4418         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
4419         _snprintf, or snwprintf, not _snwprintf.
4420
4421 2010-04-10  Bruno Haible  <bruno@clisp.org>
4422
4423         write: Fix a C++ test error on mingw.
4424         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
4425
4426 2010-04-10  Bruno Haible  <bruno@clisp.org>
4427
4428         vasnprintf test: Reduce code duplication.
4429         * tests/test-vasnprintf.c (test_function): New function, extracted from
4430         test_vasnprintf.
4431         (test_vasnprintf, test_asnprintf): Invoke it.
4432
4433 2010-04-10  Bruno Haible  <bruno@clisp.org>
4434
4435         strnlen: Fix warning in C++ mode on MacOS X.
4436         * lib/string.in.h (strnlen): Use the modern idiom.
4437         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
4438         defining strnlen as a macro already in <config.h>.
4439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4440         REPLACE_STRNLEN.
4441         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
4442         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4443
4444 2010-04-08  James Youngman  <jay@gnu.org>
4445
4446         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
4447         the example.
4448
4449 2010-04-09  Jim Meyering  <meyering@redhat.com>
4450
4451         maint.mk: print better diagnostic when there is no $(_hv_file)
4452         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
4453         announce that when $(_hv_file) (aka help-version) does not exist.
4454
4455         init.sh: run tr in the "C" locale to avoid multibyte interpretation
4456         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
4457         not try to interpret its random input bytes.  Jarno Rajahalme reported
4458         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
4459         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
4460         (mktempd_): Likewise, just in case.
4461
4462         ftruncate: add two years to projected module removal date: 2012
4463         * m4/ftruncate.m4: Adjust comments.
4464
4465         ftruncate: mark module as obsolete; even MinGW provides it, now
4466         * modules/ftruncate (Status): Obsolete.
4467         (Notice): Say that.
4468         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
4469         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
4470
4471 2010-04-08  Bruno Haible  <bruno@clisp.org>
4472
4473         Fix side effects from tests-related modules.
4474         * modules/dprintf-posix (Comment): New section.
4475         * modules/fprintf-posix (Comment): Likewise.
4476         * modules/obstack-printf-posix (Comment): Likewise.
4477         * modules/printf-posix (Comment): Likewise.
4478         * modules/snprintf-posix (Comment): Likewise.
4479         * modules/sprintf-posix (Comment): Likewise.
4480         * modules/vasnprintf-posix (Comment): Likewise.
4481         * modules/vasprintf-posix (Comment): Likewise.
4482         * modules/vdprintf-posix (Comment): Likewise.
4483         * modules/vfprintf-posix (Comment): Likewise.
4484         * modules/vprintf-posix (Comment): Likewise.
4485         * modules/vsnprintf-posix (Comment): Likewise.
4486         * modules/vsprintf-posix (Comment): Likewise.
4487         * modules/xprintf-posix (Comment): Likewise.
4488         * modules/xvasprintf-posix (Comment): Likewise.
4489         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
4490         * modules/floorf-tests (Depends-on): Likewise.
4491         * modules/round-tests (Depends-on): Likewise.
4492         * modules/roundf-tests (Depends-on): Likewise.
4493         * modules/trunc-tests (Depends-on): Likewise.
4494         * modules/truncf-tests (Depends-on): Likewise.
4495         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
4496         'fprintf-posix' module is not present.
4497         * tests/test-floorf2.c (check): Likewise.
4498         * tests/test-trunc2.c (check): Likewise.
4499         * tests/test-truncf2.c (check): Likewise.
4500         * tests/test-round2.c (equal): Likewise.
4501         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4502
4503 2010-04-07  Karl Berry  <karl@gnu.org>
4504
4505         * config/srclist.txt,
4506         * config/srclistvars.sh,
4507         * config/srclist-update: doc fixes.
4508
4509 2010-04-07  Jim Meyering  <meyering@redhat.com>
4510
4511         maint.mk: add a PATH crosschecking syntax-check rule
4512         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
4513         Useful if you use a test like the one in help-version (coreutils,
4514         diffutils, grep, gzip) that ensures $(VERSION) matches what is
4515         printed by prog --version.
4516
4517 2010-04-06  Bruno Haible  <bruno@clisp.org>
4518
4519         Fix link error on mingw.
4520         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
4521         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
4522
4523 2010-04-06  Bruno Haible  <bruno@clisp.org>
4524
4525         Assume rmdir exists.
4526         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
4527
4528 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
4529
4530         doc: update users.txt
4531         * users.txt: Add gcal.
4532
4533 2010-04-06  Jim Meyering  <meyering@redhat.com>
4534
4535         init.sh: simply unset TMPDIR rather than risking env -i
4536         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
4537         although it probably works fine on all Unix-based systems, some
4538         systems (Cygwin?) cannot tolerate a totally cleared environment.
4539         Suggestion from Eric Blake.
4540
4541 2010-04-06  Jim Meyering  <meyering@redhat.com>
4542
4543         init.sh: portability fix: use env's POSIX-specified -i option not -u
4544         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
4545         than unportable env -u.  Solaris 5.11's env lacks support for -u.
4546
4547 2010-04-05  Bruno Haible  <bruno@clisp.org>
4548
4549         btowc: Work around Cygwin 1.7.2 bug.
4550         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
4551         does not map NUL to 0.
4552         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
4553
4554 2010-04-05  Bruno Haible  <bruno@clisp.org>
4555
4556         Make the multithread modules work on Cygwin 1.7.2.
4557         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
4558         imported symbols can be declared weak, so that it returns "no" on
4559         Cygwin 1.7.2.
4560
4561 2010-04-05  Bruno Haible  <bruno@clisp.org>
4562
4563         Use the module 'strncat'.
4564         * modules/unistr/u8-strncat (Depends-on): Add strncat.
4565
4566         Tests for module 'strncat'.
4567         * modules/strncat-tests: New file.
4568         * tests/test-strncat.c: New file.
4569
4570         New module 'strncat'.
4571         * lib/string.in.h (strncat): New declaration.
4572         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
4573         * m4/strncat.m4: New file, based on m4/memchr.m4.
4574         * modules/strncat: New file.
4575         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
4576         is declared.
4577         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
4578         REPLACE_STRNCAT.
4579         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
4580         REPLACE_STRNCAT.
4581         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
4582         module.
4583         * tests/test-string-c++.cc: Check signature of strncat.
4584
4585 2010-04-05  Jim Meyering  <meyering@redhat.com>
4586
4587         xstrtoumax-tests: convert to use init.sh
4588         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
4589         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4590         Use Exit, not exit.
4591         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4592
4593         xstrtoimax-tests: convert to use init.sh
4594         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4595         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4596         Use Exit, not exit.
4597         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4598
4599 2010-04-05  Bruno Haible  <bruno@clisp.org>
4600
4601         sys_socket: Avoid #define replacements in C++ mode.
4602         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4603         warning to the function if possible, rather than #defining the symbol
4604         to a dysfunctional alias.
4605
4606 2010-04-05  Bruno Haible  <bruno@clisp.org>
4607
4608         fseeko: Fix C++ test error on mingw.
4609         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4610         gl_FUNC_FSEEKO.
4611         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4612         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4613         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4614         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4615
4616 2010-04-05  Bruno Haible  <bruno@clisp.org>
4617
4618         duplocale: Improve test output.
4619         * tests/test-duplocale.c (main): Print reason for skipped test.
4620
4621 2010-04-05  Bruno Haible  <bruno@clisp.org>
4622
4623         Assume rmdir exists.
4624         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4625         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4626
4627 2010-04-05  Bruno Haible  <bruno@clisp.org>
4628
4629         Fix link error on Solaris 8 with cc.
4630         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4631
4632 2010-04-05  Bruno Haible  <bruno@clisp.org>
4633
4634         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4635         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4636
4637 2010-04-05  Bruno Haible  <bruno@clisp.org>
4638
4639         vasprintf: Update documentation.
4640         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4641
4642 2010-04-05  Bruno Haible  <bruno@clisp.org>
4643
4644         ptsname: Improve test.
4645         * tests/test-ptsname.c (main): Also try the various master names of BSD
4646         systems.
4647
4648 2010-04-05  Bruno Haible  <bruno@clisp.org>
4649
4650         memchr: Avoid a possible C++ test error.
4651         * lib/string.in.h (memchr): Provide declaration if function is missing.
4652         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4653         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4654         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4655         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4656
4657 2010-04-05  Bruno Haible  <bruno@clisp.org>
4658
4659         strtok_r: Improve idiom.
4660         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4661         AC_LIBOBJ is used.
4662
4663 2010-04-05  Bruno Haible  <bruno@clisp.org>
4664
4665         strdup: Improve idiom.
4666         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4667         AC_LIBOBJ is used.
4668         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4669         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4670         when AC_LIBOBJ is used.
4671
4672 2010-04-05  Bruno Haible  <bruno@clisp.org>
4673
4674         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4675         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4676         don't set REPLACE_MBSINIT to 1.
4677         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4678         don't set REPLACE_MBRTOWC to 1.
4679         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4680         exist, don't set REPLACE_MBSRTOWCS to 1.
4681         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4682         exist, don't set REPLACE_MBSNRTOWCS to 1.
4683         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4684         don't set REPLACE_WCRTOMB to 1.
4685         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4686         exist, don't set REPLACE_WCSRTOMBS to 1.
4687         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4688         exist, don't set REPLACE_WCSNRTOMBS to 1.
4689
4690 2010-04-05  Bruno Haible  <bruno@clisp.org>
4691
4692         ldexpl: Improve idiom.
4693         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4694         make sure to set HAVE_DECL_LDEXPL to 0.
4695
4696 2010-04-05  Jim Meyering  <meyering@redhat.com>
4697
4698         xstrtol-tests: convert to use init.sh
4699         * modules/xstrtol-tests (Files): Add tests/init.sh.
4700         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4701         Use Exit, not exit.
4702         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4703
4704         atexit-tests: convert to use init.sh
4705         * modules/atexit-tests (Files): Add tests/init.sh.
4706         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4707         Use Exit, not exit.
4708         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4709
4710         init.sh: fix typo
4711         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4712
4713         init.sh: make it easier for a test script to write to the tty, ...
4714         when using automake's parallel-tests mode.
4715         * tests/init.sh (stderr_fileno_): Define overridable variable.
4716         (warn_): New function, to use it.
4717         (fail_, skip_, framework_failure_): Use warn_.
4718
4719 2010-04-04  Bruno Haible  <bruno@clisp.org>
4720
4721         btowc: Avoid warning.
4722         * lib/btowc.c: Include <stdlib.h>.
4723         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4724
4725 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4726             Bruno Haible  <bruno@clisp.org>
4727
4728         wchar: Port to NetBSD 1.5.
4729         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4730         * lib/wctype.in.h (WEOF): Likewise.
4731
4732 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4733             Bruno Haible  <bruno@clisp.org>
4734
4735         Port extended stdio to NetBSD 1.5.
4736         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4737         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4738         older.
4739
4740 2010-04-04  Bruno Haible  <bruno@clisp.org>
4741
4742         string: Remove unused substitution.
4743         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4744         HAVE_DECL_STRERROR.
4745         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4746
4747 2010-04-04  Bruno Haible  <bruno@clisp.org>
4748
4749         strtod: Avoid a possible C++ test error.
4750         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4751         set REPLACE_STRTOD.
4752
4753 2010-04-04  Bruno Haible  <bruno@clisp.org>
4754
4755         strerror: Update documentation.
4756         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4757
4758 2010-04-04  Bruno Haible  <bruno@clisp.org>
4759
4760         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4761         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4762         _GL_CXXALIAS_SYS_CAST.
4763
4764 2010-04-04  Bruno Haible  <bruno@clisp.org>
4765
4766         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4767         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4768         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4769         REPLACE_FREXPL to 1.
4770         * doc/posix-functions/frexpl.texi: Update documentation.
4771
4772 2010-04-04  Bruno Haible  <bruno@clisp.org>
4773
4774         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4775         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4776
4777 2010-04-04  Bruno Haible  <bruno@clisp.org>
4778
4779         Implement nanosleep for native Windows.
4780         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4781
4782 2010-04-04  Bruno Haible  <bruno@clisp.org>
4783
4784         math: Fix some C++ test errors on Solaris 8.
4785         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4786
4787 2010-04-04  Bruno Haible  <bruno@clisp.org>
4788
4789         math: Fix some C++ test errors on Cygwin.
4790         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4791         truncl): Provide declaration if the system does not have it.
4792         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4793         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4794         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4795         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4796         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4797         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4798         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4799         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4800         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4801         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4802         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4803         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4804         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4805         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4806         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4807         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4809         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4810         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4811         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4812         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4813         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4814
4815 2010-04-04  Bruno Haible  <bruno@clisp.org>
4816
4817         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4818         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4819         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4820         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4821         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4822         * m4/isinf.m4 (gl_ISINF): Likewise.
4823         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4824
4825 2010-04-04  Bruno Haible  <bruno@clisp.org>
4826
4827         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4828         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4829
4830 2010-04-04  Bruno Haible  <bruno@clisp.org>
4831
4832         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4833         * modules/tmpfile (configure.ac): Update.
4834
4835         tmpfile: Fix C++ test error on mingw.
4836         * lib/stdio.in.h (tmpfile): New declaration.
4837         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
4838         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
4839         * modules/tmpfile (Depends-on): Add stdio.
4840         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4841         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
4842         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
4843         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
4844         REPLACE_TMPFILE.
4845         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
4846
4847 2010-04-04  Bruno Haible  <bruno@clisp.org>
4848
4849         ioctl: Fix C++ test error on mingw.
4850         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
4851         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
4852         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
4853
4854 2010-04-03  Bruno Haible  <bruno@clisp.org>
4855
4856         wcwidth: Fix C++ test error on mingw.
4857         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
4858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
4859         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
4860
4861 2010-04-03  Bruno Haible  <bruno@clisp.org>
4862
4863         nanosleep: Fix C++ test error on mingw.
4864         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
4865         * lib/time.in.h (nanosleep): Use modern idiom.
4866         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
4867         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
4868         REPLACE_NANOSLEEP to 1.
4869         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
4870         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
4871
4872 2010-04-03  Bruno Haible  <bruno@clisp.org>
4873
4874         strptime: Fix C++ test error on mingw.
4875         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
4876         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
4877         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
4878         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
4879         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
4880         not REPLACE_STRPTIME.
4881         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
4882         REPLACE_STRPTIME.
4883
4884 2010-04-03  Bruno Haible  <bruno@clisp.org>
4885
4886         timegm: Fix C++ test error on mingw.
4887         * lib/time.in.h (timegm): Use modern idiom.
4888         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
4889         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
4890         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
4891         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
4892
4893 2010-04-03  Bruno Haible  <bruno@clisp.org>
4894
4895         timegm: Assume declaration if function exists.
4896         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
4897         if it exists. Don't clobber ac_cv_func_timegm.
4898
4899 2010-04-03  Bruno Haible  <bruno@clisp.org>
4900
4901         time_r: Fix C++ test error on mingw.
4902         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
4903         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
4904         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
4905         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
4906         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
4907
4908 2010-04-03  Bruno Haible  <bruno@clisp.org>
4909
4910         time_r: Minor updates.
4911         * modules/time_r (Description): Mention the provided functions.
4912         * lib/time_r.c: Don't include <string.h>.
4913         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
4914         * doc/posix-functions/localtime_r.texi: Likewise.
4915
4916 2010-04-03  Bruno Haible  <bruno@clisp.org>
4917
4918         time: Fix regression introduced on 2010-03-08.
4919         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
4920         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
4921
4922 2010-04-03  Jim Meyering  <meyering@redhat.com>
4923
4924         maint.mk: don't silently disable project-specific syntax-check rules
4925         * top/maint.mk (_prohibit_regexp): Define, to help people realize
4926         that they need to convert their project-specific syntax-check rules
4927         to use the new _sc_search_regexp.
4928
4929 2010-04-03  Bruno Haible  <bruno@clisp.org>
4930
4931         fchdir: Fix regression introduced on 2010-03-08.
4932         * lib/unistd.in.h (fchdir): Fix declaration.
4933         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
4934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
4935         REPLACE_FCHDIR.
4936         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
4937         REPLACE_FCHDIR.
4938
4939 2010-04-03  Bruno Haible  <bruno@clisp.org>
4940
4941         getpagesize: Fix C++ test error on mingw.
4942         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
4943         system does not declare the function.
4944         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
4945         declared.
4946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4947         HAVE_DECL_GETPAGESIZE.
4948         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
4949
4950 2010-04-03  Bruno Haible  <bruno@clisp.org>
4951
4952         stdio: Make C++ tests work on mingw.
4953         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
4954         does not declare the function.
4955
4956 2010-04-03  Bruno Haible  <bruno@clisp.org>
4957
4958         ftello: Fix C++ test error on mingw.
4959         * lib/stdio.in.h (ftello): Use modern idiom.
4960         * lib/ftello.c (ftello): Renamed from rpl_ftello.
4961         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
4962         is missing and that it needs to be replaced.
4963         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
4964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
4965         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
4966
4967 2010-04-03  Bruno Haible  <bruno@clisp.org>
4968
4969         fseeko: Fix C++ test error on mingw.
4970         * lib/stdio.in.h (fseeko): Use modern idiom.
4971         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
4972         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
4973         is missing and that it needs to be replaced.
4974         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
4975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
4976         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
4977
4978 2010-04-03  Bruno Haible  <bruno@clisp.org>
4979
4980         mkstemp: Fix C++ test error on mingw.
4981         * lib/stdlib.in.h (mkstemp): Use modern idiom.
4982         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
4983         function is missing and that it needs to be replaced.
4984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
4985         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
4986
4987 2010-04-03  Bruno Haible  <bruno@clisp.org>
4988
4989         stpncpy: Fix C++ test error on mingw.
4990         * lib/string.in.h (stpncpy): Use modern idiom.
4991         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
4992         function is missing and that it needs to be replaced.
4993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4994         REPLACE_STPNCPY.
4995         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
4996
4997 2010-04-03  Bruno Haible  <bruno@clisp.org>
4998
4999         sys_stat: Fix C++ test error on mingw.
5000         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
5001         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
5002
5003 2010-04-03  Bruno Haible  <bruno@clisp.org>
5004
5005         pty: Update doc.
5006         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
5007
5008 2010-04-03  Bruno Haible  <bruno@clisp.org>
5009
5010         unistd: Fix C++ test error on mingw.
5011         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
5012
5013 2010-04-03  Bruno Haible  <bruno@clisp.org>
5014
5015         Update doc regarding mingw.
5016         * doc/glibc-functions/openpty.texi: Update regarding mingw.
5017         * doc/glibc-functions/login_tty.texi: Likewise.
5018         * doc/glibc-functions/forkpty.texi: Likewise.
5019
5020 2010-04-03  Bruno Haible  <bruno@clisp.org>
5021
5022         stdlib: Avoid compilation failure of c-strtold on mingw.
5023         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
5024
5025 2010-04-03  Bruno Haible  <bruno@clisp.org>
5026
5027         locale: Make C++ tests work on Cygwin and mingw.
5028         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
5029         cannot provide the function.
5030         Reported by Simon Josefsson.
5031
5032 2010-04-03  Bruno Haible  <bruno@clisp.org>
5033
5034         localename: Port to MacOS X 10.6.
5035         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
5036         memory layout of the locales in MacOS X 10.6 as well.
5037         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
5038
5039 2010-04-02  Bruno Haible  <bruno@clisp.org>
5040
5041         gnulib-tool: Ensure that long-running tests are executed last.
5042         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
5043         running tests after the one for the other tests.
5044
5045 2010-04-02  Bruno Haible  <bruno@clisp.org>
5046
5047         gnulib-tool: Ensure the tests in the main directory are executed first.
5048         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
5049         start with the current directory.
5050
5051 2010-04-02  Bruno Haible  <bruno@clisp.org>
5052
5053         Tests for module 'havelib', moved here from GNU gettext.
5054         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
5055         modifications.
5056         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
5057         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
5058         with modifications.
5059         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
5060         modifications.
5061         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
5062         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
5063         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
5064         with modifications.
5065         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
5066         with modifications.
5067         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
5068         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
5069         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
5070         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
5071         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
5072         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
5073         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
5074         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
5075         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
5076         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
5077         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
5078         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
5079         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
5080         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
5081         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
5082         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
5083         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
5084         with modifications.
5085         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
5086         with modifications.
5087         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
5088         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
5089         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
5090         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
5091         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
5092         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
5093         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
5094         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
5095         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
5096         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
5097         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
5098         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
5099         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
5100         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
5101         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
5102         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
5103         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
5104         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
5105         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
5106         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
5107         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
5108         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
5109         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
5110         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
5111         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
5112         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
5113         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
5114         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
5115         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
5116         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
5117         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
5118         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
5119         * tests/havelib/rpathx/rpathx.c: New file, from
5120         gettext/autoconf-lib-link.
5121         * tests/havelib/rpathx/Makefile.am: New file, from
5122         gettext/autoconf-lib-link.
5123         * tests/havelib/rpathx/configure.ac: New file, from
5124         gettext/autoconf-lib-link with modifications.
5125         * tests/havelib/rpathy/rpathy.c: New file, from
5126         gettext/autoconf-lib-link.
5127         * tests/havelib/rpathy/Makefile.am: New file, from
5128         gettext/autoconf-lib-link.
5129         * tests/havelib/rpathy/configure.ac: New file, from
5130         gettext/autoconf-lib-link with modifications.
5131         * tests/havelib/rpathz/rpathz.c: New file, from
5132         gettext/autoconf-lib-link.
5133         * tests/havelib/rpathz/Makefile.am: New file, from
5134         gettext/autoconf-lib-link.
5135         * tests/havelib/rpathz/configure.ac: New file, from
5136         gettext/autoconf-lib-link with modifications.
5137         * tests/havelib/rpathlx/usex.c: New file, from
5138         gettext/autoconf-lib-link.
5139         * tests/havelib/rpathlx/Makefile.am: New file, from
5140         gettext/autoconf-lib-link.
5141         * tests/havelib/rpathlx/configure.ac: New file, from
5142         gettext/autoconf-lib-link with modifications.
5143         * tests/havelib/rpathly/usey.c: New file, from
5144         gettext/autoconf-lib-link.
5145         * tests/havelib/rpathly/Makefile.am: New file, from
5146         gettext/autoconf-lib-link.
5147         * tests/havelib/rpathly/configure.ac: New file, from
5148         gettext/autoconf-lib-link with modifications.
5149         * tests/havelib/rpathlz/usez.c: New file, from
5150         gettext/autoconf-lib-link.
5151         * tests/havelib/rpathlz/Makefile.am: New file, from
5152         gettext/autoconf-lib-link.
5153         * tests/havelib/rpathlz/configure.ac: New file, from
5154         gettext/autoconf-lib-link with modifications.
5155         * tests/havelib/rpathlyx/usey.c: New file, from
5156         gettext/autoconf-lib-link.
5157         * tests/havelib/rpathlyx/Makefile.am: New file, from
5158         gettext/autoconf-lib-link.
5159         * tests/havelib/rpathlyx/configure.ac: New file, from
5160         gettext/autoconf-lib-link with modifications.
5161         * tests/havelib/rpathlzyx/usez.c: New file, from
5162         gettext/autoconf-lib-link.
5163         * tests/havelib/rpathlzyx/Makefile.am: New file, from
5164         gettext/autoconf-lib-link.
5165         * tests/havelib/rpathlzyx/configure.ac: New file, from
5166         gettext/autoconf-lib-link with modifications.
5167         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
5168         with modifications.
5169
5170 2010-04-02  Bruno Haible  <bruno@clisp.org>
5171
5172         gnulib-tool: Create distributed built sources also for the tests.
5173         * gnulib-tool (func_create_testdir): Also generate distributed built
5174         sources in the tests directory.
5175
5176 2010-04-02  Bruno Haible  <bruno@clisp.org>
5177
5178         gnulib-tool: Obey user's environment variables.
5179         * gnulib-tool (func_create_testdir): When creating built sources,
5180         respect the environment variables for autoconf, automake, etc. given by
5181         the user.
5182
5183 2010-04-02  Bruno Haible  <bruno@clisp.org>
5184
5185         gnulib-tool: Provide the value of --m4-base to modules.
5186         * gnulib-tool (func_import, func_create_testdir): Emit a definition
5187         of gl_m4_base.
5188
5189 2010-04-02  Eric Blake  <eblake@redhat.com>
5190
5191         maint.mk: fix some fallout
5192         * NEWS: Document the incompatible change, and its effect on cfg.mk.
5193         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
5194
5195 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5196
5197         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
5198         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
5199         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
5200         (sc_cast_of_x_alloc_return_value): Likewise.
5201         (sc_cast_of_alloca_return_value): Likewise.
5202         (sc_space_tab): Likewise.
5203         (sc_prohibit_atoi_atof): Likewise.
5204         (sc_prohibit_magic_number_exit): Likewise.
5205         (sc_error_exit_success): Likewise.
5206         (sc_file_system): Likewise.
5207         (sc_prohibit_have_config_h): Likewise.
5208         (sc_require_config_h): Likewise.
5209         (sc_prohibit_HAVE_MBRTOWC): Likewise.
5210         (sc_obsolete_symbols): Likewise.
5211         (sc_changelog): Likewise.
5212         (sc_program_name): Likewise.
5213         (sc_the_the): Likewise.
5214         (sc_trailing_blank): Likewise.
5215         (sc_two_space_separator_in_usage): Likewise.
5216         (sc_useless_cpp_parens): Likewise.
5217         (sc_GPL_version): Likewise.
5218         (sc_GFDL_version): Likewise.
5219         (sc_texinfo_acronym): Likewise.
5220         (sc_prohibit_cvs_keyword): Likewise.
5221         (sc_prohibit_stat_st_blocks): Likewise.
5222         (sc_prohibit_S_IS_definition): Likewise.
5223         (sc_redundant_const): Likewise.
5224         (sc_makefile_TAB_only_indentation): Likewise.
5225         (sc_m4_quote_check): Likewise.
5226         (sc_makefile_path_separator_check): Likewise.
5227         (sc_copyright_check): Likewise.
5228         (sc_Wundef_boolean): Likewise.
5229         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5230
5231         maint.mk: match 0 or more whitespace-before-function-call '('
5232         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
5233         that have zero or two-and-more spaces between the function name
5234         and the open parenthesis.
5235         (sc_error_message_warn_fatal): Likewise.
5236         (sc_error_message_uppercase): Likewise.
5237         (sc_error_message_period): Likewise.
5238
5239 2010-03-31  Eric Blake  <eblake@redhat.com>
5240
5241         maint.mk: check for [ as well as test
5242         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
5243         Based on a libvirt report by Matthias Bolte.
5244
5245         gnumakefile: don't squelch _version output
5246         * top/GNUmakefile (_version): Create one-shot dependency rather
5247         than using $(shell) when version must be regenerated.
5248         (_autoreconf): Run verbosely, by default.
5249
5250         sys_time: avoid compiler warnings
5251         * lib/sys_time.in.h (includes): Ensure gcc pragma is
5252         unconditional, fixing regression from 2010-03-29.
5253         Reported by Simon Josefsson.
5254
5255 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5256
5257         maint.mk: s/_header_without_use/_sc_header_without_use/
5258         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
5259         (sc_prohibit_assert_without_use): Use the new name.
5260         (sc_prohibit_close_stream_without_use): Likewise.
5261         (sc_prohibit_getopt_without_use): Likewise.
5262         (sc_prohibit_quotearg_without_use): Likewise.
5263         (sc_prohibit_quote_without_use): Likewise.
5264         (sc_prohibit_long_options_without_use): Likewise.
5265         (sc_prohibit_inttostr_without_use): Likewise.
5266         (sc_prohibit_ignore_value_without_use): Likewise.
5267         (sc_prohibit_error_without_use): Likewise.
5268         (sc_prohibit_xalloc_without_use): Likewise.
5269         (sc_prohibit_hash_without_use): Likewise.
5270         (sc_prohibit_hash_pjw_without_use): Likewise.
5271         (sc_prohibit_safe_read_without_use): Likewise.
5272         (sc_prohibit_argmatch_without_use): Likewise.
5273         (sc_prohibit_canonicalize_without_use): Likewise.
5274         (sc_prohibit_root_dev_ino_without_use): Likewise.
5275         (sc_prohibit_openat_without_use): Likewise.
5276         (sc_prohibit_c_ctype_without_use): Likewise.
5277         (sc_prohibit_signal_without_use): Likewise.
5278         (sc_prohibit_intprops_without_use): Likewise.
5279
5280 2010-03-30  Eric Blake  <eblake@redhat.com>
5281
5282         maint: improve module indicators
5283         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
5284         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
5285         columns, and avoid extra macro expansion.
5286
5287         fdopendir: work around FreeBSD bug
5288         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5289         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
5290         * modules/dirent (Makefile.am): Substitute it.
5291         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
5292         declaration.
5293         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
5294         fix.
5295         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5296
5297 2010-03-29  Bruno Haible  <bruno@clisp.org>
5298
5299         Emit #pragma system_header after the inclusion guard, not before.
5300         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
5301         guard that spans the entire file, not before. This enables an
5302         optimization in GCC's preprocessor.
5303         * lib/ctype.in.h: Likewise.
5304         * lib/dirent.in.h: Likewise.
5305         * lib/errno.in.h: Likewise.
5306         * lib/float.in.h: Likewise.
5307         * lib/getopt.in.h: Likewise.
5308         * lib/iconv.in.h: Likewise.
5309         * lib/langinfo.in.h: Likewise.
5310         * lib/locale.in.h: Likewise.
5311         * lib/math.in.h: Likewise.
5312         * lib/netdb.in.h: Likewise.
5313         * lib/netinet_in.in.h: Likewise.
5314         * lib/pty.in.h: Likewise.
5315         * lib/sched.in.h: Likewise.
5316         * lib/se-selinux.in.h: Likewise.
5317         * lib/search.in.h: Likewise.
5318         * lib/spawn.in.h: Likewise.
5319         * lib/stdarg.in.h: Likewise.
5320         * lib/stdint.in.h: Likewise.
5321         * lib/string.in.h: Likewise.
5322         * lib/strings.in.h: Likewise.
5323         * lib/sys_file.in.h: Likewise.
5324         * lib/sys_ioctl.in.h: Likewise.
5325         * lib/sys_time.in.h: Likewise.
5326         * lib/sys_times.in.h: Likewise.
5327         * lib/sys_utsname.in.h: Likewise.
5328         * lib/sys_wait.in.h: Likewise.
5329         * lib/sysexits.in.h: Likewise.
5330         * lib/wctype.in.h: Likewise.
5331
5332 2010-03-28  James Youngman  <jay@gnu.org>
5333
5334         save-cwd: don't leak a file descriptor when the caller execs.
5335         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
5336         saved file descriptor.
5337         * modules/save-cwd (Depends-on): Depend on cloexec.
5338
5339 2010-03-29  Bruno Haible  <bruno@clisp.org>
5340
5341         Remove vestiges of fts-lgpl module.
5342         * lib/fts_.h: Assume GNULIB_FTS is 1.
5343         * lib/fts.c: Likewise.
5344         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5345
5346 2010-03-28  Bruno Haible  <bruno@clisp.org>
5347
5348         Fix definition of tests witness macro.
5349         * gnulib-tool (func_import): Fix definition of witness macro.
5350
5351 2010-03-28  Bruno Haible  <bruno@clisp.org>
5352
5353         Fix ioctl's protoype on glibc systems.
5354         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
5355         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
5356         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
5357         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
5358         signature. If not, arrange to replace the ioctl function.
5359         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5360         REPLACE_IOCTL.
5361         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
5362         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
5363         Reported by Ludovic Courtès <ludo@gnu.org>.
5364
5365 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
5366
5367         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
5368         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
5369         made it so grep -r --include=GLOB* ... did not work.
5370
5371 2010-03-26  Jim Meyering  <meyering@redhat.com>
5372             Eric Blake  <eblake@redhat.com>
5373
5374         maint.mk: prohibit use of test's -o and -a operators
5375         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
5376
5377 2010-03-28  Bruno Haible  <bruno@clisp.org>
5378
5379         Remove unused GNULIB_XYZ macro definitions.
5380         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
5381         invocation.
5382
5383 2010-03-28  Bruno Haible  <bruno@clisp.org>
5384
5385         Mark privileged tests modules.
5386         * modules/idpriv-drop-tests (Status): New section.
5387         * modules/idpriv-droptemp-tests (Status): New section.
5388
5389 2010-03-28  Bruno Haible  <bruno@clisp.org>
5390
5391         Split C++ tests into separate tests modules.
5392         * modules/dirent-c++-tests: New file, extracted from
5393         modules/dirent-tests.
5394         * modules/dirent-tests: Depend on it.
5395         * modules/fcntl-h-c++-tests: New file, extracted from
5396         modules/fcntl-h-tests.
5397         * modules/fcntl-h-tests: Depend on it.
5398         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
5399         * modules/glob-tests: Depend on it.
5400         * modules/iconv-h-c++-tests: New file, extracted from
5401         modules/iconv-h-tests.
5402         * modules/iconv-h-tests: Depend on it.
5403         * modules/langinfo-c++-tests: New file, extracted from
5404         modules/langinfo-tests.
5405         * modules/langinfo-tests: Depend on it.
5406         * modules/locale-c++-tests: New file, extracted from
5407         modules/locale-tests.
5408         * modules/locale-tests: Depend on it.
5409         * modules/math-c++-tests: New file, extracted from modules/math-tests.
5410         * modules/math-tests: Depend on it.
5411         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
5412         * modules/pty-tests: Depend on it.
5413         * modules/search-c++-tests: New file, extracted from
5414         modules/search-tests.
5415         * modules/search-tests: Depend on it.
5416         * modules/signal-c++-tests: New file, extracted from
5417         modules/signal-tests.
5418         * modules/signal-tests: Depend on it.
5419         * modules/spawn-c++-tests: New file, extracted from
5420         modules/spawn-tests.
5421         * modules/spawn-tests: Depend on it.
5422         * modules/stdio-c++-tests: New file, extracted from
5423         modules/stdio-tests.
5424         * modules/stdio-tests: Depend on it.
5425         * modules/stdlib-c++-tests: New file, extracted from
5426         modules/stdlib-tests.
5427         * modules/stdlib-tests: Depend on it.
5428         * modules/string-c++-tests: New file, extracted from
5429         modules/string-tests.
5430         * modules/string-tests: Depend on it.
5431         * modules/sys_ioctl-c++-tests: New file, extracted from
5432         modules/sys_ioctl-tests.
5433         * modules/sys_ioctl-tests: Depend on it.
5434         * modules/sys_select-c++-tests: New file, extracted from
5435         modules/sys_select-tests.
5436         * modules/sys_select-tests: Depend on it.
5437         * modules/sys_socket-c++-tests: New file, extracted from
5438         modules/sys_socket-tests.
5439         * modules/sys_socket-tests: Depend on it.
5440         * modules/sys_stat-c++-tests: New file, extracted from
5441         modules/sys_stat-tests.
5442         * modules/sys_stat-tests: Depend on it.
5443         * modules/sys_time-c++-tests: New file, extracted from
5444         modules/sys_time-tests.
5445         * modules/sys_time-tests: Depend on it.
5446         * modules/time-c++-tests: New file, extracted from modules/time-tests.
5447         * modules/time-tests: Depend on it.
5448         * modules/unistd-c++-tests: New file, extracted from
5449         modules/unistd-tests.
5450         * modules/unistd-tests: Depend on it.
5451         * modules/wchar-c++-tests: New file, extracted from
5452         modules/wchar-tests.
5453         * modules/wchar-tests: Depend on it.
5454         * modules/wctype-c++-tests: New file, extracted from
5455         modules/wctype-tests.
5456         * modules/wctype-tests: Depend on it.
5457         Reported by Simon Josefsson.
5458
5459 2010-03-28  Bruno Haible  <bruno@clisp.org>
5460
5461         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
5462         * gnulib-tool (func_exists_module): New function, extracted from
5463         func_verify_module.
5464         (func_verify_module): Use it.
5465         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
5466         'foo' only if 'foo' exists.
5467         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
5468         module.
5469
5470 2010-03-28  Bruno Haible  <bruno@clisp.org>
5471
5472         gnulib-tool: Add support for special categories of tests.
5473         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5474         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
5475         (func_usage): Document them.
5476         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
5477         inc_unportable_tests, inc_all_tests): New variables.
5478         (func_acceptable): Consider these variables.
5479         (func_modules_transitive_closure): Make it work when the 'Status' field
5480         consists of multiple words.
5481         (func_import): Store and restore the values of inc_cxx_tests,
5482         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
5483         inc_all_tests in gnulib-comp.m4.
5484         (func_create_testdir): Set inc_all_tests to true.
5485         * doc/gnulib.texi (Extra tests modules): New section.
5486         Suggested by Jim Meyering.
5487
5488 2010-03-28  Bruno Haible  <bruno@clisp.org>
5489
5490         ansi-c++-opt: Allow turning off the C++ build by default.
5491         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5492         gl_CXX_CHOICE_DEFAULT_NO is defined.
5493         Requested by Eric Blake.
5494
5495 2010-03-28  Bruno Haible  <bruno@clisp.org>
5496
5497         unistd: Avoid #define replacements in C++ mode.
5498         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5499         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5500         setsockopt, shutdown, select): In C++, attach a warning to the function
5501         if possible, rather than #defining the symbol to a dysfunctional alias.
5502         Reported by John W. Eaton <jwe@gnu.org>.
5503
5504 2010-03-28  Bruno Haible  <bruno@clisp.org>
5505
5506         Fix link errors on mingw.
5507         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
5508         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
5509         $(LIBSOCKET).
5510         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
5511         $(LIBSOCKET).
5512
5513 2010-03-28  Bruno Haible  <bruno@clisp.org>
5514             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5515
5516         lib-ignore: Determine different options for different compilers.
5517         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
5518         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
5519         Add comments.
5520         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
5521         * NEWS: Mention the change.
5522
5523 2010-03-27  Bruno Haible  <bruno@clisp.org>
5524
5525         Remove unused GNULIB_XYZ macro definitions.
5526         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5527         * modules/fseek (configure.ac): Likewise.
5528         * modules/ioctl (configure.ac): Likewise.
5529         * modules/open (configure.ac): Likewise.
5530         * modules/stdlib-safer (configure.ac): Likewise.
5531
5532 2010-03-27  Bruno Haible  <bruno@clisp.org>
5533
5534         Add a remark about certain modules.
5535         * modules/malloc (Comment): New section.
5536         * modules/realloc (Comment): Likewise.
5537         * modules/sigpipe (Comment): Likewise.
5538
5539 2010-03-27  Bruno Haible  <bruno@clisp.org>
5540
5541         Resolve conflict between the two kinds of module indicators.
5542         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
5543         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
5544         * modules/canonicalize (configure.ac): Invoke
5545         gl_MODULE_INDICATOR_FOR_TESTS.
5546         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
5547         GNULIB_XYZ.
5548         * tests/test-dirent-c++.cc: Likewise.
5549         * tests/test-dirent-safer.c: Likewise.
5550         * tests/test-dup2.c: Likewise.
5551         * tests/test-fchdir.c: Likewise.
5552         * tests/test-fcntl-h-c++.cc: Likewise.
5553         * tests/test-getopt.c: Likewise.
5554         * tests/test-getopt.h: Likewise.
5555         * tests/test-langinfo-c++.cc: Likewise.
5556         * tests/test-locale-c++.cc: Likewise.
5557         * tests/test-math-c++.cc: Likewise.
5558         * tests/test-pty-c++.cc: Likewise.
5559         * tests/test-search-c++.cc: Likewise.
5560         * tests/test-signal-c++.cc: Likewise.
5561         * tests/test-spawn-c++.cc: Likewise.
5562         * tests/test-stdio-c++.cc: Likewise.
5563         * tests/test-stdlib-c++.cc: Likewise.
5564         * tests/test-string-c++.cc: Likewise.
5565         * tests/test-sys_ioctl-c++.cc: Likewise.
5566         * tests/test-sys_select-c++.cc: Likewise.
5567         * tests/test-sys_socket-c++.cc: Likewise.
5568         * tests/test-sys_stat-c++.cc: Likewise.
5569         * tests/test-sys_time-c++.cc: Likewise.
5570         * tests/test-time-c++.cc: Likewise.
5571         * tests/test-unistd-c++.cc: Likewise.
5572         * tests/test-wchar-c++.cc: Likewise.
5573         * tests/uninorm/test-u8-nfc.c: Likewise.
5574         * tests/uninorm/test-u8-nfd.c: Likewise.
5575         * tests/uninorm/test-u8-nfkc.c: Likewise.
5576         * tests/uninorm/test-u8-nfkd.c: Likewise.
5577         * tests/uninorm/test-u16-nfc.c: Likewise.
5578         * tests/uninorm/test-u16-nfd.c: Likewise.
5579         * tests/uninorm/test-u16-nfkc.c: Likewise.
5580         * tests/uninorm/test-u16-nfkd.c: Likewise.
5581         * tests/uninorm/test-u32-nfc.c: Likewise.
5582         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5583         * tests/uninorm/test-u32-nfd.c: Likewise.
5584         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5585         * tests/uninorm/test-u32-nfkc.c: Likewise.
5586         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5587         * tests/uninorm/test-u32-nfkd.c: Likewise.
5588         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5589         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5590
5591 2010-03-27  Bruno Haible  <bruno@clisp.org>
5592
5593         Distinguish two kinds of module indicators.
5594         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5595         gl_MODULE_INDICATOR.
5596         (gl_MODULE_INDICATOR): New macro.
5597         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5598         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5599         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5600         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5601         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5602         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5603         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5604         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5605         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5606         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5607         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5608         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5609         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5610         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5611         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5612         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5613         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5614         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5615         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5616         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5617         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5618         * modules/cloexec (configure.ac): Likewise.
5619         * modules/getopt-gnu (configure.ac): Likewise.
5620         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5621         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5622         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5623         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5624
5625 2010-03-27  Bruno Haible  <bruno@clisp.org>
5626
5627         New module description field 'Comment'.
5628         * gnulib-tool: New option --extract-comment.
5629         (func_usage): Document it.
5630         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5631         (func_get_comment): New function.
5632         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5633
5634 2010-03-27  Bruno Haible  <bruno@clisp.org>
5635
5636         Addendum to 2010-02-07 commit.
5637         * gnulib-tool (func_usage): Document --extract-applicability option.
5638
5639 2010-03-27  Bruno Haible  <bruno@clisp.org>
5640
5641         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5642         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5643         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5644         rather than link errors.
5645
5646 2010-03-27  Bruno Haible  <bruno@clisp.org>
5647
5648         Avoid side effects from tests-related modules on the compilation of lib.
5649         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5650         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5651         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5652         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5653         macro.
5654         (func_import): Define a witness macro. Assign it a value that depends
5655         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5656         tests-related modules.
5657         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5658         Reported by Jim Meyering.
5659
5660 2010-03-27  Bruno Haible  <bruno@clisp.org>
5661
5662         Factorize common .m4 code.
5663         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5664         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5665         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5666         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5667         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5668         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5669         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5670         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5671         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5672         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5673         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5674         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5675         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5676         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5677         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5678         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5679         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5680         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5681         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5682         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5683         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5684         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5685         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5686         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5687         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5688         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5689         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5690         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5691         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5692         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5693         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5694         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5695
5696 2010-03-27  Bruno Haible  <bruno@clisp.org>
5697
5698         Fix a compilation error on Cygwin with g++ >= 4.3.
5699         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5700         if it is undefined or if we alias it to chmod.
5701         (lstat): Don't warn about the use of this function if it is undefined
5702         or if we alias it to stat.
5703         Reported by Simon Josefsson.
5704
5705 2010-03-27  Bruno Haible  <bruno@clisp.org>
5706
5707         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5708         * modules/getlogin (configure.ac): Update.
5709
5710         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5711         * modules/getlogin_r (configure.ac): Update.
5712
5713         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5714         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5715         * modules/inet_ntop (configure.ac): Update.
5716
5717         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5718         * modules/inet_pton (configure.ac): Update.
5719
5720         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5721         * modules/mbslen (configure.ac): Update.
5722
5723         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5724         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5725         * modules/forkpty (configure.ac): Update.
5726         * modules/openpty (configure.ac): Update.
5727
5728 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5729
5730         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5731         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5732
5733 2010-03-25  Eric Blake  <eblake@redhat.com>
5734
5735         maint: use pragma consistently across replacement headers
5736         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5737         * lib/dirent.in.h (system_header): Likewise.
5738         * lib/errno.in.h (system_header): Likewise.
5739         * lib/float.in.h (system_header): Likewise.
5740         * lib/getopt.in.h (system_header): Likewise.
5741         * lib/iconv.in.h (system_header): Likewise.
5742         * lib/inttypes.in.h (system_header): Likewise.
5743         * lib/langinfo.in.h (system_header): Likewise.
5744         * lib/locale.in.h (system_header): Likewise.
5745         * lib/math.in.h (system_header): Likewise.
5746         * lib/netdb.in.h (system_header): Likewise.
5747         * lib/netinet_in.in.h (system_header): Likewise.
5748         * lib/pty.in.h (system_header): Likewise.
5749         * lib/sched.in.h (system_header): Likewise.
5750         * lib/se-selinux.in.h (system_header): Likewise.
5751         * lib/search.in.h (system_header): Likewise.
5752         * lib/spawn.in.h (system_header): Likewise.
5753         * lib/stdarg.in.h (system_header): Likewise.
5754         * lib/stdint.in.h (system_header): Likewise.
5755         * lib/string.in.h (system_header): Likewise.
5756         * lib/strings.in.h (system_header): Likewise.
5757         * lib/sys_file.in.h (system_header): Likewise.
5758         * lib/sys_ioctl.in.h (system_header): Likewise.
5759         * lib/sys_socket.in.h (system_header): Likewise.
5760         * lib/sys_times.in.h (system_header): Likewise.
5761         * lib/sys_utsname.in.h (system_header): Likewise.
5762         * lib/sys_wait.in.h (system_header): Likewise.
5763         * lib/sysexits.in.h (system_header): Likewise.
5764         * lib/unistd.in.h (system_header): Likewise.
5765         * lib/wctype.in.h (system_header): Likewise.
5766
5767         arpa/inet: fix mingw compilation warning
5768         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5769         Reported by Matthew Bolte.
5770
5771 2010-03-25  Bruno Haible  <bruno@clisp.org>
5772
5773         Avoid collision between gnulib wrapper and libintl wrapper.
5774         * lib/printf.c (printf): Don't define if a printf wrapper is already
5775         defined in intl/printf.c.
5776         Reported by Michel Boaventura <michel@michelboaventura.com>.
5777
5778 2010-03-25  Bruno Haible  <bruno@clisp.org>
5779
5780         Use ANSI C.
5781         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5782
5783 2010-03-25  Bruno Haible  <bruno@clisp.org>
5784
5785         Minor formatting changes.
5786         * lib/acosl.c: Insert space before function argument list.
5787         * lib/argz.c: Likewise.
5788         * lib/asinl.c: Likewise.
5789         * lib/expl.c: Likewise.
5790         * lib/gen-uni-tables.c: Likewise.
5791         * lib/gettext.h: Likewise.
5792         * lib/glthread/lock.h: Likewise.
5793         * lib/tanl.c: Likewise.
5794         * lib/uniname/uniname.c: Likewise.
5795         * tests/test-idpriv-drop.c: Likewise.
5796         * tests/test-idpriv-droptemp.c: Likewise.
5797         * tests/test-lock.c: Likewise.
5798         * tests/test-tls.c: Likewise.
5799         * lib/argp-help.c: Insert space before function-like macro argument
5800         list.
5801         * lib/memcmp.c: Likewise.
5802         * tests/test-base64.c: Likewise.
5803         * lib/localename.c: Insert space before sizeof's argument list.
5804         * lib/safe-alloc.h: Likewise.
5805         * lib/file-set.h: Insert space before macro argument list.
5806         * tests/test-argp.c: Likewise.
5807         * lib/argp-namefrob.h: Insert space before function parameter list.
5808         * lib/getaddrinfo.c: Likewise.
5809         * lib/netdb.in.h: Likewise.
5810         * lib/parse-duration.h: Likewise.
5811         * lib/parse-duration.c: Likewise.
5812         * lib/poll.c: Likewise.
5813         * lib/select.c: Likewise.
5814         * lib/trim.h: Likewise.
5815         * tests/test-usleep.c: Likewise.
5816         * lib/ldexpl.c: Insert space before function parameter list and before
5817         function argument list.
5818         * lib/logl.c: Likewise.
5819         * lib/sqrtl.c: Likewise.
5820         * lib/trim.c: Likewise.
5821         * lib/cosl.c: Use GNU style indentation. Insert space before function
5822         argument list.
5823         * lib/sinl.c: Likewise.
5824         * lib/tsearch.c: Insert space after 'for'.
5825         Reported by Jim Meyering.
5826
5827 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5828
5829         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5830         config header before grepping, as it's not present before
5831         autoreconf/configure are run.  Reported by Simon Josefsson.
5832
5833 2010-03-23  Bruno Haible  <bruno@clisp.org>
5834
5835         pt_chown: Make it work with automake < 1.11.
5836         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
5837         Reported by Simon Josefsson.
5838
5839 2010-03-23  Bruno Haible  <bruno@clisp.org>
5840
5841         pt_chown: Don't depend on GPLed modules.
5842         * lib/pt_chown.c: Don't include idpriv.h.
5843         (main): Don't drop privileges.
5844         * modules/pt_chown (Depends-on): Remove idpriv-drop.
5845         Reported by Simon Josefsson.
5846
5847 2010-03-24  Simon Josefsson  <simon@josefsson.org>
5848
5849         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
5850         suggestions from karl@freefriends.org (Karl Berry).
5851
5852 2010-03-22  Eric Blake  <eblake@redhat.com>
5853
5854         gethostname: further tweaks
5855         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
5856         are overriding gethostname.
5857         Suggested by Bruno Haible.
5858
5859 2010-03-21  Bruno Haible  <bruno@clisp.org>
5860
5861         Fix comments.
5862         * lib/forkpty.c (rpl_forkpty): Fix comment.
5863         * lib/openpty.c (rpl_openpty): Likewise.
5864         Reported by Eric Blake.
5865
5866 2010-03-22  Eric Blake  <eblake@redhat.com>
5867
5868         gethostname: fix build on mingw
5869         * lib/unistd.in.h (includes): Work around fact that mingw
5870         <winsock2.h> re-includes <unistd.h>, by avoiding any
5871         redeclarations if we are being included by <winsock2.h>.
5872         Reported by Matthias Bolte.
5873
5874 2010-03-21  Bruno Haible  <bruno@clisp.org>
5875
5876         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5877         * lib/forkpty.c (forkpty): New replacement function, from glibc with
5878         modifications.
5879         * lib/pty.in.h (forkpty): Update declaration. Add comments.
5880         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
5881         provide the replacement.
5882         * modules/forkpty (Depends-on): Add openpty, login_tty.
5883         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
5884         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
5885         * doc/glibc-functions/forkpty.texi: More supported platforms.
5886         * config/srclist.txt: Add forkpty.c (commented).
5887
5888 2010-03-21  Bruno Haible  <bruno@clisp.org>
5889
5890         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
5891         (Makefile.am): Verify that PTY_LIB is defined.
5892
5893         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
5894
5895 2010-03-21  Bruno Haible  <bruno@clisp.org>
5896
5897         Tests for module 'login_tty'.
5898         * modules/login_tty-tests: New file.
5899         * tests/test-login_tty.c: New file.
5900
5901         New module 'login_tty'.
5902         * lib/login_tty.c: New file.
5903         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
5904         * modules/login_tty: New file.
5905         * doc/glibc-functions/login_tty.texi: Mention the new module.
5906
5907 2010-03-21  Bruno Haible  <bruno@clisp.org>
5908
5909         login_tty: Documentation.
5910         * doc/glibc-functions/login_tty.texi: New file.
5911         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
5912
5913 2010-03-21  Bruno Haible  <bruno@clisp.org>
5914
5915         pty: Consistent macro naming.
5916         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
5917         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
5918         * modules/pty (configure.ac): Update.
5919
5920 2010-03-21  Bruno Haible  <bruno@clisp.org>
5921
5922         Tests for openpty: Make stricter.
5923         * tests/test-openpty.c (main): Add test of canonical processing and
5924         erase.
5925         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
5926
5927         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5928         * lib/openpty.c (openpty): New replacement function.
5929         * lib/pty.in.h: Include <termios.h>.
5930         (openpty): Update declaration. Add comments.
5931         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
5932         is not declared, arrange to provide the replacement. Check for _getpty
5933         and posix_openpt.
5934         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
5935         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
5936         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
5937         * modules/pty-tests (test_pty_c___LDADD): New variable.
5938         * doc/glibc-functions/openpty.texi: More supported platforms.
5939
5940 2010-03-21  Bruno Haible  <bruno@clisp.org>
5941
5942         setenv: Tweaks.
5943         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
5944         the test program.
5945         * doc/posix-functions/setenv.texi: Update platforms list.
5946
5947 2010-03-21  Bruno Haible  <bruno@clisp.org>
5948
5949         New module 'unlockpt'.
5950         * lib/unlockpt.c: New file, from glibc with modifications.
5951         * m4/unlockpt.m4: New file.
5952         * modules/unlockpt: New file.
5953         * lib/stdlib.in.h (unlockpt): New declaration.
5954         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
5955         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
5956         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
5957         HAVE_UNLOCKPT.
5958         * doc/posix-functions/unlockpt.texi: Mention the new module.
5959         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
5960         * config/srclist.txt: Add unlockpt.c (commented).
5961
5962 2010-03-21  Jim Meyering  <meyering@redhat.com>
5963
5964         maint.mk: prohibit inclusion of "intprops.h" without use
5965         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
5966
5967 2010-03-21  Bruno Haible  <bruno@clisp.org>
5968
5969         New module 'grantpt'.
5970         * lib/grantpt.c: New file, from glibc with modifications.
5971         * m4/grantpt.m4: New file.
5972         * modules/grantpt: New file.
5973         * lib/stdlib.in.h (grantpt): New declaration.
5974         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
5975         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
5976         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
5977         HAVE_GRANTPT.
5978         * doc/posix-functions/grantpt.texi: Mention the new module.
5979         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
5980         * config/srclist.txt: Add grantpt.c (commented).
5981
5982 2010-03-21  Bruno Haible  <bruno@clisp.org>
5983
5984         New module 'pt_chown'.
5985         * lib/pt_chown.c: New file, from glibc with modifications.
5986         * lib/pty-private.h: New file, from glibc with modifications.
5987         * modules/pt_chown: New file.
5988         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
5989
5990 2010-03-21  Bruno Haible  <bruno@clisp.org>
5991
5992         Tests for module 'ptsname'.
5993         * modules/ptsname-tests: New file.
5994         * tests/test-ptsname.c: New file.
5995
5996         New module 'ptsname'.
5997         * lib/ptsname.c: New file, from glibc with modifications.
5998         * m4/ptsname.m4: New file.
5999         * modules/ptsname: New file.
6000         * lib/stdlib.in.h (ptsname): New declaration.
6001         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
6002         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
6003         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
6004         HAVE_PTSNAME.
6005         * doc/posix-functions/ptsname.texi: Mention the new module.
6006         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
6007         * config/srclist.txt: Add ptsname.c (commented).
6008
6009 2010-03-21  Bruno Haible  <bruno@clisp.org>
6010
6011         Tests for module 'ttyname_r'.
6012         * modules/ttyname_r-tests: New file.
6013         * tests/test-ttyname_r.c: New file.
6014
6015         New module 'ttyname_r'.
6016         * lib/ttyname_r.c: New file.
6017         * m4/ttyname_r.m4: New file.
6018         * modules/ttyname_r: New file.
6019         * lib/unistd.in.h (ttyname_r): New declaration.
6020         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
6021         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
6022         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
6023         HAVE_TTYNAME_R.
6024         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
6025         * doc/posix-functions/ttyname_r.texi: Mention the new module.
6026
6027 2010-03-20  Bruno Haible  <bruno@clisp.org>
6028
6029         signal: Undefine macro definitions in C++ mode.
6030         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
6031         sigfillset): Undefine macro definitions from the system header in C++
6032         mode.
6033         Reported by John W. Eaton <jwe@gnu.org>.
6034
6035 2010-03-20  Bruno Haible  <bruno@clisp.org>
6036
6037         Ensure no #include statements inside extern "C" { ... }.
6038         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
6039         contain #include statements.
6040         * lib/time.in.h: Likewise.
6041
6042 2010-03-20  Bruno Haible  <bruno@clisp.org>
6043
6044         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
6045         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
6046         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
6047         Reported by John W. Eaton <jwe@gnu.org>.
6048
6049 2010-03-20  Bruno Haible  <bruno@clisp.org>
6050
6051         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
6052         Reported by Jim Meyering.
6053
6054 2010-03-20  Bruno Haible  <bruno@clisp.org>
6055
6056         pipe: Set errno upon failure.
6057         * lib/pipe.h: Specify that when -1 is returned, errno is set.
6058         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
6059         errno value in error message.
6060
6061 2010-03-20  Bruno Haible  <bruno@clisp.org>
6062             Jim Meyering  <meyering@redhat.com>
6063
6064         lchown: Avoid "unused variable" warning.
6065         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
6066
6067 2010-03-20  Bruno Haible  <bruno@clisp.org>
6068
6069         Work around unlink() bug on MacOS X 10.5.6.
6070         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
6071         attempting to unlink a parent directory.
6072         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
6073         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
6074         activate for the replacement function.
6075         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
6076
6077 2010-03-20  Bruno Haible  <bruno@clisp.org>
6078
6079         Fix link errors on Solaris 8.
6080         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
6081         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
6082
6083 2010-03-19  Jim Meyering  <meyering@redhat.com>
6084
6085         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
6086         The _LIBC implementation of build_range_exp correctly honors the
6087         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
6088         However, the non-_LIBC implementation would ignore that syntax-bit
6089         flag and return REG_ERANGE unconditionally.
6090         This change makes it honor that flag.
6091         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
6092         Make two pointer parameters "const".
6093         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
6094         (parse_bracket_exp): Update caller.
6095
6096         regex.m4: correct the reversed range endpoint ([b-a]) test
6097         * m4/regex.m4: When requiring that [b-a] evoke failure,
6098         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
6099         test pass once again for x86-based systems.
6100
6101 2010-03-19  Bruno Haible  <bruno@clisp.org>
6102
6103         scandir: Fix link error on Solaris 8.
6104         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
6105         macros.
6106
6107 2010-03-19  Bruno Haible  <bruno@clisp.org>
6108
6109         getusershell: Fix documentation.
6110         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
6111         module.
6112         * doc/glibc-functions/setusershell.texi: Likewise.
6113
6114         getusershell: Provide declaration, missing on Solaris 9.
6115         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
6116         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
6117         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
6118         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
6119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6120         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
6121         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
6122         HAVE_GETUSERSHELL.
6123         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
6124
6125 2010-03-19  Bruno Haible  <bruno@clisp.org>
6126
6127         wctype: Provide iswblank function.
6128         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
6129         exists and is fine.
6130         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
6131         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
6132         * tests/test-wctype.c (main): Re-enable the iswblank tests.
6133         * doc/posix-functions/iswblank.texi: Update.
6134
6135 2010-03-19  Bruno Haible  <bruno@clisp.org>
6136
6137         Tests of module 'pty' in C++ mode.
6138         * modules/pty-tests: New file.
6139         * tests/test-pty-c++.cc: New file.
6140         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6141
6142 2010-03-19  Eric Blake  <eblake@redhat.com>
6143
6144         logb: fix documentation
6145         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
6146         1.5 declaration bug.
6147
6148         forkpty, openpty: prefer glibc's const-safe prototype
6149         * lib/forkpty.c (rpl_forkpty): New file.
6150         * lib/openpty.c (rpl_openpty): Likewise.
6151         * modules/forkpty (Files): Distribute it.
6152         * modules/openpty (Files): Likewise.
6153         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
6154         check...
6155         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
6156         replacement for for non-const BSD signature.
6157         * modules/pty (Makefile.am): Substitute witnesses.
6158         * lib/pty.in.h (forkpty, openpty): Declare replacements.
6159         * tests/test-forkpty.c: Update signature check.
6160         * tests/test-openpty.c: Likewise.
6161         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
6162         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6163
6164         forkpty, openpty: split functions into new modules
6165         * modules/pty (Makefile.am): Substitute new witnesses.
6166         (Libraries): Move library detection...
6167         * modules/forkpty: ...into new module.
6168         * modules/openpty: Another new module.
6169         * modules/pty-tests: Rename and split...
6170         * modules/forkpty-tests: ...to this...
6171         * modules/openpty-tests: ...and this.
6172         * tests/test-pty.c: Rename and split...
6173         * tests/test-forkpty.c: ...to this...
6174         * tests/test-openpty.c: ...and this.
6175         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
6176         (gl_PTY): Split library searching...
6177         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
6178         (gl_FORKPTY, gl_OPENPTY): New macros.
6179         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
6180         * NEWS: Mention the split.
6181         * MODULES.html.sh (Misc): Document the modules.
6182         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
6183         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6184
6185         pty: improve replacement header
6186         * lib/pty.in.h: New file.
6187         * modules/pty (Files): Ship it.
6188         (Makefile.am): Always build replacement.
6189         * m4/pty.m4: Rename...
6190         * m4/pty_h.m4: ...to this.
6191         (gl_PTY): Modernize setting of witness macros; update check of
6192         forkpty to take proper advantage of cache.
6193         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
6194
6195         getopt: avoid compiler warning
6196         * lib/getopt.c (attribute_hidden): Remove unused macro.
6197
6198 2010-03-18  Bruno Haible  <bruno@clisp.org>
6199
6200         Fix link errors on Solaris 8.
6201         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
6202         * modules/search-tests (test_search_c___LDADD): Likewise.
6203         * modules/signal-tests (test_signal_c___LDADD): Likewise.
6204         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
6205         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
6206         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
6207         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
6208         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
6209         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
6210
6211 2010-03-18  Bruno Haible  <bruno@clisp.org>
6212
6213         Fix bug introduced on 2010-03-14.
6214         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
6215         (gl_SPAWN_H): Require it.
6216         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
6217         Reported by Simon Josefsson.
6218
6219 2010-03-18  Bruno Haible  <bruno@clisp.org>
6220
6221         Fix typo introduced on 2009-12-31.
6222         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
6223         posix_spawn_file_actions_adddup2.
6224
6225 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
6226         and Eric Blake  <eblake@redhat.com>
6227
6228         test-vc-list-files-git: make more robust
6229         * tests/test-vc-list-files-git.sh: Unset problematic environment
6230         variables.  Chain commands together.
6231
6232 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
6233
6234         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
6235         `AC_CHECK_DECL' invocation.
6236
6237 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
6238
6239         * lib/inttostr.c (inttostr): Make sure the invocation of verify
6240         appears before executable statements. Suggested by Petr Sumbera
6241         <Petr.Sumbera@Sun.COM>.
6242
6243 2010-03-14  Bruno Haible  <bruno@clisp.org>
6244
6245         * tests/test-flock.c (test_exclusive): Comment out a test that causes
6246         portability problems. Instead use a simpler test.
6247         (main): Check that invalid arguments are rejected only on Linux.
6248
6249 2010-03-14  Bruno Haible  <bruno@clisp.org>
6250
6251         Fix bug introduced on 2009-12-31.
6252         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
6253         gl_PREREQ_SYS_H_WINSOCK2 always.
6254         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
6255         SYS_SOCKET_H variable.
6256         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
6257         Update comments.
6258         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
6259         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6260         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6261         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6262         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6263
6264 2010-03-14  Bruno Haible  <bruno@clisp.org>
6265
6266         Fix values returned by sinl, cosl.
6267         * lib/trigl.h: Add specification comments.
6268         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
6269         that combines the values from the precomputed table with the values of
6270         the Chebyshev polynomials.
6271
6272 2010-03-14  Bruno Haible  <bruno@clisp.org>
6273
6274         Fix compilation error when modules 'posix_spawn[p]' are not used.
6275         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
6276         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
6277
6278 2010-03-14  Bruno Haible  <bruno@clisp.org>
6279
6280         Fix compilation error on mingw when module 'time_r' is not used.
6281         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
6282         is 1.
6283         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
6284         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6285         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
6286         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
6287
6288 2010-03-14  Bruno Haible  <bruno@clisp.org>
6289
6290         Fix compilation error with Sun C.
6291         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
6292         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
6293         instead of GCC specific ULONG_LONG_MAX.
6294         * lib/xstrtoll.c: Likewise.
6295         * lib/xstrtoull.c: Likewise.
6296
6297 2010-03-13  Bruno Haible  <bruno@clisp.org>
6298
6299         Allow the user to disable C++ code and tests.
6300         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
6301         (gl_PROG_ANSI_CXX): Require it.
6302
6303 2010-03-13  Bruno Haible  <bruno@clisp.org>
6304
6305         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
6306         cases.
6307
6308 2010-03-13  Bruno Haible  <bruno@clisp.org>
6309
6310         Test that gnulib does not break the standard C++ headers.
6311         * tests/test-locale-c++2.cc: New file.
6312         * modules/locale-tests (Files): Add it.
6313         (Makefile.am): Compile it for test-locale-c++.
6314         * tests/test-math-c++2.cc: New file.
6315         * modules/math-tests (Files): Add it.
6316         (Makefile.am): Compile it for test-math-c++.
6317         * tests/test-signal-c++2.cc: New file.
6318         * modules/signal-tests (Files): Add it.
6319         (Makefile.am): Compile it for test-signal-c++.
6320         * tests/test-stdio-c++2.cc: New file.
6321         * modules/stdio-tests (Files): Add it.
6322         (Makefile.am): Compile it for test-stdio-c++.
6323         * tests/test-stdlib-c++2.cc: New file.
6324         * modules/stdlib-tests (Files): Add it.
6325         (Makefile.am): Compile it for test-stdlib-c++.
6326         * tests/test-string-c++2.cc: New file.
6327         * modules/string-tests (Files): Add it.
6328         (Makefile.am): Compile it for test-string-c++.
6329         * tests/test-time-c++2.cc: New file.
6330         * modules/time-tests (Files): Add it.
6331         (Makefile.am): Compile it for test-time-c++.
6332         Reported by John W. Eaton <jwe@gnu.org>.
6333
6334 2010-03-13  Bruno Haible  <bruno@clisp.org>
6335
6336         * gnulib-tool (func_usage): Clarify which options are available for
6337         --create-testdir and --create-megatestdir.
6338
6339 2010-03-13  Bruno Haible  <bruno@clisp.org>
6340
6341         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
6342         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
6343         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
6344         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6345         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
6346         when appropriate.
6347         Reported by Jim Meyering.
6348
6349 2010-03-12  Simon Josefsson  <simon@josefsson.org>
6350
6351         * gnulib-tool (func_import): Explain origin of code.
6352
6353 2010-03-12  Bruno Haible  <bruno@clisp.org>
6354
6355         Fix problem with automake's definition of CXXLINK.
6356         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
6357         Reported by Simon Josefsson and Ludovic Courtès.
6358
6359 2010-03-12  Bruno Haible  <bruno@clisp.org>
6360
6361         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
6362         stable releases.
6363
6364 2010-03-11  Bruno Haible  <bruno@clisp.org>
6365
6366         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
6367         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
6368         whether the system provides one variant or multiple variants of the
6369         function.
6370         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
6371         C++ compilers.
6372         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
6373         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
6374         Reported by Jim Meyering.
6375
6376 2010-03-09  Simon Josefsson  <simon@josefsson.org>
6377
6378         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
6379
6380 2010-03-08  Bruno Haible  <bruno@clisp.org>
6381
6382         gnulib-tool: Add support for --libtool in --create-testdir.
6383         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
6384         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
6385
6386 2010-03-08  Eric Blake  <eblake@redhat.com>
6387
6388         gnulib-tool.texi: mention possibility of git submodule
6389         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
6390         submodules.
6391         * doc/.gitignore: Ignore another generated file.
6392
6393 2010-03-08  Karl Berry  <karl@gnu.org>
6394
6395         * doc/gnulib-tool.texi (VCS Issues): Mention third option
6396         of committing gnulib files while skipping others.
6397
6398 2010-03-07  Bruno Haible  <bruno@clisp.org>
6399
6400         Tests of module 'wctype' in C++ mode.
6401         * tests/test-wctype-c++.cc: New file.
6402         * modules/wctype-tests (Files): Add it and tests/signature.h.
6403         (Depends-on): Add ansi-c++-opt.
6404         (Makefile.am): Arrange to compile and run test-wctype-c++.
6405
6406         Tests of module 'wchar' in C++ mode.
6407         * tests/test-wchar-c++.cc: New file.
6408         * modules/wchar-tests (Files): Add it and tests/signature.h.
6409         (Depends-on): Add ansi-c++-opt.
6410         (Makefile.am): Arrange to compile and run test-wchar-c++.
6411         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
6412         gl_MODULE_INDICATOR.
6413
6414         Tests of module 'unistd' in C++ mode.
6415         * tests/test-unistd-c++.cc: New file.
6416         * modules/unistd-tests (Files): Add it and tests/signature.h.
6417         (Depends-on): Add ansi-c++-opt.
6418         (Makefile.am): Arrange to compile and run test-unistd-c++.
6419         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
6420         gl_MODULE_INDICATOR.
6421
6422         Tests of module 'time' in C++ mode.
6423         * tests/test-time-c++.cc: New file.
6424         * modules/time-tests (Files): Add it and tests/signature.h.
6425         (Depends-on): Add ansi-c++-opt.
6426         (Makefile.am): Arrange to compile and run test-time-c++.
6427         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6428
6429         Tests of module 'sys_time' in C++ mode.
6430         * tests/test-sys_time-c++.cc: New file.
6431         * modules/sys_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-sys_time-c++.
6434         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
6435         gl_MODULE_INDICATOR.
6436
6437         Tests of module 'sys_stat' in C++ mode.
6438         * tests/test-sys_stat-c++.cc: New file.
6439         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
6440         (Depends-on): Add ansi-c++-opt.
6441         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
6442         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
6443         gl_MODULE_INDICATOR.
6444
6445         Tests of module 'sys_socket' in C++ mode.
6446         * tests/test-sys_socket-c++.cc: New file.
6447         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6448         (Depends-on): Add ansi-c++-opt.
6449         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
6450         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
6451         gl_MODULE_INDICATOR.
6452
6453         Tests of module 'sys_select' in C++ mode.
6454         * tests/test-sys_select-c++.cc: New file.
6455         * modules/sys_select-tests (Files): Add it and tests/signature.h.
6456         (Depends-on): Add ansi-c++-opt.
6457         (Makefile.am): Arrange to compile and run test-sys_select-c++.
6458         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
6459         gl_MODULE_INDICATOR.
6460
6461         Tests of module 'sys_ioctl' in C++ mode.
6462         * tests/test-sys_ioctl-c++.cc: New file.
6463         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
6464         (Depends-on): Add ansi-c++-opt.
6465         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
6466         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
6467         gl_MODULE_INDICATOR.
6468
6469         Tests of module 'string' in C++ mode.
6470         * tests/test-string-c++.cc: New file.
6471         * modules/string-tests (Files): Add it and tests/signature.h.
6472         (Depends-on): Add ansi-c++-opt.
6473         (Makefile.am): Arrange to compile and run test-string-c++.
6474         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
6475         gl_MODULE_INDICATOR.
6476
6477         Tests of module 'stdlib' in C++ mode.
6478         * tests/test-stdlib-c++.cc: New file.
6479         * modules/stdlib-tests (Files): Add it and tests/signature.h.
6480         (Depends-on): Add ansi-c++-opt.
6481         (Makefile.am): Arrange to compile and run test-stdlib-c++.
6482         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
6483         gl_MODULE_INDICATOR.
6484
6485         Tests of module 'stdio' in C++ mode.
6486         * tests/test-stdio-c++.cc: New file.
6487         * modules/stdio-tests (Files): Add it and tests/signature.h.
6488         (Depends-on): Add ansi-c++-opt.
6489         (Makefile.am): Arrange to compile and run test-stdio-c++.
6490         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
6491         gl_MODULE_INDICATOR.
6492
6493         Tests of module 'spawn' in C++ mode.
6494         * tests/test-spawn-c++.cc: New file.
6495         * modules/spawn-tests (Files): Add it and tests/signature.h.
6496         (Depends-on): Add ansi-c++-opt.
6497         (Makefile.am): Arrange to compile and run test-spawn-c++.
6498         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
6499         gl_MODULE_INDICATOR.
6500
6501         Tests of module 'signal' in C++ mode.
6502         * tests/test-signal-c++.cc: New file.
6503         * modules/signal-tests (Files): Add it and tests/signature.h.
6504         (Depends-on): Add ansi-c++-opt.
6505         (Makefile.am): Arrange to compile and run test-signal-c++.
6506         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
6507         gl_MODULE_INDICATOR.
6508
6509         Tests of module 'search' in C++ mode.
6510         * tests/test-search-c++.cc: New file.
6511         * modules/search-tests (Files): Add it and tests/signature.h.
6512         (Depends-on): Add ansi-c++-opt.
6513         (Makefile.am): Arrange to compile and run test-search-c++.
6514         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
6515         gl_MODULE_INDICATOR.
6516
6517         Tests of module 'math' in C++ mode.
6518         * tests/test-math-c++.cc: New file.
6519         * modules/math-tests (Files): Add it and tests/signature.h.
6520         (Depends-on): Add ansi-c++-opt.
6521         (Makefile.am): Arrange to compile and run test-math-c++.
6522         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6523
6524         Tests of module 'locale' in C++ mode.
6525         * tests/test-locale-c++.cc: New file.
6526         * modules/locale-tests (Files): Add it and tests/signature.h.
6527         (Depends-on): Add ansi-c++-opt.
6528         (Makefile.am): Arrange to compile and run test-locale-c++.
6529         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
6530         gl_MODULE_INDICATOR.
6531
6532         Tests of module 'langinfo' in C++ mode.
6533         * tests/test-langinfo-c++.cc: New file.
6534         * modules/langinfo-tests (Files): Add it and tests/signature.h.
6535         (Depends-on): Add ansi-c++-opt.
6536         (Makefile.am): Arrange to compile and run test-langinfo-c++.
6537         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
6538         gl_MODULE_INDICATOR.
6539
6540         Tests of module 'iconv-h' in C++ mode.
6541         * tests/test-iconv-h-c++.cc: New file.
6542         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
6543         (Depends-on): Add ansi-c++-opt.
6544         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
6545
6546         Tests of module 'glob' in C++ mode.
6547         * tests/test-glob-c++.cc: New file.
6548         * modules/glob-tests (Files): Add it.
6549         (Depends-on): Add ansi-c++-opt.
6550         (Makefile.am): Arrange to compile and run test-glob-c++.
6551
6552         Tests of module 'fcntl-h' in C++ mode.
6553         * tests/test-fcntl-h-c++.cc: New file.
6554         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
6555         (Depends-on): Add ansi-c++-opt.
6556         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
6557         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
6558         gl_MODULE_INDICATOR.
6559
6560         Tests of module 'dirent' in C++ mode.
6561         * tests/test-dirent-c++.cc: New file.
6562         * modules/dirent-tests (Files): Add it and tests/signature.h.
6563         (Depends-on): Add ansi-c++-opt.
6564         (Makefile.am): Arrange to compile and run test-dirent-c++.
6565         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6566         gl_MODULE_INDICATOR.
6567
6568         New module 'ansi-c++-opt'.
6569         * modules/ansi-c++-opt: New file.
6570         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
6571
6572         Document C++ namespace mode.
6573         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
6574
6575         wctype: Avoid #define replacements in C++ mode.
6576         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
6577         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
6578         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
6579         In C++, define a namespaced alias symbol.
6580         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
6581         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
6582         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
6583         rule.
6584
6585         wchar: Avoid #define replacements in C++ mode.
6586         * lib/wchar.in.h: Include c++defs.h.
6587         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
6588         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
6589         symbol.
6590         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6591         * modules/wchar (Depends-on): Add c++defs.
6592         (Makefile.am): Update wchar.h rule.
6593
6594         unistd: Avoid #define replacements in C++ mode.
6595         * lib/unistd.in.h: Include c++defs.h.
6596         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6597         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6598         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6599         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6600         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6601         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6602         symbol.
6603         (environ): Update.
6604         * modules/unistd (Depends-on): Add c++defs.
6605         (Makefile.am): Update unistd.h rule.
6606
6607         time: Avoid #define replacements in C++ mode.
6608         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6609         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6610         define a namespaced alias symbol.
6611         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6612         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6613         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6614         * modules/time (Depends-on): Add c++defs, warn-on-use.
6615         (Makefile.am): Update time.h rule.
6616         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6617         * modules/nanosleep (configure.ac): Likewise.
6618         * modules/strptime (configure.ac): Likewise.
6619         * modules/timegm (configure.ac): Likewise.
6620
6621         sys_time: Avoid #define replacements in C++ mode.
6622         * lib/sys_time.in.h: Include c++defs.h.
6623         (gettimeofday): In C++, define a namespaced alias symbol.
6624         * modules/sys_time (Depends-on): Add c++defs.
6625         (Makefile.am): Update sys/time.h rule.
6626
6627         sys_stat: Avoid #define replacements in C++ mode.
6628         * lib/sys_stat.in.h: Include c++defs.h.
6629         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6630         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6631         namespaced alias symbol.
6632         In C++, define a namespaced alias symbol.
6633         * modules/sys_stat (Depends-on): Add c++defs.
6634         (Makefile.am): Update sys/stat.h rule.
6635
6636         sys_socket: Avoid #define replacements in C++ mode.
6637         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6638         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6639         definitions also when the system has a <sys/socket.h>.
6640         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6641         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6642         In C++, define a namespaced alias symbol.
6643         * modules/sys_socket (Depends-on): Add c++defs.
6644         (Makefile.am): Update sys/socket.h rule.
6645
6646         sys_select: Avoid #define replacements in C++ mode.
6647         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6648         definitions also when the system has a <sys/select.h>.
6649         (select): In C++, define a namespaced alias symbol.
6650         * modules/sys_select (Depends-on): Add c++defs.
6651         (Makefile.am): Update sys/select.h rule.
6652
6653         sys_ioctl: Avoid #define replacements in C++ mode.
6654         * lib/sys_ioctl.in.h: Include c++defs.h.
6655         (ioctl): In C++, define a namespaced alias symbol.
6656         * modules/sys_ioctl (Depends-on): Add c++defs.
6657         (Makefile.am): Update sys/ioctl.h rule.
6658
6659         string: Avoid #define replacements in C++ mode.
6660         * lib/string.in.h: Include c++defs.h.
6661         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6662         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6663         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6664         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6665         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6666         * modules/string (Depends-on): Add c++defs.
6667         (Makefile.am): Update string.h rule.
6668
6669         stdlib: Avoid #define replacements in C++ mode.
6670         * lib/stdlib.in.h: Include c++defs.h.
6671         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6672         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6673         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6674         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6675         symbol.
6676         * modules/stdlib (Depends-on): Add c++defs.
6677         (Makefile.am): Update stdlib.h rule.
6678
6679         stdio: Avoid #define replacements in C++ mode.
6680         * lib/stdio.in.h: Include c++defs.h.
6681         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6682         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6683         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6684         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6685         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6686         namespaced alias symbol.
6687         * modules/stdio (Depends-on): Add c++defs.
6688         (Makefile.am): Update stdio.h rule.
6689
6690         spawn: Avoid #define replacements in C++ mode.
6691         * lib/spawn.in.h: Include c++defs.h.
6692         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6693         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6694         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6695         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6696         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6697         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6698         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6699         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6700         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6701         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6702         In C++, define a namespaced alias symbol.
6703         * modules/spawn (Depends-on): Add c++defs.
6704         (Makefile.am): Update spawn.h rule.
6705
6706         signal: Avoid #define replacements in C++ mode.
6707         * lib/signal.in.h: Include c++defs.h.
6708         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6709         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6710         namespaced alias symbol.
6711         * modules/signal (Depends-on): Add c++defs.
6712         (Makefile.am): Update signal.h rule.
6713
6714         search: Avoid #define replacements in C++ mode.
6715         * lib/search.in.h: Include c++defs.h.
6716         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6717         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6718         symbol.
6719         * modules/search (Depends-on): Add c++defs.
6720         (Makefile.am): Update search.h rule.
6721
6722         math: Avoid #define replacements in C++ mode.
6723         * lib/math.in.h: Include c++defs.h.
6724         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6725         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6726         trunc, truncl): In C++, define a namespaced alias symbol.
6727         * modules/math (Depends-on): Add c++defs.
6728         (Makefile.am): Update math.h rule.
6729
6730         locale: Avoid #define replacements in C++ mode.
6731         * lib/locale.in.h: Include c++defs.h.
6732         (duplocale): In C++, define a namespaced alias symbol.
6733         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6734         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6735         * modules/locale (Depends-on): Add c++defs.
6736         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6737
6738         langinfo: Avoid #define replacements in C++ mode.
6739         * lib/langinfo.in.h: Include c++defs.h.
6740         (nl_langinfo): In C++, define a namespaced alias symbol.
6741         * modules/langinfo (Depends-on): Add c++defs.
6742         (Makefile.am): Update langinfo.h rule.
6743
6744         iconv-h: Avoid #define replacements in C++ mode.
6745         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6746         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6747         symbol.
6748         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6749         whenever iconv is present.
6750         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6751         (Makefile.am): Update iconv.h rule.
6752
6753         glob: Avoid #define replacements in C++ mode.
6754         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6755         (_gl_glob_errfunc_fn): New type.
6756         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6757         symbol.
6758         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6759         (Makefile.am): Update glob.h rule.
6760
6761         fcntl-h: Avoid #define replacements in C++ mode.
6762         * lib/fcntl.in.h: Include c++defs.h.
6763         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6764         * modules/fcntl-h (Depends-on): Add c++defs.
6765         (Makefile.am): Update fcntl.h rule.
6766
6767         dirent: Avoid #define replacements in C++ mode.
6768         * lib/dirent.in.h: Include c++defs.h.
6769         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6770         namespaced alias symbol.
6771         (dirfd): Update declaration.
6772         * modules/dirent (Depends-on): Add c++defs.
6773         (Makefile.am): Update dirent.h rule.
6774
6775         ctype: Make it usable in C++ code.
6776         * lib/ctype.in.h: Include c++defs.h.
6777         (isblank): Declare as extern "C".
6778         * modules/ctype (Depends-on): Add c++defs.
6779         (Makefile.am): Update ctype.h rule.
6780
6781         New module 'c++defs'.
6782         * modules/c++defs: New file.
6783         * build-aux/c++defs.h: New file.
6784         Reported by John W. Eaton <jwe@gnu.org>.
6785
6786 2010-03-07  Bruno Haible  <bruno@clisp.org>
6787
6788         logb: Provide missing declaration for Cygwin.
6789         * lib/math.in.h (logb): New declaration.
6790         * m4/logb.m4: New file.
6791         * modules/logb (Files): Add m4/logb.m4.
6792         (Depends-on): Add math.
6793         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6794         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6795         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6796         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6797         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6798
6799 2010-03-07  Bruno Haible  <bruno@clisp.org>
6800
6801         Fix test-cond link error.
6802         * tests/test-cond.c: Include <stdio.h>.
6803
6804 2010-03-07  Bruno Haible  <bruno@clisp.org>
6805
6806         Fix test-dirent-safer link error.
6807         * modules/dirent-safer-tests (Makefile.am): Define
6808         test_dirent_safer_LDADD.
6809
6810 2010-03-07  Bruno Haible  <bruno@clisp.org>
6811
6812         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6813         among default module list.
6814
6815 2010-03-07  Bruno Haible  <bruno@clisp.org>
6816
6817         Fix link error on platforms with GNU libiconv.
6818         * modules/unistr/u8-strcoll-tests (Makefile): Define
6819         test_u8_strcoll_LDADD.
6820         * modules/unistr/u16-strcoll-tests (Makefile): Define
6821         test_u16_strcoll_LDADD.
6822         * modules/unistr/u32-strcoll-tests (Makefile): Define
6823         test_u32_strcoll_LDADD.
6824
6825 2010-03-07  Bruno Haible  <bruno@clisp.org>
6826
6827         Use POSIX declarations for socket functions.
6828         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6829         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6830         rpl_sendto): Change declaration to match POSIX.
6831         * lib/connect.c (rpl_connect): Likewise.
6832         * lib/accept.c (rpl_accept): Likewise.
6833         * lib/bind.c (rpl_bind): Likewise.
6834         * lib/getpeername.c (rpl_getpeername): Likewise.
6835         * lib/getsockname.c (rpl_getsockname): Likewise.
6836         * lib/recv.c (rpl_recv): Likewise.
6837         * lib/send.c (rpl_send): Likewise.
6838         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6839         * lib/sendto.c (rpl_sendto): Likewise.
6840
6841 2010-03-06  Bruno Haible  <bruno@clisp.org>
6842
6843         Clarify access, euidaccess, faccessat.
6844         * doc/posix-functions/faccessat.texi: Mention security problem under
6845         "Other problems", not "Portability problems".
6846         * doc/posix-functions/access.texi: Likewise. Mention a related security
6847         problem.
6848         * doc/glibc-functions/euidaccess.texi: Mention security problems.
6849         * lib/euidaccess.c: Add comments about platforms.
6850         * lib/unistd.in.h (access, euidaccess): Add warnings.
6851
6852 2010-03-07  Bruno Haible  <bruno@clisp.org>
6853
6854         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
6855         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
6856         (POSIX_SPAWN_SETSCHEDULER): Likewise.
6857         (POSIX_SPAWN_USEVFORK): Define in a way that works when
6858         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6859         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
6860         declare when POSIX_SPAWN_SETSCHEDULER is zero.
6861         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
6862         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
6863         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
6864         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
6865         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
6866         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
6867         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
6868         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
6869         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
6870         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
6871         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
6872         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
6873         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
6874         Likewise.
6875         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
6876         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
6877         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
6878         Likewise.
6879         * tests/test-spawn.c (main): Make it work when
6880         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6881
6882 2010-03-07  Bruno Haible  <bruno@clisp.org>
6883
6884         Fix incorrect Makefile.am generation in German locale.
6885         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6886         Execute sed command with character range in C locale.
6887
6888 2010-03-06  Bruno Haible  <bruno@clisp.org>
6889
6890         Tests for module 'iconv-h'.
6891         * modules/iconv-h-tests: New file.
6892         * tests/test-iconv-h.c: New file.
6893
6894         New module 'iconv-h'.
6895         * modules/iconv-h: New file.
6896         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
6897         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
6898         (configure.ac): Remove gl_ICONV_H.
6899         (Makefile.am): Remove rule for iconv.h.
6900
6901 2010-03-06  Bruno Haible  <bruno@clisp.org>
6902
6903         More consistent naming of *.m4 files.
6904         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
6905         * modules/wctype (Files): Update.
6906
6907         More consistent naming of *.m4 files.
6908         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
6909         * modules/wchar (Files): Update.
6910
6911 2010-03-06  Jim Meyering  <meyering@redhat.com>
6912
6913         euidaccess: relax license to LGPLv2+
6914         * modules/euidaccess (License): Relax to LGPLv2+.
6915
6916 2010-03-06  Bruno Haible  <bruno@clisp.org>
6917
6918         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
6919         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
6920         (Makefile.am): Augment lib_SOURCES instead.
6921
6922 2010-03-04  Jim Meyering  <meyering@redhat.com>
6923
6924         utime: remove obsolete module
6925         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
6926         unnecessary for years, and has been marked as obsolete for 10 months.
6927         * modules/utime: Remove file.
6928         * lib/utime.c: Remove file.
6929         * m4/utime.m4: Remove file.
6930         * m4/utimes-null.m4: Remove file.
6931         * doc/posix-functions/utime.texi (utime): Remove reference to
6932         the module.  Move the sole "fixed by gnulib" item into the
6933         "problems not fixed by Gnulib" list.
6934         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
6935
6936 2010-03-05  Simon Josefsson  <simon@josefsson.org>
6937
6938         * modules/exit (License): Relax license to LGPLv2+.
6939         (Status): Mark as obsolete.
6940         * NEWS: Mention deprecated 'exit' module.
6941         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
6942         of now obsolete 'exit'.
6943
6944 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6945
6946         fts-lgpl: remove unused module
6947         * modules/fts-lgpl: Remove.
6948         * MODULES.html.sh (func_all_modules): Adjust.
6949         * check-module (find_included_lib_files): Adjust.
6950         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
6951
6952 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
6953
6954         copy-acl: enhance Solaris ACL error handling
6955         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
6956         * lib/set-mode-acl.c (qset_acl): Likewise.
6957
6958 2010-03-02  Bruno Haible  <bruno@clisp.org>
6959
6960         spawn: Don't override the system defined values on FreeBSD 8.
6961         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
6962         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
6963         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
6964         if HAVE_POSIX_SPAWN is 1.
6965         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
6966
6967 2010-03-01  Bruno Haible  <bruno@clisp.org>
6968
6969         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
6970         regarding Automake.
6971
6972 2010-02-25  Bruno Haible  <bruno@clisp.org>
6973
6974         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
6975         * gnulib-tool: Define 'echo' as a function only before the ksh alias
6976         setting, not afterwards.
6977         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6978
6979 2010-02-24  Eric Blake  <eblake@redhat.com>
6980
6981         bootstrap, git-version-gen: use timestamp
6982         * build-aux/git-version-gen (scriptversion): Force UTC.
6983         * build-aux/bootstrap (scriptversion): New variable.
6984
6985         bootstrap: allow older git
6986         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
6987         older than 1.6.4.  Requested by the libvirt project.
6988
6989 2010-02-23  Eric Blake  <eblake@redhat.com>
6990
6991         warn-on-use: work with old autoconf
6992         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
6993         AS_VAR semantics of autoconf 2.60.
6994         Reported by Bruno Haible.
6995
6996         bootstrap: improve some comments
6997         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
6998         clarification comments.
6999
7000         gettimeofday: provide correct function
7001         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
7002         when replacement is declared, otherwise provide gettimeofday.
7003         Reported by Michael Goffioul.
7004
7005 2010-02-23  Jim Meyering  <meyering@redhat.com>
7006
7007         lib-ignore: relax license to "unlimited", not LGPLv2+
7008         * modules/lib-ignore (License): Relax to "unlimited".
7009
7010 2010-02-23  Jim Meyering  <meyering@redhat.com>
7011
7012         lib-ignore: relax license to LGPLv2+
7013         * modules/lib-ignore (License): Relax to LGPLv2+.
7014
7015 2010-02-22  Eric Blake  <eblake@redhat.com>
7016
7017         lseek: avoid bash 3.2 broken pipe bug
7018         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
7019         warning from bash 3.2.
7020         Reported by Ben Pfaff, with analysis from Bruno Haible.
7021
7022         bootstrap: support non-FSF copyright holder
7023         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
7024         bootstrap.conf override of COPYRIGHT_HOLDER.
7025         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
7026
7027         bootstrap: interoperate with gettext 0.14.1
7028         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
7029
7030         bootstrap: allow for alternate submodule location
7031         * build-aux/bootstrap (gnulib_path): New variable; use instead of
7032         hardcoding submodule location.
7033         (gnulib_mk): Allow direct use of Makefile.am.
7034
7035         bootstrap: use GNULIB_SRCDIR to reduce disk usage
7036         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
7037         rather than reconfiguring where the submodule points.
7038
7039         gettimeofday: restore support for platforms that lack function
7040         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
7041         replacement if function is missing.
7042         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
7043         * modules/sys_time (Makefile.am): Substitute it.
7044         * lib/sys_time.in.h (gettimeofday): Check it.
7045         Reported by Michael Goffioul.
7046
7047 2010-02-21  Bruno Haible  <bruno@clisp.org>
7048
7049         * lib/stdio.in.h (obstack_printf): Fix typo.
7050
7051 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
7052
7053         vc-list-files: use bzr ls's -R option
7054         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
7055         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
7056
7057 2010-02-21  Jim Meyering  <meyering@redhat.com>
7058
7059         init.sh: fix EXEEXT shims to work also for names like test-prog
7060         * tests/init.sh: Re-exec a better shell, when needed.
7061         If the current shell lacks support for posix $(...), an init.sh-using
7062         test will now try to find a shell that supports that.  If EXEEXT is
7063         nonempty, we also require support for hyphen-in-alias-name and shell
7064         substitutions like ${var#glob}.  Failure to find such a shell results
7065         in a skipped test.
7066
7067 2010-02-21  Bruno Haible  <bruno@clisp.org>
7068
7069         Really work around around "broken pipe" error message from bash 3.2.
7070         * gnulib-tool (func_reset_sigpipe): Remove function.
7071         (echo): In bash 3.2, define to a function that uses printf.
7072         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
7073
7074 2010-02-20  Bruno Haible  <bruno@clisp.org>
7075
7076         Restore support for automake 1.9.6 with autoconf 2.61.
7077         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
7078         Reported by James Youngman <jay@gnu.org>.
7079
7080 2010-02-20  Bruno Haible  <bruno@clisp.org>
7081
7082         Improve *printf warning condition.
7083         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
7084         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
7085         and the function is overridden due to SIGPIPE emulation.
7086
7087 2010-02-20  Bruno Haible  <bruno@clisp.org>
7088
7089         * lib/stdio.in.h: Tweak comments.
7090
7091 2010-02-19  Bruno Haible  <bruno@clisp.org>
7092
7093         Make it easier to find modules. New gnulib-tool option '--find'.
7094         * gnulib-tool: New option --find.
7095         (func_usage): Document it.
7096         (func_sanitize_modulelist): New function, extracted from
7097         func_all_modules.
7098         (func_all_modules): Invoke it.
7099         * doc/gnulib-tool.texi (Which modules?): New node.
7100
7101 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
7102
7103         * lib/sys_select.in.h: Provide select replacement even if
7104         sys/select.h exists on a system, for Interix.
7105
7106 2010-02-18  Jim Meyering  <meyering@redhat.com>
7107
7108         init.sh: don't use $(...) just yet
7109         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
7110         to accommodate e.g., Solaris' /bin/sh.
7111
7112 2010-02-17  Bruno Haible  <bruno@clisp.org>
7113
7114         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
7115         Reported by Ludovic Courtès <ludo@gnu.org>.
7116
7117 2010-02-16  Simon Josefsson  <simon@josefsson.org>
7118
7119         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
7120         linking with -lintl.
7121
7122 2010-02-17  Simon Josefsson  <simon@josefsson.org>
7123
7124         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
7125         if not provided by the system's netdb.h.  Reported by
7126         ludo@gnu.org (Ludovic Courtès).
7127
7128 2010-02-15  Jim Meyering  <meyering@redhat.com>
7129
7130         init.sh: improve portability and efficiency
7131         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
7132         "dummy" in a for loop.
7133         Use '!', not '^' to select the complement of a character set used
7134         in a "case" statement.
7135         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
7136         Suggestions from Eric Blake.
7137
7138         init.sh: automatically accommodate programs with the .exe suffix
7139         Automatically arrange for an invocation of "prog" to execute the
7140         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
7141         may use the simpler "prog", yet still work when built on a system
7142         that requires specifying the added suffix.
7143         Do this by constructing a function named "prog" that invokes
7144         "prog.exe" for each .exe file in selected directories.
7145         * tests/init.sh (find_exe_basenames_): New function.
7146         (create_exe_shim_functions_): New function.
7147         (path_prepend_): Use it.
7148
7149         maint.mk: mark syntax-check sc_*.m rules as .PHONY
7150         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
7151         "make -t syntax-check" doesn't create a ton of sc_*.m files.
7152
7153 2010-02-14  Jim Meyering  <meyering@redhat.com>
7154
7155         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
7156         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
7157         (sc_prohibit_hash_pjw_without_use): New rule.
7158
7159         maint.mk: allow the default upload destination dir to be overridden
7160         * top/maint.mk (upload_dest_dir_): Define with a default that
7161         preserves the status quo.
7162         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
7163         Reported by Peter Simons.
7164
7165         maint.mk: prohibit inclusion of "hash.h" without_use
7166         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
7167
7168 2010-02-10  Jim Meyering  <meyering@redhat.com>
7169
7170         maint.mk: prohibit inclusion of "ignore-value.h" without_use
7171         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
7172
7173 2010-02-09  Eric Blake  <ebb9@byu.net>
7174         and Bruno Haible  <bruno@clisp.org>
7175
7176         obstack-printf-posix: ensure declaration
7177         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
7178         extracted from gl_FUNC_OBSTACK_PRINTF.
7179         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
7180         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
7181         Likewise.
7182         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
7183         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
7184         0.
7185
7186 2010-02-08  Bruno Haible  <bruno@clisp.org>
7187
7188         gnulib-tool: Fix typo in 2010-02-07 commit.
7189         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
7190         Reported by Eric Blake.
7191
7192 2010-02-07  Bruno Haible  <bruno@clisp.org>
7193
7194         gnulib-tool: Fix up caching patches.
7195         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
7196         option --no-cache. Use associative arrays when supported by the shell.
7197         (sed_comments): New variable.
7198         (modcache): Renamed from do_cache.
7199         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
7200         abbreviate unnecessarily.
7201         (have_associative): New variable.
7202         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
7203         way also for ksh and zsh.
7204         (func_init_sed_convert_to_cache_statements): New function, extracted
7205         from func_cache_lookup_module. Add support for associative arrays.
7206         Don't set the c_MODULE_cached variable here. Ignore all lines before
7207         the first field header. Remove only the final newline, not all trailing
7208         newlines. Support empty fields correctly. Limit the use of 'eval' to
7209         assignments.
7210         (func_get_description, func_get_status, func_get_notice,
7211         func_get_applicability, func_get_filelist, func_get_dependencies,
7212         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
7213         func_get_automake_snippet, func_get_include_directive,
7214         func_get_link_directive, func_get_license, func_get_maintainer):
7215         Update documentation. List the unoptimized code first. Add support for
7216         associative arrays. Limit the use of 'eval' to assignments.
7217         (func_get_applicability): Undo stylistic pessimisations.
7218         (func_get_automake_snippet, func_get_include_directive): Reduce code
7219         duplication.
7220         (func_modules_transitive_closure, func_modules_add_dummy,
7221         func_modules_notice, func_modules_to_filelist, func_add_file,
7222         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
7223         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
7224         func_create_testdir, func_create_megatestdir): Update documentation.
7225
7226 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7227
7228         * gnulib-tool (func_cache_lookup_module): Store the module name
7229         belonging to the cache variable; error out if two different
7230         module names map to the same cache variable name.
7231
7232 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7233
7234         gnulib-tool: Make caching optional.
7235         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
7236         Update matching short versions of --no-changelog.
7237         (func_usage): Update.
7238         (sed_extract_cache_prog): Renamed from ...
7239         (sed_extract_prog): ... this; revert to old extraction script.
7240         (func_get_description, func_get_status)
7241         (func_get_notice, func_get_applicability, func_get_filelist)
7242         (func_get_dependencies, func_get_autoconf_early_snippet)
7243         (func_get_autoconf_snippet, func_get_automake_snippet)
7244         (func_get_include_directive, func_get_link_directive)
7245         (func_get_license, func_get_maintainer): If $do_cache is false,
7246         use old, non-caching extraction scripts.
7247         Suggestion by Bruno Haible.
7248
7249 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7250
7251         gnulib-tool: cache module metainformation.
7252         * gnulib-tool (sed_extract_prog): Match newline before each
7253         header, and rewrite header to a shell variable suffix.
7254         (func_cache_var, func_cache_lookup_module): New functions,
7255         to turn a module name into a cache variable prefix, and to
7256         look up and cache module metainformation.
7257         (func_get_description, func_get_status)
7258         (func_get_notice, func_get_applicability, func_get_filelist)
7259         (func_get_dependencies, func_get_autoconf_early_snippet)
7260         (func_get_autoconf_snippet, func_get_automake_snippet)
7261         (func_get_include_directive, func_get_link_directive)
7262         (func_get_license, func_get_maintainer): Use
7263         func_cache_lookup_module.
7264
7265 2010-02-07  Bruno Haible  <bruno@clisp.org>
7266
7267         fnctl: Fix missing dependency.
7268         * modules/fcntl (Depends-on): Add getdtablesize.
7269         Reported by John W. Eaton <jwe@gnu.org>.
7270
7271 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7272
7273         Argp: fix recognition of short alias options.
7274
7275         * lib/argp-parse.c (convert_options): Fix improper use of
7276         `|' between character values.
7277         * tests/test-argp.c (group1_option): New alias option
7278         --read (-r).
7279         (group1_parser): Special handling for 'r'.
7280         (test15): New test case.
7281         (test_fun): Add test15.
7282         * tests/test-argp-2.sh: Update expected --help and --usage
7283         outputs.
7284
7285 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7286
7287         * tests/test-argp.c: Fix indentation.
7288
7289 2010-02-04  Eric Blake  <ebb9@byu.net>
7290
7291         gettimeofday: expose type of second argument
7292         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
7293         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
7294         * tests/test-gettimeofday.c: Use it to silence warning.
7295         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
7296         the issue.
7297
7298 2010-02-03  Jim Meyering  <meyering@redhat.com>
7299
7300         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
7301         * lib/regcomp.c (TYPE_SIGNED): Define.
7302         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
7303
7304         regcomp.c: avoid a new -Wshadow warning
7305         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
7306
7307 2010-02-01  Jim Meyering  <meyering@redhat.com>
7308
7309         removing useless parentheses in cpp #define directives
7310         For motivation, see commit c0221df4, "define STREQ(a,b)
7311         consistently, removing useless parentheses"
7312         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
7313         * lib/mountlist.c (MNT_IGNORE): Likewise.
7314         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
7315
7316 2010-02-01  Eric Blake  <ebb9@byu.net>
7317
7318         sys_time: use link-warning
7319         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
7320         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
7321         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
7322         * modules/sys_time (Depends-on): Add warn-on-use.
7323         (Makefile.am): Always build replacement.
7324         (configure.ac): Update substitutions.
7325         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
7326         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
7327         bother with SYS_TIME_H.
7328         * modules/gettimeofday (configure.ac): Declare indicator.
7329         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
7330         in use.
7331
7332         closein-tests: silence compiler warning
7333         * tests/test-closein.c (main): Ignore fread result.
7334         * modules/closein-tests (Depends-on): Add ignore-value.
7335
7336         tests: silence warning about system return
7337         * tests/test-areadlink-with-size.c (main): Ignore system result.
7338         * tests/test-areadlink.c (main): Likewise.
7339         * tests/test-areadlinkat-with-size.c (main): Likewise.
7340         * tests/test-areadlinkat.c (main): Likewise.
7341         * tests/test-canonicalize-lgpl.c (main): Likewise.
7342         * tests/test-canonicalize.c (main): Likewise.
7343         * tests/test-chown.c (main): Likewise.
7344         * tests/test-fchownat.c (main): Likewise.
7345         * tests/test-fdutimensat.c (main): Likewise.
7346         * tests/test-fstatat.c (main): Likewise.
7347         * tests/test-futimens.c (main): Likewise.
7348         * tests/test-lchown.c (main): Likewise.
7349         * tests/test-link.c (main): Likewise.
7350         * tests/test-linkat.c (main): Likewise.
7351         * tests/test-lstat.c (main): Likewise.
7352         * tests/test-mkdir.c (main): Likewise.
7353         * tests/test-mkdirat.c (main): Likewise.
7354         * tests/test-mkfifo.c (main): Likewise.
7355         * tests/test-mkfifoat.c (main): Likewise.
7356         * tests/test-mknod.c (main): Likewise.
7357         * tests/test-readlink.c (main): Likewise.
7358         * tests/test-remove.c (main): Likewise.
7359         * tests/test-rename.c (main): Likewise.
7360         * tests/test-renameat.c (main): Likewise.
7361         * tests/test-rmdir.c (main): Likewise.
7362         * tests/test-symlink.c (main): Likewise.
7363         * tests/test-symlinkat.c (main): Likewise.
7364         * tests/test-unlink.c (main): Likewise.
7365         * tests/test-unlinkat.c (main): Likewise.
7366         * tests/test-utimens.c (main): Likewise.
7367         * tests/test-utimensat.c (main): Likewise.
7368         * modules/areadlink-tests (Depends-on): Add ignore-value.
7369         * modules/areadlink-with-size-tests (Depends-on): Likewise.
7370         * modules/areadlinkat-tests (Depends-on): Likewise.
7371         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
7372         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7373         * modules/canonicalize-tests (Depends-on): Likewise.
7374         * modules/chown-tests (Depends-on): Likewise.
7375         * modules/fdutimensat-tests (Depends-on): Likewise.
7376         * modules/futimens-tests (Depends-on): Likewise.
7377         * modules/lchown-tests (Depends-on): Likewise.
7378         * modules/link-tests (Depends-on): Likewise.
7379         * modules/linkat-tests (Depends-on): Likewise.
7380         * modules/lstat-tests (Depends-on): Likewise.
7381         * modules/mkdir-tests (Depends-on): Likewise.
7382         * modules/mkfifo-tests (Depends-on): Likewise.
7383         * modules/mkfifoat-tests (Depends-on): Likewise.
7384         * modules/mknod-tests (Depends-on): Likewise.
7385         * modules/openat-tests (Depends-on): Likewise.
7386         * modules/readlink-tests (Depends-on): Likewise.
7387         * modules/remove-tests (Depends-on): Likewise.
7388         * modules/rename-tests (Depends-on): Likewise.
7389         * modules/renameat-tests (Depends-on): Likewise.
7390         * modules/rmdir-tests (Depends-on): Likewise.
7391         * modules/symlink-tests (Depends-on): Likewise.
7392         * modules/symlinkat-tests (Depends-on): Likewise.
7393         * modules/unlink-tests (Depends-on): Likewise.
7394         * modules/utimens-tests (Depends-on): Likewise.
7395         * modules/utimensat-tests (Depends-on): Likewise.
7396
7397 2010-01-31  Bruno Haible  <bruno@clisp.org>
7398
7399         Perform the same test for many <math.h> functions.
7400         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
7401         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
7402         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
7403         of gl_MATHFUNC.
7404         * modules/acos (configure.ac): Likewise.
7405         * modules/asin (configure.ac): Likewise.
7406         * modules/atan (configure.ac): Likewise.
7407         * modules/atan2 (configure.ac): Likewise.
7408         * modules/cbrt (configure.ac): Likewise.
7409         * modules/copysign (configure.ac): Likewise.
7410         * modules/cos (configure.ac): Likewise.
7411         * modules/cosh (configure.ac): Likewise.
7412         * modules/erf (configure.ac): Likewise.
7413         * modules/erfc (configure.ac): Likewise.
7414         * modules/exp (configure.ac): Likewise.
7415         * modules/fmod (configure.ac): Likewise.
7416         * modules/hypot (configure.ac): Likewise.
7417         * modules/j0 (configure.ac): Likewise.
7418         * modules/j1 (configure.ac): Likewise.
7419         * modules/jn (configure.ac): Likewise.
7420         * modules/lgamma (configure.ac): Likewise.
7421         * modules/log (configure.ac): Likewise.
7422         * modules/log10 (configure.ac): Likewise.
7423         * modules/log1p (configure.ac): Likewise.
7424         * modules/pow (configure.ac): Likewise.
7425         * modules/remainder (configure.ac): Likewise.
7426         * modules/sin (configure.ac): Likewise.
7427         * modules/sinh (configure.ac): Likewise.
7428         * modules/tan (configure.ac): Likewise.
7429         * modules/tanh (configure.ac): Likewise.
7430         * modules/y0 (configure.ac): Likewise.
7431         * modules/y1 (configure.ac): Likewise.
7432         * modules/yn (configure.ac): Likewise.
7433         Suggested by Paolo Bonzini.
7434
7435 2010-01-31  Bruno Haible  <bruno@clisp.org>
7436
7437         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
7438
7439 2010-01-31  Bruno Haible  <bruno@clisp.org>
7440
7441         Work around getdelim() bug on FreeBSD 8.0.
7442         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
7443         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
7444         not work.
7445         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
7446         is 1.
7447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
7448         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
7449         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
7450         a non-zero size.
7451         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
7452
7453 2010-01-31  Bruno Haible  <bruno@clisp.org>
7454
7455         Work around getline() bug on FreeBSD 8.0.
7456         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
7457         and a non-zero size.
7458         * tests/test-getline.c (main): Likewise.
7459         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
7460         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
7461
7462 2010-01-28  Eric Blake  <ebb9@byu.net>
7463
7464         regex: fix build failure
7465         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
7466         platforms.
7467
7468 2010-01-28  Jim Meyering  <meyering@redhat.com>
7469
7470         regex: do not ignore memory allocation failure
7471         * lib/regex_internal.c (create_cd_newstate): Detect
7472         re_node_set_init_copy failure.   Extracted from glibc commit
7473         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7474
7475         regex: sync more white-space changes from libc
7476         * lib/regex_internal.c: White-space only changes.
7477         * lib/regexec.c: Likewise.
7478
7479         regex: add many uses of __attribute_warn_unused_result__
7480         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
7481         * lib/regexec.c: Likewise.
7482         Extracted from a messy glibc commit.
7483
7484         regcomp.c: spelling and merge-artifact from glibc
7485         * lib/regcomp.c: Merge remainder of glibc's
7486         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7487
7488         regcomp.c: sync white-space changes from glibc
7489         * lib/regcomp.c: Merge to accommodate white space
7490         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7491
7492         regcomp.c: do not ignore internal return values
7493         * lib/regcomp.c: Do not ignore internal return values.
7494         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
7495         but without its white-space changes and spelling fixes.
7496
7497         regex_internal.h: define __attribute_warn_unused_result__
7498         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
7499
7500         maint: add a syntax-check rule to check for vulnerable Makefile.in
7501         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
7502
7503 2010-01-27  Jim Meyering  <meyering@redhat.com>
7504
7505         ncftpput-ftp: clean up spaces
7506         * build-aux/ncftpput-ftp: Make Copyright line consistent.
7507         Remove trailing blanks.
7508
7509 2010-01-27  Simon Josefsson  <simon@josefsson.org>
7510
7511         * build-aux/git-version-gen: Fix copyright statement.
7512         * build-aux/gnupload: Likewise.
7513         * tests/test-arcfour.c: Likewise.
7514         * tests/test-arctwo.c: Likewise.
7515         * tests/test-count-one-bits.c: Likewise.
7516         * tests/test-crc.c: Likewise.
7517         * tests/test-des.c: Likewise.
7518         * tests/test-gc-arcfour.c: Likewise.
7519         * tests/test-gc-arctwo.c: Likewise.
7520         * tests/test-gc-des.c: Likewise.
7521         * tests/test-gc-hmac-md5.c: Likewise.
7522         * tests/test-gc-hmac-sha1.c: Likewise.
7523         * tests/test-gc-md2.c: Likewise.
7524         * tests/test-gc-md4.c: Likewise.
7525         * tests/test-gc-md5.c: Likewise.
7526         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7527         * tests/test-gc-rijndael.c: Likewise.
7528         * tests/test-gc-sha1.c: Likewise.
7529         * tests/test-gc.c: Likewise.
7530         * tests/test-gethostname.c: Likewise.
7531         * tests/test-gettimeofday.c: Likewise.
7532         * tests/test-hash.c: Likewise.
7533         * tests/test-hmac-md5.c: Likewise.
7534         * tests/test-hmac-sha1.c: Likewise.
7535         * tests/test-md2.c: Likewise.
7536         * tests/test-md4.c: Likewise.
7537         * tests/test-md5.c: Likewise.
7538         * tests/test-memchr.c: Likewise.
7539         * tests/test-memchr2.c: Likewise.
7540         * tests/test-memcmp.c: Likewise.
7541         * tests/test-memmem.c: Likewise.
7542         * tests/test-memrchr.c: Likewise.
7543         * tests/test-rawmemchr.c: Likewise.
7544         * tests/test-read-file.c: Likewise.
7545         * tests/test-rijndael.c: Likewise.
7546         * tests/test-sockets.c: Likewise.
7547         * tests/test-strchrnul.c: Likewise.
7548         * tests/test-strstr.c: Likewise.
7549         * tests/test-strtod.c: Likewise.
7550         * build-aux/ncftpput-ftp: Likewise.
7551
7552 2010-01-26  Eric Blake  <ebb9@byu.net>
7553
7554         ignore-value: update recommended header name
7555         * modules/ignore-value (Include): Only use <> for headers that
7556         exist in glibc.
7557
7558 2010-01-26  Jim Meyering  <meyering@redhat.com>
7559
7560         test-userspec.c: avoid compiler warnings
7561         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
7562         and "initialization discards qualifiers..." warnings.
7563         Put the first "uid" in its own scope, and make char* members "const".
7564
7565 2010-01-25  Bruno Haible  <bruno@clisp.org>
7566
7567         gnulib-tool: Make warning diagnostics consistent.
7568         * gnulib-tool (func_warning): New function.
7569         Use it everywhere where gnulib-tool produces output to stderr and it is
7570         not a fatal error.
7571
7572 2010-01-25  Bruno Haible  <bruno@clisp.org>
7573
7574         Fix test dependencies.
7575         * modules/xstrtol-tests (Depends-on): Add inttypes.
7576         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
7577
7578 2010-01-25 Pádraig Brady <P@draigBrady.com>
7579
7580         syntax-check: detect incorrect boolean macro values in config.h
7581         * modules/maintainer-makefile (configure.ac): Parameterize the location
7582         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
7583         The logic is from Eric Blake and the location indicated by Jim Meyering.
7584         Note the more natural CONFIG_HEADER name is prohibited by automake
7585         for backwards compatibility reasons.
7586         * top/maint.mk (sc_Wundef_boolean): New rule.
7587
7588 2010-01-25  Jim Meyering  <meyering@redhat.com>
7589
7590         bootstrap: detect MacOS 10.6's shasum, too
7591         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7592         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7593
7594 2010-01-23  Jim Meyering  <meyering@redhat.com>
7595
7596         xstrtoll: new module
7597         * modules/xstrtoll: New file.
7598         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7599         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7600         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7601         ./configure fails if you use this module and lack "long long".
7602         * modules/xstrtoll-tests: New module.
7603         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7604         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7605         new init.sh-based test framework.
7606
7607 2010-01-24  Bruno Haible  <bruno@clisp.org>
7608
7609         Tests for module 'yn'.
7610         * modules/yn-tests: New file.
7611         * tests/test-yn.c: New file.
7612
7613         Tests for module 'y1'.
7614         * modules/y1-tests: New file.
7615         * tests/test-y1.c: New file.
7616
7617         Tests for module 'y0'.
7618         * modules/y0-tests: New file.
7619         * tests/test-y0.c: New file.
7620
7621         Tests for module 'tanh'.
7622         * modules/tanh-tests: New file.
7623         * tests/test-tanh.c: New file.
7624
7625         Tests for module 'tan'.
7626         * modules/tan-tests: New file.
7627         * tests/test-tan.c: New file.
7628
7629         Tests for module 'sqrt'.
7630         * modules/sqrt-tests: New file.
7631         * tests/test-sqrt.c: New file.
7632
7633         Tests for module 'sinh'.
7634         * modules/sinh-tests: New file.
7635         * tests/test-sinh.c: New file.
7636
7637         Tests for module 'sin'.
7638         * modules/sin-tests: New file.
7639         * tests/test-sin.c: New file.
7640
7641         Tests for module 'rint'.
7642         * modules/rint-tests: New file.
7643         * tests/test-rint.c: New file.
7644
7645         Tests for module 'remainder'.
7646         * modules/remainder-tests: New file.
7647         * tests/test-remainder.c: New file.
7648
7649         Tests for module 'pow'.
7650         * modules/pow-tests: New file.
7651         * tests/test-pow.c: New file.
7652
7653         Tests for module 'nextafter'.
7654         * modules/nextafter-tests: New file.
7655         * tests/test-nextafter.c: New file.
7656
7657         Tests for module 'modf'.
7658         * modules/modf-tests: New file.
7659         * tests/test-modf.c: New file.
7660
7661         Tests for module 'logb'.
7662         * modules/logb-tests: New file.
7663         * tests/test-logb.c: New file.
7664
7665         Tests for module 'log1p'.
7666         * modules/log1p-tests: New file.
7667         * tests/test-log1p.c: New file.
7668
7669         Tests for module 'log10'.
7670         * modules/log10-tests: New file.
7671         * tests/test-log10.c: New file.
7672
7673         Tests for module 'log'.
7674         * modules/log-tests: New file.
7675         * tests/test-log.c: New file.
7676
7677         Tests for module 'lgamma'.
7678         * modules/lgamma-tests: New file.
7679         * tests/test-lgamma.c: New file.
7680
7681         Tests for module 'ldexp'.
7682         * modules/ldexp-tests: New file.
7683         * tests/test-ldexp.c: New file.
7684
7685         Tests for module 'jn'.
7686         * modules/jn-tests: New file.
7687         * tests/test-jn.c: New file.
7688
7689         Tests for module 'j1'.
7690         * modules/j1-tests: New file.
7691         * tests/test-j1.c: New file.
7692
7693         Tests for module 'j0'.
7694         * modules/j0-tests: New file.
7695         * tests/test-j0.c: New file.
7696
7697         Tests for module 'hypot'.
7698         * modules/hypot-tests: New file.
7699         * tests/test-hypot.c: New file.
7700
7701         Tests for module 'fmod'.
7702         * modules/fmod-tests: New file.
7703         * tests/test-fmod.c: New file.
7704
7705         Tests for module 'fabs'.
7706         * modules/fabs-tests: New file.
7707         * tests/test-fabs.c: New file.
7708
7709         Tests for module 'exp'.
7710         * modules/exp-tests: New file.
7711         * tests/test-exp.c: New file.
7712
7713         Tests for module 'erfc'.
7714         * modules/erfc-tests: New file.
7715         * tests/test-erfc.c: New file.
7716
7717         Tests for module 'erf'.
7718         * modules/erf-tests: New file.
7719         * tests/test-erf.c: New file.
7720
7721         Tests for module 'cosh'.
7722         * modules/cosh-tests: New file.
7723         * tests/test-cosh.c: New file.
7724
7725         Tests for module 'cos'.
7726         * modules/cos-tests: New file.
7727         * tests/test-cos.c: New file.
7728
7729         Tests for module 'copysign'.
7730         * modules/copysign-tests: New file.
7731         * tests/test-copysign.c: New file.
7732
7733         Tests for module 'cbrt'.
7734         * modules/cbrt-tests: New file.
7735         * tests/test-cbrt.c: New file.
7736
7737         Tests for module 'atan2'.
7738         * modules/atan2-tests: New file.
7739         * tests/test-atan2.c: New file.
7740
7741         Tests for module 'atan'.
7742         * modules/atan-tests: New file.
7743         * tests/test-atan.c: New file.
7744
7745         Tests for module 'asin'.
7746         * modules/asin-tests: New file.
7747         * tests/test-asin.c: New file.
7748
7749         Tests for module 'acos'.
7750         * modules/acos-tests: New file.
7751         * tests/test-acos.c: New file.
7752
7753 2010-01-24  Bruno Haible  <bruno@clisp.org>
7754
7755         Fix tests for common <math.h> functions.
7756         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7757         code snippet that references the function pointer, rather than merely
7758         calling the function. Substitute the FUNC_LIBM variable.
7759         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7760         * modules/acos (configure.ac): Likewise.
7761         * modules/asin (configure.ac): Likewise.
7762         * modules/atan (configure.ac): Likewise.
7763         * modules/atan2 (configure.ac): Likewise.
7764         * modules/cbrt (configure.ac): Likewise.
7765         * modules/copysign (configure.ac): Likewise.
7766         * modules/cos (configure.ac): Likewise.
7767         * modules/cosh (configure.ac): Likewise.
7768         * modules/erf (configure.ac): Likewise.
7769         * modules/erfc (configure.ac): Likewise.
7770         * modules/exp (configure.ac): Likewise.
7771         * modules/fabs (configure.ac): Likewise.
7772         * modules/fmod (configure.ac): Likewise.
7773         * modules/hypot (configure.ac): Likewise.
7774         * modules/j0 (configure.ac): Likewise.
7775         * modules/j1 (configure.ac): Likewise.
7776         * modules/jn (configure.ac): Likewise.
7777         * modules/ldexp (configure.ac): Likewise.
7778         * modules/lgamma (configure.ac): Likewise.
7779         * modules/log (configure.ac): Likewise.
7780         * modules/log10 (configure.ac): Likewise.
7781         * modules/log1p (configure.ac): Likewise.
7782         * modules/logb (configure.ac): Likewise.
7783         * modules/modf (configure.ac): Likewise.
7784         * modules/nextafter (configure.ac): Likewise.
7785         * modules/pow (configure.ac): Likewise.
7786         * modules/remainder (configure.ac): Likewise.
7787         * modules/rint (configure.ac): Likewise.
7788         * modules/sin (configure.ac): Likewise.
7789         * modules/sinh (configure.ac): Likewise.
7790         * modules/tan (configure.ac): Likewise.
7791         * modules/tanh (configure.ac): Likewise.
7792         * modules/y0 (configure.ac): Likewise.
7793         * modules/y1 (configure.ac): Likewise.
7794         * modules/yn (configure.ac): Likewise.
7795
7796 2010-01-24  Bruno Haible  <bruno@clisp.org>
7797
7798         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7799         * tests/test-acosl.c (x): New variable.
7800         (main): Store argument in x and fetch it from x.
7801         * tests/test-asinl.c (x): New variable.
7802         (main): Store argument in x and fetch it from x.
7803         * tests/test-atanl.c (x): New variable.
7804         (main): Store argument in x and fetch it from x.
7805         * tests/test-cosl.c (x): New variable.
7806         (main): Store argument in x and fetch it from x.
7807         * tests/test-expl.c (x): New variable.
7808         (main): Store argument in x and fetch it from x.
7809         * tests/test-logl.c (x): New variable.
7810         (main): Store argument in x and fetch it from x.
7811         * tests/test-sinl.c (x): New variable.
7812         (main): Store argument in x and fetch it from x.
7813         * tests/test-sqrtl.c (x): New variable.
7814         (main): Store argument in x and fetch it from x.
7815         * tests/test-tanl.c (x): New variable.
7816         (main): Store argument in x and fetch it from x.
7817
7818 2010-01-24  Bruno Haible  <bruno@clisp.org>
7819
7820         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7821         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7822         assignments to the initial TESTS_ENVIRONMENT.
7823         * doc/gnulib.texi (Unit test modules): Document it.
7824         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7825         TESTS_ENVIRONMENT.
7826         * modules/btowc-tests (Makefile.am): Likewise.
7827         * modules/c-stack-tests (Makefile.am): Likewise.
7828         * modules/c-strcase-tests (Makefile.am): Likewise.
7829         * modules/copy-file-tests (Makefile.am): Likewise.
7830         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7831         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7832         * modules/mbrtowc-tests (Makefile.am): Likewise.
7833         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7834         * modules/mbscasestr-tests (Makefile.am): Likewise.
7835         * modules/mbschr-tests (Makefile.am): Likewise.
7836         * modules/mbscspn-tests (Makefile.am): Likewise.
7837         * modules/mbsinit-tests (Makefile.am): Likewise.
7838         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7839         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7840         * modules/mbspbrk-tests (Makefile.am): Likewise.
7841         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7842         * modules/mbsrchr-tests (Makefile.am): Likewise.
7843         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7844         * modules/mbsspn-tests (Makefile.am): Likewise.
7845         * modules/mbsstr-tests (Makefile.am): Likewise.
7846         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7847         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7848         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7849         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7850         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7851         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7852         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7853         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7854         * modules/wcrtomb-tests (Makefile.am): Likewise.
7855         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7856         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7857         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
7858         assignments from TESTS_ENVIRONMENT.
7859         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
7860         augmentation.
7861         * modules/argp-version-etc-tests (Makefile.am): Likewise.
7862         * modules/atexit-tests (Makefile.am): Likewise.
7863         * modules/binary-io-tests (Makefile.am): Likewise.
7864         * modules/closein-tests (Makefile.am): Likewise.
7865         * modules/dprintf-posix-tests (Makefile.am): Likewise.
7866         * modules/exclude-tests (Makefile.am): Likewise.
7867         * modules/fflush-tests (Makefile.am): Likewise.
7868         * modules/fpending-tests (Makefile.am): Likewise.
7869         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7870         * modules/freadahead-tests (Makefile.am): Likewise.
7871         * modules/freadptr-tests (Makefile.am): Likewise.
7872         * modules/freadseek-tests (Makefile.am): Likewise.
7873         * modules/fseek-tests (Makefile.am): Likewise.
7874         * modules/fseeko-tests (Makefile.am): Likewise.
7875         * modules/ftell-tests (Makefile.am): Likewise.
7876         * modules/ftello-tests (Makefile.am): Likewise.
7877         * modules/idpriv-drop-tests (Makefile.am): Likewise.
7878         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
7879         * modules/lseek-tests (Makefile.am): Likewise.
7880         * modules/parse-duration-tests (Makefile.am): Likewise.
7881         * modules/perror-tests (Makefile.am): Likewise.
7882         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
7883         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
7884         * modules/pipe-tests (Makefile.am): Likewise.
7885         * modules/pread-tests (Makefile.am): Likewise.
7886         * modules/printf-posix-tests (Makefile.am): Likewise.
7887         * modules/select-tests (Makefile.am): Likewise.
7888         * modules/sigpipe-tests (Makefile.am): Likewise.
7889         * modules/tsearch-tests (Makefile.am): Likewise.
7890         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7891         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7892         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7893         * modules/uniwidth/width-tests (Makefile.am): Likewise.
7894         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
7895         * modules/version-etc-tests (Makefile.am): Likewise.
7896         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7897         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7898         * modules/xalloc-die-tests (Makefile.am): Likewise.
7899         * modules/xprintf-posix-tests (Makefile.am): Likewise.
7900         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7901         * modules/xstrtol-tests (Makefile.am): Likewise.
7902         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7903         * modules/yesno-tests (Makefile.am): Likewise.
7904         Suggested by Jim Meyering.
7905
7906 2010-01-24  Bruno Haible  <bruno@clisp.org>
7907
7908         More documentation.
7909         * doc/gnulib.texi (Writing modules): New chapter.
7910         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
7911         the new chapter.
7912
7913 2010-01-24  Jim Meyering  <meyering@redhat.com>
7914
7915         maint.mk: do not prepend "./" after filtering
7916         * top/maint.mk (_prepend_srcdir_prefix): New variable
7917         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
7918         "./" when $(srcdir) is ".".
7919
7920         define STREQ(a,b) consistently, removing useless parentheses
7921         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
7922         since the only risk is that "a" or "b" contains an unparenthesized
7923         comma, but if either did that, STREQ would have 3 or more arguments.
7924         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
7925         * lib/fts.c (STREQ): Remove unnecessary parentheses.
7926         * lib/hash-triple.c (STREQ): Likewise.
7927         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
7928         * lib/getugroups.c (STREQ): Likewise.
7929
7930 2010-01-23  Jim Meyering  <meyering@redhat.com>
7931
7932         maint.mk: fix syntax-check in a non-srcdir build directory
7933         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
7934         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
7935
7936 2010-01-22  Jim Meyering  <meyering@redhat.com>
7937
7938         userspec: add unit tests
7939         * tests/test-userspec.c: New file.
7940         * modules/userspec-tests: Likewise.
7941
7942 2010-01-21  Jim Meyering  <meyering@redhat.com>
7943
7944         maint.mk: handle source file names containing "." robustly
7945         * top/maint.mk (_dot_escaped_srcdir): Define.
7946         (VC_LIST): Use it in LHS of sed substitution.
7947
7948 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
7949
7950         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
7951         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
7952         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
7953         from a non-srcdir build.
7954
7955 2010-01-20  Eric Blake  <ebb9@byu.net>
7956
7957         warn-on-use: use instead of link-warning
7958         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
7959         * modules/unistd (Depends-on, Makefile.am): Likewise.
7960         * modules/arpa_inet (Depends-on): Replace link-warning with
7961         warn-on-use.
7962         (Makefile.am): Update rules accordingly.
7963         * modules/ctype (Depends-on, Makefile.am): Likewise.
7964         * modules/dirent (Depends-on, Makefile.am): Likewise.
7965         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
7966         * modules/inttypes (Depends-on, Makefile.am): Likewise.
7967         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7968         * modules/locale (Depends-on, Makefile.am): Likewise.
7969         * modules/math (Depends-on, Makefile.am): Likewise.
7970         * modules/search (Depends-on, Makefile.am): Likewise.
7971         * modules/signal (Depends-on, Makefile.am): Likewise.
7972         * modules/spawn (Depends-on, Makefile.am): Likewise.
7973         * modules/stdlib (Depends-on, Makefile.am): Likewise.
7974         * modules/string (Depends-on, Makefile.am): Likewise.
7975         * modules/strings (Depends-on, Makefile.am): Likewise.
7976         * modules/sys_file (Depends-on, Makefile.am): Likewise.
7977         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
7978         * modules/sys_select (Depends-on, Makefile.am): Likewise.
7979         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
7980         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
7981         * modules/sys_times (Depends-on, Makefile.am): Likewise.
7982         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7983         * modules/wchar (Depends-on, Makefile.am): Likewise.
7984         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
7985         should be poisoned.
7986         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
7987         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
7988         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
7989         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7990         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7991         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7992         * m4/math_h.m4 (gl_MATH_H): Likewise.
7993         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7994         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7995         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7996         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7997         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7998         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
7999         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8000         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
8001         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8002         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8003         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8004         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8005         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8006         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8007         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8008         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8009         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
8010         GL_LINK_WARNING.
8011         * lib/ctype.in.h: Likewise.
8012         * lib/dirent.in.h: Likewise.
8013         * lib/fcntl.in.h: Likewise.
8014         * lib/inttypes.in.h: Likewise.
8015         * lib/langinfo.in.h: Likewise.
8016         * lib/locale.in.h: Likewise.
8017         * lib/math.in.h: Likewise.
8018         * lib/search.in.h: Likewise.
8019         * lib/signal.in.h: Likewise.
8020         * lib/spawn.in.h: Likewise.
8021         * lib/stdio.in.h: Likewise.
8022         * lib/stdlib.in.h: Likewise.
8023         * lib/string.in.h: Likewise.
8024         * lib/strings.in.h: Likewise.
8025         * lib/sys_file.in.h: Likewise.
8026         * lib/sys_ioctl.in.h: Likewise.
8027         * lib/sys_select.in.h: Likewise.
8028         * lib/sys_socket.in.h: Likewise.
8029         * lib/sys_stat.in.h: Likewise.
8030         * lib/sys_times.in.h: Likewise.
8031         * lib/sys_utsname.in.h: Likewise.
8032         * lib/unistd.in.h: Likewise.
8033         * lib/wchar.in.h: Likewise.
8034
8035 2010-01-20  Bruno Haible  <bruno@clisp.org>
8036
8037         Avoid duplicate -lm.
8038         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
8039         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
8040         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
8041         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
8042         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
8043         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
8044         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
8045         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
8046         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
8047         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
8048         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
8049         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8050         Reported by Paolo Bonzini.
8051
8052 2010-01-19  Bruno Haible  <bruno@clisp.org>
8053
8054         langinfo, nl_langinfo: Relicense under LGPLv2+.
8055         * modules/langinfo (License): Change to LGPLv2+.
8056         * modules/nl_langinfo (License): Likewise.
8057         Patch by David Lutterkort <lutter@redhat.com>.
8058
8059 2010-01-19  Bruno Haible  <bruno@clisp.org>
8060
8061         Avoid compilation error with cc on OSF/1 5.1.
8062         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
8063         statement, not before.
8064         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8065
8066 2010-01-18  Bruno Haible  <bruno@clisp.org>
8067
8068         Avoid a link error due to the __printf__ symbol.
8069         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
8070         and 2.6.x.
8071         (__format__, __printf__): Remove definitions.
8072         * lib/argp-fmtstream.h: Likewise.
8073         * lib/argp.h: Likewise.
8074         * lib/error.h: Likewise.
8075         * lib/vasnprintf.h: Likewise.
8076         * lib/xprintf.h: Likewise.
8077         * lib/xvasprintf.h: Likewise.
8078         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8079
8080 2010-01-18  Bruno Haible  <bruno@clisp.org>
8081
8082         Tests for module 'tanl'.
8083         * modules/tanl-tests: New file.
8084         * tests/test-tanl.c: New file.
8085
8086         Tests for module 'sqrtl'.
8087         * modules/sqrtl-tests: New file.
8088         * tests/test-sqrtl.c: New file.
8089
8090         Tests for module 'sinl'.
8091         * modules/sinl-tests: New file.
8092         * tests/test-sinl.c: New file.
8093
8094         Tests for module 'logl'.
8095         * modules/logl-tests: New file.
8096         * tests/test-logl.c: New file.
8097
8098         Tests for module 'expl'.
8099         * modules/expl-tests: New file.
8100         * tests/test-expl.c: New file.
8101
8102         Tests for module 'cosl'.
8103         * modules/cosl-tests: New file.
8104         * tests/test-cosl.c: New file.
8105
8106         Tests for module 'atanl'.
8107         * modules/atanl-tests: New file.
8108         * tests/test-atanl.c: New file.
8109
8110         Tests for module 'asinl'.
8111         * modules/asinl-tests: New file.
8112         * tests/test-asinl.c: New file.
8113
8114         Tests for module 'acosl'.
8115         * modules/acosl-tests: New file.
8116         * tests/test-acosl.c: New file.
8117
8118         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8119         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
8120         tanl): Use the standard gnulib idiom.
8121         * lib/cosl.c: Don't include trigl.c and sincosl.c.
8122         * lib/sinl.c: Likewise.
8123         * lib/tanl.c: Don't include trigl.c.
8124         (kernel_tanl): Make static.
8125         * lib/sincosl.c: Include trigl.h first.
8126         * lib/trigl.c: Likewise.
8127         * m4/acosl.m4: New file.
8128         * m4/asinl.m4: New file.
8129         * m4/atanl.m4: New file.
8130         * m4/cosl.m4: New file.
8131         * m4/expl.m4: New file.
8132         * m4/logl.m4: New file.
8133         * m4/sinl.m4: New file.
8134         * m4/sqrtl.m4: New file.
8135         * m4/tanl.m4: New file.
8136         * m4/mathl.m4: Remove file.
8137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
8138         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8139         Don't initialize GNULIB_MATHL.
8140         * modules/acosl: New file.
8141         * modules/asinl: New file.
8142         * modules/atanl: New file.
8143         * modules/cosl: New file.
8144         * modules/expl: New file.
8145         * modules/logl: New file.
8146         * modules/sinl: New file.
8147         * modules/sqrtl: New file.
8148         * modules/tanl: New file.
8149         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
8150         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
8151         substitute GNULIB_MATHL.
8152         * modules/mathl: Rewritten.
8153         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
8154         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
8155         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
8156         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
8157         * doc/posix-functions/expl.texi: Mention the 'expl' module.
8158         * doc/posix-functions/logl.texi: Mention the 'logl' module.
8159         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
8160         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
8161         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
8162
8163 2010-01-18  Bruno Haible  <bruno@clisp.org>
8164
8165         sqrt: Make gl_FUNC_SQRT requirable.
8166         * m4/sqrt.m4: New file.
8167         * modules/sqrt (Files): Add it.
8168         (configure.ac): Invoke gl_FUNC_SQRT.
8169
8170 2010-01-18  Bruno Haible  <bruno@clisp.org>
8171
8172         New modules for common <math.h> functions.
8173         * m4/mathfunc.m4: New file.
8174         * modules/acos: New file.
8175         * modules/asin: New file.
8176         * modules/atan: New file.
8177         * modules/atan2: New file.
8178         * modules/cbrt: New file.
8179         * modules/copysign: New file.
8180         * modules/cos: New file.
8181         * modules/cosh: New file.
8182         * modules/erf: New file.
8183         * modules/erfc: New file.
8184         * modules/exp: New file.
8185         * modules/fabs: New file.
8186         * modules/fmod: New file.
8187         * modules/hypot: New file.
8188         * modules/j0: New file.
8189         * modules/j1: New file.
8190         * modules/jn: New file.
8191         * modules/ldexp: New file.
8192         * modules/lgamma: New file.
8193         * modules/log: New file.
8194         * modules/log10: New file.
8195         * modules/log1p: New file.
8196         * modules/logb: New file.
8197         * modules/modf: New file.
8198         * modules/nextafter: New file.
8199         * modules/pow: New file.
8200         * modules/remainder: New file.
8201         * modules/rint: New file.
8202         * modules/sin: New file.
8203         * modules/sinh: New file.
8204         * modules/sqrt: New file.
8205         * modules/tan: New file.
8206         * modules/tanh: New file.
8207         * modules/y0: New file.
8208         * modules/y1: New file.
8209         * modules/yn: New file.
8210         * doc/posix-functions/acos.texi: Mention the 'acos' module.
8211         * doc/posix-functions/asin.texi: Mention the 'asin' module.
8212         * doc/posix-functions/atan.texi: Mention the 'atan' module.
8213         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
8214         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
8215         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
8216         * doc/posix-functions/cos.texi: Mention the 'cos' module.
8217         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
8218         * doc/posix-functions/erf.texi: Mention the 'erf' module.
8219         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
8220         * doc/posix-functions/exp.texi: Mention the 'exp' module.
8221         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
8222         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
8223         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
8224         * doc/posix-functions/j0.texi: Mention the 'j0' module.
8225         * doc/posix-functions/j1.texi: Mention the 'j1' module.
8226         * doc/posix-functions/jn.texi: Mention the 'jn' module.
8227         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
8228         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
8229         * doc/posix-functions/log.texi: Mention the 'log' module.
8230         * doc/posix-functions/log10.texi: Mention the 'log10' module.
8231         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
8232         * doc/posix-functions/logb.texi: Mention the 'logb' module.
8233         * doc/posix-functions/modf.texi: Mention the 'modf' module.
8234         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
8235         * doc/posix-functions/pow.texi: Mention the 'pow' module.
8236         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
8237         * doc/posix-functions/rint.texi: Mention the 'rint' module.
8238         * doc/posix-functions/sin.texi: Mention the 'sin' module.
8239         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
8240         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
8241         * doc/posix-functions/tan.texi: Mention the 'tan' module.
8242         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
8243         * doc/posix-functions/y0.texi: Mention the 'y0' module.
8244         * doc/posix-functions/y1.texi: Mention the 'y1' module.
8245         * doc/posix-functions/yn.texi: Mention the 'yn' module.
8246
8247 2010-01-18  Jim Meyering  <meyering@redhat.com>
8248
8249         ignore-value: relax license to LGPLv2+
8250         * modules/ignore-value (License): Relax to LGPLv2+.
8251
8252         getdate: don't leak when TZ contains two or more '"'s
8253         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
8254         double quote in TZ after the first one.
8255
8256         readtokens: do not leak internal token_lengths buffer
8257         * lib/readtokens.c (readtokens): Free the local, lengths,
8258         when the supplied "token_lengths" parameter is NULL.
8259
8260 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8261
8262         Fix a couple of missing LIBTHREAD link failures on AIX.
8263         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
8264         $(LIBTHREAD).
8265         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
8266
8267         Link test-poll against INET_PTON_LIB.
8268         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
8269         for inet_pton on Solaris 10.
8270
8271 2010-01-17  Bruno Haible  <bruno@clisp.org>
8272
8273         unistdio/*-sprintf: Fix typo in module description.
8274         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
8275         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
8276         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
8277         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
8278         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
8279         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
8280         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
8281         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8282
8283 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8284
8285         gnulib-tool: fix filelist for AIX, HP-UX ksh.
8286         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
8287         variables in shell case patterns, for AIX and HP-UX ksh.
8288
8289         Split large sed scripts, for HP-UX sed.
8290         * modules/stdio: Split sed scripts around 50 sed commands,
8291         to avoid HP-UX limit of 99 commands, in the near future.
8292         * modules/string: Likewise.
8293         * modules/unistd: Likewise.
8294
8295         gnulib-tool: avoid writing in the current directory.
8296         * gnulib-tool (func_emit_lib_Makefile_am)
8297         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
8298         not in the current directory, so concurrent gnulib-tool
8299         instances do not interfere.
8300
8301 2010-01-16  Jim Meyering  <meyering@redhat.com>
8302
8303         doc: update users.txt
8304         * users.txt: Add grep.
8305         (diffutils, gzip): Update URLs.
8306
8307 2010-01-12  Bruno Haible  <bruno@clisp.org>
8308
8309         posix_spawn: Avoid test failure on Cygwin.
8310         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
8311         characters.
8312         Reported by Simon Josefsson.
8313
8314 2010-01-12  Bruno Haible  <bruno@clisp.org>
8315
8316         * tests/test-cond.c (main): When skipping the test, show the reason.
8317
8318 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8319
8320         * lib/striconv.c (str_cd_iconv): Avoid if before free.
8321
8322 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8323
8324         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
8325         VC_LIST_ALWAYS_EXCLUDE_REGEX.
8326
8327 2010-01-12  Eric Blake  <ebb9@byu.net>
8328
8329         build: guarantee AS_VAR_IF
8330         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
8331         (gl_AS_VAR_IF): Move...
8332         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
8333         Reported by Simon Josefsson.
8334
8335 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8336
8337         * lib/stdio.in.h: Fix typo.
8338
8339 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8340
8341         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
8342         libgpg-error.
8343
8344 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8345
8346         * tests/test-xalloc-die.sh: Use $EXEEXT.
8347
8348 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8349             Bruno Haible  <bruno@clisp.org>
8350
8351         getlogin, getlogin_r: Avoid test failure.
8352         * tests/test-getlogin.c: Include <stdio.h>.
8353         (main): Skip the test when the function fails because stdin is not a
8354         tty.
8355         * tests/test-getlogin_r.c: Include <stdio.h>.
8356         (main): Skip the test when the function fails because stdin is not a
8357         tty.
8358
8359 2010-01-11  Eric Blake  <ebb9@byu.net>
8360
8361         tests: avoid more large file warnings
8362         * tests/test-fflush.c: Avoid warning about ftell use.
8363         * tests/test-fseek.c: Avoid warning about fseek use.
8364
8365 2010-01-10  Bruno Haible  <bruno@clisp.org>
8366
8367         nproc: Work better on Linux when /proc and /sys are not mounted.
8368         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
8369         as lower bound when, on glibc/Linux systems,
8370         sysconf (_SC_NPROCESSORS_CONF) returns 1.
8371         Suggested by Pádraig Brady <P@draigbrady.com>.
8372         Reported by Dmitry V. Levin <ldv@altlinux.org>.
8373
8374         nproc: Refactor.
8375         * lib/nproc.c (num_processors_via_affinity_mask): New function,
8376         extracted from num_processors.
8377         (num_processors): Call it.
8378
8379 2010-01-11  Jim Meyering  <meyering@redhat.com>
8380
8381         utimecmp: avoid new warning from upcoming gcc-4.5.0
8382         * lib/utimecmp.c (BILLION): Define using #define rather than an
8383         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
8384
8385 2010-01-11  Eric Blake  <ebb9@byu.net>
8386
8387         math: add portability warnings for classification macros
8388         * modules/math (Depends-on): Add warn-on-use.
8389         (Makefile.am): Provide new substitutions.
8390         * m4/math_h.m4 (gl_MATH_H): Require inline.
8391         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
8392         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
8393         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
8394         implement warnings.
8395
8396         unistd: warn on use of environ without module
8397         * modules/unistd (Depends-on): Add warn-on-use.
8398         (Makefile.am): Provide new substitutions.
8399         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
8400         * lib/unistd.in.h (environ): Wrap with a warning helper function.
8401
8402         stdio: warn on suspicious uses
8403         * modules/stdio (Depends-on): Add warn-on-use.
8404         (Makefile.am): Provide new substitutions.
8405         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
8406         fseeko.
8407         * lib/stdio.in.h (gets): Always warn on use.
8408         (fseek, ftell): Adjust when warnings are issued, and honor
8409         _GL_NO_LARGE_FILES as a way to silence the warning.
8410         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
8411         any warning about large file offsets.
8412         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
8413         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
8414         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
8415         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
8416         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
8417         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
8418         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
8419         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
8420
8421         warn-on-use: new module
8422         * modules/warn-on-use: New file.
8423         * build-aux/warn-on-use.h: Likewise.
8424         * m4/warn-on-use.m4: Likewise.
8425         * MODULES.html.sh (Support for building): Mention it.
8426
8427 2010-01-10  Bruno Haible  <bruno@clisp.org>
8428
8429         Tests for module 'unistr/u32-strdup'.
8430         * modules/unistr/u32-strdup-tests: New file.
8431         * tests/unistr/test-u32-strdup.c: New file.
8432
8433         Tests for module 'unistr/u16-strdup'.
8434         * modules/unistr/u16-strdup-tests: New file.
8435         * tests/unistr/test-u16-strdup.c: New file.
8436
8437         Tests for module 'unistr/u8-strdup'.
8438         * modules/unistr/u8-strdup-tests: New file.
8439         * tests/unistr/test-u8-strdup.c: New file.
8440         * tests/unistr/test-strdup.h: New file.
8441
8442         Tests for module 'unistr/u32-strncmp'.
8443         * modules/unistr/u32-strncmp-tests: New file.
8444         * tests/unistr/test-u32-strncmp.c: New file.
8445
8446         Tests for module 'unistr/u16-strncmp'.
8447         * modules/unistr/u16-strncmp-tests: New file.
8448         * tests/unistr/test-u16-strncmp.c: New file.
8449
8450         Tests for module 'unistr/u8-strncmp'.
8451         * modules/unistr/u8-strncmp-tests: New file.
8452         * tests/unistr/test-u8-strncmp.c: New file.
8453         * tests/unistr/test-strncmp.h: New file.
8454
8455         Tests for module 'unistr/u32-strcoll'.
8456         * modules/unistr/u32-strcoll-tests: New file.
8457         * tests/unistr/test-u32-strcoll.c: New file.
8458
8459         Tests for module 'unistr/u16-strcoll'.
8460         * modules/unistr/u16-strcoll-tests: New file.
8461         * tests/unistr/test-u16-strcoll.c: New file.
8462
8463         Tests for module 'unistr/u8-strcoll'.
8464         * modules/unistr/u8-strcoll-tests: New file.
8465         * tests/unistr/test-u8-strcoll.c: New file.
8466
8467         Tests for module 'unistr/u32-strcmp'.
8468         * modules/unistr/u32-strcmp-tests: New file.
8469         * tests/unistr/test-u32-strcmp.c: New file.
8470         * tests/unistr/test-u32-strcmp.h: New file.
8471
8472         Tests for module 'unistr/u16-strcmp'.
8473         * modules/unistr/u16-strcmp-tests: New file.
8474         * tests/unistr/test-u16-strcmp.c: New file.
8475         * tests/unistr/test-u16-strcmp.h: New file.
8476
8477         Tests for module 'unistr/u8-strcmp'.
8478         * modules/unistr/u8-strcmp-tests: New file.
8479         * tests/unistr/test-u8-strcmp.c: New file.
8480         * tests/unistr/test-u8-strcmp.h: New file.
8481         * tests/unistr/test-strcmp.h: New file.
8482
8483         Tests for module 'unistr/u32-strncat'.
8484         * modules/unistr/u32-strncat-tests: New file.
8485         * tests/unistr/test-u32-strncat.c: New file.
8486
8487         Tests for module 'unistr/u16-strncat'.
8488         * modules/unistr/u16-strncat-tests: New file.
8489         * tests/unistr/test-u16-strncat.c: New file.
8490
8491         Tests for module 'unistr/u8-strncat'.
8492         * modules/unistr/u8-strncat-tests: New file.
8493         * tests/unistr/test-u8-strncat.c: New file.
8494         * tests/unistr/test-strncat.h: New file.
8495
8496         Tests for module 'unistr/u32-strcat'.
8497         * modules/unistr/u32-strcat-tests: New file.
8498         * tests/unistr/test-u32-strcat.c: New file.
8499
8500         Tests for module 'unistr/u16-strcat'.
8501         * modules/unistr/u16-strcat-tests: New file.
8502         * tests/unistr/test-u16-strcat.c: New file.
8503
8504         Tests for module 'unistr/u8-strcat'.
8505         * modules/unistr/u8-strcat-tests: New file.
8506         * tests/unistr/test-u8-strcat.c: New file.
8507         * tests/unistr/test-strcat.h: New file.
8508
8509         Tests for module 'unistr/u32-stpncpy'.
8510         * modules/unistr/u32-stpncpy-tests: New file.
8511         * tests/unistr/test-u32-stpncpy.c: New file.
8512
8513         Tests for module 'unistr/u16-stpncpy'.
8514         * modules/unistr/u16-stpncpy-tests: New file.
8515         * tests/unistr/test-u16-stpncpy.c: New file.
8516
8517         Tests for module 'unistr/u8-stpncpy'.
8518         * modules/unistr/u8-stpncpy-tests: New file.
8519         * tests/unistr/test-u8-stpncpy.c: New file.
8520         * tests/unistr/test-stpncpy.h: New file.
8521
8522         Tests for module 'unistr/u32-strncpy'.
8523         * modules/unistr/u32-strncpy-tests: New file.
8524         * tests/unistr/test-u32-strncpy.c: New file.
8525
8526         Tests for module 'unistr/u16-strncpy'.
8527         * modules/unistr/u16-strncpy-tests: New file.
8528         * tests/unistr/test-u16-strncpy.c: New file.
8529
8530         Tests for module 'unistr/u8-strncpy'.
8531         * modules/unistr/u8-strncpy-tests: New file.
8532         * tests/unistr/test-u8-strncpy.c: New file.
8533         * tests/unistr/test-strncpy.h: New file.
8534
8535         Tests for module 'unistr/u32-stpcpy'.
8536         * modules/unistr/u32-stpcpy-tests: New file.
8537         * tests/unistr/test-u32-stpcpy.c: New file.
8538
8539         Tests for module 'unistr/u16-stpcpy'.
8540         * modules/unistr/u16-stpcpy-tests: New file.
8541         * tests/unistr/test-u16-stpcpy.c: New file.
8542
8543         Tests for module 'unistr/u8-stpcpy'.
8544         * modules/unistr/u8-stpcpy-tests: New file.
8545         * tests/unistr/test-u8-stpcpy.c: New file.
8546         * tests/unistr/test-stpcpy.h: New file.
8547
8548         Tests for module 'unistr/u32-strcpy'.
8549         * modules/unistr/u32-strcpy-tests: New file.
8550         * tests/unistr/test-u32-strcpy.c: New file.
8551
8552         Tests for module 'unistr/u16-strcpy'.
8553         * modules/unistr/u16-strcpy-tests: New file.
8554         * tests/unistr/test-u16-strcpy.c: New file.
8555
8556         Tests for module 'unistr/u8-strcpy'.
8557         * modules/unistr/u8-strcpy-tests: New file.
8558         * tests/unistr/test-u8-strcpy.c: New file.
8559         * tests/unistr/test-strcpy.h: New file.
8560
8561         Tests for module 'unistr/u32-strnlen'.
8562         * modules/unistr/u32-strnlen-tests: New file.
8563         * tests/unistr/test-u32-strnlen.c: New file.
8564
8565         Tests for module 'unistr/u16-strnlen'.
8566         * modules/unistr/u16-strnlen-tests: New file.
8567         * tests/unistr/test-u16-strnlen.c: New file.
8568
8569         Tests for module 'unistr/u8-strnlen'.
8570         * modules/unistr/u8-strnlen-tests: New file.
8571         * tests/unistr/test-u8-strnlen.c: New file.
8572         * tests/unistr/test-strnlen.h: New file.
8573
8574         Tests for module 'unistr/u32-strlen'.
8575         * modules/unistr/u32-strlen-tests: New file.
8576         * tests/unistr/test-u32-strlen.c: New file.
8577
8578         Tests for module 'unistr/u16-strlen'.
8579         * modules/unistr/u16-strlen-tests: New file.
8580         * tests/unistr/test-u16-strlen.c: New file.
8581
8582         Tests for module 'unistr/u8-strlen'.
8583         * modules/unistr/u8-strlen-tests: New file.
8584         * tests/unistr/test-u8-strlen.c: New file.
8585
8586         Tests for module 'unistr/u32-prev'.
8587         * modules/unistr/u32-prev-tests: New file.
8588         * tests/unistr/test-u32-prev.c: New file.
8589
8590         Tests for module 'unistr/u16-prev'.
8591         * modules/unistr/u16-prev-tests: New file.
8592         * tests/unistr/test-u16-prev.c: New file.
8593
8594         Tests for module 'unistr/u8-prev'.
8595         * modules/unistr/u8-prev-tests: New file.
8596         * tests/unistr/test-u8-prev.c: New file.
8597
8598         Tests for module 'unistr/u32-next'.
8599         * modules/unistr/u32-next-tests: New file.
8600         * tests/unistr/test-u32-next.c: New file.
8601
8602         Tests for module 'unistr/u16-next'.
8603         * modules/unistr/u16-next-tests: New file.
8604         * tests/unistr/test-u16-next.c: New file.
8605
8606         Tests for module 'unistr/u8-next'.
8607         * modules/unistr/u8-next-tests: New file.
8608         * tests/unistr/test-u8-next.c: New file.
8609
8610         Tests for module 'unistr/u32-strmbtouc'.
8611         * modules/unistr/u32-strmbtouc-tests: New file.
8612         * tests/unistr/test-u32-strmbtouc.c: New file.
8613
8614         Tests for module 'unistr/u16-strmbtouc'.
8615         * modules/unistr/u16-strmbtouc-tests: New file.
8616         * tests/unistr/test-u16-strmbtouc.c: New file.
8617
8618         Tests for module 'unistr/u8-strmbtouc'.
8619         * modules/unistr/u8-strmbtouc-tests: New file.
8620         * tests/unistr/test-u8-strmbtouc.c: New file.
8621
8622         Tests for module 'unistr/u32-strmblen'.
8623         * modules/unistr/u32-strmblen-tests: New file.
8624         * tests/unistr/test-u32-strmblen.c: New file.
8625
8626         Tests for module 'unistr/u16-strmblen'.
8627         * modules/unistr/u16-strmblen-tests: New file.
8628         * tests/unistr/test-u16-strmblen.c: New file.
8629
8630         Tests for module 'unistr/u8-strmblen'.
8631         * modules/unistr/u8-strmblen-tests: New file.
8632         * tests/unistr/test-u8-strmblen.c: New file.
8633
8634         Tests for module 'unistr/u32-cpy-alloc'.
8635         * modules/unistr/u32-cpy-alloc-tests: New file.
8636         * tests/unistr/test-u32-cpy-alloc.c: New file.
8637
8638         Tests for module 'unistr/u16-cpy-alloc'.
8639         * modules/unistr/u16-cpy-alloc-tests: New file.
8640         * tests/unistr/test-u16-cpy-alloc.c: New file.
8641
8642         Tests for module 'unistr/u8-cpy-alloc'.
8643         * modules/unistr/u8-cpy-alloc-tests: New file.
8644         * tests/unistr/test-u8-cpy-alloc.c: New file.
8645         * tests/unistr/test-cpy-alloc.h: New file.
8646
8647         Tests for module 'unistr/u32-mbsnlen'.
8648         * modules/unistr/u32-mbsnlen-tests: New file.
8649         * tests/unistr/test-u32-mbsnlen.c: New file.
8650
8651         Tests for module 'unistr/u16-mbsnlen'.
8652         * modules/unistr/u16-mbsnlen-tests: New file.
8653         * tests/unistr/test-u16-mbsnlen.c: New file.
8654
8655         Tests for module 'unistr/u8-mbsnlen'.
8656         * modules/unistr/u8-mbsnlen-tests: New file.
8657         * tests/unistr/test-u8-mbsnlen.c: New file.
8658
8659         Tests for module 'unistr/u32-chr'.
8660         * modules/unistr/u32-chr-tests: New file.
8661         * tests/unistr/test-u32-chr.c: New file.
8662
8663         Tests for module 'unistr/u16-chr'.
8664         * modules/unistr/u16-chr-tests: New file.
8665         * tests/unistr/test-u16-chr.c: New file.
8666
8667         Tests for module 'unistr/u8-chr'.
8668         * modules/unistr/u8-chr-tests: New file.
8669         * tests/unistr/test-u8-chr.c: New file.
8670         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8671
8672         Tests for module 'unistr/u32-cmp2'.
8673         * modules/unistr/u32-cmp2-tests: New file.
8674         * tests/unistr/test-u32-cmp2.c: New file.
8675
8676         Tests for module 'unistr/u16-cmp2'.
8677         * modules/unistr/u16-cmp2-tests: New file.
8678         * tests/unistr/test-u16-cmp2.c: New file.
8679
8680         Tests for module 'unistr/u8-cmp2'.
8681         * modules/unistr/u8-cmp2-tests: New file.
8682         * tests/unistr/test-u8-cmp2.c: New file.
8683         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8684
8685         Tests for module 'unistr/u32-cmp'.
8686         * modules/unistr/u32-cmp-tests: New file.
8687         * tests/unistr/test-u32-cmp.c: New file.
8688
8689         Tests for module 'unistr/u16-cmp'.
8690         * modules/unistr/u16-cmp-tests: New file.
8691         * tests/unistr/test-u16-cmp.c: New file.
8692
8693         Tests for module 'unistr/u8-cmp'.
8694         * modules/unistr/u8-cmp-tests: New file.
8695         * tests/unistr/test-u8-cmp.c: New file.
8696         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8697
8698         Tests for module 'unistr/u32-set'.
8699         * modules/unistr/u32-set-tests: New file.
8700         * tests/unistr/test-u32-set.c: New file.
8701
8702         Tests for module 'unistr/u16-set'.
8703         * modules/unistr/u16-set-tests: New file.
8704         * tests/unistr/test-u16-set.c: New file.
8705
8706         Tests for module 'unistr/u8-set'.
8707         * modules/unistr/u8-set-tests: New file.
8708         * tests/unistr/test-u8-set.c: New file.
8709         * tests/unistr/test-set.h: New file.
8710
8711         Tests for module 'unistr/u32-move'.
8712         * modules/unistr/u32-move-tests: New file.
8713         * tests/unistr/test-u32-move.c: New file.
8714
8715         Tests for module 'unistr/u16-move'.
8716         * modules/unistr/u16-move-tests: New file.
8717         * tests/unistr/test-u16-move.c: New file.
8718
8719         Tests for module 'unistr/u8-move'.
8720         * modules/unistr/u8-move-tests: New file.
8721         * tests/unistr/test-u8-move.c: New file.
8722         * tests/unistr/test-move.h: New file.
8723
8724         Tests for module 'unistr/u32-cpy'.
8725         * modules/unistr/u32-cpy-tests: New file.
8726         * tests/unistr/test-u32-cpy.c: New file.
8727
8728         Tests for module 'unistr/u16-cpy'.
8729         * modules/unistr/u16-cpy-tests: New file.
8730         * tests/unistr/test-u16-cpy.c: New file.
8731
8732         Tests for module 'unistr/u8-cpy'.
8733         * modules/unistr/u8-cpy-tests: New file.
8734         * tests/unistr/test-u8-cpy.c: New file.
8735         * tests/unistr/test-cpy.h: New file.
8736
8737 2010-01-09  Bruno Haible  <bruno@clisp.org>
8738
8739         Tests for module 'unistr/u32-uctomb'.
8740         * modules/unistr/u32-uctomb-tests: New file.
8741         * tests/unistr/test-u32-uctomb.c: New file.
8742
8743         Tests for module 'unistr/u16-uctomb'.
8744         * modules/unistr/u16-uctomb-tests: New file.
8745         * tests/unistr/test-u16-uctomb.c: New file.
8746
8747         Tests for module 'unistr/u8-uctomb'.
8748         * modules/unistr/u8-uctomb-tests: New file.
8749         * tests/unistr/test-u8-uctomb.c: New file.
8750
8751         Tests for module 'unistr/u32-mbtoucr'.
8752         * modules/unistr/u32-mbtoucr-tests: New file.
8753         * tests/unistr/test-u32-mbtoucr.c: New file.
8754
8755         Tests for module 'unistr/u16-mbtoucr'.
8756         * modules/unistr/u16-mbtoucr-tests: New file.
8757         * tests/unistr/test-u16-mbtoucr.c: New file.
8758
8759         Tests for module 'unistr/u8-mbtoucr'.
8760         * modules/unistr/u8-mbtoucr-tests: New file.
8761         * tests/unistr/test-u8-mbtoucr.c: New file.
8762
8763         Tests for module 'unistr/u32-mbtouc'.
8764         * modules/unistr/u32-mbtouc-tests: New file.
8765         * tests/unistr/test-u32-mbtouc.c: New file.
8766
8767         Tests for module 'unistr/u16-mbtouc'.
8768         * modules/unistr/u16-mbtouc-tests: New file.
8769         * tests/unistr/test-u16-mbtouc.c: New file.
8770
8771         Tests for module 'unistr/u8-mbtouc'.
8772         * modules/unistr/u8-mbtouc-tests: New file.
8773         * tests/unistr/test-u8-mbtouc.c: New file.
8774
8775         Tests for module 'unistr/u32-mbtouc-unsafe'.
8776         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8777         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8778         * tests/unistr/test-u32-mbtouc.h: New file.
8779
8780         Tests for module 'unistr/u16-mbtouc-unsafe'.
8781         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8782         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8783         * tests/unistr/test-u16-mbtouc.h: New file.
8784
8785         Tests for module 'unistr/u8-mbtouc-unsafe'.
8786         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8787         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8788         * tests/unistr/test-u8-mbtouc.h: New file.
8789
8790         Tests for module 'unistr/u32-mblen'.
8791         * modules/unistr/u32-mblen-tests: New file.
8792         * tests/unistr/test-u32-mblen.c: New file.
8793
8794         Tests for module 'unistr/u16-mblen'.
8795         * modules/unistr/u16-mblen-tests: New file.
8796         * tests/unistr/test-u16-mblen.c: New file.
8797
8798         Tests for module 'unistr/u8-mblen'.
8799         * modules/unistr/u8-mblen-tests: New file.
8800         * tests/unistr/test-u8-mblen.c: New file.
8801
8802         Tests for module 'unistr/u32-to-u16'.
8803         * modules/unistr/u32-to-u16-tests: New file.
8804         * tests/unistr/test-u32-to-u16.c: New file.
8805
8806         Tests for module 'unistr/u32-to-u8'.
8807         * modules/unistr/u32-to-u8-tests: New file.
8808         * tests/unistr/test-u32-to-u8.c: New file.
8809
8810         Tests for module 'unistr/u16-to-u32'.
8811         * modules/unistr/u16-to-u32-tests: New file.
8812         * tests/unistr/test-u16-to-u32.c: New file.
8813
8814         Tests for module 'unistr/u16-to-u8'.
8815         * modules/unistr/u16-to-u8-tests: New file.
8816         * tests/unistr/test-u16-to-u8.c: New file.
8817
8818         Tests for module 'unistr/u8-to-u32'.
8819         * modules/unistr/u8-to-u32-tests: New file.
8820         * tests/unistr/test-u8-to-u32.c: New file.
8821
8822         Tests for module 'unistr/u8-to-u16'.
8823         * modules/unistr/u8-to-u16-tests: New file.
8824         * tests/unistr/test-u8-to-u16.c: New file.
8825
8826         Tests for module 'unistr/u32-check'.
8827         * modules/unistr/u32-check-tests: New file.
8828         * tests/unistr/test-u32-check.c: New file.
8829
8830         Tests for module 'unistr/u16-check'.
8831         * modules/unistr/u16-check-tests: New file.
8832         * tests/unistr/test-u16-check.c: New file.
8833
8834         Tests for module 'unistr/u8-check'.
8835         * modules/unistr/u8-check-tests: New file.
8836         * tests/unistr/test-u8-check.c: New file.
8837
8838         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
8839         (category_equals): New function.
8840         (main): Add more tests.
8841         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
8842
8843         * tests/unictype/test-bidi_byname.c (main): Add more tests.
8844
8845 2010-01-10  Bruno Haible  <bruno@clisp.org>
8846
8847         unistr/u*-strcoll: Try harder to distinguish different strings.
8848         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
8849         compare s1 and s2 to see if they are different.
8850
8851 2010-01-10  Bruno Haible  <bruno@clisp.org>
8852
8853         unistr/u*-stpncpy: Fix the return value.
8854         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
8855         description of the return value consistent with stpncpy in glibc.
8856         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
8857         written non-NUL unit.
8858
8859 2010-01-10  Bruno Haible  <bruno@clisp.org>
8860
8861         unistr/u*-next: Add missing dependencies.
8862         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
8863         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
8864         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
8865
8866 2010-01-10  Bruno Haible  <bruno@clisp.org>
8867
8868         unistr/u8-mbsnlen: Fix return value for incomplete character.
8869         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
8870         u8_mblen.
8871         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
8872         Remove unistr/u8-mblen.
8873         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
8874         u16_mblen.
8875         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
8876         Remove unistr/u16-mblen.
8877
8878 2010-01-10  Bruno Haible  <bruno@clisp.org>
8879
8880         wchar: Fix compilation error when <wchar.h> is used from coreutils.
8881         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
8882         Reported by Brian Gough <bjg@gnu.org> and
8883         Chris Clayton <chris2553@googlemail.com> via
8884         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
8885
8886 2010-01-09  Bruno Haible  <bruno@clisp.org>
8887
8888         unistr/u16-to-u32: Reject invalid input.
8889         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
8890         u16_mbtouc.
8891         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
8892         Remove unistr/u16-mbtouc.
8893
8894         unistr/u16-to-u8: Reject invalid input.
8895         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
8896         u16_mbtouc.
8897         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
8898         Remove unistr/u16-mbtouc.
8899
8900         unistr/u8-to-u32: Reject invalid input.
8901         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
8902         u8_mbtouc.
8903         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
8904         Remove unistr/u8-mbtouc.
8905
8906         unistr/u8-to-u16: Reject invalid input.
8907         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
8908         u8_mbtouc.
8909         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
8910         Remove unistr/u8-mbtouc.
8911
8912 2010-01-09  Bruno Haible  <bruno@clisp.org>
8913
8914         Tests for module 'getlogin'.
8915         * modules/getlogin-tests: New file.
8916         * tests/test-getlogin.c: New file.
8917
8918         New module 'getlogin'.
8919         * lib/unistd.in.h (getlogin): New declaration.
8920         * lib/getlogin.c: New file.
8921         * m4/getlogin.m4: New file.
8922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
8923         HAVE_GETLOGIN.
8924         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
8925         HAVE_GETLOGIN.
8926         * modules/getlogin: New file.
8927         * doc/posix-functions/getlogin.texi: Mention the new module.
8928         Reported by John W. Eaton <jwe@gnu.org>.
8929
8930 2010-01-09  Bruno Haible  <bruno@clisp.org>
8931
8932         getlogin_r: Support for native Windows.
8933         * lib/getlogin_r.c: Include <windows.h>
8934         (getlogin_r): Implement for native Windows.
8935         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
8936         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
8937         via John W. Eaton <jwe@gnu.org>.
8938
8939 2010-01-09  Bruno Haible  <bruno@clisp.org>
8940
8941         getlogin_r: Small fixes.
8942         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
8943         succeeds.
8944         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
8945         before testing whether getlogin_r is declared. No need to set
8946         HAVE_DECL_GETLOGIN_R to 1.
8947         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
8948
8949 2010-01-09  Bruno Haible  <bruno@clisp.org>
8950
8951         * lib/unistd.in.h (getlogin_r): Add comment.
8952
8953 2010-01-09  Bruno Haible  <bruno@clisp.org>
8954
8955         Tests for module 'getlogin_r'.
8956         * modules/getlogin_r-tests: New file.
8957         * tests/test-getlogin_r.c: New file.
8958
8959 2010-01-09  Jim Meyering  <meyering@redhat.com>
8960
8961         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
8962         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
8963         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
8964
8965 2010-01-08  Simon Josefsson  <simon@josefsson.org>
8966
8967         * lib/dup2.c (rpl_dup2): Improve comment.
8968
8969 2010-01-08  Eric Blake  <ebb9@byu.net>
8970
8971         maint.mk: allow packages to add makefile @@ exceptions
8972         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
8973         (sc_makefile_check): Rename...
8974         (sc_makefile_at_at_check): ...to this, and use hook.
8975
8976         dup2: work around mingw bug
8977         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
8978         Reported by Simon Josefsson.
8979
8980 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
8981
8982         glob: Fix C++ compilation.
8983         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
8984         C++.
8985
8986 2010-01-07  Bruno Haible  <bruno@clisp.org>
8987
8988         Fix indentation of wctype.in.h, broken since 2007-01-06.
8989         * lib/wctype.in.h: Fix indentation of preprocessor directives.
8990
8991 2010-01-07  Bruno Haible  <bruno@clisp.org>
8992
8993         mbslen: Avoid collision with system function.
8994         * lib/string.in.h [MirBSD]: Include <wchar.h>.
8995         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
8996         * m4/mbslen.m4: New file.
8997         * modules/mbslen (Files): Add it.
8998         (configure.ac): Invoke gl_MBSLEN.
8999         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
9000         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
9001         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
9002         via Ian Beckwith <ianb@erislabs.net>.
9003
9004 2010-01-07  Bruno Haible  <bruno@clisp.org>
9005
9006         dirent: Document the last fix.
9007         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
9008
9009 2010-01-07  Bruno Haible  <bruno@clisp.org>
9010
9011         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
9012         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
9013         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
9014         va_list are defined.
9015         * doc/posix-headers/stdio.texi: Document the bug of missing types.
9016         Reported by Eric Blake.
9017
9018 2010-01-07  Bruno Haible  <bruno@clisp.org>
9019
9020         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
9021         * modules/xlist (Depends-on): Add 'list',
9022         * modules/xoset (Depends-on): Add 'oset'.
9023         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9024
9025 2010-01-07  Bruno Haible  <bruno@clisp.org>
9026
9027         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
9028         * doc/posix-functions/strncasecmp.texi: Likewise.
9029
9030 2010-01-07  Bruno Haible  <bruno@clisp.org>
9031
9032         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
9033
9034 2010-01-07  John W. Eaton  <jwe@octave.org>
9035
9036         wctype: allow C++ use
9037         * lib/wctype.in.h: Add extern "C" block for C++.
9038
9039 2010-01-06  Eric Blake  <ebb9@byu.net>
9040
9041         maint.mk: detect incorrect GFDL usage
9042         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
9043
9044 2010-01-06  Jim Meyering  <meyering@redhat.com>
9045         and Eric Blake  <ebb9@byu.net>
9046
9047         maint.mk: ignore multi-line copyright in NEWS
9048         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
9049
9050 2010-01-06  Eric Blake  <ebb9@byu.net>
9051
9052         select: add missing dependency
9053         * modules/select-tests (Depends-on): Move sockets dependency...
9054         * modules/select (Depends-on): ...here.
9055         Reported by Ian Beckwith.
9056
9057         doc: regenerate INSTALL
9058         * doc/INSTALL: Reflect recent autoconf update.
9059         * doc/INSTALL.ISO: Likewise.
9060         * doc/INSTALL.UTF-8: Likewise.
9061
9062         pread: fix compilation on glibc
9063         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
9064         Reported by Ralf Wildenhues.
9065
9066         dirent: fix test failure
9067         * lib/dirent.in.h (includes): Guarantee ino_t.
9068         Reported by Ralf Wildenhues.
9069
9070 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
9071
9072         linkat, renameat: avoid bad free
9073         * lib/at-func2.c (at_func2): Fix typo.
9074         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
9075
9076 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9077
9078         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
9079         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
9080         to avoid failure of symlink test later.
9081
9082 2010-01-06  Eric Blake  <ebb9@byu.net>
9083
9084         stdio, unistd: guarantee ssize_t
9085         * lib/unistd.in.h (includes): Ensure that types required by POSIX
9086         2008 are exposed when needed.
9087         * lib/stdio.in.h (includes): Likewise.
9088         Reported by Ralf Wildenhues.
9089
9090 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
9091
9092         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
9093         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
9094         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
9095
9096 2010-01-06  Jim Meyering  <meyering@redhat.com>
9097
9098         readtokens: this module *does* require xalloc.h
9099         It uses only functions that were omitted by the old syntax-check rule.
9100         * lib/readtokens.c: Include "xalloc.h" once again.
9101         * modules/readtokens (Depends-on): Add xalloc.
9102         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
9103
9104 2010-01-05  Eric Blake  <ebb9@byu.net>
9105
9106         maint: support 'make announcement' from a VPATH build
9107         * top/maint.mk (announcement): Look for correct NEWS file.
9108
9109 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
9110
9111         utimens (fdutimens): ignore a negative FD, per contract
9112         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
9113         when we have a valid file descriptor.  Otherwise, using a brand
9114         new glibc (with just-patched futimens that now fails with EBADF)
9115         would cause this function to fail with ENOSYS.
9116         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
9117         See also http://bugzilla.redhat.com/552320.
9118
9119 2010-01-05  Eric Blake  <ebb9@byu.net>
9120
9121         strcase: document what it provides
9122         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
9123         gnulib module.
9124         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
9125         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
9126
9127 2010-01-05  Jim Meyering  <meyering@redhat.com>
9128
9129         maint: remove useless inclusions of "xalloc.h"
9130         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
9131         * lib/readtokens.c: Likewise.
9132         * lib/same.c: Likewise.
9133         * modules/getloadavg (Depends-on): Remove xalloc.
9134         * modules/readtokens: Likewise.
9135         * modules/same: Likewise.
9136
9137         maint.mk: include 4 more function names in alloca.h-checking regexp
9138         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
9139         regexp.  Before, we would give a false-positive (saying alloca.h
9140         is included unnecessarily) when the only uses involved omitted symbols.
9141
9142         xalloc.h: use consistent formatting
9143         * lib/xalloc.h: Move declarations to start in the first column.
9144
9145 2010-01-05  Eric Blake  <ebb9@byu.net>
9146
9147         mkdir: avoid xalloc
9148         * lib/mkdir.c (includes): Drop unused header.
9149         Reported by John W. Eaton.
9150
9151 2010-01-04  Jim Meyering  <meyering@redhat.com>
9152
9153         nl_langinfo: avoid configure-time syntax error
9154         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
9155         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
9156         the empty string.  Don't let that provoke a shell syntax error.
9157
9158         regcomp, regexec, fnmatch: avoid array bounds read error
9159         * lib/regcomp.c (build_equiv_class): From glibc:
9160         Use only the low 24 bits of a findidx return value as an index
9161         into the weights array.  Patch by Ulrich Drepper:
9162         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
9163         * lib/regexec.c (check_node_accept_bytes): Likewise.
9164         * lib/fnmatch_loop.c (FCT): Likewise.
9165
9166         regcomp: skip collseq lookup when there are no rules
9167         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
9168         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
9169
9170         regcomp: recognize ill-formed { } expressions
9171         * lib/regcomp.c (parse_dup_op): From glibc:
9172         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
9173
9174         regcomp: fix typo in comment
9175         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
9176         s/satisfy/satisfies/.
9177
9178         regcomp: sync from glibc: remove dead store
9179         * lib/regcomp.c (duplicate_node_closure): Remove useless
9180         search_duplicated_node call and dead store.
9181
9182         regcomp: sync from glibc; always use nl_langinfo
9183         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
9184         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
9185         * modules/regex (Depends-on): Add nl_langinfo.
9186
9187 2010-01-04  Eric Blake  <ebb9@byu.net>
9188
9189         fdopendir: fix configure test
9190         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
9191
9192 2010-01-01  Bruno Haible  <bruno@clisp.org>
9193
9194         wchar: Remove unused configure check.
9195         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
9196
9197 2010-01-01  Eric Blake  <ebb9@byu.net>
9198
9199         headers: make check of system header explicit
9200         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
9201         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
9202         ourselves.
9203         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9204         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9205         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9206         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
9207         internals.
9208         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
9209         missing.
9210         Suggested by Bruno Haible.
9211
9212 2010-01-01  Jim Meyering  <meyering@redhat.com>
9213
9214         ChangeLog: tweak to eliminate unnecessary copyright line
9215         * ChangeLog: Remove a copyright line that was mistakenly updated
9216         by today's update-copyright run.  Reported by Eric Blake.
9217
9218         test-update-copyright: don't let envvar setting cause test failure
9219         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9220
9221 2010-01-01  Bruno Haible  <bruno@clisp.org>
9222
9223         localename: Avoid gcc warning.
9224         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
9225         function if it is not used.
9226
9227 2010-01-01  Jim Meyering  <meyering@redhat.com>
9228
9229         update nearly all FSF copyright year lists to include 2010
9230         Use the same procedure as for 2009, outlined in
9231         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
9232
9233         version-etc: set COPYRIGHT_YEAR to 2010
9234         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
9235
9236 2009-12-31  Eric Blake  <ebb9@byu.net>
9237
9238         doc: correct availability of cygwin 1.5.x getopt
9239         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
9240         variables.
9241         * doc/posix-functions/opterr.texi (opterr): Likewise.
9242         * doc/posix-functions/optind.texi (optind): Likewise.
9243         * doc/posix-functions/optopt.texi (optopt): Likewise.
9244         * doc/posix-functions/tzname.texi (tzname): Likewise.
9245
9246         openat: update maintainer
9247         * modules/openat (Maintainer): Add myself.
9248
9249         utimens: avoid shadowing warning
9250         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
9251         buffers into one, to avoid shadowing, as well as avoiding a
9252         redundant stat.
9253         Reported by Jim Meyering.
9254
9255         test-dup2: avoid compiler warning
9256         * tests/test-dup2.c (is_inheritable): Only define if used.
9257
9258 2010-01-01  Bruno Haible  <bruno@clisp.org>
9259
9260         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
9261         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
9262         defined, use wctomb instead of wcrtomb.
9263
9264 2010-01-01  Bruno Haible  <bruno@clisp.org>
9265
9266         iconv: Reject native Solaris iconv.
9267         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
9268         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
9269
9270 2009-12-31  Bruno Haible  <bruno@clisp.org>
9271
9272         * tests/test-signal.c (main): Remove test of 'SIG'.
9273
9274 2009-12-31  Bruno Haible  <bruno@clisp.org>
9275
9276         spawn: Fix incomplete fix.
9277         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9278         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9279         warnings for GNULIB_POSIXCHECK again.
9280         Reported by Eric Blake.
9281
9282 2009-12-31  Bruno Haible  <bruno@clisp.org>
9283
9284         Avoid namespace pollution on glibc systems.
9285         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
9286         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
9287         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
9288         glibc systems.
9289
9290 2009-12-31  Bruno Haible  <bruno@clisp.org>
9291
9292         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
9293         (gl_REPLACE_WCHAR_H): Turn into a no-op.
9294         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
9295         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9296         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9297         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9298         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9299
9300 2009-12-31  Bruno Haible  <bruno@clisp.org>
9301
9302         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9303         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
9304         afterwards.
9305
9306 2009-12-31  Bruno Haible  <bruno@clisp.org>
9307
9308         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
9309         SYS_UTSNAME_H.
9310
9311 2009-12-31  Bruno Haible  <bruno@clisp.org>
9312
9313         spawn: Fix misapplied patch.
9314         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9315         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9316         warnings for GNULIB_POSIXCHECK.
9317
9318 2009-12-31  Bruno Haible  <bruno@clisp.org>
9319
9320         times: Update after sys_times changed.
9321         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
9322         * modules/times (Files): Add it.
9323         (configure.ac): Invoke gl_FUNC_TIMES.
9324
9325 2009-12-31  Bruno Haible  <bruno@clisp.org>
9326
9327         Use AC_C_INLINE where necessary.
9328         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
9329         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9330         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
9331         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9332         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9333         * m4/mbiter.m4 (gl_MBITER): Likewise.
9334         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9335         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9336         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
9337         * modules/u64 (configure.ac): Likewise.
9338
9339 2009-12-31  Bruno Haible  <bruno@clisp.org>
9340
9341         Use AC_C_INLINE instead of module 'inline' where possible.
9342         * modules/inline (Description): Clarify purpose.
9343         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
9344         * modules/count-one-bits (Depends-on): Remove inline.
9345         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
9346         * modules/openat (Depends-on): Remove inline.
9347         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
9348         instead of depending on module 'inline'.
9349         * modules/filevercmp (Depends-on, configure.ac): Likewise.
9350         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
9351         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
9352         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
9353         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
9354         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
9355         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
9356         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
9357         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
9358         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
9359         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
9360         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
9361         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
9362         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
9363         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
9364         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
9365         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
9366         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
9367         Likewise.
9368         * modules/unictype/property-ascii-hex-digit (Depends-on,
9369         configure.ac): Likewise.
9370         * modules/unictype/property-bidi-arabic-digit (Depends-on,
9371         configure.ac): Likewise.
9372         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
9373         configure.ac): Likewise.
9374         * modules/unictype/property-bidi-block-separator (Depends-on,
9375         configure.ac): Likewise.
9376         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
9377         configure.ac): Likewise.
9378         * modules/unictype/property-bidi-common-separator (Depends-on,
9379         configure.ac): Likewise.
9380         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
9381         Likewise.
9382         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
9383         configure.ac): Likewise.
9384         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
9385         configure.ac): Likewise.
9386         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
9387         configure.ac): Likewise.
9388         * modules/unictype/property-bidi-european-digit (Depends-on,
9389         configure.ac): Likewise.
9390         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
9391         configure.ac): Likewise.
9392         * modules/unictype/property-bidi-left-to-right (Depends-on,
9393         configure.ac): Likewise.
9394         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
9395         configure.ac): Likewise.
9396         * modules/unictype/property-bidi-other-neutral (Depends-on,
9397         configure.ac): Likewise.
9398         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
9399         Likewise.
9400         * modules/unictype/property-bidi-segment-separator (Depends-on,
9401         configure.ac): Likewise.
9402         * modules/unictype/property-bidi-whitespace (Depends-on,
9403         configure.ac): Likewise.
9404         * modules/unictype/property-combining (Depends-on, configure.ac):
9405         Likewise.
9406         * modules/unictype/property-composite (Depends-on, configure.ac):
9407         Likewise.
9408         * modules/unictype/property-currency-symbol (Depends-on,
9409         configure.ac): Likewise.
9410         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
9411         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
9412         Likewise.
9413         * modules/unictype/property-default-ignorable-code-point (Depends-on,
9414         configure.ac): Likewise.
9415         * modules/unictype/property-deprecated (Depends-on, configure.ac):
9416         Likewise.
9417         * modules/unictype/property-diacritic (Depends-on, configure.ac):
9418         Likewise.
9419         * modules/unictype/property-extender (Depends-on, configure.ac):
9420         Likewise.
9421         * modules/unictype/property-format-control (Depends-on, configure.ac):
9422         Likewise.
9423         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
9424         Likewise.
9425         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
9426         Likewise.
9427         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
9428         Likewise.
9429         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
9430         Likewise.
9431         * modules/unictype/property-hyphen (Depends-on, configure.ac):
9432         Likewise.
9433         * modules/unictype/property-id-continue (Depends-on, configure.ac):
9434         Likewise.
9435         * modules/unictype/property-id-start (Depends-on, configure.ac):
9436         Likewise.
9437         * modules/unictype/property-ideographic (Depends-on, configure.ac):
9438         Likewise.
9439         * modules/unictype/property-ids-binary-operator (Depends-on,
9440         configure.ac): Likewise.
9441         * modules/unictype/property-ids-trinary-operator (Depends-on,
9442         configure.ac): Likewise.
9443         * modules/unictype/property-ignorable-control (Depends-on,
9444         configure.ac): Likewise.
9445         * modules/unictype/property-iso-control (Depends-on, configure.ac):
9446         Likewise.
9447         * modules/unictype/property-join-control (Depends-on, configure.ac):
9448         Likewise.
9449         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
9450         Likewise.
9451         * modules/unictype/property-line-separator (Depends-on, configure.ac):
9452         Likewise.
9453         * modules/unictype/property-logical-order-exception (Depends-on,
9454         configure.ac): Likewise.
9455         * modules/unictype/property-lowercase (Depends-on, configure.ac):
9456         Likewise.
9457         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
9458         * modules/unictype/property-non-break (Depends-on, configure.ac):
9459         Likewise.
9460         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
9461         Likewise.
9462         * modules/unictype/property-numeric (Depends-on, configure.ac):
9463         Likewise.
9464         * modules/unictype/property-other-alphabetic (Depends-on,
9465         configure.ac): Likewise.
9466         * modules/unictype/property-other-default-ignorable-code-point
9467         (Depends-on, configure.ac): Likewise.
9468         * modules/unictype/property-other-grapheme-extend (Depends-on,
9469         configure.ac): Likewise.
9470         * modules/unictype/property-other-id-continue (Depends-on,
9471         configure.ac): Likewise.
9472         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
9473         Likewise.
9474         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
9475         Likewise.
9476         * modules/unictype/property-other-math (Depends-on, configure.ac):
9477         Likewise.
9478         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
9479         Likewise.
9480         * modules/unictype/property-paired-punctuation (Depends-on,
9481         configure.ac): Likewise.
9482         * modules/unictype/property-paragraph-separator (Depends-on,
9483         configure.ac): Likewise.
9484         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
9485         Likewise.
9486         * modules/unictype/property-pattern-white-space (Depends-on,
9487         configure.ac): Likewise.
9488         * modules/unictype/property-private-use (Depends-on, configure.ac):
9489         Likewise.
9490         * modules/unictype/property-punctuation (Depends-on, configure.ac):
9491         Likewise.
9492         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
9493         Likewise.
9494         * modules/unictype/property-radical (Depends-on, configure.ac):
9495         Likewise.
9496         * modules/unictype/property-sentence-terminal (Depends-on,
9497         configure.ac): Likewise.
9498         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
9499         Likewise.
9500         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
9501         * modules/unictype/property-terminal-punctuation (Depends-on,
9502         configure.ac): Likewise.
9503         * modules/unictype/property-titlecase (Depends-on, configure.ac):
9504         Likewise.
9505         * modules/unictype/property-unassigned-code-value (Depends-on,
9506         configure.ac): Likewise.
9507         * modules/unictype/property-unified-ideograph (Depends-on,
9508         configure.ac): Likewise.
9509         * modules/unictype/property-uppercase (Depends-on, configure.ac):
9510         Likewise.
9511         * modules/unictype/property-variation-selector (Depends-on,
9512         configure.ac): Likewise.
9513         * modules/unictype/property-white-space (Depends-on, configure.ac):
9514         Likewise.
9515         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
9516         Likewise.
9517         * modules/unictype/property-xid-start (Depends-on, configure.ac):
9518         Likewise.
9519         * modules/unictype/property-zero-width (Depends-on, configure.ac):
9520         Likewise.
9521         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
9522         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
9523         Likewise.
9524
9525 2009-12-31  Bruno Haible  <bruno@clisp.org>
9526
9527         Remove unnecessary AC_C_INLINE invocation.
9528         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
9529         since 2009-08-21.
9530
9531 2009-12-31  Jim Meyering  <meyering@redhat.com>
9532
9533         maint.mk: don't require explicit gpg_key_ID in cfg.mk
9534         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
9535         With this change, we can all remove the gpg_key_ID = ... definition
9536         from our respective cfg.mk files.
9537
9538         maint.mk: create announcement template in ~/, not in /tmp
9539         * top/maint.mk (emit_upload_commands): Adjust.
9540         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
9541         Remove temporary file, .ci-msg.
9542
9543 2009-12-31  Eric Blake  <ebb9@byu.net>
9544
9545         link-warning: always build headers with link warnings
9546         * modules/arpa_inet (Makefile.am): Always build replacement
9547         header.
9548         * modules/ctype (Makefile.am): Likewise.
9549         * modules/dirent (Makefile.am): Likewise.
9550         * modules/inttypes (Makefile.am): Likewise.
9551         * modules/langinfo (Makefile.am): Likewise.
9552         * modules/locale (Makefile.am): Likewise.
9553         * modules/spawn (Makefile.am): Likewise.
9554         * modules/sys_file (Makefile.am): Likewise.
9555         * modules/sys_ioctl (Makefile.am): Likewise.
9556         * modules/sys_select (Makefile.am): Likewise.
9557         * modules/sys_socket (Makefile.am): Likewise.
9558         * modules/sys_times (Makefile.am): Likewise.
9559         * modules/sys_utsname (Makefile.am): Likewise.
9560         * modules/sys_wait (Makefile.am): Likewise.
9561         * modules/wchar (Makefile.am): Likewise.
9562         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
9563         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
9564         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
9565         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
9566         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
9567         Likewise.
9568         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9569         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9570         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
9571         Likewise.
9572         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
9573         Likewise.
9574         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9575         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
9576         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
9577         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9578         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9579         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9580         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9581         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
9582         (gl_WCHAR_H_DEFAULTS): Likewise.
9583
9584 2009-12-31  Eric Blake  <ebb9@byu.net>
9585
9586         signal, spawn: use link warnings
9587         * lib/signal.in.h (sigset_t): Make unconditional.
9588         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
9589         (sigpending, sigprocmask, sigaction): Add link warnings.
9590         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9591         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9592         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9593         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9594         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9595         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9596         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9597         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9598         (posix_spawn_file_actions_destroy)
9599         (posix_spawn_file_actions_addopen)
9600         (posix_spawn_file_actions_addclose)
9601         (posix_spawn_file_actions_adddup2): Likewise.
9602         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9603         * tests/test-signal.c (main): Enhance test.
9604
9605         spawn: improve wrapper support
9606         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9607         (gl_SPAWN_H_DEFAULTS): New defaults.
9608         * modules/spawn (Makefile.am): Substitute them.
9609         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9610         Only declare if missing or broken.
9611
9612         sys_times, sys_utsname: use include_next
9613         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9614         header.
9615         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9616         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9617         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9618         * modules/sys_times (Depends-on): Add include_next.
9619         (Makefile.am): Substitute additional values.
9620         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9621         * lib/sys_times.in.h (includes): Include native header, if
9622         available.
9623         * lib/sys_utsname.in.h (includes): Likewise.
9624         * tests/test-sys_times.c (main): Enhance test.
9625
9626         fdutimensat: revert prior patch
9627         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9628         utimens.h.
9629         Reported by Bruno Haible.
9630
9631 2009-12-30  Eric Blake  <ebb9@byu.net>
9632
9633         sys_wait: drop link-warning dependency
9634         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9635         link-warning efforts.
9636         * lib/sys_wait.in.h: Likewise.
9637
9638         fdutimensat: remove bogus dependency
9639         * modules/fdutimensat (Depends-on): Drop inline.
9640
9641         unistd: fix typo
9642         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9643
9644 2009-12-30  Bruno Haible  <bruno@clisp.org>
9645
9646         Fix compilation error with Solaris cc.
9647         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9648         * lib/unicase/u16-is-invariant.c: Likewise.
9649         * lib/unicase/u32-is-invariant.c: Likewise.
9650         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9651
9652 2009-12-30  Bruno Haible  <bruno@clisp.org>
9653
9654         Fix test crash.
9655         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9656         locales.
9657         Reported by Simon Josefsson <simon@josefsson.org>.
9658
9659 2009-12-30  Bruno Haible  <bruno@clisp.org>
9660
9661         Fix compilation error on most platforms.
9662         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9663         Reported by Simon Josefsson <simon@josefsson.org>
9664         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9665
9666 2009-12-30  Eric Blake  <ebb9@byu.net>
9667
9668         futimens, utimensat: work around ntfs-3g bug
9669         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9670         a ctime bug is present, and expand workaround to cover ntfs-3g.
9671         * lib/utimens.c (fdutimens, lutimens): Likewise.
9672         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9673         (validate_timespec): Adjust return value.
9674         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9675         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9676         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9677
9678 2009-12-29  Eric Blake  <ebb9@byu.net>
9679
9680         link-warning: make usage consistent
9681         * modules/ctype (Depends-on): Add link-warning.
9682         (Makefile.am): Update rules accordingly.
9683         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9684         * modules/locale (Depends-on, Makefile.am): Likewise.
9685         * modules/sys_file (Makefile.am): Likewise.
9686         * modules/getopt-posix (Makefile.am): Delete unused link warning
9687         efforts.
9688         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9689         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9690         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9691         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9692
9693         stdio: remove unused variables
9694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9695         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9696         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9697
9698         tests: test more substitute headers
9699         * modules/ctype-tests: New file.
9700         * modules/dirent-tests: Likewise.
9701         * modules/spawn-tests: Likewise.
9702         * modules/sys_file-tests: Likewise.
9703         * modules/sys_ioctl-tests: Likewise.
9704         * modules/sys_wait-tests: Likewise.
9705         * tests/test-ctype.c: Likewise.
9706         * tests/test-dirent.c: Likewise.
9707         * tests/test-spawn.c: Likewise.
9708         * tests/test-sys_file.c: Likewise.
9709         * tests/test-sys_ioctl.c: Likewise.
9710         * tests/test-sys_wait.c: Likewise.
9711         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9712         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9713         whether or not flock is in use.
9714
9715         tests: remove License section from module
9716         * modules/arpa_inet-tests: Remove unneeded section.
9717         * modules/byteswap-tests: Likewise.
9718         * modules/ceilf-tests: Likewise.
9719         * modules/ceill-tests: Likewise.
9720         * modules/crypto/des-tests: Likewise.
9721         * modules/crypto/gc-arcfour-tests: Likewise.
9722         * modules/crypto/gc-arctwo-tests: Likewise.
9723         * modules/crypto/gc-des-tests: Likewise.
9724         * modules/crypto/gc-hmac-md5-tests: Likewise.
9725         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9726         * modules/crypto/gc-md2-tests: Likewise.
9727         * modules/crypto/gc-md4-tests: Likewise.
9728         * modules/crypto/gc-md5-tests: Likewise.
9729         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9730         * modules/crypto/gc-rijndael-tests: Likewise.
9731         * modules/crypto/gc-sha1-tests: Likewise.
9732         * modules/crypto/gc-tests: Likewise.
9733         * modules/crypto/md2-tests: Likewise.
9734         * modules/crypto/md4-tests: Likewise.
9735         * modules/fcntl-h-tests: Likewise.
9736         * modules/floorf-tests: Likewise.
9737         * modules/floorl-tests: Likewise.
9738         * modules/frexp-nolibm-tests: Likewise.
9739         * modules/frexp-tests: Likewise.
9740         * modules/frexpl-nolibm-tests: Likewise.
9741         * modules/frexpl-tests: Likewise.
9742         * modules/getaddrinfo-tests: Likewise.
9743         * modules/inttypes-tests: Likewise.
9744         * modules/isfinite-tests: Likewise.
9745         * modules/isinf-tests: Likewise.
9746         * modules/ldexpl-tests: Likewise.
9747         * modules/locale-tests: Likewise.
9748         * modules/math-tests: Likewise.
9749         * modules/netdb-tests: Likewise.
9750         * modules/netinet_in-tests: Likewise.
9751         * modules/printf-frexp-tests: Likewise.
9752         * modules/printf-frexpl-tests: Likewise.
9753         * modules/priv-set-tests: Likewise.
9754         * modules/random_r-tests: Likewise.
9755         * modules/round-tests: Likewise.
9756         * modules/roundf-tests: Likewise.
9757         * modules/roundl-tests: Likewise.
9758         * modules/search-tests: Likewise.
9759         * modules/select-tests: Likewise.
9760         * modules/signal-tests: Likewise.
9761         * modules/stdbool-tests: Likewise.
9762         * modules/stddef-tests: Likewise.
9763         * modules/stdint-tests: Likewise.
9764         * modules/stdio-tests: Likewise.
9765         * modules/stdlib-tests: Likewise.
9766         * modules/string-tests: Likewise.
9767         * modules/strings-tests: Likewise.
9768         * modules/sys_select-tests: Likewise.
9769         * modules/sys_socket-tests: Likewise.
9770         * modules/sys_stat-tests: Likewise.
9771         * modules/sys_time-tests: Likewise.
9772         * modules/sys_utsname-tests: Likewise.
9773         * modules/sysexits-tests: Likewise.
9774         * modules/time-tests: Likewise.
9775         * modules/trunc-tests: Likewise.
9776         * modules/truncf-tests: Likewise.
9777         * modules/truncl-tests: Likewise.
9778         * modules/tsearch-tests: Likewise.
9779         * modules/unistd-tests: Likewise.
9780         * modules/wchar-tests: Likewise.
9781         * modules/wctype-tests: Likewise.
9782
9783         tests: fix license on several tests
9784         * tests/test-des.c: Update to GPLv3+.
9785         * tests/test-flock.c: Likewise.
9786         * tests/test-fsync.c: Likewise.
9787         * tests/test-futimens.h: Likewise.
9788         * tests/test-gc-arcfour.c: Likewise.
9789         * tests/test-gc-arctwo.c: Likewise.
9790         * tests/test-gc-des.c: Likewise.
9791         * tests/test-gc-hmac-md5.c: Likewise.
9792         * tests/test-gc-hmac-sha1.c: Likewise.
9793         * tests/test-gc-md2.c: Likewise.
9794         * tests/test-gc-md4.c: Likewise.
9795         * tests/test-gc-md5.c: Likewise.
9796         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9797         * tests/test-gc-rijndael.c: Likewise.
9798         * tests/test-gc-sha1.c: Likewise.
9799         * tests/test-gc.c: Likewise.
9800         * tests/test-getcwd.c: Likewise.
9801         * tests/test-link.c: Likewise.
9802         * tests/test-link.h: Likewise.
9803         * tests/test-lutimens.h: Likewise.
9804         * tests/test-md2.c: Likewise.
9805         * tests/test-md4.c: Likewise.
9806         * tests/test-mkdir.h: Likewise.
9807         * tests/test-rename.c: Likewise.
9808         * tests/test-rename.h: Likewise.
9809         * tests/test-safe-alloc.c: Likewise.
9810         * tests/test-utimens-common.h: Likewise.
9811         * tests/test-utimens.h: Likewise.
9812
9813         maint: sync license texts
9814         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9815         * doc/gpl-3.0.texi: Revert copyright year update.
9816         * doc/lgpl-3.0.texi: Likewise.
9817
9818 2009-12-29  Jim Meyering  <meyering@redhat.com>
9819
9820         update nearly all FSF copyright year lists to include 2009
9821         The files named by the following are exempted:
9822             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9823               test -f "$dst" && { echo "$dst"; continue; }
9824               test -d "$dst" || continue
9825               echo "$dst"/$(basename "$src")
9826             done > exempt
9827             git ls-files tests/unictype >> exempt
9828         In the remaining files, convert to all-interval notation if
9829         - there is already at least one year interval like 2000-2003
9830         - the file is maintained by me
9831         - the file is in lib/uni*/, where that style already prevails
9832         Otherwise, use update-copyright's default.
9833
9834 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9835         and Eric Blake  <ebb9@byu.net>
9836
9837         tests: don't require debug system() to pass
9838         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
9839         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9840         * tests/test-unlink.h (test_unlink_func): Likewise.
9841         * tests/test-fstatat.c (main): ...into callers.
9842         * tests/test-lstat.c (main): Likewise.
9843         * tests/test-rmdir.c (main): Likewise.
9844         * tests/test-unlink.c (main): Likewise.
9845         * tests/test-unlinkat.c (main): Likewise.
9846         * tests/test-areadlink-with-size.c (main): Don't require a
9847         debug-only system call to pass, aiding cross-testing to mingw.
9848         * tests/test-areadlink.c (main): Likewise.
9849         * tests/test-areadlinkat-with-size.c (main): Likewise.
9850         * tests/test-areadlinkat.c (main): Likewise.
9851         * tests/test-canonicalize-lgpl.c (main): Likewise.
9852         * tests/test-canonicalize.c (main): Likewise.
9853         * tests/test-chown.c (main): Likewise.
9854         * tests/test-fchownat.c (main): Likewise.
9855         * tests/test-lchown.c (main): Likewise.
9856         * tests/test-fdutimensat.c (main): Likewise.
9857         * tests/test-futimens.c (main): Likewise.
9858         * tests/test-link.c (main): Likewise.
9859         * tests/test-linkat.c (main): Likewise.
9860         * tests/test-mkdir.c (main): Likewise.
9861         * tests/test-mkdirat.c (main): Likewise.
9862         * tests/test-mkfifo.c (main): Likewise.
9863         * tests/test-mkfifoat.c (main): Likewise.
9864         * tests/test-mknod.c (main): Likewise.
9865         * tests/test-readlink.c (main): Likewise.
9866         * tests/test-remove.c (main): Likewise.
9867         * tests/test-rename.c (main): Likewise.
9868         * tests/test-renameat.c (main): Likewise.
9869         * tests/test-symlink.c (main): Likewise.
9870         * tests/test-symlinkat.c (main): Likewise.
9871         * tests/test-utimens.c (main): Likewise.
9872         * tests/test-utimensat.c (main): Likewise.
9873
9874 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9875
9876         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
9877         on $(UNUSED_PARAMETER_H) to avoid build failure.
9878
9879 2009-12-28  Jim Meyering  <meyering@redhat.com>
9880
9881         update-copyright: you may specify a max. line length other than 72
9882         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9883
9884         maint: use consistent FSF copyright line syntax
9885         * lib/posixtm.c: Add missing comma in FSF copyright line.
9886         * lib/posixtm.h: Likewise.
9887         * lib/getugroups.c: Add missing ", Inc.".
9888
9889         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
9890         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
9891         FSF copyright line.  Remove trailing blanks.
9892
9893 2009-12-28  Eric Blake  <ebb9@byu.net>
9894
9895         test-dup2: reduce dependencies
9896         * modules/cloexec (Configure.ac): Set witness.
9897         * modules/dup2-tests (Depends-on): Drop cloexec.
9898         * tests/test-dup2.c (main): Skip portion of test if cloexec module
9899         not present.
9900         Suggested by Bruno Haible.
9901
9902 2009-12-26  Bruno Haible  <bruno@clisp.org>
9903
9904         Remove an unneeded dependency.
9905         * modules/fseterr (Depends-on): Remove dup2.
9906
9907 2009-12-26  Eric Blake  <ebb9@byu.net>
9908
9909         tests: use macros.h in more places
9910         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
9911         (ASSERT_STREAM): Provide default of stderr.
9912         * tests/test-dirent-safer.c: Include macros.h, using alternate
9913         stream for assertions.
9914         * tests/test-dup-safer.c: Likewise.
9915         * tests/test-freopen-safer.c: Likewise.
9916         * tests/test-getopt.c: Likewise.
9917         * tests/test-openat-safer.c: Likewise.
9918         * tests/test-pipe.c: Likewise.
9919         * tests/test-popen-safer.c: Likewise.
9920         * modules/dirent-safer-tests (Files): Include macros.h.
9921         * modules/unistd-safer-tests (Files): Likewise.
9922         * modules/freopen-safer-tests (Files): Likewise.
9923         * modules/getopt-posix-tests (Files): Likewise.
9924         * modules/openat-safer-tests (Files): Likewise.
9925         * modules/pipe-tests (Files): Likewise.
9926
9927 2009-12-26  Bruno Haible  <bruno@clisp.org>
9928
9929         javacomp: Portability fix.
9930         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
9931         that it also works on Solaris.
9932
9933 2009-12-26  Bruno Haible  <bruno@clisp.org>
9934
9935         localename: Fix storage allocation of gl_locale_name_thread's result.
9936         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
9937         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
9938         all platforms that have 'uselocale'.
9939         (gl_locale_name_thread_unsafe): New function, extracted from
9940         gl_locale_name_thread.
9941         (gl_locale_name_thread): Call struniq on all platforms that have
9942         'uselocale'.
9943         * tests/test-localename.c (test_locale_name_thread): Check that the
9944         resulting strings are permanently allocated.
9945         * modules/localename-tests (Depends-on): Add strdup.
9946
9947 2009-12-26  Bruno Haible  <bruno@clisp.org>
9948
9949         * tests/test-localename.c (categories): Fill in the strings.
9950
9951 2009-12-26  Jim Meyering  <meyering@redhat.com>
9952
9953         isdir: complete the removal of m4/isdir.m4
9954         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
9955
9956         isdir: clean up, since at least grep still uses it
9957         * lib/isdir.c: Include "isdir.h".
9958         (S_ISDIR): Remove now-unneeded definition.
9959         * modules/isdir (Files): Add lib/isdir.h.
9960         * lib/isdir.h: New file, with declaration.
9961         * m4/isdir.m4: Remove file -- unneeded.
9962
9963 2009-12-25  Bruno Haible  <bruno@clisp.org>
9964
9965         selinux-h: Make generated .h files standalone.
9966         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
9967         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
9968         * lib/se-selinux.in.h: Likewise.
9969         * modules/selinux-h (Depends-on): Add unused-parameter.
9970         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
9971         selinux/selinux.h and selinux/context.h.
9972         Suggested by Eric Blake.
9973
9974 2009-12-25  Bruno Haible  <bruno@clisp.org>
9975
9976         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
9977         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
9978         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
9979         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
9980         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
9981
9982 2009-12-24  Bruno Haible  <bruno@clisp.org>
9983
9984         openat: Fix warning.
9985         * lib/openat-proc.c: Include <unistd.h>.
9986
9987 2009-12-24  Bruno Haible  <bruno@clisp.org>
9988
9989         New module 'unused-parameter'.
9990         * build-aux/unused-parameter.h: New file, extracted from earlier
9991         gnulib-common.m4.
9992         * modules/unused-parameter: New file.
9993         * lib/unistr.h: Include unused-parameter.h.
9994         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
9995         _GL_UNUSED.
9996         * modules/unistr/base (Depends-on): Add unused-parameter.
9997
9998 2009-12-24  Bruno Haible  <bruno@clisp.org>
9999
10000         Add missing dependencies to 'extensions' module.
10001         * m4/extensions.m4: Add comment.
10002         * modules/accept4 (Depends-on): Add extensions.
10003         * modules/dup3 (Depends-on): Likewise.
10004         * modules/fcntl (Depends-on): Likewise.
10005         * modules/futimens (Depends-on): Likewise.
10006         * modules/mknod (Depends-on): Likewise.
10007         * modules/pipe2 (Depends-on): Likewise.
10008         * modules/stat-time (Depends-on): Likewise.
10009         * modules/strcasestr-simple (Depends-on): Likewise.
10010         * modules/strsignal (Depends-on): Likewise.
10011         * modules/utimensat (Depends-on): Likewise.
10012         * modules/localcharset (Depends-on): Likewise. Needed because of
10013         gl_FCNTL_O_FLAGS.
10014         * modules/wcrtomb (Depends-on): Likewise. Needed because of
10015         AC_TYPE_MBSTATE_T.
10016         * modules/wcsnrtombs (Depends-on): Likewise.
10017         * modules/wcsrtombs (Depends-on): Likewise.
10018
10019 2009-12-24  Bruno Haible  <bruno@clisp.org>
10020
10021         binary-io: Avoid gcc warning due to SET_BINARY.
10022         * lib/binary-io.h (SET_BINARY): Cast the result to void.
10023         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
10024
10025 2009-12-24  Bruno Haible  <bruno@clisp.org>
10026
10027         Avoid future namespace pollution on glibc systems.
10028         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
10029         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
10030         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
10031         glibc systems.
10032
10033 2009-12-24  Bruno Haible  <bruno@clisp.org>
10034
10035         Refactor common macros used in tests.
10036         * tests/macros.h: New file.
10037         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
10038         and/or <stdlib.h>, if appropriate.
10039         (ASSERT, SIZEOF): Remove macros.
10040         * tests/test-areadlink-with-size.c: Likewise.
10041         * tests/test-areadlinkat.c: Likewise.
10042         * tests/test-areadlinkat-with-size.c: Likewise.
10043         * tests/test-argmatch.c: Likewise.
10044         * tests/test-argv-iter.c: Likewise.
10045         * tests/test-array-mergesort.c: Likewise.
10046         * tests/test-array_list.c: Likewise.
10047         * tests/test-array_oset.c: Likewise.
10048         * tests/test-avltree_list.c: Likewise.
10049         * tests/test-avltree_oset.c: Likewise.
10050         * tests/test-avltreehash_list.c: Likewise.
10051         * tests/test-base64.c: Likewise.
10052         * tests/test-binary-io.c: Likewise.
10053         * tests/test-bitrotate.c: Likewise.
10054         * tests/test-btowc.c: Likewise.
10055         * tests/test-byteswap.c: Likewise.
10056         * tests/test-c-ctype.c: Likewise.
10057         * tests/test-c-stack.c: Likewise.
10058         * tests/test-c-strcasecmp.c: Likewise.
10059         * tests/test-c-strcasestr.c: Likewise.
10060         * tests/test-c-strncasecmp.c: Likewise.
10061         * tests/test-c-strstr.c: Likewise.
10062         * tests/test-canonicalize-lgpl.c: Likewise.
10063         * tests/test-canonicalize.c: Likewise.
10064         * tests/test-carray_list.c: Likewise.
10065         * tests/test-ceilf1.c: Likewise.
10066         * tests/test-ceilf2.c: Likewise.
10067         * tests/test-ceill.c: Likewise.
10068         * tests/test-chown.c: Likewise.
10069         * tests/test-cloexec.c: Likewise.
10070         * tests/test-copy-acl.c: Likewise.
10071         * tests/test-copy-file.c: Likewise.
10072         * tests/test-count-one-bits.c: Likewise.
10073         * tests/test-dprintf-posix.c: Likewise.
10074         * tests/test-dup2.c: Likewise.
10075         * tests/test-dup3.c: Likewise.
10076         * tests/test-duplocale.c: Likewise.
10077         * tests/test-fbufmode.c: Likewise.
10078         * tests/test-fchdir.c: Likewise.
10079         * tests/test-fchownat.c: Likewise.
10080         * tests/test-fcntl-safer.c: Likewise.
10081         * tests/test-fcntl.c: Likewise.
10082         * tests/test-fdopendir.c: Likewise.
10083         * tests/test-fdutimensat.c: Likewise.
10084         * tests/test-fflush2.c: Likewise.
10085         * tests/test-file-has-acl.c: Likewise.
10086         * tests/test-filevercmp.c: Likewise.
10087         * tests/test-flock.c: Likewise.
10088         * tests/test-floorf1.c: Likewise.
10089         * tests/test-floorf2.c: Likewise.
10090         * tests/test-floorl.c: Likewise.
10091         * tests/test-fnmatch.c: Likewise.
10092         * tests/test-fopen.h: Likewise.
10093         * tests/test-fpending.c: Likewise.
10094         * tests/test-fprintf-posix.c: Likewise.
10095         * tests/test-fpurge.c: Likewise.
10096         * tests/test-freadable.c: Likewise.
10097         * tests/test-freadahead.c: Likewise.
10098         * tests/test-freading.c: Likewise.
10099         * tests/test-freadptr.c: Likewise.
10100         * tests/test-freadptr2.c: Likewise.
10101         * tests/test-freadseek.c: Likewise.
10102         * tests/test-freopen.c: Likewise.
10103         * tests/test-frexp.c: Likewise.
10104         * tests/test-frexpl.c: Likewise.
10105         * tests/test-fseek.c: Likewise.
10106         * tests/test-fseeko.c: Likewise.
10107         * tests/test-fstatat.c: Likewise.
10108         * tests/test-fstrcmp.c: Likewise.
10109         * tests/test-fsync.c: Likewise.
10110         * tests/test-ftell.c: Likewise.
10111         * tests/test-ftello.c: Likewise.
10112         * tests/test-func.c: Likewise.
10113         * tests/test-futimens.c: Likewise.
10114         * tests/test-fwritable.c: Likewise.
10115         * tests/test-fwriting.c: Likewise.
10116         * tests/test-getcwd.c: Likewise.
10117         * tests/test-getdate.c: Likewise.
10118         * tests/test-getdelim.c: Likewise.
10119         * tests/test-getdtablesize.c: Likewise.
10120         * tests/test-getgroups.c: Likewise.
10121         * tests/test-getline.c: Likewise.
10122         * tests/test-getndelim2.c: Likewise.
10123         * tests/test-glob.c: Likewise.
10124         * tests/test-hash.c: Likewise.
10125         * tests/test-i-ring.c: Likewise.
10126         * tests/test-iconv-utf.c: Likewise.
10127         * tests/test-iconv.c: Likewise.
10128         * tests/test-idpriv-drop.c: Likewise.
10129         * tests/test-idpriv-droptemp.c: Likewise.
10130         * tests/test-inet_ntop.c: Likewise.
10131         * tests/test-inet_pton.c: Likewise.
10132         * tests/test-isblank.c: Likewise.
10133         * tests/test-isfinite.c: Likewise.
10134         * tests/test-isinf.c: Likewise.
10135         * tests/test-isnan.c: Likewise.
10136         * tests/test-isnand.h: Likewise.
10137         * tests/test-isnanf.h: Likewise.
10138         * tests/test-isnanl.h: Likewise.
10139         * tests/test-lchown.c: Likewise.
10140         * tests/test-ldexpl.c: Likewise.
10141         * tests/test-link.c: Likewise.
10142         * tests/test-linkat.c: Likewise.
10143         * tests/test-linked_list.c: Likewise.
10144         * tests/test-linkedhash_list.c: Likewise.
10145         * tests/test-localename.c: Likewise.
10146         * tests/test-lseek.c: Likewise.
10147         * tests/test-lstat.c: Likewise.
10148         * tests/test-mbmemcasecmp.c: Likewise.
10149         * tests/test-mbmemcasecoll.c: Likewise.
10150         * tests/test-mbrtowc.c: Likewise.
10151         * tests/test-mbscasecmp.c: Likewise.
10152         * tests/test-mbscasestr1.c: Likewise.
10153         * tests/test-mbscasestr2.c: Likewise.
10154         * tests/test-mbscasestr3.c: Likewise.
10155         * tests/test-mbscasestr4.c: Likewise.
10156         * tests/test-mbschr.c: Likewise.
10157         * tests/test-mbscspn.c: Likewise.
10158         * tests/test-mbsinit.c: Likewise.
10159         * tests/test-mbsncasecmp.c: Likewise.
10160         * tests/test-mbsnrtowcs.c: Likewise.
10161         * tests/test-mbspbrk.c: Likewise.
10162         * tests/test-mbspcasecmp.c: Likewise.
10163         * tests/test-mbsrchr.c: Likewise.
10164         * tests/test-mbsrtowcs.c: Likewise.
10165         * tests/test-mbsspn.c: Likewise.
10166         * tests/test-mbsstr1.c: Likewise.
10167         * tests/test-mbsstr2.c: Likewise.
10168         * tests/test-mbsstr3.c: Likewise.
10169         * tests/test-memchr.c: Likewise.
10170         * tests/test-memchr2.c: Likewise.
10171         * tests/test-memcmp.c: Likewise.
10172         * tests/test-memmem.c: Likewise.
10173         * tests/test-memrchr.c: Likewise.
10174         * tests/test-mkdir.c: Likewise.
10175         * tests/test-mkdirat.c: Likewise.
10176         * tests/test-mkfifo.c: Likewise.
10177         * tests/test-mkfifoat.c: Likewise.
10178         * tests/test-mknod.c: Likewise.
10179         * tests/test-nanosleep.c: Likewise.
10180         * tests/test-nl_langinfo.c: Likewise.
10181         * tests/test-obstack-printf.c: Likewise.
10182         * tests/test-open.c: Likewise.
10183         * tests/test-openat.c: Likewise.
10184         * tests/test-pipe-filter-gi1.c: Likewise.
10185         * tests/test-pipe-filter-gi2-main.c: Likewise.
10186         * tests/test-pipe-filter-ii1.c: Likewise.
10187         * tests/test-pipe-filter-ii2-main.c: Likewise.
10188         * tests/test-pipe2.c: Likewise.
10189         * tests/test-popen.h: Likewise.
10190         * tests/test-posixtm.c: Likewise.
10191         * tests/test-pread.c: Likewise.
10192         * tests/test-printf-frexp.c: Likewise.
10193         * tests/test-printf-frexpl.c: Likewise.
10194         * tests/test-printf-posix.c: Likewise.
10195         * tests/test-priv-set.c: Likewise.
10196         * tests/test-quotearg.c: Likewise.
10197         * tests/test-random_r.c: Likewise.
10198         * tests/test-rawmemchr.c: Likewise.
10199         * tests/test-rbtree_list.c: Likewise.
10200         * tests/test-rbtree_oset.c: Likewise.
10201         * tests/test-rbtreehash_list.c: Likewise.
10202         * tests/test-readlink.c: Likewise.
10203         * tests/test-remove.c: Likewise.
10204         * tests/test-rename.c: Likewise.
10205         * tests/test-renameat.c: Likewise.
10206         * tests/test-rmdir.c: Likewise.
10207         * tests/test-round1.c: Likewise.
10208         * tests/test-roundf1.c: Likewise.
10209         * tests/test-roundl.c: Likewise.
10210         * tests/test-safe-alloc.c: Likewise.
10211         * tests/test-sameacls.c: Likewise.
10212         * tests/test-set-mode-acl.c: Likewise.
10213         * tests/test-setenv.c: Likewise.
10214         * tests/test-sigaction.c: Likewise.
10215         * tests/test-signbit.c: Likewise.
10216         * tests/test-sleep.c: Likewise.
10217         * tests/test-snprintf-posix.c: Likewise.
10218         * tests/test-snprintf.c: Likewise.
10219         * tests/test-sprintf-posix.c: Likewise.
10220         * tests/test-stat-time.c: Likewise.
10221         * tests/test-stat.c: Likewise.
10222         * tests/test-strcasestr.c: Likewise.
10223         * tests/test-strchrnul.c: Likewise.
10224         * tests/test-strerror.c: Likewise.
10225         * tests/test-striconv.c: Likewise.
10226         * tests/test-striconveh.c: Likewise.
10227         * tests/test-striconveha.c: Likewise.
10228         * tests/test-strsignal.c: Likewise.
10229         * tests/test-strstr.c: Likewise.
10230         * tests/test-strtod.c: Likewise.
10231         * tests/test-strverscmp.c: Likewise.
10232         * tests/test-symlink.c: Likewise.
10233         * tests/test-symlinkat.c: Likewise.
10234         * tests/test-trunc1.c: Likewise.
10235         * tests/test-trunc2.c: Likewise.
10236         * tests/test-truncf1.c: Likewise.
10237         * tests/test-truncf2.c: Likewise.
10238         * tests/test-truncl.c: Likewise.
10239         * tests/test-uname.c: Likewise.
10240         * tests/test-unlink.c: Likewise.
10241         * tests/test-unlinkat.c: Likewise.
10242         * tests/test-unsetenv.c: Likewise.
10243         * tests/test-usleep.c: Likewise.
10244         * tests/test-utimens.c: Likewise.
10245         * tests/test-utimensat.c: Likewise.
10246         * tests/test-vasnprintf-posix.c: Likewise.
10247         * tests/test-vasnprintf-posix2.c: Likewise.
10248         * tests/test-vasnprintf.c: Likewise.
10249         * tests/test-vasprintf-posix.c: Likewise.
10250         * tests/test-vasprintf.c: Likewise.
10251         * tests/test-vdprintf-posix.c: Likewise.
10252         * tests/test-vfprintf-posix.c: Likewise.
10253         * tests/test-vprintf-posix.c: Likewise.
10254         * tests/test-vsnprintf-posix.c: Likewise.
10255         * tests/test-vsnprintf.c: Likewise.
10256         * tests/test-vsprintf-posix.c: Likewise.
10257         * tests/test-wcrtomb.c: Likewise.
10258         * tests/test-wcsnrtombs.c: Likewise.
10259         * tests/test-wcsrtombs.c: Likewise.
10260         * tests/test-wctype.c: Likewise.
10261         * tests/test-wcwidth.c: Likewise.
10262         * tests/test-xfprintf-posix.c: Likewise.
10263         * tests/test-xmemdup0.c: Likewise.
10264         * tests/test-xprintf-posix.c: Likewise.
10265         * tests/test-xvasprintf.c: Likewise.
10266         * tests/unicase/test-locale-language.c: Likewise.
10267         * tests/unicase/test-mapping-part1.h: Likewise.
10268         * tests/unicase/test-predicate-part1.h: Likewise.
10269         * tests/unicase/test-u8-casecmp.c: Likewise.
10270         * tests/unicase/test-u8-casecoll.c: Likewise.
10271         * tests/unicase/test-u8-casefold.c: Likewise.
10272         * tests/unicase/test-u8-is-cased.c: Likewise.
10273         * tests/unicase/test-u8-is-casefolded.c: Likewise.
10274         * tests/unicase/test-u8-is-lowercase.c: Likewise.
10275         * tests/unicase/test-u8-is-titlecase.c: Likewise.
10276         * tests/unicase/test-u8-is-uppercase.c: Likewise.
10277         * tests/unicase/test-u8-tolower.c: Likewise.
10278         * tests/unicase/test-u8-totitle.c: Likewise.
10279         * tests/unicase/test-u8-toupper.c: Likewise.
10280         * tests/unicase/test-u16-casecmp.c: Likewise.
10281         * tests/unicase/test-u16-casecoll.c: Likewise.
10282         * tests/unicase/test-u16-casefold.c: Likewise.
10283         * tests/unicase/test-u16-is-cased.c: Likewise.
10284         * tests/unicase/test-u16-is-casefolded.c: Likewise.
10285         * tests/unicase/test-u16-is-lowercase.c: Likewise.
10286         * tests/unicase/test-u16-is-titlecase.c: Likewise.
10287         * tests/unicase/test-u16-is-uppercase.c: Likewise.
10288         * tests/unicase/test-u16-tolower.c: Likewise.
10289         * tests/unicase/test-u16-totitle.c: Likewise.
10290         * tests/unicase/test-u16-toupper.c: Likewise.
10291         * tests/unicase/test-u32-casecmp.c: Likewise.
10292         * tests/unicase/test-u32-casecoll.c: Likewise.
10293         * tests/unicase/test-u32-casefold.c: Likewise.
10294         * tests/unicase/test-u32-is-cased.c: Likewise.
10295         * tests/unicase/test-u32-is-casefolded.c: Likewise.
10296         * tests/unicase/test-u32-is-lowercase.c: Likewise.
10297         * tests/unicase/test-u32-is-titlecase.c: Likewise.
10298         * tests/unicase/test-u32-is-uppercase.c: Likewise.
10299         * tests/unicase/test-u32-tolower.c: Likewise.
10300         * tests/unicase/test-u32-totitle.c: Likewise.
10301         * tests/unicase/test-u32-toupper.c: Likewise.
10302         * tests/unicase/test-ulc-casecmp.c: Likewise.
10303         * tests/unicase/test-ulc-casecoll.c: Likewise.
10304         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10305         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10306         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10307         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10308         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10309         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10310         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10311         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10312         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10313         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10314         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10315         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10316         * tests/unictype/test-bidi_byname.c: Likewise.
10317         * tests/unictype/test-bidi_name.c: Likewise.
10318         * tests/unictype/test-bidi_of.c: Likewise.
10319         * tests/unictype/test-bidi_test.c: Likewise.
10320         * tests/unictype/test-block_list.c: Likewise.
10321         * tests/unictype/test-block_of.c: Likewise.
10322         * tests/unictype/test-block_test.c: Likewise.
10323         * tests/unictype/test-categ_and.c: Likewise.
10324         * tests/unictype/test-categ_and_not.c: Likewise.
10325         * tests/unictype/test-categ_byname.c: Likewise.
10326         * tests/unictype/test-categ_name.c: Likewise.
10327         * tests/unictype/test-categ_none.c: Likewise.
10328         * tests/unictype/test-categ_of.c: Likewise.
10329         * tests/unictype/test-categ_or.c: Likewise.
10330         * tests/unictype/test-categ_test_withtable.c: Likewise.
10331         * tests/unictype/test-combining.c: Likewise.
10332         * tests/unictype/test-decdigit.c: Likewise.
10333         * tests/unictype/test-digit.c: Likewise.
10334         * tests/unictype/test-mirror.c: Likewise.
10335         * tests/unictype/test-numeric.c: Likewise.
10336         * tests/unictype/test-pr_byname.c: Likewise.
10337         * tests/unictype/test-pr_test.c: Likewise.
10338         * tests/unictype/test-predicate-part1.h: Likewise.
10339         * tests/unictype/test-scripts.c: Likewise.
10340         * tests/unictype/test-sy_c_ident.c: Likewise.
10341         * tests/unictype/test-sy_java_ident.c: Likewise.
10342         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
10343         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
10344         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
10345         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
10346         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
10347         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
10348         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
10349         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
10350         * tests/uninorm/test-canonical-decomposition.c: Likewise.
10351         * tests/uninorm/test-compat-decomposition.c: Likewise.
10352         * tests/uninorm/test-composition.c: Likewise.
10353         * tests/uninorm/test-decomposing-form.c: Likewise.
10354         * tests/uninorm/test-decomposition.c: Likewise.
10355         * tests/uninorm/test-u8-nfc.c: Likewise.
10356         * tests/uninorm/test-u8-nfd.c: Likewise.
10357         * tests/uninorm/test-u8-nfkc.c: Likewise.
10358         * tests/uninorm/test-u8-nfkd.c: Likewise.
10359         * tests/uninorm/test-u8-normcmp.c: Likewise.
10360         * tests/uninorm/test-u8-normcoll.c: Likewise.
10361         * tests/uninorm/test-u16-nfc.c: Likewise.
10362         * tests/uninorm/test-u16-nfd.c: Likewise.
10363         * tests/uninorm/test-u16-nfkc.c: Likewise.
10364         * tests/uninorm/test-u16-nfkd.c: Likewise.
10365         * tests/uninorm/test-u16-normcmp.c: Likewise.
10366         * tests/uninorm/test-u16-normcoll.c: Likewise.
10367         * tests/uninorm/test-u32-nfc.c: Likewise.
10368         * tests/uninorm/test-u32-nfd.c: Likewise.
10369         * tests/uninorm/test-u32-nfkc.c: Likewise.
10370         * tests/uninorm/test-u32-nfkd.c: Likewise.
10371         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10372         * tests/uninorm/test-u32-normcmp.c: Likewise.
10373         * tests/uninorm/test-u32-normcoll.c: Likewise.
10374         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
10375         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10376         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10377         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10378         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10379         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10380         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10381         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10382         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10383         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10384         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10385         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10386         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10387         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10388         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10389         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10390         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10391         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10392         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10393         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10394         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10395         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10396         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10397         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10398         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10399         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10400         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10401         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10402         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10403         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
10404         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
10405         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
10406         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
10407         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10408         * tests/uniwidth/test-u8-width.c: Likewise.
10409         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10410         * tests/uniwidth/test-u16-width.c: Likewise.
10411         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10412         * tests/uniwidth/test-u32-width.c: Likewise.
10413         * tests/uniwidth/test-uc_width.c: Likewise.
10414         * tests/uniwidth/test-uc_width2.c: Likewise.
10415         * modules/acl-tests (Files): Add tests/macros.h.
10416         * modules/areadlink-tests (Files): Likewise.
10417         * modules/areadlink-with-size-tests (Files): Likewise.
10418         * modules/areadlinkat-tests (Files): Likewise.
10419         * modules/areadlinkat-with-size-tests (Files): Likewise.
10420         * modules/argmatch-tests (Files): Likewise.
10421         * modules/argv-iter-tests (Files): Likewise.
10422         * modules/array-list-tests (Files): Likewise.
10423         * modules/array-mergesort-tests (Files): Likewise.
10424         * modules/array-oset-tests (Files): Likewise.
10425         * modules/avltree-list-tests (Files): Likewise.
10426         * modules/avltree-oset-tests (Files): Likewise.
10427         * modules/avltreehash-list-tests (Files): Likewise.
10428         * modules/base64-tests (Files): Likewise.
10429         * modules/binary-io-tests (Files): Likewise.
10430         * modules/bitrotate-tests (Files): Likewise.
10431         * modules/btowc-tests (Files): Likewise.
10432         * modules/byteswap-tests (Files): Likewise.
10433         * modules/c-ctype-tests (Files): Likewise.
10434         * modules/c-stack-tests (Files): Likewise.
10435         * modules/c-strcase-tests (Files): Likewise.
10436         * modules/c-strcasestr-tests (Files): Likewise.
10437         * modules/c-strstr-tests (Files): Likewise.
10438         * modules/canonicalize-lgpl-tests (Files): Likewise.
10439         * modules/canonicalize-tests (Files): Likewise.
10440         * modules/carray-list-tests (Files): Likewise.
10441         * modules/ceilf-tests (Files): Likewise.
10442         * modules/ceill-tests (Files): Likewise.
10443         * modules/chown-tests (Files): Likewise.
10444         * modules/cloexec-tests (Files): Likewise.
10445         * modules/copy-file-tests (Files): Likewise.
10446         * modules/count-one-bits-tests (Files): Likewise.
10447         * modules/dprintf-posix-tests (Files): Likewise.
10448         * modules/dup2-tests (Files): Likewise.
10449         * modules/dup3-tests (Files): Likewise.
10450         * modules/duplocale-tests (Files): Likewise.
10451         * modules/fbufmode-tests (Files): Likewise.
10452         * modules/fchdir-tests (Files): Likewise.
10453         * modules/fcntl-safer-tests (Files): Likewise.
10454         * modules/fcntl-tests (Files): Likewise.
10455         * modules/fdopendir-tests (Files): Likewise.
10456         * modules/fdutimensat-tests (Files): Likewise.
10457         * modules/fflush-tests (Files): Likewise.
10458         * modules/filevercmp-tests (Files): Likewise.
10459         * modules/flock-tests (Files): Likewise.
10460         * modules/floorf-tests (Files): Likewise.
10461         * modules/floorl-tests (Files): Likewise.
10462         * modules/fnmatch-tests (Files): Likewise.
10463         * modules/fopen-safer-tests (Files): Likewise.
10464         * modules/fopen-tests (Files): Likewise.
10465         * modules/fpending-tests (Files): Likewise.
10466         * modules/fprintf-posix-tests (Files): Likewise.
10467         * modules/fpurge-tests (Files): Likewise.
10468         * modules/freadable-tests (Files): Likewise.
10469         * modules/freadahead-tests (Files): Likewise.
10470         * modules/freading-tests (Files): Likewise.
10471         * modules/freadptr-tests (Files): Likewise.
10472         * modules/freadseek-tests (Files): Likewise.
10473         * modules/freopen-tests (Files): Likewise.
10474         * modules/frexp-nolibm-tests (Files): Likewise.
10475         * modules/frexp-tests (Files): Likewise.
10476         * modules/frexpl-nolibm-tests (Files): Likewise.
10477         * modules/frexpl-tests (Files): Likewise.
10478         * modules/fseek-tests (Files): Likewise.
10479         * modules/fseeko-tests (Files): Likewise.
10480         * modules/fstrcmp-tests (Files): Likewise.
10481         * modules/fsync-tests (Files): Likewise.
10482         * modules/ftell-tests (Files): Likewise.
10483         * modules/ftello-tests (Files): Likewise.
10484         * modules/func-tests (Files): Likewise.
10485         * modules/futimens-tests (Files): Likewise.
10486         * modules/fwritable-tests (Files): Likewise.
10487         * modules/fwriting-tests (Files): Likewise.
10488         * modules/getcwd-tests (Files): Likewise.
10489         * modules/getdate-tests (Files): Likewise.
10490         * modules/getdelim-tests (Files): Likewise.
10491         * modules/getdtablesize-tests (Files): Likewise.
10492         * modules/getgroups-tests (Files): Likewise.
10493         * modules/getline-tests (Files): Likewise.
10494         * modules/getndelim2-tests (Files): Likewise.
10495         * modules/glob-tests (Files): Likewise.
10496         * modules/hash-tests (Files): Likewise.
10497         * modules/i-ring-tests (Files): Likewise.
10498         * modules/iconv-tests (Files): Likewise.
10499         * modules/iconv_open-utf-tests (Files): Likewise.
10500         * modules/idpriv-drop-tests (Files): Likewise.
10501         * modules/idpriv-droptemp-tests (Files): Likewise.
10502         * modules/inet_ntop-tests (Files): Likewise.
10503         * modules/inet_pton-tests (Files): Likewise.
10504         * modules/isblank-tests (Files): Likewise.
10505         * modules/isfinite-tests (Files): Likewise.
10506         * modules/isinf-tests (Files): Likewise.
10507         * modules/isnan-tests (Files): Likewise.
10508         * modules/isnand-nolibm-tests (Files): Likewise.
10509         * modules/isnand-tests (Files): Likewise.
10510         * modules/isnanf-nolibm-tests (Files): Likewise.
10511         * modules/isnanf-tests (Files): Likewise.
10512         * modules/isnanl-nolibm-tests (Files): Likewise.
10513         * modules/isnanl-tests (Files): Likewise.
10514         * modules/lchown-tests (Files): Likewise.
10515         * modules/ldexpl-tests (Files): Likewise.
10516         * modules/link-tests (Files): Likewise.
10517         * modules/linkat-tests (Files): Likewise.
10518         * modules/linked-list-tests (Files): Likewise.
10519         * modules/linkedhash-list-tests (Files): Likewise.
10520         * modules/localename-tests (Files): Likewise.
10521         * modules/lseek-tests (Files): Likewise.
10522         * modules/lstat-tests (Files): Likewise.
10523         * modules/mbmemcasecmp-tests (Files): Likewise.
10524         * modules/mbmemcasecoll-tests (Files): Likewise.
10525         * modules/mbrtowc-tests (Files): Likewise.
10526         * modules/mbscasecmp-tests (Files): Likewise.
10527         * modules/mbscasestr-tests (Files): Likewise.
10528         * modules/mbschr-tests (Files): Likewise.
10529         * modules/mbscspn-tests (Files): Likewise.
10530         * modules/mbsinit-tests (Files): Likewise.
10531         * modules/mbsncasecmp-tests (Files): Likewise.
10532         * modules/mbsnrtowcs-tests (Files): Likewise.
10533         * modules/mbspbrk-tests (Files): Likewise.
10534         * modules/mbspcasecmp-tests (Files): Likewise.
10535         * modules/mbsrchr-tests (Files): Likewise.
10536         * modules/mbsrtowcs-tests (Files): Likewise.
10537         * modules/mbsspn-tests (Files): Likewise.
10538         * modules/mbsstr-tests (Files): Likewise.
10539         * modules/memchr-tests (Files): Likewise.
10540         * modules/memchr2-tests (Files): Likewise.
10541         * modules/memcmp-tests (Files): Likewise.
10542         * modules/memmem-tests (Files): Likewise.
10543         * modules/memrchr-tests (Files): Likewise.
10544         * modules/mkdir-tests (Files): Likewise.
10545         * modules/mkfifo-tests (Files): Likewise.
10546         * modules/mkfifoat-tests (Files): Likewise.
10547         * modules/mknod-tests (Files): Likewise.
10548         * modules/nanosleep-tests (Files): Likewise.
10549         * modules/nl_langinfo-tests (Files): Likewise.
10550         * modules/obstack-printf-tests (Files): Likewise.
10551         * modules/open-tests (Files): Likewise.
10552         * modules/openat-tests (Files): Likewise.
10553         * modules/pipe-filter-gi-tests (Files): Likewise.
10554         * modules/pipe-filter-ii-tests (Files): Likewise.
10555         * modules/pipe2-tests (Files): Likewise.
10556         * modules/popen-safer-tests (Files): Likewise.
10557         * modules/popen-tests (Files): Likewise.
10558         * modules/posixtm-tests (Files): Likewise.
10559         * modules/pread-tests (Files): Likewise.
10560         * modules/printf-frexp-tests (Files): Likewise.
10561         * modules/printf-frexpl-tests (Files): Likewise.
10562         * modules/printf-posix-tests (Files): Likewise.
10563         * modules/priv-set-tests (Files): Likewise.
10564         * modules/quotearg-tests (Files): Likewise.
10565         * modules/random_r-tests (Files): Likewise.
10566         * modules/rawmemchr-tests (Files): Likewise.
10567         * modules/rbtree-list-tests (Files): Likewise.
10568         * modules/rbtree-oset-tests (Files): Likewise.
10569         * modules/rbtreehash-list-tests (Files): Likewise.
10570         * modules/readlink-tests (Files): Likewise.
10571         * modules/remove-tests (Files): Likewise.
10572         * modules/rename-tests (Files): Likewise.
10573         * modules/renameat-tests (Files): Likewise.
10574         * modules/rmdir-tests (Files): Likewise.
10575         * modules/round-tests (Files): Likewise.
10576         * modules/roundf-tests (Files): Likewise.
10577         * modules/roundl-tests (Files): Likewise.
10578         * modules/safe-alloc-tests (Files): Likewise.
10579         * modules/setenv-tests (Files): Likewise.
10580         * modules/sigaction-tests (Files): Likewise.
10581         * modules/signbit-tests (Files): Likewise.
10582         * modules/sleep-tests (Files): Likewise.
10583         * modules/snprintf-posix-tests (Files): Likewise.
10584         * modules/snprintf-tests (Files): Likewise.
10585         * modules/sprintf-posix-tests (Files): Likewise.
10586         * modules/stat-tests (Files): Likewise.
10587         * modules/stat-time-tests (Files): Likewise.
10588         * modules/strcasestr-tests (Files): Likewise.
10589         * modules/strchrnul-tests (Files): Likewise.
10590         * modules/strerror-tests (Files): Likewise.
10591         * modules/striconv-tests (Files): Likewise.
10592         * modules/striconveh-tests (Files): Likewise.
10593         * modules/striconveha-tests (Files): Likewise.
10594         * modules/strsignal-tests (Files): Likewise.
10595         * modules/strstr-tests (Files): Likewise.
10596         * modules/strtod-tests (Files): Likewise.
10597         * modules/strverscmp-tests (Files): Likewise.
10598         * modules/symlink-tests (Files): Likewise.
10599         * modules/symlinkat-tests (Files): Likewise.
10600         * modules/trunc-tests (Files): Likewise.
10601         * modules/truncf-tests (Files): Likewise.
10602         * modules/truncl-tests (Files): Likewise.
10603         * modules/uname-tests (Files): Likewise.
10604         * modules/unicase/cased-tests (Files): Likewise.
10605         * modules/unicase/ignorable-tests (Files): Likewise.
10606         * modules/unicase/locale-language-tests (Files): Likewise.
10607         * modules/unicase/tolower-tests (Files): Likewise.
10608         * modules/unicase/totitle-tests (Files): Likewise.
10609         * modules/unicase/toupper-tests (Files): Likewise.
10610         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10611         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10612         * modules/unicase/u8-casefold-tests (Files): Likewise.
10613         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10614         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10615         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10616         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10617         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10618         * modules/unicase/u8-tolower-tests (Files): Likewise.
10619         * modules/unicase/u8-totitle-tests (Files): Likewise.
10620         * modules/unicase/u8-toupper-tests (Files): Likewise.
10621         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10622         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10623         * modules/unicase/u16-casefold-tests (Files): Likewise.
10624         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10625         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10626         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10627         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10628         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10629         * modules/unicase/u16-tolower-tests (Files): Likewise.
10630         * modules/unicase/u16-totitle-tests (Files): Likewise.
10631         * modules/unicase/u16-toupper-tests (Files): Likewise.
10632         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10633         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10634         * modules/unicase/u32-casefold-tests (Files): Likewise.
10635         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10636         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10637         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10638         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10639         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10640         * modules/unicase/u32-tolower-tests (Files): Likewise.
10641         * modules/unicase/u32-totitle-tests (Files): Likewise.
10642         * modules/unicase/u32-toupper-tests (Files): Likewise.
10643         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10644         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10645         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10646         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10647         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10648         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10649         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10650         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10651         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10652         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10653         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10654         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10655         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10656         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10657         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10658         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10659         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10660         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10661         * modules/unictype/block-list-tests (Files): Likewise.
10662         * modules/unictype/block-of-tests (Files): Likewise.
10663         * modules/unictype/block-test-tests (Files): Likewise.
10664         * modules/unictype/category-C-tests (Files): Likewise.
10665         * modules/unictype/category-Cc-tests (Files): Likewise.
10666         * modules/unictype/category-Cf-tests (Files): Likewise.
10667         * modules/unictype/category-Cn-tests (Files): Likewise.
10668         * modules/unictype/category-Co-tests (Files): Likewise.
10669         * modules/unictype/category-Cs-tests (Files): Likewise.
10670         * modules/unictype/category-L-tests (Files): Likewise.
10671         * modules/unictype/category-Ll-tests (Files): Likewise.
10672         * modules/unictype/category-Lm-tests (Files): Likewise.
10673         * modules/unictype/category-Lo-tests (Files): Likewise.
10674         * modules/unictype/category-Lt-tests (Files): Likewise.
10675         * modules/unictype/category-Lu-tests (Files): Likewise.
10676         * modules/unictype/category-M-tests (Files): Likewise.
10677         * modules/unictype/category-Mc-tests (Files): Likewise.
10678         * modules/unictype/category-Me-tests (Files): Likewise.
10679         * modules/unictype/category-Mn-tests (Files): Likewise.
10680         * modules/unictype/category-N-tests (Files): Likewise.
10681         * modules/unictype/category-Nd-tests (Files): Likewise.
10682         * modules/unictype/category-Nl-tests (Files): Likewise.
10683         * modules/unictype/category-No-tests (Files): Likewise.
10684         * modules/unictype/category-P-tests (Files): Likewise.
10685         * modules/unictype/category-Pc-tests (Files): Likewise.
10686         * modules/unictype/category-Pd-tests (Files): Likewise.
10687         * modules/unictype/category-Pe-tests (Files): Likewise.
10688         * modules/unictype/category-Pf-tests (Files): Likewise.
10689         * modules/unictype/category-Pi-tests (Files): Likewise.
10690         * modules/unictype/category-Po-tests (Files): Likewise.
10691         * modules/unictype/category-Ps-tests (Files): Likewise.
10692         * modules/unictype/category-S-tests (Files): Likewise.
10693         * modules/unictype/category-Sc-tests (Files): Likewise.
10694         * modules/unictype/category-Sk-tests (Files): Likewise.
10695         * modules/unictype/category-Sm-tests (Files): Likewise.
10696         * modules/unictype/category-So-tests (Files): Likewise.
10697         * modules/unictype/category-Z-tests (Files): Likewise.
10698         * modules/unictype/category-Zl-tests (Files): Likewise.
10699         * modules/unictype/category-Zp-tests (Files): Likewise.
10700         * modules/unictype/category-Zs-tests (Files): Likewise.
10701         * modules/unictype/category-and-not-tests (Files): Likewise.
10702         * modules/unictype/category-and-tests (Files): Likewise.
10703         * modules/unictype/category-byname-tests (Files): Likewise.
10704         * modules/unictype/category-name-tests (Files): Likewise.
10705         * modules/unictype/category-none-tests (Files): Likewise.
10706         * modules/unictype/category-of-tests (Files): Likewise.
10707         * modules/unictype/category-or-tests (Files): Likewise.
10708         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10709         * modules/unictype/combining-class-tests (Files): Likewise.
10710         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10711         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10712         * modules/unictype/ctype-blank-tests (Files): Likewise.
10713         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10714         * modules/unictype/ctype-digit-tests (Files): Likewise.
10715         * modules/unictype/ctype-graph-tests (Files): Likewise.
10716         * modules/unictype/ctype-lower-tests (Files): Likewise.
10717         * modules/unictype/ctype-print-tests (Files): Likewise.
10718         * modules/unictype/ctype-punct-tests (Files): Likewise.
10719         * modules/unictype/ctype-space-tests (Files): Likewise.
10720         * modules/unictype/ctype-upper-tests (Files): Likewise.
10721         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10722         * modules/unictype/decimal-digit-tests (Files): Likewise.
10723         * modules/unictype/digit-tests (Files): Likewise.
10724         * modules/unictype/mirror-tests (Files): Likewise.
10725         * modules/unictype/numeric-tests (Files): Likewise.
10726         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10727         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10728         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10729         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10730         Likewise.
10731         * modules/unictype/property-bidi-block-separator-tests (Files):
10732         Likewise.
10733         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10734         Likewise.
10735         * modules/unictype/property-bidi-common-separator-tests (Files):
10736         Likewise.
10737         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10738         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10739         Likewise.
10740         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10741         Likewise.
10742         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10743         Likewise.
10744         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10745         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10746         Likewise.
10747         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10748         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10749         Likewise.
10750         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10751         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10752         * modules/unictype/property-bidi-segment-separator-tests (Files):
10753         Likewise.
10754         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10755         * modules/unictype/property-byname-tests (Files): Likewise.
10756         * modules/unictype/property-combining-tests (Files): Likewise.
10757         * modules/unictype/property-composite-tests (Files): Likewise.
10758         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10759         * modules/unictype/property-dash-tests (Files): Likewise.
10760         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10761         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10762         Likewise.
10763         * modules/unictype/property-deprecated-tests (Files): Likewise.
10764         * modules/unictype/property-diacritic-tests (Files): Likewise.
10765         * modules/unictype/property-extender-tests (Files): Likewise.
10766         * modules/unictype/property-format-control-tests (Files): Likewise.
10767         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10768         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10769         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10770         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10771         * modules/unictype/property-hyphen-tests (Files): Likewise.
10772         * modules/unictype/property-id-continue-tests (Files): Likewise.
10773         * modules/unictype/property-id-start-tests (Files): Likewise.
10774         * modules/unictype/property-ideographic-tests (Files): Likewise.
10775         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10776         * modules/unictype/property-ids-trinary-operator-tests (Files):
10777         Likewise.
10778         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10779         * modules/unictype/property-iso-control-tests (Files): Likewise.
10780         * modules/unictype/property-join-control-tests (Files): Likewise.
10781         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10782         * modules/unictype/property-line-separator-tests (Files): Likewise.
10783         * modules/unictype/property-logical-order-exception-tests (Files):
10784         Likewise.
10785         * modules/unictype/property-lowercase-tests (Files): Likewise.
10786         * modules/unictype/property-math-tests (Files): Likewise.
10787         * modules/unictype/property-non-break-tests (Files): Likewise.
10788         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10789         * modules/unictype/property-numeric-tests (Files): Likewise.
10790         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10791         * modules/unictype/property-other-default-ignorable-code-point-tests
10792         (Files): Likewise.
10793         * modules/unictype/property-other-grapheme-extend-tests (Files):
10794         Likewise.
10795         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10796         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10797         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10798         * modules/unictype/property-other-math-tests (Files): Likewise.
10799         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10800         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10801         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10802         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10803         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10804         * modules/unictype/property-private-use-tests (Files): Likewise.
10805         * modules/unictype/property-punctuation-tests (Files): Likewise.
10806         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10807         * modules/unictype/property-radical-tests (Files): Likewise.
10808         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10809         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10810         * modules/unictype/property-space-tests (Files): Likewise.
10811         * modules/unictype/property-terminal-punctuation-tests (Files):
10812         Likewise.
10813         * modules/unictype/property-test-tests (Files): Likewise.
10814         * modules/unictype/property-titlecase-tests (Files): Likewise.
10815         * modules/unictype/property-unassigned-code-value-tests (Files):
10816         Likewise.
10817         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10818         * modules/unictype/property-uppercase-tests (Files): Likewise.
10819         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10820         * modules/unictype/property-white-space-tests (Files): Likewise.
10821         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10822         * modules/unictype/property-xid-start-tests (Files): Likewise.
10823         * modules/unictype/property-zero-width-tests (Files): Likewise.
10824         * modules/unictype/scripts-tests (Files): Likewise.
10825         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10826         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10827         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10828         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10829         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10830         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10831         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10832         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10833         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
10834         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
10835         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
10836         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
10837         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
10838         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
10839         * modules/uninorm/composition-tests (Files): Likewise.
10840         * modules/uninorm/decomposing-form-tests (Files): Likewise.
10841         * modules/uninorm/decomposition-tests (Files): Likewise.
10842         * modules/uninorm/filter-tests (Files): Likewise.
10843         * modules/uninorm/nfc-tests (Files): Likewise.
10844         * modules/uninorm/nfd-tests (Files): Likewise.
10845         * modules/uninorm/nfkc-tests (Files): Likewise.
10846         * modules/uninorm/nfkd-tests (Files): Likewise.
10847         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
10848         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
10849         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
10850         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
10851         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
10852         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
10853         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
10854         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
10855         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
10856         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
10857         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
10858         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
10859         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
10860         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
10861         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
10862         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
10863         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
10864         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
10865         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
10866         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
10867         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
10868         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
10869         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
10870         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
10871         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
10872         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
10873         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
10874         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
10875         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
10876         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
10877         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
10878         * modules/uniwidth/u8-width-tests (Files): Likewise.
10879         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
10880         * modules/uniwidth/u16-width-tests (Files): Likewise.
10881         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
10882         * modules/uniwidth/u32-width-tests (Files): Likewise.
10883         * modules/uniwidth/width-tests (Files): Likewise.
10884         * modules/unlink-tests (Files): Likewise.
10885         * modules/unsetenv-tests (Files): Likewise.
10886         * modules/usleep-tests (Files): Likewise.
10887         * modules/utimens-tests (Files): Likewise.
10888         * modules/utimensat-tests (Files): Likewise.
10889         * modules/vasnprintf-posix-tests (Files): Likewise.
10890         * modules/vasnprintf-tests (Files): Likewise.
10891         * modules/vasprintf-posix-tests (Files): Likewise.
10892         * modules/vasprintf-tests (Files): Likewise.
10893         * modules/vdprintf-posix-tests (Files): Likewise.
10894         * modules/vfprintf-posix-tests (Files): Likewise.
10895         * modules/vprintf-posix-tests (Files): Likewise.
10896         * modules/vsnprintf-posix-tests (Files): Likewise.
10897         * modules/vsnprintf-tests (Files): Likewise.
10898         * modules/vsprintf-posix-tests (Files): Likewise.
10899         * modules/wcrtomb-tests (Files): Likewise.
10900         * modules/wcsnrtombs-tests (Files): Likewise.
10901         * modules/wcsrtombs-tests (Files): Likewise.
10902         * modules/wctype-tests (Files): Likewise.
10903         * modules/wcwidth-tests (Files): Likewise.
10904         * modules/xmemdup0-tests (Files): Likewise.
10905         * modules/xprintf-posix-tests (Files): Likewise.
10906         * modules/xvasprintf-tests (Files): Likewise.
10907
10908 2009-12-24  Eric Blake  <ebb9@byu.net>
10909
10910         test-nanosleep: fix typo
10911         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
10912         patch.
10913         Reported by Bruno Haible.
10914
10915 2009-12-24  Bruno Haible  <bruno@clisp.org>
10916
10917         Reduce namespace pollution on glibc systems.
10918         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
10919         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
10920         systems.
10921         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
10922         <getopt.h> on glibc systems.
10923         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
10924         systems.
10925         * lib/fcntl.c: Include <unistd.h> here instead.
10926
10927 2009-12-24  Bruno Haible  <bruno@clisp.org>
10928
10929         * lib/stdlib.in.h (includes): Fix typo in today's commit.
10930
10931 2009-12-24  Eric Blake  <ebb9@byu.net>
10932
10933         tests: add signature checks
10934         * tests/signature.h (SIGNATURE_CHECK): New file.
10935         * modules/atexit-tests (Files): Use it.
10936         * modules/btowc-tests (Files): Likewise.
10937         * modules/canonicalize-lgpl-tests (Files): Likewise.
10938         * modules/ceilf-tests (Files): Likewise.
10939         * modules/ceill-tests (Files): Likewise.
10940         * modules/chown-tests (Files): Likewise.
10941         * modules/dprintf-posix-tests (Files): Likewise.
10942         * modules/dup2-tests (Files): Likewise.
10943         * modules/dup3-tests (Files): Likewise.
10944         * modules/duplocale-tests (Files): Likewise.
10945         * modules/fchdir-tests (Files): Likewise.
10946         * modules/fcntl-tests (Files): Likewise.
10947         * modules/fdopendir-tests (Files): Likewise.
10948         * modules/fflush-tests (Files): Likewise.
10949         * modules/flock-tests (Files): Likewise.
10950         * modules/floorf-tests (Files): Likewise.
10951         * modules/floorl-tests (Files): Likewise.
10952         * modules/fnmatch-tests (Files): Likewise.
10953         * modules/fopen-tests (Files): Likewise.
10954         * modules/fprintf-posix-tests (Files): Likewise.
10955         * modules/freopen-tests (Files): Likewise.
10956         * modules/frexp-nolibm-tests (Files): Likewise.
10957         * modules/frexp-tests (Files): Likewise.
10958         * modules/frexpl-nolibm-tests (Files): Likewise.
10959         * modules/frexpl-tests (Files): Likewise.
10960         * modules/fseek-tests (Files): Likewise.
10961         * modules/fseeko-tests (Files): Likewise.
10962         * modules/fsync-tests (Files): Likewise.
10963         * modules/ftell-tests (Files): Likewise.
10964         * modules/ftello-tests (Files): Likewise.
10965         * modules/futimens-tests (Files): Likewise.
10966         * modules/getaddrinfo-tests (Files): Likewise.
10967         * modules/getcwd-tests (Files): Likewise.
10968         * modules/getdelim-tests (Files): Likewise.
10969         * modules/getdtablesize-tests (Files): Likewise.
10970         * modules/getgroups-tests (Files): Likewise.
10971         * modules/gethostname-tests (Files): Likewise.
10972         * modules/getline-tests (Files): Likewise.
10973         * modules/getopt-posix-tests (Files): Likewise.
10974         * modules/gettimeofday-tests (Files): Likewise.
10975         * modules/glob-tests (Files): Likewise.
10976         * modules/iconv-tests (Files): Likewise.
10977         * modules/inet_ntop-tests (Files): Likewise.
10978         * modules/inet_pton-tests (Files): Likewise.
10979         * modules/isblank-tests (Files): Likewise.
10980         * modules/lchown-tests (Files): Likewise.
10981         * modules/ldexpl-tests (Files): Likewise.
10982         * modules/link-tests (Files): Likewise.
10983         * modules/linkat-tests (Files): Likewise.
10984         * modules/lseek-tests (Files): Likewise.
10985         * modules/lstat-tests (Files): Likewise.
10986         * modules/mbrtowc-tests (Files): Likewise.
10987         * modules/mbsinit-tests (Files): Likewise.
10988         * modules/mbsnrtowcs-tests (Files): Likewise.
10989         * modules/mbsrtowcs-tests (Files): Likewise.
10990         * modules/memchr-tests (Files): Likewise.
10991         * modules/memcmp-tests (Files): Likewise.
10992         * modules/memmem-tests (Files): Likewise.
10993         * modules/memrchr-tests (Files): Likewise.
10994         * modules/mkdir-tests (Files): Likewise.
10995         * modules/mkfifo-tests (Files): Likewise.
10996         * modules/mkfifoat-tests (Files): Likewise.
10997         * modules/mknod-tests (Files): Likewise.
10998         * modules/nanosleep-tests (Files): Likewise.
10999         * modules/nl_langinfo-tests (Files): Likewise.
11000         * modules/obstack-printf-tests (Files): Likewise.
11001         * modules/open-tests (Files): Likewise.
11002         * modules/openat-tests (Files): Likewise.
11003         * modules/perror-tests (Files): Likewise.
11004         * modules/pipe2-tests (Files): Likewise.
11005         * modules/poll-tests (Files): Likewise.
11006         * modules/popen-tests (Files): Likewise.
11007         * modules/posix_spawn-tests (Files): Likewise.
11008         * modules/posix_spawnp-tests (Files): Likewise.
11009         * modules/pread-tests (Files): Likewise.
11010         * modules/printf-posix-tests (Files): Likewise.
11011         * modules/pty-tests (Files): Likewise.
11012         * modules/random_r-tests (Files): Likewise.
11013         * modules/rawmemchr-tests (Files): Likewise.
11014         * modules/readlink-tests (Files): Likewise.
11015         * modules/remove-tests (Files): Likewise.
11016         * modules/rename-tests (Files): Likewise.
11017         * modules/renameat-tests (Files): Likewise.
11018         * modules/rmdir-tests (Files): Likewise.
11019         * modules/round-tests (Files): Likewise.
11020         * modules/roundf-tests (Files): Likewise.
11021         * modules/roundl-tests (Files): Likewise.
11022         * modules/select-tests (Files): Likewise.
11023         * modules/setenv-tests (Files): Likewise.
11024         * modules/sigaction-tests (Files): Likewise.
11025         * modules/sleep-tests (Files): Likewise.
11026         * modules/snprintf-posix-tests (Files): Likewise.
11027         * modules/snprintf-tests (Files): Likewise.
11028         * modules/sprintf-posix-tests (Files): Likewise.
11029         * modules/stat-tests (Files): Likewise.
11030         * modules/strcasestr-tests (Files): Likewise.
11031         * modules/strchrnul-tests (Files): Likewise.
11032         * modules/strerror-tests (Files): Likewise.
11033         * modules/strsignal-tests (Files): Likewise.
11034         * modules/strstr-tests (Files): Likewise.
11035         * modules/strtod-tests (Files): Likewise.
11036         * modules/strverscmp-tests (Files): Likewise.
11037         * modules/symlink-tests (Files): Likewise.
11038         * modules/symlinkat-tests (Files): Likewise.
11039         * modules/times-tests (Files): Likewise.
11040         * modules/trunc-tests (Files): Likewise.
11041         * modules/truncf-tests (Files): Likewise.
11042         * modules/truncl-tests (Files): Likewise.
11043         * modules/tsearch-tests (Files): Likewise.
11044         * modules/uname-tests (Files): Likewise.
11045         * modules/unlink-tests (Files): Likewise.
11046         * modules/unsetenv-tests (Files): Likewise.
11047         * modules/usleep-tests (Files): Likewise.
11048         * modules/utimensat-tests (Files): Likewise.
11049         * modules/vasprintf-tests (Files): Likewise.
11050         * modules/vdprintf-posix-tests (Files): Likewise.
11051         * modules/vfprintf-posix-tests (Files): Likewise.
11052         * modules/vprintf-posix-tests (Files): Likewise.
11053         * modules/vsnprintf-posix-tests (Files): Likewise.
11054         * modules/vsnprintf-tests (Files): Likewise.
11055         * modules/vsprintf-posix-tests (Files): Likewise.
11056         * modules/wcrtomb-tests (Files): Likewise.
11057         * modules/wcsnrtombs-tests (Files): Likewise.
11058         * modules/wcsrtombs-tests (Files): Likewise.
11059         * modules/wcwidth-tests (Files): Likewise.
11060         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
11061         * tests/test-isinf.c (isinf): Likewise.
11062         * tests/test-isnan.c (isnan): Likewise.
11063         * tests/test-signbit.c (signbit): Likewise.
11064         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
11065         declaration, either as macro or with correct signature.
11066         (select): Ensure function under test is declared with correct
11067         signature in correct header.
11068         * tests/test-atexit.c (atexit): Likewise.
11069         * tests/test-btowc.c (btowc): Likewise.
11070         * tests/test-canonicalize-lgpl.c (realpath)
11071         (canonicalize_file_name): Likewise.
11072         * tests/test-ceilf1.c (ceilf): Likewise.
11073         * tests/test-ceill.c (ceill): Likewise.
11074         * tests/test-chown.c (chown): Likewise.
11075         * tests/test-dprintf-posix.c (dprintf): Likewise.
11076         * tests/test-dup2.c (dup2): Likewise.
11077         * tests/test-dup3.c (dup3): Likewise.
11078         * tests/test-duplocale.c (duplocale): Likewise.
11079         * tests/test-fchdir.c (fchdir): Likewise.
11080         * tests/test-fchownat.c (fchownat): Likewise.
11081         * tests/test-fcntl.c (fcntl): Likewise.
11082         * tests/test-fdopendir.c (fdopendir): Likewise.
11083         * tests/test-fflush.c (fflush): Likewise.
11084         * tests/test-flock.c (flock): Likewise.
11085         * tests/test-floorf1.c (floorf): Likewise.
11086         * tests/test-floorl.c (floorl): Likewise.
11087         * tests/test-fnmatch.c (fnmatch): Likewise.
11088         * tests/test-fopen.c (fopen): Likewise.
11089         * tests/test-fprintf-posix.c (fprintf): Likewise.
11090         * tests/test-freopen.c (freopen): Likewise.
11091         * tests/test-frexp.c (frexp): Likewise.
11092         * tests/test-frexpl.c (frexpl): Likewise.
11093         * tests/test-fseek.c (fseek): Likewise.
11094         * tests/test-fseeko.c (fseeko): Likewise.
11095         * tests/test-fstatat.c (fstatat): Likewise.
11096         * tests/test-fsync.c (fsync): Likewise.
11097         * tests/test-ftell.c (ftell): Likewise.
11098         * tests/test-ftello.c (ftello): Likewise.
11099         * tests/test-futimens.c (futimens): Likewise.
11100         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
11101         (gai_strerror): Likewise.
11102         * tests/test-getcwd.c (getcwd): Likewise.
11103         * tests/test-getdelim.c (getdelim): Likewise.
11104         * tests/test-getdtablesize.c (getdtablesize): Likewise.
11105         * tests/test-getgroups.c (getgroups): Likewise.
11106         * tests/test-gethostname.c (gethostname): Likewise.
11107         * tests/test-getline.c (getline): Likewise.
11108         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
11109         Likewise.
11110         * tests/test-gettimeofday.c (gettimeofday): Likewise.
11111         * tests/test-glob.c (glob, globfree): Likewise.
11112         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
11113         * tests/test-inet_ntop.c (inet_ntop): Likewise.
11114         * tests/test-inet_pton.c (inet_pton): Likewise.
11115         * tests/test-isblank.c (isblank): Likewise.
11116         * tests/test-lchown.c (lchown): Likewise.
11117         * tests/test-ldexpl.c (ldexpl): Likewise.
11118         * tests/test-link.c (link): Likewise.
11119         * tests/test-linkat.c (linkat): Likewise.
11120         * tests/test-lseek.c (lseek): Likewise.
11121         * tests/test-lstat.c (lstat): Likewise.
11122         * tests/test-mbrtowc.c (mbrtowc): Likewise.
11123         * tests/test-mbsinit.c (mbsinit): Likewise.
11124         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
11125         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
11126         * tests/test-memchr.c (memchr): Likewise.
11127         * tests/test-memcmp.c (memcmp): Likewise.
11128         * tests/test-memmem.c (memmem): Likewise.
11129         * tests/test-memrchr.c (memrchr): Likewise.
11130         * tests/test-mkdir.c (mkdir): Likewise.
11131         * tests/test-mkdirat.c (mkdirat): Likewise.
11132         * tests/test-mkfifo.c (mkfifo): Likewise.
11133         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
11134         * tests/test-mknod.c (mknod): Likewise.
11135         * tests/test-nanosleep.c (nanosleep): Likewise.
11136         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
11137         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
11138         Likewise.
11139         * tests/test-open.c (open): Likewise.
11140         * tests/test-openat.c (openat): Likewise.
11141         * tests/test-perror.c (perror): Likewise.
11142         * tests/test-pipe2.c (pipe2): Likewise.
11143         * tests/test-poll.c (poll): Likewise.
11144         * tests/test-popen.c (popen, pclose): Likewise.
11145         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
11146         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
11147         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
11148         (posix_spawn_file_actions_destroy)
11149         (posix_spawn_file_actions_addclose)
11150         (posix_spawn_file_actions_addopen)
11151         (posix_spawn_file_actions_adddup2): Likewise.
11152         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
11153         * tests/test-pread.c (pread): Likewise.
11154         * tests/test-printf-posix.c (printf): Likewise.
11155         * tests/test-pty.c (openpty, forkpty): Likewise.
11156         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
11157         (random_r): Likewise.
11158         * tests/test-rawmemchr.c (rawmemchr): Likewise.
11159         * tests/test-readlink.c (readlink): Likewise.
11160         * tests/test-remove.c (remove): Likewise.
11161         * tests/test-rename.c (rename): Likewise.
11162         * tests/test-renameat.c (renameat): Likewise.
11163         * tests/test-rmdir.c (rmdir): Likewise.
11164         * tests/test-round1.c (round): Likewise.
11165         * tests/test-roundf1.c (roundf): Likewise.
11166         * tests/test-roundl.c (roundl): Likewise.
11167         * tests/test-setenv.c (setenv): Likewise.
11168         * tests/test-sigaction.c (sigaction): Likewise.
11169         * tests/test-sleep.c (sleep): Likewise.
11170         * tests/test-snprintf.c (snprintf): Likewise.
11171         * tests/test-sprintf-posix.c (sprintf): Likewise.
11172         * tests/test-stat.c (stat): Likewise.
11173         * tests/test-stpncpy.c (stpncpy): Likewise.
11174         * tests/test-strcasestr.c (strcasestr): Likewise.
11175         * tests/test-strchrnul.c (strchrnul): Likewise.
11176         * tests/test-strerror.c (strerror): Likewise.
11177         * tests/test-strsignal.c (strsignal): Likewise.
11178         * tests/test-strstr.c (strstr): Likewise.
11179         * tests/test-strtod.c (strtod): Likewise.
11180         * tests/test-strverscmp.c (strverscmp): Likewise.
11181         * tests/test-symlink.c (symlink): Likewise.
11182         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
11183         * tests/test-times.c (times): Likewise.
11184         * tests/test-trunc1.c (trunc): Likewise.
11185         * tests/test-truncf1.c (truncf): Likewise.
11186         * tests/test-truncl.c (truncl): Likewise.
11187         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
11188         Likewise.
11189         * tests/test-uname.c (uname): Likewise.
11190         * tests/test-unlink.c (unlink): Likewise.
11191         * tests/test-unlinkat.c (unlinkat): Likewise.
11192         * tests/test-unsetenv.c (unsetenv): Likewise.
11193         * tests/test-usleep.c (usleep): Likewise.
11194         * tests/test-utimensat.c (utimensat): Likewise.
11195         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
11196         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
11197         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
11198         * tests/test-vprintf-posix.c (vprintf): Likewise.
11199         * tests/test-vsnprintf.c (vsnprintf): Likewise.
11200         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
11201         * tests/test-wcrtomb.c (wcrtomb): Likewise.
11202         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
11203         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
11204         * tests/test-wcwidth.c (wcwidth): Likewise.
11205
11206         build: pull in conditional headers during GNULIB_POSIXCHECK
11207         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
11208         definitions from any conditionally-included headers.
11209         * lib/stdlib.in.h (includes): Likewise.
11210         * lib/unistd.in.h (includes): Likewise.
11211
11212 2009-12-24  Bruno Haible  <bruno@clisp.org>
11213
11214         * tests/test-argv-iter.c: Include header file being tested immediately
11215         after config.h.
11216         * tests/test-base64.c: Likewise.
11217         * tests/test-flock.c: Likewise.
11218         * tests/test-fsync.c: Likewise.
11219         * tests/test-getdate.c: Likewise.
11220         * tests/test-getndelim2.c: Likewise.
11221         * tests/test-isfinite.c: Likewise.
11222         * tests/test-isinf.c: Likewise.
11223         * tests/test-strerror.c: Likewise.
11224         * tests/test-strsignal.c: Likewise.
11225
11226 2009-12-23  Eric Blake  <ebb9@byu.net>
11227
11228         unistd: work around cygwin bug
11229         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
11230         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
11231         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11232
11233 2009-12-23  Bruno Haible  <bruno@clisp.org>
11234
11235         localename: More tests.
11236         * tests/test-localename.c (SIZEOF): New macro.
11237         (categories): New variable.
11238         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
11239         test_locale_name_default): Add test w.r.t. thread locale.
11240         (test_locale_name_thread): New function.
11241         (main): Invoke it.
11242
11243         localename: Make aware of thread locale.
11244         * lib/localename.h (gl_locale_name_thread): New declaration.
11245         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
11246         behaviour with respect to thread locale.
11247         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
11248         <langinfo.h>, glthread/lock.h.
11249         (SIZE_BITS): New macro.
11250         (string_hash): New function.
11251         (struct hash_node): New type.
11252         (HASH_TABLE_SIZE): New macro.
11253         (struniq_hash_table, struniq_lock): New variables.
11254         (struniq): New function.
11255         (gl_locale_name_thread): New function.
11256         (gl_locale_name): Invoke it.
11257         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
11258         * modules/localename (Depends-on): Add lock.
11259         Reported by Mike Gran <spk121@yahoo.com>.
11260
11261 2009-12-23  Eric Blake  <ebb9@byu.net>
11262
11263         va-args: new module
11264         * modules/va-args: New file.
11265         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
11266         * MODULES.html.sh (Core language properties): Mention it.
11267
11268         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
11269         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
11270         named alias for __attribute__((__unused__)).
11271         * lib/chown.c: Update client.
11272         * lib/fchmodat.c: Likewise.
11273         * lib/fts.c: Likewise.
11274         * lib/getdate.y: Likewise.
11275         * lib/getgroups.c: Likewise.
11276         * lib/getopt.c: Likewise.
11277         * lib/getugroups.c: Likewise.
11278         * lib/mkdir.c: Likewise.
11279         * lib/mkfifo.c: Likewise.
11280         * lib/mkfifoat.c: Likewise.
11281         * lib/mknod.c: Likewise.
11282         * lib/mknodat.c: Likewise.
11283         * lib/readlink.c: Likewise.
11284         * lib/se-context.in.h: Likewise.
11285         * lib/se-selinux.in.h: Likewise.
11286         * lib/sockets.c: Likewise.
11287         * lib/symlink.c: Likewise.
11288         * lib/symlinkat.c: Likewise.
11289         * lib/unicodeio.c: Likewise.
11290         * lib/unistr.h: Likewise.
11291         * tests/test-areadlink.c: Likewise.
11292         * tests/test-areadlinkat.c: Likewise.
11293         * tests/test-filenamecat.c: Likewise.
11294         * tests/test-fseeko.c: Likewise.
11295         * tests/test-ftello.c: Likewise.
11296         * tests/test-getdate.c: Likewise.
11297         * tests/test-getgroups.c: Likewise.
11298         * tests/test-gethostname.c: Likewise.
11299         * tests/test-quotearg.c: Likewise.
11300         * tests/test-version-etc.c: Likewise.
11301         * tests/test-xalloc-die.c: Likewise.
11302         * tests/test-xfprintf-posix.c: Likewise.
11303         * tests/test-xprintf-posix.c: Likewise.
11304         * tests/test-xvasprintf.c: Likewise.
11305
11306         tests: avoid compiler warnings
11307         * tests/test-fcntl.c (main): Delete unused parameters.
11308         * tests/test-freopen-safer.c (main): Likewise.
11309         * tests/test-xalloc-die.c (main): Mark unused parameters.
11310         * tests/test-fseeko.c (main): Likewise.
11311         * tests/test-ftello.c (main): Likewise.
11312         * tests/test-nanosleep.c (main): Avoid declaration warning.
11313         * tests/test-sleep.c (main): Likewise.
11314         * tests/test-unsetenv.c (main): Silence warning about string
11315         literal.
11316         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11317
11318 2009-12-23  Bruno Haible  <bruno@clisp.org>
11319
11320         * tests/test-localename.c (test_locale_name): New function, extracted
11321         from main. Also test mixed situations.
11322         (test_locale_name_posix, test_locale_name_environ,
11323         test_locale_name_default): New functions.
11324         (main): Invoke them all.
11325         * modules/localename-tests (configure.ac): Test for newlocale.
11326
11327 2009-12-23  Bruno Haible  <bruno@clisp.org>
11328
11329         unistd: Ensure getcwd gets declared before being overridden.
11330         * lib/unistd.in.h: Conditionally include <io.h>.
11331
11332 2009-12-22  Bruno Haible  <bruno@clisp.org>
11333
11334         wchar: Diagnose broken combination of glibc and gcc versions and flags.
11335         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
11336         (gl_WCHAR_H): Invoke it.
11337         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
11338         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
11339         Reported by Karl Berry <karl@freefriends.org>.
11340
11341 2009-12-22  Eric Blake  <ebb9@byu.net>
11342
11343         math, unistd: avoid redundant includes
11344         * lib/math.in.h (isnan): No need to re-include <math.h>.
11345         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
11346
11347         getsubopt: work around cygwin bug
11348         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
11349         avoid conflicting with system getsubopt.
11350         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
11351         bug.
11352
11353         getopt: synchronize from glibc
11354         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
11355         parameter order.  Adjust all callers.
11356         (_getopt_internal_r, main): Adjust quoting in error messages.
11357         Drop considerations for outdated POSIX 1003.2 error message.
11358         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
11359         callers.
11360         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
11361
11362         test-getopt: test stderr behavior
11363         * modules/getopt-posix-tests (Depends-on): Add dup2.
11364         * tests/test-getopt.c (ASSERT): Avoid stderr.
11365         (main): Move stderr to a temporary file.
11366         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
11367         Instead, add parameter to inform caller if output occurred.
11368         (test_getopt): Adjust all existing tests to expect silence, and
11369         add new tests of leading ":".
11370         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11371         glibc shortcomings with leading "-:" or "+:" in optstring.
11372         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11373         Likewise.
11374         * doc/posix-functions/getopt.texi (getopt): Likewise.
11375
11376         test-getopt: enhance test
11377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
11378         supports optind=0.
11379         * tests/test-getopt.c (OPTIND_MIN): Move...
11380         * tests/test-getopt.h (OPTIND_MIN): ...here.
11381         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
11382         Require that optind=0 works, since modern BSD supports it in
11383         addition to optreset, and since coreutils expects it.
11384         (test_getopt_long_only): New test.
11385         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11386         glibc shortcomings with 'W;', and enforcement of optind=0.
11387         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11388         Likewise.
11389
11390 2009-12-21  Bruno Haible  <bruno@clisp.org>
11391
11392         localename: Improvements for MacOS X and Cygwin.
11393         * lib/localename.h (gl_locale_name_environ): New declaration.
11394         * lib/localename.c (gl_locale_name_environ): New function, extracted from
11395         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
11396         (gl_locale_name_posix): Invoke it.
11397         (gl_locale_name_default): Add comments. Use Windows native API also on
11398         Cygwin.
11399
11400 2009-12-21  Bruno Haible  <bruno@clisp.org>
11401
11402         Update list of Win32 locale ids.
11403         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
11404         (LANG_SAMI): Renamed from LANG_SAAMI.
11405         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
11406         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
11407         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
11408         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
11409         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
11410         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
11411         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
11412         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
11413         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
11414         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
11415         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
11416         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
11417         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
11418         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
11419         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
11420         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
11421         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
11422         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
11423         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
11424         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
11425         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
11426         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
11427         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
11428         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
11429         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
11430         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
11431         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
11432         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
11433         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
11434         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
11435         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
11436         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
11437         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
11438         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
11439         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
11440         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
11441         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
11442         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
11443         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
11444         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
11445         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
11446         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
11447         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
11448         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
11449         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
11450         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
11451         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
11452         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
11453         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
11454         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
11455         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
11456         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
11457         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
11458         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
11459         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
11460         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
11461         Add more languages and countries for Sami, Sorbian. Add more countries
11462         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
11463         for Pashto. Change country for Syriac, Tswana.
11464
11465 2009-12-21  Eric Blake  <ebb9@byu.net>
11466
11467         test-utimens: avoid spurious failure
11468         * tests/test-chown.h (nap): Factor...
11469         * tests/nap.h: ...into new file.
11470         * tests/test-lchown.h (nap): Avoid duplication.
11471         * tests/test-utimens-common.h (nap): Use shared implementation,
11472         necessary on file systems with 1-second resolution.
11473         * modules/chown-tests (Files): Include new file.
11474         * modules/fdutimensat-tests (Files): Likewise.
11475         * modules/futimens-tests (Files): Likewise.
11476         * modules/lchown-tests (Files): Likewise.
11477         * modules/openat-tests (Files): Likewise.
11478         * modules/utimens-tests (Files): Likewise.
11479         * modules/utimensat-tests (Files): Likewise.
11480
11481 2009-12-19  Eric Blake  <ebb9@byu.net>
11482
11483         futimens, utimensat: work around Linux bug
11484         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
11485         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11486         * lib/utimensat.c (rpl_utimensat): Work around it.
11487         * lib/futimens.c (rpl_futimens): Adjust comment.
11488
11489         utimens: work around Linux ctime bug
11490         * lib/utimens.c (detect_ctime_bug): New helper function.
11491         (update_timespec): Differentiate between workaround needed for
11492         this bug vs. what is needed for systems that lack utimensat.
11493         (fdutimens, lutimens): Work around bug.
11494
11495         utimens: check for ctime update
11496         * tests/test-utimens-common.h (check_ctime): Define.
11497         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
11498         * tests/test-futimens.h (test_futimens): Likewise.
11499         * tests/test-lutimens.h (test_lutimens): Likewise.
11500         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11501         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11502
11503 2009-12-19  Bruno Haible  <bruno@clisp.org>
11504
11505         dprintf-posix: Check against memory leak fixed on 2009-12-15.
11506         * tests/test-dprintf-posix2.sh: New file.
11507         * tests/test-dprintf-posix2.c: New file.
11508         * modules/dprintf-posix-tests (Files): Add them.
11509         (configure.ac): Check for getrlimit and setrlimit.
11510         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11511
11512 2009-12-19  Bruno Haible  <bruno@clisp.org>
11513
11514         fprintf-posix: Check against memory leak fixed on 2009-12-15.
11515         * tests/test-fprintf-posix3.sh: New file.
11516         * tests/test-fprintf-posix3.c: New file.
11517         * modules/fprintf-posix-tests (Files): Add them.
11518         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11519
11520 2009-12-19  Eric Blake  <ebb9@byu.net>
11521
11522         dirfd: fix prototype
11523         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
11524         * lib/dirfd.c (dirfd): Likewise.
11525
11526         canonicalize: reduce memory usage
11527         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
11528         allocation to size.
11529         Reported by Solar Designer <solar@openwall.com>.
11530
11531 2009-12-19  Bruno Haible  <bruno@clisp.org>
11532
11533         New module attribute 'Applicability'.
11534         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
11535         * gnulib-tool: New option --extract-applicability.
11536         (func_usage): Document it.
11537         (sed_extract_prog): Recognize it.
11538         (func_get_applicability): New function.
11539         (func_import): Generalize handling of 'link-warning' module.
11540         * modules/link-warning (Applicability): New section.
11541         * modules/arg-nonnull (Applicability): New section.
11542         Repoted by Simon Josefsson <simon@josefsson.org>.
11543
11544 2009-12-19  Bruno Haible  <bruno@clisp.org>
11545
11546         fflush: tweak
11547         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
11548         * lib/fseeko.c (rpl_fseeko): Likewise.
11549
11550 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
11551
11552         * lib/gl_list.h: Fix typo in comment.
11553
11554 2009-12-16  Eric Blake  <ebb9@byu.net>
11555
11556         fcntl: use to simplify other modules
11557         * modules/cloexec (Depends-on): Add fcntl.
11558         * modules/fchdir (Depends-on): Likewise.
11559         * modules/fd-safer-flag (Depends-on): Likewise.
11560         * modules/unistd-safer (Depends-on): Likewise.
11561         * modules/dup3 (configure.ac): Set module indicator.
11562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
11563         missing.
11564         * lib/fchdir.c (_gl_register_dup): Fix comment.
11565         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
11566         * lib/dup-safer.c (dup_safer): Likewise.
11567         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
11568         * lib/dup3.c (dup3): Likewise.
11569         * tests/test-fchdir.c (main): Enhance test.
11570         Fixes a dup_cloexec bug reported by Ondřej Vašík.
11571
11572         fcntl: port portions of fcntl to mingw
11573         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
11574         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
11575         replacement for mingw.
11576         * modules/fcntl (Description): Update.
11577         (Depends-on): Add dup2.
11578         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
11579         * modules/fcntl-h (Makefile.am): Substitute it.
11580         * lib/fcntl.in.h (fcntl): Update declaration.
11581         (F_DUPFD, F_GETFD): New macros, when needed.
11582         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11583         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
11584         * tests/test-fcntl.c (check_flags, main): Enhance test for items
11585         we now guarantee.
11586
11587         fcntl: work around cygwin bug in F_DUPFD
11588         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
11589         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11590         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11591         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11592         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11593
11594         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11595         * modules/fcntl (Files): List new files.
11596         (configure.ac): Run a test.
11597         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11598         * lib/fcntl.c (rpl_fcntl): Likewise.
11599         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11600         (gl_FCNTL_H): Always replace fcntl.h.
11601         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11602         * lib/fcntl.in.h (fcntl): Declare replacement.
11603         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11604         needed, plus a witness.
11605         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11606         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11607         * tests/test-fcntl.c: New file.
11608         * modules/fcntl-tests: Likewise.
11609
11610         binary-io: avoid potential compilation warning
11611         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11612         directives.
11613
11614         fflush: avoid compilation error on NetBSD
11615         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11616         between off_t and fpos_t, since the latter is sometimes a struct.
11617         * lib/fseeko.c (rpl_fseeko): Likewise.
11618         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11619
11620 2009-12-15  Eric Blake  <ebb9@byu.net>
11621
11622         fcntl-h, stdio, sys_ioctl: fix declarations
11623         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11624         function must not take arguments.
11625         * lib/sys_ioctl.in.h (ioctl): Likewise.
11626         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11627         (open): Add a link warning.
11628
11629 2009-12-15  Jim Meyering  <meyering@redhat.com>
11630
11631         areadlink, areadlink-with-size: relax license to LGPLv2+
11632         * modules/areadlink (License): Relax to LGPLv2+.
11633         * modules/areadlink-with-size (License): Likewise.
11634
11635 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11636             Bruno Haible  <bruno@clisp.org>
11637
11638         *printf: Fix memory leak.
11639         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11640         * lib/vfprintf.c (vfprintf): Likewise.
11641         * lib/dprintf.c (dprintf): Likewise.
11642         * lib/vdprintf.c (vdprintf): Likewise.
11643
11644 2009-12-14  Eric Blake  <ebb9@byu.net>
11645
11646         accept4: adjust module dependencies
11647         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11648
11649         utimens: one more try at avoiding compiler warning
11650         * lib/utimens.c (lutimens): Lower scope of result.
11651
11652 2009-12-13  Bruno Haible  <bruno@clisp.org>
11653
11654         Move the malloc checking from module 'list' to new module 'xlist'.
11655         * modules/xlist: New file.
11656         * lib/gl_xlist.h: New file.
11657         * lib/gl_xlist.c: New file.
11658         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11659         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11660         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11661         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11662         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11663         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11664         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11665         gl_sortedlist_nx_add): New declarations.
11666         (struct gl_list_implementation): Rename and change methods accordingly.
11667         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11668         (gl_list_nx_create): Renamed from gl_list_create.
11669         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11670         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11671         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11672         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11673         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11674         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11675         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11676         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11677         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11678         gl_list_create_empty.
11679         (gl_list_nx_create): Renamed from gl_list_create.
11680         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11681         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11682         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11683         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11684         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11685         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11686         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11687         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11688         * lib/gl_array_list.c: Don't include xalloc.h.
11689         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11690         NULL upon out-of-memory.
11691         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11692         out-of-memory.
11693         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11694         Change return type to 'int'.
11695         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11696         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11697         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11698         upon out-of-memory.
11699         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11700         upon out-of-memory.
11701         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11702         upon out-of-memory.
11703         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11704         upon out-of-memory.
11705         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11706         out-of-memory.
11707         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11708         Update.
11709         (gl_array_list_implementation): Update.
11710         * lib/gl_carray_list.c: Don't include xalloc.h.
11711         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11712         Return NULL upon out-of-memory.
11713         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11714         out-of-memory.
11715         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11716         Change return type to 'int'.
11717         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11718         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11719         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11720         upon out-of-memory.
11721         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11722         upon out-of-memory.
11723         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11724         out-of-memory.
11725         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11726         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11727         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11728         Update.
11729         (gl_carray_list_implementation): Update.
11730         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11731         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11732         gl_linked_create_empty. Return NULL upon out-of-memory.
11733         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11734         out-of-memory.
11735         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11736         Change return type to 'int'. Return -1 upon out-of-memory.
11737         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11738         out-of-memory.
11739         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11740         upon out-of-memory.
11741         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11742         upon out-of-memory.
11743         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11744         NULL upon out-of-memory.
11745         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11746         upon out-of-memory.
11747         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11748         out-of-memory.
11749         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11750         Update.
11751         * lib/gl_linked_list.c: Don't include xalloc.h.
11752         (gl_linked_list_implementation): Update.
11753         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11754         (add_to_bucket): Change return type to 'int'.
11755         (gl_linkedhash_list_implementation): Update.
11756         * lib/gl_anytree_list1.h (free_subtree): New function.
11757         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11758         gl_tree_create_empty. Return NULL upon out-of-memory.
11759         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11760         Change return type to 'int'. Return -1 upon out-of-memory.
11761         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11762         out-of-memory.
11763         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11764         (gl_tree_remove_node): New function, moved here from
11765         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11766         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11767         Update.
11768         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11769         malloc, not xmalloc. Return NULL upon out-of-memory.
11770         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11771         out-of-memory.
11772         (gl_tree_remove_node_from_tree): New function, extracted from
11773         gl_tree_remove_node.
11774         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11775         upon out-of-memory.
11776         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11777         out-of-memory.
11778         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11779         upon out-of-memory.
11780         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11781         upon out-of-memory.
11782         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11783         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11784         not xmalloc. Return NULL upon out-of-memory.
11785         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11786         out-of-memory.
11787         (gl_tree_remove_node_from_tree): New function, extracted from
11788         gl_tree_remove_node.
11789         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11790         upon out-of-memory.
11791         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11792         out-of-memory.
11793         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11794         upon out-of-memory.
11795         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11796         upon out-of-memory.
11797         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11798         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11799         gl_anytree_list1.h before gl_anyavltree_list2.h.
11800         (gl_avltree_list_implementation): Update.
11801         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11802         gl_anytree_list1.h before gl_anyavltree_list2.h.
11803         (gl_rbtree_list_implementation): Update.
11804         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11805         Change return type to 'int'. Return -1 upon out-of-memory. Use
11806         __builtin_expect.
11807         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11808         (gl_avltreehash_list_implementation): Update.
11809         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11810         (gl_rbtreehash_list_implementation): Update.
11811         * modules/array-list (Depends-on): Remove xalloc.
11812         * modules/carray-list (Depends-on): Likewise.
11813         * modules/linked-list (Depends-on): Likewise.
11814         * modules/linkedhash-list (Depends-on): Likewise.
11815         * modules/avltree-list (Depends-on): Likewise.
11816         * modules/rbtree-list (Depends-on): Likewise.
11817         * modules/avltreehash-list (Depends-on): Likewise.
11818         * modules/rbtreehash-list (Depends-on): Likewise.
11819
11820         * modules/xsublist: New file.
11821         * lib/gl_xsublist.h: New file.
11822         * lib/gl_xsublist.c: New file.
11823         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11824         (gl_sublist_nx_create): New declaration.
11825         * lib/gl_sublist.c: Don't include xalloc.h.
11826         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11827         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11828         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11829         Change return type to 'int'. Return -1 upon out-of-memory.
11830         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11831         upon out-of-memory.
11832         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11833         NULL upon out-of-memory.
11834         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
11835         upon out-of-memory.
11836         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
11837         NULL upon out-of-memory.
11838         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
11839         NULL upon out-of-memory.
11840         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
11841         upon out-of-memory.
11842         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
11843         (gl_sublist_list_implementation): Update.
11844         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
11845         upon out-of-memory.
11846         * modules/sublist (Depends-on): Remove xalloc.
11847
11848         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
11849         * tests/test-carray_list.c: Likewise.
11850         * tests/test-linked_list.c: Likewise.
11851         * tests/test-linkedhash_list.c: Likewise.
11852         * tests/test-avltree_list.c: Likewise.
11853         * tests/test-rbtree_list.c: Likewise.
11854         * tests/test-avltreehash_list.c: Likewise.
11855         * tests/test-rbtreehash_list.c: Likewise.
11856         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
11857         * modules/carray-list-tests (Makefile.am): Likewise.
11858         * modules/linked-list-tests (Makefile.am): Likewise.
11859         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11860         * modules/avltree-list-tests (Makefile.am): Likewise.
11861         * modules/rbtree-list-tests (Makefile.am): Likewise.
11862         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11863         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11864
11865         * NEWS: Mention the changes.
11866
11867         * lib/clean-temp.c: Include gl_xlist.h.
11868         * modules/clean-temp (Depends-on): Add xlist.
11869
11870         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
11871         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
11872
11873         * tests/test-array_oset.c: Include gl_xlist.h.
11874         * modules/array-oset-tests (Depends-on): Add xlist.
11875
11876         Reported by José E. Marchesi <jemarch@gnu.org>.
11877
11878 2009-12-13  Bruno Haible  <bruno@clisp.org>
11879
11880         Move the malloc checking from module 'oset' to new module 'xoset'.
11881         * modules/xoset: New file.
11882         * lib/gl_xoset.h: New file.
11883         * lib/gl_xoset.c: New file.
11884         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
11885         declarations.
11886         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
11887         (struct gl_oset_implementation): Rename and change methods accordingly.
11888         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
11889         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11890         'int'. Mark as __warn_unused_result__.
11891         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
11892         gl_oset_create_empty.
11893         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11894         'int'.
11895         * lib/gl_array_oset.c: Don't include xalloc.h.
11896         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
11897         malloc, not xmalloc.
11898         (grow): Change return type to 'int'. Don't call xalloc_die.
11899         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
11900         to 'int'.
11901         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
11902         'int'.
11903         (gl_array_oset_implementation): Update.
11904         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
11905         gl_tree_create_empty.
11906         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
11907         'int'.
11908         * lib/gl_avltree_oset.c: Don't include xalloc.h.
11909         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11910         xmalloc.
11911         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11912         not xmalloc.
11913         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11914         xmalloc.
11915         (gl_avltree_oset_implementation): Update.
11916         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
11917         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11918         xmalloc.
11919         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11920         not xmalloc.
11921         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11922         xmalloc.
11923         (gl_rbtree_oset_implementation): Update.
11924         * modules/array-oset (Depends-on): Remove xalloc.
11925         * modules/avltree-oset (Depends-on): Likewise.
11926         * modules/rbtree-oset (Depends-on): Likewise.
11927         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
11928         * tests/test-avltree_oset.c: Likewise.
11929         * tests/test-rbtree_oset.c: Likewise.
11930         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
11931         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
11932         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11933         * NEWS: Mention the change.
11934
11935 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
11936
11937         maint.mk: allow a project to override release-prep commands
11938         * top/maint.mk (alpha, beta, stable): Move release-preparatory
11939         commands into a new rule.
11940         (release-prep): New rule.
11941         (release-prep-hook): New overridable variable.
11942
11943 2009-12-13  Bruno Haible  <bruno@clisp.org>
11944
11945         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
11946
11947 2009-12-13  Jim Meyering  <meyering@redhat.com>
11948
11949         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
11950         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
11951
11952 2009-12-12  Bruno Haible  <bruno@clisp.org>
11953
11954         duplocale: Tweak.
11955         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
11956
11957 2009-12-12  Karl Berry  <karl@gnu.org>
11958
11959         * config/srclist.txt (strtoll.c): tab changes, no more sync.
11960
11961 2009-12-12  Bruno Haible  <bruno@clisp.org>
11962
11963         * m4/po.m4: Undo incorrect untabification.
11964
11965 2009-12-12  Bruno Haible  <bruno@clisp.org>
11966
11967         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
11968         * modules/c-strtod (Depends-on): Add locale.
11969         * modules/c-strtold (Depends-on): Likewise.
11970
11971 2009-12-12  Bruno Haible  <bruno@clisp.org>
11972
11973         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
11974
11975 2009-12-11  Eric Blake  <ebb9@byu.net>
11976
11977         setenv: relax requirement in light of POSIX ruling
11978         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
11979         not NULL.
11980         * tests/test-setenv.c (main): Relax test.
11981         * tests/test-unsetenv.c (main): Likewise.
11982         * doc/posix-functions/setenv.texi (setenv): Document this.
11983         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11984
11985 2009-12-11  Bruno Haible  <bruno@clisp.org>
11986
11987         New module 'fd-safer-flag'.
11988         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
11989         * lib/dup-safer.c (dup_safer_flag): Remove function.
11990         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
11991         * lib/fd-safer.c (fd_safer_flag): Remove function.
11992         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
11993         * modules/cloexec (configure.ac): Drop indicator macro.
11994         * modules/fd-safer-flag: New file.
11995         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
11996         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
11997         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
11998
11999 2009-12-11  Bruno Haible  <bruno@clisp.org>
12000
12001         Tests for module 'nl_langinfo'.
12002         * modules/nl_langinfo-tests: New file.
12003         * tests/test-nl_langinfo.sh: New file.
12004         * tests/test-nl_langinfo.c: New file.
12005
12006         New module 'nl_langinfo'.
12007         * lib/nl_langinfo.c: New file.
12008         * m4/nl_langinfo.m4: New file.
12009         * modules/nl_langinfo: New file.
12010         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
12011
12012 2009-12-11  Bruno Haible  <bruno@clisp.org>
12013
12014         Tests for module 'langinfo'.
12015         * modules/langinfo-tests: New file.
12016         * tests/test-langinfo.c: New file.
12017
12018         New module 'langinfo'.
12019         * lib/langinfo.in.h: New file.
12020         * m4/langinfo_h.m4: New file.
12021         * modules/langinfo: New file.
12022         * doc/posix-headers/langinfo.texi: Mention the new module.
12023
12024 2009-12-11  Bruno Haible  <bruno@clisp.org>
12025
12026         * lib/config.charset: Untabify.
12027
12028 2009-12-11  Bruno Haible  <bruno@clisp.org>
12029
12030         * modules/unistd-safer (configure.ac): Drop indicator macro.
12031
12032 2009-12-11  Bruno Haible  <bruno@clisp.org>
12033
12034         Move pipe2-safer code to its own file.
12035         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
12036         * lib/pipe-safer.c (pipe2_safer): Remove function.
12037         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
12038         (Makefile.am): Add it to lib_SOURCES.
12039
12040 2009-12-10  Bruno Haible  <bruno@clisp.org>
12041
12042         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
12043
12044 2009-12-10  Bruno Haible  <bruno@clisp.org>
12045
12046         Declare which arguments expect non-NULL values, for GCC and clang.
12047         * build-aux/arg-nonnull.h: New file.
12048         * modules/arg-nonnull: New file.
12049         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
12050         (inet_ntop, inet_pton): Use it.
12051         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
12052         (closedir, dirfd, opendir, scandir, alphasort): Use it.
12053         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
12054         (open, openat): Use it.
12055         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
12056         (fnmatch): Use it.
12057         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
12058         (getopt, getopt_long, getopt_long_only): Use it.
12059         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
12060         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
12061         Use it.
12062         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
12063         (iconv_open): Use it.
12064         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
12065         (strtoimax, strtoumax): Use it.
12066         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
12067         (duplocale): Use it.
12068         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
12069         (frexp, frexpl): Use it.
12070         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
12071         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
12072         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
12073         (tsearch, tfind, tdelete, twalk): Use it.
12074         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
12075         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12076         sigpending): Use it.
12077         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
12078         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12079         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12080         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12081         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12082         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12083         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12084         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12085         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12086         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12087         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12088         Use it.
12089         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
12090         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
12091         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
12092         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
12093         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
12094         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
12095         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
12096         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
12097         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
12098         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
12099         strtoull, unsetenv): Use it.
12100         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
12101         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12102         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12103         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
12104         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
12105         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
12106         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
12107         (strcasecmp, strncasecmp): Use it.
12108         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
12109         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
12110         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
12111         rpl_setsockopt): Use it.
12112         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
12113         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
12114         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
12115         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
12116         (gettimeofday): Use it.
12117         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
12118         (times): Use it.
12119         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
12120         (uname): Use it.
12121         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
12122         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
12123         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
12124         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
12125         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
12126         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
12127         unlinkat, write): Use it.
12128         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
12129         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
12130         * lib/argv-iter.h: Include arg-nonnull.h.
12131         (_ATTRIBUTE_NONNULL_): Remove macro.
12132         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
12133         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
12134         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
12135         optimization.
12136         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
12137         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
12138         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
12139         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
12140         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
12141         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
12142         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
12143         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
12144         * modules/arpa_inet (Depends-on): Add arg-nonnull.
12145         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
12146         * modules/dirent (Depends-on): Add arg-nonnull.
12147         (Makefile.am): Insert arg-nonnull.h into dirent.h.
12148         * modules/fcntl-h (Depends-on): Add arg-nonnull.
12149         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
12150         * modules/fnmatch (Depends-on): Add arg-nonnull.
12151         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
12152         * modules/getopt-posix (Depends-on): Add arg-nonnull.
12153         (Makefile.am): Insert arg-nonnull.h into getopt.h.
12154         * modules/glob (Depends-on): Add arg-nonnull.
12155         (Makefile.am): Insert arg-nonnull.h into glob.h.
12156         * modules/iconv_open (Depends-on): Add arg-nonnull.
12157         (Makefile.am): Insert arg-nonnull.h into iconv.h.
12158         * modules/inttypes (Depends-on): Add arg-nonnull.
12159         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
12160         * modules/locale (Depends-on): Add arg-nonnull.
12161         (Makefile.am): Insert arg-nonnull.h into locale.h.
12162         * modules/math (Depends-on): Add arg-nonnull.
12163         (Makefile.am): Insert arg-nonnull.h into math.h.
12164         * modules/netdb (Depends-on): Add arg-nonnull.
12165         (Makefile.am): Insert arg-nonnull.h into netdb.h.
12166         * modules/search (Depends-on): Add arg-nonnull.
12167         (Makefile.am): Insert arg-nonnull.h into search.h.
12168         * modules/signal (Depends-on): Add arg-nonnull.
12169         (Makefile.am): Insert arg-nonnull.h into signal.h.
12170         * modules/spawn (Depends-on): Add arg-nonnull.
12171         (Makefile.am): Insert arg-nonnull.h into spawn.h.
12172         * modules/stdio (Depends-on): Add arg-nonnull.
12173         (Makefile.am): Insert arg-nonnull.h into stdio.h.
12174         * modules/stdlib (Depends-on): Add arg-nonnull.
12175         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
12176         * modules/string (Depends-on): Add arg-nonnull.
12177         (Makefile.am): Insert arg-nonnull.h into string.h.
12178         * modules/strings (Depends-on): Add arg-nonnull.
12179         (Makefile.am): Insert arg-nonnull.h into strings.h.
12180         * modules/sys_socket (Depends-on): Add arg-nonnull.
12181         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
12182         * modules/sys_stat (Depends-on): Add arg-nonnull.
12183         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
12184         * modules/sys_time (Depends-on): Add arg-nonnull.
12185         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
12186         * modules/sys_times (Depends-on): Add arg-nonnull.
12187         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
12188         * modules/sys_utsname (Depends-on): Add arg-nonnull.
12189         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
12190         * modules/time (Depends-on): Add arg-nonnull.
12191         (Makefile.am): Insert arg-nonnull.h into time.h.
12192         * modules/unistd (Depends-on): Add arg-nonnull.
12193         (Makefile.am): Insert arg-nonnull.h into unistd.h.
12194         * modules/wchar (Depends-on): Add arg-nonnull.
12195         (Makefile.am): Insert arg-nonnull.h into wchar.h.
12196         * modules/argv-iter (Depends-on): Add arg-nonnull.
12197         * tests/test-canonicalize.c (null_ptr): New function.
12198         (main): Use it.
12199         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
12200         (main): Use it.
12201         * tests/test-memmem.c (null_ptr): New function.
12202         (main): Use it.
12203         Reported by Jim Meyering.
12204
12205 2009-12-10  Bruno Haible  <bruno@clisp.org>
12206
12207         Use spaces for indentation, not tabs.
12208         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12209         * m4/*.m4: Untabify.
12210         * build-aux/*.h: Untabify.
12211         * tests/**/*.[hc]: Untabify.
12212         * README: New section "Indent with spaces, not TABs", based on
12213         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
12214         * NEWS: Mention the change.
12215
12216 2009-12-10  Bruno Haible  <bruno@clisp.org>
12217
12218         pty test: Fix link error.
12219         * modules/pty-tests (Makefile.am): Add the default LDADD value to
12220         test_pty_LDADD.
12221
12222 2009-12-07  Simon Josefsson  <simon@josefsson.org>
12223
12224         * modules/pty: New file.
12225         * modules/pty-tests: New file.
12226         * m4/pty.m4: New file.
12227         * tests/test-pty.c: New file.
12228         * doc/glibc-headers/pty.texi: Modified.
12229         * doc/glibc-functions/forkpty.texi: Modified.
12230         * doc/glibc-functions/openpty.texi: Modified.
12231
12232 2009-12-10  Bruno Haible  <bruno@clisp.org>
12233
12234         Avoid syntax error in C++ mode.
12235         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
12236
12237 2009-12-10  Bruno Haible  <bruno@clisp.org>
12238
12239         Use sed with option -e.
12240         * gnulib-tool (func_version, func_emit_copyright_notice,
12241         func_emit_initmacro_end, func_import, func_create_testdir): Pass
12242         option -e to sed.
12243         * modules/link-warning (Makefile.am): Likewise.
12244
12245 2009-12-10  Jim Meyering  <meyering@redhat.com>
12246
12247         mgetgroups: do not write bytes beyond end of malloc'd buffer
12248         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
12249         username, we call getgroups with a one-element-shorter buffer,
12250         but still told it the length was original, max_n_groups.
12251
12252 2009-12-09  Eric Blake  <ebb9@byu.net>
12253
12254         cloexec: relax license
12255         * modules/cloexec (Maintainer): Add myself.
12256         (License): Use LGPL, not GPL.
12257
12258         link-warning: optimize generation
12259         * modules/link-warning (Makefile.am): Reduce process usage.
12260
12261 2009-12-09  Bruno Haible  <bruno@clisp.org>
12262
12263         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
12264         workaround was added on 2009-11-17.
12265
12266 2009-12-09  Jim Meyering  <meyering@redhat.com>
12267             Bruno Haible  <bruno@clisp.org>
12268
12269         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
12270         * modules/link-warning (Makefile.am): Make the comment-removing sed
12271         command more robust in the face of bootstrap-prepended comment lines.
12272
12273 2009-12-09  Bruno Haible  <bruno@clisp.org>
12274
12275         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
12276         most one group.
12277
12278 2009-12-09  Simon Josefsson <simon@josefsson.org>
12279             Bruno Haible  <bruno@clisp.org>
12280
12281         * build-aux/link-warning.h: Add copyright notice.
12282         * modules/link-warning (Makefile.am): Generate link-warning.h from
12283         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
12284         * NEWS: Mention change in link-warning module.
12285         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
12286         * modules/dirent (Makefile.am): Add dependency to dirent.h.
12287         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
12288         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
12289         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
12290         * modules/math (Makefile.am): Add dependency to math.h.
12291         * modules/search (Makefile.am): Add dependency to search.h.
12292         * modules/signal (Makefile.am): Add dependency to signal.h.
12293         * modules/spawn (Makefile.am): Add dependency to spawn.h.
12294         * modules/stdio (Makefile.am): Add dependency to stdio.h.
12295         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
12296         * modules/string (Makefile.am): Add dependency to string.h.
12297         * modules/strings (Makefile.am): Add dependency to strings.h.
12298         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
12299         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
12300         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
12301         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
12302         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
12303         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
12304         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
12305         * modules/unistd (Makefile.am): Add dependency to unistd.h.
12306         * modules/wchar (Makefile.am): Add dependency to wchar.h.
12307
12308 2009-12-09  Bruno Haible  <bruno@clisp.org>
12309
12310         fchdir: Optimize away rpl_fstat when possible.
12311         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
12312         REPLACE_OPEN_DIRECTORY.
12313         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
12314
12315 2009-12-09  Bruno Haible  <bruno@clisp.org>
12316
12317         * lib/fchdir.c: Update comment.
12318
12319 2009-12-09  Bruno Haible  <bruno@clisp.org>
12320
12321         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
12322
12323 2009-12-08  Eric Blake  <ebb9@byu.net>
12324
12325         fchdir: avoid memory leak on re-registration.
12326         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
12327
12328 2009-12-08  Jim Meyering  <meyering@redhat.com>
12329
12330         init.sh: avoid Solaris 10 /bin/sh portability problem
12331         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
12332         sourced script:
12333           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
12334           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
12335           bar
12336         tests/init.sh relied on that, accepting a --set-path=DIR argument,
12337         and two tests used that idiom.
12338         * tests/init.sh: Update suggested usage comments.
12339         (path_prepend_): New function, to be used in place
12340         of the --src-path=DIR option.
12341         (setup_): Move PATH-prepending code into path_prepend_.
12342         * tests/test-pread.sh: Adapt to new usage.
12343         * tests/test-xalloc-die.sh: Likewise.
12344
12345 2009-12-08  Simon Josefsson  <simon@josefsson.org>
12346
12347         * doc/gnulib.texi (Glibc pty.h): Add.
12348         * doc/glibc-functions/forkpty.texi: Add.
12349         * doc/glibc-functions/openpty.texi: Add.
12350         Suggested by Bruno Haible.
12351
12352 2009-12-08  Eric Blake  <ebb9@byu.net>
12353
12354         fchdir: fix logic bugs
12355         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
12356         * tests/test-fchdir.c (main): Enhance test.
12357         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
12358         is in use.
12359
12360         dup2: fix logic bugs
12361         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
12362         REPLACE_DUP2 to decide when rpl_dup2 is needed.
12363         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
12364         exists.
12365         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
12366
12367 2009-12-07  Eric Blake  <ebb9@byu.net>
12368
12369         unlink: fix m4 detection
12370         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
12371
12372         unistd-safer: add unit test
12373         * modules/unistd-safer-tests: New file.
12374         * tests/test-dup-safer.c: Likewise.
12375         * tests/test-cloexec.c (setmode): Avoid compiler warning.
12376         * tests/test-dup2.c (setmode): Likewise.
12377         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
12378
12379         cloexec: preserve text vs. binary across dup_cloexec
12380         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
12381         mode.
12382         * modules/dup2-tests (Depends-on): Add binary-io.
12383         * modules/cloexec-tests (Depends-on): Likewise.
12384         * tests/test-dup2.c (setmode, is_mode): New helpers.
12385         (main): Add tests that translation mode is preserved.
12386         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
12387         Reported by Bruno Haible.
12388
12389         mgetgroups: reduce duplicate listings
12390         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
12391         resulting array.
12392         * tests/test-chown.h (test_chown): Simplify client.
12393         * tests/test-lchown.h (test_lchown): Likewise.
12394
12395 2009-12-06  Bruno Haible  <bruno@clisp.org>
12396
12397         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
12398         value.
12399
12400 2009-12-06  Bruno Haible  <bruno@clisp.org>
12401
12402         * lib/progname.c: Include stdio.h, stdlib.h.
12403         (set_program_name): Reject a NULL argument.
12404
12405 2009-12-05  Eric Blake  <ebb9@byu.net>
12406
12407         pipe2-safer: new module
12408         * modules/pipe2-safer: New file.
12409         * lib/unistd-safer.h (pipe2_safer): New prototype.
12410         * lib/unistd--.h (pipe2): New wrapper.
12411         * lib/pipe-safer.c (pipe2_safer): New function.
12412         * modules/pipe (Depends-on): Add pipe2-safer.
12413         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
12414
12415         stdlib-safer: preserve cloexec flag for mkostemp[s]
12416         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
12417         fd_safer_flag.
12418
12419         unistd-safer: allow preservation of cloexec status via flag
12420         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
12421         prototypes.
12422         * lib/dup-safer.c (dup_safer_flag): New function.
12423         * lib/fd-safer.c (fd_safer_flag): Likewise.
12424         * modules/cloexec (configure.ac): Set witness.
12425
12426         test-dup2: enhance test
12427         * modules/dup2-tests (Depends-on): Add cloexec.
12428         * tests/test-dup2.c (main): Enhance test.
12429
12430         cloexec: add dup_cloexec
12431         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
12432         header and comments.
12433         * lib/cloexec.c (set_cloexec_flag): Add comments.
12434         (dup_cloexec): New function, with mingw implementation borrowed
12435         from...
12436         * lib/w32spawn.h (dup_noinherit): ...here.
12437         * modules/execute (Depends-on): Add cloexec.
12438         * modules/pipe (Depends-on): Likewise.
12439         * modules/cloexec (Depends-on): Add dup2.
12440         * modules/cloexec-tests (Files): New file.
12441         * tests/test-cloexec.c: Likewise.
12442
12443         test-xalloc-die: fix test for mingw
12444         * modules/xalloc-die-tests (Files): Add tests/init.sh.
12445         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
12446         directory and .exe suffix off argv[0] output.
12447
12448         test-fseeko: fix test for mingw
12449         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
12450         than undefining fseek, so test will pass on mingw.
12451
12452 2009-12-05  Bruno Haible  <bruno@clisp.org>
12453
12454         * lib/progname.h (set_program_name): Clarify specification.
12455         * lib/progname.c (set_program_name): Likewise.
12456         Reported by Jim Meyering.
12457
12458 2009-12-05  Jim Meyering  <meyering@redhat.com>
12459
12460         maint.mk: backslash-escape parens in default regexp
12461         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
12462         backslash-escape the literal parentheses.
12463
12464         maint.mk: news-date-check: use grep -E
12465         * top/maint.mk (today): Define a Make variable, not a...
12466         (news-date-check): ...shell variable.
12467         (news-date-regexp): Use the Make variable.
12468         Use grep's -E option.  Change the failing diagnostic to mention
12469         the variable, $(news-date-regexp).
12470
12471 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
12472
12473         maintainer-makefile: allow customization of NEWS entry format
12474         * top/maint.mk (news-date-regexp): New overridable variable.
12475         (news-date-check): Use it.
12476
12477 2009-12-04  Eric Blake  <ebb9@byu.net>
12478
12479         mgetgroups: add xgetgroups, and avoid ENOSYS failures
12480         * lib/mgetgroups.h (xgetgroups): New prototype.
12481         * lib/mgetgroups.c (xgetgroups): New wrapper.
12482         (mgetgroups): Handle ENOSYS.
12483         * modules/mgetgroups (Depends-on): Add realloc.
12484         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
12485
12486         mgetgroups: avoid argument promotion issues with -1
12487         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
12488         for invalid gid_t.
12489         * tests/test-chown.h (getegid, test_chown): Likewise.
12490         * tests/test-lchown.h (getegid, test_lchown): Likewise.
12491
12492 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
12493
12494         exclude: Fix header file problems.
12495         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
12496
12497 2009-12-01  Jim Meyering  <meyering@redhat.com>
12498
12499         fts: fts_open: do not let an empty string cause immediate failure
12500         This is required in support of GNU rm, for which the command
12501         "rm A '' B" must process and remove both A and B, in spite of
12502         the empty string argument.
12503         * lib/fts.c (fts_open): Do not let the presence of an empty string
12504         cause fts_open to fail immediately.  Most fts-using tools must be
12505         able to process all arguments, in order, and can be expected to
12506         diagnose such arguments themselves.
12507
12508 2009-11-30  Eric Blake  <ebb9@byu.net>
12509
12510         utimens: fix compilation error
12511         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
12512         Declare variable at right scope.
12513
12514 2009-11-29  Jim Meyering  <meyering@redhat.com>
12515
12516         bootstrap: handle perl-5.11's changed --version output
12517         * build-aux/bootstrap (get_version): Handle perl separately,
12518         since perl-5.11's --version output is different.
12519
12520 2009-11-28  Jim Meyering  <meyering@redhat.com>
12521
12522         userspec: depend on the inttostr module, too
12523         * modules/userspec (Depends-on): Add inttostr.
12524
12525         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
12526         * lib/userspec.c (parse_with_separator): Do not accept a user ID
12527         number of MAXUID when it evaluates to (uid_t) -1.
12528         Likewise for group ID.  Reported by Matt McCutchen in
12529         <http://savannah.gnu.org/bugs/?28113>
12530
12531         userspec: reformat to use spaces, not TABs
12532         * lib/userspec.c: Expand TABs to spaces.
12533         Add Emacs' "indent-tabs-mode: nil" hint.
12534
12535 2009-11-27  Eric Blake  <ebb9@byu.net>
12536
12537         getopt-gnu: flush out another BSD bug
12538         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
12539         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
12540         flush out BSD bug.
12541         * tests/test-getopt.h (test_getopt): End lists with NULL.
12542         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12543         (test_getopt_long_posix): Enhance test.
12544         * modules/getopt-posix-tests (Depends-on): Add stdbool.
12545         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
12546         getopt-gnu.
12547         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12548         Likewise.
12549
12550 2009-11-27  Simon Josefsson  <simon@josefsson.org>
12551
12552         * modules/idpriv-droptemp-tests (Notice): Fix text.
12553
12554 2009-11-27  Jim Meyering  <meyering@redhat.com>
12555
12556         test-xalloc-die: avoid spurious failure due to libtool argv difference
12557         In a libtool-enabled project, this test would fail due to a difference
12558         in the emitted program name, e.g.,
12559         -test-xalloc-die: memory exhausted
12560         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
12561         Use program to avoid that.
12562         * modules/xalloc-die-tests (Depends-on): Add progname.
12563         * tests/test-xalloc-die.c: Include progname.h".
12564         (program_name): Remove decl.
12565         (main): Call set_program_name.
12566         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
12567
12568 2009-11-26  Richard Jones  <rjones@redhat.com>
12569
12570         w32sock: leave win32 error in place.
12571         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
12572
12573 2009-11-26  Eric Blake  <ebb9@byu.net>
12574
12575         init.sh: suggest to use skip_ and fail_ functions in comments
12576         * tests/init.sh: Add a sentence.
12577
12578 2009-11-25  Bruno Haible  <bruno@clisp.org>
12579
12580         init.sh: add documentation in comments
12581         * tests/init.sh: Add some developer and user documentation.
12582
12583 2009-11-26  Jim Meyering  <meyering@redhat.com>
12584
12585         init.sh: accommodate even those who specify bogus srcdir manually
12586         * tests/init.sh: Normally, srcdir is guaranteed by automake and
12587         configure-time tests to be sanitized, so that there is no need to
12588         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
12589         (with no double quotes) suffices.  However, since tests may be
12590         invoked manually, and since you may explicitly set srcdir to the
12591         name of a directory containing spaces, do quote its uses here.
12592         * tests/test-pread.sh: Likewise.
12593         Suggested by Bruno Haible.
12594
12595         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12596         * tests/test-pread.sh: Write no data into the pipe, because
12597         test-pread actually reads none.  This avoids a diagnostic,
12598         "bash: echo: write error: Broken pipe", that arises in the unusual
12599         event something is ignoring SIGPIPE, and might be interpreted
12600         as some sort of failure.  Reported by Bruno Haible.
12601
12602 2009-11-25  Jim Meyering  <meyering@redhat.com>
12603
12604         test-pread: cover failure with ESPIPE and EINVAL
12605         * tests/test-pread.c (main): Test for failure, too.
12606         * tests/test-pread.sh: Invoke with stdin on a pipe.
12607         Suggested by Eric Blake.
12608
12609         pread: improvement and fix
12610         * modules/pread (Depends-on): Depend on lseek, for portability to
12611         e.g., mingw.  Suggested by Eric Blake.
12612         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12613
12614         unistd.in.h: correct declaration of pread
12615         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12616         Reported by Richard W.M. Jones.
12617
12618         test-pread.sh: distribute the test script
12619         * modules/pread-tests (Files): Include test-pread.sh.
12620
12621         test-pread.sh: clean up
12622         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12623         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12624         That is unnecessary, since it's always ".".
12625         Suggestion from Eric Blake.
12626
12627         test-pread.sh: make executable
12628         * tests/test-pread.sh: Set executable bit.
12629         Reported by Eric Blake.
12630
12631         correct typo in test-pread.sh
12632         * tests/test-pread.sh: Add #! line.
12633
12634         test pread
12635         * tests/test-pread.c: New file.
12636         * tests/test-pread.sh: Likewise.
12637         * modules/pread-tests: Likewise.
12638
12639         pread: new module
12640         * modules/pread: New file.
12641         * lib/unistd.in.h (pread): Define/declare.
12642         * lib/pread.c (pread): New file.
12643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12644         * modules/unistd (Makefile.am): Substitute witnesses.
12645         * doc/posix-functions/pread.texi (pread): Update.
12646         * MODULES.html.sh: Add pread.
12647
12648 2009-11-25  Jim Meyering  <meyering@redhat.com>
12649
12650         tests/init.sh: new file to be used via most *.sh tests
12651         * tests/init.sh: New file.
12652
12653 2009-11-25  Eric Blake  <ebb9@byu.net>
12654
12655         utimens: work around older Linux failure with symlinks
12656         * lib/utimens.c (lutimensat_works_really): New variable.
12657         (fdutimens, lutimens): Use it to manage kernels that support
12658         nanosecond times on files, but not on symlinks.
12659         Reported by Ondřej Vašík.
12660
12661         utimes: fix configure grammar
12662         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12663
12664 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12665
12666         regex: Fix fastmap for multibyte character ranges.
12667         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12668         characters when a multibyte character range is included.
12669
12670 2009-11-22  Andy Wingo  <wingo@pobox.com>
12671
12672         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12673         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12674
12675 2009-11-24  Bruno Haible  <bruno@clisp.org>
12676
12677         doc: Most *_l functions exist in MacOS X 10.5.
12678         * doc/posix-functions/duplocale.texi: Update platforms list.
12679         * doc/posix-functions/freelocale.texi: Likewise.
12680         * doc/posix-functions/newlocale.texi: Likewise.
12681         * doc/posix-functions/uselocale.texi: Likewise.
12682         * doc/posix-functions/isalnum_l.texi: Likewise.
12683         * doc/posix-functions/isalpha_l.texi: Likewise.
12684         * doc/posix-functions/isblank_l.texi: Likewise.
12685         * doc/posix-functions/iscntrl_l.texi: Likewise.
12686         * doc/posix-functions/isdigit_l.texi: Likewise.
12687         * doc/posix-functions/isgraph_l.texi: Likewise.
12688         * doc/posix-functions/islower_l.texi: Likewise.
12689         * doc/posix-functions/isprint_l.texi: Likewise.
12690         * doc/posix-functions/ispunct_l.texi: Likewise.
12691         * doc/posix-functions/isspace_l.texi: Likewise.
12692         * doc/posix-functions/isupper_l.texi: Likewise.
12693         * doc/posix-functions/iswalnum_l.texi: Likewise.
12694         * doc/posix-functions/iswalpha_l.texi: Likewise.
12695         * doc/posix-functions/iswblank_l.texi: Likewise.
12696         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12697         * doc/posix-functions/iswctype_l.texi: Likewise.
12698         * doc/posix-functions/iswdigit_l.texi: Likewise.
12699         * doc/posix-functions/iswgraph_l.texi: Likewise.
12700         * doc/posix-functions/iswlower_l.texi: Likewise.
12701         * doc/posix-functions/iswprint_l.texi: Likewise.
12702         * doc/posix-functions/iswpunct_l.texi: Likewise.
12703         * doc/posix-functions/iswspace_l.texi: Likewise.
12704         * doc/posix-functions/iswupper_l.texi: Likewise.
12705         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12706         * doc/posix-functions/isxdigit_l.texi: Likewise.
12707         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12708         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12709         * doc/posix-functions/strcoll_l.texi: Likewise.
12710         * doc/posix-functions/strfmon_l.texi: Likewise.
12711         * doc/posix-functions/strftime_l.texi: Likewise.
12712         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12713         * doc/posix-functions/strxfrm_l.texi: Likewise.
12714         * doc/posix-functions/tolower_l.texi: Likewise.
12715         * doc/posix-functions/toupper_l.texi: Likewise.
12716         * doc/posix-functions/towctrans_l.texi: Likewise.
12717         * doc/posix-functions/towlower_l.texi: Likewise.
12718         * doc/posix-functions/towupper_l.texi: Likewise.
12719         * doc/posix-functions/wcscoll_l.texi: Likewise.
12720         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12721         * doc/posix-functions/wctrans_l.texi: Likewise.
12722         * doc/posix-functions/wctype_l.texi: Likewise.
12723         * doc/glibc-functions/strptime_l.texi: Likewise.
12724         * doc/glibc-functions/strtod_l.texi: Likewise.
12725         * doc/glibc-functions/strtof_l.texi: Likewise.
12726         * doc/glibc-functions/strtol_l.texi: Likewise.
12727         * doc/glibc-functions/strtold_l.texi: Likewise.
12728         * doc/glibc-functions/strtoll_l.texi: Likewise.
12729         * doc/glibc-functions/strtoul_l.texi: Likewise.
12730         * doc/glibc-functions/strtoull_l.texi: Likewise.
12731         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12732         * doc/glibc-functions/wcstod_l.texi: Likewise.
12733         * doc/glibc-functions/wcstof_l.texi: Likewise.
12734         * doc/glibc-functions/wcstol_l.texi: Likewise.
12735         * doc/glibc-functions/wcstold_l.texi: Likewise.
12736         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12737         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12738         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12739
12740 2009-11-24  Bruno Haible  <bruno@clisp.org>
12741
12742         duplocale: Fix logic bug.
12743         * lib/duplocale.c: Don't include <langinfo.h>.
12744         (_NL_LOCALE_NAME): Remove macro.
12745         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12746         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12747
12748 2009-11-23  Jim Meyering  <meyering@redhat.com>
12749
12750         test-update-copyright: don't hard-code /usr/bin/perl
12751         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12752         perl to print the current year.  Gilles Espinasse reported that
12753         the replaced use of perl was hard-coded as /usr/bin/perl.
12754
12755 2009-11-23  Bruno Haible  <bruno@clisp.org>
12756
12757         duplocale: Add support for glibc 2.3.x.
12758         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12759
12760 2009-11-22  Bruno Haible  <bruno@clisp.org>
12761
12762         vasnprintf: Tiny optimization.
12763         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12764         MacOS X.
12765
12766 2009-11-22  Bruno Haible  <bruno@clisp.org>
12767
12768         Tests for module 'duplocale'.
12769         * modules/duplocale-tests: New file.
12770         * tests/test-duplocale.c: New file.
12771
12772         New module 'duplocale'.
12773         * m4/duplocale.m4: New file.
12774         * lib/locale.in.h (duplocale): New declaration.
12775         * lib/duplocale.c: New file.
12776         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12777         gl_LOCALE_H_DEFAULTS): New macros.
12778         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12779         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12780         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12781         REPLACE_DUPLOCALE.
12782         * modules/duplocale: New file.
12783         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12784
12785 2009-11-22  Bruno Haible  <bruno@clisp.org>
12786
12787         * modules/locale-tests (configure.ac): Test for newlocale function.
12788         * tests/test-locale.c: When the system has extended locale functions,
12789         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12790
12791         locale: Make locale_t available when possible.
12792         * lib/locale.in.h: Include <xlocale.h> when it exists.
12793         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12794         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12795         * modules/locale (Depends-on): Add extensions.
12796         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12797         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12798
12799 2009-11-22  Bruno Haible  <bruno@clisp.org>
12800
12801         Add comments.
12802         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12803         invocation.
12804         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12805         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12806         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12807
12808 2009-11-22  Bruno Haible  <bruno@clisp.org>
12809
12810         error: account for the possibility of freopen (stdout).
12811         * lib/error.c: Include <unistd.h>.
12812         (flush_stdout): New function, extracted from error and error_at_line.
12813         Determine stdout's fd dynamically.
12814         (error, error_at_line): Invoke flush_stdout.
12815         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12816         * modules/error (Depends-on): Add unistd.
12817
12818 2009-11-22  Bruno Haible  <bruno@clisp.org>
12819
12820         diffseq: Add comment.
12821         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12822
12823 2009-11-22  Jim Meyering  <meyering@redhat.com>
12824
12825         c-stack: avoid defining an unused static function
12826         * lib/c-stack.c (find_stack_direction): Do not define this function
12827         when it will not be used.
12828
12829         diffseq: avoid spurious gcc warnings
12830         * lib/diffseq.h (IF_LINT2): Define.
12831         (compareseq): Use it to initialize two members of "part".
12832         This avoids two used-uninitialized warnings.
12833
12834 2009-11-21  Jim Meyering  <meyering@redhat.com>
12835
12836         c-stack: avoid "ignoring return value of `write'" warning
12837         * lib/c-stack.c: Include "ignore-value.h".
12838         (die): Explicitly ignore each write return value.
12839         * modules/c-stack (Depends-on): Add ignore-value.
12840
12841 2009-11-21  Bruno Haible  <bruno@clisp.org>
12842
12843         diffseq: reduce scope of variable 'best'.
12844         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
12845         variable, earlier used for two different purposes.
12846
12847 2009-11-21  Jim Meyering  <meyering@redhat.com>
12848
12849         diffseq: remove useless assignment to "best"
12850         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
12851         assignment.  At that point "best" is already guaranteed to be zero.
12852
12853 2009-11-20  Eric Blake  <ebb9@byu.net>
12854
12855         build: mention ftp redirector in release announcements
12856         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
12857         values that used to come from cfg.mk; mention FTP redirect URL.
12858         * build-aux/announce-gen: Mention the mirror list.
12859         Suggested by Karl Berry.
12860
12861         nanosleep: improve port to mingw
12862         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
12863         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
12864         LIB_NANOSLEEP, but only when needed.
12865         * modules/select (Link): Document LIBSOCKET.
12866         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
12867         enough.
12868
12869         nanosleep: work around cygwin bug
12870         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
12871         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
12872         bug.
12873         (getnow): Delete, not needed.
12874         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
12875         LIB_CLOCK_GETTIME.
12876         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
12877         clock-time, gettime.
12878         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
12879         bug.
12880         * modules/nanosleep-tests: New test.
12881         * tests/test-nanosleep.c: New file.
12882
12883         sleep: work around cygwin bug
12884         * lib/sleep.c (rpl_sleep): Work around the bug.
12885         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
12886         (gl_PREREQ_SLEEP): Delete unused macro.
12887         * modules/sleep (Depends-on): Add verify.
12888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12889         * modules/unistd (Makefile.am): Substitute witness.
12890         * lib/unistd.in.h (sleep): Update prototype.
12891         * doc/posix-functions/sleep.texi (sleep): Document the bug.
12892         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
12893         * modules/sleep-tests (Depends-on): Check for alarm.
12894
12895 2009-11-20  Jim Meyering  <meyering@redhat.com>
12896
12897         maint.mk: improve sc_prohibit_magic_number_exit
12898         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
12899         so it does not match uses like System.exit(1).
12900         Add comments showing how to correct all offenders.
12901
12902 2009-11-19  Eric Blake  <ebb9@byu.net>
12903
12904         xalloc-die-tests: add missing library
12905         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
12906
12907         test-xvasprintf: silence compiler warnings
12908         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
12909         empty string from gcc.
12910
12911 2009-11-19  Jim Meyering  <meyering@redhat.com>
12912
12913         xfreopen: new module, from coreutils
12914         * modules/xfreopen: New module.
12915         * lib/xfreopen.c: New file.
12916         * lib/xfreopen.h: New file.
12917         * MODULES.html.sh (File stream based Input/Output"): Add it.
12918
12919 2009-11-19  Eric Blake  <ebb9@byu.net>
12920
12921         manywarnings: depend on warnings
12922         * modules/manywarnings (Depends-on): Add warnings.
12923
12924         build: avoid compiler warnings
12925         * lib/select.c (rpl_select): Delete unused variable.
12926         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
12927
12928 2009-11-18  Eric Blake  <ebb9@byu.net>
12929
12930         tests: avoid false negative with --with-packager
12931         * tests/test-version-etc.sh: Discard packager information.
12932         * tests/test-argp-version-etc-1.sh: Likewise.
12933         Reported by Mike Frysinger.
12934
12935         utimens: fix regression on Solaris
12936         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
12937         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
12938         can only change fd timestamps via futimesat.  Instead, use an
12939         additional witness macro to avoid BSD bug.
12940         Reported by Jim Meyering.
12941
12942 2009-11-17  Eric Blake  <ebb9@byu.net>
12943
12944         usleep: use it to simplify tests
12945         * modules/stat-time-tests (Depends-on): Add usleep.
12946         (configure.ac): Drop usleep check.
12947         * modules/chown-tests (Depends-on, configure.ac): Likewise.
12948         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
12949         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
12950         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
12951         * modules/openat-tests (Depends-on, configure.ac): Likewise.
12952         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
12953         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
12954         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
12955         Likewise.
12956         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
12957         * tests/test-lchown.h (nap): Likewise.
12958         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
12959         * tests/test-stat-time.c (nap): Likewise.
12960         * tests/test-utimens-common.h (nap): Update comments.
12961
12962         usleep: new module
12963         * modules/usleep: New file.
12964         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
12965         * lib/usleep.c (usleep): Likewise.
12966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
12967         * modules/unistd (Makefile.am): Substitute witnesses.
12968         * lib/unistd.in.h (usleep): Add declaration.
12969         * doc/pastposix-functions/usleep.texi (usleep): Document this.
12970         * MODULES.html.sh (Date and time): Likewise.
12971         * modules/usleep-tests (Depends-on): New test.
12972         * tests/test-usleep.c: New file.
12973
12974         chown: work around OpenBSD bug
12975         * lib/chown.c (rpl_chown): Work around the bug.
12976         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
12977         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
12978         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
12979         * modules/chown (Depends-on): Add stdbool.
12980         * modules/lchown (Depends-on): Likewise.
12981         * doc/posix-functions/chown.texi (chown): Document the bug.
12982         * doc/posix-functions/lchown.texi (lchown): Likewise.
12983         * tests/test-lchown.h (test_chown): Relax test.
12984
12985         mkstemp: avoid conflict with C++ keyword template
12986         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
12987         * lib/mkostemp.c (mkostemp): Likewise.
12988         * lib/mkostemps.c (mkostemps): Likewise.
12989         * lib/mkstemp.c (mkstemp): Likewise.
12990         * lib/mkstemps.c (mkstemps): Likewise.
12991
12992         xalloc-die-tests: optimize
12993         * tests/test-xalloc-die.sh: Reduce number of processes.
12994
12995 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12996
12997         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
12998         patch from ludo@gnu.org (Ludovic Courtès).
12999
13000 2009-11-17  Jim Meyering  <meyering@redhat.com>
13001
13002         version-etc: use proper license string
13003         * modules/version-etc (License): Use LGPL, not LGPLv3+.
13004         * modules/version-etc-fsf: Likewise.
13005
13006 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13007
13008         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
13009         printed to stdout.  Deal with EOL differences.
13010
13011 2009-11-17  Eric Blake  <ebb9@byu.net>
13012
13013         unsetenv: work around Solaris bug
13014         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
13015         * lib/unsetenv.c (rpl_unsetenv): Work around it.
13016         Reported by Jim Meyering.
13017
13018         vasnprintf: avoid compiler warnings
13019         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
13020         variables.
13021         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
13022
13023 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13024
13025         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
13026         settings since xalloc-die is no longer the self test,
13027         xalloc-die.sh is.
13028
13029 2009-11-17  Jim Meyering  <meyering@redhat.com>
13030
13031         test-xalloc-die.sh: make the code agree with the commit log
13032         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
13033         at the end, just in case you happen to have a test-xalloc-die
13034         program in some other PATH directory.
13035
13036         test-xalloc-die.sh: fix a portability bug
13037         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
13038         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
13039         Otherwise, argv[0] (as often seen in diagnostics) would be too
13040         system-dependent, sometimes with, and sometimes without the leading "./".
13041
13042         version-etc-fsf: relax license to LGPLv3+
13043         * modules/version-etc-fsf (License): Relax license.
13044
13045 2009-11-16  Eric Blake  <ebb9@byu.net>
13046
13047         xalloc-die-tests: avoid printing null pointer
13048         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
13049         shell script.
13050         * tests/test-xalloc-die.c (program_name): Declare.
13051         * tests/test-xalloc-die.sh (tmpfiles): New file.
13052
13053         setenv, unsetenv: work around various bugs
13054         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
13055         (setenv) [HAVE_SETENV]: Work around bugs.
13056         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
13057         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
13058         for bugs.
13059         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
13060         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
13061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
13062         * modules/stdlib (Makefile.am): Update substitutions.
13063         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
13064         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
13065         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13066         * modules/setenv-tests: New test.
13067         * modules/unsetenv-tests: Likewise.
13068         * tests/test-setenv.c: New file.
13069         * tests/test-unsetenv.c: Likewise.
13070
13071 2009-11-16  Jim Meyering  <meyering@redhat.com>
13072
13073         version-etc: relax license to LGPLv3+
13074         * modules/version-etc (License): Relax license.
13075
13076         better AC_REQUIRE expanded-before-required-warning avoidance
13077         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
13078         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
13079         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
13080         which is no longer needed.
13081
13082 2009-11-16  Eric Blake  <ebb9@byu.net>
13083
13084         test-freading: clean up temporary file
13085         * tests/test-freading.c (main): Remove file on success, and use
13086         ASSERT more liberally.
13087         Reported by Jim Meyering.
13088
13089 2009-11-16  Jim Meyering  <meyering@redhat.com>
13090
13091         avoid new AC_REQUIRE expanded-before-required warnings
13092         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
13093         merely using it.
13094         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
13095         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
13096
13097 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13098
13099         * tests/test-xalloc-die.c: New file.
13100         * modules/xalloc-die-tests: New file.
13101         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
13102         XFAIL_TESTS so it can be appended by modules.
13103
13104 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13105
13106         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
13107         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
13108
13109 2009-11-14  Eric Blake  <ebb9@byu.net>
13110
13111         fnmatch: avoid compiler warning
13112         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
13113         to silence compiler warning about mismatch signedness in ?:.
13114         Reported by Robert Millan.
13115
13116         intprops: add double-inclusion guard
13117         * lib/intprops.h: Allow idempotent includes.
13118         Suggested by Bruce Korb.
13119
13120         openat: detect Solaris fchownat bug
13121         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
13122         penalizing glibc chownat when only lchownat is broken.
13123         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
13124         trailing slash bugs.
13125         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
13126         * modules/openat-tests (Files): Include more files.
13127         (Depends-on): Add mgetgroups, sleep, stat-time.
13128         (configure.ac): Add additional checks.
13129         (Makefile.am): Build new test.
13130         * tests/test-fchownat.c: New file.
13131
13132         lchown: detect Solaris and FreeBSD bug
13133         * lib/lchown.c (rpl_lchown): Work around bug.
13134         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
13135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13136         * modules/unistd (Makefile.am): Populate it.
13137         * lib/unistd.in.h (lchown): Update declaration.
13138         * doc/posix-functions/lchown.texi (lchown): Document the bug.
13139         * modules/lchown-tests: New file.
13140         * tests/test-lchown.h (test_lchown): Likewise.
13141         * tests/test-lchown.c (main): Likewise.
13142
13143         chown: detect Solaris and FreeBSD bug
13144         * lib/chown.c (rpl_chown): Work around bug.
13145         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
13146         (gl_PREREQ_CHOWN): Delete.
13147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13148         * modules/unistd (Makefile.am): Populate it.
13149         * lib/unistd.in.h (chown): Update declaration.
13150         * lib/lchown.c (chown): Update client.
13151         * modules/lchown (Depends-on): Add lstat.
13152         * doc/posix-functions/chown.texi (chown): Document the bug.
13153         * doc/posix-functions/getgroups.texi (getgroups): Document
13154         getgroups pitfall.
13155         * modules/chown-tests: New file.
13156         * tests/test-chown.h (test_chown): Likewise.
13157         * tests/test-chown.c (main): Likewise.
13158
13159 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
13160
13161         gnulib-tool: correctly detect absence of m4 directories
13162         * gnulib-tool: Avoid extra newline on data passed to wc -l.
13163
13164 2009-11-14  Jim Meyering  <meyering@redhat.com>
13165
13166         maint.mk: Prohibit inclusion of "xalloc.h" without use.
13167         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13168
13169 2009-11-14  John W. Eaton  <jwe@gnu.org>
13170
13171         strftime.h: wrap funtion declaration in extern "C" block
13172         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
13173
13174 2009-11-13  Eric Blake  <ebb9@byu.net>
13175
13176         getgroups: avoid compiler warning
13177         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
13178
13179         getgroups: work around FreeBSD bug
13180         * lib/getgroups.c (rpl_getgroups): Work around the bug.
13181         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
13182         * doc/posix-functions/getgroups.texi (getgroups): Document it.
13183         * tests/test-getgroups.c (main): Fix buffer overrun.
13184
13185         getgroups: avoid compilation failure
13186         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
13187         * modules/getgroups (Depends-on): Add stdint.
13188
13189 2009-11-13  Jim Meyering  <meyering@redhat.com>
13190
13191         test-getgroups: avoid compilation failure
13192         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
13193
13194 2009-11-13  Eric Blake  <ebb9@byu.net>
13195
13196         mgetgroups: new module, taken from coreutils
13197         * modules/mgetgroups: New file.
13198         * lib/mgetgroups.h: Likewise.
13199         * lib/mgetgroups.c (mgetgroups): Likewise.
13200         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
13201         * MODULES.html.sh (Users and groups): Mention it.
13202
13203         getgroups: don't expose GETGROUPS_T to user
13204         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
13205         an element at a time if GETGROUPS_T is wrong size.
13206         * lib/getugroups.h (getugroups): Change signature.
13207         * lib/unistd.in.h (getgroups): Likewise.
13208         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
13209         signature needs fixing.
13210         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
13211         AC_TYPE_GETGROUPS.
13212         * modules/group-member (Depends-on): Add getgroups.
13213         * lib/group-member.c (group_info, get_group_info): Use gid_t.
13214         (group_member): Rely on getgroups replacement.
13215         * lib/getugroups.c (getugroups): Use gid_t.
13216         * tests/test-getgroups.c (main): Likewise.
13217         * NEWS: Mention the signature change.
13218         * doc/posix-functions/getgroups.texi (getgroups): Mention the
13219         problem with signature.
13220         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
13221         GETGROUPS_T is still useful for setgroups.
13222
13223         getgroups, getugroups: provide stubs for mingw
13224         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
13225         * lib/getugroups.c (getugroups): Likewise.
13226         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
13227         function.  Modernize replacement scheme.
13228         (gl_PREREQ_GETGROUPS): Delete.
13229         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
13230         * modules/getgroups (configure.ac): Declare witness.
13231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13232         * modules/unistd (Depends-on): Substitute witness.
13233         * lib/unistd.in.h (getgroups): Declare replacement.
13234
13235         getgroups: avoid calling exit
13236         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
13237         drop xalloc.
13238         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
13239         dependencies.
13240         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
13241         exiting, in the rare case of malloc failure.
13242
13243         getgroups: fix logic error
13244         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
13245         has more than 20 groups.
13246         * modules/getgroups-tests: New test.
13247         * tests/test-getgroups.c: New file.
13248
13249 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13250
13251         * tests/test-base64.c: Improve.
13252
13253 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13254
13255         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
13256         Blake <ebb9@byu.net>.
13257
13258 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13259
13260         * tests/test-xvasprintf.c: Add %s%s related checks.
13261
13262 2009-11-12  Eric Blake  <ebb9@byu.net>
13263
13264         version-etc: match standards.texi style
13265         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
13266         and use <> only for URLs.
13267
13268 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
13269
13270         fts: do not fail on a submount during traversal
13271         * lib/fts.c (fts_build): Read the stat info again after opening
13272         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
13273         Original report at http://bugzilla.redhat.com/501848.
13274
13275 2009-11-12  Jim Meyering  <meyering@redhat.com>
13276
13277         bootstrap: sync from coreutils
13278         * build-aux/bootstrap (bootstrap_epilogue): New function.
13279         Use git_modules_config in one more place.  This make bootstrap's
13280         --gnulib-srcdir option more useful for testing.
13281
13282         bootstrap: generalize autoheader check
13283         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
13284         AC_CONFIG_HEADERS.
13285
13286 2009-11-11  Eric Blake  <ebb9@byu.net>
13287
13288         mkfifoat: use new modules for Solaris and BSD bugs
13289         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
13290         * lib/mkfifoat.c (mknodat): Split...
13291         * lib/mknodat.c (mknodat): ...into new file.
13292         * modules/mkfifoat (Files): Ship new file.
13293         (Depends-on): Add mkfifo, mknod.
13294         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
13295         (Depends-on): Add symlink.
13296         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
13297         redundant with test_mkfifo.h.
13298         (do_mkfifoat, do_mknodat): New helpers.
13299
13300         mknod: new module
13301         * modules/mknod: New file.
13302         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
13303         * lib/mknod.c (mknod): Likewise.
13304         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13305         defaults.
13306         * modules/sys_stat (Makefile.am): Substitute them.
13307         * lib/sys_stat.in.h (mknod): Declare replacement.
13308         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13309         Document it.
13310         * doc/posix-functions/mknod.texi (mknod): Likewise.
13311         * modules/mknod-tests: New test.
13312         * tests/test-mknod.c: Likewise.
13313
13314         mkfifo: new module
13315         * modules/mkfifo: New file.
13316         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13317         * lib/mkfifo.c (mkfifo): Likewise.
13318         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13319         defaults.
13320         * modules/sys_stat (Makefile.am): Substitute them.
13321         * lib/sys_stat.in.h (mkfifo): Declare replacement.
13322         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13323         Document it.
13324         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
13325         * modules/mkfifo-tests: New test.
13326         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
13327         from test-mkfifoat.c.
13328         * tests/test-mkfifo.c: New file.
13329
13330         readlink: detect FreeBSD bug
13331         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
13332         slash on symlink.
13333         * doc/posix-functions/readlink.texi (readlink): Document the bug.
13334         * tests/test-readlink.h (test_readlink): Enhance test.
13335
13336         symlink: detect FreeBSD bug
13337         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
13338         slash on symlink.
13339         * doc/posix-functions/symlink.texi (symlink): Document the bug.
13340         * tests/test-symlink.h (test_symlink): Enhance test.
13341
13342 2009-11-10  Eric Blake  <ebb9@byu.net>
13343
13344         link: detect FreeBSD bug
13345         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
13346         symlink.
13347         * doc/posix-functions/link.texi (link): Document the bug.
13348         * tests/test-link.h (test_link): Enhance test.
13349         * tests/test-linkat.c (main): Update caller.
13350
13351         unlink, remove: detect FreeBSD bug
13352         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
13353         slash on symlink.
13354         * doc/posix-functions/unlink.texi (unlink): Document the bug.
13355         * doc/posix-functions/remove.texi (remove): Likewise.
13356         * tests/test-unlink.h (test_unlink): Enhance test.
13357         * tests/test-remove.c (main): Likewise.
13358
13359 2009-11-09  Eric Blake  <ebb9@byu.net>
13360
13361         rename: detect FreeBSD bug
13362         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
13363         slash on symlink.
13364         * modules/renameat-tests (Depends-on): Add filenamecat.
13365         * tests/test-rename.h (test_rename): Allow one more errno.
13366         * tests/test-renameat.c (main): Likewise.
13367         * doc/posix-functions/rename.texi (rename): Document the bug.
13368
13369         open: detect FreeBSD bug
13370         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
13371         symlink.
13372         * doc/posix-functions/open.texi (open): Document the bug.
13373         * doc/posix-functions/utimes.texi (utimes): Likewise.
13374         * tests/test-open.h (test_open): Add parameters, and test symlink
13375         handling.
13376         * tests/test-open.c (main): Adjust caller.
13377         * tests/test-fcntl-safer.c (main): Likewise.
13378         * modules/open-tests (Depends-on): Add stdbool, symlink.
13379         * modules/fcntl-safer-tests (Depends-on): Likewise.
13380         * tests/test-openat.c (main): Add test-open tests.
13381
13382         stat: detect FreeBSD bug
13383         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
13384         symlink.
13385         * doc/posix-functions/stat.texi (stat): Document the bug.
13386         * tests/test-stat.h (test_stat_func): Add argument.
13387         * tests/test-stat.c (main): Adjust caller.
13388         * tests/test-fstatat.c (main): Likewise.
13389         * modules/stat-tests (Depends-on): Add stdbool, symlink.
13390         Reported by Jim Meyering.
13391
13392 2009-11-09  James Youngman  <jay@gnu.org>
13393
13394         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
13395         * lib/strftime.c: Correct placement of #include "ignore-value.h".
13396
13397 2009-11-08  Jim Meyering  <meyering@redhat.com>
13398
13399         utimens: remove invalid futimesat call
13400         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
13401         It used the file descriptor of the target file as the DIR_FD
13402         parameter and NULL as the file name.  That caused failure with
13403         errno == EFAULT on FreeBSD-8.0-rc2
13404
13405 2009-11-07  Eric Blake  <ebb9@byu.net>
13406
13407         fflush, freadseek: use fseeko, not fseek
13408         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13409         (clear_ungetc_buffer): Avoid potential problems on large files.
13410         * lib/freadseek.c (freadseek): Likewise.
13411         * modules/freadseek (Depends-on): Add fseeko.
13412         * modules/fseek (configure.ac): Set a witness.
13413         * tests/test-fflush.c (main): Use fseeko.
13414         * tests/test-fpurge.c (fseek): Disable link warning.
13415         * tests/test-freadable.c (fseek): Likewise.
13416         * tests/test-freading.c (fseek): Likewise.
13417         * tests/test-fseeko.c (fseek): Likewise.
13418         * tests/test-ftell.c (fseek): Likewise.
13419         * tests/test-ftello.c (fseek): Likewise.
13420         * tests/test-fwritable.c (fseek): Likewise.
13421         * tests/test-fwriting.c (fseek): Likewise.
13422
13423 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13424
13425         * modules/memchr (Depends-on): Drop getpagesize dependency.
13426
13427 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13428
13429         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
13430         Reported by Ludovic Courtès.
13431         * build-aux/pmccabe2html: Improve example usage.
13432         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
13433
13434 2009-11-06  Jim Meyering  <meyering@redhat.com>
13435
13436         do-release-commit-and-tag: New module.
13437         Automate the release-commit and tag process.
13438         * build-aux/do-release-commit-and-tag: New script, from coreutils.
13439         * modules/do-release-commit-and-tag: New file.
13440         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13441
13442 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13443
13444         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
13445         because test-select.c uses inet_pton.
13446
13447 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13448
13449         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
13450         GETADDRINFO_LIB.  Bump serial number.
13451         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
13452         Suggested by Eric Blake <ebb9@byu.net>.
13453
13454 2009-11-05  Eric Blake  <ebb9@byu.net>
13455
13456         strtod: detect darwin bug
13457         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
13458         Reported by Leo Davis.
13459
13460         freopen-safer: new module
13461         * modules/freopen-safer: New module.
13462         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
13463         * lib/freopen-safer.c (freopen_safer): New file.
13464         * lib/stdio-safer.h (freopen_safer): New declaration.
13465         * lib/stdio--.h (freopen): New override.
13466         * MODULES.html.sh (File stream based Input/Output): Mention it.
13467         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
13468         freopen-safer module.
13469         * doc/posix-functions/stderr.texi (stderr): Likewise.
13470         * doc/posix-functions/stdin.texi (stdin): Likewise.
13471         * doc/posix-functions/stdout.texi (stdout): Likewise.
13472         * modules/freopen-safer-tests: New test.
13473         * tests/test-reopen-safer.c: New file.
13474
13475 2009-11-05  Jim Meyering  <meyering@redhat.com>
13476
13477         maint.mk: Prohibit inclusion of "close-stream.h" without use.
13478         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13479
13480 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13481
13482         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
13483
13484 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13485
13486         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
13487
13488 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13489
13490         Fix link error.
13491         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13492         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13493
13494 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13495
13496         * tests/test-func.c: Also test value of __func__.
13497
13498 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13499
13500         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
13501         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
13502
13503 2009-11-05  Bruno Haible  <bruno@clisp.org>
13504
13505         Fix link error.
13506         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13507         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13508         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
13509
13510 2009-11-05  Bruno Haible  <bruno@clisp.org>
13511
13512         Tests for module 'inet_pton'.
13513         * modules/inet_pton-tests: New file.
13514         * tests/test-inet_pton.c: New file.
13515
13516 2009-11-05  Bruno Haible  <bruno@clisp.org>
13517
13518         Tests for module 'inet_ntop'.
13519         * modules/inet_ntop-tests: New file.
13520         * tests/test-inet_ntop.c: New file.
13521
13522 2009-11-04  Eric Blake  <ebb9@byu.net>
13523
13524         stdlib-safer: wrap all mkstemp variants
13525         * modules/mkostemp (configure.ac): Set witness.
13526         * modules/mkostemps (configure.ac): Likewise.
13527         * modules/mkstemps (configure.ac): Likewise.
13528         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
13529         (mkstemps_safer): Wrap more functions.
13530         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
13531         wrapping.
13532         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
13533         (mkstemps_safer): Implement the wrappers.
13534
13535         mkstemps, mkostemps: new modules
13536         * modules/mkostemps: New module.
13537         * modules/mkstemps: Likewise.
13538         * lib/mkostemps.c (mkostemps): New file.
13539         * lib/mkstemps.c (mkstemps): Likewise.
13540         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
13541         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
13542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
13543         * modules/stdlib (Makefile.am): Substitute them.
13544         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
13545         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
13546         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13547         * doc/gnulib.texi (Glibc stdlib.h): Include them.
13548         * MODULES.html.sh (File system functions): Mention them.
13549
13550         tempname: resync from glibc
13551         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
13552         same values for __GT_FILE as glibc.  Abort even when assertions
13553         are disabled.
13554         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
13555         match its value otherwise.  Allow idempotent inclusion.
13556         * lib/mkdtemp.c (mkdtemp): Adjust caller.
13557         * lib/mkostemp.c (mkostemp): Likewise.
13558         * lib/mkstemp.c (mkstemp): Likewise.
13559         * lib/tmpfile.c (tmpfile): Likewise.
13560         * NEWS: Document this.
13561
13562         utimens: fix use of futimens on older Linux
13563         * lib/utimens.c (fdutimens): Use updated, rather than original,
13564         timespec to avoid bug in older Linux kernel.
13565         Reported by Simon Josefsson.
13566
13567 2009-11-04  Bruno Haible  <bruno@clisp.org>
13568
13569         Make num_processors more flexible and consistent.
13570         * lib/nproc.h (enum nproc_query): New type.
13571         (num_processors): Add a 'query' argument.
13572         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
13573         (num_processors): Add a 'query' argument. Test the value of the
13574         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
13575         mingw, count the number of CPUs available for the current process.
13576         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
13577         Check for sched_getaffinity and sched_getaffinity_np.
13578         * modules/nproc (Depends-on): Add c-ctype, extensions.
13579         * NEWS: Mention the change.
13580
13581 2009-11-03  Bruno Haible  <bruno@clisp.org>
13582
13583         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
13584
13585 2009-11-03  Jim Meyering  <meyering@redhat.com>
13586
13587         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
13588         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
13589         if it is defined.
13590
13591 2009-11-02  Eric Blake  <ebb9@byu.net>
13592
13593         mktime, timegm: share common declaration
13594         * lib/mktime-internal.h: New file.
13595         * lib/mktime.c: Use it rather than open-coding a declaration.
13596         * lib/timegm.c: Likewise.
13597         * modules/mktime (Files): Ship it.
13598         * modules/timegm (Files): Likewise.
13599         Suggested by Bruno Haible.
13600
13601         test-update-copyright: update test to match script changes
13602         * tests/test-update-copyright.sh: Avoid hard-coding perl
13603         location.  Don't update *.bak created by earlier runs.
13604
13605 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13606             Simon Josefsson  <simon@josefsson.org>
13607             Bruno Haible  <bruno@clisp.org>
13608
13609         Fix link error on Solaris 8.
13610         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13611         also in libnsl. Define also INET_PTON_LIB.
13612         * modules/inet_pton (Link): New section.
13613
13614 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13615             Bruno Haible  <bruno@clisp.org>
13616
13617         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13618         * modules/inet_ntop (Link): New section.
13619         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13620
13621 2009-11-02  Eric Blake  <ebb9@byu.net>
13622
13623         maint: avoid compiler warnings in m4 macros
13624         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13625         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13626
13627 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13628
13629         * m4/pmccabe2html.m4: Remove file.
13630         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13631         function.  Change maintainer.
13632         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13633         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13634         Courtès).
13635
13636 2009-10-31  Eric Blake  <ebb9@byu.net>
13637
13638         fseeko: fix m4 regression
13639         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13640         regression from 2009-10-27.
13641         Reported by Ralf Wildenhues.
13642
13643 2009-10-31  Jim Meyering  <meyering@redhat.com>
13644
13645         inttostr: aesthetics and improved (compile-time) safety
13646         Define inttype_is_signed rather than inttype_is_unsigned,
13647         since the sole use is via "#if inttype_is_signed".
13648         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13649         inttype_is_unsigned.
13650         * lib/offtostr.c (inttype_is_signed): Likewise.
13651         * lib/uinttostr.c (inttype_is_signed): Likewise.
13652         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13653         * lib/inttostr.c (inttostr): Use verify to cross-check the
13654         inttype_is_signed value and the signedness of the actual type.
13655         * modules/inttostr (Depends-on): Add verify.
13656
13657 2009-10-30  Eric Blake  <ebb9@byu.net>
13658
13659         build: avoid compiler warnings
13660         * lib/fchmodat.c (lchmod): Mark unused variables.
13661         * lib/getopt.c (_getopt_initialize): Likewise.
13662         * lib/mktime.c (__mktime_internal): Provide prototype.
13663         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13664         older gcc that do not understand #pragma GCC diagnostic.
13665         * lib/uinttostr.c (inttype_is_unsigned): Define.
13666         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13667
13668 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13669
13670         stat: fix compilation on AIX
13671         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13672         only see struct stat64.
13673
13674 2009-10-30  Eric Blake  <ebb9@byu.net>
13675
13676         exclude: make more robust
13677         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13678         rather than masking a coding bug.
13679         Suggested by Bruno Haible.
13680
13681 2009-10-30  Jim Meyering  <meyering@redhat.com>
13682
13683         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13684         Rather than putting #!/usr/bin/perl on the first line,
13685         start with a variant of what's recommended by "man perlrun" that
13686         invokes the first "perl" program from your shell's search path.
13687         * build-aux/gitlog-to-changelog: Replace #!... as above.
13688         Add a "Local Variables" perl mode setting.
13689         Prompted by a patch from Ludovic Courtès.
13690         Improved by Eric Blake.
13691         * build-aux/useless-if-before-free: Likewise.
13692         * build-aux/announce-gen: Likewise.
13693         * build-aux/update-copyright: Likewise.
13694
13695 2009-10-29  Eric Blake  <ebb9@byu.net>
13696
13697         filenamecat-lgpl: adjust clients
13698         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13699         filenamecat.
13700         * modules/renameat (Depends-on): Likewise.
13701
13702         filenamecat: split into filenamecat-lgpl
13703         * modules/filenamecat-lgpl: New module.
13704         * modules/filenamecat (Files): Move library-safe files into
13705         filenamecat-lgpl.
13706         (Depends-on): Add filenamecat-lgpl.
13707         (configure.ac): Declare witness.
13708         * lib/filenamecat.h (file_name_concat): Only declare when using
13709         GPL module.
13710         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13711         Move...
13712         * lib/filenamecat-lgpl.c: ...into new file.
13713         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13714         (gl_FILE_NAME_CONCAT): Use it.
13715         * MODULES.html.sh (File system functions): Mention new module.
13716
13717         argp: avoid memory leak
13718         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13719         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13720         base_name, since the latter malloc()s and can call exit().
13721         Leak introduced 2006-07-03.
13722
13723         dirname-lgpl: adjust clients that don't need full dirname
13724         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13725         * modules/filenamecat (Depends-on): Likewise.
13726         * modules/linkat (Depends-on): Likewise.
13727         * modules/mkancesdirs (Depends-on): Likewise.
13728         * modules/mkdir (Depends-on): Likewise.
13729         * modules/openat (Depends-on): Likewise.
13730         * modules/savewd (Depends-on): Likewise.
13731         * modules/rename (Depends-on): Likewise.
13732         (License): Relax license.
13733         * modules/mkdir-tests (Depends-on): Drop progname.
13734         (Makefile.am): Delete unneeded LDADD.
13735         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13736
13737         dirname: split into dirname-lgpl
13738         * modules/dirname-lgpl: New module.
13739         * modules/dirname (Files): Move library-safe files into
13740         dirname-lgpl.
13741         (Depends-on): Add dirname-lgpl.
13742         (configure.ac): Declare witness.
13743         * modules/double-slash-root (License): Relax license.
13744         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13745         module.
13746         * lib/dirname.c (dir_len, mdir_name): Move...
13747         * lib/dirname-lgpl.c: ...into new file.
13748         * lib/basename.c (last_component, base_len): Move...
13749         * lib/basename-lgpl.c: ...into new file.
13750         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13751         (gl_DIRNAME): Use it.
13752         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13753         Mention new module.
13754         * modules/dirname-tests (Depends-on): Add progname.
13755         * tests/test-dirname.c (program_name): Delete.
13756
13757         mkdir: make safe for libraries
13758         * modules/mkdir (Depends-on): Drop xalloc.
13759         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13760         exit.
13761
13762         tests: avoid some compiler warnings
13763         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13764         literals.
13765         * tests/test-memchr.c (main): Avoid type mismatch.
13766         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13767         * tests/test-base64.c (main): Likewise.
13768         * tests/test-getdelim.c (main): Likewise.
13769         * tests/test-gethostname.c (main): Likewise.
13770         * tests/test-getline.c (main): Likewise.
13771         * tests/test-netinet_in.c (main): Likewise.
13772         * tests/test-select.c (open_server_socket, main): Likewise.
13773         * tests/test-select-stdin.c (main): Likewise.
13774         * tests/test-sockets.c (main): Likewise.
13775         * tests/test-strsignal.c (main): Likewise.
13776         * tests/test-sys_select.c (main): Likewise.
13777         * tests/test-sys_socket.c (main): Likewise.
13778         * tests/test-u64.c (main): Likewise.
13779         * tests/test-xfprintf-posix.c (main): Likewise.
13780         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13781
13782         sockets: avoid compiler warning
13783         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13784
13785         maint: detect usage(1) and other suspicious exits
13786         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13787
13788 2009-10-29  Jim Meyering  <meyering@redhat.com>
13789
13790         timespec: long-to-int truncation could make timespec_cmp malfunction
13791         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13792         a multiple of 2^32 nanoseconds as no difference.
13793
13794 2009-10-28  Jim Meyering  <meyering@redhat.com>
13795
13796         fprintftime: wrap macro code argument in "do {...} while(0)"
13797         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13798         cpy macro must be a statement that can be followed by a semicolon.
13799         Now that the else clause contains a comment and is hence longer
13800         than one line, I require curly braces.  That in turn requires
13801         that we wrap this code block in the standard do...while(0).
13802
13803         fprintftime: remove stray semicolon from previous change
13804         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13805
13806         fprintftime: avoid a warning about ignored fwrite return value
13807         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13808         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13809         that is unsafe.
13810         * modules/fprintftime (Depends-on): Add ignore-value.
13811
13812         exclude: avoid an unwarranted warning
13813         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13814
13815 2009-10-27  Eric Blake  <ebb9@byu.net>
13816
13817         fseek: avoid compilation failure when fflush is replaced
13818         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13819         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13820         module is in use.
13821         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13822         module is not in use; since REPLACE_FSEEK worked otherwise.
13823         (GNULIB_FTELLO): Likewise for ftell.
13824         Reported by Ian Beckwith and others.
13825
13826 2009-10-27  Bruno Haible  <bruno@clisp.org>
13827
13828         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13829         Reported by Jim Meyering.
13830
13831 2009-10-27  Jim Meyering  <jim@meyering.net>
13832             Bruno Haible  <bruno@clisp.org>
13833
13834         Avoid warning despite dropping the return value of fwrite.
13835         * lib/unicodeio.c: Include ignore-value.h.
13836         (fwrite_success_callback): Explicitly ignore fwrite's return value.
13837         * modules/unicodeio (Depends-on): Add ignore-value.
13838
13839 2009-10-26  Eric Blake  <ebb9@byu.net>
13840
13841         areadlinkat: fix fallback path
13842         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
13843         pointer and zero.
13844
13845 2009-10-22  Pádraig Brady  <P@draigBrady.com>
13846
13847         Use a better IO block size for modern systems
13848         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
13849         * lib/md2.c: Likewise.
13850         * lib/md4.c: Likewise.
13851         * lib/md5.c: Likewise.
13852         * lib/sha1.c: Likewise.
13853         * lib/sha256.c: Likewise.
13854         * lib/sha512.c: Likewise.
13855
13856 2009-10-22  Eric Blake  <ebb9@byu.net>
13857
13858         tests: avoid several compiler warnings
13859         * tests/test-getcwd.c (main): Avoid buffer underflow.
13860         * tests/test-getdate.c (main): String literals are not safe with
13861         putenv, so use setenv.  Declare unused argument.
13862         * modules/getdate-tests (Depends-on): Add setenv.
13863         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
13864         problems with string literals in char *.
13865         * tests/test-hash.c (main): Avoid shadowing declaration.
13866         (insert_new): Treat string literals as char const *.
13867         * tests/test-getopt.h (test_getopt): Likewise.
13868         (getopt_loop): Alter types to minimize casting elsewhere.
13869         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
13870         (test_getopt_long_posix): Likewise.
13871         (do_getopt_long): Add wrapper to minimize casting.
13872         * tests/test-atexit.c (clear_temp_file): Use void.
13873         * tests/test-areadlink-with-size.c (main): Declare unused
13874         arguments.
13875         * tests/test-areadlink.c (main): Likewise.
13876         * tests/test-areadlinkat-with-size.c (main): Likewise.
13877         * tests/test-areadlinkat.c (main): Likewise.
13878         * tests/test-canonicalize-lgpl.c (main): Likewise.
13879         * tests/test-canonicalize.c (main): Likewise.
13880         * tests/test-dirent-safer.c (main): Likewise.
13881         * tests/test-dirname.c (main): Likewise.
13882         * tests/test-dup2.c (main): Likewise.
13883         * tests/test-fchdir.c (main): Likewise.
13884         * tests/test-fcntl-h.c (main): Likewise.
13885         * tests/test-fcntl-safer.c (main): Likewise.
13886         * tests/test-fdopendir.c (main): Likewise.
13887         * tests/test-fdutimensat.c (main): Likewise.
13888         * tests/test-fflush.c (main): Likewise.
13889         * tests/test-filenamecat.c (main): Likewise.
13890         * tests/test-filevercmp.c (main): Likewise.
13891         * tests/test-fopen-safer.c (main): Likewise.
13892         * tests/test-fopen.c (main): Likewise.
13893         * tests/test-fpending.c (main): Likewise.
13894         * tests/test-fpurge.c (main): Likewise.
13895         * tests/test-freading.c (main): Likewise.
13896         * tests/test-fstatat.c (main): Likewise.
13897         * tests/test-fsync.c (main): Likewise.
13898         * tests/test-futimens.c (main): Likewise.
13899         * tests/test-getndelim2.c (main): Likewise.
13900         * tests/test-gettimeofday.c (main): Likewise.
13901         * tests/test-getopt.c (main): Likewise.
13902         * tests/test-i-ring.c (main): Likewise.
13903         * tests/test-inttypes.c (main): Likewise.
13904         * tests/test-link.c (main): Likewise.
13905         * tests/test-lstat.c (main): Likewise.
13906         * tests/test-math.c (main): Likewise.
13907         * tests/test-md5.c (main): Likewise.
13908         * tests/test-memchr2.c (main): Likewise.
13909         * tests/test-memrchr.c (main): Likewise.
13910         * tests/test-mkdir.c (main): Likewise.
13911         * tests/test-mkdirat.c (main): Likewise.
13912         * tests/test-mkfifoat.c (main): Likewise.
13913         * tests/test-open.c (main): Likewise.
13914         * tests/test-openat-safer.c (main): Likewise.
13915         * tests/test-openat.c (main): Likewise.
13916         * tests/test-quotearg.c (main): Likewise.
13917         * tests/test-rawmemchr.c (main): Likewise.
13918         * tests/test-readlink.c (main): Likewise.
13919         * tests/test-remove.c (main): Likewise.
13920         * tests/test-rename.c (main): Likewise.
13921         * tests/test-renameat.c (main): Likewise.
13922         * tests/test-rmdir.c (main): Likewise.
13923         * tests/test-sha1.c (main): Likewise.
13924         * tests/test-signal.c (main): Likewise.
13925         * tests/test-sigaction.c (main): Likewise.
13926         * tests/test-stat.c (main): Likewise.
13927         * tests/test-stat-time.c (main): Likewise.
13928         * tests/test-stddef.c (main): Likewise.
13929         * tests/test-stdint.c (main): Likewise.
13930         * tests/test-stdio.c (main): Likewise.
13931         * tests/test-stdlib.c (main): Likewise.
13932         * tests/test-strchrnul.c (main): Likewise.
13933         * tests/test-strerror.c (main): Likewise.
13934         * tests/test-string.c (main): Likewise.
13935         * tests/test-strtod.c (main): Likewise.
13936         * tests/test-strverscmp.c (main): Likewise.
13937         * tests/test-symlink.c (main): Likewise.
13938         * tests/test-symlinkat.c (main): Likewise.
13939         * tests/test-sys_stat.c (main): Likewise.
13940         * tests/test-sys_time.c (main): Likewise.
13941         * tests/test-time.c (main): Likewise.
13942         * tests/test-unistd.c (main): Likewise.
13943         * tests/test-unlink.c (main): Likewise.
13944         * tests/test-unlinkat.c (main): Likewise.
13945         * tests/test-utimens.c (main): Likewise.
13946         * tests/test-utimensat.c (main): Likewise.
13947         * tests/test-version-etc.c (main): Likewise.
13948         * tests/test-wchar.c (main): Likewise.
13949         * tests/test-wctype.c (main): Likewise.
13950         * tests/test-xprintf-posix.c (main): Likewise.
13951         * tests/test-posixtm.c (main): Likewise.
13952         (STREQ): Delete unused macro.
13953         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
13954         shadowed variables.
13955         * tests/test-memchr.c (main): Likewise.
13956
13957 2009-10-21  Eric Blake  <ebb9@byu.net>
13958
13959         areadlinkat: avoid failure on older glibc
13960         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
13961         rather than mis-comparing 0 against FUNC_RESULT of char*.
13962
13963 2009-10-21  Bruno Haible  <bruno@clisp.org>
13964
13965         * modules/stpncpy (License): Relicense under LGPLv2+.
13966         Reported by David Lutterkort <lutter@redhat.com>.
13967
13968 2009-10-20  Eric Blake  <ebb9@byu.net>
13969
13970         utimensat: work around Solaris 9 bug
13971         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
13972         has trailing slash bugs.
13973         * tests/test-lutimens.h (test_lutimens): Enhance test.
13974         * tests/test-utimens.h (test_utimens): Likewise.
13975         * doc/posix-functions/utime.texi (utime): Enhance documentation.
13976         * doc/posix-functions/utimes.texi (utimes): Likewise.
13977         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13978         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
13979         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
13980         * doc/posix-functions/futimens.texi (futimens): Likewise.
13981
13982         fdutimensat: new module
13983         * modules/fdutimensat: New file.
13984         * lib/fdutimensat.c (fdutimensat): Likewise.
13985         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
13986         * MODULES.html.sh (File system functions): Mention module.
13987         * modules/fdutimensat-tests: New test.
13988         * tests/test-fdutimensat.c: Likewise.
13989
13990         doc: regenerate INSTALL
13991         * doc/INSTALL: Reflect recent autoconf update.
13992         * doc/INSTALL.ISO: Likewise.
13993         * doc/INSTALL.UTF-8: Likewise.
13994
13995 2009-10-20  Pádraig Brady  <P@draigBrady.com>
13996
13997         acl: warn if ACL support is not detected
13998         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
13999
14000 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
14001
14002         * lib/nproc.h: Add extern "C" block for C++.
14003
14004 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
14005             Bruno Haible  <bruno@clisp.org>
14006
14007         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
14008         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
14009         * doc/posix-functions/isalpha.texi: Likewise.
14010         * doc/posix-functions/isblank.texi: Likewise.
14011         * doc/posix-functions/iscntrl.texi: Likewise.
14012         * doc/posix-functions/isdigit.texi: Likewise.
14013         * doc/posix-functions/isgraph.texi: Likewise.
14014         * doc/posix-functions/islower.texi: Likewise.
14015         * doc/posix-functions/isprint.texi: Likewise.
14016         * doc/posix-functions/ispunct.texi: Likewise.
14017         * doc/posix-functions/isspace.texi: Likewise.
14018         * doc/posix-functions/isupper.texi: Likewise.
14019         * doc/posix-functions/isxdigit.texi: Likewise.
14020
14021 2009-10-18  Bruno Haible  <bruno@clisp.org>
14022
14023         Tests for module 'isblank'.
14024         * modules/isblank-tests: New file.
14025         * tests/test-isblank.c: New file.
14026
14027         New module 'isblank'.
14028         * lib/isblank.c: New file.
14029         * m4/isblank.m4: New file.
14030         * modules/isblank: New file.
14031         * doc/posix-functions/isblank.texi: Mention the new module.
14032
14033 2009-10-18  Bruno Haible  <bruno@clisp.org>
14034
14035         New module 'ctype'.
14036         * lib/ctype.in.h: New file.
14037         * m4/ctype.m4: New file.
14038         * modules/ctype: New file.
14039         * doc/posix-headers/ctype.texi: Mention the new module.
14040
14041 2009-10-18  Jim Meyering  <meyering@redhat.com>
14042
14043         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
14044         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
14045         right after its initialization, rather than farther down.
14046         Keeping these in close proximity makes it easier to ensure
14047         that each such variable is initialized.  E.g.,
14048
14049             LIB_CLOCK_GETTIME=
14050             AC_SUBST([LIB_CLOCK_GETTIME])
14051
14052         This change also increments these serial numbers.
14053         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
14054         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14056
14057 2009-10-18  Bruno Haible  <bruno@clisp.org>
14058
14059         Don't let environment variables perturb build.
14060         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
14061         (gl_PREREQ_GETHRXTIME): ... not here.
14062
14063 2009-10-18  Bruno Haible  <bruno@clisp.org>
14064
14065         Avoid symlink attack in localcharset module.
14066         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
14067         (O_NOFOLLOW): Define fallback.
14068         (get_charset_aliases): Don't open the file if it is a symbolic link.
14069         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
14070         gl_FCNTL_H.
14071         (gl_FCNTL_H): Require it.
14072         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
14073         * modules/localcharset (Files): Add m4/fcntl_h.m4.
14074         Reported by Fergal Glynn <fglynn@veracode.com>.
14075
14076 2009-10-18  Bruno Haible  <bruno@clisp.org>
14077
14078         Implement nproc for mingw.
14079         * lib/nproc.c: Include <windows.h>
14080         (num_processors): On native Windows platforms, try GetSystemInfo.
14081
14082 2009-10-18  Bruno Haible  <bruno@clisp.org>
14083
14084         Implement nproc for IRIX.
14085         * lib/nproc.c: Include <sys/sysmp.h>.
14086         (num_processors): On IRIX systems, try sysmp.
14087         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
14088
14089 2009-10-18  Bruno Haible  <bruno@clisp.org>
14090
14091         Implement nproc for HP-UX.
14092         * lib/nproc.c: Include <sys/pstat.h>
14093         (num_processors): On HP-UX systems, try pstat_getdynamic.
14094         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
14095         pstat_getdynamic.
14096
14097 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
14098             Bruno Haible  <bruno@clisp.org>
14099
14100         Implement nproc for NetBSD, OpenBSD.
14101         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
14102         (ARRAY_SIZE): New macro.
14103         (num_processors): On BSD systems, try sysctl of HW_NCPU.
14104         * m4/nproc.m4: New file.
14105         * modules/nproc (Files): Add m4/nproc.m4.
14106         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
14107         (Makefile.am): Instead, augment lib_SOURCES.
14108
14109 2009-10-18  Bruno Haible  <bruno@clisp.org>
14110
14111         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
14112         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
14113         sys/param.h.
14114
14115 2009-10-16  Eric Blake  <ebb9@byu.net>
14116
14117         utimensat: new module
14118         * modules/utimensat: New file.
14119         * lib/utimensat.c (utimensat): Likewise.
14120         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14121         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
14122         so we can work around Linux bugs.
14123         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14124         * modules/sys_stat (Makefile.am): Substitute them.
14125         * lib/sys_stat.in.h (utimensat): Declare it.
14126         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14127         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14128         * modules/utimensat-tests: New test.
14129         * tests/test-utimensat.c: Likewise.
14130
14131         utimens: let lutimens work on non-symlinks
14132         * lib/utimens.c (lutimens): Fall back to utimens rather than
14133         failing with ENOSYS, when file is not a symlink.
14134         (utimens): Reduce redirection.
14135         * tests/test-lutimens.h (test_lutimens): Update test to cover
14136         non-symlinks.
14137         * tests/test-utimens.h (test_utimens): Update test to cover
14138         symlinks.
14139         * tests/test-utimens.c (main): Update caller.
14140
14141         utimens: cache whether utimensat syscall works
14142         * lib/utimens.c (utimensat_works_really): New cache variable.
14143         (fdutimens, lutimens): Use it to avoid failing syscall.
14144
14145         test-stat-time, test-utimens: improve portability
14146         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
14147         ext4 on alpha, and for cygwin.
14148         * tests/test-utimens-common.h: New file.
14149         (nap): Factor delays into single function.
14150         * tests/test-lutimens.h (test_lutimens): Use new header.
14151         * tests/test-futimens.h (test_futimens): Likewise.
14152         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
14153         timestamps to occur from same machine, as was done previously for
14154         test_utimens.
14155         * modules/utimens-tests (Files): Ship new file.
14156         * modules/futimens-tests (Files): Likewise.
14157         Reported in part by Jim Meyering.
14158
14159         sys_stat: sort replacement declarations
14160         * lib/sys_stat.in.h: Sort declarations.
14161         * lib/futimens.c (futimens): Fix typo.
14162
14163 2009-10-15  Jim Meyering  <meyering@redhat.com>
14164
14165         don't let environment settings perturb build
14166         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
14167         could cause a configure-time and/or build-time malfunction.
14168         Typically, a configure-time function-in-library test is performed
14169         via code like this:
14170
14171           LIB_VAR=
14172           AC_SUBST([LIB_VAR])
14173           prefix_saved_LIBS=$LIBS
14174             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
14175                        [test "$ac_cv_search_FUNC" = "none required" ||
14176                         LIB_VAR=$ac_cv_search_FUNC])
14177           LIBS=$prefix_saved_LIBS
14178
14179         However, in each of the files affected by this change, the LIB_VAR=
14180         initialization was omitted.  Thus, when set in the environment, its
14181         value would propagate into generated Makefiles when FUNC is not found
14182         in LIB_NAME.
14183         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
14184         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14186
14187 2009-10-14  Eric Blake  <ebb9@byu.net>
14188
14189         fchdir: avoid infinite recursion in mingw
14190         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
14191         recursing.
14192
14193         test-stat-time: port to mingw
14194         * tests/test-stat-time.c (force_unlink): Return a value.
14195         (test_ctime) [W32]: Fix compilation error.
14196         (nap): Don't call usleep with too large an argument.  Use
14197         force_unlink.
14198         * doc/pastposix-functions/usleep.texi (usleep): Document the
14199         portability issue.
14200
14201 2009-10-13  Jim Meyering  <meyering@redhat.com>
14202
14203         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
14204         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
14205         * modules/pipe-filter-ii: Likewise.
14206         * modules/sys_socket-tests: Likewise.
14207         * modules/tsearch-tests: Likewise.
14208         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
14209         (check): Depend on it.
14210
14211 2009-10-12  Eric Blake  <ebb9@byu.net>
14212
14213         utimens-tests: port to NFS file systems
14214         * tests/test-utimens.h (test_utimens): Refactor utimecmp
14215         comparisons to avoid spurious failures from timestamp drift
14216         between NFS machines.
14217
14218 2009-10-12  Eric Blake  <ebb9@byu.net>
14219
14220         stat-time-tests: minor cleanups
14221         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
14222         * tests/test-stat-time.c (nap): Separate assignment from call.
14223         Suggested by Paolo Bonzini and Bruno Haible.
14224
14225         sys_stat: guarantee struct timespec
14226         * lib/sys_stat.in.h (includes): Always include <time.h>
14227         * modules/sys_stat (Depends-on): Add time.
14228         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
14229         mode_t permission values.
14230         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
14231         get at subsecond timestamps.
14232
14233 2009-10-10  Eric Blake  <ebb9@byu.net>
14234
14235         futimens: new module
14236         * modules/futimens: New file.
14237         * lib/futimens.c (futimens): Likewise.
14238         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
14239         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
14240         we can work around Linux bugs.
14241         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14242         * modules/sys_stat (Makefile.am): Substitute them.
14243         * lib/sys_stat.in.h (futimens): Declare it.
14244         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14245         * doc/posix-functions/futimens.texi (futimens): Likewise.
14246         * modules/futimens-tests: New test.
14247         * tests/test-futimens.c: Likewise.
14248
14249         utimens: introduce fdutimens
14250         * lib/utimens.h (fdutimens): New prototype.
14251         * lib/utimens.c (gl_futimens): Move guts...
14252         (fdutimens): ...to new interface.
14253         * tests/test-utimens.c (do_fdutimens): Use it.
14254
14255         utimens: add UTIME_NOW and UTIME_OMIT support
14256         * lib/utimens.c (validate_timespec, update_timespec): New helper
14257         functions.
14258         (gl_futimens, lutimens): Use them.
14259         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
14260         stdbool, sys_stat.
14261         (Link): Mention resulting library dependency.
14262         * modules/utimecmp (Link): Likewise.
14263         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
14264         (Makefile.am): Pick up library dependency.
14265         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
14266         definition.
14267         * tests/test-sys_stat.c: Test the definitions.
14268         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
14269         * NEWS: Document library dependency.
14270
14271         utimecmp: support symlink timestamps
14272         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
14273         hashing when possible.  Use pathconf when available.
14274         (SYSCALL_RESOLUTION): Recognize tighter resolution.
14275         * modules/utimecmp (Depends-on): Add lstat.
14276
14277         utimens: add lutimens interface
14278         * lib/utimens.c (lutimens): New function.
14279         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
14280         * lib/utimens.h (lutimens): Declare new interface.
14281         * tests/test-utimens.c (main): Enhance test.
14282         * tests/test-lutimens.h (test_lutimens): New file.
14283         * modules/utimens-tests (Files): Distribute it.
14284         (Depends-on): Add symlink.
14285         (configure.ac): Check for usleep.
14286
14287         utimens: validate futimens usage
14288         * lib/utimens.c (gl_futimens): Require valid fd up front, using
14289         fewer syscalls on failure later on.  Avoid compiler warning on
14290         mingw.
14291         * modules/utimens (Depends-on): Add dup2.
14292
14293         utimens: add test
14294         * modules/utimens-tests: New test.
14295         * tests/test-utimens.h: New file.
14296         * tests/test-futimens.h: Likewise.
14297         * tests/test-utimens.c: Likewise.
14298
14299         doc: mention timestamp portability issues
14300         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
14301         instead.
14302         * doc/posix-functions/utime.texi (utime): Likewise.
14303         * doc/posix-functions/utimes.texi (utimes): Likewise.
14304         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
14305         instead.
14306         * doc/posix-functions/futimens.texi (futimens): Mention utimens
14307         module.
14308         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14309         Mention weakness with symlink timestamps.
14310         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
14311         to utimensat/futimens instead.
14312         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
14313
14314         test-dup2: enhance test
14315         * tests/test-dup2.c (main): Also check AT_FDCWD.
14316
14317         test-stat-time: avoid more spurious failures
14318         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
14319         xfs; and avoid race if the two timestamps cross quantization edge.
14320
14321         relocatable: prefer 'file system' over 'filesystem'
14322         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
14323         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
14324         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
14325         * doc/relocatable.texi (Enabling Relocatability): Likewise.
14326         * lib/relocatable.c (compute_curr_prefix): Likewise.
14327
14328 2009-10-10  Jim Meyering  <meyering@redhat.com>
14329
14330         stat-time-tests: check for the usleep function
14331         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
14332
14333 2009-10-10  Bruno Haible  <bruno@clisp.org>
14334
14335         * modules/xnanosleep: Put the Link section after the Include section.
14336
14337 2009-10-09  Eric Blake  <ebb9@byu.net>
14338
14339         dup2: work around FreeBSD 6.1 bug
14340         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
14341         * doc/posix-functions/dup2.texi (dup2): Document it.
14342         Reported by Nelson H. F. Beebe and Jim Meyering.
14343
14344         test-stat-time: port to buggy NFS clients
14345         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
14346         (test_ctime): Also skip test if mtime and ctime are skewed.
14347
14348         maint: prefer 'file system' over 'filesystem'
14349         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14350         * doc/posix-functions/lstat.texi (lstat): Likewise.
14351         * lib/file-has-acl.c (file_has_acl): Likewise.
14352         * lib/fwriteerror.c [TEST]: Likewise.
14353         * tests/test-areadlink.h (test_areadlink): Likewise.
14354         * tests/test-areadlinkat-with-size.c (main): Likewise.
14355         * tests/test-areadlinkat.c (main): Likewise.
14356         * tests/test-canonicalize-lgpl.c (main): Likewise.
14357         * tests/test-canonicalize.c (main): Likewise.
14358         * tests/test-fstatat.c (main): Likewise.
14359         * tests/test-linkat.c (main): Likewise.
14360         * tests/test-lstat.h (test_lstat_func): Likewise.
14361         * tests/test-mkdir.h (test_mkdir): Likewise.
14362         * tests/test-readlink.h (test_readlink): Likewise.
14363         * tests/test-remove.c (main): Likewise.
14364         * tests/test-rename.h (test_rename): Likewise.
14365         * tests/test-renameat.c (main): Likewise.
14366         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14367         * tests/test-symlink.h (test_symlink): Likewise.
14368         * tests/test-symlinkat.c (main): Likewise.
14369         * tests/test-unlink.h (test_unlink_func): Likewise.
14370         * tests/test-unlinkat.c (main): Likewise.
14371
14372         maint: make realtime library usage explicit
14373         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
14374         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
14375         * modules/settime (Link): Likewise.
14376         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
14377
14378         test-stat-time: speed up execution
14379         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
14380         warning on mingw.
14381         (nap): New helper function.
14382         (prepare_test): Use it to reduce sleep time.
14383         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
14384         execution.
14385         * modules/stat-time-tests (configure.ac): Check for usleep.
14386
14387 2009-10-09  Jim Meyering  <meyering@redhat.com>
14388
14389         selinux-h: always use getfilecon wrappers
14390         * lib/getfilecon.c: New file.
14391         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
14392         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
14393         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
14394         (fgetfilecon): Provide a stub.
14395         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
14396         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
14397         file unconditionally.
14398         When <selinux/selinux.h> is found, arrange to use wrappers.
14399         * modules/selinux-h (Files): Add getfilecon.c.
14400         (Makefile.am): Substitute include-next-related bits
14401         into the now-always-generated selinux/selinux.h file.
14402         * doc/glibc-functions/lgetfilecon.texi: New file.
14403         * doc/glibc-functions/fgetfilecon.texi: New file.
14404         * doc/glibc-functions/getfilecon.texi: New file.
14405         * doc/glibc-functions/getfilecon-desc.texi: New file.
14406         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
14407         which to pull in the new files.
14408         * MODULES.html.sh (Misc): Add selinux-h.
14409
14410 2009-10-08  Jim Meyering  <meyering@redhat.com>
14411
14412         unistd: fix comment typo
14413         * lib/unistd.in.h (euidaccess): Fix a comment typo.
14414
14415 2009-10-08  Eric Blake  <ebb9@byu.net>
14416
14417         areadlink: use SIZE_MAX consistently
14418         * modules/areadlink (Depends-on): Add stdint.
14419         * modules/areadlink-with-size (Depends-on): Likewise.
14420         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
14421         gives NULL; drop sys/types, since unistd gives size_t; and add
14422         stdint for SIZE_MAX.
14423         (SIZE_MAX): Rely on headers.
14424         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
14425         and add stdint.
14426         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
14427         (SIZE_MAX): Likewise.
14428         (INITIAL_BUF_SIZE): Turn into enum.
14429         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
14430
14431 2009-10-08  Jim Meyering  <meyering@redhat.com>
14432
14433         areadlinkat: avoid compilation failure
14434         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
14435         Fix typo in comment.
14436
14437 2009-10-07  Eric Blake  <ebb9@byu.net>
14438
14439         areadlinkat-with-size: new module
14440         * modules/areadlinkat-with-size: New module.
14441         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
14442         * lib/areadlink.h (areadlinkat): Declare it.
14443         * MODULES.html.sh (File system functions): Mention it.
14444         * modules/areadlinkat-with-size-tests: New test.
14445         * tests/test-areadlinkat-with-size.c: New file.
14446
14447         xreadlinkat: new module
14448         * modules/xreadlinkat: New module.
14449         * lib/xreadlinkat.c (xreadlinkat): New file.
14450         * lib/xreadlink.h (xreadlinkat): Declare it.
14451         * MODULES.html.sh (File system functions): Mention it.
14452
14453         areadlinkat: new module
14454         * lib/at-func.c (FUNC_FAIL): New define.
14455         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
14456         * modules/areadlinkat: New module.
14457         * lib/linkat.c (areadlinkat): Move...
14458         * lib/areadlinkat.c (areadlinkat): ...to new file.
14459         * lib/areadlink.h (areadlinkat): Declare it.
14460         * modules/linkat (Depends-on): Add areadlinkat.
14461         * MODULES.html.sh (File system functions): Mention it.
14462         * modules/areadlinkat-tests: New test.
14463         * tests/test-areadlinkat.c: New file.
14464
14465         areadlink, areadlink-with-size: add tests
14466         * modules/areadlink-tests: New test.
14467         * modules/areadlink-with-size-tests: Likewise.
14468         * tests/test-areadlink.h: New file.
14469         * tests/test-areadlink.c: Likewise.
14470         * tests/test-areadlink-with-size.c: Likewise.
14471
14472         maint: minor cleanups
14473         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
14474         _UNUSED_PARAMETER_ instead.
14475         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
14476         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
14477         * modules/linkat-tests (Files): Distribute test-link.h.
14478
14479         openat, utimens: whitespace cleanup
14480         * lib/openat.c: Prefer space throughout, rather than mix of 8
14481         spaces vs. tabs.
14482         * lib/at-func.c: Likewise.
14483         * lib/utimens.c: Likewise.
14484
14485         openat: avoid using wrong fd
14486         * lib/openat.c (openat_permissive): Reject user's fd if saving the
14487         working directory chooses same fd.
14488         * lib/at-func.c (AT_FUNC_NAME): Likewise.
14489
14490         mkdir, mkdirat: fix cygwin 1.5.x bug
14491         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
14492         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
14493         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
14494         bug.
14495         (gl_PREREQ_MKDIR): Delete unused macro.
14496         * modules/mkdir (Files): Track file rename.
14497         (configure.ac): Update macro name.
14498         * modules/openat (Depends-on): Add mkdir.
14499         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
14500
14501         mkdir, mkdirat: add tests
14502         * modules/mkdir-tests: New test.
14503         * tests/test-mkdir.h: New file.
14504         * tests/test-mkdir.c: Likewise.
14505         * tests/test-mkdirat.c: Likewise.
14506         * modules/openat-tests (Files): Add new files.
14507         (Makefile.am): Run new test.
14508
14509 2009-10-06  Eric Blake  <ebb9@byu.net>
14510
14511         doc: tweak *at function documentation
14512         * doc/posix-functions/faccessat.texi (faccessat): Mention
14513         known issue with replacement.
14514         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
14515         * doc/posix-functions/linkat.texi (linkat): Likewise.
14516         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14517         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14518         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14519         * doc/posix-functions/renameat.texi (renameat): Likewise.
14520         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14521
14522         openat: fix GNU/Hurd bug in unlinkat
14523         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
14524         broken.
14525         * doc/posix-functions/unlink.texi (unlink): Document this.
14526         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
14527
14528         fdopendir: fix GNU/Hurd bug
14529         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
14530         allowing non-directory fds.
14531         * lib/fdopendir.c (rpl_fdopendir): Work around it.
14532         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14533         * modules/dirent (Makefile.am): Substitute it.
14534         * lib/dirent.in.h (fdopendir): Declare replacement.
14535         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
14536         * tests/test-fdopendir.c (main): Test something other than
14537         /dev/null, since on Hurd that behaves like a directory.
14538
14539         test-symlink: port to GNU/Hurd
14540         * tests/test-symlink.h (test_symlink): Relax expected errno.
14541
14542         doc: tweak more cygwin information
14543         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
14544         now compatible with glibc.
14545         * doc/posix-functions/getopt.texi (getopt): Likewise.
14546
14547         getopt-gnu: add another test
14548         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
14549         guarantee behavior relied on by m4.
14550         * tests/test-getopt.c (main): Use it.
14551         * modules/getopt-posix-tests (Depends-on): Add setenv.
14552         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
14553
14554         getopt: fix compilation on darwin
14555         * lib/getopt.in.h (includes): Leave breadcrumbs during system
14556         include.
14557         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
14558         Reported by Ludovic Courtès.
14559
14560 2009-10-06  Bruno Haible  <bruno@clisp.org>
14561
14562         * modules/size_max (Description): Discourage its use.
14563         Reported by Simon Josefsson.
14564
14565 2009-10-06  Jim Meyering  <meyering@redhat.com>
14566
14567         linkat: avoid compilation failure
14568         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
14569
14570 2009-10-05  Eric Blake  <ebb9@byu.net>
14571
14572         linkat: support Linux 2.6.17
14573         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
14574         linkat on Linux, but allow cache variable override.
14575         * lib/linkat.c (rpl_linkat): Define override.
14576         * modules/linkat (Depends-on): Add symlinkat.
14577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
14578         * modules/unistd (Makefile.am): Substitute it.
14579         * lib/unistd.in.h (linkat): Declare replacement.
14580         Reported by Pádraig Brady.
14581
14582         quotearg: port test to systems with C.UTF-8 locale
14583         * tests/test-quotearg.c (struct result_strings): Add another
14584         member, differentiating between C.ASCII and C.UTF-8 handling.
14585         (compare_strings): Add parameter.
14586         (main): Adjust all callers.
14587
14588         getopt: avoid clash with FreeBSD _getopt_internal
14589         * lib/getopt.in.h (_getopt_internal): Override the name.
14590         * lib/getopt_int.h (includes): Pick up any overrides.
14591         Reported by Reuben Thomas.
14592
14593         hash: allow C89 compilation
14594         * lib/hash.c (check_tuning): Move declaration before statement.
14595         Reported by Reuben Thomas.
14596
14597 2009-10-05  Karl Berry  <karl@gnu.org>
14598
14599         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14600
14601 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14602             Bruno Haible  <bruno@clisp.org>
14603
14604         * lib/uname.c (uname): Use a table-driven algorithm to compute
14605         Windows NT versions.
14606
14607 2009-10-04  Bruno Haible  <bruno@clisp.org>
14608
14609         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14610         program_invocation_short_name.
14611         * modules/progname (configure.ac): Test for presence of
14612         program_invocation_short_name.
14613         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14614
14615 2009-10-04  Bruno Haible  <bruno@clisp.org>
14616
14617         * lib/progname.c (set_program_name): Fix comment.
14618         Reported by Jim Meyering.
14619
14620 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14621             Bruno Haible  <bruno@clisp.org>
14622
14623         * lib/uname.c: Include <string.h>.
14624         (uname): Do only one call to GetVersionEx in the common case.
14625
14626 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14627             Bruno Haible  <bruno@clisp.org>
14628
14629         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14630         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14631         (uname): Add support for Windows CE and various non-x86 CPU types.
14632
14633 2009-10-03  Bruno Haible  <bruno@clisp.org>
14634
14635         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14636         invocation to tests/configure.ac.
14637         Reported by Ian Beckwith <ianb@erislabs.net>.
14638
14639 2009-10-02  Eric Blake  <ebb9@byu.net>
14640
14641         fchdir: avoid compiler warning
14642         * lib/fchdir.c (canonicalize_file_name)
14643         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14644
14645         test-open: support mingw errno values
14646         * tests/test-open.h (test_open): Relax test.
14647         * tests/test-fopen.h (test_fopen): Likewise.
14648         * tests/test-openat-safer.c (main): Likewise.
14649
14650         open: fix opening directory on mingw
14651         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14652
14653         test-open: on GNU/Hurd, /dev/null is a directory
14654         * tests/test-fopen.h (main): Rename...
14655         (test_fopen): ...to this.  Use a guaranteed non-directory when
14656         confirming open behavior on trailing slash.
14657         * tests/test-openat-safer.c (main): Likewise.
14658         * tests/test-open.h (main): Likewise....
14659         (test_open): ...to this.
14660         * tests/test-fopen.c (main): Adjust caller.
14661         * tests/test-fopen-safer.c (main): Likewise.
14662         * tests/test-open.c (main): Likewise.
14663         * tests/test-fcntl-safer.c (main): Likewise.
14664         Reported by Samuel Thibault.
14665
14666         rename, fchdir: don't ignore chdir failure
14667         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14668         * lib/rename.c (rpl_rename) [W32]: Likewise.
14669         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14670         an empty destination directory if source cannot be renamed,
14671         although there is still possibility for failure.
14672         * doc/posix-functions/rename.texi (rename): Document the race.
14673         Reported by Jim Meyering.
14674
14675         maint: cleanup whitespace in recent commits
14676         * lib/rename.c (rpl_rename): Remove tabs.
14677         * tests/test-link.h (test_link): Likewise.
14678         * lib/fchdir.c (get_name): Likewise.
14679         Reported by Jim Meyering.
14680
14681 2009-10-02  Ben Pfaff  <blp@gnu.org>
14682
14683         relocatable-prog-wrapper: Add missing dependency on
14684         double-slash-root.
14685         * modules/relocatable-prog-wrapper: Add dependency.
14686         Reported by Ian Beckwith <ianb@erislabs.net>.
14687
14688 2009-10-02  Eric Blake  <ebb9@byu.net>
14689
14690         renameat: fix Solaris bugs
14691         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14692         needed fixing.
14693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14694         * modules/stdio (Makefile.am): Substitute it.
14695         * lib/stdio.in.h (renameat): Declare replacement.
14696         * lib/renameat.c (rpl_renameat): Implement fix.
14697
14698         renameat: new module
14699         * modules/renameat: New file.
14700         * lib/renameat.c (renameat): Likewise.
14701         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14703         * modules/stdio (Makefile.am): Substitute them.
14704         * lib/stdio.in.h (renameat): Declare it.
14705         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14706         * doc/posix-functions/renameat.texi (renameat): Likewise.
14707         * modules/renameat-tests: New test.
14708         * tests/test-renameat.c: Likewise.
14709
14710         rename: fix mingw bugs
14711         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14712         directory overwrite bugs.
14713
14714         rename: fix another cygwin 1.5 bug
14715         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14716         checks.
14717         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14718         unnecessary cygwin workarounds.  Also work around bug with moving
14719         full directory onto an empty one.
14720         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14721
14722         rename-dest-slash: merge into rename module
14723         * modules/rename-dest-slash (Status): Mark obsolete.
14724         (Depends-on): Add rename.
14725         (Files): Let rename do it all.
14726         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14727         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14728         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14729         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14730         * lib/rename.c (rpl_rename): Update comments.
14731
14732         rename: fix cygwin 1.5.x bugs
14733         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14734         * lib/rename.c (rpl_rename): Work around them.
14735         * modules/rename (Depends-on): Add same-inode.
14736
14737         rename: fix Solaris 10 bug
14738         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14739         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14740         was the only bug.
14741
14742         rename: fix Solaris 9 bug
14743         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14744         on non-directory.  Avoid calling exit.
14745         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14746         strdup.
14747         * modules/rename-tests (Depends-on): Drop lstat.
14748         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14749         (gl_PREREQ_RENAME): Delete unused macro.
14750
14751         rename-dest-slash: fix NetBSD bug
14752         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14753         links.
14754         * modules/rename-dest-slash (Depends-on): Add same-inode.
14755
14756         rename-tests: new test, exposes several platform bugs
14757         * modules/rename-tests: New file.
14758         * tests/test-rename.h: Likewise.
14759         * tests/test-rename.c: Likewise.
14760         * doc/posix-functions/rename.texi (rename): Improve documentation,
14761         including bugs that will eventually be fixed in gnulib.
14762
14763 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14764
14765         * lib/uname.c: Include <stdlib.h>
14766         (uname): Assume version info is available.
14767
14768 2009-10-02  Jim Meyering  <meyering@redhat.com>
14769
14770         gnu-web-doc-update: correct --help output
14771         * build-aux/gnu-web-doc-update: Make --help output relevant.
14772
14773         gnu-web-doc-update: add standard options
14774         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14775
14776         gnu-web-doc-update: New module.
14777         Use this script to automatically update the on-line web documentation
14778         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14779         * modules/gnu-web-doc-update: New file, from coreutils.
14780         * build-aux/gnu-web-doc-update: New script.
14781
14782 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14783
14784         link: LoadLibrary is not needed.
14785         * lib/link.c: Use GetModuleHandle.
14786
14787 2009-10-01  Eric Blake  <ebb9@byu.net>
14788
14789         getopt: bump serial number
14790         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14791         change.
14792
14793         tests: tighten link, rmdir, and remove tests
14794         * tests/test-link.h (includes): No need to use <config.h> here.
14795         Clean up if directory hard link was created, otherwise test for
14796         trailing '.'.
14797         * tests/test-linkat.c (main): Simplify.
14798         * tests/test-remove.c (main): Enhance test for trailing '.'.
14799         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14800
14801 2009-10-01  Jim Meyering  <meyering@redhat.com>
14802
14803         maint.mk: requiring "make major" was annoying, for a "minor" release.
14804         What is intended is "stable", to contrast with alpha and beta,
14805         so require "make stable", not "make major".
14806         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14807         (get_tool_versions): Likewise.
14808         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14809
14810 2009-09-30  Ben Pfaff  <blp@gnu.org>
14811
14812         Fix broken build of replacement for Windows tmpfile().
14813         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14814         flags argument added along with the 'mkostemp' module.
14815
14816 2009-09-28  Bruno Haible  <bruno@clisp.org>
14817
14818         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14819         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14820         to 'remove_elt'.
14821         (gl_list_remove): Update.
14822         * lib/gl_list.c (gl_list_remove): Update.
14823         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14824         to 'remove_elt'.
14825         (gl_oset_remove): Update.
14826         * lib/gl_list.c (gl_oset_remove): Update.
14827         Reported by Eric Blake.
14828
14829 2009-09-28  Eric Blake  <ebb9@byu.net>
14830
14831         doc: mention yet more cygwin 1.7 status
14832         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14833         cygwin.
14834         * doc/glibc-functions/execvpe.texi (execvpe): New file.
14835         * doc/gnulib.texi (Glibc unistd.h): Mention it.
14836
14837         argp: fix test failure
14838         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
14839         that are not upper-case.  Pass correct range to tolower.
14840
14841 2009-09-27  Jim Meyering  <meyering@redhat.com>
14842
14843         test-yesno: work around sparc-dash here-document infelicity
14844         Without this change, the literal \177 byte in a here document
14845         would make dash 0.5.5.1-3 access uninitialized memory.
14846         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
14847         Instead, use a marker, "@", and filter through tr to create the desired
14848         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
14849
14850 2009-09-27  Bruno Haible  <bruno@clisp.org>
14851
14852         Disable untested support for new flavours of ACLs on AIX.
14853         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
14854         progress.
14855         * lib/set-mode-acl.c (qset_acl): Likewise.
14856
14857 2008-12-07  Bruno Haible  <bruno@clisp.org>
14858
14859         Add support for new flavours of ACLs on AIX. (Untested.)
14860         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
14861         (file_has_acl): Add support for newer AIX.
14862         * lib/set-mode-acl.c (qset_acl): Likewise.
14863         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
14864         Rainer Tammer <tammer@tammer.net>.
14865
14866 2009-09-26  Eric Blake  <ebb9@byu.net>
14867
14868         argp: fix compilation of getopt
14869         * lib/getopt.in.h (includes): Use different guard than glibc.
14870         Reported by Sergey Poznyakoff.
14871
14872         doc: mention more cygwin 1.7 status
14873         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
14874         bug.
14875         * doc/posix-functions/execl.texi (execl): Likewise.
14876         * doc/posix-functions/execle.texi (execle): Likewise.
14877         * doc/posix-functions/execlp.texi (execlp): Likewise.
14878         * doc/posix-functions/execv.texi (execv): Likewise.
14879         * doc/posix-functions/execve.texi (execve): Likewise.
14880         * doc/posix-functions/execvp.texi (execvp): Likewise.
14881         * doc/glibc-functions/canonicalize_file_name.texi
14882         (canonicalize_file_name): Cygwin 1.7 now provides this.
14883         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
14884         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
14885         on AT_SYMLINK_NOFOLLOW.
14886
14887 2009-09-24  Eric Blake  <ebb9@byu.net>
14888
14889         test-linkat: make test more robust
14890         * tests/test-linkat.c (main): Avoid collision with EEXIST.
14891
14892         getopt: fix inclusion guards for cygwin
14893         * modules/getopt-posix (Depends-on): Add include-next.
14894         (Makefile.am): Substitute more items in replacement header.
14895         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
14896         <getopt.h>.
14897         * lib/getopt.in.h (includes): Use split inclusion guard, and
14898         prefer <getopt.h> over include <unistd.h> when one is present.
14899         (option): Also override name of 'struct option'.
14900
14901         same-inode: revert prior change; it is not yet ready
14902         * NEWS: Undo mention of this change.
14903         * lib/same-inode.h (same-inode.h): Undo tri-state change.
14904         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14905         * lib/cycle-check.c (cycle_check): Likewise.
14906         * lib/same.c (same_name): Likewise.
14907         * lib/at-func2.c (at_func2): Likewise.
14908
14909 2009-09-23  Eric Blake  <ebb9@byu.net>
14910
14911         linkat: new module
14912         * modules/linkat: New file.
14913         * lib/at-func2.c (at_func2): Likewise.
14914         * lib/linkat.c (linkat): Likewise.
14915         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14916         * lib/openat-priv.h (at_func2): Add declaration.
14917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14918         * modules/unistd (Makefile.am): Substitute them.
14919         * lib/unistd.in.h (linkat): Declare it.
14920         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14921         * doc/posix-functions/linkat.texi (linkat): Likewise.
14922         * doc/posix-functions/link.texi (link): Tweak wording.
14923         * tests/test-link.c (main): Move guts...
14924         * tests/test-link.h (test_link): ...into new file.
14925         * modules/linkat-tests: New test.
14926         * tests/test-linkat.c: Likewise.
14927         * modules/link-tests (Files): Ship new file.
14928         (Depends-on): Add stdbool.
14929
14930         dirname: add library-safe mdir_name
14931         * lib/dirname.h (mdir_name): New prototype.
14932         * lib/dirname.c (dir_name): Move guts...
14933         (mdir_name): ...to new function that avoids xalloc_die.
14934
14935         fchdir: another mingw fix
14936         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
14937         * lib/fchdir.c (get_name): New helper method; skips canonicalize
14938         on mingw (where it has not yet been ported), and make it optional
14939         elsewhere.
14940         (_gl_register_fd): Use it.
14941
14942         same-inode: make SAME_INODE tri-state, to port to mingw
14943         * NEWS: Mention this change.
14944         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
14945         st_ino always being 0.
14946         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14947         * lib/cycle-check.c (cycle_check): Likewise.
14948         * lib/same.c (same_name): Likewise.
14949
14950         lstat: avoid mingw compilation error
14951         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
14952         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
14953         lstat ourselves.
14954         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
14955         was adequate.
14956         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
14957         the checks for lstat.
14958         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
14959
14960         link: fix test failure on Solaris 9
14961         * lib/link.c (rpl_link): Don't assume link will catch bogus
14962         trailing slash on source.
14963
14964         test-symlinkat: enhance test
14965         * tests/test-readlink.c (main): Move guts...
14966         * tests/test-readlink.h (test_readlink): ...into new file.
14967         * tests/test-symlink.c (main): Move guts...
14968         * tests/test-symlink.h (test_symlink): ...into new file.
14969         * tests/test-symlinkat.c (main): Use new files for further
14970         coverage.
14971         (do_symlink, do_readlink): New helper functions.
14972         * modules/symlink-tests (Files): Ship new file.
14973         (Depends-on): Add stdbool.
14974         * modules/readlink-tests (Files): Ship new file.
14975         (Depends-on): Add stdbool.
14976         * modules/symlinkat-tests (Files): Use new files.
14977
14978 2009-09-23  Eric Blake  <ebb9@byu.net>
14979
14980         readlink: document portability issue with symlink length
14981         * doc/posix-functions/lstat.texi (lstat): Mention that some file
14982         systems have bogus st_size on symlinks, and mention the
14983         areadlink-with-size module.
14984         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14985         * doc/posix-functions/readlink.texi (readlink): Mention the
14986         areadlink module, and ERANGE failure.
14987         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14988         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
14989
14990         readlink: fix Solaris 9 bug with trailing slash
14991         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
14992         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
14993         * doc/posix-functions/readlink.texi (readlink): Document this.
14994         * modules/readlink-tests: New test.
14995         * tests/test-readlink.c: Likewise.
14996
14997         readlink: fix cygwin 1.5.x bug with return type
14998         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
14999         * lib/unistd.in.h (readlink): Use ssize_t.
15000         * lib/readlink.c (readlink): Likewise.
15001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15002         * modules/unistd (Makefile.am): Substitute it.
15003         * lib/unistd.in.h (readlink): Declare replacement.
15004         * doc/posix-functions/readlink.texi (readlink): Document this.
15005
15006         symlink: use throughout gnulib
15007         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
15008         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
15009         symlink is not used.
15010         * modules/symlinkat (Depends-on): Add symlink.
15011         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15012         * modules/canonicalize-tests (Depends-on): Likewise.
15013         * modules/lstat-tests (Depends-on): Likewise.
15014         * modules/openat-tests (Depends-on): Likewise.
15015         * modules/remove-tests (Depends-on): Likewise.
15016         * modules/rmdir-tests (Depends-on): Likewise.
15017         * modules/unlink-tests (Depends-on): Likewise.
15018         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
15019         * tests/test-canonicalize.c (symlink): Likewise.
15020         * tests/test-fstatat.c (symlink): Likewise.
15021         * tests/test-lstat.c (symlink): Likewise.
15022         * tests/test-remove.c (symlink): Likewise.
15023         * tests/test-rmdir.c (symlink): Likewise.
15024         * tests/test-unlink.c (symlink): Likewise.
15025         * tests/test-unlinkat.c (symlink): Likewise.
15026
15027         symlink: new module, for Solaris 9 bug
15028         * modules/symlink: New file.
15029         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15030         * lib/symlink.c: Likewise.
15031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15032         * modules/unistd (Makefile.am): Substitute them.
15033         * lib/unistd.in.h (symlink): Declare replacement.
15034         * MODULES.html.sh (File system functions): Mention it.
15035         * doc/posix-functions/symlink.texi (symlink): Likewise.
15036         * modules/symlink-tests: New test.
15037         * tests/test-symlink.c: Likewise.
15038
15039 2009-09-23  Bruno Haible  <bruno@clisp.org>
15040
15041         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
15042         when needed.
15043         Test case: gnulib-tool --import --with-tests atexit inttypes.
15044         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
15045
15046 2009-09-23  Bruno Haible  <bruno@clisp.org>
15047
15048         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
15049         subcommand, not in a subshell.
15050
15051 2009-09-22  Eric Blake  <ebb9@byu.net>
15052
15053         unistd: sort replacement declarations
15054         * lib/unistd.in.h: Sort declarations.
15055
15056         open, openat: minor optimization
15057         * lib/open.c (open): If open succeeded, len is non-zero.
15058         * lib/openat.c (rpl_openat): Likewise.
15059
15060         link-follow: ensure correct result
15061         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
15062         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
15063         distinguish between possible failures.
15064
15065 2009-09-21  Eric Blake  <ebb9@byu.net>
15066
15067         fts: avoid compiler warning
15068         * lib/fts.c (dirent_inode_sort_may_be_useful)
15069         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
15070
15071 2009-09-19  Bruno Haible  <bruno@clisp.org>
15072
15073         * lib/progreloc.c (canonicalize_file_name): New declaration.
15074
15075 2009-09-19  Eric Blake  <ebb9@byu.net>
15076
15077         link: fix quoting
15078         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
15079
15080         openat: fix openat bugs on Solaris 9
15081         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
15082         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
15083         * modules/openat (Depends-on): Add open.
15084         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
15085         * modules/fcntl-h (Makefile.am): Substitute it.
15086         * lib/fcntl.in.h (openat): Declare replacement.
15087         * doc/posix-functions/openat.texi (openat): Document this.
15088
15089         openat: move fstatat and unlinkat into correct files
15090         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
15091         compiled.
15092         * lib/openat.c (fstatat, unlinkat): Move...
15093         * lib/fstatat.c (fstatat): ...into correct files.
15094         * lib/unlinkat.c (unlinkat): Likewise.
15095
15096         openat: fix unlinkat bugs on Solaris 9
15097         * lib/unlinkat.c (unlinkat): New file.
15098         * modules/openat (Depends-on): Add unlink.
15099         (Files): Distribute it.
15100         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
15101         trailing slash behavior is broken.
15102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15103         * modules/unistd (Makefile.am): Substitute it.
15104         * lib/unistd.in.h (unlinkat): Declare replacement.
15105         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
15106
15107         openat: fix fstatat bugs on Solaris 9
15108         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
15109         stat.
15110         * doc/posix-functions/fstatat.texi (fstatat): Document this.
15111
15112         test-unlinkat: enhance test, to expose Solaris 9 bug
15113         * tests/test-unlink.c (main): Factor guts...
15114         * tests/test-unlink.h (test_rmdir_func): ...into new file.
15115         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
15116         * tests/test-rmdir.c (main): Adjust caller.
15117         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
15118         (unlinker): New helper function.
15119         (rmdirat): Enhance check.
15120         * modules/rmdir-tests (Depends-on): Add stdbool.
15121         * modules/unlink-tests (Depends-on): Likewise.
15122         (Files): Add test-unlink.h.
15123         * modules/openat-tests (Files): Likewise.
15124         (Depends-on): Add unlinkdir.
15125
15126         test-fstatat: new test, to expose Solaris 9 bugs
15127         * tests/test-stat.c (main): Factor guts...
15128         * tests/test-stat.h (test_stat_func): ...into new file.
15129         * tests/test-lstat.c (main): Factor guts...
15130         * tests/test-lstat.h (test_lstat_func): ...into new file.
15131         * tests/test-fstatat.c: New file.
15132         * modules/stat-tests (Files): Add test-stat.h.
15133         * modules/lstat-tests (Files): Add test-lstat.h.
15134         (Depends-on): Add stdbool.
15135         * modules/openat-tests (Depends-on): Add pathmax.
15136         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
15137         (Makefile.am): Run new test.
15138
15139         remove: new module, for mingw and Solaris 9 bugs
15140         * modules/remove: New file.
15141         * lib/remove.c: Likewise.
15142         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
15143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15144         * modules/stdio (Makefile.am): Use them.
15145         * lib/stdio.in.h (remove): Declare replacement.
15146         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15147         * doc/posix-functions/remove.texi (remove): Likewise.
15148         * modules/remove-tests: New test.
15149         * tests/test-remove.c: Likewise.
15150
15151         unlink: new module, for Solaris 9 bug
15152         * modules/unlink: New file.
15153         * lib/unlink.c: Likewise.
15154         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15156         * modules/unistd (Makefile.am): Use them.
15157         * lib/unistd.in.h (stat): Declare replacement.
15158         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15159         * doc/posix-functions/unlink.texi (unlink): Likewise.
15160         * modules/unlink-tests: New test.
15161         * tests/test-unlink.c: Likewise.
15162
15163         lstat: fix Solaris 9 bug
15164         * lib/lstat.c (lstat): Also check for trailing slash on
15165         non-symlink, non-directories.  Use stat module to simplify logic.
15166         * doc/posix-functions/lstat.texi (lstat): Document it.
15167         * modules/lstat-tests (Depends-on): Add errno, same-inode.
15168         (configure.ac): Check for symlink.
15169         * tests/test-lstat.c (main): Add more tests.
15170
15171         stat: add as dependency to other modules
15172         * modules/chown (Depends-on): Add stat.
15173         * modules/euidaccess (Depends-on): Likewise.
15174         * modules/fchdir (Depends-on): Likewise.
15175         * modules/isdir (Depends-on): Likewise.
15176         * modules/link (Depends-on): Likewise.
15177         * modules/lstat (Depends-on): Likewise.
15178         * modules/mkdir-p (Depends-on): Likewise.
15179         * modules/modechange (Depends-on): Likewise.
15180         * modules/open (Depends-on): Likewise.
15181         * modules/readlink (Depends-on): Likewise.
15182         * modules/same (Depends-on): Likewise.
15183
15184         stat: fix Solaris 9 bug
15185         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
15186         slash.
15187         * lib/stat.c (rpl_stat): Work around it.
15188         * doc/posix-functions/stat.texi (stat): Update documentation.
15189
15190         stat: new module, for mingw bug
15191         * modules/stat: New file.
15192         * lib/stat.c: Likewise.
15193         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15194         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15195         * modules/sys_stat (Makefile.am): Use them.
15196         * lib/sys_stat.in.h (stat): Declare replacement.
15197         * lib/openat.c (fstatat): Deal with lstat and stat being function
15198         macros.
15199         * modules/openat (Depends-on): Add inline.
15200         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15201         * doc/posix-functions/stat.texi (stat): Likewise.
15202         * modules/stat-tests: New test.
15203         * tests/test-stat.c: Likewise.
15204
15205 2009-09-19  Jim Meyering  <meyering@redhat.com>
15206
15207         syntax-check: detect unnecessary inclusion of canonicalize.h
15208         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
15209
15210 2009-09-19  Eric Blake  <ebb9@byu.net>
15211
15212         canonicalize-lgpl: adjust clients to use correct header
15213         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15214         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
15215         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
15216         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
15217         * lib/progreloc.c (includes): Likewise.
15218
15219 2009-09-19  Jim Meyering  <meyering@redhat.com>
15220
15221         test-posixtm.c: correct a comment
15222         * tests/test-posixtm.c: Correct first-line comment.
15223         Spotted by Eric Blake.
15224
15225 2009-09-16  Jim Meyering  <meyering@redhat.com>
15226
15227         posixtm-tests: make T const-correct; add a test case
15228         * tests/test-posixtm.c (T): Declare const.
15229         Add a test for -(2^31+1).
15230         Remove useless can-succeed-only-in-2002 test.
15231
15232         posixtm-tests: adjust the sole failing test
15233         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
15234         expected output matches what mktime now produces.  Cross-checked via
15235         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
15236
15237         posixtm: move #ifdef'd tests into a new module
15238         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
15239         * tests/test-posixtm.c: ... this new file.
15240         * modules/posixtm-tests: New module.
15241
15242 2009-09-19  Eric Blake  <ebb9@byu.net>
15243
15244         openat: simplify use of at-func.c
15245         * lib/at-func.c (includes): Include prerequisites here, to
15246         simplify requirements on client files.
15247         * lib/openat-priv.h: Add double-inclusion guard.
15248         * lib/faccessat.c (includes): Simplify.
15249         * lib/fchmodat.c (includes): Likewise.
15250         * lib/fchownat.c (includes): Likewise.
15251         * lib/mkdirat.c (includes): Likewise.
15252         * lib/mkfifoat.c (includes): Likewise.
15253         * lib/symlinkat.c (includes): Likewise.
15254
15255         openat: allow return of fd 0
15256         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
15257         * modules/save-cwd (Depends-on): Replace fcntl-safer with
15258         unistd-safer.
15259         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
15260         <fcntl.h>; this module does not leak fds.
15261         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
15262         must be allowed to return 0, leaving openat_safer to add the
15263         safety.
15264         (openat_permissive): Avoid writing to just-opened fd 2 if
15265         restoring the current directory fails.
15266         * lib/openat-die.c (openat_restore_fail): Add comment.
15267         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
15268         (save_cwd): Guarantee safe fd, but without use of open_safer.
15269         * tests/test-openat.c: New test.
15270         * modules/openat-tests (Files, Makefile.am): Distribute and build
15271         new file.
15272
15273         relocatable-prog-wrapper: fix build
15274         * modules/relocatable-prog-wrapper (Files): Update name of
15275         canonicalize m4 file, broken on 2009-09-17.
15276         Reported by emad hajjar <aleppos@hotmail.com>.
15277
15278 2009-09-19  Bruno Haible  <bruno@clisp.org>
15279
15280         * lib/safe-alloc.h: Use the standard header with GPL copyright.
15281         * lib/safe-alloc.c: Likewise.
15282         Reported by Ian Beckwith <ianb@erislabs.net>.
15283
15284 2009-09-18  Bruno Haible  <bruno@clisp.org>
15285
15286         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
15287         Reported by <erobles@sensacd.com.mx>.
15288
15289 2009-09-17  Eric Blake  <ebb9@byu.net>
15290
15291         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
15292         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
15293         slashes when checking if last component is missing.
15294         * tests/test-canonicalize.c (main): Test this.
15295
15296         canonicalize, canonicalize-lgpl: honor // if distinct from /
15297         * modules/canonicalize (Files): Add double-slash-root.m4.
15298         * modules/canonicalize-lgpl (Files): Likewise.
15299         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15300         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
15301         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
15302         fallback definition.
15303         (canonicalize_filename_mode): Use it to protect //.
15304         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
15305         (__realpath): Likewise.
15306         * tests/test-canonicalize.c (main): Test this.
15307         * tests/test-canonicalize-lgpl.c (main): Likewise.
15308         * modules/canonicalize-tests (Depends-on): Add same-inode.
15309         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15310
15311         canonicalize-lgpl: fix glibc bug with trailing slash
15312         * m4/canonicalize-lgpl.m4: Move contents...
15313         * m4/canonicalize.m4: ...here.
15314         (gl_CANONICALIZE_LGPL): Factor realpath check...
15315         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
15316         glibc 2.3.5 bug, fixed 2005-04-27.
15317         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
15318         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
15319         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
15320         * modules/canonicalize-lgpl (Files): Manage file rename.
15321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15322         * modules/stdlib (Makefile.am): Substitute witness.
15323         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
15324         is needed.
15325         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
15326         replacement is required.
15327         * lib/canonicalize.c (canonicalize_file_name): Likewise.
15328         * doc/glibc-functions/canonicalize_file_name.texi
15329         (canonicalize_file_name): Document this.
15330         * doc/posix-functions/realpath.texi (realpath): Likewise.
15331
15332         canonicalize-lgpl: reject non-directory with trailing slash
15333         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
15334         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
15335         catches failures in glibc 2.3.5.
15336         * tests/test-canonicalize.c (main): Likewise.
15337
15338         canonicalize-lgpl: use native realpath if it works
15339         * lib/canonicalize-lgpl.c (realpath): Guard with
15340         FUNC_REALPATH_WORKS.
15341         * lib/stdlib.in.h (realpath): Make declaration optional based on
15342         HAVE_REALPATH.
15343         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
15344         native realpath works.
15345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15346         * modules/stdlib (Makefile.am): Substitute witness.
15347
15348         canonicalize, canonicalize-lgpl: use <stdlib.h>
15349         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
15350         (Include): Mention <stdlib.h>.
15351         (configure.ac): Mention functions we provide.
15352         * modules/canonicalize (configure.ac): Likewise.
15353         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
15354         realpath if canonicalize_file_name is missing.
15355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
15356         * modules/stdlib (Makefile.am): Substitute witnesses.
15357         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
15358         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
15359         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
15360         * NEWS: Document this.
15361         * doc/glibc-functions/canonicalize_file_name.texi
15362         (canonicalize_file_name): Likewise.
15363         * doc/posix-functions/realpath.texi (realpath): Likewise.
15364         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
15365
15366         test-canonicalize: consolidate into single C program
15367         * tests/test-canonicalize.sh: Delete; move setup into...
15368         * tests/test-canonicalize.c (main): ...the program, making it
15369         easier to run in debugger.  Add some tests.
15370         * modules/canonicalize-tests (Files): Remove unused file.
15371         (Depends-on): Add progname.
15372         (configure.ac, Makefile.am): Simplify.
15373
15374         test-canonicalize-lgpl: consolidate into single C program
15375         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
15376         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
15377         easier to run in debugger.  Add some tests.
15378         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
15379         (configure.ac, Makefile.am): Simplify.
15380
15381         canonicalize: avoid resolvepath
15382         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
15383         unnecessary checks.
15384         * lib/canonicalize.c (includes): Simplify.
15385         (canonicalize_file_name): Drop resolvepath implementation.
15386         * modules/canonicalize (Depends-on): Drop filenamecat.
15387
15388         canonicalize: don't lose errno
15389         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
15390         over calls to free.
15391
15392         canonicalize: simplify errno handling
15393         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
15394         assignment.
15395
15396         canonicalize, canonicalize-lgpl: update module dependencies
15397         * modules/canonicalize (Depends-on): Add extensions, lstat,
15398         pathmax, stdlib.
15399         (Files): Drop pathmax.h.
15400         (configure.ac): Adjust macro name.
15401         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
15402         lstat, stdlib, sys_stat.
15403         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
15404         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
15405         extensions.
15406         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
15407         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
15408         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
15409         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
15410         declaration, if available.
15411         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
15412         we can rely on the readlink module.
15413         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
15414         (includes): Use <unistd.h> unconditionally.
15415
15416 2009-09-17  Eric Blake  <ebb9@byu.net>
15417
15418         maint: make Include sections of modules consistent
15419         * modules/alloca: Use only header name; no need to list #include.
15420         * modules/alloca-opt: Likewise.
15421         * modules/arpa_inet: Likewise.
15422         * modules/canon-host: Likewise.
15423         * modules/configmake: Likewise.
15424         * modules/dirent: Likewise.
15425         * modules/eealloc: Likewise.
15426         * modules/environ: Likewise.
15427         * modules/fchdir: Likewise.
15428         * modules/fcntl: Likewise.
15429         * modules/fcntl-h: Likewise.
15430         * modules/gethrxtime: Likewise.
15431         * modules/gettime: Likewise.
15432         * modules/ignore-value: Likewise.
15433         * modules/inet_ntop: Likewise.
15434         * modules/inet_pton: Likewise.
15435         * modules/inttypes: Likewise.
15436         * modules/isnand-nolibm: Likewise.
15437         * modules/isnanf-nolibm: Likewise.
15438         * modules/mbchar: Likewise.
15439         * modules/mbfile: Likewise.
15440         * modules/mbiter: Likewise.
15441         * modules/mbuiter: Likewise.
15442         * modules/netdb: Likewise.
15443         * modules/netinet_in: Likewise.
15444         * modules/nproc: Likewise.
15445         * modules/pagealign_alloc: Likewise.
15446         * modules/poll: Likewise.
15447         * modules/printf-frexp: Likewise.
15448         * modules/pthread: Likewise.
15449         * modules/putenv: Likewise.
15450         * modules/random_r: Likewise.
15451         * modules/relocatable-prog: Likewise.
15452         * modules/search: Likewise.
15453         * modules/select: Likewise.
15454         * modules/selinux-h: Likewise.
15455         * modules/settime: Likewise.
15456         * modules/signal: Likewise.
15457         * modules/size_max: Likewise.
15458         * modules/socklen: Likewise.
15459         * modules/ssize_t: Likewise.
15460         * modules/stdarg: Likewise.
15461         * modules/stdbool: Likewise.
15462         * modules/stddef: Likewise.
15463         * modules/stdint: Likewise.
15464         * modules/stdio: Likewise.
15465         * modules/stdlib: Likewise.
15466         * modules/string: Likewise.
15467         * modules/strings: Likewise.
15468         * modules/sys_file: Likewise.
15469         * modules/sys_ioctl: Likewise.
15470         * modules/sys_select: Likewise.
15471         * modules/sys_socket: Likewise.
15472         * modules/sys_stat: Likewise.
15473         * modules/sys_time: Likewise.
15474         * modules/sys_times: Likewise.
15475         * modules/sys_utsname: Likewise.
15476         * modules/sys_wait: Likewise.
15477         * modules/sysexits: Likewise.
15478         * modules/time: Likewise.
15479         * modules/times: Likewise.
15480         * modules/tmpfile: Likewise.
15481         * modules/trim: Likewise.
15482         * modules/unistd: Likewise.
15483         * modules/wchar: Likewise.
15484         * modules/wctype: Likewise.
15485
15486 2009-09-17  Bruno Haible  <bruno@clisp.org>
15487
15488         Make getdate.y compile on QNX and NetBSD 5 / i386.
15489         * m4/getdate.m4 (gl_GETDATE): Conditionally define
15490         TIME_T_FITS_IN_LONG_INT.
15491         * lib/getdate.y (long_time_t): New type.
15492         (relative_time): Change type of 'seconds' field to long_time_t.
15493         (get_date): Update types of local variables. Check against overflow
15494         during conversion from long_time_t to time_t.
15495         Reported by Matt Kraai <kraai@ftbfs.org>
15496         and Hasso Tepper <hasso@netbsd.org>.
15497
15498 2009-09-17  Bruno Haible  <bruno@clisp.org>
15499
15500         * modules/COPYING: Update copyright years.
15501         * modules/README: Likeiwse.
15502         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
15503         Reported by Ian Beckwith <ianb@erislabs.net>.
15504
15505 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15506
15507         * users.txt: Update references for gnuit package.
15508
15509 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15510
15511         * m4/getdelim.m4: Fix typo in copyright line.
15512
15513 2009-09-17  Bruno Haible  <bruno@clisp.org>
15514
15515         * lib/atoll.c: Use the standard header with GPL copyright.
15516         * lib/argz.in.h: Likewise.
15517         * lib/glob.c: Likewise.
15518         * lib/glob-libc.h: Likewise.
15519         * lib/random_r.c: Likewise.
15520         * lib/siglist.h: Likewise.
15521         * lib/strsignal.c: Likewise.
15522         Reported by Ian Beckwith <ianb@erislabs.net>.
15523
15524 2009-09-17  Eric Blake  <ebb9@byu.net>
15525
15526         rmdir: ensure correct dependency order
15527         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
15528
15529 2009-09-17  Bruno Haible  <bruno@clisp.org>
15530
15531         Disable assertion that fails on NetBSD 5 / i386.
15532         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
15533         Reported by Sam Steingold <sds@gnu.org>
15534         and Hasso Tepper <hasso@netbsd.org>.
15535
15536 2009-09-16  Eric Blake  <ebb9@byu.net>
15537
15538         unlinkdir: port to mingw
15539         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
15540         on which no one can unlink a directory.
15541
15542         stdlib: sort witness names
15543         * modules/stdlib (Makefile.am): Sort replacements.
15544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15545         * lib/stdlib.in.h: Likewise.
15546
15547         parse-duration-tests: avoid link failure
15548         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
15549         LIBINTL.
15550         Reported by Tom G. Christensen.
15551
15552         openat-tests: ensure unlinkat behaves like rmdir
15553         * tests/test-rmdir.c (main): Factor guts...
15554         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
15555         * modules/rmdir-tests (Files): Ship new file.
15556         * modules/openat-tests: New test.
15557         * tests/test-unlinkat.c: Likewise.
15558
15559         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
15560         * modules/rmdir-errno (Status, Notice): Now obsolete.
15561
15562         rmdir: work around cygwin 1.5.x and mingw bugs
15563         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
15564         * lib/rmdir.c (rmdir): Work around it.
15565         * modules/rmdir (Status, Notice): No longer obsolete.
15566         (Files): Add dos.m4.
15567         (Depends-on): Add unistd.
15568         (configure.ac): Set witnesses.
15569         (License): Relax to LGPLv2+.
15570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
15571         * modules/unistd (Makefile.am): Substitute witnesses.
15572         * lib/unistd.in.h (rmdir): Declare replacement.
15573         * doc/posix-functions/rmdir.texi (rmdir): Document this.
15574         * modules/rmdir-tests: New tests.
15575         * tests/test-rmdir.c: Likewise.
15576
15577 2009-09-15  Eric Blake  <ebb9@byu.net>
15578
15579         fchdir: improve use of replacement functions
15580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
15581         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
15582         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
15583         REPLACE_CLOSEDIR.
15584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
15585         * modules/sys_stat (Makefile.am): Substitute correct witness.
15586         * modules/dirent (Makefile.am): Likewise.
15587         * modules/unistd (Makefile.am): Likewise.
15588         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
15589         * lib/unistd.in.h (dup): Likewise.
15590         * lib/sys_stat.in.h (fstat): Likewise.
15591
15592         maint: ignore gnulib-tool temp files
15593         * .gitignore: Ignore files created during gnulib-tool --test.
15594
15595 2009-09-13  Jim Meyering  <meyering@redhat.com>
15596
15597         posixtm: don't reject a time that specify "60" as the number of seconds
15598         * lib/posixtm.c (posixtime): The code to reject invalid dates
15599         would also reject a time specified with the .60 suffix.
15600         But POSIX allows that, in order to accommodate leap seconds.
15601         So don't reject it.
15602         (main): Adjust tests accordingly.
15603         * modules/posixtm (Depends-on): Add stpcpy.
15604
15605 2009-09-11  Jim Meyering  <meyering@redhat.com>
15606
15607         announce-gen: include [$release_type] in emitted Subject:
15608         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15609         e.g., [stable] in the emitted Subject: line.
15610
15611 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15612
15613         Remove obsolete macros from several modules.
15614         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15615         obsolete Autoconf macros with their modern counterparts.
15616         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15617         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15618         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15619         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15620         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15621         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15622         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15623         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15624         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15625         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15626         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15627         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15628         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15629         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15630         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15631         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15632         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15633         * m4/time_r.m4 (gl_TIME_R): Likewise.
15634         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15635         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15636         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15637
15638         Fix copyright header in build-aux scripts.
15639         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15640         recommendation.
15641         * build-aux/ncftpput-ftp: Likewise.
15642         * build-aux/update-copyright: Likewise.
15643
15644 2009-09-09  Eric Blake  <ebb9@byu.net>
15645
15646         test-link: allow Linux choice of errno
15647         * tests/test-link.c (main): Relax test for alternate error.
15648
15649         strndup: fix improper m4 caching
15650         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15651         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15652         (gl_PREREQ_STRNDUP): Delete.
15653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15654         * modules/string (Makefile.am): Substitute it.
15655         * lib/string.in.h (strndup): Modernize prototype.
15656
15657         getcwd: port to mingw
15658         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15659         different from the POSIX assumptions made throughout the getcwd
15660         module; fortunately, the mingw getcwd does not need replacement.
15661         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15662         * modules/getcwd-tests: New test.
15663         * tests/test-getcwd.c: Likewise.
15664
15665         link: fix platform bugs
15666         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15667         * lib/link.c (link): Work around them.  Fix related mingw bug.
15668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15669         * modules/unistd (Makefile.am): Substitute it.
15670         * lib/unistd.in.h (link): Declare replacement.
15671         * doc/posix-functions/link.texi (link): Document this.
15672         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15673
15674         test-link: consolidate into single C program, test more cases
15675         * tests/test-link.sh: Delete.
15676         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15677         at least Cygwin and Solaris.
15678         * modules/link-tests (Files): Remove unused file.
15679         (Depends-on): Add errno, sys_stat.
15680         (Makefile.am): Simplify.
15681
15682 2009-09-08  Bruno Haible  <bruno@clisp.org>
15683
15684         Work around towlower, towupper bug on mingw.
15685         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15686         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15687         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15688         * doc/posix-functions/towupper.texi: Likewise.
15689         Reported by Eric Blake.
15690
15691 2009-09-08  Jim Meyering  <meyering@redhat.com>
15692
15693         build: don't try to run autoheader if we don't use it
15694         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15695         is not used in configure.ac.
15696
15697 2009-09-08  Eric Blake  <ebb9@byu.net>
15698
15699         euidaccess: fix compilation error
15700         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15701
15702         rawmemchr: relax license
15703         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15704         okay.
15705         Reported by Jim Meyering.
15706
15707         mkfifoat: new module
15708         * modules/mkfifoat: New file.
15709         * lib/mkfifoat.c: Likewise.
15710         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15711         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15712         * modules/sys_stat (Makefile.am): Use them.
15713         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15714         * MODULES.html.sh (File system functions): Mention module.
15715         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15716         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15717         * modules/mkfifoat-tests: New test.
15718         * tests/test-mkfifoat.c: Likewise.
15719
15720         strchrnul: relax license
15721         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15722         okay.
15723         Reported by Jim Meyering.
15724
15725 2009-09-08  Eric Blake  <ebb9@byu.net>
15726
15727         fstatat: fix compilation on Solaris
15728         * lib/fstatat.c (includes): Add fcntl.h.
15729         Reported by Pádraig Brady.
15730
15731 2009-09-07  Eric Blake  <ebb9@byu.net>
15732
15733         rename: modernize replacement
15734         * modules/rename (Depends-on): Add stdio.
15735         (configure.ac): Declare witness.
15736         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15737         stdio take care of replacement.
15738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15739         * modules/stdio (Makefile.am): Substitute them.
15740         * lib/stdio.in.h (rename): Declare replacement.
15741         * lib/rename.c (includes): Allow cross-compilation to non-windows
15742         machines.
15743         * doc/posix-functions/rename.texi (rename): Improve
15744         documentation.
15745
15746         stdio: sort witness names
15747         * modules/stdio (Makefile.am): Sort replacements.
15748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15749         * lib/stdio.in.h: Likewise.
15750
15751         getcwd: minor cleanups
15752         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15753         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15754
15755         openat: provide more convenience names
15756         * modules/faccessat (configure.ac): Add C witness.
15757         * lib/unistd.in.h (readlinkat): Fix typo.
15758         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15759         convenience wrappers.
15760         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15761         wrappers in syntax checks.
15762
15763 2009-09-06  Eric Blake  <ebb9@byu.net>
15764
15765         doc: fix comments in recent patches
15766         * lib/faccessat.c: Mention correct function.
15767         * lib/fchmodat.c: Likewise.
15768         * lib/fchownat.c: Likewise.
15769         * lib/symlinkat.c: Likewise.
15770         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15771         constants.
15772
15773         faccessat, symlinkat: continue cleanup of previous patch
15774         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15775         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15776         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15778         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15779         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15780         set.
15781
15782 2009-09-06  Bruno Haible  <bruno@clisp.org>
15783
15784         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15785         (fstatat): Declare if GNULIB_FSTATAT is set.
15786         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15787         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15788         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15789         * modules/fcntl-h (Files): Remove m4/openat.m4.
15790         * modules/sys_stat (Files): Remove m4/openat.m4.
15791         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15792         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15793         * modules/unistd (Files): Remove m4/openat.m4.
15794         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15795         GNULIB_OPENAT.
15796         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15797         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15798         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15799         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15800         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15801         gl_OPENAT_DEFAULTS.
15802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15803         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15804         Don't require gl_OPENAT_DEFAULTS.
15805         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15806         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15807         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15808         (gl_OPENAT_DEFAULTS): Remove macro.
15809
15810 2009-09-06  Bruno Haible  <bruno@clisp.org>
15811
15812         * modules/openat (configure.ac): Remove unneeded witness.
15813
15814 2009-09-06  Bruno Haible  <bruno@clisp.org>
15815
15816         Set errno to ENOSYS when a function is entirely unsupported.
15817         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15818         EOPNOTSUPP.
15819         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15820         * modules/chown (Depends-on): Remove errno.
15821
15822 2009-09-06  Bruno Haible  <bruno@clisp.org>
15823
15824         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15825
15826 2009-09-06  Bruno Haible  <bruno@clisp.org>
15827
15828         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15829
15830 2009-09-06  Ben Pfaff  <blp@gnu.org>
15831             Bruno Haible  <bruno@clisp.org>
15832
15833         Work around a glibc bug in strtok_r.
15834         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
15835         Undefine if UNDEFINE_STRTOK_R is set.
15836         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
15837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15838         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
15839         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
15840         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
15841         UNDEFINE_STRTOK_R.
15842         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
15843
15844 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15845
15846         exclude: minor fix
15847         * lib/exclude.c: Include wctype.h
15848
15849 2009-09-06  Akim Demaille  <demaille@gostai.com>
15850
15851         bootstrap: improve error message
15852         * build-aux/bootstrap (find_tool): Upon failure, report the list
15853         of candidates.
15854         Honor the initial value of the envvar.
15855
15856 2009-09-05  Eric Blake  <ebb9@byu.net>
15857
15858         symlinkat: new module
15859         * modules/symlinkat: New file.
15860         * lib/symlinkat.c: Likewise.
15861         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15863         * modules/unistd (Makefile.am): Use them.
15864         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
15865         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
15866         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
15867         * MODULES.html.sh (File system functions): Mention module.
15868         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15869         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15870         * modules/symlinkat-tests: New test.
15871         * tests/test-symlinkat.c: Likewise.
15872
15873         test-openat-safer: add more checks
15874         * tests/test-openat-safer.c (main): Check more code paths.
15875
15876 2009-09-05  Jim Meyering  <meyering@redhat.com>
15877
15878         syntax-check: detect unnecessary inclusion of openat.h
15879         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
15880
15881 2009-09-05  Bruno Haible  <bruno@clisp.org>
15882
15883         Support towlower, towupper.
15884         * doc/posix-functions/towlower.texi: Mention module wctype.
15885         * doc/posix-functions/towupper.texi: Likewise.
15886         * lib/wctype.in.h (towlower, towupper): New functions.
15887         * tests/test-wctype.c: Include stdio.h, stdlib.h.
15888         (ASSERT): New macro.
15889         (e): New variable.
15890         (main): Test also towlower, towupper. Test WEOF argument.
15891         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15892
15893 2009-09-05  Bruno Haible  <bruno@clisp.org>
15894
15895         Fix conversion behaviour when the input is invalid.
15896         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
15897         mark occurring in first pass of indirect conversion.
15898         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
15899         input.
15900         Found by clang's static analyzer.
15901
15902 2009-09-05  Bruno Haible  <bruno@clisp.org>
15903
15904         * tests/test-striconveh.c (main): Test indirect conversion on platforms
15905         where direct conversion is possible.
15906
15907 2009-09-04  Eric Blake  <ebb9@byu.net>
15908
15909         openat: fail with ENOENT on empty name
15910         * lib/openat-proc.c (openat_proc_name): Special-case the empty
15911         buffer.
15912
15913         link-follow: fix logic bug in prior patch
15914         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
15915         reversed sense of yes and no in prior patch.  Avoid confusing
15916         compilation failure with desired semantics.
15917
15918         link-follow: accomodate mingw and cross-compilation
15919         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
15920         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
15921         cross-compilation results to -1, to make linkat easier to
15922         implement when cross-compiling.  Trivially support mingw.
15923         * modules/link-follow (configure.ac): Call new name.
15924         * NEWS: Mention this.
15925
15926 2009-09-03  Eric Blake  <ebb9@byu.net>
15927
15928         faccessat: compile replacement
15929         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
15930         needed.
15931
15932         fts: fix compilation error
15933         * lib/fts.c (includes): Re-add "openat.h", for
15934         openat_needs_fchdir.
15935
15936         faccessat: new module
15937         * modules/faccessat: New file.
15938         * lib/faccessat.c: Likewise.
15939         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15941         * modules/unistd (Makefile.am): Use it.
15942         * lib/unistd.in.h (faccessat): Declare it.
15943         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
15944         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
15945         * MODULES.html.sh (File system functions): Mention it.
15946         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
15947         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15948
15949         euidaccess: prefer POSIX over non-standard implementation
15950         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
15951         * lib/euidaccess.c (euidaccess): Use it if available.
15952
15953         openat: make template easier to use
15954         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
15955         AT_FUNC_F2 to be undefined.
15956         (VALIDATE_FLAG): New macro; use it to reject bad flags.
15957         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
15958         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
15959         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
15960         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
15961         Likewise.
15962         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
15963         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
15964         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
15965         Likewise.
15966
15967         openat: declare in POSIX headers
15968         * NEWS: Mention this.
15969         * modules/openat (configure.ac): Declare witnesses.
15970         (Depends-on): Add fcntl-h, sys_stat, unistd.
15971         (Include): Mention correct headers.
15972         * modules/fcntl-h (Depends-on): Add link-warning.
15973         (Files): Add openat.m4.
15974         (Makefile.am): Substitute witnesses.
15975         * modules/sys_stat (Files, Makefile.am): Likewise.
15976         * modules/unistd (Files, Makefile.am): Likewise.
15977         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
15978         (gl_OPENAT_DEFAULTS): New macro.
15979         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
15980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
15981         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
15982         (SYS_STAT_H): Remove unused variable.
15983         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
15984         * lib/fcntl--.h (includes): Remove unneeded header.
15985         * lib/openat-safer.c (includes): Likewise.
15986         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
15987         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
15988         appropriate headers.
15989         (__OPENAT_PREFIX): Delete.
15990         * lib/fcntl.in.h (openat): Provide declaration.
15991         (AT_FDCWD): Fix Solaris bug.
15992         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
15993         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
15994         * lib/fchmodat.c (includes):  Adjust to find declaration.
15995         * lib/fchownat.c (includes): Likewise.
15996         * lib/mkdirat.c (includes): Likewise.
15997         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
15998         still visible.
15999
16000 2009-09-02  Eric Blake  <ebb9@byu.net>
16001
16002         errno: use consistently
16003         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
16004         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
16005         * lib/canonicalize.c (ELOOP): Likewise.
16006         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
16007         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
16008         * lib/lchown.c (EOPNOTSUPP): Likewise.
16009         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
16010         * lib/savewd.c (ESTALE): Likewise.
16011         * lib/settime.c (ENOSYS): Likewise.
16012         * lib/utimens.c (ENOSYS): Likewise.
16013         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
16014         * lib/chdir-safer.c (ELOOP): Likewise.
16015         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
16016         * modules/c-stack (Depends-on): Add errno.
16017         * modules/canonicalize (Depends-on): Likewise.
16018         * modules/chdir-safer (Depends-on): Likewise.
16019         * modules/fdopendir (Depends-on): Likewise.
16020         * modules/inet_ntop (Depends-on): Likewise.
16021         * modules/inet_pton (Depends-on): Likewise.
16022         * modules/lchown (Depends-on): Likewise.
16023         * modules/openat (Depends-on): Likewise.
16024         * modules/savewd (Depends-on): Likewise.
16025         * modules/settime (Depends-on): Likewise.
16026         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
16027
16028         fts: avoid leaking fds
16029         * modules/fts (Depends-on): Add cloexec.
16030         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
16031         flag.
16032
16033         fts: make directory fds more robust
16034         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
16035         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
16036
16037         backupfile, chdir-long, fts, savedir: make safer
16038         * lib/backupfile.c (includes): Use "dirent--.h", since
16039         numbered_backup can write to stderr during readdir.
16040         * lib/savedir.c (includes): Likewise.
16041         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
16042         emulation can write to stderr on failure.
16043         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
16044         * lib/getcwd.c: Document why opendir_safer is unused.
16045         * lib/glob.c: Likewise.
16046         * lib/scandir.c: Likewise.
16047         * lib/openat-proc.c: Likewise, for open_safer.
16048         * modules/backupfile (Depends-on): Add dirent-safer.
16049         * modules/savedir (Depends-on): Likewise.
16050         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
16051         * modules/chdir-long (Depends-on): Add openat-safer.
16052
16053         openat-safer: new module
16054         * modules/openat-safer: New file.
16055         * lib/openat-safer.c: Likewise.
16056         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
16057         * lib/fcntl-safer.h (openat_safer): Declare.
16058         * lib/fcntl--.h (openat): Override.
16059         * MODULES.html.sh (File descriptor based I/O): Mention it.
16060         * lib/openat.h: Add double-inclusion guards.
16061         * lib/openat.c (includes): Only include "fcntl-safer.h", not
16062         "fcntl--.h", so we can implement openat.
16063         * modules/openat-safer-tests: New test.
16064         * tests/test-openat-safer.c: New file.
16065
16066         dirent-safer: new module
16067         * modules/dirent-safer: New file.
16068         * lib/dirent--.h: Likewise.
16069         * lib/dirent-safer.h: Likewise.
16070         * lib/opendir-safer.c: Likewise.
16071         * m4/dirent-safer.m4: Likewise.
16072         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
16073         * modules/dirent-safer-tests: New test.
16074         * tests/test-dirent-safer.c: New file.
16075         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
16076
16077         fdopendir: optimize on mingw
16078         * lib/unistd.in.h (_gl_directory_name): New prototype.
16079         * lib/fchdir.c (_gl_directory_name): Implement it.
16080         (fchdir): Use it to simplify implementation.
16081         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
16082         fchdir, when available, to avoid calling [f]chdir().
16083
16084         fdopendir: split into its own module
16085         * lib/openat.c (fdopendir): Move...
16086         * lib/fdopendir.c: ...into new file.
16087         * modules/fdopendir: New module.
16088         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
16089         * modules/openat (Depends-on): Add fdopendir.
16090         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
16091         fdopendir here.
16092         * modules/savedir (Depends-on): Only need fdopendir, not full
16093         openat.
16094         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
16095         * lib/openat.h (fdopendir): Drop prototype.
16096         * lib/dirent.in.h (fdopendir): Provide prototype.
16097         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
16098         * modules/dirent (Makefile.am): Substitute them.
16099         * MODULES.html.sh (File system functions): Mention it.
16100         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
16101         * modules/fdopendir-tests: New file.
16102         * tests/test-fdopendir.c: Likewise.
16103
16104         fchdir: use more consistent macro convention
16105         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
16106         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
16107         REPLACE_FCHDIR, rather than relying on config.h macros.
16108         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
16109         inside a single make-time REPLACE_FCHDIR block, rather than using
16110         the config.h FCHDIR_REPLACEMENT.
16111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
16112         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
16113         Manage fstat replacement.
16114         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
16115         REPLACE_FCHDIR.
16116         * modules/sys_stat (Files): Add m4/unistd_h.m4.
16117         (Makefile.am): Substitute REPLACE_FCHDIR.
16118         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
16119         FCHDIR_REPLACEMENT.
16120         * lib/dup-safer.c (dup_safer): Likewise.
16121         * lib/dup2.c (rpl_dup2): Likewise.
16122         * lib/dup3.c (rpl_dup3): Likewise.
16123         * lib/open.c (rpl_open): Likewise.
16124
16125         fchdir: simplify error handling, and support dup3
16126         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
16127         stdbool, malloc-posix, realloc-posix.
16128         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
16129         (ensure_dirs_slot): Return false on allocation failure.
16130         (rpl_dup2): Delete.
16131         (_gl_register_dup): New function.
16132         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
16133         (_gl_register_fd): Close fd on allocation failure.
16134         * lib/fcntl.in.h (_gl_register_fd): Update signature.
16135         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
16136         prototype.
16137         (rpl_dup2_fchdir): Delete prototype.
16138         * lib/open.c (open): Update caller.
16139         * lib/dup2.c (dup2): Track fchdir metadata.
16140         * lib/dup3.c (dup3): Likewise.
16141         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
16142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
16143
16144 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16145
16146         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
16147         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
16148         don't pass arguments to AC_OUTPUT.
16149
16150 2009-09-02  Bruno Haible  <bruno@clisp.org>
16151
16152         * modules/mkdtemp (License): Relicense under LGPLv2+.
16153         Reported by Paolo Bonzini.
16154
16155 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16156
16157         Replace uses of obsolete autoconf macros in Jim's modules.
16158         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
16159         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
16160         can evoke a warning from autoconf when run with -Wobsolete
16161         enabled.  They were declared obsolete for good reasons (see
16162         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
16163         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
16164         should not continue using the deprecated macros.
16165         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
16166         obsolete Autoconf macros with modern counterparts.
16167         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16168         * m4/dos.m4 (gl_AC_DOS): Likewise.
16169         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
16170         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16171         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
16172         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
16173         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
16174         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
16175         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
16176         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
16177         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16178         Likewise.
16179         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16180         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16181         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
16182         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
16183         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16184         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16185
16186 2009-09-01  Eric Blake  <ebb9@byu.net>
16187
16188         fchdir: fix off-by-one bug in previous patch
16189         * lib/fchdir.c (rpl_fstat): Use correct bounds.
16190         (_gl_unregister_fd): Delete useless if.
16191
16192 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
16193
16194         maint.mk: sort the list of syntax-check rules
16195         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
16196         easier to get a sense of progress when the rules are run sequentially
16197         and take a long time.
16198
16199 2009-09-01  Simon Josefsson  <simon@josefsson.org>
16200
16201         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
16202         * modules/netinet_in: Likewise.
16203         * modules/sys_file: Likewise.
16204         * modules/sys_ioctl: Likewise.
16205         * modules/sys_select: Likewise.
16206         * modules/sys_socket: Likewise.
16207         * modules/sys_stat: Likewise.
16208         * modules/sys_time: Likewise.
16209         * modules/sys_times: Likewise.
16210         * modules/sys_utsname: Likewise.
16211         * modules/sys_wait: Likewise.
16212
16213 2009-09-01  Jim Meyering  <meyering@redhat.com>
16214
16215         fts: help ensure that return values are not ignored
16216         * lib/fts_.h (__GNUC_PREREQ): Define.
16217         (__attribute_warn_unused_result__): Define.
16218         (fts_children, fts_close, fts_open, fts_read): Declare with
16219         __attribute_warn_unused_result__.
16220
16221         fts: fts_close now fails also when closing a dir file descriptor fails
16222         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
16223         and propagate to caller, along with errno.
16224
16225         announce-gen: correct formatting in --help output
16226         * build-aux/announce-gen (usage): Move the one-line description in
16227         --help output "up", to where it belongs, just after Usage:.
16228
16229 2009-08-31  Eric Blake  <ebb9@byu.net>
16230
16231         fchdir: port to mingw
16232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
16233         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
16234         opened, then use a substitute.
16235         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
16236         replacement.
16237         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
16238         (_gl_register_fd): No need to check stat if open already filters
16239         all directories.
16240         (fchdir): Fix error condition to match POSIX.
16241         * modules/fchdir (Depends-on): Add sys_stat.
16242         * doc/posix-functions/open.texi (open): Document the limitation.
16243         * modules/fchdir-tests: New file.
16244         * tests/test-fchdir.c: Likewise.
16245
16246         canonicalize: allow cross-testing from cygwin to mingw
16247         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
16248         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
16249         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
16250         Likewise.
16251         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
16252         target does not support symlinks.
16253         * tests/test-canonicalize-lgpl.sh: Likewise.
16254
16255         chown: avoid compilation warning on mingw
16256         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
16257         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
16258         mingw.
16259         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16260         * modules/chown (Depends-on): Add errno.
16261
16262 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16263
16264         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
16265         command.
16266
16267 2009-08-31  Jim Meyering  <meyering@redhat.com>
16268
16269         canonicalize: remove useless initialization
16270         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
16271         initialization of local, "end".
16272
16273 2009-08-30  Bruno Haible  <bruno@clisp.org>
16274
16275         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
16276         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
16277         ENOSYS.
16278
16279 2009-08-30  Bruno Haible  <bruno@clisp.org>
16280
16281         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
16282         /usr/xpg4/bin/tr when it exists.
16283         * tests/test-pipe-filter-gi1.sh: Likewise.
16284
16285 2009-08-30  Bruno Haible  <bruno@clisp.org>
16286
16287         Work around deficient /usr/bin/id program on Solaris.
16288         * tests/test-file-has-acl.sh (ID): New variable.
16289         * tests/test-set-mode-acl.sh (ID): Likewise.
16290         * tests/test-copy-acl.sh (ID): Likewise.
16291         * tests/test-copy-file.sh (ID): Likewise.
16292
16293 2009-08-30  Bruno Haible  <bruno@clisp.org>
16294
16295         New module 'xstriconveh'.
16296         * lib/xstriconveh.h: New file.
16297         * lib/xstriconveh.c: New file.
16298         * modules/xstriconveh: New file.
16299
16300 2009-08-30  Bruno Haible  <bruno@clisp.org>
16301
16302         Make it easier to use mem_cd_iconveh.
16303         * lib/striconveh.h (iconveh_t): New type.
16304         (iconveh_open, iconveh_close): New declarations.
16305         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16306         with a single 'const iconveh_t *' argument.
16307         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
16308         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16309         with a single 'const iconveh_t *' argument.
16310         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
16311         * tests/test-striconveh.c (main): Update.
16312         * NEWS: Mention the change.
16313
16314 2009-08-30  Bruno Haible  <bruno@clisp.org>
16315
16316         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
16317         problem.
16318
16319 2009-08-30  Bruno Haible  <bruno@clisp.org>
16320
16321         Work around iconv_open problem on Solaris.
16322         * lib/iconv_open-solaris.gperf: New file.
16323         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
16324         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
16325         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
16326         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
16327         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
16328         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
16329
16330 2009-08-29  Jim Meyering  <meyering@redhat.com>
16331
16332         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
16333         * top/maint.mk (cvs-check): Remove target; it was just an alias
16334         to the better-named vc-diff-check.
16335         (maintainer-distcheck): Remove rule.  It was used only from
16336         the (alpha/beta/major) target, and all of its commands but one
16337         were coreutils-specific.
16338         (vc-dist): Remove rule.
16339         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
16340         Run vc-diff-check, not vc-dist.
16341         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
16342
16343 2009-08-27  Bruno Haible  <bruno@clisp.org>
16344
16345         * tests/test-bitrotate.c (main): Remove test that uses a shift count
16346         of 0.
16347
16348 2009-08-27  Bruno Haible  <bruno@clisp.org>
16349
16350         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
16351         compilers.
16352         * doc/func.texi: Document the SunPRO C bug.
16353
16354 2009-08-27  Bruno Haible  <bruno@clisp.org>
16355
16356         Fix link error on Solaris.
16357         * tests/test-parse-duration.c (xstrdup): Remove function.
16358
16359 2009-08-26  Pádraig Brady  <P@draigbrady.com>
16360
16361         ignore-value: handle pointer types, too
16362         * lib/ignore-value.h (__attribute__): Remove definition.
16363         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
16364         of a more concise and more-often effective "(void) i" statement.
16365         (ignore_ptr): New function to suppress warnings from functions that
16366         return pointers, and to make it explicit that one function doesn't
16367         handle all cases.
16368
16369 2009-08-25  Bruno Haible  <bruno@clisp.org>
16370
16371         dup2: work around a Linux bug.
16372         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
16373         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
16374         * doc/posix-functions/dup2.texi: Mention the Linux bug.
16375         Reported by Simon Josefsson.
16376
16377 2009-08-25  Jim Meyering  <meyering@redhat.com>
16378
16379         libguestfs uses gnulib
16380         * users.txt: Add libguestfs.
16381
16382 2009-08-24  Eric Blake  <ebb9@byu.net>
16383
16384         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
16385         * lib/pipe2.c (includes): Add binary-io.h.
16386         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
16387
16388 2009-08-24  Bruno Haible  <bruno@clisp.org>
16389
16390         Tolerate declared but missing accept4 syscall.
16391         * lib/accept4.c (accept4): Invoke original accept4 function first, if
16392         available.
16393         * lib/sys_socket.in.h (accept4): If the function is already present,
16394         override it.
16395         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
16396         * modules/accept4 (Makefile.am): Compile accept4.c always.
16397         Reported by Paolo Bonzini and Eric Blake.
16398
16399 2009-08-23  Bruno Haible  <bruno@clisp.org>
16400
16401         New module 'accept4'.
16402         * lib/sys_socket.in.h (accept4): New declaration.
16403         * lib/accept4.c: New file.
16404         * m4/accept4.m4: New file.
16405         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16406         GNULIB_ACCEPT4, HAVE_ACCEPT4.
16407         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
16408         HAVE_ACCEPT4.
16409         * modules/accept4: New file.
16410         * doc/glibc-functions/accept4.texi: Mention the new module.
16411
16412 2009-08-24  Jim Meyering  <meyering@redhat.com>
16413
16414         progname: also set global program_invocation_name, when possible
16415         Before this change, a libtool-enabled program that calls glibc's
16416         error function would report the program name as
16417         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
16418         * modules/progname (configure.ac): Check for a declaration of
16419         program_invocation_name.
16420         * lib/progname.c:  Include <errno.h>.
16421         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
16422         Set program_invocation_name.
16423
16424 2009-08-23  Bruno Haible  <bruno@clisp.org>
16425
16426         * lib/dup3.c: Include <string.h>.
16427
16428 2009-08-23  Bruno Haible  <bruno@clisp.org>
16429
16430         * lib/dup3.c (dup3): Test only once whether the system actually exists.
16431         * lib/pipe2.c (pipe2): Likewise.
16432         Suggested by Eric Blake.
16433
16434 2009-08-23  Bruno Haible  <bruno@clisp.org>
16435
16436         Tolerate declared but missing dup3 syscall.
16437         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
16438         * lib/unistd.in.h (dup3): If the function is already present,
16439         override it.
16440         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
16441         * modules/dup3 (Makefile.am): Compile dup3.c always.
16442         Reported by Paolo Bonzini.
16443
16444 2009-08-23  Bruno Haible  <bruno@clisp.org>
16445
16446         Tolerate declared but missing pipe2 syscall.
16447         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
16448         available.
16449         * lib/unistd.in.h (pipe2): If the function is already present,
16450         override it.
16451         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
16452         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
16453         Reported by Paolo Bonzini.
16454
16455 2009-08-23  Bruno Haible  <bruno@clisp.org>
16456
16457         * lib/pipe2.c (pipe2): Move #ifs inside function.
16458
16459 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16460
16461         quotearg: document limitations of quote_these_too
16462         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
16463         those limitations are created.
16464         * lib/quotearg.h (set_char_quoting): Document that digits and
16465         letters that are special after backslash are not permitted.
16466         (quotearg_char): Cross-reference set_char_quoting documentation.
16467
16468 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
16469
16470         quotearg: implement custom_quoting_style
16471         * lib/quotearg.c: (struct quoting_options): Add left_quote and
16472         right_quote fields.
16473         (set_custom_quoting): New public function.
16474         (quotearg_buffer_restyled): Add left_quote and right_quote
16475         arguments, handle them very much like locale quoting, and update
16476         all uses.
16477         (quotearg_n_custom): New public function.
16478         (quotearg_n_custom_mem): New public function.
16479         (quotearg_custom): New public function.
16480         (quotearg_custom_mem): New public function.
16481         * lib/quotearg.h: Prototype and document new public functions.
16482         (enum quoting_style): For escape_quoting_style and
16483         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
16484         ignored even though they're otherwise like c_quoting_style.
16485         Add custom_quoting_style member and document with comparison to
16486         clocale_quoting_style.
16487         * tests/test-quotearg.c (custom_quotes): New array.
16488         (custom_results): New array.
16489         (main): Extend to test custom quoting.
16490
16491 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16492
16493         quotearg: fix right quote escaping when it's in quote_these_too
16494         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
16495         quote, be sure to prepend only one backslash.
16496         * tests/test-quotearg.c (use_quote_double_quotes): New function.
16497         (main): Test it.
16498
16499 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16500
16501         quotearg-tests: test escaping of embedded locale quotes
16502         * tests/test-quotearg.c (struct result_strings): Add member for
16503         new input.
16504         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
16505         (inputs): Add new input.
16506         (results_g): Add expected results.
16507         (flag_results): Likewise.
16508         (locale_results): Likewise.
16509         (compare_strings): Check those.
16510
16511 2009-08-23  Bruno Haible  <bruno@clisp.org>
16512
16513         Tests for module 'dup3'.
16514         * modules/dup3-tests: New file.
16515         * tests/test-dup3.c: New file.
16516
16517         New module 'dup3'.
16518         * lib/unistd.in.h (dup3): New declaration.
16519         * lib/dup3.c: New file.
16520         * m4/dup3.m4: New file.
16521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
16522         HAVE_DUP3.
16523         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
16524         * modules/dup3: New file.
16525         * doc/glibc-functions/dup3.texi: Mention the new module.
16526
16527 2009-08-23  Bruno Haible  <bruno@clisp.org>
16528
16529         Tweak the dup2 test.
16530         * tests/test-dup2.c (main): Create the test file empty. Verify that an
16531         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
16532         the test file is still empty. Fix argument order of lseek.
16533
16534 2009-08-23  Bruno Haible  <bruno@clisp.org>
16535
16536         Avoid test link errors when the modules getopt-gnu, gettext are used.
16537         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
16538         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16539
16540 2009-08-23  Bruno Haible  <bruno@clisp.org>
16541
16542         Fix getdtablesize() on mingw.
16543         * lib/getdtablesize.c (getdtablesize): Implement differently.
16544         * lib/unistd.in.h (getdtablesize): Improve comment.
16545
16546 2009-08-23  Bruno Haible  <bruno@clisp.org>
16547
16548         New module 'mkostemp'.
16549         Based on Ulrich Drepper's 2007-08-10 change in glibc.
16550         * lib/stdlib.in.h (mksotemp): New declaration.
16551         * lib/mkostemp.c: New file, from glibc with modifications.
16552         * lib/tempname.h (GT_FILE): Remove outdated comment.
16553         (gen_tempname): Add flags argument.
16554         * lib/tempname.c (__GT_BIGFILE): Remove macro.
16555         (__GT_FILE): Map to 1.
16556         (small_open, large_open): Remove macros.
16557         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
16558         * lib/mkstemp.c (mkstemp): Update.
16559         * lib/mkdtemp.c (mkdtemp): Likewise.
16560         * m4/mkostemp.m4: New file.
16561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
16562         HAVE_MKOSTEMP.
16563         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
16564         HAVE_MKOSTEMP.
16565         * modules/mkostemp: New file, based on modules/mkstemp.
16566         * doc/glibc-functions/mkostemp.texi: Mention the new module.
16567         * NEWS: Mention the change.
16568
16569 2009-08-23  Bruno Haible  <bruno@clisp.org>
16570
16571         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
16572         Reported by Eric Blake.
16573
16574 2009-08-23  Bruno Haible  <bruno@clisp.org>
16575
16576         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
16577         Reported by Eric Blake.
16578
16579 2009-08-23  Bruno Haible  <bruno@clisp.org>
16580
16581         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
16582         * modules/pipe2 (Depends-on): Likewise.
16583
16584 2009-08-23  Eric Blake  <ebb9@byu.net>
16585
16586         fcntl-h: add O_TTY_INIT support
16587         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
16588         * tests/test-fcntl-h.c (o): Test it.
16589         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16590
16591         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16592         * modules/fcntl: Move <fcntl.h> header replacement...
16593         * modules/fcntl-h: ...to new name, so as not to collide with
16594         like-named function.
16595         * tests/test-fcntl.c: Rename...
16596         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16597         * modules/fcntl-tests: Rename...
16598         * modules/fcntl-h-tests: ...to this.  Update test file name.
16599         * modules/chdir-long (Depends-on): Update clients.
16600         * modules/chdir-safer (Depends-on): Likewise.
16601         * modules/fcntl-safer (Depends-on): Likewise.
16602         * modules/fts (Depends-on): Likewise.
16603         * modules/mkancesdirs (Depends-on): Likewise.
16604         * modules/mkdir-p (Depends-on): Likewise.
16605         * modules/open (Depends-on): Likewise.
16606         * modules/savewd (Depends-on): Likewise.
16607         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16608         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16609
16610 2009-08-22  Bruno Haible  <bruno@clisp.org>
16611
16612         * modules/binary-io (License): Relicense under LGPL.
16613         * modules/pipe2 (License): Likewise.
16614
16615 2009-08-22  Bruno Haible  <bruno@clisp.org>
16616
16617         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16618         return value.
16619         * lib/pipe-filter-gi.c (filter_init): Likewise.
16620         Reported by Eric Blake.
16621
16622 2009-08-22  Bruno Haible  <bruno@clisp.org>
16623
16624         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16625         * modules/pipe (Depends-on): Add pipe2.
16626
16627 2009-08-22  Bruno Haible  <bruno@clisp.org>
16628
16629         Tests for module 'pipe2'.
16630         * modules/pipe2-tests: New file.
16631         * tests/test-pipe2.c: New file.
16632
16633         New module 'pipe2'.
16634         * lib/unistd.in.h (pipe2): New declaration.
16635         * lib/pipe2.c: New file.
16636         * m4/pipe2.m4: New file.
16637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16638         HAVE_PIPE2.
16639         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16640         * modules/pipe2: New file.
16641         * doc/glibc-functions/pipe2.texi: Mention the new module.
16642
16643 2009-08-22  Bruno Haible  <bruno@clisp.org>
16644
16645         Reference some new glibc functions.
16646         * doc/glibc-functions/accept4.texi: New file.
16647         * doc/glibc-functions/dup3.texi: New file.
16648         * doc/glibc-functions/mkostemp.texi: New file.
16649         * doc/glibc-functions/pipe2.texi: New file.
16650         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16651         (Glibc sys/socket.h): Refer to accept4.
16652         (Glibc unistd.h): Refer to dup3, pipe2.
16653         Reported by Eric Blake.
16654
16655 2009-08-22  Jim Meyering  <meyering@redhat.com>
16656             Bruno Haible  <bruno@clisp.org>
16657
16658         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16659         This makes it so packages using automake-1.11's silent-rules option
16660         can print e.g., a single "GEN    configmake.h" line, rather than
16661         the 30+ statements that perform the job.  If you want to see the
16662         actual commands, you can still run "make V=1".
16663         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16664         so that make output is abbreviated when those variables are defined
16665         appropriately.
16666         * modules/argz: Likewise.
16667         * modules/arpa_inet: Likewise.
16668         * modules/byteswap: Likewise.
16669         * modules/configmake: Likewise.
16670         * modules/dirent: Likewise.
16671         * modules/errno: Likewise.
16672         * modules/fcntl: Likewise.
16673         * modules/float: Likewise.
16674         * modules/fnmatch: Likewise.
16675         * modules/getopt-posix: Likewise.
16676         * modules/glob: Likewise.
16677         * modules/iconv_open: Likewise.
16678         * modules/inttypes: Likewise.
16679         * modules/localcharset: Likewise.
16680         * modules/locale: Likewise.
16681         * modules/math: Likewise.
16682         * modules/netdb: Likewise.
16683         * modules/netinet_in: Likewise.
16684         * modules/poll: Likewise.
16685         * modules/posix_spawnp-tests: Likewise.
16686         * modules/sched: Likewise.
16687         * modules/search: Likewise.
16688         * modules/selinux-h: Likewise.
16689         * modules/signal: Likewise.
16690         * modules/spawn: Likewise.
16691         * modules/stdarg: Likewise.
16692         * modules/stdbool: Likewise.
16693         * modules/stddef: Likewise.
16694         * modules/stdint: Likewise.
16695         * modules/stdio: Likewise.
16696         * modules/stdlib: Likewise.
16697         * modules/string: Likewise.
16698         * modules/strings: Likewise.
16699         * modules/sys_file: Likewise.
16700         * modules/sys_ioctl: Likewise.
16701         * modules/sys_select: Likewise.
16702         * modules/sys_socket: Likewise.
16703         * modules/sys_stat: Likewise.
16704         * modules/sys_time: Likewise.
16705         * modules/sys_times: Likewise.
16706         * modules/sys_utsname: Likewise.
16707         * modules/sys_wait: Likewise.
16708         * modules/sysexits: Likewise.
16709         * modules/time: Likewise.
16710         * modules/unistd: Likewise.
16711         * modules/wchar: Likewise.
16712         * modules/wctype: Likewise.
16713
16714 2009-08-22  Jim Meyering  <meyering@redhat.com>
16715
16716         announce-gen: detect write failure
16717         * build-aux/announce-gen: Add Coda at end.
16718         Remove equivalent-but-more-verbose block at top.
16719
16720 2009-08-19  Akim Demaille  <demaille@gostai.com>
16721
16722         bootstrap: --help to stdout.
16723         * bootstrap (usage): Don't send --help to stderr.
16724         Use a here doc instead of a long string.
16725
16726 2009-08-21  Eric Blake  <ebb9@byu.net>
16727
16728         test-popen-safer: split from test-popen
16729         * tests/test-popen.c (main): Move...
16730         * tests/test-popen.h: ...into new file.
16731         * tests/test-popen-safer2.c: New file.
16732         * modules/popen-tests (Files): Add test-popen.h.
16733         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16734         Suggested by Bruno Haible.
16735
16736         test-fcntl-safer: split from test-open
16737         * tests/test-open.c (main): Move...
16738         * tests/test-open.h: ...into new file.
16739         * tests/test-fcntl-safer.c: New file.
16740         * modules/open-tests (Files): Add test-open.h.
16741         * modules/fcntl-safer-tests: New file.
16742         Suggested by Bruno Haible.
16743
16744         test-fopen-safer: split from test-fopen
16745         * tests/test-fopen.c (main): Move...
16746         * tests/test-fopen.h: ...into new file.
16747         * tests/test-fopen-safer.c: New file.
16748         * modules/fopen-tests (Files): Add test-fopen.h.
16749         * modules/fopen-safer-tests: New file.
16750         Suggested by Bruno Haible.
16751
16752 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16753
16754         popen-safer: test O_CLOEXEC at run-time.
16755         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16756
16757 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16758
16759         fcntl: move more flags to the header
16760         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16761         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16762         * lib/fcntl.in.h: Do both things here.
16763
16764 2009-08-21  Jim Meyering  <meyering@redhat.com>
16765
16766         consistently remove $@-t before redirecting to it
16767         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16768         * modules/alloca-opt: Likewise.
16769         * modules/byteswap: Likewise.
16770         * modules/fnmatch: Likewise.
16771         * modules/getopt-posix: Likewise.
16772         * modules/glob: Likewise.
16773         * modules/poll: Likewise.
16774         * modules/posix_spawnp-tests: Likewise.
16775         * modules/sys_socket: Likewise.
16776         * modules/sysexits: Likewise.
16777
16778 2009-08-21  Eric Blake  <ebb9@byu.net>
16779
16780         popen: simplify access to original popen
16781         * lib/popen.c (rpl_popen): No need to worry about popen being a
16782         macro.
16783         Reported by Bruno Haible.
16784
16785 2009-08-20  Eric Blake  <ebb9@byu.net>
16786
16787         build: avoid some compiler warnings
16788         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16789         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16790         type.
16791         (new_exclude_segment, excluded_file_pattern_p)
16792         (excluded_file_name_p): Reduce scope.
16793         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16794         old-style declaration.
16795
16796 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16797
16798         * tests/test-exclude1.sh: Handle Windows EOL.
16799         * tests/test-exclude2.sh: Likewise.
16800         * tests/test-exclude3.sh: Likewise.
16801         * tests/test-exclude4.sh: Likewise.
16802         * tests/test-exclude5.sh: Likewise.
16803         * tests/test-exclude6.sh: Likewise.
16804         * tests/test-exclude7.sh: Likewise.
16805
16806 2009-08-19  Akim Demaille  <demaille@gostai.com>
16807
16808         bootstrap: find sha1sum when named gsha1sum.
16809         * bootstrap (find_tool): New.
16810         ($SHA1SUM): New.
16811         Use it.
16812
16813 2009-08-20  Jim Meyering  <meyering@redhat.com>
16814
16815         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16816         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16817         expression that converts "." in a file name to "\." in the resulting
16818         regexp.  Start with a dummy statement, so that prior shell variable
16819         definitions are expanded portably.  Reported by Simon Josefsson.
16820
16821 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16822
16823         Fix polling for writeability of a screen buffer.
16824         * lib/poll.c: Distinguish input and screen buffers for the
16825         Win32 implementation.
16826         * lib/select.c: Likewise.
16827
16828 2009-08-19  Eric Blake  <ebb9@byu.net>
16829
16830         popen-safer: prevent popen from clobbering std descriptors
16831         * modules/popen-safer: New file.
16832         * lib/popen-safer.c: Likewise.
16833         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
16834         * lib/stdio--.h (popen): Provide override.
16835         * lib/stdio-safer.h (popen_safer): Provide declaration.
16836         * tests/test-popen.c (includes): Partially test this.
16837         * modules/popen-safer-tests: New file, for more tests.
16838         * tests/test-popen-safer.c: Likewise.
16839         * MODULES.html.sh (file stream based Input/Output): Mention it.
16840
16841         tests: test some of the *-safer modules
16842         * modules/fopen-safer (Depends-on): Add fopen.
16843         * modules/fcntl-safer (Depends-on): Add fcntl.
16844         * modules/stdlib-safer (Depends-on): Add stdlib.
16845         (configure.ac): Set indicator.
16846         * modules/unistd-safer (configure.ac): Likewise.
16847         * modules/tmpfile-safer (configure.ac): Likewise.
16848         (Depends-on): Add tmpfile.
16849         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
16850         active.
16851         * tests/test-fopen.c (includes): Test safer versions when they are
16852         in use.
16853         * tests/test-open.c (includes): Likewise.
16854
16855         popen: fix cygwin 1.5 bug when stdin closed
16856         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
16857         * modules/popen: New file.
16858         * modules/popen-tests: Likewise.
16859         * tests/test-popen.c: Likewise.
16860         * m4/popen.m4: Likewise.
16861         * lib/popen.c: Likewise.
16862         * lib/stdio.in.h (popen): New declaration.
16863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
16864         * modules/stdio (Makefile.am): Likewise.
16865         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
16866
16867 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
16868
16869         maint.mk: give full control over update-copyright exclusions
16870         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
16871         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
16872         (update-copyright): Don't force inclusion of top-level
16873         ChangeLog.  Don't force exclusion of all COPYING files, but make
16874         them the default exclusion instead.
16875
16876 2009-08-16  Bruno Haible  <bruno@clisp.org>
16877
16878         Fix test failures on Solaris 10.
16879         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
16880         tests when Solaris iconv() is used.
16881         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16882         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16883         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16884         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16885         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16886
16887 2009-08-16  Bruno Haible  <bruno@clisp.org>
16888
16889         Fix test failures on Solaris 10.
16890         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
16891         'tr' program and pass it as first argument.
16892         * tests/test-pipe-filter-gi1.sh: Likewise.
16893         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
16894         program as first argument.
16895         * tests/test-pipe-filter-gi1.c (main): Likewise.
16896
16897 2009-08-16  Eric Blake  <ebb9@byu.net>
16898
16899         fpurge: fix previous commits
16900         * modules/fpurge (Makefile.am): Make replacement conditional,
16901         partially reverting 2007-04-29 change; missed in previous
16902         attempt.
16903         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
16904         is missing.
16905
16906 2009-08-16  Bruno Haible  <bruno@clisp.org>
16907
16908         Clarify fpurge's effect on the file position.
16909         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
16910         * tests/test-fpurge.c (main): Make a second pass for checking the file
16911         position.
16912
16913 2009-08-16  Bruno Haible  <bruno@clisp.org>
16914
16915         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
16916         declaration of fpurge is missing.
16917         * tests/test-fpurge.c (main): Check that the file has not more contents
16918         than expected. Close the file before removing it.
16919
16920 2009-08-15  Eric Blake  <ebb9@byu.net>
16921
16922         fpurge: don't wrap working cygwin implementation
16923         * lib/fpurge.c (fpurge): Fix comment typo.
16924         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
16925         1.7 to avoid replacement.
16926         * tests/test-fpurge.c (main): Enhance test.
16927
16928 2009-08-15  Eric Blake  <ebb9@byu.net>
16929         and Jim Meyering  <meyering@redhat.com>
16930
16931         test-update-copyright: skip if perl is insufficient
16932         * tests/test-update-copyright.sh: Failure to run maintainer tool
16933         should not cause testsuite failure on cygwin 1.5.
16934
16935 2009-08-14  Eric Blake  <ebb9@byu.net>
16936
16937         doc: mention more functions added in cygwin 1.7.0
16938         * doc/posix-headers/limits.texi (limits.h): Update for recent
16939         cygwin additions.
16940         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
16941         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16942         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
16943         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
16944         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
16945
16946 2009-08-14  Eric Blake  <ebb9@byu.net>
16947
16948         maint.mk: simplify update-copyright rule
16949         * top/maint.mk (update-copyright-local): Delete, and document how
16950         to do it in cfg.mk instead.
16951         (update-copyright-exclude-regexp): Delete, and document how to do
16952         it in .x-update-copyright instead.
16953         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
16954         exclude ChangeLog.
16955
16956 2009-08-14  Bruno Haible  <bruno@clisp.org>
16957
16958         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
16959
16960 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16961
16962         maint.mk: support update-copyright-env
16963         * top/maint.mk (update-copyright-env): Define place-holder.
16964         (update-copyright): Expand $(update-copyright-env) before
16965         invoking update-copyright.
16966
16967 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16968
16969         update-copyright: implement forced reformatting
16970         * build-aux/update-copyright: Implement and document
16971         UPDATE_COPYRIGHT_FORCE.
16972         * tests/test-update-copyright.sh: Test it.
16973
16974 2009-08-14  Eric Blake  <ebb9@byu.net>
16975         and Bruno Haible  <bruno@clisp.org>
16976
16977         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
16978         * tests/test-locale.c: Revert previous patch related to NULL.
16979         * tests/test-stdio.c: Likewise.
16980         * tests/test-stdlib.c: Likewise.
16981         * tests/test-string.c: Likewise.
16982         * tests/test-unistd.c: Likewise.
16983         * modules/time-tests (Depends-on): Add verify.
16984         * modules/wchar-tests (Depends-on): Likewise.
16985         * tests/test-time.c: Test for NULL compliance.
16986         * tests/test-wchar.c: Likewise.
16987         * modules/locale (Depends-on): Add stddef.
16988         * modules/stdio (Depends-on): Likewise.
16989         * modules/stdlib (Depends-on): Likewise.
16990         * modules/string (Depends-on): Likewise.
16991         * modules/time (Depends-on): Likewise.
16992         * modules/unistd (Depends-on): Likewise.
16993         * modules/wchar (Depends-on): Likewise.
16994         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
16995         * lib/stdlib.in.h (includes): Likewise.
16996         * lib/string.in.h (includes): Likewise.
16997         * lib/time.in.h (includes): Likewise.
16998         * lib/unistd.in.h (includes): Likewise.
16999         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
17000         replaced.
17001         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17002         * m4/stddef_h.m4: New file.
17003         * modules/stddef: Likewise.
17004         * lib/stddef.in.h: Likewise.
17005         * modules/stddef-tests: Likewise.
17006         * tests/test-stddef.c: Likewise.
17007         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
17008         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
17009         * doc/posix-headers/locale.texi (locale.h): Likewise.
17010         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
17011         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17012         * doc/posix-headers/string.texi (string.h): Likewise.
17013         * doc/posix-headers/time.texi (time.h): Likewise.
17014         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
17015         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
17016
17017 2009-08-14  Eric Blake  <ebb9@byu.net>
17018
17019         doc: improve git diff of texinfo files
17020         * .gitattributes: Add rule for *.texi files, with hint on how to
17021         use it.
17022         Copied from m4, and based on a report by Bruno Haible.
17023
17024 2009-08-14  Bruno Haible  <bruno@clisp.org>
17025
17026         Disable multithread support by default on Cygwin 1.5.x for real.
17027         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
17028
17029 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17030
17031         update-copyright: much ado about intervals
17032         * build-aux/update-copyright: Implement and document
17033         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
17034         of copyright year intervals.
17035         Also, document UPDATE_COPYRIGHT_YEAR.
17036         * tests/test-update-copyright.sh: Test it.
17037
17038         update-copyright: convert 2-digit to 4-digit years
17039         * build-aux/update-copyright: Implement and document.
17040         * tests/test-update-copyright.sh: Update.
17041
17042 2009-08-14  Jim Meyering  <meyering@redhat.com>
17043
17044         test-exclude: avoid coreutils "make check" failure
17045         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
17046         just as in test-argmatch.c.
17047
17048 2009-08-13  Eric Blake  <ebb9@byu.net>
17049
17050         test-dup2: fix bad assumption
17051         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
17052         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
17053
17054         test-version-etc: fix CRLF portability issue
17055         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
17056         recognize \r.
17057         * tests/test-argp-version-etc-1.sh: Likewise.
17058
17059         getopt: update client modules
17060         * modules/argp (Depends-on): Use getopt-gnu.
17061         * modules/git-merge-changelog (Depends-on): Likewise.
17062         * modules/long-options (Depends-on): Likewise.
17063         * modules/xstrtol (Depends-on): Likewise.
17064
17065 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17066
17067         * tests/test-version-etc.sh: Don't fail on different
17068         project/version.  Don't fail on CRLF differences.  Rewrite to use
17069         multiple -e instead of multiple sed forks, suggested by Eric Blake
17070         <ebb9@byu.net>.
17071         * tests/test-argp-version-etc-1.sh: Likewise.
17072
17073 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17074
17075         * tests/test-version-etc.sh: Don't fail on different
17076         project/version.
17077
17078 2009-08-12  Bruno Haible  <bruno@clisp.org>
17079
17080         Tests for modules 'getopt-posix', 'getopt-gnu'.
17081         * modules/getopt-posix-tests: New file.
17082         * tests/test-getopt.c: New file.
17083         * tests/test-getopt.h: New file.
17084         * tests/test-getopt_long.h: New file.
17085
17086         New modules 'getopt-posix', 'getopt-gnu'.
17087         * modules/getopt-gnu: New file, renamed from modules/getopt.
17088         * modules/getopt-posix: New file.
17089         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
17090         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
17091         (gl_GETOPT): Remove macro.
17092         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
17093         Disable the test against BSD systems that declare optreset. Test
17094         against mingw bug. Test against lack of support of optional arguments
17095         on many platforms.
17096         * doc/glibc-headers/getopt.texi: Update module name and list of
17097         relevant platforms.
17098         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
17099         'getopt-gnu' and more portability problems.
17100         * NEWS: Mention the changes.
17101
17102 2009-08-12  Bruno Haible  <bruno@clisp.org>
17103
17104         Ensure that optarg etc. get declared by <unistd.h>.
17105         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
17106         AC_USE_SYSTEM_EXTENSIONS.
17107         * modules/getopt (Depends-on): Add 'extensions'.
17108
17109 2009-08-12  Bruno Haible  <bruno@clisp.org>
17110
17111         Avoid test link errors.
17112         * modules/pipe-filter-ii-tests (Makefile.am): Define
17113         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
17114         * modules/pipe-filter-gi-tests (Makefile.am): Define
17115         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
17116         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17117
17118 2009-08-12  Bruno Haible  <bruno@clisp.org>
17119
17120         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
17121         gl_GETOPT_SUBSTITUTE before.
17122         (gl_GETOPT): Use it.
17123         * m4/argp.m4 (gl_ARGP): Update.
17124         Reported by Sergey Poznyakoff.
17125
17126         * m4/getopt.m4: Reorder macros.
17127         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
17128         (gl_GETOPT_SUBSTITUTE): Remove macro.
17129
17130 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17131
17132         Minor improvement in gitlog-to-changelog
17133
17134         * build-aux/gitlog-to-changelog: New option `--format' makes
17135         output format string configurable.
17136
17137 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17138
17139         Optimize exclude: use hash tables for non-wildcard patterns.
17140
17141         * lib/exclude.c: Include hash.h and mbuiter.h
17142         (struct exclude_pattern, exclude_segment): New data types.
17143         (struct exclude): Rewrite.
17144         (fnmatch_pattern_has_wildcards): New function.
17145         (new_exclude_segment, free_exclude_segment): New functions.
17146         (excluded_file_pattern_p, excluded_file_name_p): New functions.
17147         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
17148         * lib/exclude.h (is_fnmatch_pattern): New prototype.
17149         * modules/exclude: Depend on hash and mbuiter.
17150
17151         * modules/exclude-tests: New file.
17152         * tests/test-exclude.c: New file.
17153         * tests/test-exclude1.sh: New file.
17154         * tests/test-exclude2.sh: New file.
17155         * tests/test-exclude3.sh: New file.
17156         * tests/test-exclude4.sh: New file.
17157         * tests/test-exclude5.sh: New file.
17158         * tests/test-exclude6.sh: New file.
17159         * tests/test-exclude7.sh: New file.
17160
17161 2009-08-12  Bruno Haible  <bruno@clisp.org>
17162
17163         Ensure that getopt() gets declared by <unistd.h>.
17164         * lib/unistd.in.h: Conditionally include getopt.h.
17165         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
17166         Set GNULIB_UNISTD_H_GETOPT.
17167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17168         GNULIB_UNISTD_H_GETOPT.
17169         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
17170
17171 2009-08-12  Bruno Haible  <bruno@clisp.org>
17172
17173         Clarify logic.
17174         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
17175         gl_replace_getopt instead of GETOPT_H.
17176
17177 2009-08-12  Bruno Haible  <bruno@clisp.org>
17178
17179         * m4/getopt.m4: Add comments.
17180
17181 2009-08-12  Bruno Haible  <bruno@clisp.org>
17182
17183         Disable multithread support by default on Cygwin 1.5.x.
17184         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
17185         set gl_use_threads=no if not specified otherwise.
17186
17187 2009-08-11  Bruno Haible  <bruno@clisp.org>
17188
17189         Avoid compilation error on NetBSD 5.0.
17190         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
17191         * tests/test-stdio.c: Likewise.
17192         * tests/test-stdlib.c: Likewise.
17193         * tests/test-string.c: Likewise.
17194         * tests/test-unistd.c: Likewise.
17195         Reported by Greg Troxel <gdt@ir.bbn.com>
17196         at <https://savannah.gnu.org/support/?106973>.
17197
17198 2009-08-11  Bruno Haible  <bruno@clisp.org>
17199
17200         * modules/dup2-tests (Depends-on): Remove close.
17201
17202         Undo 2009-07-19 commit.
17203         * modules/acl-tests (Depends-on): Remove close.
17204         * modules/binary-io-tests (Depends-on): Likewise.
17205         * modules/closein-tests (Depends-on): Likewise.
17206         * modules/flock-tests (Depends-on): Likewise.
17207         * modules/fsync-tests (Depends-on): Likewise.
17208         * modules/lseek-tests (Depends-on): Likewise.
17209         * modules/pipe-tests (Depends-on): Likewise.
17210         * modules/posix_spawn-tests (Depends-on): Likewise.
17211         * modules/posix_spawnp-tests (Depends-on): Likewise.
17212         * modules/stat-time-tests (Depends-on): Likewise.
17213         * modules/yesno-tests (Depends-on): Likewise.
17214
17215 2009-08-10  Bruno Haible  <bruno@clisp.org>
17216
17217         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
17218
17219 2009-08-10  Bruno Haible  <bruno@clisp.org>
17220
17221         Fix a gcc warning.
17222         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
17223
17224 2009-08-10  Bruno Haible  <bruno@clisp.org>
17225
17226         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
17227         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
17228         not only the first time.
17229         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
17230         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
17231         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
17232         is 1, not only the the first time.
17233
17234 2009-08-10  Bruno Haible  <bruno@clisp.org>
17235
17236         Make it possible to use module 'gethostname' without module 'close'.
17237         * lib/unistd.in.h (close): Evoke a link error only if
17238         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17240         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17241         * modules/unistd (Makefile.am): Substitute
17242         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17243         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
17244         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17245         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17246         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17247         * modules/sys_ioctl (Makefile.am): Substitute
17248         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17249         * modules/socket (configure.ac): On native Windows, set
17250         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
17251         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17252         Reported by Sam Steingold <sds@gnu.org>.
17253
17254 2009-08-10  Bruno Haible  <bruno@clisp.org>
17255
17256         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
17257         * modules/ioctl (configure.ac): Likewise.
17258
17259 2009-08-10  Bruno Haible  <bruno@clisp.org>
17260
17261         Avoid collision between gnulib wrapper and libintl wrapper.
17262         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
17263         already defined in intl/printf.c.
17264         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
17265         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
17266
17267 2009-08-09  Bruno Haible  <bruno@clisp.org>
17268
17269         Make <sys/select.h> really self-contained, also on Solaris 10.
17270         * lib/sys_select.in.h: Include <string.h>.
17271         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
17272         Solaris 10 problem.
17273         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
17274         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
17275         Reported by Jim Meyering.
17276
17277 2009-08-09  Bruno Haible  <bruno@clisp.org>
17278
17279         Avoid warnings from 'aclocal' that are due to a use of macro name
17280         AM_XGETTEXT_OPTION that is not defined in automake.
17281         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
17282         automake.
17283         * modules/error (configure.ac): Likewise.
17284         * modules/propername (configure.ac): Likewise.
17285         * modules/vasprintf (configure.ac): Likewise.
17286         * modules/verror (configure.ac): Likewise.
17287         * modules/xprintf (configure.ac): Likewise.
17288         * modules/xvasprintf (configure.ac): Likewise.
17289
17290 2009-08-08  Bruno Haible  <bruno@clisp.org>
17291
17292         Avoid compilation error in C++ mode.
17293         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
17294         Reported by Sam Steingold <sds@gnu.org>.
17295
17296 2009-08-08  Bruno Haible  <bruno@clisp.org>
17297
17298         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
17299         for the various Unix platforms.
17300         * doc/posix-headers/limits.texi: Update platforms list regarding
17301         HOST_NAME_MAX.
17302         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17303
17304 2009-08-07  Jim Meyering  <meyering@redhat.com>
17305
17306         selinux-at: fix typo in a comment
17307         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
17308         Spotted by Paolo Bonzini.
17309
17310         selinux-at: remove redundant m4 code, add documentation
17311         * modules/selinux-at (configure.ac): Remove redundant code.
17312         LIB_SELINUX is already set via the dependent module, selinux-h.
17313         (Include): Add quotes around selinux-at.h.
17314         * lib/selinux-at.h: Add documentation.
17315         Reported by Bruno Haible in
17316         http://marc.info/?l=gnulib-bug&m=124958988300749
17317
17318 2009-08-07  Bruno Haible  <bruno@clisp.org>
17319
17320         Avoid link error on MacOS X 10.3 and 10.4.
17321         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
17322         on non-ELF systems.
17323         * lib/argp-pv.c (argp_program_version): Likewise.
17324         Reported by Simon Josefsson.
17325
17326 2009-08-07  Simon Josefsson  <simon@josefsson.org>
17327
17328         * tests/test-version-etc.sh: Use $EXEEXT.
17329
17330 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
17331
17332         update-copyright: update documentation to point to maint.mk
17333         * build-aux/update-copyright: Here.
17334
17335 2009-08-06  Jim Meyering  <meyering@redhat.com>
17336
17337         maint.mk: support update-copyright-local
17338         * top/maint.mk (update-copyright-local): Define place-holder.
17339         (update-copyright): Depend on $(update-copyright-local).
17340
17341 2009-08-06  Jim Meyering  <meyering@redhat.com>
17342
17343         selinux-at: new module
17344         Initially written for coreutils, this module will soon be
17345         used by findutils, too.
17346         * MODULES.html.sh [Misc]: Add selinux-at.
17347         * lib/selinux-at.h: New file, from coreutils.
17348         * lib/selinux-at.c: Likewise.
17349         * modules/selinux-at: Likewise.
17350         (License): Change from LGPL to GPL, since it depends
17351         on the GPL'd openat module.
17352
17353         doc: update README
17354         * README: Remove references to cogito.
17355         Remove cvs-repo-updating instructions from 2007.
17356         Don't imply that CVS is better if you have limited disk space.
17357
17358 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17359
17360         update-copyright: support C-style comments
17361         * build-aux/update-copyright: Implement and document.
17362         * tests/test-update-copyright.sh: Test.
17363
17364 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17365
17366         update-copyright: support omitted "(C)"
17367         * build-aux/update-copyright: Implement and document.  Also,
17368         allow variable whitespace before "(C)".
17369         * tests/test-update-copyright.sh: Test.
17370
17371 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17372
17373         update-copyright: don't trip on non-FSF copyright statements
17374         * build-aux/update-copyright: Fix so that the first correctly
17375         formatted FSF copyright statement is recognized no matter what
17376         appears before it.  Update documentation.
17377         * tests/test-update-copyright.sh: Test that.
17378
17379 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17380
17381         update-copyright: clean up code a little
17382         * build-aux/update-copyright: Append "_re" to the name of any
17383         variable holding a regular expression.
17384         Replace "old" and "new" with "stmt" in variable names.
17385         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
17386         handled correctly.
17387         Format code more consistently.
17388
17389 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17390
17391         update-copyright-tests: improve portability
17392         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
17393         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
17394
17395 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17396
17397         update-copyright: support @copyright{} and &copy;
17398         * build-aux/update-copyright: Implement and document.
17399         * tests/test-update-copyright.sh: Test.
17400
17401 2009-08-04  Jim Meyering  <meyering@redhat.com>
17402
17403         update-copyright-tests: correctly test EOL=\r\n handling
17404         * tests/test-update-copyright.sh: Put \r at the end of some lines
17405         for the dos-eol tests.  Based on a patch by Joel E. Denny.
17406
17407         maint.mk: make update-copyright exclusion list more configurable
17408         * top/maint.mk (update-copyright): Default to excluding COPYING,
17409         but allow an override, in case someone does want to update that file.
17410
17411         maint.mk: don't update copyright date in COPYING
17412         * top/maint.mk (update-copyright): Exclude COPYING.
17413
17414         maint.mk: add a copyright-updating rule
17415         * top/maint.mk (update-copyright): New rule.
17416         Derived from coreutils/Makefile.am.
17417
17418         update-copyright: rename some variables
17419         * build-aux/update-copyright: Rename a few variables for clarity.
17420         Tweak syntax.  List Joel E. Denny as coauthor.
17421
17422 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17423
17424         update-copyright: fix bug for 2-digit last year and add tests
17425         * build-aux/update-copyright: Fix bug.
17426         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
17427         specified.
17428         * modules/update-copyright-tests: New
17429         * tests/test-update-copyright.sh: New.
17430
17431 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17432
17433         update-copyright: handle leading tabs in line prefix
17434         * build-aux/update-copyright: Count leading tabs as 8 spaces
17435         when computing margin.  This helps with the formatting of
17436         ChangeLogs, for example.
17437         Fix documentation a little.
17438
17439 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17440
17441         update-copyright: support EOL=\r\n
17442         * build-aux/update-copyright: Implement that.
17443
17444 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17445
17446         update-copyright: automatically format copyright statements
17447         * build-aux/update-copyright: Implement that.
17448         Also, be a little more predictable and safer by always failing
17449         when the full copyright format is not perfectly recognized as an
17450         unbroken whole.  Discussed at
17451         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
17452         Rewrite documentation.
17453
17454 2009-08-03  Bruno Haible  <bruno@clisp.org>
17455
17456         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
17457
17458 2009-08-02  Bruno Haible  <bruno@clisp.org>
17459
17460         Tests for module 'uname'.
17461         * modules/uname-tests: New file.
17462         * tests/test-uname.c: New file.
17463
17464         New module 'uname'.
17465         * lib/uname.c: New file.
17466         * m4/uname.m4: New file.
17467         * modules/uname: New file.
17468         * doc/posix-functions/uname.texi: Mention the new module.
17469
17470 2009-08-02  Bruno Haible  <bruno@clisp.org>
17471
17472         Tests for module 'sys_utsname'.
17473         * modules/sys_utsname-tests: New file.
17474         * tests/test-sys_utsname.c: New file.
17475
17476         New module 'sys_utsname'.
17477         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
17478         * m4/sys_utsname_h.m4: New file.
17479         * modules/sys_utsname: New file.
17480         * doc/posix-headers/sys_utsname.texi: Mention the new module.
17481
17482 2009-08-02  Bruno Haible  <bruno@clisp.org>
17483
17484         Implicitly initialize the sockets library.
17485         * lib/gethostname.c: Include sockets.h.
17486         (rpl_gethostname): Invoke gl_sockets_startup.
17487         * lib/socket.c: Include sockets.h.
17488         (rpl_socket): Invoke gl_sockets_startup.
17489         * modules/gethostname (Depends-on): Add sockets.
17490         * modules/socket (Depends-on): Likewise.
17491         * tests/test-poll.c: Don't include sockets.h.
17492         (main): Don't invoke gl_sockets_startup.
17493         * tests/test-select.c: Don't include sockets.h.
17494         (main): Don't invoke gl_sockets_startup.
17495
17496 2009-08-02  Bruno Haible  <bruno@clisp.org>
17497
17498         Allow multiple calls to gl_sockets_startup.
17499         * lib/sockets.c (initialized_sockets_version): New variable.
17500         (gl_sockets_startup): Do nothing if already called for this or a higher
17501         version.
17502         (gl_sockets_cleanup): Reset initialized_sockets_version.
17503
17504 2009-08-03  Simon Josefsson  <simon@josefsson.org>
17505
17506         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
17507         different project/version.
17508
17509 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
17510             Bruno Haible  <bruno@clisp.org>
17511
17512         Tests for module 'pipe-filter-gi'.
17513         * modules/pipe-filter-gi-tests: New file.
17514         * tests/test-pipe-filter-gi1.sh: New file.
17515         * tests/test-pipe-filter-gi1.c: New file.
17516         * tests/test-pipe-filter-gi2.sh: New file.
17517         * tests/test-pipe-filter-gi2-main.c: New file.
17518         * tests/test-pipe-filter-gi2-child.c: New file.
17519
17520         New module 'pipe-filter-gi'.
17521         * lib/pipe-filter-gi.c: New file.
17522         * modules/pipe-filter-gi: New file.
17523
17524 2009-08-02  Bruno Haible  <bruno@clisp.org>
17525             Paolo Bonzini  <bonzini@gnu.org>
17526
17527         Tests for module 'pipe-filter-ii'.
17528         * modules/pipe-filter-ii-tests: New file.
17529         * tests/test-pipe-filter-ii1.sh: New file.
17530         * tests/test-pipe-filter-ii1.c: New file.
17531         * tests/test-pipe-filter-ii2.sh: New file.
17532         * tests/test-pipe-filter-ii2-main.c: New file.
17533         * tests/test-pipe-filter-ii2-child.c: New file.
17534
17535         New module 'pipe-filter-ii'.
17536         * lib/pipe-filter.h: New file.
17537         * lib/pipe-filter-ii.c: New file.
17538         * lib/pipe-filter-aux.h: New file.
17539         * modules/pipe-filter-ii: New file.
17540
17541 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17542
17543         * lib/gc-libgcrypt.c: Change copyright to FSF.
17544         * lib/gc-gnulib.c: Likewise.
17545
17546 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
17547
17548         * lib/gethostname.c: Include limits.h.
17549
17550 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17551             Bruno Haible  <bruno@clisp.org>
17552
17553         Ensure HOST_NAME_MAX as part of the gethostname module.
17554         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
17555         define also HOST_NAME_MAX.
17556         * tests/test-gethostname.c: Include <limits.h>.
17557         (main): Check also HOST_NAME_MAX.
17558         * doc/posix-headers/limits.texi: Document the mingw problem.
17559
17560 2009-08-02  Bruno Haible  <bruno@clisp.org>
17561
17562         * lib/gethostname.c (gethostname): Fix handling of large len argument.
17563         Add comments.
17564
17565 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17566
17567         * lib/gethostname.c: Add Windows wrapper.
17568         * m4/gethostname.m4: Look for gethostname in -lws2_32.
17569         * modules/gethostname: Depend on sys_socket & errno, for also
17570         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
17571         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
17572
17573 2009-07-31  Jim Meyering  <meyering@redhat.com>
17574
17575         getloadavg: fix symbol name in comment
17576         * lib/getloadavg.c: Correct a typo I introduced when adding
17577         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
17578         Matt Kraai spotted the problem.
17579
17580 2009-07-29  Matt Kraai  <mkraai@beckman.com>
17581
17582         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
17583         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
17584         code also if ! defined N_NAME_POINTER.
17585         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
17586         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
17587         but the n_name member is a 12-byte array.
17588
17589 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17590
17591         update-copyright: generalize comment handling
17592         * build-aux/update-copyright: Handle copyright statements
17593         within more comment styles.
17594         Document usage.
17595         Report any file with an external copyright holder or parse failure.
17596
17597 2009-07-29  Jim Meyering  <meyering@redhat.com>
17598
17599         mktime: correct setting of REPLACE_MKTIME
17600         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17601
17602         update-copyright: new module
17603         * modules/update-copyright: New file.
17604         * build-aux/update-copyright: New file.
17605         * MODULES.html.sh (maint+release support): Add update-copyright.
17606
17607 2009-07-27  Bruno Haible  <bruno@clisp.org>
17608
17609         Fix compilation error when <ctime> is used and mktime is replaced.
17610         * lib/time.in.h (mktime): New declaration.
17611         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17612         REPLACE_MKTIME instead of defining mktime in config.h.
17613         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17614         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17615         Reported by Ross McFarland <rwmcfa1@neces.com>.
17616
17617 2009-07-27  Bruno Haible  <bruno@clisp.org>
17618
17619         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17620         Reported by Matt Kraai <mkraai@beckman.com>.
17621
17622 2009-07-25  Jim Meyering  <meyering@redhat.com>
17623
17624         maint.mk: avoid warnings about missing files
17625         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17626         diagnostic when .prev-version does not exist.
17627         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17628         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17629         nonexistent cfg.mk.
17630         Suggestions from Simon Josefsson.
17631
17632 2009-07-25  Bruno Haible  <bruno@clisp.org>
17633
17634         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17635         defined as macros. Needed on QNX 6.4.1.
17636         Reported by Matt Kraai <mkraai@beckman.com>.
17637
17638 2009-07-23  Jim Meyering  <meyering@redhat.com>
17639
17640         maint.mk: invoke "make dist" with a working value of XZ_OPT
17641         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17642
17643 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17644
17645         Make fseeko.c compile on QNX.
17646         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17647
17648 2009-07-22  Peter Simons  <simons@cryp.to>
17649
17650         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17651         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17652         * lib/md4.h: Likewise.
17653         * lib/md5.h: Likewise.
17654         * lib/sha1.h: Likewise.
17655         * lib/sha256.h: Likewise.
17656         * lib/sha512.h: Likewise.
17657
17658         tests-sha1: don't assign literal string to 'char *' variable
17659         * tests/test-sha1.c (main): Declare locals with "const" to match
17660         attributes of the right hand side.
17661
17662 2009-07-21  Eric Blake  <ebb9@byu.net>
17663
17664         dup2: fix more mingw problems
17665         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17666         fd to itself.
17667         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17668         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17669         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17670         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17671         care of mingw bugs.
17672
17673 2009-07-21  Jim Meyering  <meyering@redhat.com>
17674
17675         vc-list-files: avoid failure when /bin/sh is dash
17676         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17677         On some Debian based systems, /bin/sh is a symlink to dash, and running
17678         this command would omit the "/" following each 'tests' prefix:
17679           dash -x build-aux/vc-list-files -C . tests
17680         That is because bash and dash work differently:
17681           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17682           bash ok
17683           dash odd
17684
17685 2009-07-21  Eric Blake  <ebb9@byu.net>
17686
17687         dup2-tests: test previous patch
17688         * modules/dup2-tests: New file.
17689         * tests/test-dup2.c: Likewise.
17690         * tests/test-open.c (main): Avoid unspecified behavior.
17691         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17692         test.
17693
17694         dup2: work around mingw and cygwin 1.5 bug
17695         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17697         * modules/unistd (Makefile.am): Substitute it.
17698         * lib/unistd.in.h (dup2): Declare the replacement.
17699         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17700         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17701         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17702         * modules/execute (Depends-on): Add dup2.
17703         * modules/fseterr (Depends-on): Likewise.
17704         * modules/pipe (Depends-on): Likewise.
17705         * modules/posix_spawn-internal (Depends-on): Likewise.
17706
17707 2009-07-21  Bruno Haible  <bruno@clisp.org>
17708
17709         * modules/.gitattributes: New file.
17710
17711 2009-07-20  Bruno Haible  <bruno@clisp.org>
17712
17713         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17714         (main): Use it.
17715
17716 2009-07-20  Eric Blake  <ebb9@byu.net>
17717
17718         test-pipe: make a bit more robust.
17719         * tests/test-pipe.c (myerr): Allow error messages regardless of
17720         what we do to stderr.
17721         (test_pipe): Rearrange to avoid deadlock.
17722         (child_main): Try a larger read, to ensure we avoided deadlock.
17723         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17724         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17725         if misused.
17726
17727 2009-07-19  Jim Meyering  <meyering@redhat.com>
17728
17729         fts: avoid false-positive cycle-detection
17730         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17731         for each new command line argument.
17732
17733 2009-07-19  Bruno Haible  <bruno@clisp.org>
17734
17735         Fix build error on mingw with the modules sys_select and unistd.
17736         * modules/acl-tests (Depends-on): Add close.
17737         * modules/binary-io-tests (Depends-on): Likewise.
17738         * modules/closein-tests (Depends-on): Likewise.
17739         * modules/flock-tests (Depends-on): Likewise.
17740         * modules/fsync-tests (Depends-on): Likewise.
17741         * modules/lseek-tests (Depends-on): Likewise.
17742         * modules/pipe-tests (Depends-on): Likewise.
17743         * modules/posix_spawn-tests (Depends-on): Likewise.
17744         * modules/posix_spawnp-tests (Depends-on): Likewise.
17745         * modules/stat-time-tests (Depends-on): Likewise.
17746         * modules/yesno-tests (Depends-on): Likewise.
17747
17748 2009-07-19  Bruno Haible  <bruno@clisp.org>
17749
17750         Unify conditionals.
17751         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17752         macros, not at the compiler macros.
17753         * lib/pipe.c: Likewise.
17754         * lib/execute.c: Likewise.
17755         * lib/spawni.c: Likewise.
17756
17757 2009-07-19  Bruno Haible  <bruno@clisp.org>
17758
17759         Fix handling of closed stdin/stdout/stderr on mingw.
17760         * lib/w32spawn.h: Include unistd.h.
17761         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17762         file descriptor with O_NOINHERIT flag.
17763         (fd_safer_noinherit): New function, based on fd-safer.c.
17764         (dup_safer_noinherit): New function, based on dup-safer.c.
17765         (undup_safer_noinherit): New function.
17766         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17767         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17768         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17769         instead of fd_safer.
17770         * tests/test-pipe.c: Include <windows.h>.
17771         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17772
17773         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17774         from main.
17775         (test_pipe): Pass an extra argument for disambiguation.
17776         (main): Invoke parent_main or child_main.
17777
17778         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17779         consistently.
17780
17781 2009-07-18  Eric Blake  <ebb9@byu.net>
17782
17783         test-pipe: fix mingw build
17784         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17785
17786 2009-07-18  Bruno Haible  <bruno@clisp.org>
17787
17788         * modules/pipe-tests (Makefile.am): Fix typo.
17789
17790 2009-07-18  Eric Blake  <ebb9@byu.net>
17791
17792         error: fix mingw build
17793         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17794         Reported by Bruno Haible.
17795
17796         error: avoid undefined use of stdout
17797         * lib/error.c (error, error_at_line): Check that fd 1 is open
17798         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17799         is handling faults and the close_stdout module wants to report the
17800         detection of closed stdout as an error.
17801
17802 2009-07-17  Eric Blake  <ebb9@byu.net>
17803
17804         pipe: be robust in face of closed fds
17805         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17806         should cause child to misbehave.
17807         * modules/pipe-tests: New module.
17808         * tests/test-pipe.c: New file.
17809         * tests/test-pipe.sh: New file.
17810         Reported by Akim Demaille.
17811
17812 2009-07-14  Bruno Haible  <bruno@clisp.org>
17813
17814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17815         Reported by anonymous kc.
17816
17817 2009-07-07  Jim Meyering  <meyering@redhat.com>
17818
17819         maint.mk: don't look for translatable strings in *.m4 or *.mk
17820         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17821         when searching for translatable strings.
17822
17823 2009-07-05  Jim Meyering  <meyering@redhat.com>
17824
17825         remove superfluous parentheses in STREQ definition
17826         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17827         * lib/getugroups.c (STREQ): Likewise.
17828         * lib/fnmatch.c (STREQ): Likewise.
17829         Spotted by Bruno Haible.
17830
17831 2009-07-04  Jim Meyering  <meyering@redhat.com>
17832
17833         argv-iter: new module
17834         * MODULES.html.sh: Add argv-iter.
17835         * lib/argv-iter.c, lib/argv-iter.h: New files.
17836         * modules/argv-iter: New file.
17837         * modules/argv-iter-tests: New file.
17838         * tests/test-argv-iter.c: Test it.
17839
17840 2009-07-04  Bruno Haible  <bruno@clisp.org>
17841
17842         Fix assertion.
17843         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
17844         contains more exact copies of a given entry than file2, leave the extra
17845         copies unpaired rather than aborting.
17846         Reported by Eric Blake.
17847
17848 2009-07-02  Bruno Haible  <bruno@clisp.org>
17849
17850         Speedup git-merge-changelog for git cherry-pick.
17851         * lib/git-merge-changelog.c (struct entries_mapping): New type.
17852         (entries_mapping_get): New function, extracted from compute_mapping.
17853         (entries_mapping_reverse_get): New function.
17854         (compute_mapping): Add a 'full' argument. Return the result in a
17855         'struct entries_mapping'.
17856         (main): Update. Access the mappings through entries_mapping_get.
17857         Reported by Eric Blake.
17858
17859 2009-07-02  Bruno Haible  <bruno@clisp.org>
17860
17861         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
17862         best_i.
17863
17864 2009-07-02  Bruno Haible  <bruno@clisp.org>
17865
17866         Speed up approximate search for matching ChangeLog entries.
17867         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
17868         argument. Call fstrcmp_bounded instead of fstrcmp.
17869         (compute_mapping, try_split_merged_entry, main): Update callers.
17870
17871 2009-07-02  Bruno Haible  <bruno@clisp.org>
17872
17873         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
17874
17875 2009-06-30  Bruno Haible  <bruno@clisp.org>
17876
17877         Reduce the number of uc_is_cased calls.
17878         * lib/unicase.h (casing_suffix_context_t): Add
17879         'first_char_except_ignorable' field.
17880         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
17881         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
17882         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
17883         Update initializer.
17884         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
17885         case-ignorable characters.
17886         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
17887         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
17888         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
17889         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
17890         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
17891
17892 2009-06-30  Bruno Haible  <bruno@clisp.org>
17893
17894         Tests for module 'unicase/ignorable'.
17895         * modules/unicase/ignorable-tests: New file.
17896         * tests/unicase/test-ignorable.c: New file, generated by
17897         gen-uni-tables.
17898
17899         Tests for module 'unicase/cased'.
17900         * modules/unicase/cased-tests: New file.
17901         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
17902         * tests/unicase/test-predicate-part1.h: New file, derived from
17903         tests/unictype/test-predicate-part1.h.
17904         * tests/unicase/test-predicate-part2.h: New file, same as
17905         tests/unictype/test-predicate-part2.h.
17906
17907         Fix evaluation of "Before C" condition of FINAL_SIGMA.
17908         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
17909         (output_casing_properties): New function.
17910         (main): Call it.
17911         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
17912         * lib/unicase/cased.c: Include unictype/bitmap.h.
17913         (uc_is_cased): Define through a bitmap lookup.
17914         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
17915         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
17916         (uc_is_case_ignorable): Define through a bitmap lookup.
17917         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
17918         lib/unictype/bitmap.h.
17919         (Depends-on): Add inline. Clean up.
17920         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
17921         lib/unictype/bitmap.h.
17922         (Depends-on): Add inline. Clean up.
17923         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
17924         recognition.
17925         * tests/unicase/test-u16-tolower.c (main): Likewise.
17926         * tests/unicase/test-u32-tolower.c (main): Likewise.
17927
17928 2009-06-30  Bruno Haible  <bruno@clisp.org>
17929
17930         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
17931         * lib/unicase/u16-casemap.c: Likewise.
17932         * lib/unicase/u32-casemap.c: Likewise.
17933
17934 2009-06-29  Bruno Haible  <bruno@clisp.org>
17935
17936         Define u32_casefold as a wrapper around u32_ct_casefold.
17937         * lib/unicase/u32-casefold.c: Update.
17938         * modules/unicase/u32-casefold (Depends-on): Add
17939         unicase/u32-ct-casefold, unicase/empty-prefix-context,
17940         unicase/empty-suffix-context. Clean up.
17941
17942         Define u16_casefold as a wrapper around u16_ct_casefold.
17943         * lib/unicase/u16-casefold.c: Update.
17944         * modules/unicase/u16-casefold (Depends-on): Add
17945         unicase/u16-ct-casefold, unicase/empty-prefix-context,
17946         unicase/empty-suffix-context. Clean up.
17947
17948         Define u8_casefold as a wrapper around u8_ct_casefold.
17949         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
17950         * lib/unicase/u8-casefold.c: Update.
17951         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
17952         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17953
17954         Define u32_totitle as a wrapper around u32_ct_totitle.
17955         * lib/unicase/u32-totitle.c: Update.
17956         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
17957         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17958
17959         Define u16_totitle as a wrapper around u16_ct_totitle.
17960         * lib/unicase/u16-totitle.c: Update.
17961         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
17962         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17963
17964         Define u8_totitle as a wrapper around u8_ct_totitle.
17965         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
17966         functions.
17967         (FUNC): Delegate to U_CT_TOTITLE.
17968         * lib/unicase/u8-totitle.c: Update.
17969         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
17970         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17971
17972         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
17973         invocation.
17974         * modules/unicase/u32-tolower (Depends-on): Add
17975         unicase/empty-prefix-context, unicase/empty-suffix-context.
17976
17977         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
17978         invocation.
17979         * modules/unicase/u16-tolower (Depends-on): Add
17980         unicase/empty-prefix-context, unicase/empty-suffix-context.
17981
17982         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
17983         * modules/unicase/u8-tolower (Depends-on): Add
17984         unicase/empty-prefix-context, unicase/empty-suffix-context.
17985
17986         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
17987         invocation.
17988         * modules/unicase/u32-toupper (Depends-on): Add
17989         unicase/empty-prefix-context, unicase/empty-suffix-context.
17990
17991         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
17992         invocation.
17993         * modules/unicase/u16-toupper (Depends-on): Add
17994         unicase/empty-prefix-context, unicase/empty-suffix-context.
17995
17996         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
17997         * modules/unicase/u8-toupper (Depends-on): Add
17998         unicase/empty-prefix-context, unicase/empty-suffix-context.
17999
18000         New module 'unicase/u32-ct-casefold'.
18001         * lib/unicase/u32-ct-casefold.c: New file.
18002         * modules/unicase/u32-ct-casefold: New file.
18003
18004         New module 'unicase/u16-ct-casefold'.
18005         * lib/unicase/u16-ct-casefold.c: New file.
18006         * modules/unicase/u16-ct-casefold: New file.
18007
18008         New module 'unicase/u8-ct-casefold'.
18009         * lib/unicase/u8-ct-casefold.c: New file.
18010         * lib/unicase/u-ct-casefold.h: New file, derived from
18011         lib/unicase/u-casefold.h.
18012         * modules/unicase/u8-ct-casefold: New file.
18013
18014         New module 'unicase/u32-ct-totitle'.
18015         * lib/unicase/u32-ct-totitle.c: New file.
18016         * modules/unicase/u32-ct-totitle: New file.
18017
18018         New module 'unicase/u16-ct-totitle'.
18019         * lib/unicase/u16-ct-totitle.c: New file.
18020         * modules/unicase/u16-ct-totitle: New file.
18021
18022         New module 'unicase/u8-ct-totitle'.
18023         * lib/unicase/u8-ct-totitle.c: New file.
18024         * lib/unicase/u-ct-totitle.h: New file, derived from
18025         lib/unicase/u-totitle.h.
18026         * modules/unicase/u8-ct-totitle: New file.
18027
18028         New module 'unicase/u32-ct-tolower'.
18029         * lib/unicase/u32-ct-tolower.c: New file.
18030         * modules/unicase/u32-ct-tolower: New file.
18031
18032         New module 'unicase/u16-ct-tolower'.
18033         * lib/unicase/u16-ct-tolower.c: New file.
18034         * modules/unicase/u16-ct-tolower: New file.
18035
18036         New module 'unicase/u8-ct-tolower'.
18037         * lib/unicase/u8-ct-tolower.c: New file.
18038         * modules/unicase/u8-ct-tolower: New file.
18039
18040         New module 'unicase/u32-ct-toupper'.
18041         * lib/unicase/u32-ct-toupper.c: New file.
18042         * modules/unicase/u32-ct-toupper: New file.
18043
18044         New module 'unicase/u16-ct-toupper'.
18045         * lib/unicase/u16-ct-toupper.c: New file.
18046         * modules/unicase/u16-ct-toupper: New file.
18047
18048         New module 'unicase/u8-ct-toupper'.
18049         * lib/unicase/u8-ct-toupper.c: New file.
18050         * modules/unicase/u8-ct-toupper: New file.
18051
18052         Add context arguments to u*_casemap functions.
18053         * lib/unicase/unicasemap.h: Include unicase.h.
18054         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
18055         suffix_context arguments.
18056         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
18057         functions.
18058         (FUNC): Add prefix_context and suffix_context arguments. Use
18059         uc_is_cased and uc_is_case_ignorable.
18060         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
18061         * lib/unicase/u16-casemap.c: Likewise.
18062         * lib/unicase/u32-casemap.c: Likewise.
18063         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
18064         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18065         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
18066         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18067         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
18068         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18069
18070         New module 'unicase/u32-suffix-context'.
18071         * lib/unicase/u32-suffix-context.c: New file.
18072         * modules/unicase/u32-suffix-context: New file.
18073
18074         New module 'unicase/u16-suffix-context'.
18075         * lib/unicase/u16-suffix-context.c: New file.
18076         * modules/unicase/u16-suffix-context: New file.
18077
18078         New module 'unicase/u8-suffix-context'.
18079         * lib/unicase/u8-suffix-context.c: New file.
18080         * lib/unicase/u-suffix-context.h: New file.
18081         * modules/unicase/u8-suffix-context: New file.
18082
18083         New module 'unicase/empty-suffix-context'.
18084         * lib/unicase/empty-suffix-context.c: New file.
18085         * modules/unicase/empty-suffix-context: New file.
18086
18087         New module 'unicase/u32-prefix-context'.
18088         * lib/unicase/u32-prefix-context.c: New file.
18089         * modules/unicase/u32-prefix-context: New file.
18090
18091         New module 'unicase/u16-prefix-context'.
18092         * lib/unicase/u16-prefix-context.c: New file.
18093         * modules/unicase/u16-prefix-context: New file.
18094
18095         New module 'unicase/u8-prefix-context'.
18096         * lib/unicase/u8-prefix-context.c: New file.
18097         * lib/unicase/u-prefix-context.h: New file.
18098         * lib/unicase/context.h: New file.
18099         * modules/unicase/u8-prefix-context: New file.
18100
18101         New module 'unicase/empty-prefix-context'.
18102         * lib/unicase/empty-prefix-context.c: New file.
18103         * modules/unicase/empty-prefix-context: New file.
18104
18105         New module 'unicase/ignorable'.
18106         * lib/unicase/ignorable.c: New file.
18107         * modules/unicase/ignorable: New file.
18108
18109         New module 'unicase/cased'.
18110         * lib/unicase/caseprop.h: New file.
18111         * lib/unicase/cased.c: New file.
18112         * modules/unicase/cased: New file.
18113
18114         New functions for case mapping of substrings.
18115         * lib/unicase.h (casing_prefix_context_t): New type.
18116         (unicase_empty_prefix_context): New variable.
18117         (u8_casing_prefix_context, u16_casing_prefix_context,
18118         u32_casing_prefix_context, u8_casing_prefixes_context,
18119         u16_casing_prefixes_context, u32_casing_prefixes_context): New
18120         declarations.
18121         (casing_suffix_context_t): New type.
18122         (unicase_empty_suffix_context): New variable.
18123         (u8_casing_suffix_context, u16_casing_suffix_context,
18124         u32_casing_suffix_context, u8_casing_suffixes_context,
18125         u16_casing_suffixes_context, u32_casing_suffixes_context,
18126         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
18127         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
18128         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
18129         declarations.
18130
18131 2009-06-28  Jim Meyering  <meyering@redhat.com>
18132
18133         boostrap: indent only with spaces
18134         * build-aux/bootstrap: Indent only with spaces, never TABs.
18135
18136         bootstrap: split long lines
18137         * build-aux/bootstrap: Keep line length < 80.
18138
18139         bootstrap: sync from coreutils
18140         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
18141         just as autoreconf does.  Verify a list of prerequisite
18142         package-name,version-number pairs if defined in bootstrap.conf.
18143         Refer to README-prereq, if prerequisites are not satisfied.
18144
18145 2009-06-27  Eric Blake  <ebb9@byu.net>
18146
18147         tests: add test for bogus NULL definition
18148         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
18149         * tests/test-stdlib.c: Likewise.
18150         * tests/test-string.c: Likewise.
18151         * tests/test-locale.c: Likewise.
18152         * tests/test-unistd.c: Likewise.
18153         * modules/stdio-tests (Depends-on): Add verify.
18154         * modules/stdlib-tests (Depends-on): Likewise.
18155         * modules/string-tests (Depends-on): Likewise.
18156         * modules/locale-tests (Depends-on): Likewise.
18157         * modules/unistd-tests (Depends-on): Likewise.
18158
18159 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
18160
18161         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
18162         self-explaining comment.
18163         * m4/selinux-selinux-h: Update serial.
18164         (gl_LIBSELINUX): New macro, adding a warning for missing development
18165         packages to code extracted from...
18166         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
18167         Add warning for missing development packages here, too.
18168
18169 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
18170
18171         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
18172
18173 2009-06-25  Eric Blake  <ebb9@byu.net>
18174
18175         version-etc: fix regression
18176         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
18177         gcc.
18178         (version_etc): Use it, to catch bugs with trailing NULL.
18179         * lib/version-etc.c (version_etc_arn): Delete unused argument.
18180         (version_etc_va): Fix logic bug.
18181         * modules/version-etc-tests: Add test.
18182         * tests/test-version-etc.c: New file.
18183         * tests/test-version-etc.sh: Likewise.
18184
18185 2009-06-25  Sam Steingold  <sds@gnu.org>
18186
18187         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
18188         mbtowc declaration.
18189
18190 2009-06-25  Eric Blake  <ebb9@byu.net>
18191
18192         fpurge: migrate into <stdio.h>
18193         * lib/fpurge.h: Delete...
18194         * lib/stdio.in.h (fpurge): ...and declare here, instead.
18195         * lib/fpurge.c (fpurge): Change declaring header.
18196         * modules/fpurge (Files): Drop deleted file.
18197         (Depends-on): Add stdio.
18198         (configure.ac): Set witness.
18199         * modules/stdio (Makefile.am): Support fpurge macros.
18200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18201         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
18202         * lib/fflush.c: Update client.
18203         * tests/test-fpurge.c: Likewise.
18204         * NEWS: Mention the change.
18205
18206 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18207
18208         * lib/argp-version-etc.c (program_authors): Add const
18209         qualifier.
18210         * lib/version-etc.c: Fix typos in the comments.
18211         * modules/argp-version-etc: Depends on version-etc.
18212
18213 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18214
18215         argp-version-etc: new module.
18216
18217         * lib/argp-version-etc.c: New file.
18218         * lib/argp-version-etc.h: New file.
18219         * modules/argp-version-etc: New file.
18220         * modules/argp-version-etc-tests: New file.
18221         * tests/test-argp-version-etc.c: New test.
18222         * tests/test-argp-version-etc-1.sh: New test.
18223
18224 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18225
18226         Provide additional interfaces and documentation for version-etc
18227         module.
18228
18229         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
18230         interfaces.
18231         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
18232         prototypes.
18233
18234 2009-06-24  Bruno Haible  <bruno@clisp.org>
18235
18236         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
18237         HAVE_LIB${NAME} macro.
18238         Reported by Sam Steingold <sds@gnu.org>.
18239
18240 2009-06-23  Simon Josefsson  <simon@josefsson.org>
18241
18242         * modules/hash-tests (test_hash_LDADD): Link to libintl when
18243         needed.
18244
18245 2009-06-21  Bruno Haible  <bruno@clisp.org>
18246
18247         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
18248         work.
18249         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
18250         together with LIB${NAME}, LTLIB${NAME}.
18251         Reported by Sam Steingold <sds@gnu.org>.
18252
18253 2009-06-20  Jim Meyering  <meyering@redhat.com>
18254
18255         tests: make sc_require_test_exit_idiom more generic
18256         * top/maint.mk (Exit_witness_file): New overridable variable.
18257         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
18258         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
18259
18260 2009-06-19  Jim Meyering  <meyering@redhat.com>
18261
18262         hash: reverse order of src/dst parameters in an internal interface
18263         * lib/hash.c (transfer_entries): Reverse order of parameters to
18264         put DST before SRC.  Adjust callers.
18265
18266         tests: test-hash: avoid wholesale duplication
18267         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
18268         Instead, use a loop and add a single conditional.
18269
18270         tests: test-hash: allow seed selection via a command line argument
18271         * tests/test-hash.c (get_seed): New function.
18272         (main): Use it.
18273
18274 2009-06-19  Eric Blake  <ebb9@byu.net>
18275
18276         hash: avoid memory leak on allocation failure
18277         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
18278         failure.  Factor repeated algorithm...
18279         (transfer_entries): ...into new helper routine.
18280         (hash_delete): React to hash_rehash return value.
18281
18282         hash: reduce memory pressure in hash_rehash no-op case
18283         * lib/hash.c (next_prime): Avoid overflow.
18284         (hash_initialize): Factor bucket size computation...
18285         (compute_bucket_size): ...into new helper function.
18286         (hash_rehash): Use new function and open coding to reduce memory
18287         pressure, and avoid a memory leak in USE_OBSTACK code.
18288         Reported by Jim Meyering.
18289
18290 2009-06-18  Eric Blake  <ebb9@byu.net>
18291
18292         hash: make rotation more obvious
18293         * modules/hash (Depends-on): Add bitrotate and stdint.
18294         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
18295         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
18296         (SIZE_MAX): Rely on headers for definition.
18297         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
18298         (raw_hasher): Use rotr_sz.
18299         Suggested by Jim Meyering.
18300
18301         hash: fix memory leak in last patch
18302         * lib/hash.c (hash_rehash): Avoid memory leak.
18303
18304         hash: avoid no-op rehashing
18305         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
18306
18307         hash: provide default callback functions
18308         * lib/hash.c (raw_hasher, raw_comparator): New functions.
18309         (hash_initialize): Use them as defaults.
18310         * tests/test-hash.c (main): Test this.
18311
18312         hash: minor optimization
18313         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
18314         when possible.
18315         (hash_initialize): Document this promise.
18316         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
18317         * tests/test-hash.c (hash_compare_strings): Test this.
18318
18319 2009-06-18  Bruno Haible  <bruno@clisp.org>
18320
18321         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
18322         going to be replaced anyway.
18323
18324 2009-06-18  Bruno Haible  <bruno@clisp.org>
18325
18326         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
18327         in one place.
18328         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
18329         be replaced anyway.
18330
18331 2009-06-18  Eric Blake  <ebb9@byu.net>
18332
18333         hash: check for resize before insertion
18334         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
18335         threshold before insertion, so that a pathological hash_rehash
18336         that fills every bucket can still trigger another rehash.
18337
18338 2009-06-18  Jim Meyering  <meyering@redhat.com>
18339
18340         hash-tests: add a loop around the small tests
18341         * tests/test-hash.c (main): Repeat small tests with selected
18342         small initial table sizes.
18343
18344 2009-06-17  Eric Blake  <ebb9@byu.net>
18345
18346         hash: minor cleanups
18347         * lib/hash.h (hash_entry): Make opaque, by moving...
18348         * lib/hash.c (hash_entry): ...here.
18349         (hash_insert): Clarify restrictions on what can be inserted.
18350         (hash_get_next): Clarify when it is safe to remove an element
18351         during traversal.
18352         (check_tuning): Skip verification when tuning is known safe.
18353         (hash_initialize): Clarify restrictions on tuning.
18354
18355 2009-06-17  Jim Meyering  <jim@meyering.net>
18356         and Eric Blake  <ebb9@byu.net>
18357
18358         hash-tests: new module
18359         * modules/hash-tests: New file.
18360         * tests/test-hash.c: New file.
18361
18362 2009-06-17  Eric Blake  <ebb9@byu.net>
18363
18364         strstr-simple: document new module
18365         * MODULES.html.sh: Document new module.
18366
18367         strstr, strcasestr: replace on platforms with broken memchr
18368         * modules/strstr: Split into...
18369         * modules/strstr-simple: ...new module that does not care about
18370         performance, but does care about glibc bug.
18371         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
18372         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
18373         if platform memchr is broken, per Debian bug 521737.
18374         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
18375         memchr.
18376         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
18377         * doc/posix-functions/strstr.texi (strstr): Document the fix.
18378         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18379         * modules/mountlist (Depends-on): Add strstr-simple.
18380         * modules/gen-uni-tables (Depends-on): Likewise.
18381         * modules/argz (Depends-on): Add strstr.
18382
18383 2009-06-17  Bruno Haible  <bruno@clisp.org>
18384
18385         * modules/posix_spawn-internal (Depends-on): Add errno.
18386
18387 2009-06-17  Bruno Haible  <bruno@clisp.org>
18388
18389         Define missing ESTALE on Interix 3.5.
18390         * lib/errno.in.h (ESTALE): Assign a value if missing.
18391         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
18392         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
18393         missing.
18394         * doc/posix-headers/errno.texi: Mention the Interix bug.
18395         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
18396
18397 2009-06-15  Eric Blake  <ebb9@byu.net>
18398
18399         memchr, memchr2: add valgrind exception
18400         * lib/memchr.valgrind: New file.
18401         * lib/memchr2.valgrind: New file.
18402         * modules/memchr (Files): Distribute valgrind file.
18403         * modules/memchr2 (Files): Likewise.
18404
18405         docs: memchr is no longer obsolete
18406         * MODULES.html.sh: Move memchr from obsolete to string.h section.
18407         * lib/string.in.h (memchr): Simplify logic.
18408
18409 2009-06-14  Jim Meyering  <meyering@redhat.com>
18410
18411         link-follow: fix the "checking..." message to not mention trailing slash
18412         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
18413         never considered trailing slashes.
18414
18415 2009-06-14  Bruno Haible  <bruno@clisp.org>
18416
18417         * m4/memchr.m4: Mention also the bug on IA-64.
18418         * doc/posix-functions/memchr.texi: Likewise.
18419
18420 2009-06-12  Eric Blake  <ebb9@byu.net>
18421
18422         memchr: detect broken x86_64 and alpha implementations
18423         * modules/memchr-tests (Depends-on): Move mmap detection...
18424         * modules/memchr (Depends-on): ...here.
18425         (configure.ac): Set indicator.
18426         * lib/string.in.h (memchr): Declare replacement.
18427         * modules/string (Makefile.am): Trigger replacement.
18428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18429         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
18430         bugs.
18431         * doc/posix-functions/memchr.texi (memchr): Document the bug.
18432         * modules/getpagesize (License): Relax license.
18433
18434 2009-06-11  Bruno Haible  <bruno@clisp.org>
18435
18436         * lib/idpriv.h: Add more references.
18437
18438 2009-06-08  Bruno Haible  <bruno@clisp.org>
18439
18440         Tests for module 'idpriv-droptemp'.
18441         * modules/idpriv-droptemp-tests: New file.
18442         * tests/test-idpriv-droptemp.sh: New file.
18443         * tests/test-idpriv-droptemp.su.sh: New file.
18444         * tests/test-idpriv-droptemp.c: New file.
18445
18446         New module 'idpriv-droptemp'.
18447         * lib/idpriv-droptemp.c: New file.
18448         * modules/idpriv-droptemp: New file.
18449
18450 2009-06-08  Bruno Haible  <bruno@clisp.org>
18451
18452         Tests for module 'idpriv-drop'.
18453         * modules/idpriv-drop-tests: New file.
18454         * tests/test-idpriv-drop.sh: New file.
18455         * tests/test-idpriv-drop.su.sh: New file.
18456         * tests/test-idpriv-drop.c: New file.
18457
18458         New module 'idpriv-drop'.
18459         * lib/idpriv.h: New file.
18460         * lib-idpriv-drop.c: New file.
18461         * m4/idpriv.m4: New file.
18462         * modules/idpriv-drop: New file.
18463
18464 2009-06-08  Bruno Haible  <bruno@clisp.org>
18465
18466         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
18467         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18468         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18469         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18470         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18471         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18472         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18473
18474 2009-06-08  Eric Blake  <ebb9@byu.net>
18475
18476         test-strstr: use memory fence, when possible
18477         * tests/test-strstr.c (main): Use memory fence, in order to be
18478         more likely to trigger Debian bug 521737.
18479         * modules/strstr-tests (Files): Pull in additional files.
18480
18481         memchr: no longer obsolete, for wider field testing
18482         * modules/memchr (Status, Notice): Delete, this module is no
18483         longer obsolete.
18484         * modules/vasnprintf (Depends-on): Add memchr.
18485
18486 2009-06-07  Jim Meyering  <meyering@redhat.com>
18487
18488         hash: declare some functions with the warn_unused_result attribute
18489         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
18490
18491 2009-06-07  Bruno Haible  <bruno@clisp.org>
18492
18493         * tests/test-alignof.c: Don't test int64_t if it does not exist.
18494         Reported by Eric Blake.
18495
18496 2009-06-06  Eric Blake  <ebb9@byu.net>
18497
18498         test-alignof: fix typo with long double
18499         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
18500         compiler error.
18501
18502 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
18503
18504         Escape non-texinfo { and }s.
18505         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
18506         markup error.
18507
18508 2009-06-04  Jim Meyering  <meyering@redhat.com>
18509
18510         gitlog-to-changelog: don't infloop on an empty commit log
18511         * build-aux/gitlog-to-changelog: Warn about an empty log message.
18512         Reported by Boris Petersen <transacid@centerim.org>.
18513
18514 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
18515
18516         version-etc: extend for packagers
18517         Add three new configure options, intended for packagers:
18518           --with-packager="packager name"
18519           --with-packager-version="packager-specific version"
18520           --with-packager-bug-reports="packager bug reporting"
18521         An example with coreutils:
18522           $ ./configure \
18523             --with-packager=Gentoo \
18524             --with-packager-bug-report=http://bugs.gentoo.org/ \
18525             --with-packager-version="patchset 1.6"
18526           $ ./src/ls --version | head -n2
18527           ls (GNU coreutils) 7.1-dirty
18528           Packaged by Gentoo (patchset 1.6)
18529         Note that the bug reporting info via --help doesn't show up because
18530         coreutils uses its own custom emit_bug_reporting_address() implementation
18531         in src/system.h.  If it didn't, it'd look like:
18532           $ ./src/ls --help | tail -n4
18533           Report bugs to <bug-coreutils@gnu.org>.
18534           Report Gentoo bugs to <http://bugs.gentoo.org/>.
18535           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
18536           General help using GNU software: <http://www.gnu.org/gethelp/>.
18537         * lib/version-etc.c: Print new information, if provided.
18538         * m4/version-etc.m4: New file.
18539         * modules/version-etc (Files): Add m4/version-etc.m4.
18540         (configure.ac): Add gl_VERSION_ETC.
18541
18542 2009-05-31  Bruno Haible  <bruno@clisp.org>
18543
18544         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
18545         and 'int64_t'.
18546         * modules/alignof-tests (Dependencies): Add stdint.
18547         Reported by Eric Blake.
18548
18549 2009-05-31  Bruno Haible  <bruno@clisp.org>
18550
18551         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
18552         restriction due to compiler bugs.
18553         Reported by Eric Blake.
18554
18555 2009-05-31  Simon Josefsson  <simon@josefsson.org>
18556             Bruno Haible  <bruno@clisp.org>
18557
18558         Fix test-alignof failure.
18559         * lib/alignof.h (alignof_slot): New macro.
18560         (alignof_type): New macro, with the same semantics as the previous
18561         'alignof'.
18562         (alignof): Alias to alignof_slot.
18563         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
18564         check that the results are usable as constant expressions.
18565
18566 2009-05-31  Bruno Haible  <bruno@clisp.org>
18567
18568         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
18569         * tests/test-memchr.c (main): Check that memchr does not read past the
18570         first occurrence of the byte.
18571         * tests/test-strstr.c (main): Update comment.
18572         Suggested by Eric Blake.
18573
18574 2009-05-30  Bruno Haible  <bruno@clisp.org>
18575
18576         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
18577         detail how to use dumpbin.
18578         Reported by David Byron <dbyron@dbyron.com>.
18579
18580 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18581
18582         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
18583
18584 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18585
18586         * m4/manywarnings.m4: Add GCC 4.4 warnings.
18587
18588 2009-05-28  Bruno Haible  <bruno@clisp.org>
18589
18590         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18591         build-aux/ files.
18592
18593 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18594
18595         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18596
18597 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18598
18599         * gnulib-tool (sed_transform_main_lib_file)
18600         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18601         regexps.
18602
18603 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18604
18605         * tests/test-strstr.c: Add another self-test.
18606         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18607         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18608
18609 2009-05-23  Bruno Haible  <bruno@clisp.org>
18610
18611         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18612         change.
18613
18614 2009-05-21  Bruno Haible  <bruno@clisp.org>
18615
18616         Simplify use of mode_t varargs.
18617         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18618         uses 'mode_t' or 'int'.
18619         * lib/openat.c (openat): Likewise.
18620         * lib/open-safer.c (open_safer): Likewise.
18621         * m4/mode_t.m4: New file.
18622         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18623         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18624         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18625         * modules/open (Files): Add m4/mode_t.m4.
18626         * modules/openat (Files): Likewise.
18627         * modules/fcntl-safer (Files): Likewise.
18628         Suggested by Eric Blake.
18629
18630 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18631
18632         * doc/glibc-functions/fallocate.texi: New file.
18633         * doc/gnulib.texi: Include it.
18634
18635 2009-05-21  Eric Blake  <ebb9@byu.net>
18636             Bruno Haible  <bruno@clisp.org>
18637
18638         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18639         invocations.
18640         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18641
18642 2009-05-21  Eric Blake  <ebb9@byu.net>
18643             Bruno Haible  <bruno@clisp.org>
18644
18645         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18646         include_next. Fix of 2008-11-20 commit.
18647         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18648         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18649         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18650         NEXT_MATH_H.
18651         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18652         instead of NEXT_MATH_H.
18653
18654 2009-05-21  Bruno Haible  <bruno@clisp.org>
18655
18656         Avoid redefinition warnings for SIZE_MAX.
18657         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18658         Reported by Simon Josefsson.
18659
18660 2009-05-21  Bruno Haible  <bruno@clisp.org>
18661
18662         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18663         AC_CACHE_VAL.
18664
18665 2009-05-20  Bruno Haible  <bruno@clisp.org>
18666
18667         Make zeroptr.h work on mingw.
18668         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18669         mprotect.
18670         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18671         * modules/memchr2-tests (configure.ac): Likewise.
18672         * modules/memcmp-tests (configure.ac): Likewise.
18673         * modules/memmem-tests (configure.ac): Likewise.
18674         * modules/memrchr-tests (configure.ac): Likewise.
18675         Reported by Simon Josefsson.
18676
18677 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18678
18679         * tests/test-glob.c: Include string.h for strcmp prototype.
18680
18681 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18682
18683         * modules/getdelim (Depends-on): Add explicit stdint, although it
18684         was implicitly already pulled in via realloc-posix.
18685         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18686
18687 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18688
18689         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18690         G. Christensen" <tgc@jupiterrise.com>.
18691         * m4/sys_socket_h.m4: Check for sa_family_t.
18692         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18693         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18694         * tests/test-sys_socket.c: Check that sa_family_t works.
18695
18696 2009-05-18  Eric Blake  <ebb9@byu.net>
18697
18698         maint.mk: allow gnulib_dir in VPATH build
18699         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18700
18701 2009-05-15  Jim Meyering  <meyering@redhat.com>
18702
18703         maint.mk: Give gnulib_dir a default definition.
18704         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18705         Thus, most packages no longer need to specify this variable in cfg.mk
18706
18707 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18708
18709         rename.m4: fix typos that would make non-mingw cross-configure fail
18710         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18711
18712 2009-05-13  Eric Blake  <ebb9@byu.net>
18713
18714         mmap-anon: avoid out-of-order autoconf expansion
18715         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18716         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18717         * modules/memchr-tests (Depends-on): Add extensions.
18718         * modules/memchr2-tests (Depends-on): Add extensions.
18719         * modules/memcmp-tests (Depends-on): Add extensions.
18720         * modules/memmem-tests (Depends-on): Add extensions.
18721         * modules/memrchr-tests (Depends-on): Add extensions.
18722
18723 2009-05-13  Bruno Haible  <bruno@clisp.org>
18724
18725         Make some tests ISO C 99 compliant.
18726         * tests/zerosize-ptr.h: New file.
18727         * tests/test-memchr.c: Include zerosize-ptr.h.
18728         (main): Use a zero-size object pointer instead of NULL.
18729         * tests/test-memchr2.c: Include zerosize-ptr.h.
18730         (main): Use a zero-size object pointer instead of NULL.
18731         * tests/test-memcmp.c: Include zerosize-ptr.h.
18732         (main): Use a zero-size object pointer instead of NULL.
18733         * tests/test-memmem.c: Include zerosize-ptr.h.
18734         (main): Use a zero-size object pointer instead of NULL.
18735         * tests/test-memrchr.c: Include zerosize-ptr.h.
18736         (main): Use a zero-size object pointer instead of NULL.
18737         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
18738         m4/mmap-anon.m4.
18739         (Depends-on): Add getpagesize.
18740         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18741         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
18742         m4/mmap-anon.m4.
18743         (Depends-on): Add getpagesize.
18744         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18745         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
18746         m4/mmap-anon.m4.
18747         (Depends-on): Add getpagesize.
18748         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18749         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
18750         m4/mmap-anon.m4.
18751         (Depends-on): Add getpagesize.
18752         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18753         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18754         m4/mmap-anon.m4.
18755         (Depends-on): Add getpagesize.
18756         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18757
18758 2009-05-12  Bruno Haible  <bruno@clisp.org>
18759
18760         Tests for module 'alignof'.
18761         * modules/alignof-tests: New file.
18762         * tests/test-alignof.c: New file.
18763
18764 2009-05-12  Bruno Haible  <bruno@clisp.org>
18765
18766         Fix alignof macro.
18767         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18768         vendor compilers that are always correct.
18769
18770 2009-05-12  Bruno Haible  <bruno@clisp.org>
18771
18772         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18773         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18774         not whether its fully works.
18775
18776 2009-05-12  Bruno Haible  <bruno@clisp.org>
18777
18778         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18779
18780 2009-05-12  Jim Meyering  <meyering@redhat.com>
18781
18782         * top/maint.mk: Adjust backslash alignment.
18783
18784 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18785
18786         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18787
18788 2009-05-11  Eric Blake  <ebb9@byu.net>
18789
18790         argp: avoid undefined behavior
18791         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18792         macros.
18793
18794 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18795
18796         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18797         user.name to prevent git commit from complaining.
18798
18799 2009-05-10  Bruno Haible  <bruno@clisp.org>
18800
18801         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18802         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18803         it rewrites every file name only once.
18804         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18805
18806 2009-05-08  Bruno Haible  <bruno@clisp.org>
18807
18808         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18809         instead of 'max'.
18810
18811 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18812
18813         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18814         sockaddr_storage test.
18815
18816 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18817
18818         * modules/sys_socket (Makefile.am): Substitute
18819         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18820         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18821         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18822         * tests/test-sys_socket.c: Check sockaddr_storage.
18823
18824 2009-05-08  Bruno Haible  <bruno@clisp.org>
18825
18826         New module 'alignof'.
18827         * lib/alignof.h: New file.
18828         * modules/alignof: New file.
18829
18830 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18831             Bruno Haible  <bruno@clisp.org>
18832
18833         Fix test-file-has-acl on FreeBSD.
18834         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
18835         mask is implicitly added.
18836         * tests/test-file-has-acl.c: Include <signal.h>.
18837         (main): Terminate the test after 5 seconds.
18838         * modules/acl-tests (configure.ac): Check for alarm function.
18839
18840 2009-05-04  Bruno Haible  <bruno@clisp.org>
18841
18842         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
18843         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
18844         * modules/errno (configure.ac): Drop AC_REQUIRE.
18845         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
18846         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
18847
18848 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18849
18850         * modules/glob-tests: New module.
18851         * tests/test-glob.c: Add.
18852
18853 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18854
18855         * modules/fnmatch-tests: New module.
18856         * tests/test-fnmatch.c: Add.
18857
18858 2009-05-04  Eric Blake  <ebb9@byu.net>
18859
18860         maint: make the new no-submodule-changes rule VPATH-safe
18861         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
18862
18863 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18864             Bruno Haible  <bruno@clisp.org>
18865
18866         acl: Fix infinite loop on FreeBSD.
18867         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
18868         of return value from acl_get_entry.
18869         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
18870         Likewise.
18871
18872 2009-05-03  Bruno Haible  <bruno@clisp.org>
18873
18874         * lib/acl-internal.h (acl_entries): Clarify return value.
18875         * lib/acl_entries.c (acl_entries): Likewise.
18876
18877 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18878
18879         Bug fix in acl module.
18880         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
18881
18882 2009-05-03  Bruno Haible  <bruno@clisp.org>
18883
18884         Create gperf-generated file in the source dir, not in the build dir.
18885         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
18886         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
18887         * modules/unicase/locale-language (unicase/locale-languages.h):
18888         Likewise.
18889         * modules/unicase/special-casing (unicase/special-casing-table.h):
18890         Likewise.
18891         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
18892         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
18893         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
18894         Reported by Ralf Wildenhues.
18895
18896 2009-05-03  Bruno Haible  <bruno@clisp.org>
18897
18898         * modules/fnmatch (Description, configure.ac): Taken from
18899         fnmatch-posix.
18900         * modules/fnmatch-posix: Turn into a symbolic reference to the
18901         'fnmatch' module, and deprecate.
18902         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
18903
18904 2009-05-03  Bruno Haible  <bruno@clisp.org>
18905
18906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
18907         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
18908         Reported by Ralf Wildenhues.
18909
18910 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18911
18912         * m4/fnmatch.m4: Fix fnmatch re-define.
18913
18914 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18915
18916         priv-set: new module and tests; adapt write-any-file
18917         * lib/priv-set.c: New file.
18918         * lib/priv-set.h: New file.
18919         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
18920         * lib/write-any-file.c: Simplify by using priv-set module.
18921         * m4/priv-set.m4: New file.
18922         * modules/priv-set: New file.
18923         * modules/unlinkdir: Add dependency on priv-set module.
18924         * modules/write-any-file: Likewise.
18925
18926         Tests for module 'priv-set'.
18927         * modules/priv-set-tests: New file.
18928         * tests/test-priv-set.c: New file.
18929
18930 2009-05-03  Jim Meyering  <meyering@redhat.com>
18931             Bruno Haible  <bruno@clisp.org>
18932
18933         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
18934         use the converted UTF-8 variant of the name instead.
18935
18936 2009-05-03  Jim Meyering  <meyering@redhat.com>
18937
18938         tests: tighten some getdate tests
18939         * tests/test-getdate.c (main): Tighten tests: require equality,
18940         not just greater than.  Set TZ envvar to UTC0.
18941
18942 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18943
18944         getdate: correctly interpret "next monday" when run on a Monday
18945         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
18946         that e.g., "next tues" (when run on a tuesday) results in a date
18947         that is one week in the future, and not today's date.
18948         I.e., add a week when the wday is the same as the current one.
18949         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
18950         and earlier by Martin Bernreuther and Jan Minář.
18951         * tests/test-getdate.c (main): Check that "next DAY" is always in
18952         the future and that "last DAY" is always in the past.
18953
18954 2009-05-02  Jim Meyering  <meyering@redhat.com>
18955
18956         build: ensure that a release build fails when a submodule is unclean
18957         * top/maint.mk (no-submodule-changes): New rule.
18958         (alpha beta major): Depend on it.
18959
18960 2009-05-02  Bruno Haible  <bruno@clisp.org>
18961
18962         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
18963         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
18964         shell variable gl_fnmatch_required to detect which variant is
18965         requested.
18966         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
18967         gl_FUNC_FNMATCH_POSIX.
18968         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
18969         exclude fnmatch-posix.
18970
18971 2009-05-02  Bruno Haible  <bruno@clisp.org>
18972
18973         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
18974         * modules/mbsrtowcs (License): Change to LGPLv2+.
18975         * modules/strnlen1 (License): Likewise.
18976         Reported by Simon Josefsson.
18977
18978 2009-05-02  Bruno Haible  <bruno@clisp.org>
18979
18980         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
18981         "cross".
18982         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
18983         gnulib-tool was called with option --source-base=lib.
18984
18985 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18986
18987         Use automake *-local hooks without commands, for extensibility.
18988         * modules/localcharset (Makefile.am): Rename install-exec-local
18989         rule to install-exec-localcharset, and make it a prerequisite of
18990         install-exec-local.  Likewise, rename the uninstall-local rule to
18991         uninstall-localcharset, and make it a prerequisite of the former.
18992
18993 2009-05-01  Bruno Haible  <bruno@clisp.org>
18994
18995         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
18996         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18997         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
18998         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
18999         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
19000         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19001         m4/locale-zh.m4, m4/codeset.m4.
19002
19003         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19004         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
19005         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19006         m4/locale-zh.m4.
19007
19008         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
19009         REPLACE_WCRTOMB if mbstate_t must be replaced.
19010         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
19011         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
19012
19013 2009-05-01  Bruno Haible  <bruno@clisp.org>
19014
19015         Avoid compiler warnings when redefining macros defined by <libintl.h>.
19016         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
19017         dngettext, dcngettext, textdomain, bindtextdomain,
19018         bind_textdomain_codeset): Undefine before redefining.
19019
19020 2009-04-30  Bruno Haible  <bruno@clisp.org>
19021
19022         Fix bug introduced on 2009-04-25.
19023         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
19024         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
19025         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
19026         is defined.
19027         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
19028         is defined.
19029         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
19030         is defined.
19031         Reported by Elbert_Pol <elbert.pol@gmail.com>.
19032
19033 2009-04-28  Bruno Haible  <bruno@clisp.org>
19034
19035         Comment tweaks.
19036         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
19037         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
19038         * lib/unicase.h (u*_casexfrm): Likewise.
19039         Reported by Paolo Bonzini.
19040
19041 2009-04-28  Bruno Haible  <bruno@clisp.org>
19042
19043         Fix a compilation error.
19044         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
19045         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19046         Reported by Jim Meyering.
19047
19048 2009-04-27  Bruno Haible  <bruno@clisp.org>
19049
19050         New module 'libunistring'.
19051         * modules/libunistring: New file.
19052         * m4/libunistring.m4: New file.
19053         * MODULES.html.sh (Unicode string functions): Add it.
19054
19055 2009-04-27  Eric Blake  <ebb9@byu.net>
19056
19057         maint.mk: allow package-specific header to provide <config.h>
19058         * top/maint.mk (sc_require_config_h): New variable.
19059         (sc_require_config_h, sc_require_config_h_first): Use it.
19060
19061 2009-04-27  Simon Josefsson  <simon@josefsson.org>
19062
19063         * top/maint.mk (sc_avoid_if_before_free): Except
19064         useless-if-before-free script.
19065
19066 2009-04-27  Eric Blake  <ebb9@byu.net>
19067
19068         maintainer-makefile: depend on all required helper scripts
19069         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
19070         useless-if-before-free.
19071         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
19072         version, rather than assuming gnulib checkout is available.
19073         Reported by Simen Josefsson.
19074
19075 2009-04-26  Bruno Haible  <bruno@clisp.org>
19076
19077         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
19078         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
19079         "../" or "..".
19080
19081 2009-04-26  Bruno Haible  <bruno@clisp.org>
19082
19083         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
19084         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
19085         AC_LIB_HAVE_LINKFLAGS.
19086
19087 2009-04-26  Bruno Haible  <bruno@clisp.org>
19088
19089         Simplify calling convention of u*_conv_from_encoding.
19090         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
19091         u32_conv_from_encoding): Expect a resultbuf argument and return the
19092         result directly as a pointer.
19093         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
19094         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
19095         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
19096         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
19097         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
19098         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19099         Update.
19100         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
19101         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
19102         * lib/vasnprintf.c (VASNPRINTF): Update.
19103         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
19104         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
19105         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
19106         * NEWS: Mention the change.
19107
19108 2009-04-26  Bruno Haible  <bruno@clisp.org>
19109
19110         Simplify calling convention of u*_conv_to_encoding.
19111         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19112         u32_conv_to_encoding): Expect a resultbuf argument and return the
19113         result directly as a pointer.
19114         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19115         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
19116         freeing scaled_offsets if mem_iconveha failed.
19117         * lib/unicase/u-casexfrm.h (FUNC): Update.
19118         * lib/uninorm/u-normxfrm.h (FUNC): Update.
19119         * lib/vasnprintf.c (VASNPRINTF): Update.
19120         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
19121         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
19122         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
19123         * NEWS: Mention the change.
19124
19125 2009-04-26  Bruno Haible  <bruno@clisp.org>
19126
19127         Avoid test failures on AIX and OSF/1.
19128         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
19129         malloc(0).
19130         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19131         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19132         Likewise.
19133         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
19134         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
19135         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
19136         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
19137         * doc/posix-functions/malloc.texi: Document the portability problem
19138         related to malloc(0).
19139
19140 2009-04-26  Bruno Haible  <bruno@clisp.org>
19141
19142         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
19143         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
19144         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
19145
19146 2009-04-25  Bruno Haible  <bruno@clisp.org>
19147
19148         Avoid link error when creating a namespace clean library.
19149         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
19150         as macro with arguments if already defined as an alias.
19151         * lib/signbitf.c (gl_signbitf): Don't undefine.
19152         * lib/signbitd.c (gl_signbitd): Don't undefine.
19153         * lib/signbitl.c (gl_signbitl): Don't undefine.
19154
19155 2009-04-25  Jim Meyering  <meyering@redhat.com>
19156
19157         vc-list-files: fix another quoting bug
19158         * build-aux/vc-list-files: Avoid sed backslash expansion
19159         of pathological directory names.
19160
19161 2009-04-25  Eric Blake  <ebb9@byu.net>
19162
19163         vc-list-files: fix shell quoting error
19164         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
19165         timestamp.
19166
19167 2009-04-25  Jim Meyering  <meyering@redhat.com>
19168
19169         vc-list-files: restore lost functionality with subdir argument
19170         * build-aux/vc-list-files: When given a non-"." sub-directory
19171         argument, substitute the $dir/ prefix back onto each resulting name.
19172         Otherwise, coreutils' root_tests check would fail.
19173
19174 2009-04-24  Eric Blake  <ebb9@byu.net>
19175
19176         vc-list-files: ignore git symlinks
19177         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
19178         than ls-files, to ignore git symlinks.
19179
19180         maint.mk: import improvements from m4
19181         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
19182         (move_if_change): Delete unused macro.
19183         (news-date-check, vc-diff-check): Support VPATH builds.
19184         (announcement): Likewise.  Split --bootstrap-tools list...
19185         (boostrap-tools): ...into separate list, which can be overridden
19186         in cfg.mk.
19187         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
19188         requiring dependency on useless-if-before-free module.
19189         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
19190         Support VPATH builds.
19191
19192 2009-04-24  Jim Meyering  <meyering@redhat.com>
19193
19194         maint.mk: remove coreutils-specific rules and variables
19195         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
19196         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
19197         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
19198
19199         maint.mk: remove obsolete rule
19200         * top/maint.mk (rel-check): Remove rule.
19201         (WGET, WGETFLAGS): Remove now-unused variables.
19202
19203 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19204
19205         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
19206         consistency.
19207
19208         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
19209         '$(PATH_SEPARATOR)' instead of ':'.
19210
19211 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19212
19213         * lib/getopt1.c (main): Use 'const' for static array.
19214
19215 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19216
19217         * top/maint.mk: Sync with coreutils.
19218         * NEWS: Explain incompatibilities.
19219
19220 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19221             Bruno Haible  <bruno@clisp.org>
19222
19223         Fix cross-compilation results.
19224         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
19225         statement, as third argument of AC_TRY_RUN.
19226         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19227         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19228         Likewise.
19229         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19230         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19231         Likewise.
19232         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19233         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
19234         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
19235
19236 2009-04-20  Bruno Haible  <bruno@clisp.org>
19237
19238         Avoid test failure on mingw.
19239         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
19240
19241 2009-04-20  Bruno Haible  <bruno@clisp.org>
19242
19243         Avoid compilation error on mingw.
19244         * modules/localename-tests (Depends-on): Add locale.
19245
19246 2009-04-19  Bruno Haible  <bruno@clisp.org>
19247
19248         Support for building a shared library on Windows platforms.
19249         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
19250         (main): Test the presence of UNINORM_NFC here.
19251         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
19252         (main): Test the presence of UNINORM_NFD here.
19253         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
19254         (main): Test the presence of UNINORM_NFKC here.
19255         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
19256         (main): Test the presence of UNINORM_NFKD here.
19257
19258 2009-04-19  Bruno Haible  <bruno@clisp.org>
19259
19260         Avoid a compiler warning.
19261         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
19262         Change type of variable 'sequence'.
19263
19264 2009-04-19  Bruno Haible  <bruno@clisp.org>
19265
19266         * modules/configmake (Makefile.am): When the contents of configmake.h
19267         does not change, arrange to preserve its modification time.
19268
19269 2009-04-17  Simon Josefsson  <simon@josefsson.org>
19270
19271         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
19272         gettext domain.
19273
19274 2009-04-16  Jim Meyering  <meyering@redhat.com>
19275
19276         useless-if-before-free: improve conversion code
19277         * build-aux/useless-if-before-free: Adjust code-in-comment to match
19278         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
19279
19280 2009-04-14  Bruno Haible  <bruno@clisp.org>
19281
19282         * modules/fcntl (Depends-on): Add extensions.
19283         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
19284
19285 2009-04-12  Ben Pfaff  <blp@gnu.org>
19286
19287         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
19288         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
19289
19290 2009-03-20  Ben Pfaff  <blp@gnu.org>
19291
19292         Make rename replace existing destinations on Windows.
19293         * m4/rename.m4: Add test for Mingw.
19294         * lib/rename.c: Add rename replacement that uses MoveFileEx with
19295         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
19296         * doc/posix-functions/rename.texi: Document.
19297
19298 2009-04-10  Bruno Haible  <bruno@clisp.org>
19299
19300         New include file "iconveh.h".
19301         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
19302         * lib/striconveh.h: Include it.
19303         (enum iconv_ilseq_handler): Remove definition.
19304         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
19305         striconveh.h.
19306         * lib/striconveha.c: Include striconveh.h.
19307         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
19308         * modules/striconveh (Files): Add lib/iconveh.h.
19309         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
19310         lib/striconveh.h.
19311
19312 2009-04-10  Bruno Haible  <bruno@clisp.org>
19313
19314         * lib/uniconv.h: Update comment.
19315
19316 2009-04-10  Bruno Haible  <bruno@clisp.org>
19317
19318         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
19319         always.
19320         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19321         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19322         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19323         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
19324         "unistring-notinline.h", so that the function gets defined always.
19325         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19326         * lib/unistr/u8-uctomb.c: Likewise.
19327         * lib/unistr/u16-mbtouc.c: Likewise.
19328         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19329         * lib/unistr/u16-uctomb.c: Likewise.
19330         * lib/unistr/u32-mbtouc.c: Likewise.
19331         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19332         * lib/unistr/u32-uctomb.c: Likewise.
19333
19334 2009-04-10  Bruno Haible  <bruno@clisp.org>
19335
19336         Mark 'utime' obsolete.
19337         * modules/utime (Status, Notice): New sections.
19338         Suggested by Jim Meyering.
19339
19340         Fix cross-compile guess for utime test.
19341         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
19342         autoconf.
19343         * doc/posix-functions/utime.texi: Give more precisions.
19344         Reported by Jan <ipif@ymail.com>.
19345
19346 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
19347
19348         filevercmp: correct today's change
19349         * lib/filevercmp.c: Also handle coreutils' test inputs.
19350         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
19351
19352         Fix regression in 'filevercmp' module. Thanks Sven Joachim
19353         for reporting it.
19354         * lib/filevercmp.c: Special handle for "", "." and "..".
19355         * tests/test-filevercmp.c: Enlarge the set suite.
19356
19357 2009-04-07  Jim Meyering  <meyering@redhat.com>
19358
19359         useless-if-before-free: show how to remove braced useless free, too
19360         * build-aux/useless-if-before-free: still only in a comment, though.
19361
19362 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
19363
19364         maint.mk: import changes to syntax-check macros from coreutils
19365         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
19366         Use them in the relevant macros.
19367
19368 2009-04-06  Bruno Haible  <bruno@clisp.org>
19369
19370         Fix unportable use of bit-fields.
19371         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
19372         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
19373         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
19374
19375 2009-04-06  Bruno Haible  <bruno@clisp.org>
19376
19377         Avoid test failures on AIX and OSF/1.
19378         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
19379         that malloc(0) = NULL.
19380         * tests/unicase/test-u8-tolower.c (check): Likewise.
19381         * tests/unicase/test-u8-totitle.c (check): Likewise.
19382         * tests/unicase/test-u8-toupper.c (check): Likewise.
19383         * tests/unicase/test-u16-casefold.c (check): Likewise.
19384         * tests/unicase/test-u16-tolower.c (check): Likewise.
19385         * tests/unicase/test-u16-totitle.c (check): Likewise.
19386         * tests/unicase/test-u16-toupper.c (check): Likewise.
19387         * tests/unicase/test-u32-casefold.c (check): Likewise.
19388         * tests/unicase/test-u32-tolower.c (check): Likewise.
19389         * tests/unicase/test-u32-totitle.c (check): Likewise.
19390         * tests/unicase/test-u32-toupper.c (check): Likewise.
19391         * tests/uninorm/test-u8-nfc.c (check): Likewise.
19392         * tests/uninorm/test-u8-nfd.c (check): Likewise.
19393         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
19394         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
19395         * tests/uninorm/test-u16-nfc.c (check): Likewise.
19396         * tests/uninorm/test-u16-nfd.c (check): Likewise.
19397         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
19398         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
19399         * tests/uninorm/test-u32-nfc.c (check): Likewise.
19400         * tests/uninorm/test-u32-nfd.c (check): Likewise.
19401         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
19402         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
19403
19404 2009-04-05  Bruno Haible  <bruno@clisp.org>
19405
19406         Work around an autoconf limitation.
19407         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
19408         comment line if it would be longer than 3 KB.
19409
19410 2009-04-05  Bruno Haible  <bruno@clisp.org>
19411
19412         Avoid test failure with libiconv-1.13.
19413         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
19414         of the expected test results.
19415
19416 2009-04-05  Bruno Haible  <bruno@clisp.org>
19417
19418         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
19419         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
19420         that it should be installed.
19421
19422 2009-04-05  Bruno Haible  <bruno@clisp.org>
19423
19424         * gnulib-tool: New option --copy-file.
19425         (func_usage): Document it.
19426         (func_dest_tmpfilename): Moved out of func_import.
19427         (func_add_file, func_update_file): New functions, extracted from
19428         func_import.
19429         (func_import): Update.
19430
19431 2009-04-05  Karl Berry  <karl@gnu.org>
19432
19433         * README: prominently mention gnulib-tool.
19434         Rearrange sections so getting the code is near the top.
19435
19436 2009-04-05  Bruno Haible  <bruno@clisp.org>
19437
19438         * lib/unicase.h: Mention u*_cmp2.
19439         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19440         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
19441         * lib/unicase/ulc-casecmp.c: Likewise.
19442         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
19443         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
19444         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
19445         unistr/u8-cmp.
19446         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
19447         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
19448         unistr/u16-cmp.
19449         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
19450         unistr/u32-cmp.
19451
19452         * lib/uninorm.h: Mention u*_cmp2.
19453         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19454         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
19455         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
19456         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
19457         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
19458         unistr/u8-cmp.
19459         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
19460         unistr/u16-cmp.
19461         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
19462         unistr/u32-cmp.
19463
19464         New module 'unistr/u32-cmp2'.
19465         * lib/unistr/u32-cmp2.c: New file.
19466         * modules/unistr/u32-cmp2: New file.
19467
19468         New module 'unistr/u16-cmp2'.
19469         * lib/unistr/u16-cmp2.c: New file.
19470         * modules/unistr/u16-cmp2: New file.
19471
19472         New module 'unistr/u8-cmp2'.
19473         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
19474         * lib/unistr/u8-cmp2.c: New file.
19475         * lib/unistr/u-cmp2.h: New file.
19476         * modules/unistr/u8-cmp2: New file.
19477
19478 2009-04-05  Bruno Haible  <bruno@clisp.org>
19479
19480         * lib/unictype.h (uc_property_is_valid): New macro.
19481         * tests/unictype/test-pr_byname.c (main): Use it.
19482
19483         * lib/unistr.h: Doc fixes.
19484         * lib/uniconv.h: Doc fixes.
19485         * lib/unictype.h: Doc fixes.
19486
19487 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19488
19489         Port coreutils 7.2 to Solaris 8.
19490
19491         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
19492         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
19493         for Solaris 8.  This is a bit of a hack, as it means it's the
19494         caller's responsibility to add -lnsl if needed, but most likely it
19495         won't be needed since only getaddrinfo uses this and getaddrinfo
19496         isn't needed on Solaris 8.
19497
19498         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
19499         problem to Solaris 8 encountered with coreutils 7.2, which
19500         resulted in a message "fnmatch.c:292: warning: passing argument 4
19501         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
19502         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
19503
19504 2009-04-03  Simon Josefsson  <simon@josefsson.org>
19505
19506         * m4/ld-version-script.m4: Add FIXME comment.
19507
19508 2009-04-02  Simon Josefsson  <simon@josefsson.org>
19509
19510         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
19511         SOVERSION variable.
19512
19513 2009-04-02  Bruno Haible  <bruno@clisp.org>
19514
19515         * Makefile (info, html, dvi, pdf): Combine the rules.
19516         Suggested by Jim Meyering.
19517
19518 2009-04-01  Bruno Haible  <bruno@clisp.org>
19519
19520         * Makefile (info, html, dvi, pdf): New targets.
19521         Reported by Reuben Thomas <rrt@sc3d.org>.
19522
19523 2009-04-01  Bruno Haible  <bruno@clisp.org>
19524
19525         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
19526         can be put into PATH.
19527         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
19528
19529 2009-04-01  Bruno Haible  <bruno@clisp.org>
19530
19531         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
19532
19533 2009-04-01  Bruno Haible  <bruno@clisp.org>
19534
19535         Rename module 'visibility'.
19536         * modules/lib-symbol-visibility: Renamed from modules/visibility.
19537         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
19538         * doc/gnulib.texi: Update.
19539         * MODULES.html.sh (Misc): Update.
19540         * NEWS: Mention the change.
19541
19542 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19543
19544         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
19545         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
19546         Eric Blake <ebb9@byu.net> for review.
19547         * MODULES.html.sh: Add lib-msvc-compat.
19548         * doc/gnulib.texi: Link to new section.
19549         * m4/ld-output-def.m4: New file.
19550         * doc/ld-output-def.texi: New file.
19551
19552 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19553
19554         Rename ld-version-script to lib-symbol-versions.  Suggested by
19555         Bruno Haible <bruno@clisp.org>.
19556         * modules/ld-version-script: Renamed to lib-symbol-versions.
19557         * doc/ld-version-script.texi: Fix module name.
19558         * MODULES.html.sh: Add lib-symbol-versions.
19559
19560 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19561
19562         * modules/u64-tests: New file.
19563         * tests/test-u64.c: New file.
19564
19565 2009-03-04  Simon Josefsson  <simon@josefsson.org>
19566
19567         * MODULES.html.sh: Mention u64.
19568         * modules/u64: New module.
19569         * modules/crypto/sha512: Depend on u64 module instead of providing
19570         u64.h.
19571
19572 2009-03-27  Eric Blake  <ebb9@byu.net>
19573
19574         test-strerror: make debugging EAI_SYSTEM easier
19575         * modules/getaddrinfo-tests (Depends-on): Add strerror.
19576         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
19577         failure was EAI_SYSTEM.
19578
19579 2009-03-25  Bruno Haible  <bruno@clisp.org>
19580
19581         Fix a problem with --enable-relocatable on Solaris 7.
19582         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
19583         since 2008-02-24.
19584
19585 2009-03-25  Eric Blake  <ebb9@byu.net>
19586
19587         test-sockets: avoid gcc warning
19588         * tests/test-sockets.c (main): Silence compiler warning.
19589
19590 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19591
19592         New modules nproc, pthread, contributed by Glen Lenker.
19593
19594         * MODULES.html.sh: Add pthread, nproc.
19595         * lib/nproc.c: New file.
19596         * lib/nproc.h: New file.
19597         * lib/pthread.in.h: New file.
19598         * m4/pthread.m4: New file.
19599         * modules/nproc: New file.
19600         * modules/pthread: New file.
19601
19602 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19603
19604         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19605         New variable.
19606
19607 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19608
19609         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19610         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19611         * tests/test-filevercmp.c: Add tests for backup suffixes.
19612
19613 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19614
19615         * modules/stdlib (Depends-on): Add stdint, needed when defining
19616         struct random_data on, for example, HP-UX 10.20.  Reported by
19617         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19618
19619 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19620
19621         * lib/readline.c (readline): Call fflush on stdout after printing
19622         prompt.
19623
19624 2009-03-20  Bruno Haible  <bruno@clisp.org>
19625
19626         Remove dependency from 'close' module to -lws2_32 on native Windows.
19627         * lib/close-hook.h: New file.
19628         * lib/close-hook.c: New file.
19629         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19630         w32sock.h.
19631         (_gl_close_fd_maybe_socket): Remove function.
19632         (rpl_close): Invoke execute_all_close_hooks instead of
19633         _gl_close_fd_maybe_socket.
19634         * lib/sockets.c: Include close-hook.h, w32sock.h.
19635         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19636         (close_sockets_hook): New variable.
19637         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19638         (gl_sockets_cleanup): Unregister it.
19639         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19640         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19641         * modules/close-hook: New file.
19642         * modules/close (Files): Remove lib/w32sock.h.
19643         (Depends-on): Add close-hook.
19644         (Link): Remove section.
19645         * modules/sockets (Files): Add lib/w32sock.h.
19646         (Depends-on): Add close-hook.
19647         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19648         invocation.
19649         * NEWS: Mention that LIB_CLOSE is gone.
19650
19651 2009-03-23  Eric Blake  <ebb9@byu.net>
19652
19653         signal-tests: test previous patch
19654         * tests/test-signal.c: New file.
19655         * modules/signal-tests: Likewise.
19656
19657         signal.h: always support 'volatile sig_atomic_t'
19658         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19659         (gl_SIGNAL_H_DEFAULTS): Add a default.
19660         * modules/signal (Makefile.am): Substitute if needed.
19661         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19662         users can blindly add volatile.
19663         * doc/posix-headers/signal.texi (signal.h): Document it.
19664         Reported by Matthew Woehlke.
19665
19666 2009-03-23  Jim Meyering  <meyering@redhat.com>
19667
19668         pathmax: PATH_MAX: use pathconf only when available
19669         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19670         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19671         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19672         This avoids a link failure in a PSP cross-compilation environment
19673         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19674
19675         * lib/vasnprintf.c (divide): Fix typo in comment.
19676
19677 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19678
19679         * gnulib-tool (func_filter_filelist): Fix comment.
19680
19681 2009-03-20  Bruno Haible  <bruno@clisp.org>
19682
19683         Make sockets.h self-contained.
19684         * lib/sockets.c: Include sockets.h first.
19685         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19686
19687 2009-03-19  Eric Blake  <ebb9@byu.net>
19688
19689         doc: mention more functions added in cygwin 1.7.0
19690         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19691         addition.
19692         * doc/posix-functions/log2f.texi: Likewise.
19693
19694 2009-03-19  Jim Meyering  <meyering@redhat.com>
19695
19696         fsusage: avoid syntax error due to statement-before-declaration
19697         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19698         after all declarations.  Reported by Matthew Woehlke in
19699         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19700
19701 2009-03-18  Eric Blake  <ebb9@byu.net>
19702
19703         build-aux/compile: sync from automake
19704         * build-aux/compile: New file, from automake.
19705         * config/srclist.txt: Mention build-aux/compile.
19706
19707 2009-03-17  Bruno Haible  <bruno@clisp.org>
19708
19709         * lib/git-merge-changelog.c: Fix typo in comment.
19710         Reported by Reuben Thomas <rrt@sc3d.org>.
19711
19712 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19713
19714         * m4/regex.m4: update and improve help for
19715         --without-included-regex.
19716
19717 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19718
19719         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19720         failure on missing include files.
19721
19722 2009-03-17  Eric Blake  <ebb9@byu.net>
19723
19724         doc: mention more functions added in cygwin 1.7.0
19725         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19726         addition.
19727         * doc/posix-functions/fwscanf.texi: Likewise.
19728         * doc/posix-functions/swprintf.texi: Likewise.
19729         * doc/posix-functions/swscanf.texi: Likewise.
19730         * doc/posix-functions/vfwprintf.texi: Likewise.
19731         * doc/posix-functions/vfwscanf.texi: Likewise.
19732         * doc/posix-functions/vswprintf.texi: Likewise.
19733         * doc/posix-functions/vswscanf.texi: Likewise.
19734         * doc/posix-functions/vwprintf.texi: Likewise.
19735         * doc/posix-functions/vwscanf.texi: Likewise.
19736         * doc/posix-functions/wcscasecmp.texi: Likewise.
19737         * doc/posix-functions/wcsdup.texi: Likewise.
19738         * doc/posix-functions/wcsftime.texi: Likewise.
19739         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19740         * doc/posix-functions/wprintf.texi: Likewise.
19741         * doc/posix-functions/wscanf.texi: Likewise.
19742         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19743
19744 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19745
19746         maint.mk: really add $(AM_MAKEFLAGS)
19747         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19748         was inadvertently omitted in the last commit.
19749         Spotted by Bruno Haible.
19750
19751         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19752         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19753         $(AM_MAKEFLAGS)' rather than plain `make'.
19754
19755         gnulib-tool: execute $MAKE not make
19756         * gnulib-tool: Default $MAKE to 'make'.
19757         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19758         than make.  Initialize $MAKE in the do-autobuild script.
19759
19760         gnulib-tool: use $MAKE not make in generated files
19761         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19762         make, in generated files.  Initialize $MAKE in the do-autobuild
19763         script.
19764
19765         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19766
19767         GNUmakefile: disable parallelism only for multiple, recursive targets
19768         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19769         additions in the Makefile.
19770         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19771         by Automake.
19772         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19773         are listed on the command line and at least one of them is
19774         listed in $(ALL_RECURSIVE_TARGETS).
19775
19776 2009-03-14  Bruno Haible  <bruno@clisp.org>
19777
19778         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19779         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19780         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19781         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19782         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19783         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19784         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19785         unistr/u8-uctomb.
19786         * modules/unistr/u8-strchr (Depends-on): Likewise.
19787         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19788         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19789         unistr/u16-uctomb.
19790         * modules/unistr/u16-strchr (Depends-on): Likewise.
19791         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19792
19793 2009-03-12  Bruno Haible  <bruno@clisp.org>
19794
19795         Work around select() bug on Interix 3.5.
19796         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19797         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19798         * m4/select.m4: New file.
19799         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19800         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19801         * modules/select (Files): Add m4/select.m4.
19802         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19803         * modules/nanosleep (Depends-on): Add select.
19804         * modules/poll (Depends-on): Likewise.
19805         * doc/posix-functions/select.texi: Mention the Interix bug.
19806         Reported by Markus Duft <mduft@gentoo.org>.
19807
19808         * lib/select.c: Renamed from lib/winsock-select.c.
19809         * modules/select (Files): Add lib/select.c, remove
19810         lib/winsock-select.c.
19811         (configure.ac): Update.
19812
19813 2009-03-12  Jim Meyering  <meyering@redhat.com>
19814
19815         avoid gcc warnings about unused macro definitions
19816         * lib/readtokens.c (STREQ): Remove unused definition.
19817         * lib/xmalloc.c (SIZE_MAX): Likewise.
19818         * lib/openat-die.c (N_): Likewise.
19819         * lib/mountlist.c (SIZE_MAX): Remove definition.
19820         Instead, include <stdint.h>.
19821         * lib/readutmp.c: Likewise.
19822         * modules/readutmp (Depends-on): Add stdint.
19823         * modules/mountlist (Depends-on): Add stdint.
19824         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19825
19826 2009-03-10  Bruno Haible  <bruno@clisp.org>
19827
19828         Tests for module 'mbmemcasecoll'.
19829         * modules/mbmemcasecoll-tests: New file.
19830         * tests/test-mbmemcasecoll1.sh: New file.
19831         * tests/test-mbmemcasecoll2.sh: New file.
19832         * tests/test-mbmemcasecoll3.sh: New file.
19833         * tests/test-mbmemcasecoll.c: New file.
19834
19835         New module 'mbmemcasecoll'.
19836         * lib/mbmemcasecoll.h: New file.
19837         * lib/mbmemcasecoll.c: New file.
19838         * modules/mbmemcasecoll: New file.
19839
19840         * tests/test-mbmemcasecmp.h: New file, extracted from
19841         tests/test-mbmemcasecmp.c.
19842         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
19843         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
19844         (main): Update.
19845         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
19846
19847 2009-03-09  Bruno Haible  <bruno@clisp.org>
19848
19849         Tests for module 'mbmemcasecmp'.
19850         * modules/mbmemcasecmp-tests: New file.
19851         * tests/test-mbmemcasecmp1.sh: New file.
19852         * tests/test-mbmemcasecmp2.sh: New file.
19853         * tests/test-mbmemcasecmp3.sh: New file.
19854         * tests/test-mbmemcasecmp.c: New file.
19855
19856         New module 'mbmemcasecmp'.
19857         * lib/mbmemcasecmp.h: New file.
19858         * lib/mbmemcasecmp.c: New file.
19859         * modules/mbmemcasecmp: New file.
19860
19861 2009-03-09  Bruno Haible  <bruno@clisp.org>
19862
19863         Tests for module 'unicase/ulc-casecoll'.
19864         * modules/unicase/ulc-casecoll-tests: New file.
19865         * tests/unicase/test-ulc-casecoll1.sh: New file.
19866         * tests/unicase/test-ulc-casecoll2.sh: New file.
19867         * tests/unicase/test-ulc-casecoll.c: New file.
19868
19869         New module 'unicase/ulc-casecoll'.
19870         * lib/unicase.h (ulc_casecoll): New declaration.
19871         * lib/unicase/ulc-casecoll.c: New file.
19872         * modules/unicase/ulc-casecoll: New file.
19873
19874         New module 'unicase/ulc-casexfrm'.
19875         * lib/unicase.h (ulc_casexfrm): New declaration.
19876         * lib/unicase/ulc-casexfrm.c: New file.
19877         * modules/unicase/ulc-casexfrm: New file.
19878
19879 2009-03-09  Bruno Haible  <bruno@clisp.org>
19880
19881         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
19882         invocations.
19883
19884         * m4/mbscasecmp.m4: Remove file.
19885         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
19886         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
19887
19888         * m4/mbscasestr.m4: Remove file.
19889         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
19890         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
19891
19892         * m4/mbschr.m4: Remove file.
19893         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
19894         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
19895
19896         * m4/mbscspn.m4: Remove file.
19897         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
19898         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
19899
19900         * m4/mbslen.m4: Remove file.
19901         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
19902         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
19903
19904         * m4/mbsncasecmp.m4: Remove file.
19905         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
19906         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
19907
19908         * m4/mbsnlen.m4: Remove file.
19909         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
19910         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
19911
19912         * m4/mbspbrk.m4: Remove file.
19913         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
19914         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
19915
19916         * m4/mbspcasecmp.m4: Remove file.
19917         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
19918         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
19919
19920         * m4/mbsrchr.m4: Remove file.
19921         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
19922         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
19923
19924         * m4/mbssep.m4: Remove file.
19925         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
19926         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
19927
19928         * m4/mbsspn.m4: Remove file.
19929         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
19930         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
19931
19932         * m4/mbsstr.m4: Remove file.
19933         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
19934         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
19935
19936         * m4/mbstok_r.m4: Remove file.
19937         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
19938         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
19939
19940         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
19941
19942         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
19943         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
19944
19945         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
19946
19947 2009-03-08  Bruno Haible  <bruno@clisp.org>
19948
19949         Tests for module 'unicase/ulc-casecmp'.
19950         * modules/unicase/ulc-casecmp-tests: New file.
19951         * tests/unicase/test-ulc-casecmp1.sh: New file.
19952         * tests/unicase/test-ulc-casecmp2.sh: New file.
19953         * tests/unicase/test-ulc-casecmp.c: New file.
19954
19955         New module 'unicase/ulc-casecmp'.
19956         * lib/unicase.h (ulc_casecmp): New declaration.
19957         * lib/unicase/ulc-casecmp.c: New file.
19958         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
19959         'const SRC_UNIT *'.
19960         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
19961         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
19962         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
19963         * modules/unicase/ulc-casecmp: New file.
19964
19965         Tests for module 'unicase/u32-is-cased'.
19966         * modules/unicase/u32-is-cased-tests: New file.
19967         * tests/unicase/test-u32-is-cased.c: New file.
19968
19969         Tests for module 'unicase/u16-is-cased'.
19970         * modules/unicase/u16-is-cased-tests: New file.
19971         * tests/unicase/test-u16-is-cased.c: New file.
19972
19973         Tests for module 'unicase/u8-is-cased'.
19974         * modules/unicase/u8-is-cased-tests: New file.
19975         * tests/unicase/test-u8-is-cased.c: New file.
19976         * tests/unicase/test-is-cased.h: New file.
19977
19978         New module 'unicase/u32-is-cased'.
19979         * lib/unicase/u32-is-cased.c: New file.
19980         * modules/unicase/u32-is-cased: New file.
19981
19982         New module 'unicase/u16-is-cased'.
19983         * lib/unicase/u16-is-cased.c: New file.
19984         * modules/unicase/u16-is-cased: New file.
19985
19986         New module 'unicase/u8-is-cased'.
19987         * lib/unicase/u8-is-cased.c: New file.
19988         * lib/unicase/u-is-cased.h: New file.
19989         * modules/unicase/u8-is-cased: New file.
19990
19991         Tests for module 'unicase/u32-is-casefolded'.
19992         * modules/unicase/u32-is-casefolded-tests: New file.
19993         * tests/unicase/test-u32-is-casefolded.c: New file.
19994
19995         Tests for module 'unicase/u16-is-casefolded'.
19996         * modules/unicase/u16-is-casefolded-tests: New file.
19997         * tests/unicase/test-u16-is-casefolded.c: New file.
19998
19999         Tests for module 'unicase/u8-is-casefolded'.
20000         * modules/unicase/u8-is-casefolded-tests: New file.
20001         * tests/unicase/test-u8-is-casefolded.c: New file.
20002         * tests/unicase/test-is-casefolded.h: New file.
20003
20004         New module 'unicase/u32-is-casefolded'.
20005         * lib/unicase/u32-is-casefolded.c: New file.
20006         * modules/unicase/u32-is-casefolded: New file.
20007
20008         New module 'unicase/u16-is-casefolded'.
20009         * lib/unicase/u16-is-casefolded.c: New file.
20010         * modules/unicase/u16-is-casefolded: New file.
20011
20012         New module 'unicase/u8-is-casefolded'.
20013         * lib/unicase/u8-is-casefolded.c: New file.
20014         * modules/unicase/u8-is-casefolded: New file.
20015
20016         Tests for module 'unicase/u32-is-titlecase'.
20017         * modules/unicase/u32-is-titlecase-tests: New file.
20018         * tests/unicase/test-u32-is-titlecase.c: New file.
20019
20020         Tests for module 'unicase/u16-is-titlecase'.
20021         * modules/unicase/u16-is-titlecase-tests: New file.
20022         * tests/unicase/test-u16-is-titlecase.c: New file.
20023
20024         Tests for module 'unicase/u8-is-titlecase'.
20025         * modules/unicase/u8-is-titlecase-tests: New file.
20026         * tests/unicase/test-u8-is-titlecase.c: New file.
20027         * tests/unicase/test-is-titlecase.h: New file.
20028
20029         New module 'unicase/u32-is-titlecase'.
20030         * lib/unicase/u32-is-titlecase.c: New file.
20031         * modules/unicase/u32-is-titlecase: New file.
20032
20033         New module 'unicase/u16-is-titlecase'.
20034         * lib/unicase/u16-is-titlecase.c: New file.
20035         * modules/unicase/u16-is-titlecase: New file.
20036
20037         New module 'unicase/u8-is-titlecase'.
20038         * lib/unicase/u8-is-titlecase.c: New file.
20039         * modules/unicase/u8-is-titlecase: New file.
20040
20041         Tests for module 'unicase/u32-is-lowercase'.
20042         * modules/unicase/u32-is-lowercase-tests: New file.
20043         * tests/unicase/test-u32-is-lowercase.c: New file.
20044
20045         Tests for module 'unicase/u16-is-lowercase'.
20046         * modules/unicase/u16-is-lowercase-tests: New file.
20047         * tests/unicase/test-u16-is-lowercase.c: New file.
20048
20049         Tests for module 'unicase/u8-is-lowercase'.
20050         * modules/unicase/u8-is-lowercase-tests: New file.
20051         * tests/unicase/test-u8-is-lowercase.c: New file.
20052         * tests/unicase/test-is-lowercase.h: New file.
20053
20054         New module 'unicase/u32-is-lowercase'.
20055         * lib/unicase/u32-is-lowercase.c: New file.
20056         * modules/unicase/u32-is-lowercase: New file.
20057
20058         New module 'unicase/u16-is-lowercase'.
20059         * lib/unicase/u16-is-lowercase.c: New file.
20060         * modules/unicase/u16-is-lowercase: New file.
20061
20062         New module 'unicase/u8-is-lowercase'.
20063         * lib/unicase/u8-is-lowercase.c: New file.
20064         * modules/unicase/u8-is-lowercase: New file.
20065
20066         Tests for module 'unicase/u32-is-uppercase'.
20067         * modules/unicase/u32-is-uppercase-tests: New file.
20068         * tests/unicase/test-u32-is-uppercase.c: New file.
20069
20070         Tests for module 'unicase/u16-is-uppercase'.
20071         * modules/unicase/u16-is-uppercase-tests: New file.
20072         * tests/unicase/test-u16-is-uppercase.c: New file.
20073
20074         Tests for module 'unicase/u8-is-uppercase'.
20075         * modules/unicase/u8-is-uppercase-tests: New file.
20076         * tests/unicase/test-u8-is-uppercase.c: New file.
20077         * tests/unicase/test-is-uppercase.h: New file.
20078
20079         New module 'unicase/u32-is-uppercase'.
20080         * lib/unicase/u32-is-uppercase.c: New file.
20081         * modules/unicase/u32-is-uppercase: New file.
20082
20083         New module 'unicase/u16-is-uppercase'.
20084         * lib/unicase/u16-is-uppercase.c: New file.
20085         * modules/unicase/u16-is-uppercase: New file.
20086
20087         New module 'unicase/u8-is-uppercase'.
20088         * lib/unicase/u8-is-uppercase.c: New file.
20089         * modules/unicase/u8-is-uppercase: New file.
20090
20091         New module 'unicase/u32-is-invariant'.
20092         * lib/unicase/u32-is-invariant.c: New file.
20093         * modules/unicase/u32-is-invariant: New file.
20094
20095         New module 'unicase/u16-is-invariant'.
20096         * lib/unicase/u16-is-invariant.c: New file.
20097         * modules/unicase/u16-is-invariant: New file.
20098
20099         New module 'unicase/u8-is-invariant'.
20100         * lib/unicase/u8-is-invariant.c: New file.
20101         * lib/unicase/invariant.h: New file.
20102         * lib/unicase/u-is-invariant.h: New file.
20103         * modules/unicase/u8-is-invariant: New file.
20104
20105         Tests for module 'unicase/u32-casecoll'.
20106         * modules/unicase/u32-casecoll-tests: New file.
20107         * tests/unicase/test-u32-casecoll.c: New file.
20108
20109         Tests for module 'unicase/u16-casecoll'.
20110         * modules/unicase/u16-casecoll-tests: New file.
20111         * tests/unicase/test-u16-casecoll.c: New file.
20112
20113         Tests for module 'unicase/u8-casecoll'.
20114         * modules/unicase/u8-casecoll-tests: New file.
20115         * tests/unicase/test-u8-casecoll.c: New file.
20116
20117         New module 'unicase/u32-casecoll'.
20118         * lib/unicase/u32-casecoll.c: New file.
20119         * modules/unicase/u32-casecoll: New file.
20120
20121         New module 'unicase/u16-casecoll'.
20122         * lib/unicase/u16-casecoll.c: New file.
20123         * modules/unicase/u16-casecoll: New file.
20124
20125         New module 'unicase/u8-casecoll'.
20126         * lib/unicase/u8-casecoll.c: New file.
20127         * lib/unicase/u-casecoll.h: New file.
20128         * modules/unicase/u8-casecoll: New file.
20129
20130         New module 'unicase/u32-casexfrm'.
20131         * lib/unicase/u32-casexfrm.c: New file.
20132         * modules/unicase/u32-casexfrm: New file.
20133
20134         New module 'unicase/u16-casexfrm'.
20135         * lib/unicase/u16-casexfrm.c: New file.
20136         * modules/unicase/u16-casexfrm: New file.
20137
20138         New module 'unicase/u8-casexfrm'.
20139         * lib/unicase/u8-casexfrm.c: New file.
20140         * lib/unicase/u-casexfrm.h: New file.
20141         * modules/unicase/u8-casexfrm: New file.
20142
20143         Tests for module 'unicase/u32-casecmp'.
20144         * modules/unicase/u32-casecmp-tests: New file.
20145         * tests/unicase/test-u32-casecmp.c: New file.
20146
20147         Tests for module 'unicase/u16-casecmp'.
20148         * modules/unicase/u16-casecmp-tests: New file.
20149         * tests/unicase/test-u16-casecmp.c: New file.
20150
20151         Tests for module 'unicase/u8-casecmp'.
20152         * modules/unicase/u8-casecmp-tests: New file.
20153         * tests/unicase/test-u8-casecmp.c: New file.
20154         * tests/unicase/test-casecmp.h: New file.
20155
20156         New module 'unicase/u32-casecmp'.
20157         * lib/unicase/u32-casecmp.c: New file.
20158         * modules/unicase/u32-casecmp: New file.
20159
20160         New module 'unicase/u16-casecmp'.
20161         * lib/unicase/u16-casecmp.c: New file.
20162         * modules/unicase/u16-casecmp: New file.
20163
20164         New module 'unicase/u8-casecmp'.
20165         * lib/unicase/u8-casecmp.c: New file.
20166         * lib/unicase/u-casecmp.h: New file.
20167         * modules/unicase/u8-casecmp: New file.
20168
20169         Tests for module 'unicase/u32-casefold'.
20170         * modules/unicase/u32-casefold-tests: New file.
20171         * tests/unicase/test-u32-casefold.c: New file.
20172
20173         Tests for module 'unicase/u16-casefold'.
20174         * modules/unicase/u16-casefold-tests: New file.
20175         * tests/unicase/test-u16-casefold.c: New file.
20176
20177         Tests for module 'unicase/u8-casefold'.
20178         * modules/unicase/u8-casefold-tests: New file.
20179         * tests/unicase/test-u8-casefold.c: New file.
20180
20181         New module 'unicase/u32-casefold'.
20182         * lib/unicase/u32-casefold.c: New file.
20183         * modules/unicase/u32-casefold: New file.
20184
20185         New module 'unicase/u16-casefold'.
20186         * lib/unicase/u16-casefold.c: New file.
20187         * modules/unicase/u16-casefold: New file.
20188
20189         New module 'unicase/u8-casefold'.
20190         * lib/unicase/u8-casefold.c: New file.
20191         * lib/unicase/u-casefold.h: New file.
20192         * modules/unicase/u8-casefold: New file.
20193
20194         New module 'unicase/tocasefold'.
20195         * lib/unicase/casefold.h: New file.
20196         * lib/unicase/tocasefold.c: New file.
20197         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
20198         * modules/unicase/tocasefold: New file.
20199
20200         Tests for module 'unicase/u32-totitle'.
20201         * modules/unicase/u32-totitle-tests: New file.
20202         * tests/unicase/test-u32-totitle.c: New file.
20203
20204         Tests for module 'unicase/u16-totitle'.
20205         * modules/unicase/u16-totitle-tests: New file.
20206         * tests/unicase/test-u16-totitle.c: New file.
20207
20208         Tests for module 'unicase/u8-totitle'.
20209         * modules/unicase/u8-totitle-tests: New file.
20210         * tests/unicase/test-u8-totitle.c: New file.
20211
20212         New module 'unicase/u32-totitle'.
20213         * lib/unicase/u32-totitle.c: New file.
20214         * modules/unicase/u32-totitle: New file.
20215
20216         New module 'unicase/u16-totitle'.
20217         * lib/unicase/u16-totitle.c: New file.
20218         * modules/unicase/u16-totitle: New file.
20219
20220         New module 'unicase/u8-totitle'.
20221         * lib/unicase/u8-totitle.c: New file.
20222         * lib/unicase/u-totitle.h: New file.
20223         * modules/unicase/u8-totitle: New file.
20224
20225         Tests for module 'unicase/u32-tolower'.
20226         * modules/unicase/u32-tolower-tests: New file.
20227         * tests/unicase/test-u32-tolower.c: New file.
20228
20229         Tests for module 'unicase/u16-tolower'.
20230         * modules/unicase/u16-tolower-tests: New file.
20231         * tests/unicase/test-u16-tolower.c: New file.
20232
20233         Tests for module 'unicase/u8-tolower'.
20234         * modules/unicase/u8-tolower-tests: New file.
20235         * tests/unicase/test-u8-tolower.c: New file.
20236
20237         New module 'unicase/u32-tolower'.
20238         * lib/unicase/u32-tolower.c: New file.
20239         * modules/unicase/u32-tolower: New file.
20240
20241         New module 'unicase/u16-tolower'.
20242         * lib/unicase/u16-tolower.c: New file.
20243         * modules/unicase/u16-tolower: New file.
20244
20245         New module 'unicase/u8-tolower'.
20246         * lib/unicase/u8-tolower.c: New file.
20247         * modules/unicase/u8-tolower: New file.
20248
20249         Tests for module 'unicase/u32-toupper'.
20250         * modules/unicase/u32-toupper-tests: New file.
20251         * tests/unicase/test-u32-toupper.c: New file.
20252
20253         Tests for module 'unicase/u16-toupper'.
20254         * modules/unicase/u16-toupper-tests: New file.
20255         * tests/unicase/test-u16-toupper.c: New file.
20256
20257         Tests for module 'unicase/u8-toupper'.
20258         * modules/unicase/u8-toupper-tests: New file.
20259         * tests/unicase/test-u8-toupper.c: New file.
20260
20261         New module 'unicase/u32-toupper'.
20262         * lib/unicase/u32-toupper.c: New file.
20263         * modules/unicase/u32-toupper: New file.
20264
20265         New module 'unicase/u16-toupper'.
20266         * lib/unicase/u16-toupper.c: New file.
20267         * modules/unicase/u16-toupper: New file.
20268
20269         New module 'unicase/u8-toupper'.
20270         * lib/unicase/u8-toupper.c: New file.
20271         * modules/unicase/u8-toupper: New file.
20272
20273         New module 'unicase/u32-casemap'.
20274         * lib/unicase/u32-casemap.c: New file.
20275         * modules/unicase/u32-casemap: New file.
20276
20277         New module 'unicase/u16-casemap'.
20278         * lib/unicase/u16-casemap.c: New file.
20279         * modules/unicase/u16-casemap: New file.
20280
20281         New module 'unicase/u8-casemap'.
20282         * lib/unicase/unicasemap.h: New file.
20283         * lib/unicase/u8-casemap.c: New file.
20284         * lib/unicase/u-casemap.h: New file.
20285         * modules/unicase/u8-casemap: New file.
20286
20287         New module 'unicase/special-casing'.
20288         * lib/unicase/special-casing.h: New file.
20289         * lib/unicase/special-casing.c: New file.
20290         * lib/unicase/special-casing-table.gperf: New file, generated by
20291         gen-uni-tables.c.
20292         * modules/unicase/special-casing: New file.
20293
20294         Tests for module 'unicase/locale-language'.
20295         * modules/unicase/locale-language-tests: New file.
20296         * tests/unicase/test-locale-language.sh: New file.
20297         * tests/unicase/test-locale-language.c: New file.
20298
20299         New module 'unicase/locale-language'.
20300         * lib/unicase/locale-language.c: New file.
20301         * lib/unicase/locale-languages.gperf: New file.
20302         * modules/unicase/locale-language: New file.
20303
20304         Generate more tables for case conversion and case folding.
20305         * lib/gen-uni-tables.c (SCC_*): New enum items.
20306         (struct special_casing_rule): New type.
20307         (casing_rules, num_casing_rules, allocated_casing_rules): New
20308         variables.
20309         (add_casing_rule, fill_casing_rules): New functions.
20310         (struct casefold_rule): New type.
20311         (casefolding_rules, num_casefolding_rules,
20312         allocated_casefolding_rules): New variables.
20313         (fill_casefolding_rules): New function.
20314         (unicode_casefold): New variable.
20315         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
20316         sort_casing_rules, output_casing_rules): New functions.
20317         (main): Accept to more arguments: SpecialCasing.txt and
20318         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
20319         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
20320         Output mapping for casefolding.
20321
20322         * lib/unicase.h: Include stdbool.h, uninorm.h.
20323         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
20324         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
20325         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
20326         arguments.
20327         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
20328         resultp arguments.
20329         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
20330         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
20331         resultp arguments.
20332         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
20333         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
20334         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
20335         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
20336         declarations.
20337         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
20338
20339 2009-03-08  Bruno Haible  <bruno@clisp.org>
20340
20341         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20342         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
20343         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
20344         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20345
20346 2009-03-07  Bruno Haible  <bruno@clisp.org>
20347
20348         Adjust u*_normcmp, u*_normcoll API.
20349         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20350         u16_normcoll, u32_normcoll): Change failure conventions.
20351         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
20352         errno and return -1.
20353         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20354
20355 2009-03-07  Bruno Haible  <bruno@clisp.org>
20356
20357         Tests for module 'uninorm/u32-normcoll'.
20358         * modules/uninorm/u32-normcoll-tests: New file.
20359         * tests/uninorm/test-u32-normcoll.c: New file.
20360
20361         Tests for module 'uninorm/u16-normcoll'.
20362         * modules/uninorm/u16-normcoll-tests: New file.
20363         * tests/uninorm/test-u16-normcoll.c: New file.
20364
20365         Tests for module 'uninorm/u8-normcoll'.
20366         * modules/uninorm/u8-normcoll-tests: New file.
20367         * tests/uninorm/test-u8-normcoll.c: New file.
20368
20369 2009-03-07  Bruno Haible  <bruno@clisp.org>
20370
20371         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
20372         tests/uninorm/test-u32-normcmp.c.
20373         * tests/uninorm/test-u32-normcmp.c: Include it.
20374         (test_nonascii): New function, extracted from main. Add some more
20375         tests.
20376         (main): Invoke test_ascii and test_nonascii.
20377         * modules/uninorm/u32-normcmp-tests (Files): Add
20378         tests/uninorm/test-u32-normcmp.h.
20379         (Depends-on): Remove uninorm/u32-normcmp.
20380
20381         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
20382         tests/uninorm/test-u16-normcmp.c.
20383         * tests/uninorm/test-u16-normcmp.c: Include it.
20384         (test_nonascii): New function, extracted from main. Add some more
20385         tests.
20386         (main): Invoke test_ascii and test_nonascii.
20387         * modules/uninorm/u16-normcmp-tests (Files): Add
20388         tests/uninorm/test-u16-normcmp.h.
20389         (Depends-on): Remove uninorm/u16-normcmp.
20390
20391         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
20392         tests/uninorm/test-u8-normcmp.c.
20393         * tests/uninorm/test-u8-normcmp.c: Include it.
20394         (test_nonascii): New function, extracted from main. Add some more
20395         tests.
20396         (main): Invoke test_ascii and test_nonascii.
20397         * modules/uninorm/u8-normcmp-tests (Files): Add
20398         tests/uninorm/test-u8-normcmp.h.
20399         (Depends-on): Remove uninorm/u8-normcmp.
20400
20401 2009-03-07  Bruno Haible  <bruno@clisp.org>
20402
20403         New module 'uninorm/u32-normcoll'.
20404         * lib/uninorm/u32-normcoll.c: New file.
20405         * modules/uninorm/u32-normcoll: New file.
20406
20407         New module 'uninorm/u16-normcoll'.
20408         * lib/uninorm/u16-normcoll.c: New file.
20409         * modules/uninorm/u16-normcoll: New file.
20410
20411         New module 'uninorm/u8-normcoll'.
20412         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
20413         declarations.
20414         * lib/uninorm/u8-normcoll.c: New file.
20415         * lib/uninorm/u-normcoll.h: New file.
20416         * modules/uninorm/u8-normcoll: New file.
20417
20418         New module 'uninorm/u32-normxfrm'.
20419         * lib/uninorm/u32-normxfrm.c: New file.
20420         * modules/uninorm/u32-normxfrm: New file.
20421
20422         New module 'uninorm/u16-normxfrm'.
20423         * lib/uninorm/u16-normxfrm.c: New file.
20424         * modules/uninorm/u16-normxfrm: New file.
20425
20426         New module 'uninorm/u8-normxfrm'.
20427         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
20428         declarations.
20429         * lib/uninorm/u8-normxfrm.c: New file.
20430         * lib/uninorm/u-normxfrm.h: New file.
20431         * modules/uninorm/u8-normxfrm: New file.
20432
20433 2009-03-07  Bruno Haible  <bruno@clisp.org>
20434
20435         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
20436         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
20437         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
20438
20439 2009-03-07  Bruno Haible  <bruno@clisp.org>
20440
20441         New module 'memxfrm'.
20442         * lib/memxfrm.h: New file.
20443         * lib/memxfrm.c: New file.
20444         * modules/memxfrm: New file.
20445
20446 2009-03-07  Bruno Haible  <bruno@clisp.org>
20447
20448         New module 'memcmp2'.
20449         * lib/memcmp2.h: New file.
20450         * lib/memcmp2.c: New file.
20451         * modules/memcmp2: New file.
20452
20453 2009-03-07  Bruno Haible  <bruno@clisp.org>
20454
20455         Tests for module 'uninorm/decomposing-form'.
20456         * modules/uninorm/decomposing-form-tests: New file.
20457         * tests/uninorm/test-decomposing-form.c: New file.
20458
20459         New module 'uninorm/decomposing-form'.
20460         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
20461         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
20462         Add 'decomposing_variant' field.
20463         * lib/uninorm/decomposing-form.c: New file.
20464         * lib/uninorm/nfc.c (uninorm_nfc): Update.
20465         * lib/uninorm/nfd.c (uninorm_nfd): Update.
20466         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
20467         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
20468         * modules/uninorm/decomposing-form: New file.
20469         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
20470         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
20471
20472 2009-03-07  Bruno Haible  <bruno@clisp.org>
20473
20474         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
20475         strings.
20476
20477 2009-03-06  Bruno Haible  <bruno@clisp.org>
20478
20479         Tests for module 'uninorm/u32-normcmp'.
20480         * tests/uninorm/test-u32-normcmp.c: New file.
20481         * modules/uninorm/u32-normcmp-tests: New file.
20482
20483         Tests for module 'uninorm/u16-normcmp'.
20484         * tests/uninorm/test-u16-normcmp.c: New file.
20485         * modules/uninorm/u16-normcmp-tests: New file.
20486
20487         Tests for module 'uninorm/u8-normcmp'.
20488         * tests/uninorm/test-u8-normcmp.c: New file.
20489         * modules/uninorm/u8-normcmp-tests: New file.
20490
20491         New module 'uninorm/u32-normcmp'.
20492         * lib/uninorm/u32-normcmp.c: New file.
20493         * modules/uninorm/u32-normcmp: New file.
20494
20495         New module 'uninorm/u16-normcmp'.
20496         * lib/uninorm/u16-normcmp.c: New file.
20497         * modules/uninorm/u16-normcmp: New file.
20498
20499         New module 'uninorm/u8-normcmp'.
20500         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
20501         declarations.
20502         * lib/uninorm/u8-normcmp.c: New file.
20503         * lib/uninorm/u-normcmp.h: New file.
20504         * modules/uninorm/u8-normcmp: New file.
20505
20506 2009-03-06  Bruno Haible  <bruno@clisp.org>
20507
20508         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
20509         Reported by Eric Blake.
20510
20511 2009-03-06  Eric Blake  <ebb9@byu.net>
20512             Bruno Haible  <bruno@clisp.org>
20513
20514         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
20515         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
20516         condition.
20517         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20518         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
20519         condition.
20520         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20521
20522 2009-03-06  Eric Blake  <ebb9@byu.net>
20523
20524         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
20525         to avoid compiler warnings.
20526         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
20527
20528 2009-03-05  Bruno Haible  <bruno@clisp.org>
20529
20530         * tests/test-ftell.c (main): Disable test beyond end of file on
20531         FreeMiNT.
20532         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20533
20534 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
20535
20536         * lib/filevercmp.c: Move hidden files up in ordering.
20537         * tests/test-filevercmp.c: Add tests for hidden files.
20538
20539 2009-03-04  Bruno Haible  <bruno@clisp.org>
20540
20541         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
20542         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
20543         AM_CFLAGS.
20544         Reported by Simon Josefsson.
20545
20546 2009-03-03  Bruno Haible  <bruno@clisp.org>
20547
20548         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
20549         Reported by Simon Josefsson.
20550
20551         * doc/ld-version-script.texi: Update node reference.
20552
20553 2009-03-03  Bruno Haible  <bruno@clisp.org>
20554
20555         * modules/visibility (License): Change to 'unlimited'.
20556         Suggested by Simon Josefsson.
20557
20558 2009-03-03  Jim Meyering  <meyering@redhat.com>
20559
20560         unlinkdir: cannot_unlink_dir may modify process state
20561         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
20562         it's neither thread-safe nor appropriate for use in a library.
20563
20564 2009-03-03  Eric Blake  <ebb9@byu.net>
20565
20566         test-closein: silence test under Darwin
20567         * tests/test-closein.sh: Ignore stderr from cat, since we don't
20568         care if it dies from EPIPE or EBADF.
20569
20570 2009-03-03  Bruno Haible  <bruno@clisp.org>
20571
20572         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
20573         earlier.
20574         * doc/visibility.texi: Fix @node and @section.
20575
20576 2009-03-03  Simon Josefsson  <simon@josefsson.org>
20577
20578         * doc/gnulib.texi: Link to sections for ld version script and
20579         visibility.
20580         * doc/visibility.texi: Add @node and @section.
20581         * modules/ld-version-script: New module.
20582         * m4/ld-version-script.m4: New file.
20583         * doc/ld-version-script.texi: New file.
20584
20585 2009-03-02  David Lutterkort  <lutter@redhat.com>
20586
20587         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
20588         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20589
20590 2009-03-02  Bruno Haible  <bruno@clisp.org>
20591
20592         * doc/visibility.texi: Mention libtool's -export-symbols option.
20593
20594 2009-03-02  Jim Meyering  <meyering@redhat.com>
20595
20596         announce-gen: new option: --no-print-checksums
20597         * build-aux/announce-gen (usage): Describe it.
20598         (print_checksums): Print a newline here, not in the [*] footnote.
20599         (main): Honor it.
20600
20601 2009-03-01  Bruno Haible  <bruno@clisp.org>
20602
20603         Use socklen_t in the native Windows replacements prototypes.
20604         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20605         instead of 'int'.
20606         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20607         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20608         * modules/getsockopt (Depends-on): Add socklen.
20609         * modules/setsockopt (Depends-on): Add socklen.
20610
20611 2009-03-01  Bruno Haible  <bruno@clisp.org>
20612
20613         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20614         least 4.2.
20615
20616 2009-03-01  Eric Blake  <ebb9@byu.net>
20617             Bruno Haible  <bruno@clisp.org>
20618
20619         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20620         error messages.
20621         * lib/wait-process.c (wait_subprocess): Omit error message about
20622         deadly signal sent to the child of termsigp != NULL.
20623
20624 2009-03-01  Eric Blake  <ebb9@byu.net>
20625
20626         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20627
20628 2009-03-01  Bruno Haible  <bruno@clisp.org>
20629
20630         Avoid a gcc warning.
20631         * tests/test-sched.c (b): Make global.
20632         Reported by Eric Blake.
20633
20634 2009-01-19  Martin Lambers  <marlam@marlam.de>
20635
20636         Provide POSIX semantics for socket timeout options on W32.
20637         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20638         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20639         * modules/setsockopt: Depend on sys_time module for struct timeval.
20640         * modules/getsockopt: Depend on sys_time module for struct timeval.
20641
20642 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20643
20644         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20645         __USE_GNU, for consistency with netdb.in.h.
20646         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20647
20648 2009-03-01  Bruno Haible  <bruno@clisp.org>
20649
20650         More support for FreeMiNT.
20651         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20652         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20653
20654 2009-03-01  Bruno Haible  <bruno@clisp.org>
20655
20656         More support for FreeMiNT.
20657         * lib/fpurge.c (fpurge): Correct last commit.
20658         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20659
20660 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20661
20662         Fix unportable awk script in vc-list-files.
20663         * build-aux/vc-list-files: In the replacement awk script, use
20664         substr with a second argument of 1, not zero.
20665         Report by Simon Josefsson.
20666
20667 2009-02-28  Bruno Haible  <bruno@clisp.org>
20668
20669         More support for FreeMiNT.
20670         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20671         to FreeMiNT today.
20672         * lib/fwriting.c (fwriting): Likewise.
20673         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20674
20675 2009-02-28  Bruno Haible  <bruno@clisp.org>
20676
20677         * tests/test-freadseek.c (main): Disable test beyond end of file on
20678         FreeMiNT.
20679         * tests/test-ftello.c (main): Likewise.
20680         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20681
20682 2009-02-28  Bruno Haible  <bruno@clisp.org>
20683
20684         Add tentative support for FreeMiNT.
20685         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20686         * lib/fpurge.c (fpurge): Likewise.
20687         * lib/freadable.c (freadable): Likewise.
20688         * lib/freading.c (freading): Likewise.
20689         * lib/freadptr.c (freadptr): Likewise.
20690         * lib/freadseek.c (freadptrinc): Likewise.
20691         * lib/fseeko.c (rpl_fseeko): Likewise.
20692         * lib/fseterr.c (fseterr): Likewise.
20693         * lib/fwritable.c (fwritable): Likewise.
20694         * lib/fwriting.c (fwriting): Likewise.
20695         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20696         Hourihane.
20697         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20698
20699 2009-02-28  Bruno Haible  <bruno@clisp.org>
20700
20701         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20702         SIGCHLD.
20703         Reported by Jim Meyering.
20704
20705 2009-02-28  Bruno Haible  <bruno@clisp.org>
20706
20707         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20708         Mention the results of these tests on various platforms.
20709         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20710         order.
20711         * doc/posix-functions/printf.texi: Likewise.
20712         * doc/posix-functions/snprintf.texi: Likewise.
20713         * doc/posix-functions/sprintf.texi: Likewise.
20714         * doc/posix-functions/vfprintf.texi: Likewise.
20715         * doc/posix-functions/vprintf.texi: Likewise.
20716         * doc/posix-functions/vsnprintf.texi: Likewise.
20717         * doc/posix-functions/vsprintf.texi: Likewise.
20718         * doc/glibc-functions/obstack_printf.texi: Likewise.
20719         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20720
20721 2009-02-28  Bruno Haible  <bruno@clisp.org>
20722
20723         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20724         Reported by Loïc Minier <lool@dooz.org>.
20725
20726 2009-02-27  Bruno Haible  <bruno@clisp.org>
20727
20728         * gnulib-tool (func_import): Make the sed expression used to create the
20729         sed script for updating the .gitignore file POSIX compliant.
20730         Reported by Eric Blake.
20731
20732 2009-02-27  Bruno Haible  <bruno@clisp.org>
20733
20734         * gnulib-tool (sed): Don't alias as "sed --posix".
20735         Reported by Eric Blake.
20736
20737 2009-02-27  Bruno Haible  <bruno@clisp.org>
20738
20739         Avoid test link errors.
20740         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20741         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20742         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20743         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20744         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20745
20746 2009-02-27  Bruno Haible  <bruno@clisp.org>
20747
20748         Avoid spurious "(cached)" in configure output.
20749         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20750         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20751         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20752         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20753         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20754         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20755         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20756         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20757         Reported by Eric Blake.
20758
20759 2009-02-27  Eric Blake  <ebb9@byu.net>
20760
20761         printf: fix regression in previous patch
20762         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20763
20764 2009-02-27  Bruno Haible  <bruno@clisp.org>
20765
20766         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20767         value.
20768         * lib/stdint.in.h: Likewise.
20769         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20770
20771 2009-02-27  Eric Blake  <ebb9@byu.net>
20772
20773         doc: mention more functions added in cygwin 1.7.0
20774         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20775         addition.
20776         * doc/posix-functions/open_wmemstream.texi: Likewise.
20777         * doc/posix-functions/wcsnlen.texi: Likewise.
20778         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20779         * doc/posix-functions/wcstod.texi: Likewise.
20780         * doc/posix-functions/wcstof.texi: Likewise.
20781         * doc/posix-functions/wcstoimax.texi: Likewise.
20782         * doc/posix-functions/wcstok.texi: Likewise.
20783         * doc/posix-functions/wcstoumax.texi: Likewise.
20784
20785         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20786         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20787         * doc/posix-functions/fprintf.texi: Update.
20788         * doc/posix-functions/printf.texi: Update.
20789         * doc/posix-functions/snprintf.texi: Update.
20790         * doc/posix-functions/sprintf.texi: Update.
20791         * doc/posix-functions/vfprintf.texi: Update.
20792         * doc/posix-functions/vprintf.texi: Update.
20793         * doc/posix-functions/vsnprintf.texi: Update.
20794         * doc/posix-functions/vsprintf.texi: Update.
20795         * doc/glibc-functions/obstack_printf.texi: Update.
20796         * doc/glibc-functions/obstack_vprintf.texi: Update.
20797
20798 2009-02-26  Eric Blake  <ebb9@byu.net>
20799
20800         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20801         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20802         compilation bug by using runtime conversion.
20803         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20804         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20805         * modules/ceill-tests (Files): Use nan.h.
20806         * modules/floorl-tests (Files): Likewise.
20807         * modules/frexpl-tests (Files): Likewise.
20808         * modules/isnanl-tests (Files): Likewise.
20809         * modules/ldexpl-tests (Files): Likewise.
20810         * modules/roundl-tests (Files): Likewise.
20811         * modules/truncl-tests (Files): Likewise.
20812         * tests/test-ceill.c (main): Use a working NaN.
20813         * tests/test-floorl.c (main): Likewise.
20814         * tests/test-frexpl.c (main): Likewise.
20815         * tests/test-isnan.c (test_long_double): Likewise.
20816         * tests/test-isnanl.h (main): Likewise.
20817         * tests/test-ldexpl.h (main): Likewise.
20818         * tests/test-roundl.h (main): Likewise.
20819         * tests/test-truncl.h (main): Likewise.
20820         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20821
20822 2009-02-26  Eric Blake  <ebb9@byu.net>
20823             Bruno Haible  <bruno@clisp.org>
20824
20825         Work around a *printf bug with %ls on Solaris.
20826         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20827         precision is specified, sprintf stops converting the wide string
20828         argument when the number of bytes that have been produced by this
20829         conversion equals or exceeds the precision.
20830         * doc/posix-functions/fprintf.texi: Update.
20831         * doc/posix-functions/printf.texi: Update.
20832         * doc/posix-functions/snprintf.texi: Update.
20833         * doc/posix-functions/sprintf.texi: Update.
20834         * doc/posix-functions/vfprintf.texi: Update.
20835         * doc/posix-functions/vprintf.texi: Update.
20836         * doc/posix-functions/vsnprintf.texi: Update.
20837         * doc/posix-functions/vsprintf.texi: Update.
20838         * doc/glibc-functions/obstack_printf.texi: Update.
20839         * doc/glibc-functions/obstack_vprintf.texi: Update.
20840
20841 2009-02-26  Eric Blake  <ebb9@byu.net>
20842
20843         stdlib: favor compiler check of random.h
20844         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
20845         to avoid an ObjC random.h installed by Swarm.
20846
20847 2009-02-26  Bruno Haible  <bruno@clisp.org>
20848
20849         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
20850         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
20851         Reported by Gary V. Vaughan <gary@gnu.org>.
20852
20853 2009-02-26  Bruno Haible  <bruno@clisp.org>
20854
20855         Fix *printf behaviour regarding the %ls directive.
20856         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
20857         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
20858         NEED_PRINTF_DIRECTIVE_LS.
20859         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
20860         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20861         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20862         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
20863         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
20864         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
20865         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20866         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20867         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20868         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20869         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20870         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
20871         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20872         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20873         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20874         * doc/posix-functions/fprintf.texi: Update.
20875         * doc/posix-functions/printf.texi: Update.
20876         * doc/posix-functions/snprintf.texi: Update.
20877         * doc/posix-functions/sprintf.texi: Update.
20878         * doc/posix-functions/vfprintf.texi: Update.
20879         * doc/posix-functions/vprintf.texi: Update.
20880         * doc/posix-functions/vsnprintf.texi: Update.
20881         * doc/posix-functions/vsprintf.texi: Update.
20882         * doc/glibc-functions/obstack_printf.texi: Update.
20883         * doc/glibc-functions/obstack_vprintf.texi: Update.
20884         Reported by Eric Blake.
20885
20886 2009-02-25  Bruno Haible  <bruno@clisp.org>
20887
20888         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
20889         with known value.
20890         Reported by Gary V. Vaughan <gary@gnu.org>.
20891
20892 2009-02-25  Bruno Haible  <bruno@clisp.org>
20893
20894         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
20895         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
20896         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
20897         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
20898         Reported by Gary V. Vaughan <gary@gnu.org>.
20899
20900 2009-02-25  Bruno Haible  <bruno@clisp.org>
20901
20902         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
20903         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
20904         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
20905         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
20906         Reported by Gary V. Vaughan <gary@gnu.org>.
20907
20908 2009-02-25  Eric Blake  <ebb9@byu.net>
20909
20910         tests: skip fseek/ftell tests if ungetc is broken
20911         * m4/ungetc.m4: New file.
20912         * modules/fseek-tests: Split test, so ungetc dependency is
20913         separate from rest of test.
20914         * modules/fseeko-tests: Likewise.
20915         * modules/ftell-tests: Likewise.
20916         * modules/ftello-tests: Likewise.
20917         * tests/test-fseek.c (main): Isolate ungetc dependency.
20918         * tests/test-fseeko.c (main): Likewise.
20919         * tests/test-ftell.c (main): Likewise.
20920         * tests/test-ftello.c (main): Likewise.
20921         * tests/test-fseek2.sh: New file.
20922         * tests/test-fseeko2.sh: Likewise.
20923         * tests/test-ftell2.sh: Likewise.
20924         * tests/test-ftello2.sh: Likewise.
20925
20926 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
20927
20928         test-getaddrinfo: fix usage of skip return code 77
20929         * tests/test-gettaddrinfo.c: Return skip code 77 only
20930         for first occurance of skip (4x77 is not 77)
20931
20932 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
20933
20934         strtod: avoid C99 decl-after-statement
20935         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
20936
20937 2009-02-24  Eric Blake  <ebb9@byu.net>
20938
20939         strtod: detect HP-UX 11.31 bug
20940         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
20941         Reported by Gary V. Vaughan.
20942
20943 2009-02-23  Bruno Haible  <bruno@clisp.org>
20944
20945         Fix invalid read past end of memory block.
20946         * lib/vasnprintf.c (DCHAR_SET): Define.
20947         (local_wcslen): Define only when needed.
20948         (local_strnlen, local_wcsnlen): New functions.
20949         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
20950         directives that involve a conversion ourselves.
20951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
20952         wcsnlen, mbrtowc, wcrtomb.
20953         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
20954         * tests/test-vasprintf-posix.c (test_function): Likewise.
20955         * tests/test-snprintf-posix.h (test_function): Likewise.
20956         * tests/test-sprintf-posix.h (test_function): Likewise.
20957         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20958
20959 2009-02-22  Bruno Haible  <bruno@clisp.org>
20960
20961         Implement new clarified decomposition of Hangul syllables.
20962         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
20963         of type LTV, return only a pairwise decomposition.
20964         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
20965         Likewise.
20966         * tests/uninorm/test-decomposition.c (main): Updated expected result.
20967         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
20968         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
20969
20970 2009-02-22  Bruno Haible  <bruno@clisp.org>
20971
20972         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
20973         zero-length results and shrink excess allocated memory.
20974         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
20975         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
20976         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
20977         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
20978         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
20979         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
20980         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
20981         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
20982         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
20983         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
20984         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
20985         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
20986
20987 2009-02-21  Bruno Haible  <bruno@clisp.org>
20988
20989         * doc/gnulib.texi: Include safe-alloc.texi earlier.
20990         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
20991         spaces after a period. Put a space between a macro name and its
20992         argument list. Trivial rewordings.
20993         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
20994         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
20995         (main): Return 0 explicitly.
20996
20997 2009-02-21  Bruno Haible  <bruno@clisp.org>
20998
20999         Tests for module 'uninorm/filter'.
21000         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
21001         * modules/uninorm/filter-tests: New file.
21002
21003         New module 'uninorm/filter'.
21004         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
21005         uninorm_filter_flush, uninorm_filter_free): New declarations.
21006         * lib/uninorm/uninorm-filter.c: New file.
21007         * modules/uninorm/filter: New file.
21008
21009 2009-02-21  Bruno Haible  <bruno@clisp.org>
21010
21011         Tests for module 'uninorm/nfkc'.
21012         * tests/uninorm/test-nfkc.c: New file.
21013         * tests/uninorm/test-u8-nfkc.c: New file.
21014         * tests/uninorm/test-u16-nfkc.c: New file.
21015         * tests/uninorm/test-u32-nfkc.c: New file.
21016         * tests/uninorm/test-u32-nfkc-big.sh: New file.
21017         * tests/uninorm/test-u32-nfkc-big.c: New file.
21018         * modules/uninorm/nfkc-tests: New file.
21019
21020         New module 'uninorm/nfkc'.
21021         * lib/uninorm/nfkc.c: New file.
21022         * modules/uninorm/nfkc: New file.
21023
21024         Tests for module 'uninorm/nfkd'.
21025         * tests/uninorm/test-nfkd.c: New file.
21026         * tests/uninorm/test-u8-nfkd.c: New file.
21027         * tests/uninorm/test-u16-nfkd.c: New file.
21028         * tests/uninorm/test-u32-nfkd.c: New file.
21029         * tests/uninorm/test-u32-nfkd-big.sh: New file.
21030         * tests/uninorm/test-u32-nfkd-big.c: New file.
21031         * modules/uninorm/nfkd-tests: New file.
21032
21033         New module 'uninorm/nfkd'.
21034         * lib/uninorm/nfkd.c: New file.
21035         * modules/uninorm/nfkd: New file.
21036
21037         Tests for module 'uninorm/nfc'.
21038         * tests/uninorm/test-nfc.c: New file.
21039         * tests/uninorm/test-u8-nfc.c: New file.
21040         * tests/uninorm/test-u16-nfc.c: New file.
21041         * tests/uninorm/test-u32-nfc.c: New file.
21042         * tests/uninorm/test-u32-nfc-big.sh: New file.
21043         * tests/uninorm/test-u32-nfc-big.c: New file.
21044         * modules/uninorm/nfc-tests: New file.
21045
21046         New module 'uninorm/nfc'.
21047         * lib/uninorm/nfc.c: New file.
21048         * modules/uninorm/nfc: New file.
21049
21050         Tests for module 'uninorm/nfd'.
21051         * tests/uninorm/test-nfd.c: New file.
21052         * tests/uninorm/test-u8-nfd.c: New file.
21053         * tests/uninorm/test-u16-nfd.c: New file.
21054         * tests/uninorm/test-u32-nfd.c: New file.
21055         * tests/uninorm/test-u32-nfd-big.sh: New file.
21056         * tests/uninorm/test-u32-nfd-big.c: New file.
21057         * tests/uninorm/test-u32-normalize-big.h: New file.
21058         * tests/uninorm/test-u32-normalize-big.c: New file.
21059         * tests/uninorm/NormalizationTest.txt: New file, created from
21060         Unicode 5.1.0 NormalizationTest.txt.
21061         * modules/uninorm/nfd-tests: New file.
21062
21063         New module 'uninorm/nfd'.
21064         * lib/uninorm/nfd.c: New file.
21065         * modules/uninorm/nfd: New file.
21066
21067         New module 'uninorm/u32-normalize'.
21068         * lib/uninorm/u32-normalize.c: New file.
21069         * modules/uninorm/u32-normalize: New file.
21070
21071         New module 'uninorm/u16-normalize'.
21072         * lib/uninorm/u16-normalize.c: New file.
21073         * modules/uninorm/u16-normalize: New file.
21074
21075         New module 'uninorm/u8-normalize'.
21076         * lib/uninorm/u8-normalize.c: New file.
21077         * lib/uninorm/normalize-internal.h: New file.
21078         * lib/uninorm/u-normalize-internal.h: New file.
21079         * modules/uninorm/u8-normalize: New file.
21080
21081         New module 'uninorm/decompose-internal'.
21082         * lib/uninorm/decompose-internal.c: New file.
21083         * modules/uninorm/decompose-internal: New file.
21084
21085         Tests for module 'uninorm/composition'.
21086         * tests/uninorm/test-composition.c: New file.
21087         * modules/uninorm/composition-tests: New file.
21088
21089         New module 'uninorm/composition'.
21090         * lib/uninorm/composition.c: New file.
21091         * lib/uninorm/composition-table.gperf: New file, generated by
21092         gen-uni-tables.
21093         * modules/uninorm/composition: New file.
21094
21095         Tests for module 'uninorm/compat-decomposition'.
21096         * tests/uninorm/test-compat-decomposition.c: New file.
21097         * modules/uninorm/compat-decomposition-tests: New file.
21098
21099         New module 'uninorm/compat-decomposition'.
21100         * lib/uninorm/decompose-internal.h: New file.
21101         * lib/uninorm/compat-decomposition.c: New file.
21102         * modules/uninorm/compat-decomposition: New file.
21103
21104         Tests for module 'uninorm/canonical-decomposition'.
21105         * tests/uninorm/test-canonical-decomposition.c: New file.
21106         * modules/uninorm/canonical-decomposition-tests: New file.
21107
21108         New module 'uninorm/canonical-decomposition'.
21109         * lib/uninorm/canonical-decomposition.c: New file.
21110         * modules/uninorm/canonical-decomposition: New file.
21111
21112         Tests for module 'uninorm/decomposition'.
21113         * tests/uninorm/test-decomposition.c: New file.
21114         * modules/uninorm/decomposition-tests: New file.
21115
21116         New module 'uninorm/decomposition'.
21117         * lib/uninorm/decomposition.c: New file.
21118         * modules/uninorm/decomposition: New file.
21119
21120         New module 'uninorm/decomposition-table'.
21121         * lib/uninorm/decomposition-table.h: New file.
21122         * lib/uninorm/decomposition-table.c: New file.
21123         * lib/uninorm/decomposition-table1.h: New file, generated by
21124         gen-uni-tables.
21125         * lib/uninorm/decomposition-table2.h: New file, generated by
21126         gen-uni-tables.
21127         * modules/uninorm/decomposition-table: New file.
21128
21129         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
21130         (UC_DECOMP_*): New enumeration items.
21131         (get_decomposition): New function.
21132         (struct decomp_table): New type.
21133         (output_decomposition, output_decomposition_tables): New functions.
21134         (unicode_composition_exclusions): New variable.
21135         (fill_composition_exclusions, debug_output_composition_tables): New
21136         functions.
21137         (main): Accept one more argument. Invoke fill_composition_exclusions.
21138         Output decomposition and composition tables.
21139
21140         New module 'uninorm/base'.
21141         * lib/uninorm.h: New file.
21142         * lib/unictype.h: Update comment.
21143         * modules/uninorm/base: New file.
21144
21145 2009-02-21  David Lutterkort  <lutter@redhat.com>
21146
21147         Tests for module 'safe-alloc'.
21148         * tests/test-safe-alloc.c: New file.
21149         * modules/safe-alloc-tests: New file.
21150
21151         New module 'safe-alloc'.
21152         * lib/safe-alloc.h: New file.
21153         * lib/safe-alloc.c: New file.
21154         * m4/safe-alloc.m4: New file.
21155         * modules/safe-alloc: New file.
21156         * doc/safe-alloc.texi: New file.
21157         * doc/gnulib.texi: Include it.
21158         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21159         safe-alloc.
21160
21161 2009-02-18  Bruno Haible  <bruno@clisp.org>
21162
21163         Fix link error on non-glibc systems.
21164         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
21165         variable.
21166         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21167
21168 2009-02-18  Jim Meyering  <meyering@redhat.com>
21169
21170         fts: avoid used-uninitialized error due to recent change
21171         * lib/fts.c (fts_read): Guard uses of the new member,
21172         parent->fts_n_dirs_remaining, since it's not relevant for
21173         the parent of a directory specified on the command-line.
21174
21175 2009-02-17  James Youngman  <jay@gnu.org>
21176             Bruno Haible  <bruno@clisp.org>
21177
21178         * m4/include_next.m4: Reformulate comment.
21179
21180 2009-02-16  Jim Meyering  <meyering@redhat.com>
21181
21182         fts: add #if guards so that the fts_lgpl module still builds
21183         * lib/fts.c: Guard just-added hash-table-using parts with
21184         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
21185         Reported by Simon Josefsson.
21186
21187 2009-02-15  Bruno Haible  <bruno@clisp.org>
21188
21189         * modules/array-mergesort-tests: New file.
21190         * tests/test-array-mergesort.c: New file.
21191
21192         New module 'array-mergesort'.
21193         * modules/array-mergesort: New file.
21194         * lib/array-mergesort.h: New file.
21195
21196 2009-02-15  Bruno Haible  <bruno@clisp.org>
21197
21198         Fix 2009-02-07 commit.
21199         * lib/gen-uni-tables.c (output_predicate, output_category,
21200         output_combclass, output_bidi_category, output_decimal_digit,
21201         output_digit, output_numeric, output_mirror, output_scripts,
21202         output_ident_category, output_simple_mapping): Fix format directives.
21203         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
21204
21205 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
21206
21207         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
21208         fixes are available from IBM.
21209
21210 2009-02-13  Jim Meyering  <meyering@redhat.com>
21211
21212         fts: arrange not to stat non-directories in more cases
21213         This makes GNU find (when it doesn't need to stat each file)
21214         *much* more efficient at traversing reiserfs file systems.
21215         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
21216         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
21217         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
21218         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
21219         (leaf_optimization_applies): New function.
21220         (LCO_hash, LCO_compare): New helper functions.
21221         (link_count_optimize_ok): New function.
21222         (fts_stat): Initialize new member (if dir).
21223         (fts_read): Decrement parent's fts_n_dirs_remaining count if
21224         we've just stat'ed a directory.  Skip the stat call when possible.
21225         ---
21226         Note this AFS-related exchange:
21227         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
21228         and note find's pioctl call in find/fstype.c.
21229         But that is necessary only if you want to enable the
21230         optimization for AFS, and for now, I don't.
21231
21232         fts: move a function definition "up" (no semantic change)
21233         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
21234         "up" to precede upcoming use of a related function.
21235
21236 2009-02-11  Jim Meyering  <meyering@redhat.com>
21237
21238         fts: correct internal computation of nlinks (optimization-related)
21239         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
21240         whether the current entry is a directory, so don't test it.
21241
21242 2009-02-10  Bruno Haible  <bruno@clisp.org>
21243
21244         Tests for module 'uniwbrk/ulc-wordbreaks'.
21245         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
21246         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
21247         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
21248
21249         Tests for module 'uniwbrk/u32-wordbreaks'.
21250         * modules/uniwbrk/u32-wordbreaks-tests: New file.
21251         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
21252
21253         Tests for module 'uniwbrk/u16-wordbreaks'.
21254         * modules/uniwbrk/u16-wordbreaks-tests: New file.
21255         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
21256
21257         Tests for module 'uniwbrk/u8-wordbreaks'.
21258         * modules/uniwbrk/u8-wordbreaks-tests: New file.
21259         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
21260
21261 2009-02-10  Bruno Haible  <bruno@clisp.org>
21262
21263         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
21264         property.
21265         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
21266         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
21267         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
21268
21269 2009-02-10  Simon Josefsson  <simon@josefsson.org>
21270
21271         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
21272         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
21273
21274 2009-02-10  Bruno Haible  <bruno@clisp.org>
21275
21276         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
21277         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
21278         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
21279         * lib/unilbrk/u8-possible-linebreaks.c: Update.
21280         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
21281         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
21282
21283 2009-02-09  Simon Josefsson  <simon@josefsson.org>
21284
21285         * lib/sockets.h (gl_fd_to_handle): New function.
21286
21287         * tests/test-sockets.c: Call gl_fd_to_handle.
21288
21289 2009-02-09  Bruno Haible  <bruno@clisp.org>
21290
21291         * doc/havelib.texi: Document the conventions on bi-arch systems.
21292
21293 2009-02-08  Bruno Haible  <bruno@clisp.org>
21294
21295         Document the AC_LIB_LINKFLAGS macro.
21296         * doc/havelib.texi: New file, mostly written on 2005-05-24.
21297         * doc/gnulib.texi: Include it.
21298
21299 2009-02-08  Bruno Haible  <bruno@clisp.org>
21300
21301         Fix wrong order of sections, compared to TOC.
21302         * doc/gnulib.texi: Include relocatable-maint.texi after the
21303         "Regular expressions" node, not before.
21304
21305 2009-02-08  Bruno Haible  <bruno@clisp.org>
21306
21307         Tests for module 'unicase/totitle'.
21308         * modules/unicase/totitle-tests: New file.
21309
21310         Tests for module 'unicase/tolower'.
21311         * modules/unicase/tolower-tests: New file.
21312
21313         Tests for module 'unicase/toupper'.
21314         * modules/unicase/toupper-tests: New file.
21315         * tests/unicase/test-mapping-part1.h: New file.
21316         * tests/unicase/test-mapping-part2.h: New file.
21317
21318         New module 'unicase/totitle'.
21319         * modules/unicase/totitle: New file.
21320         * lib/unicase/totitle.c: New file.
21321
21322         New module 'unicase/tolower'.
21323         * modules/unicase/tolower: New file.
21324         * lib/unicase/tolower.c: New file.
21325
21326         New module 'unicase/toupper'.
21327         * modules/unicase/toupper: New file.
21328         * lib/unicase/toupper.c: New file.
21329         * lib/unicase/simple-mapping.h: New file.
21330
21331         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
21332         (mapping_table): New structure.
21333         (output_simple_mapping): New function.
21334         (main): Invoke output_simple_mapping_test and output_simple_mapping.
21335         * modules/gen-uni-tables (Description): Update.
21336         * lib/unicase/toupper.h: New file, automatically generated by
21337         gen-uni-tables.
21338         * lib/unicase/tolower.h: New file, automatically generated by
21339         gen-uni-tables.
21340         * lib/unicase/totitle.h: New file, automatically generated by
21341         gen-uni-tables.
21342         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
21343         gen-uni-tables.
21344         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
21345         gen-uni-tables.
21346         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
21347         gen-uni-tables.
21348
21349         New module 'unicase/base'.
21350         * modules/unicase/base: New file.
21351         * lib/unicase.h: New file.
21352
21353 2009-02-08  Bruno Haible  <bruno@clisp.org>
21354
21355         New module 'uniwbrk/ulc-wordbreaks'.
21356         * modules/uniwbrk/ulc-wordbreaks: New file.
21357         * lib/uniwbrk/ulc-wordbreaks.c: New file.
21358
21359         New module 'uniwbrk/u32-wordbreaks'.
21360         * modules/uniwbrk/u32-wordbreaks: New file.
21361         * lib/uniwbrk/u32-wordbreaks.c: New file.
21362
21363         New module 'uniwbrk/u16-wordbreaks'.
21364         * modules/uniwbrk/u16-wordbreaks: New file.
21365         * lib/uniwbrk/u16-wordbreaks.c: New file.
21366
21367         New module 'uniwbrk/u8-wordbreaks'.
21368         * modules/uniwbrk/u8-wordbreaks: New file.
21369         * lib/uniwbrk/u8-wordbreaks.c: New file.
21370         * lib/uniwbrk/u-wordbreaks.h: New file.
21371
21372         New module 'uniwbrk/table'.
21373         * modules/uniwbrk/table: New file.
21374         * lib/uniwbrk/wbrktable.h: New file.
21375         * lib/uniwbrk/wbrktable.c: New file.
21376
21377         New module 'uniwbrk/wordbreak-property'.
21378         * modules/uniwbrk/wordbreak-property: New file.
21379         * lib/uniwbrk/wordbreak-property.c: New file.
21380
21381         * lib/gen-uni-tables.c (WBP_*): New enum items.
21382         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
21383         (unicode_org_wbp): New variable.
21384         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
21385         New functions.
21386         (wbp_table): New structure.
21387         (output_wbp, output_wbrk_tables): New functions.
21388         (main): Accept additional argument. Invoke fill_org_wbp,
21389         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
21390         output_wbrk_tables.
21391         * modules/gen-uni-tables (Description): Update.
21392         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
21393         gen-uni-tables.
21394
21395         New module 'uniwbrk/base'.
21396         * modules/uniwbrk/base: New file.
21397         * lib/uniwbrk.h: New file.
21398
21399 2009-02-08  Bruno Haible  <bruno@clisp.org>
21400
21401         Update to Unicode 5.1.0.
21402         * lib/gen-uni-tables.c (is_property_alphabetic): Include
21403         U+2185..U+2188.
21404         (is_property_default_ignorable_code_point): Don't include characters
21405         of category Cc or Cs and not-a-characters.
21406         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
21407         U+0D79, U+109E, U+109F, U+A60C.
21408         * lib/unictype/bidi_of.h: Regenerated.
21409         * lib/unictype/blocks.h: Regenerated.
21410         * lib/unictype/categ_C.h: Regenerated.
21411         * lib/unictype/categ_Cf.h: Regenerated.
21412         * lib/unictype/categ_Cn.h: Regenerated.
21413         * lib/unictype/categ_L.h: Regenerated.
21414         * lib/unictype/categ_Ll.h: Regenerated.
21415         * lib/unictype/categ_Lm.h: Regenerated.
21416         * lib/unictype/categ_Lo.h: Regenerated.
21417         * lib/unictype/categ_Lu.h: Regenerated.
21418         * lib/unictype/categ_M.h: Regenerated.
21419         * lib/unictype/categ_Mc.h: Regenerated.
21420         * lib/unictype/categ_Me.h: Regenerated.
21421         * lib/unictype/categ_Mn.h: Regenerated.
21422         * lib/unictype/categ_N.h: Regenerated.
21423         * lib/unictype/categ_Nd.h: Regenerated.
21424         * lib/unictype/categ_Nl.h: Regenerated.
21425         * lib/unictype/categ_No.h: Regenerated.
21426         * lib/unictype/categ_P.h: Regenerated.
21427         * lib/unictype/categ_Pd.h: Regenerated.
21428         * lib/unictype/categ_Pe.h: Regenerated.
21429         * lib/unictype/categ_Pf.h: Regenerated.
21430         * lib/unictype/categ_Pi.h: Regenerated.
21431         * lib/unictype/categ_Po.h: Regenerated.
21432         * lib/unictype/categ_Ps.h: Regenerated.
21433         * lib/unictype/categ_S.h: Regenerated.
21434         * lib/unictype/categ_Sk.h: Regenerated.
21435         * lib/unictype/categ_Sm.h: Regenerated.
21436         * lib/unictype/categ_So.h: Regenerated.
21437         * lib/unictype/categ_of.h: Regenerated.
21438         * lib/unictype/combining.h: Regenerated.
21439         * lib/unictype/ctype_alnum.h: Regenerated.
21440         * lib/unictype/ctype_alpha.h: Regenerated.
21441         * lib/unictype/ctype_graph.h: Regenerated.
21442         * lib/unictype/ctype_lower.h: Regenerated.
21443         * lib/unictype/ctype_print.h: Regenerated.
21444         * lib/unictype/ctype_punct.h: Regenerated.
21445         * lib/unictype/ctype_upper.h: Regenerated.
21446         * lib/unictype/decdigit.h: Regenerated.
21447         * lib/unictype/digit.h: Regenerated.
21448         * lib/unictype/mirror.h: Regenerated.
21449         * lib/unictype/numeric.h: Regenerated.
21450         * lib/unictype/pr_alphabetic.h: Regenerated.
21451         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
21452         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
21453         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
21454         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
21455         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
21456         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
21457         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
21458         * lib/unictype/pr_combining.h: Regenerated.
21459         * lib/unictype/pr_dash.h: Regenerated.
21460         * lib/unictype/pr_decimal_digit.h: Regenerated.
21461         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
21462         * lib/unictype/pr_deprecated.h: Regenerated.
21463         * lib/unictype/pr_diacritic.h: Regenerated.
21464         * lib/unictype/pr_extender.h: Regenerated.
21465         * lib/unictype/pr_format_control.h: Regenerated.
21466         * lib/unictype/pr_grapheme_base.h: Regenerated.
21467         * lib/unictype/pr_grapheme_extend.h: Regenerated.
21468         * lib/unictype/pr_grapheme_link.h: Regenerated.
21469         * lib/unictype/pr_id_continue.h: Regenerated.
21470         * lib/unictype/pr_id_start.h: Regenerated.
21471         * lib/unictype/pr_ideographic.h: Regenerated.
21472         * lib/unictype/pr_ignorable_control.h: Regenerated.
21473         * lib/unictype/pr_lowercase.h: Regenerated.
21474         * lib/unictype/pr_math.h: Regenerated.
21475         * lib/unictype/pr_numeric.h: Regenerated.
21476         * lib/unictype/pr_other_alphabetic.h: Regenerated.
21477         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
21478         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
21479         * lib/unictype/pr_other_id_continue.h: Regenerated.
21480         * lib/unictype/pr_other_lowercase.h: Regenerated.
21481         * lib/unictype/pr_other_math.h: Regenerated.
21482         * lib/unictype/pr_punctuation.h: Regenerated.
21483         * lib/unictype/pr_sentence_terminal.h: Regenerated.
21484         * lib/unictype/pr_soft_dotted.h: Regenerated.
21485         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
21486         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
21487         * lib/unictype/pr_unified_ideograph.h: Regenerated.
21488         * lib/unictype/pr_uppercase.h: Regenerated.
21489         * lib/unictype/pr_xid_continue.h: Regenerated.
21490         * lib/unictype/pr_xid_start.h: Regenerated.
21491         * lib/unictype/pr_zero_width.h: Regenerated.
21492         * lib/unictype/scripts.h: Regenerated.
21493         * lib/unictype/scripts_byname.gperf: Regenerated.
21494         * lib/unictype/sy_java_ident.h: Regenerated.
21495         * lib/unilbrk/lbrkprop1.h: Regenerated.
21496         * lib/unilbrk/lbrkprop2.h: Regenerated.
21497         * tests/unictype/test-categ_C.c: Regenerated.
21498         * tests/unictype/test-categ_Cf.c: Regenerated.
21499         * tests/unictype/test-categ_Cn.c: Regenerated.
21500         * tests/unictype/test-categ_L.c: Regenerated.
21501         * tests/unictype/test-categ_Ll.c: Regenerated.
21502         * tests/unictype/test-categ_Lm.c: Regenerated.
21503         * tests/unictype/test-categ_Lo.c: Regenerated.
21504         * tests/unictype/test-categ_Lu.c: Regenerated.
21505         * tests/unictype/test-categ_M.c: Regenerated.
21506         * tests/unictype/test-categ_Mc.c: Regenerated.
21507         * tests/unictype/test-categ_Me.c: Regenerated.
21508         * tests/unictype/test-categ_Mn.c: Regenerated.
21509         * tests/unictype/test-categ_N.c: Regenerated.
21510         * tests/unictype/test-categ_Nd.c: Regenerated.
21511         * tests/unictype/test-categ_Nl.c: Regenerated.
21512         * tests/unictype/test-categ_No.c: Regenerated.
21513         * tests/unictype/test-categ_P.c: Regenerated.
21514         * tests/unictype/test-categ_Pd.c: Regenerated.
21515         * tests/unictype/test-categ_Pe.c: Regenerated.
21516         * tests/unictype/test-categ_Pf.c: Regenerated.
21517         * tests/unictype/test-categ_Pi.c: Regenerated.
21518         * tests/unictype/test-categ_Po.c: Regenerated.
21519         * tests/unictype/test-categ_Ps.c: Regenerated.
21520         * tests/unictype/test-categ_S.c: Regenerated.
21521         * tests/unictype/test-categ_Sk.c: Regenerated.
21522         * tests/unictype/test-categ_Sm.c: Regenerated.
21523         * tests/unictype/test-categ_So.c: Regenerated.
21524         * tests/unictype/test-ctype_alnum.c: Regenerated.
21525         * tests/unictype/test-ctype_alpha.c: Regenerated.
21526         * tests/unictype/test-ctype_graph.c: Regenerated.
21527         * tests/unictype/test-ctype_lower.c: Regenerated.
21528         * tests/unictype/test-ctype_print.c: Regenerated.
21529         * tests/unictype/test-ctype_punct.c: Regenerated.
21530         * tests/unictype/test-ctype_upper.c: Regenerated.
21531         * tests/unictype/test-decdigit.h: Regenerated.
21532         * tests/unictype/test-digit.h: Regenerated.
21533         * tests/unictype/test-numeric.h: Regenerated.
21534         * tests/unictype/test-pr_alphabetic.c: Regenerated.
21535         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
21536         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
21537         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
21538         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
21539         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
21540         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
21541         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
21542         * tests/unictype/test-pr_combining.c: Regenerated.
21543         * tests/unictype/test-pr_dash.c: Regenerated.
21544         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
21545         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
21546         * tests/unictype/test-pr_deprecated.c: Regenerated.
21547         * tests/unictype/test-pr_diacritic.c: Regenerated.
21548         * tests/unictype/test-pr_extender.c: Regenerated.
21549         * tests/unictype/test-pr_format_control.c: Regenerated.
21550         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
21551         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
21552         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
21553         * tests/unictype/test-pr_id_continue.c: Regenerated.
21554         * tests/unictype/test-pr_id_start.c: Regenerated.
21555         * tests/unictype/test-pr_ideographic.c: Regenerated.
21556         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
21557         * tests/unictype/test-pr_lowercase.c: Regenerated.
21558         * tests/unictype/test-pr_math.c: Regenerated.
21559         * tests/unictype/test-pr_numeric.c: Regenerated.
21560         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
21561         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
21562         Regenerated.
21563         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
21564         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
21565         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
21566         * tests/unictype/test-pr_other_math.c: Regenerated.
21567         * tests/unictype/test-pr_punctuation.c: Regenerated.
21568         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
21569         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
21570         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
21571         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
21572         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
21573         * tests/unictype/test-pr_uppercase.c: Regenerated.
21574         * tests/unictype/test-pr_xid_continue.c: Regenerated.
21575         * tests/unictype/test-pr_xid_start.c: Regenerated.
21576         * tests/unictype/test-pr_zero_width.c: Regenerated.
21577
21578         Update to Unicode 5.1.0.
21579         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
21580         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
21581         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
21582         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
21583         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
21584         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
21585         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
21586         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
21587         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
21588         (nonspacing_table_ind): Update.
21589         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21590
21591         Update to Unicode 5.1.0.
21592         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21593         code transform.
21594         * lib/uniname/uniname.c (unicode_character_name,
21595         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21596         * lib/uniname/uninames.h: Regenerated.
21597         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21598
21599 2009-02-07  Bruno Haible  <bruno@clisp.org>
21600
21601         Merge gen-ctype and gen-lbrk into a single program.
21602         * lib/gen-uni-tables.c: New file, incorporating
21603         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21604         Add directory prefixes to the names of the generated files.
21605         * lib/unictype/gen-ctype.c: Remove file.
21606         * lib/unilbrk/gen-lbrk.c: Remove file.
21607         * modules/gen-uni-tables: New file.
21608         * modules/unictype/gen-ctype: Remove file.
21609         * modules/unilbrk/gen-lbrk: Remove file.
21610
21611 2009-02-07  Bruno Haible  <bruno@clisp.org>
21612
21613         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21614
21615         New module 'unistr/u32-strcoll'.
21616         * modules/unistr/u32-strcoll: New file.
21617         * lib/unistr/u32-strcoll.c: New file.
21618
21619         New module 'unistr/u16-strcoll'.
21620         * modules/unistr/u16-strcoll: New file.
21621         * lib/unistr/u16-strcoll.c: New file.
21622
21623         New module 'unistr/u8-strcoll'.
21624         * modules/unistr/u8-strcoll: New file.
21625         * lib/unistr/u8-strcoll.c: New file.
21626         * lib/unistr/u-strcoll.h: New file.
21627
21628 2009-02-07  Bruno Haible  <bruno@clisp.org>
21629
21630         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21631         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21632         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21633         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21634         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21635         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21636
21637 2009-02-07  Bruno Haible  <bruno@clisp.org>
21638
21639         Make 64-bit clean.
21640         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21641         output_combclass, output_bidi_category, output_decimal_digit,
21642         output_digit, output_numeric, output_mirror, output_scripts,
21643         output_ident_category): Use proper width specifier in format strings.
21644
21645 2009-02-07  Bruno Haible  <bruno@clisp.org>
21646
21647         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21648         failure behaviour.
21649
21650 2009-02-07  Jim Meyering  <meyering@redhat.com>
21651
21652         regex: avoid compilation failure with upcoming gcc-4.4
21653         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21654         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21655         "... error: integer overflow in preprocessor expression".
21656
21657 2009-02-05  Ben Pfaff  <blp@gnu.org>
21658
21659         Fix link errors on Windows when close module is used.
21660         * modules/close: Add $(LIB_CLOSE) to Link section.
21661         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21662         $(LIB_CLOSE) on Windows.
21663
21664 2009-02-05  Jim Meyering  <meyering@redhat.com>
21665
21666         still avoid unused-parameter warnings, but do it cleanly
21667         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21668         (get_fs_usage): Cast to void instead.
21669         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21670         (dev_from_mount_options, read_file_system_list): Cast to void.
21671         Prompted by Bruno Haible.
21672
21673 2009-02-04  Jim Meyering  <meyering@redhat.com>
21674
21675         fsusage.c: correct copyright year
21676         * lib/fsusage.c: Reflect year in which the change is pushed into
21677
21678         avoid misc. warnings
21679         * lib/fsusage.c (UNUSED_PARAM): Define.
21680         (get_fs_usage): Mark parameter "disk" as unused.
21681         * lib/getugroups.c (getgrent): Use "void" in prototype.
21682         * lib/mountlist.c: Mark unused parameters.
21683         (read_file_system_list): Declare a local with "const".
21684         * lib/nanosleep.c (getnow): Declare static.
21685         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21686
21687         dirfd: set errno upon failure
21688         * lib/dirfd.c: Include <errno.h>.
21689         Set errno to ENOTSUP when returning -1.
21690         * modules/dirfd (Depends-on): Add errno.
21691         Suggested by John Kodis <kodis@comcast.net>.
21692
21693 2009-02-01  Bruno Haible  <bruno@clisp.org>
21694
21695         Don't assume sizeof (long) >= sizeof (void *).
21696         * lib/memcmp.c: Include stdint.h.
21697         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21698         srcp2 to 'const byte *'.
21699         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21700         types to uintptr_t.
21701         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21702         * modules/memcmp (Depends-on): Add stdint.
21703         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21704
21705 2009-01-30  Eric Blake  <ebb9@byu.net>
21706
21707         fix more require-before-expand issues
21708         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21709         expand, AC_PROG_AWK.
21710         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21711
21712 2009-01-28  Eric Blake  <ebb9@byu.net>
21713
21714         version-etc: use consistent URL formatting
21715         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21716         Improve formatting.  Use fputs for string without %.
21717
21718 2009-01-28  Jim Meyering  <meyering@redhat.com>
21719
21720         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21721         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21722         "underquoted definition of NAME" from autoconf-2.59.
21723
21724 2009-01-28  Bruno Haible  <bruno@clisp.org>
21725
21726         * doc/gnulib.texi: Add "Obsolete modules" to index.
21727
21728 2009-01-28  Jim Meyering  <meyering@redhat.com>
21729
21730         useless-if-before-free: recognize more variants
21731         * build-aux/useless-if-before-free: Also recognize e.g.,
21732         if (NULL != p) free (p);
21733
21734 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21735
21736         test-getaddrinfo: skip (don't fail) this test when there's no network
21737         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21738         on the presumption that it means you lack network access.
21739
21740 2009-01-26  Jim Meyering  <meyering@redhat.com>
21741
21742         fflush: avoid warnings on modern systems
21743         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21744         pos and result, into scopes where they're used.
21745
21746 2009-01-26  Eric Blake  <ebb9@byu.net>
21747
21748         Silence warning reintroduced by recent extensions patch.
21749         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21750         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21751         autoconf.
21752
21753         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21754         * m4/00gnulib.m4: New file.
21755         * gnulib-tool (func_get_filelist): Always use it.
21756         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21757         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21758
21759 2009-01-25  Bruno Haible  <bruno@clisp.org>
21760
21761         Make test-quotearg work on MacOS X and AIX.
21762         * tests/test-quotearg.sh: New file.
21763         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21764         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21765         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21766         include <libintl.h>.
21767         (fake_locale): Remove variable.
21768         (gettext, dgettext, dcgettext): Remove functions.
21769         (main): Instead of setting a fake locale, set a real locale. Call
21770         textdomain and bindtextdomain.
21771         * modules/quotearg-tests (Files): Add the new files.
21772         (Depends-on): Add gettext, setenv, unsetenv.
21773         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21774         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21775         Augment TESTS_ENVIRONMENT.
21776
21777 2009-01-25  Bruno Haible  <bruno@clisp.org>
21778
21779         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21780         fr_FR.ISO8859-1 locale on MacOS X.
21781         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21782         ja_JP.eucJP locale on MacOS X.
21783         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21784         zh_CN.GB18030 locale on MacOS X.
21785
21786 2009-01-25  Bruno Haible  <bruno@clisp.org>
21787
21788         Avoid link errors on MacOS X 10.3.
21789         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21790         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21791
21792 2009-01-25  Bruno Haible  <bruno@clisp.org>
21793
21794         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21795         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21796         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21797         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21798         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21799         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21800         posix_spawnattr_init, posix_spawnattr_setsigmask,
21801         posix_spawnattr_setflags, posix_spawnattr_destroy.
21802
21803         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21804         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21805         * modules/execute (Files): Remove m4/posix_spawn.m4.
21806         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21807         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21808         posix_spawnattr_init, posix_spawnattr_setsigmask,
21809         posix_spawnattr_setflags, posix_spawnattr_destroy.
21810
21811 2009-01-25  Bruno Haible  <bruno@clisp.org>
21812
21813         * lib/glthread/threadlib.c: Include <stdlib.h>.
21814
21815 2009-01-25  Bruno Haible  <bruno@clisp.org>
21816
21817         * lib/glthread/threadlib.c (dummy): New declaration.
21818
21819 2009-01-25  Bruno Haible  <bruno@clisp.org>
21820
21821         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21822         multibyte characters also for the GB18030 encoding. Don't crash when
21823         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21824
21825 2009-01-25  Bruno Haible  <bruno@clisp.org>
21826
21827         Avoid redefining 'struct random_data' on OSF/1 5.1.
21828         * lib/stdlib.in.h: Include <random.h> if it exists.
21829         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21830         HAVE_RANDOM_H. Include <random.h> when testing whether
21831         'struct random_data' exists.
21832         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21833
21834 2009-01-25  Bruno Haible  <bruno@clisp.org>
21835
21836         Don't install charset.alias on MacOS X >= 10.3.
21837         * lib/localcharset.c (DARWIN7): New macro.
21838         (get_charset_aliases): Hardcode the result for Darwin7.
21839         * modules/localcharset (install-exec-local): Don't install
21840         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
21841
21842 2009-01-25  Bruno Haible  <bruno@clisp.org>
21843
21844         Don't install charset.alias on mingw and Cygwin.
21845         * modules/localcharset (install-exec-local): Don't install
21846         charset.alias on mingw and Cygwin, if the file does not yet exist.
21847         The result for these platforms is hardcoded in localcharset.c.
21848
21849 2009-01-25  Bruno Haible  <bruno@clisp.org>
21850
21851         Make it possible again to use AC_GNU_SOURCE together with gnulib.
21852         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
21853         before requiring AC_USE_SYSTEM_EXTENSIONS.
21854
21855 2009-01-25  Jim Meyering  <meyering@redhat.com>
21856
21857         c-strtod: avoid warnings
21858         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
21859         "assignment discards qualifiers from pointer target type" warnings.
21860
21861 2009-01-24  Bruno Haible  <bruno@clisp.org>
21862
21863         Add support for non-UTF-8 locales on MacOS X.
21864         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
21865         canonical encodings. For Darwin 7 and newer, don't map traditional
21866         encodings to UTF-8.
21867         Reported by Vincent Lefevre <vincent@vinc17.org>
21868         at <http://savannah.gnu.org/bugs/?25235>.
21869
21870 2009-01-24  Bruno Haible  <bruno@clisp.org>
21871
21872         * doc/gnulib.texi (Obsolete modules): New section.
21873         Reported by Mike Frysinger <vapier@gentoo.org>.
21874
21875 2009-01-24  Bruno Haible  <bruno@clisp.org>
21876
21877         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
21878         (%.dvi): New rule.
21879
21880 2009-01-24  Bruno Haible  <bruno@clisp.org>
21881
21882         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
21883         Reported by Eric Blake.
21884
21885 2009-01-24  Bruno Haible  <bruno@clisp.org>
21886
21887         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
21888         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
21889         Reported by Gary V. Vaughan <gary@gnu.org>.
21890
21891 2009-01-24  Bruno Haible  <bruno@clisp.org>
21892
21893         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
21894
21895 2009-01-23  Bruno Haible  <bruno@clisp.org>
21896
21897         Make c-strtod, c-strtold usable in libraries.
21898         * lib/c-strtod.c: Include string.h instead of xalloc.h.
21899         (C_STRTOD): Call strdup instead of xstrdup.
21900         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
21901         * modules/c-strtold (Depends-on): Likewise.
21902         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
21903         * NEWS: Mention the change.
21904         Reported by Michael Gold <mgold@ncf.ca>.
21905
21906 2009-01-23  Jim Meyering  <meyering@redhat.com>
21907
21908         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
21909         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
21910         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
21911
21912 2009-01-23  Simon Josefsson  <simon@josefsson.org>
21913
21914         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
21915         GNU CoreUtils.
21916         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
21917         * modules/version-etc (Description): Update.
21918
21919 2009-01-22  Bruno Haible  <bruno@clisp.org>
21920
21921         Cache the C locale object.
21922         * lib/c-strtod.c (c_locale_cache): New variable.
21923         (c_locale): New function.
21924         (C_STRTOD): Use it, and don't call freelocale.
21925         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
21926         Suggested by Paolo Bonzini.
21927
21928 2009-01-21  Bruno Haible  <bruno@clisp.org>
21929
21930         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
21931         conditions other than overflow.
21932
21933 2009-01-21  Bruno Haible  <bruno@clisp.org>
21934
21935         * lib/c-strtod.c: Include errno.h.
21936         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
21937         value from STRTOD_L and STRTOD.
21938
21939 2009-01-21  Bruno Haible  <bruno@clisp.org>
21940         and Jim Meyering  <meyering@redhat.com>
21941
21942         nanosleep: skip configure test (fail it) for apple universal builds
21943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
21944         universal builds, assume that nanosleep does not work.
21945         * modules/nanosleep (Depends-on): Add multiarch.
21946
21947         mktime: skip configure test (fail it) for apple universal builds
21948         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
21949         universal builds, assume that mktime does not work.
21950         * modules/mktime (Depends-on): Add multiarch.
21951
21952 2009-01-21  Eric Blake  <ebb9@byu.net>
21953
21954         multiarch: avoid expand-before-require warning
21955         * modules/multiarch (configure.ac): Require, rather than expand,
21956         gl_MULTIARCH.
21957         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
21958         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
21959         enforce that all clients require it.  Partial reversion of
21960         2008-12-29 patch.
21961
21962         error: avoid expand-before-require warning
21963         * modules/errno (configure.ac): Require, rather than expand,
21964         gl_HEADER_ERRNO_H.
21965         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
21966         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
21967         enforce that all clients require it.
21968
21969         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
21970         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
21971         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
21972         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
21973
21974 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
21975
21976         Revert:
21977         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21978
21979         regex: do not depend on obsolete modules.
21980         * modules/regex: Remove memcmp and memmove.
21981
21982 2009-01-20  Bruno Haible  <bruno@clisp.org>
21983
21984         Make the 'link' module link on Windows NT 4.
21985         * lib/link.c (_WIN32_WINNT): Don't define.
21986         (CreateHardLinkFuncType): New type.
21987         (CreateHardLinkFunc, initialized): New variables.
21988         (initialize): New function.
21989         (link): Invoke CreateHardLink indirectly through the function pointer.
21990
21991 2009-01-20  Bruno Haible  <bruno@clisp.org>
21992
21993         Fix compilation failure on mingw.
21994         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
21995
21996 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
21997
21998         * doc/c-strtod.texi: Mention a couple of restrictions.
21999
22000 2009-01-20  Jim Meyering  <meyering@redhat.com>
22001
22002         gettimeofday: move more declarations out of functions
22003         * lib/gettimeofday.c: Move extern declarations of tzset and
22004         gmtime out of containing functions.  Prompted by Bruno Haible.
22005
22006 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22007
22008         regex: do not depend on obsolete modules.
22009         * modules/regex: Remove memcmp and memmove.
22010
22011 2009-01-19  Bruno Haible  <bruno@clisp.org>
22012
22013         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22014         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
22015         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22016         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
22017         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
22018
22019 2009-01-19  Bruno Haible  <bruno@clisp.org>
22020
22021         * tests/test-link.c: Include <errno.h>.
22022         (main): Exit with code 77 when a hard link cannot be created due to
22023         the file system.
22024         * tests/test-link.sh: Skip test when a hard link cannot be created due
22025         to the file system.
22026         Suggested by Eric Blake.
22027
22028 2009-01-19  Martin Lambers  <marlam@marlam.de>
22029
22030         * modules/link-tests: New file.
22031         * tests/test-link.sh: New file.
22032         * tests/test-link.c: New file.
22033
22034 2009-01-19  Eric Blake  <ebb9@byu.net>
22035
22036         doc: mention another function added in cygwin 1.7.0
22037         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
22038         Another new function in cygwin 1.7.
22039
22040 2009-01-19  Bruno Haible  <bruno@clisp.org>
22041
22042         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22043         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
22044         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
22045         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22046         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22047         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22048         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22049         * m4/md4.m4 (gl_MD4): Likewise.
22050         * m4/md5.m4 (gl_MD5): Likewise.
22051         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
22052         * m4/sha1.m4 (gl_SHA1): Likewise.
22053         * m4/sha256.m4 (gl_SHA256): Likewise.
22054         * m4/sha512.m4 (gl_SHA512): Likewise.
22055
22056 2009-01-19  Bruno Haible  <bruno@clisp.org>
22057
22058         * modules/uniname/uniname-tests (Depends-on): Add progname.
22059         * tests/uniname/test-uninames.c: Include progname.h.
22060         (main): Call set_program_name.
22061
22062         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
22063         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
22064         (main): Call set_program_name.
22065
22066         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
22067         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
22068         (main): Call set_program_name.
22069
22070         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
22071         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
22072         (main): Call set_program_name.
22073
22074         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
22075         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
22076         (main): Call set_program_name.
22077
22078         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
22079         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
22080         (main): Call set_program_name.
22081
22082         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
22083         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
22084         (main): Call set_program_name.
22085
22086         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
22087         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
22088         (main): Call set_program_name.
22089
22090         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
22091         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
22092         (main): Call set_program_name.
22093
22094 2009-01-19  Eric Blake  <ebb9@byu.net>
22095
22096         test-unistd: test previous patch
22097         * tests/test-unistd.c: Test *_FILENO macros.
22098
22099         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
22100         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22101         Guarantee a definition.
22102         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
22103         * modules/unistd-safer (Depends-on): Add dependency on unistd.
22104         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
22105         * lib/dup-safer.c (STDERR_FILENO): Likewise.
22106         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22107         Likewise.
22108         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
22109         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
22110         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22111         Likewise.
22112         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
22113         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
22114         (STDERR_FILENO): Likewise.
22115         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
22116         (STDERR_FILENO): Likewise.
22117         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
22118         (STDERR_FILENO): Likewise.
22119         Reported by Elbert Pol.
22120
22121 2009-01-19  Eric Blake  <ebb9@byu.net>
22122
22123         doc: mention more functions added in cygwin 1.7.0
22124         * doc/posix-functions/abort.texi (abort): Update wording related
22125         to cygwin.
22126         * doc/posix-functions/daylight.texi (daylight): Likewise.
22127         * doc/posix-functions/optarg.texi (optarg): Likewise.
22128         * doc/posix-functions/optarg.texi (opterr): Likewise.
22129         * doc/posix-functions/optarg.texi (optind): Likewise.
22130         * doc/posix-functions/optarg.texi (optopt): Likewise.
22131         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
22132         worked in 1.5.x, and was withdrawn in 1.7.
22133         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
22134         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
22135         cygwin versions.
22136         * doc/posix-functions/perror.texi (perror): Likewise.
22137         * doc/posix-functions/printf.texi (printf): Likewise.
22138         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
22139         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
22140         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
22141         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
22142         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22143         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
22144         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22145         Likewise.
22146         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22147         Likewise.
22148         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
22149         this function.
22150         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
22151         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
22152         Likewise.
22153         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
22154         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
22155         * doc/posix-functions/confstr.texi (confstr): Likewise.
22156         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
22157         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
22158         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
22159         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
22160         * doc/posix-functions/fputws.texi (fputws): Likewise.
22161         * doc/posix-functions/fwide.texi (fwide): Likewise.
22162         * doc/posix-functions/getwc.texi (getwc): Likewise.
22163         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
22164         * doc/posix-functions/putwc.texi (putwc): Likewise.
22165         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
22166         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
22167         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
22168         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
22169         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
22170         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
22171         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
22172         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
22173         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
22174         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
22175         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
22176
22177 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22178
22179         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
22180         * lib/ioctl.c: Include <sys/ioctl.h>.
22181
22182 2009-01-19  Simon Josefsson  <simon@josefsson.org>
22183
22184         * modules/getdate-tests (Depends-on): Add progname.
22185         * tests/test-getdate.c: Use progname module, to avoid link errors
22186         on non-glibc systems.
22187
22188 2009-01-18  Simon Josefsson  <simon@josefsson.org>
22189
22190         * modules/filenamecat-tests (Depends-on): Add progname.
22191         * modules/fstrcmp-tests (Depends-on): Likewise.
22192
22193         * tests/test-filenamecat.c: Use progname module, to avoid link
22194         errors on non-glibc systems.
22195         * tests/test-fstrcmp.c: Likewise.
22196
22197 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22198
22199         gettimeofday: avoid warning: nested extern declaration of 'localtime'
22200         * lib/gettimeofday.c: Move extern declaration out of function.
22201
22202 2009-01-18  Bruno Haible  <bruno@clisp.org>
22203
22204         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
22205         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
22206         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
22207
22208 2009-01-18  Bruno Haible  <bruno@clisp.org>
22209
22210         * lib/strftime.c (MEMPCPY): Remove unused macro.
22211         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
22212
22213 2009-01-18  Martin Lambers  <marlam@marlam.de>
22214
22215         New module 'link'.
22216         * lib/unistd.in.h (link): New declaration.
22217         * lib/link.c: New file.
22218         * m4/link.m4: New file.
22219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
22220         HAVE_LINK.
22221         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
22222         * modules/link: New file.
22223         * doc/posix-functions/link.texi: Mention the new module.
22224
22225 2009-01-18  Bruno Haible  <bruno@clisp.org>
22226
22227         * tests/test-avltree_list.c (main): Call set_program_name.
22228         * tests/test-avltree_oset.c (main): Likewise.
22229         * tests/test-obstack-printf.c: Include progname.h.
22230         (main): Call set_program_name.
22231         * tests/test-quotearg.c: Include progname.h.
22232         (main): Call set_program_name.
22233         * tests/test-xmemdup0.c: Include progname.h.
22234         (main): Call set_program_name.
22235
22236 2009-01-18  Bruno Haible  <bruno@clisp.org>
22237
22238         New module 'alphasort'.
22239         * lib/dirent.in.h (alphasort): New declaration.
22240         * lib/alphasort.c: New file, from glibc with modifications.
22241         * m4/alphasort.m4: New file.
22242         * modules/alphasort: New file.
22243         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
22244         HAVE_ALPHASORT.
22245         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
22246         HAVE_ALPHASORT.
22247         * doc/posix-functions/alphasort.texi: Mention the new module and the
22248         portability problems.
22249
22250 2009-01-18  Bruno Haible  <bruno@clisp.org>
22251
22252         New module 'scandir'.
22253         * lib/dirent.in.h (scandir): New declaration.
22254         * lib/scandir.c: New file, from glibc with modifications.
22255         * m4/scandir.m4: New file.
22256         * modules/scandir: New file.
22257         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
22258         HAVE_SCANDIR.
22259         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
22260         HAVE_SCANDIR.
22261         * doc/posix-functions/scandir.texi: Mention the new module and the
22262         portability problems.
22263
22264 2009-01-17  Bruno Haible  <bruno@clisp.org>
22265
22266         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
22267         Update documentation.
22268         (func_remove_suffix): Escape all dots in the suffix. Update
22269         documentation.
22270         (func_filter_filelist): Update documentation.
22271         Reported by Ralf Wildenhues.
22272
22273 2009-01-17  Bruno Haible  <bruno@clisp.org>
22274
22275         * modules/dprintf-posix-tests: New file.
22276         * tests/test-dprintf-posix.sh: New file.
22277         * tests/test-dprintf-posix.c: New file.
22278
22279         New modules 'dprintf', 'dprintf-posix'.
22280         * lib/stdio.in.h (dprintf): New declaration.
22281         * lib/dprintf.c: New file.
22282         * m4/dprintf.m4: New file.
22283         * m4/dprintf-posix.m4: New file.
22284         * modules/dprintf: New file.
22285         * modules/dprintf-posix: New file.
22286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
22287         HAVE_DPRINTF, REPLACE_DPRINTF.
22288         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
22289         HAVE_DPRINTF, REPLACE_DPRINTF.
22290         * doc/posix-functions/dprintf.texi: Mention the new modules.
22291
22292 2009-01-17  Bruno Haible  <bruno@clisp.org>
22293
22294         * modules/vdprintf-posix-tests: New file.
22295         * tests/test-vdprintf-posix.sh: New file.
22296         * tests/test-vdprintf-posix.c: New file.
22297
22298         New modules 'vdprintf', 'vdprintf-posix'.
22299         * lib/stdio.in.h (vdprintf): New declaration.
22300         * lib/vdprintf.c: New file.
22301         * m4/vdprintf.m4: New file.
22302         * m4/vdprintf-posix.m4: New file.
22303         * modules/vdprintf: New file.
22304         * modules/vdprintf-posix: New file.
22305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
22306         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22307         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
22308         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22309         * doc/posix-functions/vdprintf.texi: Mention the new modules.
22310
22311 2009-01-17  Bruno Haible  <bruno@clisp.org>
22312
22313         Fix replacement of fopen on mingw.
22314         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
22315         mingw.
22316
22317 2009-01-17  Bruno Haible  <bruno@clisp.org>
22318
22319         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
22320         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
22321
22322 2009-01-17  Bruno Haible  <bruno@clisp.org>
22323
22324         Avoid test-fflush2.sh failure on mingw.
22325         * tests/test-fflush2.c: Include binary-io.h.
22326         (main): Put standard input into binary mode.
22327         * modules/fflush-tests (Depends-on): Add binary-io.
22328
22329 2009-01-17  Bruno Haible  <bruno@clisp.org>
22330
22331         * lib/wchar.in.h: In another particular situation, include only the
22332         system's <wchar.h> file.
22333         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
22334         Reported by Albert Chin-A-Young <china@thewrittenword.com>
22335         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
22336
22337 2009-01-17  Bruno Haible  <bruno@clisp.org>
22338
22339         Support for stripping executables in --enable-relocatable.
22340         * build-aux/install-reloc: Expect one more argument, or an environment
22341         variable RELOC_STRIP_PROG. If set, strip the destination program and
22342         its wrapper.
22343         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
22344         RELOC_STRIP_PROG.
22345         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
22346         to set RELOCATABLE_STRIP.
22347         * NEWS: Mention the new Makefile requirement.
22348
22349 2009-01-17  Bruno Haible  <bruno@clisp.org>
22350
22351         * build-aux/install-reloc: Remove debugging information left over by
22352         C compiler on MacOS X.
22353
22354 2009-01-17  Bruno Haible  <bruno@clisp.org>
22355
22356         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
22357         * lib/progreloc.c (find_executable): Fix type of pointer passed to
22358         _NSGetExecutablePath.
22359
22360 2009-01-16  Jim Meyering  <meyering@redhat.com>
22361
22362         strerror: avoid warnings about discarding "const"
22363         * lib/strerror.c (rpl_strerror): Instead of returning a const
22364         string from each and every "case", use a variable, and add a single
22365         cast after the switch.
22366
22367 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
22368
22369         * lib/arpa_inet.in.h: Add extern "C" block for C++.
22370
22371 2009-01-16  Bruno Haible  <bruno@clisp.org>
22372
22373         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
22374         array initializer syntax that also works in C++ mode.
22375         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22376
22377 2009-01-16  Jim Meyering  <meyering@redhat.com>
22378
22379         poll: suppress a warning
22380         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
22381         to ignore "...unsigned expression < 0 is always false" warnings.
22382
22383 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
22384
22385         poll: remove declarations of unused variables
22386         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
22387         sockbuf and optlen.
22388
22389 2009-01-15  Bruno Haible  <bruno@clisp.org>
22390
22391         Make fflush-after-ungetc POSIX compliant on BSD systems.
22392         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
22393         (clear_ungetc_buffer): Implement also for other systems.
22394         (rpl_fflush): On glibc systems, invoke
22395         clear_ungetc_buffer_preserving_position. Otherwise, invoke
22396         clear_ungetc_buffer after fetching the stream's position, not before.
22397
22398 2009-01-15  Bruno Haible  <bruno@clisp.org>
22399
22400         Make fflush-after-ungetc POSIX compliant on glibc systems.
22401         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
22402         after ungetc.
22403         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
22404         (rpl_fflush): On glibc systems, simply call the system's fflush
22405         function after clearing the ungetc buffer.
22406         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
22407         Instead, lseek only to the end of file, then use the system's fseeko
22408         for the rest. On glibc systems, reset the EOF indicator bit.
22409
22410 2009-01-15  Jim Meyering  <meyering@redhat.com>
22411
22412         openmp.m4: revert quote-adding change, for portability to older autoconf
22413         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
22414         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
22415         Simon Josefsson noticed the problem when using autoconf-2.61.
22416
22417 2009-01-15  Bruno Haible  <bruno@clisp.org>
22418
22419         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
22420         * tests/test-fflush2.c (ASSERT): Always fail.
22421         (main): Add two tests for fflush() after ungetc(), taking into account
22422         the Austin Group's clarification.
22423         Suggested by Eric Blake.
22424
22425 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
22426
22427         mktime.m4: remove K&R-style function prototypes
22428         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
22429         for the Sun C++ compiler.
22430
22431 2009-01-14  Bruno Haible  <bruno@clisp.org>
22432
22433         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
22434         while including <wchar.h>.
22435         * lib/wchar.in.h: In two particular situations on HP-UX, include only
22436         the system's <wchar.h> file.
22437         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22438
22439 2009-01-14  Bruno Haible  <bruno@clisp.org>
22440
22441         * m4/csharp.m4: Don't mention gettext on the serial number line.
22442         * m4/csharpexec.m4: Likewise.
22443         * m4/eaccess.m4: Likewise.
22444         * m4/javaexec.m4: Likewise.
22445         * m4/sig_atomic_t.m4: Likewise.
22446         * m4/tmpdir.m4: Likewise.
22447         * m4/intldir.m4: Bump gettext version.
22448         * m4/lib-ld.m4: Likewise.
22449
22450 2009-01-14  Bruno Haible  <bruno@clisp.org>
22451
22452         * lib/progname.c (set_program_name): Add more comments.
22453         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22454
22455 2009-01-14  Simon Josefsson  <simon@josefsson.org>
22456
22457         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
22458         were sys/stat.h does not define it.
22459
22460 2009-01-14  Jim Meyering  <meyering@redhat.com>
22461
22462         many *.m4 files: improve m4 quoting
22463         99% of this change was performed by running the following commands:
22464         git ls-files | grep '\.m4$' | xargs perl -pi \
22465           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
22466           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22467           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22468           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
22469         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
22470         The remainder were to add Copyright dates, increment serial numbers,
22471         undo some changes in comments, exclude m4/intl.m4, and add quotes
22472         around the "1" in ",1" where the unusual spacing prohibited the
22473         above regexps from doing the job.  For more details, see
22474         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
22475         * m4/acl.m4: Modified.
22476         * m4/afs.m4: Likewise.
22477         * m4/alloca.m4: Likewise.
22478         * m4/argp.m4: Likewise.
22479         * m4/argz.m4: Likewise.
22480         * m4/atexit.m4: Likewise.
22481         * m4/bison-i18n.m4: Likewise.
22482         * m4/bison.m4: Likewise.
22483         * m4/byteswap.m4: Likewise.
22484         * m4/c-stack.m4: Likewise.
22485         * m4/c-strtod.m4: Likewise.
22486         * m4/calloc.m4: Likewise.
22487         * m4/canonicalize-lgpl.m4: Likewise.
22488         * m4/chown.m4: Likewise.
22489         * m4/clock_time.m4: Likewise.
22490         * m4/codeset.m4: Likewise.
22491         * m4/copy-file.m4: Likewise.
22492         * m4/csharp.m4: Likewise.
22493         * m4/csharpcomp.m4: Likewise.
22494         * m4/csharpexec.m4: Likewise.
22495         * m4/d-ino.m4: Likewise.
22496         * m4/d-type.m4: Likewise.
22497         * m4/dirfd.m4: Likewise.
22498         * m4/double-slash-root.m4: Likewise.
22499         * m4/eaccess.m4: Likewise.
22500         * m4/eealloc.m4: Likewise.
22501         * m4/environ.m4: Likewise.
22502         * m4/errno_h.m4: Likewise.
22503         * m4/euidaccess.m4: Likewise.
22504         * m4/execute.m4: Likewise.
22505         * m4/fatal-signal.m4: Likewise.
22506         * m4/fchdir.m4: Likewise.
22507         * m4/fcntl_h.m4: Likewise.
22508         * m4/fileblocks.m4: Likewise.
22509         * m4/filenamecat.m4: Likewise.
22510         * m4/findprog.m4: Likewise.
22511         * m4/flexmember.m4: Likewise.
22512         * m4/fnmatch.m4: Likewise.
22513         * m4/fopen.m4: Likewise.
22514         * m4/fpending.m4: Likewise.
22515         * m4/fprintf-posix.m4: Likewise.
22516         * m4/free.m4: Likewise.
22517         * m4/frexp.m4: Likewise.
22518         * m4/frexpl.m4: Likewise.
22519         * m4/fsusage.m4: Likewise.
22520         * m4/ftruncate.m4: Likewise.
22521         * m4/gc-camellia.m4: Likewise.
22522         * m4/gc-random.m4: Likewise.
22523         * m4/gc.m4: Likewise.
22524         * m4/getaddrinfo.m4: Likewise.
22525         * m4/getcwd-abort-bug.m4: Likewise.
22526         * m4/getcwd-path-max.m4: Likewise.
22527         * m4/getdate.m4: Likewise.
22528         * m4/getdomainname.m4: Likewise.
22529         * m4/getgroups.m4: Likewise.
22530         * m4/gethostname.m4: Likewise.
22531         * m4/gethrxtime.m4: Likewise.
22532         * m4/getline.m4: Likewise.
22533         * m4/getloadavg.m4: Likewise.
22534         * m4/getndelim2.m4: Likewise.
22535         * m4/getpass.m4: Likewise.
22536         * m4/gettext.m4: Likewise.
22537         * m4/gettime.m4: Likewise.
22538         * m4/gettimeofday.m4: Likewise.
22539         * m4/gnulib-common.m4: Likewise.
22540         * m4/group-member.m4: Likewise.
22541         * m4/host-os.m4: Likewise.
22542         * m4/iconv.m4: Likewise.
22543         * m4/iconv_open.m4: Likewise.
22544         * m4/inet_ntop.m4: Likewise.
22545         * m4/inet_pton.m4: Likewise.
22546         * m4/inline.m4: Likewise.
22547         * m4/intldir.m4: Likewise.
22548         * m4/intlmacosx.m4: Likewise.
22549         * m4/intmax.m4: Likewise.
22550         * m4/intmax_t.m4: Likewise.
22551         * m4/inttypes.m4: Likewise.
22552         * m4/inttypes_h.m4: Likewise.
22553         * m4/inttypes-pri.m4: Likewise.
22554         * m4/isapipe.m4: Likewise.
22555         * m4/isnand.m4: Likewise.
22556         * m4/isnanf.m4: Likewise.
22557         * m4/isnanl.m4: Likewise.
22558         * m4/javacomp.m4: Likewise.
22559         * m4/javaexec.m4: Likewise.
22560         * m4/jm-winsz1.m4: Likewise.
22561         * m4/jm-winsz2.m4: Likewise.
22562         * m4/lchown.m4: Likewise.
22563         * m4/lcmessage.m4: Likewise.
22564         * m4/ldexpl.m4: Likewise.
22565         * m4/lib-ld.m4: Likewise.
22566         * m4/lib-link.m4: Likewise.
22567         * m4/libsigsegv.m4: Likewise.
22568         * m4/link-follow.m4: Likewise.
22569         * m4/localcharset.m4: Likewise.
22570         * m4/locale-fr.m4: Likewise.
22571         * m4/locale-ja.m4: Likewise.
22572         * m4/locale-tr.m4: Likewise.
22573         * m4/locale-zh.m4: Likewise.
22574         * m4/lock.m4: Likewise.
22575         * m4/longlong.m4: Likewise.
22576         * m4/ls-mntd-fs.m4: Likewise.
22577         * m4/lstat.m4: Likewise.
22578         * m4/malloc.m4: Likewise.
22579         * m4/mathl.m4: Likewise.
22580         * m4/mbrtowc.m4: Likewise.
22581         * m4/mbstate_t.m4: Likewise.
22582         * m4/mbswidth.m4: Likewise.
22583         * m4/memchr.m4: Likewise.
22584         * m4/memcmp.m4: Likewise.
22585         * m4/memcpy.m4: Likewise.
22586         * m4/memmem.m4: Likewise.
22587         * m4/memmove.m4: Likewise.
22588         * m4/mempcpy.m4: Likewise.
22589         * m4/memrchr.m4: Likewise.
22590         * m4/memset.m4: Likewise.
22591         * m4/minmax.m4: Likewise.
22592         * m4/mkdir-slash.m4: Likewise.
22593         * m4/mkdtemp.m4: Likewise.
22594         * m4/mktime.m4: Likewise.
22595         * m4/mmap-anon.m4: Likewise.
22596         * m4/mountlist.m4: Likewise.
22597         * m4/nanosleep.m4: Likewise.
22598         * m4/nls.m4: Likewise.
22599         * m4/nocrash.m4: Likewise.
22600         * m4/open.m4: Likewise.
22601         * m4/openat.m4: Likewise.
22602         * m4/openmp.m4: Likewise.
22603         * m4/pathmax.m4: Likewise.
22604         * m4/perl.m4: Likewise.
22605         * m4/physmem.m4: Likewise.
22606         * m4/pipe.m4: Likewise.
22607         * m4/po.m4: Likewise.
22608         * m4/poll.m4: Likewise.
22609         * m4/posixtm.m4: Likewise.
22610         * m4/posixver.m4: Likewise.
22611         * m4/printf-frexp.m4: Likewise.
22612         * m4/printf-frexpl.m4: Likewise.
22613         * m4/printf-posix.m4: Likewise.
22614         * m4/printf-posix-rpl.m4: Likewise.
22615         * m4/printf.m4: Likewise.
22616         * m4/progtest.m4: Likewise.
22617         * m4/putenv.m4: Likewise.
22618         * m4/readline.m4: Likewise.
22619         * m4/readlink.m4: Likewise.
22620         * m4/readutmp.m4: Likewise.
22621         * m4/realloc.m4: Likewise.
22622         * m4/regex.m4: Likewise.
22623         * m4/relocatable.m4: Likewise.
22624         * m4/relocatable-lib.m4: Likewise.
22625         * m4/rename-dest-slash.m4: Likewise.
22626         * m4/rename.m4: Likewise.
22627         * m4/rmdir-errno.m4: Likewise.
22628         * m4/rmdir.m4: Likewise.
22629         * m4/roundf.m4: Likewise.
22630         * m4/roundl.m4: Likewise.
22631         * m4/rpmatch.m4: Likewise.
22632         * m4/save-cwd.m4: Likewise.
22633         * m4/selinux-selinux-h.m4: Likewise.
22634         * m4/setenv.m4: Likewise.
22635         * m4/settime.m4: Likewise.
22636         * m4/sig2str.m4: Likewise.
22637         * m4/sig_atomic_t.m4: Likewise.
22638         * m4/signalblocking.m4: Likewise.
22639         * m4/signbit.m4: Likewise.
22640         * m4/sigpipe.m4: Likewise.
22641         * m4/sockets.m4: Likewise.
22642         * m4/sockpfaf.m4: Likewise.
22643         * m4/st_dm_mode.m4: Likewise.
22644         * m4/stat-time.m4: Likewise.
22645         * m4/stdbool.m4: Likewise.
22646         * m4/stdint.m4: Likewise.
22647         * m4/stdint_h.m4: Likewise.
22648         * m4/stpcpy.m4: Likewise.
22649         * m4/stpncpy.m4: Likewise.
22650         * m4/strcase.m4: Likewise.
22651         * m4/strchrnul.m4: Likewise.
22652         * m4/strcspn.m4: Likewise.
22653         * m4/strdup.m4: Likewise.
22654         * m4/strftime.m4: Likewise.
22655         * m4/strndup.m4: Likewise.
22656         * m4/strnlen.m4: Likewise.
22657         * m4/strpbrk.m4: Likewise.
22658         * m4/strptime.m4: Likewise.
22659         * m4/strsep.m4: Likewise.
22660         * m4/strtod.m4: Likewise.
22661         * m4/strtoimax.m4: Likewise.
22662         * m4/strtok_r.m4: Likewise.
22663         * m4/strtol.m4: Likewise.
22664         * m4/strtoll.m4: Likewise.
22665         * m4/strtoul.m4: Likewise.
22666         * m4/strtoull.m4: Likewise.
22667         * m4/strtoumax.m4: Likewise.
22668         * m4/strverscmp.m4: Likewise.
22669         * m4/threadlib.m4: Likewise.
22670         * m4/timegm.m4: Likewise.
22671         * m4/tm_gmtoff.m4: Likewise.
22672         * m4/tmpdir.m4: Likewise.
22673         * m4/tmpfile.m4: Likewise.
22674         * m4/tzset.m4: Likewise.
22675         * m4/uintmax_t.m4: Likewise.
22676         * m4/unlinkdir.m4: Likewise.
22677         * m4/unlocked-io.m4: Likewise.
22678         * m4/uptime.m4: Likewise.
22679         * m4/userspec.m4: Likewise.
22680         * m4/utimbuf.m4: Likewise.
22681         * m4/utime.m4: Likewise.
22682         * m4/utimes-null.m4: Likewise.
22683         * m4/utimes.m4: Likewise.
22684         * m4/vararrays.m4: Likewise.
22685         * m4/vasnprintf.m4: Likewise.
22686         * m4/vfprintf-posix.m4: Likewise.
22687         * m4/vprintf-posix.m4: Likewise.
22688         * m4/wait-process.m4: Likewise.
22689         * m4/wchar_t.m4: Likewise.
22690         * m4/wint_t.m4: Likewise.
22691         * m4/write-any-file.m4: Likewise.
22692         * m4/yield.m4: Likewise.
22693
22694 2009-01-13  Bruno Haible  <bruno@clisp.org>
22695
22696         Avoid test-copy-file.sh failures when ACL support insufficient.
22697         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22698         TESTS_ENVIRONMENT.
22699         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22700         Reported by Jim Meyering.
22701
22702 2009-01-13  Bruno Haible  <bruno@clisp.org>
22703
22704         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22705         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22706         * modules/unistdio/u8-printf-parse (Files): Likewise.
22707         * modules/unistdio/u32-printf-parse (Files): Likewise.
22708         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22709
22710 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22711
22712         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22713         and m4/inttypes_h.m4 too.
22714
22715 2009-01-12  Eric Blake  <ebb9@byu.net>
22716
22717         tests: IRIX 6.2 cc can't compile -0.0 into .data
22718         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22719         rather than at compile-time.
22720         * tests/test-floorl.c (minus_zero): Likewise.
22721         * tests/test-frexpl.c (minus_zero): Likewise.
22722         * tests/test-isnan.c (minus_zerol): Likewise.
22723         * tests/test-isnanl.h (minus_zero): Likewise.
22724         * tests/test-ldexpl.c (minus_zero): Likewise.
22725         * tests/test-roundl.c (minus_zero): Likewise.
22726         * tests/test-signbit.c (minus_zerol): Likewise.
22727         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22728         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22729         * tests/test-truncl.c (minus_zero): Likewise.
22730         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22731         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22732         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22733
22734 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22735
22736         regex: fix glibc bug 9697
22737         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22738         handling.
22739
22740 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22741
22742         regex: fix glibc bug 697
22743         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22744         being NULL also if there are no backreferences.
22745
22746 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22747
22748         regex: merge glibc changes
22749         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22750         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22751         re_string_skip_chars, re_string_reconstruct): Likewise.
22752         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22753
22754 2009-01-07  Jim Meyering  <meyering@redhat.com>
22755
22756         poll: filter through cppi
22757         * lib/poll.c: Indent cpp directives to reflect nesting.
22758
22759 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22760
22761         poll: don't return uninitialized
22762         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22763
22764 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22765
22766         avoid compile failure on AIX 6.1
22767         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22768         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22769
22770 2009-01-04  Jim Meyering  <meyering@redhat.com>
22771
22772         remove duplicate inclusion of <stdio.h>
22773         * tests/test-fprintf-posix.c: Likewise.
22774         * tests/test-printf-posix.c: Likewise.
22775         * tests/test-snprintf-posix.c: Likewise.
22776         * tests/test-sprintf-posix.c: Likewise.
22777         * tests/test-vasprintf-posix.c: Likewise.
22778         * tests/test-vfprintf-posix.c: Likewise.
22779         * tests/test-vprintf-posix.c: Likewise.
22780         * tests/test-vsnprintf-posix.c: Likewise.
22781         * tests/test-vsprintf-posix.c: Likewise.
22782
22783 2009-01-03  Jim Meyering  <meyering@redhat.com>
22784
22785         gnulib-tool: fix sed-based filtering
22786         * gnulib-tool (func_filter_filelist): Remove extra backslash
22787         in sed_fff_filter definition.
22788
22789 2009-01-02  Jim Meyering  <meyering@redhat.com>
22790
22791         strftime: avoid compilation failure on Solaris 2.6
22792         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22793         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22794         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22795         be available.  Reported by Tom G. Christensen.  Details in
22796         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22797
22798 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22799             Bruno Haible  <bruno@clisp.org>
22800
22801         Speed up gnulib-tool by doing more string processing through shell
22802         built-ins.
22803         * gnulib-tool (fast_func_append): New variable.
22804         (func_remove_prefix, func_remove_suffix): New functions.
22805         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22806         (func_filter_filelist): New function.
22807         (func_get_dependencies): Use func_remove_suffix instead of sed.
22808         (func_get_automake_snippet): Use func_filter_filelist instead of a
22809         subshell and sed invocation.
22810
22811 2009-01-01  Bruno Haible  <bruno@clisp.org>
22812
22813         Fix a security bug.
22814         * gnulib-tool (func_import, import, update): Don't allow the characters
22815         '"', '$', '`', '\' in macro arguments that become part of commands that
22816         are evaluated.
22817
22818 2009-01-01  Bruno Haible  <bruno@clisp.org>
22819
22820         * gnulib-tool (func_reset_sigpipe): Add more comments.
22821
22822 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22823
22824         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22825         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22826         already know the answer.
22827
22828 2009-01-01  Jim Meyering  <meyering@redhat.com>
22829
22830         * lib/version-etc.c (version_etc_va): Update copyright year.
22831
22832 2008-12-30  Bruno Haible  <bruno@clisp.org>
22833
22834         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
22835         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
22836         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
22837
22838 2008-12-29  Eric Blake  <ebb9@byu.net>
22839
22840         multiarch: avoid autoconf AC_REQUIRE bug
22841         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
22842         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
22843         2.63 and older.
22844         Reported by Bruno Haible, and analyzed in
22845         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
22846
22847 2008-12-29  Bruno Haible  <bruno@clisp.org>
22848
22849         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
22850         files in subdirectories correctly.
22851         Reported by Ralf Wildenhues.
22852
22853 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22854
22855         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
22856         rather than 'join FILE -', for Solaris join.
22857
22858 2008-12-29  Bruno Haible  <bruno@clisp.org>
22859
22860         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
22861         quoting.
22862         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22863         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22864         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22865         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
22866         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22867         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22868         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22869         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22870         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22871         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22872         * m4/nls.m4 (AM_NLS): Likewise.
22873         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
22874         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22875         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22876         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22877         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22878         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22879         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
22880         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22881         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22882         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22883         * m4/xsize.m4 (gl_XSIZE): Likewise.
22884         Suggested by Jim Meyering.
22885
22886 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22887
22888         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
22889         * lib/parse-duration.c: use a switch instead of cascading if's.
22890
22891 2008-12-29  Eric Blake  <ebb9@byu.net>
22892
22893         wchar.h: supply WEOF on Irix 5.3
22894         * lib/wchar.in.h (wint_t): Also supply WEOF.
22895         * lib/wctype.in.h (wint_t): Likewise.
22896         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
22897         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
22898         Reported by Tom G. Christensen.
22899
22900 2008-12-26  Bruno Haible  <bruno@clisp.org>
22901
22902         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
22903         i486, i586, i686.
22904
22905 2008-12-26  Bruno Haible  <bruno@clisp.org>
22906
22907         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
22908
22909 2008-12-26  Bruno Haible  <bruno@clisp.org>
22910
22911         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
22912         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
22913         not __STDC_CONSTANT_MACROS.
22914         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
22915
22916 2008-12-25  Bruno Haible  <bruno@clisp.org>
22917
22918         Add support for universal builds to vasnprintf.
22919         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
22920         universal builds, guess no.
22921         * modules/vasnprintf-posix (Depends-on): Add multiarch.
22922         * modules/vasprintf-posix (Depends-on): Likewise.
22923         * modules/fprintf-posix (Depends-on): Likewise.
22924         * modules/vfprintf-posix (Depends-on): Likewise.
22925         * modules/snprintf-posix (Depends-on): Likewise.
22926         * modules/vsnprintf-posix (Depends-on): Likewise.
22927         * modules/sprintf-posix (Depends-on): Likewise.
22928         * modules/vsprintf-posix (Depends-on): Likewise.
22929         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22930         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22931         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22932         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22933         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22934         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22935         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22936
22937         Add support for universal builds to <inttypes.h>.
22938         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
22939         _SCNu64_PREFIX): In Apple
22940         universal builds, define directly, using _LP64.
22941         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
22942         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
22943         * modules/inttypes (Depends-on): Add multiarch.
22944         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22945
22946         Add support for universal builds to <stdint.h>.
22947         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
22948         universal builds, define directly, using _LP64.
22949         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
22950         Apple universal builds, don't test for the size and suffix of ptrdiff_t
22951         and size_t.
22952         * modules/stdint (Depends-on): Add multiarch.
22953         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22954
22955         New module 'multiarch'.
22956         * modules/multiarch: New file.
22957         * m4/multiarch.m4: New file.
22958
22959 2008-12-25  Bruno Haible  <bruno@clisp.org>
22960
22961         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
22962
22963 2008-12-25  Bruno Haible  <bruno@clisp.org>
22964
22965         * modules/btowc (License): Relicense under LGPLv2+.
22966         * modules/mbsinit (License): Likewise.
22967         * modules/mbrtowc (License): Likewise.
22968         * modules/wcrtomb (License): Likewise.
22969         * modules/streq (License): Likewise.
22970         Reported by David Lutterkort <lutter@redhat.com>.
22971
22972 2008-12-23  Bruno Haible  <bruno@clisp.org>
22973
22974         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
22975
22976 2008-12-23  Bruno Haible  <bruno@clisp.org>
22977
22978         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
22979         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
22980         GETADDRINFO_LIB, not in LIBS.
22981         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
22982         * modules/canon-host (Link): Likewise.
22983         * NEWS: Mention the change.
22984         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
22985         GETADDRINFO_LIB.
22986
22987 2008-12-22  Bruno Haible  <bruno@clisp.org>
22988
22989         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
22990         * doc/posix-functions/iswalpha_l.texi: Likewise.
22991         * doc/posix-functions/iswblank_l.texi: Likewise.
22992         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22993         * doc/posix-functions/iswctype_l.texi: Likewise.
22994         * doc/posix-functions/iswdigit_l.texi: Likewise.
22995         * doc/posix-functions/iswgraph_l.texi: Likewise.
22996         * doc/posix-functions/iswlower_l.texi: Likewise.
22997         * doc/posix-functions/iswprint_l.texi: Likewise.
22998         * doc/posix-functions/iswpunct_l.texi: Likewise.
22999         * doc/posix-functions/iswspace_l.texi: Likewise.
23000         * doc/posix-functions/iswupper_l.texi: Likewise.
23001         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23002         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
23003         * doc/posix-functions/open_wmemstream.texi: Likewise.
23004         * doc/posix-functions/swscanf.texi: Likewise.
23005         * doc/posix-functions/towctrans_l.texi: Likewise.
23006         * doc/posix-functions/towlower.texi: Likewise.
23007         * doc/posix-functions/towlower_l.texi: Likewise.
23008         * doc/posix-functions/towupper.texi: Likewise.
23009         * doc/posix-functions/towupper_l.texi: Likewise.
23010         * doc/posix-functions/vfwprintf.texi: Likewise.
23011         * doc/posix-functions/vfwscanf.texi: Likewise.
23012         * doc/posix-functions/vswscanf.texi: Likewise.
23013         * doc/posix-functions/vwprintf.texi: Likewise.
23014         * doc/posix-functions/vwscanf.texi: Likewise.
23015         * doc/posix-functions/wcpcpy.texi: Likewise.
23016         * doc/posix-functions/wcpncpy.texi: Likewise.
23017         * doc/posix-functions/wcscasecmp.texi: Likewise.
23018         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
23019         * doc/posix-functions/wcscoll_l.texi: Likewise.
23020         * doc/posix-functions/wcsdup.texi: Likewise.
23021         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23022         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
23023         * doc/posix-functions/wcsnlen.texi: Likewise.
23024         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23025         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23026         * doc/posix-functions/wctrans_l.texi: Likewise.
23027         * doc/posix-functions/wctype_l.texi: Likewise.
23028         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
23029         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
23030         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
23031         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
23032         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
23033         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
23034         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
23035         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
23036         * doc/glibc-functions/wcschrnul.texi: Likewise.
23037         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23038         * doc/glibc-functions/wcstod_l.texi: Likewise.
23039         * doc/glibc-functions/wcstof_l.texi: Likewise.
23040         * doc/glibc-functions/wcstol_l.texi: Likewise.
23041         * doc/glibc-functions/wcstold_l.texi: Likewise.
23042         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23043         * doc/glibc-functions/wcstoq.texi: Likewise.
23044         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23045         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23046         * doc/glibc-functions/wcstouq.texi: Likewise.
23047         * doc/glibc-functions/wmempcpy.texi: Likewise.
23048
23049 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
23050             Eric Blake  <ebb9@byu.net>
23051             Paolo Bonzini  <bonzini@gnu.org>
23052             Bruno Haible  <bruno@clisp.org>
23053
23054         Make c-stack work on Haiku.
23055         * lib/c-stack.c (SA_ONSTACK): Define fallback.
23056         (c_stack_action): Use SA_ONSTACK flag.
23057
23058 2008-12-22  Bruno Haible  <bruno@clisp.org>
23059
23060         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
23061
23062 2008-12-22  Bruno Haible  <bruno@clisp.org>
23063
23064         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
23065         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
23066         being overridden.
23067         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
23068         New macros.
23069         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
23070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
23071         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
23072         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
23073
23074 2008-12-22  Bruno Haible  <bruno@clisp.org>
23075
23076         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
23077         from test code.
23078
23079 2008-12-22  Eric Blake  <ebb9@byu.net>
23080
23081         Avoid gcc warnings on cygwin.
23082         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23083         Avoid unused variable.
23084         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23085         Likewise.
23086
23087 2008-12-22  Bruno Haible  <bruno@clisp.org>
23088
23089         Remove HAVE_MBRTOWC conditionals.
23090         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
23091         (mbscasecmp): Assume mbrtowc function.
23092         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
23093         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
23094         * lib/mbschr.c: Include mbuiter.h unconditionally.
23095         (mbschr): Assume mbrtowc function.
23096         * lib/mbscspn.c: Include mbuiter.h unconditionally.
23097         (mbscspn): Assume mbrtowc function.
23098         * lib/mbslen.c: Include mbuiter.h unconditionally.
23099         (mbslen): Assume mbrtowc function.
23100         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
23101         (mbsncasecmp): Assume mbrtowc function.
23102         * lib/mbsnlen.c: Include mbiter.h unconditionally.
23103         (mbsnlen): Assume mbrtowc function.
23104         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
23105         (mbspbrk): Assume mbrtowc function.
23106         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
23107         (mbspcasecmp): Assume mbrtowc function.
23108         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
23109         (mbsrchr): Assume mbrtowc function.
23110         * lib/mbssep.c: Include mbuiter.h unconditionally.
23111         (mbssep): Assume mbrtowc function.
23112         * lib/mbsspn.c: Include mbuiter.h unconditionally.
23113         (mbsspn): Assume mbrtowc function.
23114         * lib/mbsstr.c: Include mbuiter.h unconditionally.
23115         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
23116         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
23117         (mbstok_r): Assume mbrtowc function.
23118         * lib/propername.c: Include mbuiter.h unconditionally.
23119         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
23120         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
23121         (trim2): Assume mbrtowc function.
23122         * lib/mbswidth.c (mbsinit): Remove fallback definition.
23123         (mbsnwidth): Assume mbrtowc function.
23124         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
23125         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
23126         fallback definitions.
23127         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
23128
23129 2008-12-22  Bruno Haible  <bruno@clisp.org>
23130
23131         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
23132
23133 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
23134
23135         * modules/regex: Request emulations for the mb*/wc* functions we need.
23136         * m4/regex.m4: Don't look for those functions here.
23137         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
23138
23139 2008-12-22  Bruno Haible  <bruno@clisp.org>
23140
23141         * modules/fnmatch (Depends-on): Remove duplicated dependency.
23142
23143 2008-12-21  Bruno Haible  <bruno@clisp.org>
23144
23145         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
23146         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
23147         (Include): Remove conditionalization.
23148         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
23149         (Include): Remove conditionalization.
23150         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
23151         (Include): Remove conditionalization.
23152         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
23153         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23154         * NEWS: Mention the change.
23155         Reported by Alan Hourihane <alanh@fairlite.co.uk>
23156         via Sergey Poznyakoff <gray@gnu.org.ua>.
23157
23158 2008-12-21  Bruno Haible  <bruno@clisp.org>
23159
23160         * MODULES.html.sh (Extended multibyte and wide character utilities
23161         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
23162         wcrtomb, wcsrtombs.
23163         (Support for systems lacking POSIX:2008): Add accept, bind, close,
23164         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
23165         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
23166         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
23167
23168 2008-12-21  Bruno Haible  <bruno@clisp.org>
23169
23170         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
23171
23172 2008-12-21  Bruno Haible  <bruno@clisp.org>
23173
23174         * modules/wcsnrtombs-tests: New file.
23175         * tests/test-wcsnrtombs1.sh: New file.
23176         * tests/test-wcsnrtombs2.sh: New file.
23177         * tests/test-wcsnrtombs3.sh: New file.
23178         * tests/test-wcsnrtombs4.sh: New file.
23179         * tests/test-wcsnrtombs.c: New file.
23180
23181         New module 'wcsnrtombs'.
23182         * lib/wchar.in.h (wcsnrtombs): New declaration.
23183         * lib/wcsnrtombs.c: New file.
23184         * lib/wcsrtombs-state.c: New file.
23185         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
23186         (internal_state): Remove variable.
23187         * m4/wcsnrtombs.m4: New file.
23188         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
23189         compilation units.
23190         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
23191         HAVE_WCSNRTOMBS.
23192         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
23193         HAVE_WCSNRTOMBS.
23194         * modules/wcsnrtombs: New file.
23195         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
23196         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
23197
23198 2008-12-21  Bruno Haible  <bruno@clisp.org>
23199
23200         * modules/wcsrtombs-tests: New file.
23201         * tests/test-wcsrtombs1.sh: New file.
23202         * tests/test-wcsrtombs2.sh: New file.
23203         * tests/test-wcsrtombs3.sh: New file.
23204         * tests/test-wcsrtombs4.sh: New file.
23205         * tests/test-wcsrtombs.c: New file.
23206
23207         New module 'wcsrtombs'.
23208         * lib/wchar.in.h (wcsrtombs): New declaration.
23209         * lib/wcsrtombs.c: New file.
23210         * m4/wcsrtombs.m4: New file.
23211         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
23212         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23213         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
23214         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23215         * modules/wcsrtombs: New file.
23216         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
23217         bugs.
23218
23219 2008-12-21  Bruno Haible  <bruno@clisp.org>
23220
23221         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
23222         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
23223         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
23224         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
23225         if not correct.
23226         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
23227         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
23228         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23229         m4/locale-zh.m4, m4/codeset.m4.
23230         * doc/posix-functions/wcrtomb.texi: Document the bug.
23231
23232 2008-12-21  Bruno Haible  <bruno@clisp.org>
23233
23234         Work around a btowc() bug on IRIX 6.5.
23235         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
23236         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
23237         REPLACE_WTOBC if not.
23238         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
23239         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
23240         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
23241
23242 2008-12-21  Bruno Haible  <bruno@clisp.org>
23243
23244         * modules/wcrtomb-tests: New file.
23245         * tests/test-wcrtomb.sh: New file.
23246         * tests/test-wcrtomb.c: New file.
23247
23248         New module 'wcrtomb'.
23249         * lib/wchar.in.h (wcrtomb): New declaration.
23250         * lib/wcrtomb.c: New file.
23251         * m4/wcrtomb.m4: New file.
23252         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
23253         HAVE_WCRTOMB.
23254         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
23255         HAVE_WCRTOMB.
23256         * modules/wcrtomb: New file.
23257         * doc/posix-functions/wcrtomb.texi: Mention the new module.
23258
23259 2008-12-21  Bruno Haible  <bruno@clisp.org>
23260
23261         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
23262         * modules/mbsrtowcs (Files): Likewise.
23263         * modules/wctob (Files): Likewise.
23264         * modules/c-strcase-tests (Files): Likewise.
23265         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23266         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23267         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23268         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23269         * modules/vasnprintf-posix-tests (Files): Likewise.
23270
23271 2008-12-21  William Pursell  <bill.pursell@gmail.com>
23272
23273         gitlog-to-changelog: pass all command-line arguments to git-log
23274         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
23275         it is sometimes convenient to filter the commits in various ways.
23276         gitlog-to-changelog only allows --since to specify a start date,
23277         but git-log itself supports many other filtering mechanisms.
23278         At the moment, I want to filter by branch name.  Rather than
23279         adding a --branch option to gitlog-to-changelog, it seems more
23280         flexible to simply pass all options directly to git-log and let
23281         git do the work.  Notice that this effectively makes --since a
23282         redundant option for gitlog-to-changelog, but removing it would
23283         require current usage to change since calls would then require
23284         an additional '--'.
23285
23286 2008-12-21  Bruno Haible  <bruno@clisp.org>
23287
23288         * modules/mbsnrtowcs-tests: New file.
23289         * tests/test-mbsnrtowcs1.sh: New file.
23290         * tests/test-mbsnrtowcs2.sh: New file.
23291         * tests/test-mbsnrtowcs3.sh: New file.
23292         * tests/test-mbsnrtowcs4.sh: New file.
23293         * tests/test-mbsnrtowcs.c: New file.
23294
23295         New module 'mbsnrtowcs'.
23296         * lib/wchar.in.h (mbsnrtowcs): New declaration.
23297         * lib/mbsnrtowcs.c: New file.
23298         * lib/mbsrtowcs-state.c: New file.
23299         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
23300         (internal_state): Remove variable.
23301         * m4/mbsnrtowcs.m4: New file.
23302         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
23303         compilation units.
23304         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
23305         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23306         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
23307         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23308         * modules/mbsnrtowcs: New file.
23309         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
23310         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
23311         portability problem.
23312
23313 2008-12-21  Bruno Haible  <bruno@clisp.org>
23314
23315         Work around mbsrtowcs bug.
23316         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
23317         (gl_FUNC_MBSRTOWCS): Invoke it.
23318         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23319         m4/locale-zh.m4.
23320         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
23321
23322 2008-12-21  Bruno Haible  <bruno@clisp.org>
23323
23324         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
23325
23326 2008-12-21  Bruno Haible  <bruno@clisp.org>
23327
23328         Update doc for AIX.
23329         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
23330         16-bit wchar_t type.
23331         * doc/posix-functions/btowc.texi: Likewise.
23332         * doc/posix-functions/fgetwc.texi: Likewise.
23333         * doc/posix-functions/fgetws.texi: Likewise.
23334         * doc/posix-functions/fputwc.texi: Likewise.
23335         * doc/posix-functions/fputws.texi: Likewise.
23336         * doc/posix-functions/fwide.texi: Likewise.
23337         * doc/posix-functions/fwprintf.texi: Likewise.
23338         * doc/posix-functions/fwscanf.texi: Likewise.
23339         * doc/posix-functions/getwchar.texi: Likewise.
23340         * doc/posix-functions/getwc.texi: Likewise.
23341         * doc/posix-functions/iswalnum.texi: Likewise.
23342         * doc/posix-functions/iswalpha.texi: Likewise.
23343         * doc/posix-functions/iswblank.texi: Likewise.
23344         * doc/posix-functions/iswcntrl.texi: Likewise.
23345         * doc/posix-functions/iswctype.texi: Likewise.
23346         * doc/posix-functions/iswdigit.texi: Likewise.
23347         * doc/posix-functions/iswgraph.texi: Likewise.
23348         * doc/posix-functions/iswlower.texi: Likewise.
23349         * doc/posix-functions/iswprint.texi: Likewise.
23350         * doc/posix-functions/iswpunct.texi: Likewise.
23351         * doc/posix-functions/iswspace.texi: Likewise.
23352         * doc/posix-functions/iswupper.texi: Likewise.
23353         * doc/posix-functions/iswxdigit.texi: Likewise.
23354         * doc/posix-functions/mbrtowc.texi: Likewise.
23355         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23356         * doc/posix-functions/mbstowcs.texi: Likewise.
23357         * doc/posix-functions/mbtowc.texi: Likewise.
23358         * doc/posix-functions/putwchar.texi: Likewise.
23359         * doc/posix-functions/putwc.texi: Likewise.
23360         * doc/posix-functions/swprintf.texi: Likewise.
23361         * doc/posix-functions/tolower.texi: Likewise.
23362         * doc/posix-functions/toupper.texi: Likewise.
23363         * doc/posix-functions/towctrans.texi: Likewise.
23364         * doc/posix-functions/ungetwc.texi: Likewise.
23365         * doc/posix-functions/vswprintf.texi: Likewise.
23366         * doc/posix-functions/wcrtomb.texi: Likewise.
23367         * doc/posix-functions/wcscat.texi: Likewise.
23368         * doc/posix-functions/wcschr.texi: Likewise.
23369         * doc/posix-functions/wcscmp.texi: Likewise.
23370         * doc/posix-functions/wcscoll.texi: Likewise.
23371         * doc/posix-functions/wcscpy.texi: Likewise.
23372         * doc/posix-functions/wcscspn.texi: Likewise.
23373         * doc/posix-functions/wcsftime.texi: Likewise.
23374         * doc/posix-functions/wcslen.texi: Likewise.
23375         * doc/posix-functions/wcsncat.texi: Likewise.
23376         * doc/posix-functions/wcsncmp.texi: Likewise.
23377         * doc/posix-functions/wcsncpy.texi: Likewise.
23378         * doc/posix-functions/wcspbrk.texi: Likewise.
23379         * doc/posix-functions/wcsrchr.texi: Likewise.
23380         * doc/posix-functions/wcsrtombs.texi: Likewise.
23381         * doc/posix-functions/wcsspn.texi: Likewise.
23382         * doc/posix-functions/wcsstr.texi: Likewise.
23383         * doc/posix-functions/wcstod.texi: Likewise.
23384         * doc/posix-functions/wcstof.texi: Likewise.
23385         * doc/posix-functions/wcstoimax.texi: Likewise.
23386         * doc/posix-functions/wcstok.texi: Likewise.
23387         * doc/posix-functions/wcstold.texi: Likewise.
23388         * doc/posix-functions/wcstoll.texi: Likewise.
23389         * doc/posix-functions/wcstol.texi: Likewise.
23390         * doc/posix-functions/wcstombs.texi: Likewise.
23391         * doc/posix-functions/wcstoull.texi: Likewise.
23392         * doc/posix-functions/wcstoul.texi: Likewise.
23393         * doc/posix-functions/wcstoumax.texi: Likewise.
23394         * doc/posix-functions/wcswidth.texi: Likewise.
23395         * doc/posix-functions/wcsxfrm.texi: Likewise.
23396         * doc/posix-functions/wctob.texi: Likewise.
23397         * doc/posix-functions/wctomb.texi: Likewise.
23398         * doc/posix-functions/wctrans.texi: Likewise.
23399         * doc/posix-functions/wctype.texi: Likewise.
23400         * doc/posix-functions/wcwidth.texi: Likewise.
23401         * doc/posix-functions/wmemchr.texi: Likewise.
23402         * doc/posix-functions/wmemcmp.texi: Likewise.
23403         * doc/posix-functions/wmemcpy.texi: Likewise.
23404         * doc/posix-functions/wmemmove.texi: Likewise.
23405         * doc/posix-functions/wmemset.texi: Likewise.
23406         * doc/posix-functions/wprintf.texi: Likewise.
23407         * doc/posix-functions/wscanf.texi: Likewise.
23408
23409 2008-12-21  Bruno Haible  <bruno@clisp.org>
23410
23411         Update doc for HP-UX 11.11.
23412         * doc/posix-functions/btowc.texi: Clarify that the function is missing
23413         in HP-UX version 11.00, not in all versions of HP-UX 11.
23414         * doc/posix-functions/fwide.texi: Likewise.
23415         * doc/posix-functions/fwprintf.texi: Likewise.
23416         * doc/posix-functions/fwscanf.texi: Likewise.
23417         * doc/posix-functions/inet_ntop.texi: Likewise.
23418         * doc/posix-functions/inet_pton.texi: Likewise.
23419         * doc/posix-functions/mbrlen.texi: Likewise.
23420         * doc/posix-functions/mbrtowc.texi: Likewise.
23421         * doc/posix-functions/mbsinit.texi: Likewise.
23422         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23423         * doc/posix-functions/swprintf.texi: Likewise.
23424         * doc/posix-functions/swscanf.texi: Likewise.
23425         * doc/posix-functions/towctrans.texi: Likewise.
23426         * doc/posix-functions/vfwprintf.texi: Likewise.
23427         * doc/posix-functions/vswprintf.texi: Likewise.
23428         * doc/posix-functions/vwprintf.texi: Likewise.
23429         * doc/posix-functions/wcrtomb.texi: Likewise.
23430         * doc/posix-functions/wcsrtombs.texi: Likewise.
23431         * doc/posix-functions/wcsstr.texi: Likewise.
23432         * doc/posix-functions/wctob.texi: Likewise.
23433         * doc/posix-functions/wctrans.texi: Likewise.
23434         * doc/posix-functions/wmemchr.texi: Likewise.
23435         * doc/posix-functions/wmemcmp.texi: Likewise.
23436         * doc/posix-functions/wmemcpy.texi: Likewise.
23437         * doc/posix-functions/wmemmove.texi: Likewise.
23438         * doc/posix-functions/wmemset.texi: Likewise.
23439         * doc/posix-functions/wprintf.texi: Likewise.
23440         * doc/posix-functions/wscanf.texi: Likewise.
23441
23442 2008-12-21  Bruno Haible  <bruno@clisp.org>
23443
23444         Work around a portability problem.
23445         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
23446         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
23447
23448 2008-12-20  Bruno Haible  <bruno@clisp.org>
23449
23450         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
23451         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
23452         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
23453         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
23454         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
23455
23456         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
23457         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
23458         set.
23459         (GNULIB_defined_mbstate_t): New macro.
23460         (mbsinit): Redefine if REPLACE_MBSINIT is set.
23461         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
23462         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
23463         reuses the system's mbrtowc function but works around the bugs.
23464         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
23465         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
23466         macros.
23467         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
23468         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
23469         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
23470         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
23471         REPLACE_MBSINIT if mbsinit needs to be overridden.
23472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
23473         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23474         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
23475         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23476         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23477         m4/locale-zh.m4.
23478         (Depends): Add mbsinit.
23479         * modules/mbsinit (Depends): Add mbrtowc.
23480         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
23481
23482 2008-12-20  Bruno Haible  <bruno@clisp.org>
23483
23484         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
23485         so that there are no conversion errors on AIX.
23486         * tests/test-mbsrtowcs.c (main): LIkewise.
23487
23488 2008-12-20  Bruno Haible  <bruno@clisp.org>
23489
23490         Work around wctob bug on Solaris <= 9.
23491         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
23492         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
23493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
23494         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
23495         * modules/wctob (Files): Add m4/locale-fr.m4.
23496         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
23497
23498 2008-12-20  Bruno Haible  <bruno@clisp.org>
23499
23500         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
23501         /dev/null.
23502         * tests/test-select-in.sh: Likewise.
23503         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23504
23505 2008-12-20  Bruno Haible  <bruno@clisp.org>
23506
23507         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
23508         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
23509         Cygwin 1.5.x.
23510
23511 2008-12-20  Bruno Haible  <bruno@clisp.org>
23512
23513         Ensure mbstate_t is defined on HP-UX 11.11.
23514         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
23515         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
23516         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
23517         AC_USE_SYSTEM_EXTENSIONS.
23518         * modules/fnmatch (Depends-on): Add extensions.
23519         * modules/mbrlen (Depends-on): Likewise.
23520         * modules/mbrtowc (Depends-on): Likewise.
23521         * modules/mbsinit (Depends-on): Likewise.
23522         * modules/mbsrtowcs (Depends-on): Likewise.
23523         * modules/mbswidth (Depends-on): Likewise.
23524         * modules/quotearg (Depends-on): Likewise.
23525         * modules/strftime (Depends-on): Likewise.
23526
23527 2008-12-20  Bruno Haible  <bruno@clisp.org>
23528
23529         Ensure wctob is declared on IRIX 6.5.
23530         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
23531         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
23532         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
23533         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
23534         of HAVE_WCTOB.
23535         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
23536         HAVE_WCTOB.
23537         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
23538
23539 2008-12-19  Bruno Haible  <bruno@clisp.org>
23540
23541         * modules/mbsrtowcs-tests: New file.
23542         * tests/test-mbsrtowcs1.sh: New file.
23543         * tests/test-mbsrtowcs2.sh: New file.
23544         * tests/test-mbsrtowcs3.sh: New file.
23545         * tests/test-mbsrtowcs4.sh: New file.
23546         * tests/test-mbsrtowcs.c: New file.
23547
23548         New module 'mbsrtowcs'.
23549         * lib/wchar.in.h (mbsrtowcs): New declaration.
23550         * lib/mbsrtowcs.c: New file.
23551         * m4/mbsrtowcs.m4: New file.
23552         * modules/mbsrtowcs: New file.
23553         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
23554         HAVE_MBSRTOWCS.
23555         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
23556         HAVE_MBSRTOWCS.
23557         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
23558
23559 2008-12-19  Bruno Haible  <bruno@clisp.org>
23560
23561         New module 'mbrlen'.
23562         * lib/wchar.in.h (mbrlen): New declaration.
23563         * lib/mbrlen.c: New file.
23564         * m4/mbrlen.m4: New file.
23565         * modules/mbrlen: New file.
23566         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23567         HAVE_MBRLEN.
23568         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
23569         HAVE_MBRLEN.
23570         * doc/posix-functions/mbrlen.texi: Document the new module.
23571
23572 2008-12-19  Bruno Haible  <bruno@clisp.org>
23573
23574         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
23575         * modules/mbrtowc (Depends-on): Add verify.
23576         Suggested by Paul Eggert.
23577
23578 2008-12-18  Bruno Haible  <bruno@clisp.org>
23579
23580         * modules/mbsinit-tests: New file.
23581         * tests/test-mbsinit.sh: New file.
23582         * tests/test-mbsinit.c: New file.
23583
23584 2008-12-18  Bruno Haible  <bruno@clisp.org>
23585
23586         * modules/mbrtowc-tests: New file.
23587         * tests/test-mbrtowc1.sh: New file.
23588         * tests/test-mbrtowc2.sh: New file.
23589         * tests/test-mbrtowc3.sh: New file.
23590         * tests/test-mbrtowc4.sh: New file.
23591         * tests/test-mbrtowc.c: New file.
23592
23593         New module 'mbrtowc'.
23594         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23595         mbsinit and mbrtowc.
23596         (mbrtowc): New declaration.
23597         * lib/mbrtowc.c: New file.
23598         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23599         * modules/mbrtowc: New file.
23600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23601         HAVE_MBRTOWC.
23602         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23603         HAVE_MBRTOWC.
23604         * doc/posix-functions/mbrtowc.texi: Document the new module.
23605
23606 2008-12-18  Bruno Haible  <bruno@clisp.org>
23607
23608         New module 'wctob'.
23609         * lib/wchar.in.h (wctob): New declaration.
23610         * lib/wctob.c: New file.
23611         * m4/wctob.m4: New file.
23612         * modules/wctob: New file.
23613         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23614         HAVE_WCTOB.
23615         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23616         * doc/posix-functions/wctob.texi: Document the new module.
23617
23618 2008-12-18  Bruno Haible  <bruno@clisp.org>
23619
23620         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23621         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23622
23623 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23624
23625         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23626         G. Christensen" <tgc@jupiterrise.com>.
23627
23628         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23629         G. Christensen" <tgc@jupiterrise.com>.
23630
23631         * lib/flock.c: Need to include string.h.  Reported by "Tom
23632         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23633         <ebb9@byu.net>.
23634
23635 2008-12-18  Bruno Haible  <bruno@clisp.org>
23636
23637         * m4/locale-ja.m4: New file, from GNU gettext.
23638
23639 2008-12-17  Bruno Haible  <bruno@clisp.org>
23640
23641         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23642         Suggested by Eric Blake.
23643
23644 2008-12-17  Bruno Haible  <bruno@clisp.org>
23645
23646         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23647
23648 2008-12-17  Bruno Haible  <bruno@clisp.org>
23649
23650         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23651         * modules/mbsinit (Depends-on): Add verify.
23652         Suggested by Paul Eggert.
23653
23654 2008-12-17  Bruno Haible  <bruno@clisp.org>
23655
23656         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23657         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23658         gl_FUNC_MBRTOWC.
23659         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23660         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23661         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23662         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23663         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23664         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23665         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23666         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23667         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23668         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23669         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23670         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23671         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23672         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23673         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23674         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23675         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23676         * modules/trim (configure.ac): Likewise.
23677
23678 2008-12-17  Bruno Haible  <bruno@clisp.org>
23679
23680         * modules/btowc-tests: New file.
23681         * tests/test-btowc1.sh: New file.
23682         * tests/test-btowc2.sh: New file.
23683         * tests/test-btowc.c: New file.
23684
23685         New module 'btowc'.
23686         * lib/wchar.in.h (btowc): New declaration.
23687         * lib/btowc.c: New file.
23688         * m4/btowc.m4: New file.
23689         * modules/btowc: New file.
23690         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23691         HAVE_BTOWC.
23692         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23693         * doc/posix-functions/btowc.texi: Document the new module.
23694
23695 2008-12-17  Bruno Haible  <bruno@clisp.org>
23696
23697         New module 'mbsinit'.
23698         * lib/wchar.in.h (mbsinit): New declaration.
23699         * lib/mbsinit.c: New file.
23700         * m4/mbsinit.m4: New file.
23701         * modules/mbsinit: New file.
23702         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23703         HAVE_MBSINIT.
23704         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23705         HAVE_MBSINIT.
23706         * doc/posix-functions/mbsinit.texi: Document the new module.
23707
23708 2008-12-16  Bruno Haible  <bruno@clisp.org>
23709
23710         * lib/unistd.in.h: Add comment.
23711         * tests/test-environ.c: Don't include <stdlib.h>.
23712
23713 2008-12-16  Bruno Haible  <bruno@clisp.org>
23714
23715         * lib/parse-duration.h (parse_duration): Document return value
23716         convention.
23717         * lib/parse-duration.c: Include specification header first. Add
23718         comments.
23719         (_): Remove macro.
23720         (parse_year_month_day, parse_hour_minute_second): Move side effects
23721         outside of strchr call.
23722         (parse_non_iso8601): Move side effects outside of isspace call.
23723         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23724         call.
23725
23726 2008-12-16  Bruno Haible  <bruno@clisp.org>
23727
23728         * tests/test-parse-duration.sh: Produce no output when the test
23729         succeeds.
23730
23731 2008-12-16  Bruno Haible  <bruno@clisp.org>
23732
23733         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23734         expressions.
23735
23736 2008-12-15  Bruno Haible  <bruno@clisp.org>
23737
23738         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23739         * doc/glibc-functions/flistxattr.texi: Likewise.
23740         * doc/glibc-functions/fopencookie.texi: Likewise.
23741         * doc/glibc-functions/fremovexattr.texi: Likewise.
23742         * doc/glibc-functions/fsetxattr.texi: Likewise.
23743         * doc/glibc-functions/getxattr.texi: Likewise.
23744         * doc/glibc-functions/lgetxattr.texi: Likewise.
23745         * doc/glibc-functions/listxattr.texi: Likewise.
23746         * doc/glibc-functions/llistxattr.texi: Likewise.
23747         * doc/glibc-functions/lremovexattr.texi: Likewise.
23748         * doc/glibc-functions/lsetxattr.texi: Likewise.
23749         * doc/glibc-functions/removexattr.texi: Likewise.
23750         * doc/glibc-functions/setxattr.texi: Likewise.
23751         * doc/posix-functions/open_memstream.texi: Likewise.
23752
23753 2008-12-15  Eric Blake  <ebb9@byu.net>
23754
23755         Update doc for cygwin 1.7.
23756         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23757         functions.
23758         * doc/posix-functions/fchmodat.texi: Likewise.
23759         * doc/posix-functions/fchownat.texi: Likewise.
23760         * doc/posix-functions/fdopendir.texi: Likewise.
23761         * doc/posix-functions/fmemopen.texi: Likewise.
23762         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23763         * doc/posix-functions/fstatat.texi: Likewise.
23764         * doc/posix-functions/futimens.texi: Likewise.
23765         * doc/posix-functions/gai_strerror.texi: Likewise.
23766         * doc/posix-functions/getaddrinfo.texi: Likewise.
23767         * doc/posix-functions/getnameinfo.texi: Likewise.
23768         * doc/posix-functions/if_freenameindex.texi: Likewise.
23769         * doc/posix-functions/if_indextoname.texi: Likewise.
23770         * doc/posix-functions/if_nameindex.texi: Likewise.
23771         * doc/posix-functions/if_nametoindex.texi: Likewise.
23772         * doc/posix-functions/insque.texi: Likewise.
23773         * doc/posix-functions/linkat.texi: Likewise.
23774         * doc/posix-functions/llrint.texi: Likewise.
23775         * doc/posix-functions/llrintf.texi: Likewise.
23776         * doc/posix-functions/llrintl.texi: Likewise.
23777         * doc/posix-functions/lockf.texi: Likewise.
23778         * doc/posix-functions/lrintl.texi: Likewise.
23779         * doc/posix-functions/mkdirat.texi: Likewise.
23780         * doc/posix-functions/mkfifoat.texi: Likewise.
23781         * doc/posix-functions/mknodat.texi: Likewise.
23782         * doc/posix-functions/mq_close.texi: Likewise.
23783         * doc/posix-functions/mq_getattr.texi: Likewise.
23784         * doc/posix-functions/mq_notify.texi: Likewise.
23785         * doc/posix-functions/mq_open.texi: Likewise.
23786         * doc/posix-functions/mq_receive.texi: Likewise.
23787         * doc/posix-functions/mq_send.texi: Likewise.
23788         * doc/posix-functions/mq_setattr.texi: Likewise.
23789         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23790         * doc/posix-functions/mq_timedsend.texi: Likewise.
23791         * doc/posix-functions/mq_unlink.texi: Likewise.
23792         * doc/posix-functions/open_memstream.texi: Likewise.
23793         * doc/posix-functions/openat.texi: Likewise.
23794         * doc/posix-functions/posix_fadvise.texi: Likewise.
23795         * doc/posix-functions/posix_fallocate.texi: Likewise.
23796         * doc/posix-functions/posix_madvise.texi: Likewise.
23797         * doc/posix-functions/posix_memalign.texi: Likewise.
23798         * doc/posix-functions/posix_openpt.texi: Likewise.
23799         * doc/posix-functions/readlinkat.texi: Likewise.
23800         * doc/posix-functions/remque.texi: Likewise.
23801         * doc/posix-functions/renameat.texi: Likewise.
23802         * doc/posix-functions/rintl.texi: Likewise.
23803         * doc/posix-functions/sem_unlink.texi: Likewise.
23804         * doc/posix-functions/shm_open.texi: Likewise.
23805         * doc/posix-functions/shm_unlink.texi: Likewise.
23806         * doc/posix-functions/signgam.texi: Likewise.
23807         * doc/posix-functions/sigset.texi: Likewise.
23808         * doc/posix-functions/stpcpy.texi: Likewise.
23809         * doc/posix-functions/stpncpy.texi: Likewise.
23810         * doc/posix-functions/strerror.texi: Likewise.
23811         * doc/posix-functions/strtod.texi: Likewise.
23812         * doc/posix-functions/symlinkat.texi: Likewise.
23813         * doc/posix-functions/unlinkat.texi: Likewise.
23814         * doc/posix-functions/utimensat.texi: Likewise.
23815         * doc/glibc-functions/bindresvport.texi: Likewise.
23816         * doc/glibc-functions/dn_expand.texi: Likewise.
23817         * doc/glibc-functions/exp10.texi: Likewise.
23818         * doc/glibc-functions/exp10f.texi: Likewise.
23819         * doc/glibc-functions/fgetxattr.texi: Likewise.
23820         * doc/glibc-functions/flistxattr.texi: Likewise.
23821         * doc/glibc-functions/fopencookie.texi: Likewise.
23822         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23823         * doc/glibc-functions/fremovexattr.texi: Likewise.
23824         * doc/glibc-functions/fsetxattr.texi: Likewise.
23825         * doc/glibc-functions/getifaddrs.texi: Likewise.
23826         * doc/glibc-functions/getxattr.texi: Likewise.
23827         * doc/glibc-functions/lgetxattr.texi: Likewise.
23828         * doc/glibc-functions/listxattr.texi: Likewise.
23829         * doc/glibc-functions/llistxattr.texi: Likewise.
23830         * doc/glibc-functions/lremovexattr.texi: Likewise.
23831         * doc/glibc-functions/lsetxattr.texi: Likewise.
23832         * doc/glibc-functions/pow10.texi: Likewise.
23833         * doc/glibc-functions/pow10f.texi: Likewise.
23834         * doc/glibc-functions/rcmd_af.texi: Likewise.
23835         * doc/glibc-functions/removexattr.texi: Likewise.
23836         * doc/glibc-functions/res_init.texi: Likewise.
23837         * doc/glibc-functions/res_mkquery.texi: Likewise.
23838         * doc/glibc-functions/res_query.texi: Likewise.
23839         * doc/glibc-functions/res_querydomain.texi: Likewise.
23840         * doc/glibc-functions/res_send.texi: Likewise.
23841         * doc/glibc-functions/rresvport_af.texi: Likewise.
23842         * doc/glibc-functions/setxattr.texi: Likewise.
23843         * doc/glibc-functions/strcasestr.texi: Likewise.
23844
23845 2008-12-15  Bruno Haible  <bruno@clisp.org>
23846
23847         Fix compilation error on OSF/1 4.0.
23848         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
23849         <sys/time.h>, simply delegate to the system header.
23850         Reported by Daniel Richard G. <oss@teragram.com>.
23851
23852 2008-12-15  Bruno Haible  <bruno@clisp.org>
23853
23854         * doc/posix-functions/openat.texi: Mention the 'openat' module.
23855         * doc/posix-functions/fchmodat.texi: Likewise.
23856         * doc/posix-functions/fchownat.texi: Likewise.
23857         * doc/posix-functions/fdopendir.texi: Likewise.
23858         * doc/posix-functions/fstatat.texi: Likewise.
23859         * doc/posix-functions/mkdirat.texi: Likewise.
23860         * doc/posix-functions/unlinkat.texi: Likewise.
23861
23862 2008-12-14  Bruno Haible  <bruno@clisp.org>
23863
23864         Update doc for POSIX:2008.
23865         * doc/posix-functions/faccessat.texi: New file.
23866         * doc/posix-functions/fchmodat.texi: New file.
23867         * doc/posix-functions/fchownat.texi: New file.
23868         * doc/posix-functions/fdopendir.texi: New file.
23869         * doc/posix-functions/fstatat.texi: New file.
23870         * doc/posix-functions/futimens.texi: New file.
23871         * doc/posix-functions/linkat.texi: New file.
23872         * doc/posix-functions/mkdirat.texi: New file.
23873         * doc/posix-functions/mkfifoat.texi: New file.
23874         * doc/posix-functions/mknodat.texi: New file.
23875         * doc/posix-functions/open_wmemstream.texi: New file.
23876         * doc/posix-functions/openat.texi: New file.
23877         * doc/posix-functions/psiginfo.texi: New file.
23878         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
23879         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
23880         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
23881         * doc/posix-functions/readlinkat.texi: New file.
23882         * doc/posix-functions/renameat.texi: New file.
23883         * doc/posix-functions/strerror_l.texi: New file.
23884         * doc/posix-functions/symlinkat.texi: New file.
23885         * doc/posix-functions/unlinkat.texi: New file.
23886         * doc/posix-functions/utimensat.texi: New file.
23887         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23888
23889 2008-12-14  Bruno Haible  <bruno@clisp.org>
23890
23891         Update doc for POSIX:2008.
23892         * doc/posix-functions/alphasort.texi: Renamed from
23893         doc/glibc-functions/alphasort.texi.
23894         * doc/posix-functions/dirfd.texi: Renamed from
23895         doc/glibc-functions/dirfd.texi.
23896         * doc/posix-functions/dprintf.texi: Renamed from
23897         doc/glibc-functions/dprintf.texi.
23898         * doc/posix-functions/duplocale.texi: Renamed from
23899         doc/glibc-functions/duplocale.texi.
23900         * doc/posix-functions/fexecve.texi: Renamed from
23901         doc/glibc-functions/fexecve.texi.
23902         * doc/posix-functions/fmemopen.texi: Renamed from
23903         doc/glibc-functions/fmemopen.texi.
23904         * doc/posix-functions/freelocale.texi: Renamed from
23905         doc/glibc-functions/freelocale.texi.
23906         * doc/posix-functions/getdate_err.texi: Renamed from
23907         doc/glibc-functions/getdate_err.texi.
23908         * doc/posix-functions/isalnum_l.texi: Renamed from
23909         doc/glibc-functions/isalnum_l.texi.
23910         * doc/posix-functions/isalpha_l.texi: Renamed from
23911         doc/glibc-functions/isalpha_l.texi.
23912         * doc/posix-functions/isblank_l.texi: Renamed from
23913         doc/glibc-functions/isblank_l.texi.
23914         * doc/posix-functions/iscntrl_l.texi: Renamed from
23915         doc/glibc-functions/iscntrl_l.texi.
23916         * doc/posix-functions/isdigit_l.texi: Renamed from
23917         doc/glibc-functions/isdigit_l.texi.
23918         * doc/posix-functions/isgraph_l.texi: Renamed from
23919         doc/glibc-functions/isgraph_l.texi.
23920         * doc/posix-functions/islower_l.texi: Renamed from
23921         doc/glibc-functions/islower_l.texi.
23922         * doc/posix-functions/isprint_l.texi: Renamed from
23923         doc/glibc-functions/isprint_l.texi.
23924         * doc/posix-functions/ispunct_l.texi: Renamed from
23925         doc/glibc-functions/ispunct_l.texi.
23926         * doc/posix-functions/isspace_l.texi: Renamed from
23927         doc/glibc-functions/isspace_l.texi.
23928         * doc/posix-functions/isupper_l.texi: Renamed from
23929         doc/glibc-functions/isupper_l.texi.
23930         * doc/posix-functions/iswalnum_l.texi: Renamed from
23931         doc/glibc-functions/iswalnum_l.texi.
23932         * doc/posix-functions/iswalpha_l.texi: Renamed from
23933         doc/glibc-functions/iswalpha_l.texi.
23934         * doc/posix-functions/iswblank_l.texi: Renamed from
23935         doc/glibc-functions/iswblank_l.texi.
23936         * doc/posix-functions/iswcntrl_l.texi: Renamed from
23937         doc/glibc-functions/iswcntrl_l.texi.
23938         * doc/posix-functions/iswctype_l.texi: Renamed from
23939         doc/glibc-functions/iswctype_l.texi.
23940         * doc/posix-functions/iswdigit_l.texi: Renamed from
23941         doc/glibc-functions/iswdigit_l.texi.
23942         * doc/posix-functions/iswgraph_l.texi: Renamed from
23943         doc/glibc-functions/iswgraph_l.texi.
23944         * doc/posix-functions/iswlower_l.texi: Renamed from
23945         doc/glibc-functions/iswlower_l.texi.
23946         * doc/posix-functions/iswprint_l.texi: Renamed from
23947         doc/glibc-functions/iswprint_l.texi.
23948         * doc/posix-functions/iswpunct_l.texi: Renamed from
23949         doc/glibc-functions/iswpunct_l.texi.
23950         * doc/posix-functions/iswspace_l.texi: Renamed from
23951         doc/glibc-functions/iswspace_l.texi.
23952         * doc/posix-functions/iswupper_l.texi: Renamed from
23953         doc/glibc-functions/iswupper_l.texi.
23954         * doc/posix-functions/iswxdigit_l.texi: Renamed from
23955         doc/glibc-functions/iswxdigit_l.texi.
23956         * doc/posix-functions/isxdigit_l.texi: Renamed from
23957         doc/glibc-functions/isxdigit_l.texi.
23958         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
23959         doc/glibc-functions/mbsnrtowcs.texi.
23960         * doc/posix-functions/mkdtemp.texi: Renamed from
23961         doc/glibc-functions/mkdtemp.texi.
23962         * doc/posix-functions/newlocale.texi: Renamed from
23963         doc/glibc-functions/newlocale.texi.
23964         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
23965         doc/glibc-functions/nl_langinfo_l.texi.
23966         * doc/posix-functions/open_memstream.texi: Renamed from
23967         doc/glibc-functions/open_memstream.texi.
23968         * doc/posix-functions/opterr.texi: Renamed from
23969         doc/glibc-functions/opterr.texi.
23970         * doc/posix-functions/optind.texi: Renamed from
23971         doc/glibc-functions/optind.texi.
23972         * doc/posix-functions/optopt.texi: Renamed from
23973         doc/glibc-functions/optopt.texi.
23974         * doc/posix-functions/psignal.texi: Renamed from
23975         doc/glibc-functions/psignal.texi.
23976         * doc/posix-functions/scandir.texi: Renamed from
23977         doc/glibc-functions/scandir.texi.
23978         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
23979         doc/glibc-functions/sched_get_priority_min.texi.
23980         * doc/posix-functions/signgam.texi: Renamed from
23981         doc/glibc-functions/signgam.texi.
23982         * doc/posix-functions/stpcpy.texi: Renamed from
23983         doc/glibc-functions/stpcpy.texi.
23984         * doc/posix-functions/stpncpy.texi: Renamed from
23985         doc/glibc-functions/stpncpy.texi.
23986         * doc/posix-functions/strcasecmp_l.texi: Renamed from
23987         doc/glibc-functions/strcasecmp_l.texi.
23988         * doc/posix-functions/strcoll_l.texi: Renamed from
23989         doc/glibc-functions/strcoll_l.texi.
23990         * doc/posix-functions/strfmon_l.texi: Renamed from
23991         doc/glibc-functions/strfmon_l.texi.
23992         * doc/posix-functions/strftime_l.texi: Renamed from
23993         doc/glibc-functions/strftime_l.texi.
23994         * doc/posix-functions/strncasecmp_l.texi: Renamed from
23995         doc/glibc-functions/strncasecmp_l.texi.
23996         * doc/posix-functions/strndup.texi: Renamed from
23997         doc/glibc-functions/strndup.texi.
23998         * doc/posix-functions/strnlen.texi: Renamed from
23999         doc/glibc-functions/strnlen.texi.
24000         * doc/posix-functions/strsignal.texi: Renamed from
24001         doc/glibc-functions/strsignal.texi.
24002         * doc/posix-functions/strxfrm_l.texi: Renamed from
24003         doc/glibc-functions/strxfrm_l.texi.
24004         * doc/posix-functions/timer_gettime.texi: Renamed from
24005         doc/glibc-functions/timer_gettime.texi.
24006         * doc/posix-functions/tolower_l.texi: Renamed from
24007         doc/glibc-functions/tolower_l.texi.
24008         * doc/posix-functions/toupper_l.texi: Renamed from
24009         doc/glibc-functions/toupper_l.texi.
24010         * doc/posix-functions/towctrans_l.texi: Renamed from
24011         doc/glibc-functions/towctrans_l.texi.
24012         * doc/posix-functions/towlower_l.texi: Renamed from
24013         doc/glibc-functions/towlower_l.texi.
24014         * doc/posix-functions/towupper_l.texi: Renamed from
24015         doc/glibc-functions/towupper_l.texi.
24016         * doc/posix-functions/uselocale.texi: Renamed from
24017         doc/glibc-functions/uselocale.texi.
24018         * doc/posix-functions/vdprintf.texi: Renamed from
24019         doc/glibc-functions/vdprintf.texi.
24020         * doc/posix-functions/wcpcpy.texi:
24021         Renamed from doc/glibc-functions/wcpcpy.texi.
24022         * doc/posix-functions/wcpncpy.texi: Renamed from
24023         doc/glibc-functions/wcpncpy.texi.
24024         * doc/posix-functions/wcscasecmp.texi: Renamed from
24025         doc/glibc-functions/wcscasecmp.texi.
24026         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
24027         doc/glibc-functions/wcscasecmp_l.texi.
24028         * doc/posix-functions/wcscoll_l.texi: Renamed from
24029         doc/glibc-functions/wcscoll_l.texi.
24030         * doc/posix-functions/wcsdup.texi: Renamed from
24031         doc/glibc-functions/wcsdup.texi.
24032         * doc/posix-functions/wcsncasecmp.texi: Renamed from
24033         doc/glibc-functions/wcsncasecmp.texi.
24034         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
24035         doc/glibc-functions/wcsncasecmp_l.texi.
24036         * doc/posix-functions/wcsnlen.texi: Renamed from
24037         doc/glibc-functions/wcsnlen.texi.
24038         * doc/posix-functions/wcsnrtombs.texi: Renamed from
24039         doc/glibc-functions/wcsnrtombs.texi.
24040         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
24041         doc/glibc-functions/wcsxfrm_l.texi.
24042         * doc/posix-functions/wctrans_l.texi: Renamed from
24043         doc/glibc-functions/wctrans_l.texi.
24044         * doc/posix-functions/wctype_l.texi: Renamed from
24045         doc/glibc-functions/wctype_l.texi.
24046         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24047         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
24048         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
24049         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
24050         these subsections.
24051         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
24052         Remove sections.
24053
24054 2008-12-14  Bruno Haible  <bruno@clisp.org>
24055
24056         Update doc for POSIX:2008.
24057         * doc/posix-functions/*.texi: Update URL of POSIX specification.
24058
24059 2008-12-14  Bruno Haible  <bruno@clisp.org>
24060
24061         Update doc for POSIX:2008.
24062         * doc/pastposix-functions/bcmp.texi: Renamed from
24063         doc/posix-functions/bcmp.texi.
24064         * doc/pastposix-functions/bcopy.texi: Renamed from
24065         doc/posix-functions/bcopy.texi.
24066         * doc/pastposix-functions/bsd_signal.texi: Renamed from
24067         doc/posix-functions/bsd_signal.texi.
24068         * doc/pastposix-functions/bzero.texi: Renamed from
24069         doc/posix-functions/bzero.texi.
24070         * doc/pastposix-functions/ecvt.texi: Renamed from
24071         doc/posix-functions/ecvt.texi.
24072         * doc/pastposix-functions/fcvt.texi: Renamed from
24073         doc/posix-functions/fcvt.texi.
24074         * doc/pastposix-functions/ftime.texi: Renamed from
24075         doc/posix-functions/ftime.texi.
24076         * doc/pastposix-functions/gcvt.texi: Renamed from
24077         doc/posix-functions/gcvt.texi.
24078         * doc/pastposix-functions/getcontext.texi: Renamed from
24079         doc/posix-functions/getcontext.texi.
24080         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
24081         doc/posix-functions/gethostbyaddr.texi.
24082         * doc/pastposix-functions/gethostbyname.texi: Renamed from
24083         doc/posix-functions/gethostbyname.texi.
24084         * doc/pastposix-functions/getwd.texi: Renamed from
24085         doc/posix-functions/getwd.texi.
24086         * doc/pastposix-functions/h_errno.texi: Renamed from
24087         doc/posix-functions/h_errno.texi.
24088         * doc/pastposix-functions/index.texi: Renamed from
24089         doc/posix-functions/index.texi.
24090         * doc/pastposix-functions/makecontext.texi: Renamed from
24091         doc/posix-functions/makecontext.texi.
24092         * doc/pastposix-functions/mktemp.texi: Renamed from
24093         doc/posix-functions/mktemp.texi.
24094         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
24095         doc/posix-functions/pthread_attr_getstackaddr.texi.
24096         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
24097         doc/posix-functions/pthread_attr_setstackaddr.texi.
24098         * doc/pastposix-functions/rindex.texi: Renamed from
24099         doc/posix-functions/rindex.texi.
24100         * doc/pastposix-functions/scalb.texi: Renamed from
24101         doc/posix-functions/scalb.texi.
24102         * doc/pastposix-functions/setcontext.texi: Renamed from
24103         doc/posix-functions/setcontext.texi.
24104         * doc/pastposix-functions/swapcontext.texi: Renamed from
24105         doc/posix-functions/swapcontext.texi.
24106         * doc/pastposix-functions/ualarm.texi: Renamed from
24107         doc/posix-functions/ualarm.texi.
24108         * doc/pastposix-functions/usleep.texi: Renamed from
24109         doc/posix-functions/usleep.texi.
24110         * doc/pastposix-functions/vfork.texi: Renamed from
24111         doc/posix-functions/vfork.texi.
24112         * doc/pastposix-functions/wcswcs.texi: Renamed from
24113         doc/posix-functions/wcswcs.texi.
24114         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
24115         (Function Substitutes): Update.
24116
24117 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24118
24119         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
24120         m4/strerror.m4.
24121
24122 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24123             Bruno Haible  <bruno@clisp.org>
24124
24125         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
24126
24127 2008-12-13  Bruno Haible  <bruno@clisp.org>
24128
24129         * modules/strtoull (Depends-on): Remove unistd.
24130
24131 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24132
24133         * modules/strtoull (Depends-on): Add stdlib.
24134
24135 2008-12-11  Simon Josefsson  <simon@josefsson.org>
24136
24137         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
24138
24139 2008-12-10  Jim Meyering  <meyering@redhat.com>
24140
24141         gl_ASSERT: don't say assertions are disabled when they're not
24142         * m4/assert.m4 (gl_ASSERT): Do not make configure report
24143         "checking whether to enable assertions... no", when they are in
24144         fact enabled.  This is solely a bug in the output of configure.
24145         In spite of saying "no", NDEBUG was not defined in that case.
24146         Also, as noted by Eric Blake, leave assertions enabled upon
24147         --enable-assert=INVALID.
24148
24149 2008-12-10  Bruno Haible  <bruno@clisp.org>
24150
24151         Change MODULES.html to refer to POSIX:2008 where possible.
24152         * MODULES.html.sh (POSIX2008_URL): New variable.
24153         (posix_headers): Remove sys/timeb, ucontext.
24154         (posix2001_headers): New variable.
24155         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
24156         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
24157         index, makecontext, mktemp, pthread_attr_getstackaddr,
24158         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
24159         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
24160         (posix2001_functions): New variable.
24161         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
24162         otherwise.
24163
24164 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24165
24166         add missing include to parse-duration.c
24167         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
24168         * modules/parse-duration (Depends-on): Add xalloc.
24169
24170         fix sed script reading maint.mk
24171         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
24172         (syntax-check-rules): Use it.
24173
24174 2008-12-09  Bruno Haible  <bruno@clisp.org>
24175
24176         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
24177         MacOS X 10.4/PowerPC.
24178         Reported by Simon Josefsson.
24179
24180 2008-12-08  Jim Meyering  <meyering@redhat.com>
24181
24182         work around mingw's lack of some S_IF definitions
24183         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
24184         Reported by Simon Josefsson.
24185
24186 2008-12-08  Bruno Haible  <bruno@clisp.org>
24187
24188         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
24189         applied to variables. Needed on MacOS X 10.4/PowerPC.
24190         Reported by Simon Josefsson.
24191
24192 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
24193         and Eric Blake  <ebb9@byu.net>
24194
24195         assert: honor --enable-assert
24196         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
24197         order to honor --enable-assert, rather than treating it as a
24198         synonym for --disable-assert.
24199
24200 2008-12-08  Jim Meyering  <meyering@redhat.com>
24201
24202         * lib/posixtm.c: Remove now-useless declaration of mktime.
24203
24204         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
24205
24206 2008-12-07  Bruno Haible  <bruno@clisp.org>
24207
24208         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
24209         test_once): Mark functions as static.
24210         * tests/test-tls.c (test_tls): Likewise.
24211
24212 2008-12-07  Bruno Haible  <bruno@clisp.org>
24213
24214         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
24215         iconv_register_autodetect.
24216
24217 2008-12-07  Jim Meyering  <meyering@redhat.com>
24218
24219         posixtm.c: avoid a warning
24220         * lib/posixtm.c (posixtime): Don't initialize tm0.
24221         It's no longer needed to placate gcc4's -Wuninitialized,
24222         and the attempt to placate would elicit a new warning.
24223
24224         unicodeio.c: mark unused parameters
24225         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24226         (fallback_failure_callback): Likewise.
24227
24228 2008-12-07  Bruno Haible  <bruno@clisp.org>
24229
24230         * gnulib-tool (func_create_testdir): When building the tests
24231         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
24232         Reported by Simon Josefsson.
24233
24234 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24235
24236         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
24237
24238 2008-12-06  Bruno Haible  <bruno@clisp.org>
24239
24240         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
24241         Suggested by Eric Blake.
24242
24243 2008-12-06  Bruno Haible  <bruno@clisp.org>
24244
24245         Fix a c-stack test failure on MacOS X.
24246         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
24247         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
24248         handler for SIGBUS as well.
24249         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
24250         install a signal handler for SIGBUS as well.
24251         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
24252
24253 2008-12-06  Bruno Haible  <bruno@clisp.org>
24254
24255         Advocacy documentation.
24256         * doc/gnulib-intro.texi (Benefits): New section.
24257         * doc/gnulib.texi: Update.
24258
24259 2008-12-06  Bruno Haible  <bruno@clisp.org>
24260
24261         Document the 'manywarnings' module.
24262         * doc/manywarnings.texi: New file.
24263         * doc/gnulib.texi: Include it.
24264
24265 2008-12-05  Eric Blake  <ebb9@byu.net>
24266
24267         tests: silence some gcc warnings
24268         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
24269         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
24270         type mismatches.
24271
24272 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24273             Bruno Haible  <bruno@clisp.org>
24274
24275         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
24276
24277 2008-11-29  Jim Meyering  <meyering@redhat.com>
24278
24279         unicodeio.c: mark unused parameters
24280         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24281         (fallback_failure_callback): Likewise.
24282
24283         fts: fix a thinko
24284         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
24285         (set_stat_type): Return S_IF*-valued "type" directly.
24286         Prompted by James Youngman's spotting a related bug.
24287         Confirmed by further testing through find.
24288
24289         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
24290         * lib/fts.c (D_TYPE): Define.
24291         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
24292         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
24293         (s_ifmt_shift_bits): New function.
24294         (set_stat_type): New function.
24295         (fts_build): When not calling fts_stat, call set_stat_type
24296         to propagate dirent.d_type info to fts_read caller.
24297         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
24298         fts_statp->st_mode type information may be valid.
24299
24300 2008-11-28  Simon Josefsson  <simon@josefsson.org>
24301
24302         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
24303         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
24304         <sds@gnu.org>.
24305
24306 2008-11-20  Bruno Haible  <bruno@clisp.org>
24307
24308         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
24309         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
24310         INCLUDE_NEXT.
24311         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
24312         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
24313         * modules/math (Makefile.am): Substitute
24314         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
24315         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24316
24317 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24318             Bruno Haible  <bruno@clisp.org>
24319
24320         * lib/stdint.in.h: Define all type macros so that their expansion is
24321         a single typedef'ed token. Fixes a compilation failure in Boost which
24322         does "using ::int8_t;".
24323
24324 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24325
24326         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
24327         gl_MANYWARN_ALL_GCC.
24328         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
24329         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
24330         * modules/manywarnings: New file.
24331         * MODULES.html.sh: Mention manywarnings module.
24332
24333 2008-11-18  Bruno Haible  <bruno@clisp.org>
24334
24335         * doc/gnulib-tool.texi (Unit tests): New section.
24336
24337 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24338
24339         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
24340         paths like 'lib/po/foo.po'.
24341
24342 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24343
24344         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
24345         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
24346
24347 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24348
24349         * m4/warnings.m4: Use CPPFLAGS to really check whether the
24350         parameter works.
24351
24352 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24353
24354         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
24355
24356 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24357
24358         * modules/parse-duration-tests: New file.
24359         * tests/test-parse-duration.sh: New file.
24360         * tests/test-parse-duration.c: New file.
24361
24362         New module 'parse-duration'.
24363         * lib/parse-duration.h: New file.
24364         * lib/parse-duration.c: New file.
24365         * modules/parse-duration: New file.
24366
24367 2008-11-17  Bruno Haible  <bruno@clisp.org>
24368
24369         * tests/test-select-out.sh: Comment out the first pipe test.
24370         Reported by Simon Josefsson.
24371
24372 2008-11-17  Bruno Haible  <bruno@clisp.org>
24373
24374         * modules/getaddrinfo (Depends-on): Add servent, hostent.
24375         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
24376         gl_HOSTENT.
24377
24378 2008-11-17  Bruno Haible  <bruno@clisp.org>
24379
24380         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
24381         -lnetwork and -lnet. Needed for Haiku and BeOS.
24382
24383 2008-11-16  Bruno Haible  <bruno@clisp.org>
24384
24385         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
24386
24387 2008-11-16  Bruno Haible  <bruno@clisp.org>
24388
24389         Avoid test failure on Haiku.
24390         * tests/test-fsync.c: Include <errno.h>.
24391         (main): Don't require that fsync (0) fails.
24392
24393 2008-11-15  Bruno Haible  <bruno@clisp.org>
24394
24395         New module 'hostent'.
24396         * modules/hostent: New file.
24397         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
24398
24399 2008-11-15  Bruno Haible  <bruno@clisp.org>
24400
24401         New module 'servent'.
24402         * modules/servent: New file.
24403         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
24404
24405 2008-11-15  Bruno Haible  <bruno@clisp.org>
24406
24407         Avoid generating same test program with two different rules.
24408         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
24409         test-frexp to test-frexp-nolibm.
24410         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
24411         test-frexpl to test-frexpl-nolibm.
24412
24413 2008-11-15  Bruno Haible  <bruno@clisp.org>
24414
24415         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
24416         $(FREXPL_LIBM).
24417
24418 2008-11-15  Bruno Haible  <bruno@clisp.org>
24419
24420         * lib/netdb.in.h: Activate the definitions also when the system's
24421         <netdb.h> has 'struct addrinfo'.
24422         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
24423         EAI_OVERFLOW or AI_NUMERICSERV.
24424         * doc/posix-headers/netdb.texi: Document the problem.
24425
24426 2008-11-15  Bruno Haible  <bruno@clisp.org>
24427
24428         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
24429
24430         Make the 'sched' module work on platforms where <sched.h> exists but
24431         is incomplete (such as Haiku).
24432         * lib/sched.in.h; Include the system's <sched.h> if it exists.
24433         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
24434         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
24435         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
24436         HAVE_STRUCT_SCHED_PARAM.
24437         * modules/sched (Depends-on): Add include_next.
24438         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
24439         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
24440         * doc/posix-headers/sched.texi: Document the issue.
24441
24442 2008-11-13  Jim Meyering  <meyering@redhat.com>
24443
24444         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
24445         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
24446         test would fail due to the difference in the Report bugs to ...
24447         line.  The expected address is empty, "<>", while the actual
24448         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
24449
24450 2008-11-12  Bruno Haible  <bruno@clisp.org>
24451
24452         lstat: don't compile lstat.c on systems lacking lstat
24453         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
24454         which don't have lstat; this is handled by lib/sys_stat.in.h already.
24455         Reported by Daniel P. Berrange via Jim Meyering.
24456
24457 2008-11-12  Jim Meyering  <meyering@redhat.com>
24458
24459         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
24460
24461 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24462
24463         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
24464         instead.
24465
24466 2008-11-12  Bruno Haible  <bruno@clisp.org>
24467
24468         * lib/unicodeio.c: Include unistr.h.
24469         (utf8_wctomb): Remove function.
24470         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
24471
24472 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24473
24474         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
24475         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
24476         <bruno@clisp.org>.
24477         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
24478
24479 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24480
24481         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
24482         * doc/gnulib.texi: Add section for warnings.
24483
24484 2008-11-11  Bruno Haible  <bruno@clisp.org>
24485
24486         * lib/sockets.h: Add a comment.
24487
24488 2008-11-11  Karl Berry  <karl@gnu.org>
24489
24490         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
24491
24492 2008-11-11  Eric Blake  <ebb9@byu.net>
24493
24494         fdl.texi: avoid git symlinks
24495         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
24496
24497 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24498
24499         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
24500
24501 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24502
24503         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
24504         (gl_WARN_ADD): Substitute $2 if literal.
24505
24506 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24507
24508         * m4/warning.m4: Remove.
24509
24510 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24511
24512         * m4/warnings.m4: Almost complete rewrite. :-)
24513
24514 2008-11-10  Simon Josefsson  <simon@josefsson.org>
24515
24516         * modules/warnings: New module.
24517         * m4/warnings.m4: New file.
24518         * MODULES.html.sh: Mention warnings module.
24519         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
24520         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24521
24522 2008-11-10  Eric Blake  <ebb9@byu.net>
24523
24524         fdl.texi: make a symlink to the latest version
24525         * doc/standards.texi: Revert today's earlier change.
24526         * doc/fdl-1.2.texi: Rename from old fdl.texi...
24527         * doc/fdl.texi: ...and replace this with a symlink to the newer
24528         fdl-1.3.texi.
24529
24530 2008-11-10  Bruno Haible  <bruno@clisp.org>
24531
24532         * tests/test-select-fd.c (main): Accept the result file name as fourth
24533         argument.
24534         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
24535         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
24536
24537 2008-11-10  Bruno Haible  <bruno@clisp.org>
24538
24539         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
24540         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
24541         as autoconf-substituted macros.
24542         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
24543         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
24544         gl_NETDB_H_DEFAULTS. Set these variables.
24545         * modules/netdb (Makefile.am): Substitute these variables.
24546
24547 2008-11-10  Eric Blake  <ebb9@byu.net>
24548
24549         standards.texi: include correct file for FDL 1.3
24550         * doc/standards.texi (GNU Free Documentation License): Change
24551         include file to pull in FDL 1.3, not 1.2.
24552
24553         fdl.texi: revert accidental change to license
24554         * doc/fdl.texi: This is FDL 1.2, not 1.3.
24555
24556 2008-11-10  Bruno Haible  <bruno@clisp.org>
24557
24558         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
24559         cross-compiling guesses also when the native compile gives no result.
24560
24561 2008-11-10  Bruno Haible  <bruno@clisp.org>
24562
24563         * lib/spawni.c (__spawni): Force variable into the stack.
24564
24565 2008-11-10  Bruno Haible  <bruno@clisp.org>
24566
24567         Add support for Haiku.
24568         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
24569         glibc and BeOS, but also on Haiku.
24570         * lib/fpurge.c (fpurge): Likewise.
24571         * lib/freadable.c (freadable): Likewise.
24572         * lib/freadahead.c (freadahead): Likewise.
24573         * lib/freading.c (freading): Likewise.
24574         * lib/freadptr.c (freadptr): Likewise.
24575         * lib/freadseek.c (freadptrinc): Likewise.
24576         * lib/fseeko.c (rpl_fseeko): Likewise.
24577         * lib/fseterr.c (fseterr): Likewise.
24578         * lib/fwritable.c (fwritable): Likewise.
24579         * lib/fwriting.c (fwriting): Likewise.
24580         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
24581
24582 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24583
24584         * lib/config.charset: Treat Haiku like BeOS.
24585
24586 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24587
24588         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
24589         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24590
24591 2008-11-08  Bruno Haible  <bruno@clisp.org>
24592
24593         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24594         AC_CACHE_CHECK.
24595
24596 2008-11-08  Bruno Haible  <bruno@clisp.org>
24597
24598         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24599
24600 2008-11-08  Bruno Haible  <bruno@clisp.org>
24601
24602         * tests/test-select-fd.c: New file.
24603         * tests/test-select-in.sh: New file.
24604         * tests/test-select-out.sh: New file.
24605         * tests/test-select-stdin.c: New file.
24606         * modules/select-tests (Files): Add the new files.
24607         (Depends-on): Add gettimeofday.
24608         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24609         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24610         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24611
24612 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24613             Bruno Haible  <bruno@clisp.org>
24614
24615         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24616
24617 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24618
24619         * build-aux/pmccabe2html: Added support for C++ source files.
24620
24621 2008-11-05  Ben Pfaff  <blp@gnu.org>
24622
24623         Fix lib/close.c build on Windows.
24624         * modules/close (Files): Add lib/w32sock.h.
24625
24626 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24627
24628         Accept Bison's NEWS format.
24629         * build-aux/announce-gen (print_news_deltas): Tweak
24630         $re_prefix.
24631
24632 2008-11-04  Bruno Haible  <bruno@clisp.org>
24633
24634         * modules/random_r (Maintainer): Add glibc.
24635
24636 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24637
24638         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24639         by karl@freefriends.org (Karl Berry).
24640         * doc/alloca.texi: Likewise.
24641         * doc/c-ctype.texi: Likewise.
24642         * doc/c-strcase.texi: Likewise.
24643         * doc/c-strcaseeq.texi: Likewise.
24644         * doc/c-strcasestr.texi: Likewise.
24645         * doc/c-strstr.texi: Likewise.
24646         * doc/c-strtod.texi: Likewise.
24647         * doc/c-strtold.texi: Likewise.
24648         * doc/ctime.texi: Likewise.
24649         * doc/error.texi: Likewise.
24650         * doc/fdl.texi: Likewise.
24651         * doc/gcd.texi: Likewise.
24652         * doc/getdate.texi: Likewise.
24653         * doc/gnulib-intro.texi: Likewise.
24654         * doc/gnulib-tool.texi: Likewise.
24655         * doc/gnulib.texi: Likewise.
24656         * doc/inet_ntoa.texi: Likewise.
24657         * doc/maintain.texi: Likewise.
24658         * doc/make-stds.texi: Likewise.
24659         * doc/quote.texi: Likewise.
24660         * doc/regexprops-generic.texi: Likewise.
24661         * doc/standards.texi: Likewise.
24662         * doc/verify.texi: Likewise.
24663         * doc/visibility.texi: Likewise.
24664         * doc/gnulib.texi (GNU Free Documentation License): Include
24665         fdl-1.3.texi instead of fdl.texi.
24666
24667 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24668
24669         * doc/fdl-1.3.texi: New file, from
24670         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24671         * modules/fdl-1.3: Add.
24672         * MODULES.html.sh: Add fdl-1.3.
24673
24674 2008-11-03  Bruno Haible  <bruno@clisp.org>
24675
24676         Make determination of absolute name of header file work with AIX xlc.
24677         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24678         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24679         preprocessing.
24680         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24681         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24682
24683 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24684
24685         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24686         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24687         <ludo@gnu.org>.
24688
24689 2008-11-02  Bruno Haible  <bruno@clisp.org>
24690
24691         Mark 'strpbrk' obsolete.
24692         * modules/strpbrk (Status, Notice): New sections.
24693         * modules/strtok_r (Depends-on): Add strpbrk.
24694
24695 2008-11-02  Bruno Haible  <bruno@clisp.org>
24696
24697         Mark 'strdup' obsolete.
24698         * modules/strdup (Status, Notice): New sections.
24699         * modules/findprog (Depends-on): Add strdup.
24700         * modules/getaddrinfo (Depends-on): Likewise.
24701         * modules/localename (Depends-on): Likewise.
24702         * modules/relocatable-lib (Depends-on): Likewise.
24703         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24704         * modules/relocatable-prog (Depends-on): Likewise.
24705         * modules/trim (Depends-on): Likewise.
24706         * modules/unictype/gen-ctype (Depends-on): Likewise.
24707         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24708
24709 2008-11-02  Bruno Haible  <bruno@clisp.org>
24710
24711         Mark 'strcspn' obsolete.
24712         * modules/strcspn (Status, Notice): New sections.
24713
24714 2008-11-02  Bruno Haible  <bruno@clisp.org>
24715
24716         Mark 'rmdir' obsolete.
24717         * modules/rmdir (Status, Notice): New sections.
24718         * modules/clean-temp (Depends-on): Add rmdir.
24719         * modules/openat (Depends-on): Likewise.
24720
24721 2008-11-02  Bruno Haible  <bruno@clisp.org>
24722
24723         Mark 'raise' obsolete.
24724         * modules/raise (Status, Notice): New sections.
24725         (Include): Specify <signal.h>.
24726         * modules/stdio (Depends-on): Add raise.
24727         * modules/write (Depends-on): Likewise.
24728
24729 2008-11-02  Bruno Haible  <bruno@clisp.org>
24730
24731         Mark 'memset' obsolete.
24732         * modules/memset (Status, Notice): New sections.
24733
24734 2008-11-02  Bruno Haible  <bruno@clisp.org>
24735
24736         Mark 'memmove' obsolete.
24737         * modules/memmove (Status, Notice): New sections.
24738         * modules/argp (Depends-on): Add memmove.
24739         * modules/argz (Depends-on): Likewise.
24740         * modules/canonicalize (Depends-on): Likewise.
24741         * modules/canonicalize-lgpl (Depends-on): Likewise.
24742         * modules/fts (Depends-on): Likewise.
24743         * modules/getcwd (Depends-on): Likewise.
24744         * modules/human (Depends-on): Likewise.
24745         * modules/regex (Depends-on): Likewise.
24746         * modules/striconveh (Depends-on): Likewise.
24747         * modules/trim (Depends-on): Likewise.
24748         * modules/unistr/u8-move (Depends-on): Likewise.
24749         * modules/unistr/u16-move (Depends-on): Likewise.
24750         * modules/unistr/u32-move (Depends-on): Likewise.
24751
24752 2008-11-02  Bruno Haible  <bruno@clisp.org>
24753
24754         Mark 'memcpy' obsolete.
24755         * modules/memcpy (Status, Notice): New sections.
24756
24757 2008-11-02  Bruno Haible  <bruno@clisp.org>
24758
24759         Mark 'memcmp' obsolete.
24760         * modules/memcmp (Status, Notice): New sections.
24761         * modules/argmatch (Depends-on): Add memchr.
24762         * modules/backupfile (Depends-on): Likewise.
24763         * modules/c-strcasestr (Depends-on): Likewise.
24764         * modules/crypto/des (Depends-on): Likewise.
24765         * modules/csharpcomp (Depends-on): Likewise.
24766         * modules/fnmatch (Depends-on): Likewise.
24767         * modules/git-merge-changelog (Depends-on): Likewise.
24768         * modules/isnand (Depends-on): Likewise.
24769         * modules/isnand-nolibm (Depends-on): Likewise.
24770         * modules/isnanf (Depends-on): Likewise.
24771         * modules/isnanf-nolibm (Depends-on): Likewise.
24772         * modules/isnanl (Depends-on): Likewise.
24773         * modules/isnanl-nolibm (Depends-on): Likewise.
24774         * modules/mbchar (Depends-on): Likewise.
24775         * modules/memcoll (Depends-on): Likewise.
24776         * modules/quotearg (Depends-on): Likewise.
24777         * modules/regex (Depends-on): Likewise.
24778         * modules/relocatable-prog (Depends-on): Likewise.
24779         * modules/same (Depends-on): Likewise.
24780         * modules/signbit (Depends-on): Likewise.
24781         * modules/strcasestr-simple (Depends-on): Likewise.
24782         * modules/unictype/gen-ctype (Depends-on): Likewise.
24783         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24784         * modules/uniname/uniname (Depends-on): Likewise.
24785         * modules/unistr/u8-cmp (Depends-on): Likewise.
24786
24787 2008-11-02  Bruno Haible  <bruno@clisp.org>
24788
24789         Mark 'memchr' obsolete.
24790         * modules/memchr (Status, Notice): New sections.
24791         * modules/argp (Depends-on): Add memchr.
24792         * modules/base64 (Depends-on): Likewise.
24793         * modules/c-strcasestr (Depends-on): Likewise.
24794         * modules/chdir-long (Depends-on): Likewise.
24795         * modules/fnmatch (Depends-on): Likewise.
24796         * modules/getsubopt (Depends-on): Likewise.
24797         * modules/git-merge-changelog (Depends-on): Likewise.
24798         * modules/glob (Depends-on): Likewise.
24799         * modules/strcasestr-simple (Depends-on): Likewise.
24800         * modules/strnlen (Depends-on): Likewise.
24801
24802 2008-11-02  Bruno Haible  <bruno@clisp.org>
24803
24804         Mark 'atexit' obsolete.
24805         * modules/atexit (Status, Notice): New sections.
24806         * modules/chdir-long (Depends-on): Add atexit.
24807         * modules/wait-process (Depends-on): Likewise.
24808
24809 2008-11-02  Bruno Haible  <bruno@clisp.org>
24810
24811         * gnulib-tool: New option --with-obsolete.
24812         (func_usage): Document it.
24813         (func_modules_transitive_closure): Drop obsolete dependencies if
24814         incobsolete is not true.
24815         (func_import): Read and save the incobsolete variable to the cache.
24816
24817 2008-11-02  Bruno Haible  <bruno@clisp.org>
24818
24819         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24820         * gnulib-tool: New option --extract-status.
24821         (func_usage): Document it.
24822         (sed_extract_prog): Recognize it.
24823         (func_get_status): New function.
24824
24825 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24826
24827         * modules/sockets (License): Change from LGPL to LGPLv2+.
24828
24829 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24830
24831         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24832
24833 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24834
24835         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24836         Mention times and sys_times.
24837         * modules/sys_times, modules/sys_times-tests: New modules.
24838         * modules/times, modules/times-tests: Likewise
24839         * m4/sys_times_h.m4: New file.
24840         * lib/sys_times.in.h: Likewise
24841         * lib/times.c: Likewise.
24842         * tests/test-sys_times.c: Likewise.
24843         * tests/test-times.c: Likewise.
24844         * doc/posix-headers/sys_times.texi: Update.
24845         * doc/posix-functions/times.texi: Update.
24846
24847 2008-10-28  Jim Meyering  <meyering@redhat.com>
24848
24849         * modules/tempname (Depends-on): Add lstat.
24850
24851         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
24852
24853 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24854
24855         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
24856         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
24857         using idiom used elsewhere in gnulib.
24858
24859 2008-10-27  Jim Meyering  <meyering@redhat.com>
24860
24861         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
24862
24863 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24864
24865         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
24866         TESTS_ENVIRONMENT, for shell scripts that needs to call built
24867         programs.
24868         * tests/test-argp-2.sh: Use $EXEEXT when needed.
24869
24870 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24871
24872         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
24873
24874 2008-10-27  Bruno Haible  <bruno@clisp.org>
24875
24876         * tests/test-lstat.c: Include <stdio.h>.
24877
24878 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24879
24880         * modules/lstat-tests: New module.
24881         * tests/test-lstat.c: New file.
24882
24883 2008-10-26  Jim Meyering  <meyering@redhat.com>
24884
24885         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
24886
24887 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24888             Bruno Haible  <bruno@clisp.org>
24889
24890         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
24891         * modules/configmake (Include): Add a note that the include must come
24892         after all system headers.
24893         * lib/javaversion.c: Include configmake.h after all other includes.
24894
24895 2008-10-26  Bruno Haible  <bruno@clisp.org>
24896
24897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
24898         HAVE_STRUCT_RANDOM_DATA to 1.
24899         (gl_STDLIB_H): Simplify.
24900
24901 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24902
24903         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
24904         substitute HAVE_STRUCT_RANDOM_DATA.
24905         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
24906         random_data.
24907         * modules/stdlib (Makefile.am): Substitute
24908         HAVE_STRUCT_RANDOM_DATA.
24909
24910 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24911
24912         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
24913         * doc/gnulib-intro.texi (Copyright): Likewise.
24914
24915 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24916
24917         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
24918         findings.
24919
24920 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
24921             Bruno Haible  <bruno@clisp.org>
24922
24923         * lib/unistd.in.h: Include <winsock2.h>.
24924         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
24925         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
24926         Provide dummy declarations.
24927         (gethostname): Override.
24928         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
24929         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
24930         gl_PREREQ_SYS_H_WINSOCK2.
24931         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
24932         * doc/posix-functions/gethostname.texi: More details.
24933
24934 2008-10-25  Bruno Haible  <bruno@clisp.org>
24935
24936         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24937         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
24938         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
24939
24940         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
24941         here ...
24942         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
24943         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
24944         gl_UNISTD_H_DEFAULTS.
24945
24946 2008-10-25  Eric Blake  <ebb9@byu.net>
24947
24948         signbit: avoid spurious compiler failure
24949         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
24950         declarations inside function.
24951
24952 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24953             Bruno Haible  <bruno@clisp.org>
24954
24955         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
24956         * modules/random_r (Depends-on): Add stdint.
24957
24958 2008-10-24  Bruno Haible  <bruno@clisp.org>
24959
24960         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
24961         Eggert.
24962         * modules/strerror (License): Likewise.
24963
24964 2008-10-24  Jim Meyering  <meyering@redhat.com>
24965
24966         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
24967         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
24968
24969 2008-10-24  Eric Blake  <ebb9@byu.net>
24970
24971         getgroups: fix compilation when getgroups is available
24972         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
24973         but with <config.h> override of getgroups disabled.
24974
24975 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24976
24977         * doc/gnulib.texi (Header files): Add note about C++ problems.
24978         Explained by Bruno Haible <bruno@clisp.org>.
24979
24980 2008-10-23  Bruno Haible  <bruno@clisp.org>
24981
24982         Define a dummy SA_NODEFER macro on Interix.
24983         * lib/signal.in.h (SA_NODEFER): Define fallback.
24984         Reported by Aleksey Cheusov <cheusov@tut.by> via
24985         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
24986
24987 2008-10-23  Bruno Haible  <bruno@clisp.org>
24988
24989         * modules/freadahead (License): Change to LGPLv2+.
24990         Suggested by Simon Josefsson.
24991
24992 2008-10-23  Jim Meyering  <meyering@redhat.com>
24993
24994         random_r: new module
24995         * modules/random_r: New file.
24996         * m4/random_r.m4: New file.
24997         * lib/random_r.c: New file, from glibc.
24998         * modules/random_r-tests: New file.
24999         * tests/test-random_r.c: New file.
25000         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
25001          Declare.
25002         (RAND_MAX): Define.
25003         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
25004         * modules/stdlib: Substitute them, too.
25005         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
25006         * doc/glibc-functions/initstate_r.texi: Mention the new module.
25007         * doc/glibc-functions/random_r.texi: Likewise.
25008         * doc/glibc-functions/setstate_r.texi: Likewise.
25009         * doc/glibc-functions/srandom_r.texi: Likewise.
25010         * config/srclist.txt: Mention it.
25011
25012 2008-10-23  David Lutterkort  <lutter@redhat.com>
25013
25014         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
25015         link requirement
25016
25017 2008-10-23  Jim Meyering  <meyering@redhat.com>
25018
25019         selinux-h: mark parameters of stub functions as intentionally unused
25020         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
25021         * lib/se-context.in.h: Likewise.
25022
25023 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25024
25025         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
25026
25027 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25028
25029         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
25030
25031 2008-10-22  Eric Blake  <ebb9@byu.net>
25032
25033         glthread/thread: avoid compiler warning
25034         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
25035         Add unreachable abort to silence compiler.
25036
25037 2008-10-22  Eric Blake  <ebb9@byu.net>
25038
25039         netdb: also supply struct addrinfo for cygwin 1.5.x
25040         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
25041         older cygwin.
25042         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
25043         cygwin.
25044         * doc/posix-headers/netdb.texi (netdb.h): Document this.
25045
25046 2008-10-22  Bruno Haible  <bruno@clisp.org>
25047
25048         * users.txt: Update entry about pspp.
25049
25050 2008-10-21  Bruno Haible  <bruno@clisp.org>
25051
25052         Simplification.
25053         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
25054         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
25055
25056         Simplification.
25057         * lib/ioctl.c (ioctl): Don't undefine.
25058         * lib/socket.c (socket): Don't undefine.
25059
25060         Remove unused module indicator macros.
25061         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
25062         GNULIB_$1 as a C macro.
25063
25064         * doc/posix-functions/close.texi: Undo last change.
25065         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
25066         Windows platforms.
25067
25068 2008-10-21  Bruno Haible  <bruno@clisp.org>
25069
25070         Add gethostname() declaration to <unistd.h>.
25071         * lib/unistd.in.h (gethostname): New declaration.
25072         * lib/gethostname.c: Include <unistd.h>.
25073         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
25074         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
25075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
25076         and HAVE_GETHOSTNAME.
25077         * modules/gethostname (Depends-on): Add unistd.
25078         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25079         (Include): Specify <unistd.h>.
25080         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
25081         HAVE_GETHOSTNAME.
25082         * tests/test-gethostname.c: Include <unistd.h> first.
25083
25084 2008-10-21  Bruno Haible  <bruno@clisp.org>
25085
25086         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
25087         * modules/select-tests (Depends-on): Likewise.
25088         Reported by Simon Josefsson.
25089
25090 2008-10-21  Simon Josefsson  <simon@josefsson.org>
25091
25092         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
25093         * lib/accept.c: New file, based on winsock.c.
25094         * lib/bind.c: New file, based on winsock.c.
25095         * lib/connect.c: New file, based on winsock.c.
25096         * lib/getpeername.c: New file, based on winsock.c.
25097         * lib/getsockname.c: New file, based on winsock.c.
25098         * lib/getsockopt.c: New file, based on winsock.c.
25099         * lib/ioctl.c: New file, based on winsock.c.
25100         * lib/listen.c: New file, based on winsock.c.
25101         * lib/recv.c: New file, based on winsock.c.
25102         * lib/recvfrom.c: New file, based on winsock.c.
25103         * lib/send.c: New file, based on winsock.c.
25104         * lib/sendto.c: New file, based on winsock.c.
25105         * lib/setsockopt.c: New file, based on winsock.c.
25106         * lib/shutdown.c: New file, based on winsock.c.
25107         * lib/socket.c: New file, based on winsock.c.
25108         * lib/w32sock.h: New file, based on winsock.c.
25109         * lib/winsock.c: Remove file.
25110         * modules/accept: Likewise.
25111         * modules/bind: Likewise.
25112         * modules/connect: Likewise.
25113         * modules/getpeername: Likewise.
25114         * modules/getsockname: Likewise.
25115         * modules/getsockopt: Likewise.
25116         * modules/ioctl: Likewise.
25117         * modules/listen: Likewise.
25118         * modules/recv: Likewise.
25119         * modules/recvfrom: Likewise.
25120         * modules/send: Likewise.
25121         * modules/sendto: Likewise.
25122         * modules/setsockopt: Likewise.
25123         * modules/shutdown: Likewise.
25124         * modules/socket: Use socket.c instead of winsock.c.
25125         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
25126         * doc/posix-functions/accept.texi: Doc fix.
25127         * doc/posix-functions/bind.texi: Doc fix.
25128         * doc/posix-functions/close.texi: Doc fix.
25129         * doc/posix-functions/connect.texi: Doc fix.
25130         * doc/posix-functions/getpeername.texi: Doc fix.
25131         * doc/posix-functions/getsockname.texi: Doc fix.
25132         * doc/posix-functions/getsockopt.texi: Doc fix.
25133         * doc/posix-functions/ioctl.texi: Doc fix.
25134         * doc/posix-functions/listen.texi: Doc fix.
25135         * doc/posix-functions/recv.texi: Doc fix.
25136         * doc/posix-functions/recvfrom.texi: Doc fix.
25137         * doc/posix-functions/send.texi: Doc fix.
25138         * doc/posix-functions/sendto.texi: Doc fix.
25139         * doc/posix-functions/setsockopt.texi: Doc fix.
25140         * doc/posix-functions/shutdown.texi: Doc fix.
25141         * doc/posix-functions/socket.texi: Doc fix.
25142
25143 2008-10-20  Bruno Haible  <bruno@clisp.org>
25144
25145         Take into account the role of SIGABRT_COMPAT on Windows 2008.
25146         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
25147         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
25148         as an alias for SIGABRT.
25149         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
25150         (sigaction): Map it to SIGABRT.
25151         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
25152
25153 2008-10-20  Bruno Haible  <bruno@clisp.org>
25154
25155         * lib/fts.c: Don't include lstat.h.
25156         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
25157
25158         Move the lstat() declaration to <sys/stat.h>.
25159         * lib/lstat.h: Remove file.
25160         * lib/sys_stat.in.h: Add special invocation convention.
25161         (lstat): New declaration.
25162         * lib/lstat.c (orig_lstat): New function.
25163         (rpl_lstat): Use orig_lstat instead of lstat.
25164         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
25165         AC_C_INLINE. Set REPLACE_LSTAT.
25166         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
25167         and REPLACE_LSTAT.
25168         * modules/lstat (Files): Remove lib/lstat.h.
25169         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25170         (Include): Specify <sys/stat.h> instead of lstat.h.
25171         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
25172         REPLACE_LSTAT.
25173         * NEWS: Mention the change.
25174
25175 2008-10-20  Bruno Haible  <bruno@clisp.org>
25176
25177         * modules/posix_spawn-tests: New file.
25178         * tests/test-posix_spawn3.c: New file.
25179
25180 2008-10-20  Bruno Haible  <bruno@clisp.org>
25181
25182         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
25183         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25184         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
25185         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25186         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
25187
25188 2008-10-20  Bruno Haible  <bruno@clisp.org>
25189
25190         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
25191         of posix_spawn on AIX 5.3.
25192
25193 2008-10-20  Bruno Haible  <bruno@clisp.org>
25194
25195         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
25196
25197 2008-10-20  Bruno Haible  <bruno@clisp.org>
25198
25199         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
25200         of AC_LANG_PROGRAM.
25201
25202 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25203
25204         * lib/netdb.in.h: Don't define GNU specific constants until they
25205         are supported or needed.  Reported by Bruno Haible
25206         <bruno@clisp.org>.
25207
25208 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25209
25210         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
25211
25212 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25213
25214         * lib/getaddrinfo.h: Remove file.
25215         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
25216         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
25217         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
25218         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
25219         * modules/netdb: Substitute GNULIB_GETADDRINFO.
25220         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
25221         * tests/test-getaddrinfo.c: Likewise.
25222         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
25223         * NEWS: Mention change.
25224
25225 2008-10-19  Bruno Haible  <bruno@clisp.org>
25226
25227         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
25228
25229 2008-10-19  Bruno Haible  <bruno@clisp.org>
25230
25231         * lib/wait-process.c: Include simply <sys/wait.h>.
25232         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
25233         WIFSTOPPED): Remove fallback definitions.
25234         * modules/wait-process (Depends-on): Add sys_wait.
25235
25236         New module 'sys_wait'.
25237         * modules/sys_wait: New file.
25238         * lib/sys_wait.in.h: New file, partially copied from
25239         lib/wait-process.c.
25240         * m4/sys_wait_h.m4: New file.
25241         * doc/posix-headers/sys_wait.texi: Mention the new module.
25242
25243 2008-10-19  Bruno Haible  <bruno@clisp.org>
25244
25245         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
25246
25247 2008-10-19  Bruno Haible  <bruno@clisp.org>
25248
25249         Assume that waitpid() fills an 'int' status, not a 'union wait'.
25250         * lib/wait-process.c (WAIT_T): Remove type.
25251         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
25252         (wait_subprocess): Update.
25253
25254 2008-10-19  Bruno Haible  <bruno@clisp.org>
25255
25256         New module 'atoll'.
25257         * modules/atoll: New file.
25258         * lib/stdlib.in.h (atoll): New declaration.
25259         * lib/atoll.c: New file, from glibc with modifications.
25260         * m4/atoll.m4: New file.
25261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
25262         HAVE_ATOLL.
25263         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
25264         * doc/posix-functions/atoll.texi: Mention the new module.
25265
25266 2008-10-19  Bruno Haible  <bruno@clisp.org>
25267
25268         Add strtoull() declaration to <stdlib.h>.
25269         * lib/stdlib.in.h (strtoull): New declaration.
25270         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25271         Set HAVE_STRTOULL.
25272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
25273         HAVE_STRTOULL.
25274         * modules/strtoull (Depends-on): Add stdlib.
25275         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25276         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
25277         HAVE_STRTOULL.
25278
25279 2008-10-19  Bruno Haible  <bruno@clisp.org>
25280
25281         Add strtoll() declaration to <stdlib.h>.
25282         * lib/stdlib.in.h (strtoll): New declaration.
25283         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25284         Set HAVE_STRTOLL.
25285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
25286         HAVE_STRTOLL.
25287         * modules/strtoll (Depends-on): Add stdlib.
25288         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25289         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
25290
25291 2008-10-19  Bruno Haible  <bruno@clisp.org>
25292
25293         * modules/bcopy (Depends-on): Add strings.
25294         (Include): Specify <strings.h>.
25295
25296 2008-10-19  Bruno Haible  <bruno@clisp.org>
25297
25298         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
25299
25300 2008-10-19  Bruno Haible  <bruno@clisp.org>
25301
25302         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
25303         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
25304         mingw.
25305
25306 2008-10-19  Bruno Haible  <bruno@clisp.org>
25307
25308         * lib/atanl.c: Don't include isnanl.h.
25309         * lib/cosl.c: Likewise.
25310         * lib/ldexpl.c: Likewise.
25311         * lib/logl.c: Likewise.
25312         * lib/sinl.c: Likewise.
25313         * lib/sqrtl.c: Likewise.
25314         * lib/tanl.c: Likewise.
25315
25316         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
25317         * lib/isnanf.h: Remove file.
25318         * lib/isnand.h: Remove file.
25319         * lib/isnanl.h: Remove file.
25320         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
25321         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
25322         macros.
25323         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
25324         HAVE_ISNANF, don't define it as a C macro.
25325         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
25326         HAVE_ISNAND, don't define it as a C macro.
25327         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
25328         HAVE_ISNANL, don't define it as a C macro.
25329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
25330         HAVE_ISNAN[FDL].
25331         * modules/isnanf (Files): Remove lib/isnanf.h.
25332         (Depends-on): Add math.
25333         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25334         (Include): Specify <math.h> instead of isnanf.h.
25335         * modules/isnand (Files): Remove lib/isnand.h.
25336         (Depends-on): Add math.
25337         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25338         (Include): Specify <math.h> instead of isnand.h.
25339         * modules/isnanl (Files): Remove lib/isnanl.h.
25340         (Depends-on): Add math.
25341         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25342         (Include): Specify <math.h> instead of isnanl.h.
25343         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
25344         HAVE_ISNAN[FDL].
25345         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
25346         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
25347         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
25348         * NEWS: Mention the change.
25349
25350 2008-10-18  Bruno Haible  <bruno@clisp.org>
25351
25352         Add getusershell(), setusershell(), endusershell() declarations to
25353         <unistd.h>.
25354         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
25355         declarations.
25356         * lib/getusershell.c: Include unistd.h.
25357         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
25358         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25359         HAVE_GETUSERSHELL.
25360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
25361         and HAVE_GETUSERSHELL.
25362         * modules/getusershell (Depends-on): Add unistd, extensions.
25363         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25364         (Include): Specify <unistd.h>.
25365         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
25366         HAVE_GETUSERSHELL.
25367
25368 2008-10-18  Bruno Haible  <bruno@clisp.org>
25369
25370         Add a getloadavg() declaration to <stdlib.h>.
25371         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
25372         getloadavg declaration.
25373         (getloadavg): New declaration.
25374         * lib/getloadavg.c: Include <stdlib.h> first.
25375         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
25376         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
25377         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
25378         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
25379         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25380         * modules/getloadavg (Depends-on): Add stdlib, extensions.
25381         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25382         (Include): Specify <stdlib.h>.
25383         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
25384         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25385
25386 2008-10-18  Bruno Haible  <bruno@clisp.org>
25387
25388         * lib/dirchownmod.c: Don't include lchmod.h.
25389
25390         Move the lchmod() declaration to <sys/stat.h>.
25391         * lib/lchmod.h: Remove file.
25392         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
25393         (lchmod): New declaration, moved here from lib/lchown.h.
25394         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
25395         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
25396         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
25397         and HAVE_LCHMOD.
25398         * modules/lchmod (Files): Remove lib/lchmod.h.
25399         (Depends-on): Add sys_stat, extensions.
25400         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25401         (Include): Specify <sys/stat.h> instead of lchmod.h.
25402         * modules/sys_stat (Depends-on): Add link-warning.
25403         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
25404         definition of GL_LINK_WARNING.
25405         * NEWS: Mention the change.
25406
25407 2008-10-18  Bruno Haible  <bruno@clisp.org>
25408
25409         * lib/fchdir.c: Don't include dirfd.h.
25410         * lib/fts.c: Likewise.
25411         * lib/getcwd.c: Likewise.
25412         * lib/glob.c: Likewise.
25413
25414         Move the dirfd() declaration to <dirent.h>.
25415         * lib/dirfd.h: Remove file.
25416         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
25417         (dirfd): New declaration.
25418         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
25419         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
25420         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
25421         HAVE_DECL_DIRFD.
25422         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
25423         HAVE_DECL_DIRFD.
25424         * modules/dirfd (Files): Remove lib/dirfd.h.
25425         (Depends-on): Add dirent, extensions.
25426         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
25427         (Include): Specify <dirent.h> instead of dirfd.h.
25428         * modules/dirent (Depends-on): Add link-warning.
25429         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
25430         definition of GL_LINK_WARNING.
25431         * NEWS: Mention the change.
25432
25433 2008-10-18  Bruno Haible  <bruno@clisp.org>
25434
25435         Move the euidaccess() declaration to <unistd.h>.
25436         * lib/euidaccess.h: Remove file.
25437         * lib/unistd.in.h (euidaccess): New declaration.
25438         * lib/euidaccess.c: Don't include euidaccess.h.
25439         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
25440         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
25441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
25442         and HAVE_EUIDACCESS.
25443         * modules/euidaccess (Files): Remove lib/euidaccess.h.
25444         (Depends-on): Add unistd.
25445         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25446         (Include): Specify <unistd.h> instead of euidaccess.h.
25447         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
25448         HAVE_EUIDACCESS.
25449         * NEWS: Mention the change.
25450
25451 2008-10-18  Bruno Haible  <bruno@clisp.org>
25452
25453         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
25454
25455         Move the getdomainname() declaration to <unistd.h>.
25456         * lib/getdomainname.h: Remove file.
25457         * lib/unistd.in.h (getdomainname): New declaration.
25458         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
25459         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25460         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25461         HAVE_GETDOMAINNAME.
25462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25463         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
25464         * modules/getdomainname (Files): Remove lib/getdomainname.h.
25465         (Depends-on): Add unistd, extensions.
25466         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25467         (Includes): Specify <unistd.h> instead of getdomainname.h.
25468         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
25469         HAVE_GETDOMAINNAME.
25470         * NEWS: Mention the change.
25471
25472 2008-10-18  Bruno Haible  <bruno@clisp.org>
25473
25474         * modules/dirent: New file.
25475         * m4/dirent_h.m4: New file.
25476         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
25477         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
25478         * modules/fchdir (Files): Remove lib/dirent.in.h.
25479         (Depends-on): Add dirent.
25480         (Makefile.am): Move rules to modules/dirent.
25481         * doc/posix-headers/dirent.texi: Mention the new module.
25482
25483 2008-10-18  Bruno Haible  <bruno@clisp.org>
25484
25485         Avoid -Wunused-parameter warnings in public gnulib header files.
25486         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
25487         macro.
25488         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
25489
25490 2008-10-18  Bruno Haible  <bruno@clisp.org>
25491
25492         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
25493         * doc/glibc-functions/error.texi: Mention the module 'error'.
25494         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
25495         * doc/glibc-functions/getdomainname.texi: Mention the module
25496         'getdomainname'.
25497         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
25498         * doc/glibc-functions/getpagesize.texi: Mention the module
25499         'getpagesize'.
25500         * doc/glibc-functions/getusershell.texi: Mention the module
25501         'getusershell'.
25502         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
25503         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
25504         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
25505         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
25506         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
25507         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
25508         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
25509         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
25510         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
25511         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
25512         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
25513         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
25514         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
25515         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
25516
25517 2008-10-17  Bruno Haible  <bruno@clisp.org>
25518
25519         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
25520         HP-UX and IRIX, use -0.0L.
25521         * tests/test-ceill.c (minus_zero): Likewise.
25522         * tests/test-floorl.c (minus_zero): Likewise.
25523         * tests/test-frexpl.c (minus_zero): Likewise.
25524         * tests/test-isnan.c (minus_zerol): Likewise.
25525         * tests/test-isnanl.h (minus_zero): Likewise.
25526         * tests/test-ldexpl.c (minus_zero): Likewise.
25527         * tests/test-roundl.c (minus_zero): Likewise.
25528         * tests/test-signbit.c (minus_zerol): Likewise.
25529         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25530         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25531         * tests/test-truncl.c (minus_zero): Likewise.
25532         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25533         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25534         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
25535         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25536
25537 2008-10-17  Bruno Haible  <bruno@clisp.org>
25538
25539         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
25540         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
25541         that it gets activated only for gcc >= 3.0.
25542         * lib/dirent.in.h: Likewise.
25543         * lib/errno.in.h: Likewise.
25544         * lib/fcntl.in.h: Likewise.
25545         * lib/float.in.h: Likewise.
25546         * lib/iconv.in.h: Likewise.
25547         * lib/inttypes.in.h: Likewise.
25548         * lib/locale.in.h: Likewise.
25549         * lib/math.in.h: Likewise.
25550         * lib/netdb.in.h: Likewise.
25551         * lib/netinet_in.in.h: Likewise.
25552         * lib/search.in.h: Likewise.
25553         * lib/signal.in.h: Likewise.
25554         * lib/spawn.in.h: Likewise.
25555         * lib/stdarg.in.h: Likewise.
25556         * lib/stdint.in.h: Likewise.
25557         * lib/stdio.in.h: Likewise.
25558         * lib/stdlib.in.h: Likewise.
25559         * lib/string.in.h: Likewise.
25560         * lib/strings.in.h: Likewise.
25561         * lib/sys_file.in.h: Likewise.
25562         * lib/sys_ioctl.in.h: Likewise.
25563         * lib/sys_select.in.h: Likewise.
25564         * lib/sys_socket.in.h: Likewise.
25565         * lib/sys_stat.in.h: Likewise.
25566         * lib/sys_time.in.h: Likewise.
25567         * lib/sysexits.in.h: Likewise.
25568         * lib/time.in.h: Likewise.
25569         * lib/unistd.in.h: Likewise.
25570         * lib/wchar.in.h: Likewise.
25571         * lib/wctype.in.h: Likewise.
25572         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25573
25574 2008-10-17  Jim Meyering  <meyering@redhat.com>
25575
25576         ignore-value: don't depend on inline module
25577         * modules/ignore-value (Depends-on): Remove 'inline'.
25578         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
25579         Suggestion from Bruno Haible.
25580
25581 2008-10-17  Bruno Haible  <bruno@clisp.org>
25582
25583         New implementation of condition variables for Win32.
25584         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
25585         (gl_linked_waitqueue_t): New type.
25586         (gl_cond_t): Use it.
25587         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
25588         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
25589         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25590         (glthread_cond_init_func, glthread_cond_wait_func,
25591         glthread_cond_timedwait_func, glthread_cond_signal_func,
25592         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25593         Reimplemented on the basis of gl_linked_waitqueue_t.
25594         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25595         gl_waitqueue_t.
25596         (gl_rwlock_t): Update.
25597         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25598
25599 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25600
25601         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25602         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25603
25604 2008-10-17  Jim Meyering  <meyering@redhat.com>
25605
25606         ignore-value: new module
25607         * modules/ignore-value: New file.
25608         * lib/ignore-value.h: New file.
25609         * MODULES.html.sh (Compiler warning management): New section,
25610         just for this module.  More to come.
25611
25612 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25613
25614         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25615         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25616         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25617
25618 2008-10-16  Jim Meyering  <meyering@redhat.com>
25619
25620         openat-die.c: avoid 'no previous prototype' warning
25621         * lib/openat-die.c: Include "openat.h".
25622         Reported by Reuben Thomas <rrt@sc3d.org>.
25623
25624 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25625
25626         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25627         * lib/netdb.in.h: Fix typo.
25628         Reported by Bruno Haible  <bruno@clisp.org>
25629
25630         * lib/netdb.in.h: Include sys/socket.h for platforms without
25631         netdb.h, to get structures like hostent on MinGW.
25632         * modules/netdb (Depends-on): Add sys_socket.
25633
25634 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25635
25636         * modules/netdb, modules/netdb-tests: New file.
25637         * m4/netdb_h.m4: New file.
25638         * lib/netdb.in.h: Add, currently just an empty file pending
25639         definitions.
25640         * tests/test-netdb.c: New file.
25641         * doc/posix-headers/netdb.texi: Mention that we replace it if
25642         needed.
25643         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25644         netdb.
25645
25646 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25647
25648         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25649         with code.
25650
25651 2008-10-13  Bruno Haible  <bruno@clisp.org>
25652
25653         * lib/glthread/cond.c (glthread_cond_wait_func,
25654         glthread_cond_timedwait_func): Add a comment.
25655
25656 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25657
25658         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25659         * tests/test-select.c: Likewise,
25660
25661 2008-10-13  Bruno Haible  <bruno@clisp.org>
25662
25663         * lib/glthread/cond.c (glthread_cond_wait_func,
25664         glthread_cond_timedwait_func): Fix variable name.
25665         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25666
25667 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25668
25669         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25670         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25671         struct sockaddr.sa_len.
25672         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25673
25674 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25675
25676         * build-aux/pmccabe2html: Add css and css_url parameters.
25677
25678 2008-10-12  Bruno Haible  <bruno@clisp.org>
25679
25680         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25681         calling aclx_get.
25682         Reported by Rainer Tammer <tammer@tammer.net>.
25683
25684 2008-10-12  Bruno Haible  <bruno@clisp.org>
25685
25686         Use msvcrt aware primitives for creation/termination of Win32 threads.
25687         * lib/glthread/thread.c: Include <process.h>.
25688         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25689         (wrapper_func): Update signature.
25690         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25691
25692 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25693             Bruno Haible  <bruno@clisp.org>
25694
25695         Provide a Win32 implementation of the 'cond' module.
25696         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25697         * lib/glthread/cond.c (glthread_cond_init_func,
25698         glthread_cond_wait_func, glthread_cond_timedwait_func,
25699         glthread_cond_signal_func, glthread_cond_broadcast_func,
25700         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25701         * modules/cond (Dependencies): Add gettimeofday.
25702
25703 2008-10-11  Bruno Haible  <bruno@clisp.org>
25704
25705         Make sleep work on older versions of mingw.
25706         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25707         only whether it exists.
25708         * doc/posix-functions/sleep.texi: Mention the problem with older
25709         versions of mingw.
25710
25711 2008-10-11  Bruno Haible  <bruno@clisp.org>
25712
25713         New module 'shutdown'.
25714         * modules/shutdown: New file.
25715         * lib/sys_socket.in.h (shutdown): New declaration.
25716         * lib/winsock.c (shutdown): New function.
25717         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25718         GNULIB_SHUTDOWN.
25719         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25720         * doc/posix-functions/shutdown.texi: Document the new module.
25721
25722 2008-10-11  Jim Meyering  <meyering@redhat.com>
25723
25724         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25725
25726 2008-10-11  Bruno Haible  <bruno@clisp.org>
25727
25728         New module 'fclose'.
25729         * modules/fclose: New file.
25730         * lib/stdio.in.h (fclose): New declaration.
25731         * lib/fclose.c: New file.
25732         * m4/fclose.m4: New file.
25733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25734         REPLACE_FCLOSE.
25735         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25736         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25737         REPLACE_FCLOSE.
25738         * modules/close (Depends-on): fclose.
25739         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25740
25741 2008-10-11  Bruno Haible  <bruno@clisp.org>
25742
25743         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25744         set errno and don't call _close.
25745
25746 2008-10-10  Bruno Haible  <bruno@clisp.org>
25747
25748         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25749         ACL, not afterwards. Fixes test failure on Cygwin.
25750
25751 2008-10-09  Ben Pfaff  <blp@gnu.org>
25752
25753         * build-aux/announce-gen: Fix gnulib version related part of usage
25754         message.  Die with a useful error message if no tarballs are
25755         found.
25756
25757 2008-10-10  Jim Meyering  <meyering@redhat.com>
25758
25759         bootstrap: use git's --depth=N option only if it's supported
25760         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25761         recognize the --depth option.  Reported by Pádraig Brady.
25762
25763 2008-10-09  Bruno Haible  <bruno@clisp.org>
25764
25765         New module 'ioctl'.
25766         * modules/ioctl: New file.
25767         * lib/sys_socket.in.h (ioctl): Remove declaration.
25768         * lib/winsock.c: Include <sys/ioctl.h>.
25769         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25770         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25771         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25772         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25773         * doc/posix-functions/ioctl.texi: Mention the new module.
25774
25775 2008-10-09  Bruno Haible  <bruno@clisp.org>
25776
25777         New module 'sys_ioctl'.
25778         * lib/sys_ioctl.in.h: New file.
25779         * m4/sys_ioctl_h.m4: New file.
25780         * modules/sys_ioctl: New file.
25781         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25782
25783 2008-10-09  Bruno Haible  <bruno@clisp.org>
25784
25785         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25786         * lib/winsock.c: Include <stdarg.h>.
25787         (rpl_ioctl): Change to second argument 'int' and then varargs.
25788
25789 2008-10-09  Bruno Haible  <bruno@clisp.org>
25790
25791         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25792         when the sys_socket module is present and the system has <winsock2.h>.
25793
25794 2008-10-09  Bruno Haible  <bruno@clisp.org>
25795
25796         * doc/posix-functions/close.texi: Mention module 'close' instead of
25797         module 'sys_socket'.
25798
25799 2008-10-09  Bruno Haible  <bruno@clisp.org>
25800
25801         * doc/glibc-headers/sys_ioctl.texi: New file.
25802         * doc/gnulib.texi: Include it.
25803
25804 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25805             Bruno Haible  <bruno@clisp.org>
25806
25807         Combine the two replacements of 'close'.
25808         * lib/sys_socket.in.h (close): Define to a reminder to include
25809         <unistd.h>.
25810         (_gl_close_fd_maybe_socket): New declaration.
25811         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25812         * lib/winsock.c (close): Remove undefinition.
25813         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25814         needed for the gnulib module 'close'.
25815         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25816         define to an error symbol or to a warning, if suitable.
25817         * lib/close.c: Include <sys/socket.h>.
25818         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25819         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25820         UNISTD_H_HAVE_WINSOCK2_H.
25821         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25823         UNISTD_H_HAVE_WINSOCK2_H.
25824         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25825         (configure.ac): Set a module indicator.
25826         (Makefile.am): Substitute GNULIB_CLOSE.
25827         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25828         * modules/poll-tests (Depends-on): Add close.
25829         * modules/select-tests (Depends-on): Likewise.
25830
25831 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25832             Bruno Haible  <bruno@clisp.org>
25833
25834         New module 'close'.
25835         * modules/close: New file.
25836         * lib/unistd.in.h (close): Move declaration out of the
25837         FCHDIR_REPLACEMENT scope.
25838         (_gl_unregister_fd): New declaration.
25839         * lib/close.c: New file.
25840         * lib/fchdir.c (rpl_close): Remove function.
25841         * m4/close.m4: New file.
25842         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25843         close.
25844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
25845         REPLACE_CLOSE.
25846         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
25847         REPLACE_CLOSE.
25848         * modules/fchdir (Depends-on): Add close.
25849
25850 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25851             Bruno Haible  <bruno@clisp.org>
25852
25853         * lib/fcntl.in.h (open): Simplify conditionals.
25854         (_gl_register_fd): New declaration.
25855         * lib/fchdir.c (rpl_open): Remove function.
25856         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
25857         also.
25858         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
25859         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25860         open.
25861
25862 2008-10-09  Jim Meyering  <meyering@redhat.com>
25863
25864         GNUmakefile: use the more name-space-friendly "_version"
25865         * top/GNUmakefile (_dummy): Update.
25866         (_version): Rename from "version".
25867
25868 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25869             Bruno Haible  <bruno@clisp.org>
25870
25871         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
25872         rpl_close.
25873         (_gl_register_fd): New function, extracted from rpl_open.
25874         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
25875         (rpl_open, rpl_opendir): Use _gl_register_fd.
25876
25877 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25878
25879         Fix organization of 'open' replacement.
25880         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
25881         (gl_FUNC_OPEN): Use it.
25882         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
25883
25884 2008-10-08  Bruno Haible  <bruno@clisp.org>
25885
25886         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
25887
25888 2008-10-08  Simon Josefsson  <simon@josefsson.org>
25889
25890         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
25891         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
25892         listen).
25893
25894 2008-10-08  Eric Blake  <ebb9@byu.net>
25895
25896         GNUmakefile: add 'make version' target
25897         * top/GNUmakefile (_curr-ver): Split version update rules...
25898         (version): ...into a target.
25899
25900 2008-10-07  Bruno Haible  <bruno@clisp.org>
25901
25902         Use a more portable replacement expression for -0.0L.
25903         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
25904         instead of -0.0L. Fix m4 quotation.
25905
25906         * tests/test-signbit.c: Include <float.h>.
25907         (minus_zero): New variable.
25908         (test_signbitl): Use minus_zero instead of -zero.
25909         * modules/signbit-tests (Depends-on): Add float.
25910
25911         * tests/test-ceill.c: Include <float.h>.
25912         (zero): Remove variable.
25913         (minus_zero): New variable.
25914         (main): Use minus_zero instead of -zero.
25915         * modules/ceill-tests (Depends-on): Add float.
25916
25917         * tests/test-floorl.c: Include <float.h>.
25918         (zero): Remove variable.
25919         (minus_zero): New variable.
25920         (main): Use minus_zero instead of -zero.
25921         * modules/floorl-tests (Depends-on): Add float.
25922
25923         * tests/test-roundl.c: Include <float.h>.
25924         (zero): Remove variable.
25925         (minus_zero): New variable.
25926         (main): Use minus_zero instead of -zero.
25927         * modules/roundl-tests (Depends-on): Add float.
25928
25929         * tests/test-truncl.c: Include <float.h>.
25930         (zero): Remove variable.
25931         (minus_zero): New variable.
25932         (main): Use minus_zero instead of -zero.
25933         * modules/truncl-tests (Depends-on): Add float.
25934
25935         * tests/test-frexpl.c (zero): Remove variable.
25936         (minus_zero): New variable.
25937         (main): Use minus_zero instead of -zero.
25938         * modules/frexpl-tests (Depends-on): Add float.
25939
25940         * tests/test-isnan.c (zerol): Remove variable.
25941         (minus_zerol): New variable.
25942         (test_long_double): Use minus_zerol instead of -zerol.
25943         * modules/isnan-tests (Depends-on): Add float.
25944
25945         * tests/test-isnanl.h (zero): Remove variable.
25946         (minus_zero): New variable.
25947         (main): Use minus_zero instead of -zero.
25948         * modules/isnanl-nolibm-tests (Depends-on): Add float.
25949         * modules/isnanl-tests (Depends-on): Add float.
25950
25951         * tests/test-ldexpl.c (zero): Remove variable.
25952         (minus_zero): New variable.
25953         (main): Use minus_zero instead of -zero.
25954         * modules/ldexpl-tests (Depends-on): Add float.
25955
25956         * tests/test-snprintf-posix.h (zerol): Remove variable.
25957         (minus_zerol): New variable.
25958         (test_function): Use minus_zerol instead of -zerol.
25959         * modules/snprintf-posix-tests (Depends-on): Add float.
25960         * modules/vsnprintf-posix-tests (Depends-on): Add float.
25961
25962         * tests/test-sprintf-posix.h (zerol): Remove variable.
25963         (minus_zerol): New variable.
25964         (test_function): Use minus_zerol instead of -zerol.
25965         * modules/sprintf-posix-tests (Depends-on): Add float.
25966         * modules/vsprintf-posix-tests (Depends-on): Add float.
25967
25968         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
25969         (minus_zerol): New variable.
25970         (test_function): Use minus_zerol instead of -zerol.
25971         * modules/vasnprintf-posix-tests (Depends-on): Add float.
25972
25973         * tests/test-vasprintf-posix.c (zerol): Remove variable.
25974         (minus_zerol): New variable.
25975         (test_function): Use minus_zerol instead of -zerol.
25976         * modules/vasprintf-posix-tests (Depends-on): Add float.
25977
25978 2008-10-07  Simon Josefsson  <simon@josefsson.org>
25979
25980         * MODULES.html.sh (Support for building documentation): Mention
25981         pmccabe2html.  Sort entries.
25982
25983         Add pmccabe2html module, from gnupdf.
25984         * build-aux/pmccabe.css: New file.
25985         * build-aux/pmccabe2html: New file.
25986         * m4/pmccabe2html.m4: New file.
25987         * modules/pmccabe2html: New file.
25988
25989 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
25990
25991         flock: new module
25992         * MODULES.html.sh: Add to list of modules.
25993         * lib/flock.c: flock implementation for Windows and Unix systems
25994         which have fcntl.
25995         * doc/glibc-functions/flock.texi: Update documentation.
25996         * lib/sys_file.in.h: <sys/file.h> header file.
25997         * m4/flock.m4: M4 macros.
25998         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
25999         * modules/flock: flock module.
26000         * modules/flock-tests: flock tests module.
26001         * modules/sys_file: sys/file.h module.
26002         * tests/test-flock.c: test suite for flock.
26003
26004 2008-10-06  Jim Meyering  <meyering@redhat.com>
26005
26006         bootstrap: check for LT_INIT more portably still ;-)
26007         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
26008         Spotted by Bruno Haible.
26009
26010 2008-10-06  Eric Blake  <ebb9@byu.net>
26011
26012         test-signbit: avoid tripping Irix cc bug on -0.0L
26013         * tests/test-signbit.c (minus_zerol): Delete, and replace with
26014         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
26015         entire testsuite consistent and avoids an Irix 6.2 bug.
26016
26017 2008-10-05  Bruno Haible  <bruno@clisp.org>
26018             Jim Meyering  <jim@meyering.net>
26019
26020         Add an option for ignoring EPIPE during close_stdout.
26021         * lib/closeout.h: Include <stdbool.h>.
26022         (close_stdout_set_ignore_EPIPE): New declaration.
26023         * lib/closeout.c: Include <stdbool.h>.
26024         (ignore_EPIPE): New variable.
26025         (close_stdout_set_ignore_EPIPE): New function.
26026         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
26027         * lib/close-stream.c (close_stream): Mention the possible EPIPE
26028         failure.
26029         * modules/closeout (Depends-on): Add stdbool.
26030
26031 2008-10-05  Bruno Haible  <bruno@clisp.org>
26032
26033         * modules/accept: New file.
26034         * modules/bind: New file.
26035         * modules/connect: New file.
26036         * modules/getpeername: New file.
26037         * modules/getsockname: New file.
26038         * modules/getsockopt: New file.
26039         * modules/listen: New file.
26040         * modules/recv: New file.
26041         * modules/recvfrom: New file.
26042         * modules/send: New file.
26043         * modules/sendto: New file.
26044         * modules/setsockopt: New file.
26045         * modules/socket: New file.
26046         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
26047         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26048         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
26049         the particular module is requested. Add a link warning when the
26050         particular module is not requested.
26051         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
26052         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
26053         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
26054         the particular module is requested.
26055         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
26056         gl_SYS_SOCKET_H_DEFAULTS): New macros.
26057         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
26058         * modules/sys_socket (Depends-on): Add link-warning.
26059         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
26060         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
26061         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
26062         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
26063         GL_LINK_WARNING.
26064         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
26065         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
26066         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
26067         * doc/posix-functions/getpeername.texi: Mention the new module
26068         'getpeername'.
26069         * doc/posix-functions/getsockname.texi: Mention the new module
26070         'getsockname'.
26071         * doc/posix-functions/getsockopt.texi: Mention the new module
26072         'getsockopt'.
26073         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
26074         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
26075         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
26076         * doc/posix-functions/send.texi: Mention the new module 'send'.
26077         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
26078         * doc/posix-functions/setsockopt.texi: Mention the new module
26079         'setsockopt'.
26080         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
26081         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
26082         listen, connect, accept.
26083         * modules/select-tests (Depends-on): Likewise.
26084
26085 2008-10-05  Bruno Haible  <bruno@clisp.org>
26086
26087         * lib/winsock.c (strerror): Remove unused #undef.
26088         (rpl_close): Remove unused local variable.
26089
26090         * modules/sys_socket (Depends-on); Add errno.
26091
26092 2008-10-05  Bruno Haible  <bruno@clisp.org>
26093
26094         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
26095         (select): Add a link warning when the 'select' module is not used.
26096         * modules/sys_select (Depends-on): Add link-warning.
26097         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
26098         Suggested by Paolo Bonzini.
26099
26100 2008-10-05  Jim Meyering  <meyering@redhat.com>
26101
26102         bootstrap: check for LT_INIT more portably
26103         * build-aux/bootstrap: Avoid using grep -E, since it's not
26104         portable enough.  Suggestion from Bruno Haible.
26105
26106 2008-10-05  Bruno Haible  <bruno@clisp.org>
26107
26108         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
26109         as being fixed by gnulib.
26110
26111 2008-10-05  Bruno Haible  <bruno@clisp.org>
26112
26113         * modules/select-tests: New file, mostly copied from
26114         modules/sys_select-tests.
26115         * tests/test-select.c: New file, mostly copied from
26116         tests/test-sys_select.c.
26117         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
26118         * modules/sys_select-tests (Depends-on): Remove all dependencies.
26119         (Makefile.am): Remove test_sys_select_LDADD.
26120
26121         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
26122         to an undefined symbol, for an error message.
26123         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
26124         (gl_SYS_SELECT_H_DEFAULTS): New macro.
26125         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
26126         winsock-select.c here.
26127         * modules/sys_select (Files): Remove lib/winsock-select.c.
26128         (Depends-on): Remove alloca.
26129         (Makefile.am): Substitute GNULIB_SELECT.
26130         * modules/select: New file.
26131         * doc/posix-functions/select.texi: Update.
26132
26133 2008-10-05  Bruno Haible  <bruno@clisp.org>
26134
26135         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
26136         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
26137         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
26138         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
26139         getdtablesize.
26140         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
26141         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
26142
26143 2008-10-05  Bruno Haible  <bruno@clisp.org>
26144
26145         * modules/getdtablesize-tests: New file.
26146         * tests/test-getdtablesize.c: New file.
26147
26148         New module 'getdtablesize'.
26149         * lib/unistd.in.h (getdtablesize): New declaration.
26150         * lib/getdtablesize.c: New file.
26151         * m4/getdtablesize.m4: New file.
26152         * modules/getdtablesize: New file.
26153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26154         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
26155         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
26156         HAVE_GETDTABLESIZE.
26157         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
26158
26159 2008-10-05  Bruno Haible  <bruno@clisp.org>
26160
26161         * modules/sched (Makefile.am): Fix typo.
26162         Reported by Simon Josefsson.
26163
26164 2008-10-05  Jim Meyering  <meyering@redhat.com>
26165
26166         bootstrap: check for LT_INIT, too
26167         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
26168         are deprecated.  Suggestion from Ralf Wildenhues.
26169
26170 2008-10-05  Bruno Haible  <bruno@clisp.org>
26171
26172         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
26173         overriding them by ours.
26174         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
26175
26176 2008-10-05  Jim Meyering  <meyering@redhat.com>
26177
26178         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
26179         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
26180         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
26181
26182 2008-10-04  Bruno Haible  <bruno@clisp.org>
26183
26184         * modules/dup2 (License): Change to LGPLv2+.
26185         * modules/sleep (License): Likewise.
26186         * modules/perror (License): Likewise.
26187         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
26188         Blake.
26189         * modules/signal (License): Likewise.
26190         * modules/sigprocmask (License): Likewise.
26191         * modules/raise (License): Change to LGPLv2+, with approval by Jim
26192         Meyering.
26193
26194 2008-10-04  Bruno Haible  <bruno@clisp.org>
26195
26196         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
26197         Reported by Rainer Tammer <tammer@tammer.net>.
26198
26199 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
26200             Bruno Haible  <bruno@clisp.org>
26201
26202         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
26203         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
26204         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
26205
26206 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
26207
26208         filevercmp: new module
26209         * lib/filevercmp.h: New function filevercmp comparing version strings.
26210         * lib/filevercmp.c: Implementation of filevercmp function.
26211         * modules/filevercmp: Module metadata.
26212         * tests/test-filevercmp.c: Unit test for new module.
26213         * modules/filevercmp-tests: Unit test metadata.
26214         * MODULES.html.sh: Add filevercmp module.
26215
26216 2008-10-03  Bruno Haible  <bruno@clisp.org>
26217
26218         * lib/c-ctype.h: Add comment.
26219         Reported by Jim Meyering.
26220
26221 2008-10-02  Bruno Haible  <bruno@clisp.org>
26222
26223         * modules/posix_spawn-internal (Depends-on): Add 'open'.
26224
26225 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26226
26227         * build-aux/bootstrap: Allow renaming bootstrap, and change the
26228         name of bootstrap.conf accordingly.
26229
26230 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26231
26232         * build-aux/bootstrap: Install git-merge-changelog configuration
26233         items into .gitconfig if needed.
26234
26235 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26236
26237         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
26238         git repository, and initialize/update it accordingly.
26239
26240 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
26241
26242         * modules/fsync-tests: New file.
26243         * tests/test-fsync.c: New file.
26244
26245         New module 'fsync'.
26246         * lib/fsync.c: New file.
26247         * m4/fsync.m4: New file.
26248         * modules/fsync: New file.
26249         * lib/unistd.in.h (fsync): New declaration.
26250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
26251         GNULIB_FSYNC and HAVE_FSYNC.
26252         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
26253         * MODULES.html.sh (posix_functions): Add fsync.
26254         * doc/posix-functions/fsync.texi: Mention the new module.
26255
26256 2008-10-02  Jim Meyering  <meyering@redhat.com>
26257
26258         fts.c: sync with similar code from coreutils' remove.c
26259         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
26260         Guard also with "#if defined __linux__", since for now at least,
26261         this code is Linux-kernel-specific.
26262
26263 2008-10-02  Jim Meyering  <meyering@redhat.com>
26264
26265         fts: bug fixes
26266         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
26267         Include <sys/vfs.h>, not <sys/statfs.h>.
26268
26269         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
26270         Include <sys/vfs.h>, not <sys/statfs.h>.
26271
26272 2008-10-01  Bruno Haible  <bruno@clisp.org>
26273
26274         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
26275         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
26276         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
26277         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
26278         * doc/posix-functions/posix_spawnp.texi: Likewise.
26279         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
26280         whether posix_spawn actually works.
26281         * m4/pipe.m4 (gl_PIPE): Likewise.
26282         * modules/execute (Files): Add m4/posix_spawn.m4.
26283         * modules/pipe (Files): Add m4/posix_spawn.m4.
26284         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
26285
26286 2008-10-01  Jim Meyering  <meyering@redhat.com>
26287
26288         remove trailing spaces
26289         * NEWS: Likewise.
26290         * lib/poll.c (poll): Likewise.
26291         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
26292         * lib/winsock.c (rpl_close): Likewise.
26293         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
26294         * modules/yield: Likewise.
26295         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
26296         * tests/test-sys_select.c (connect_to_socket): Likewise.
26297
26298         fts.c: adjust a new interface to be more generally useful
26299         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
26300         (fts_build): Adjust caller.
26301
26302 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26303
26304         * modules/cond-tests: New file.
26305         * tests/test-cond.c: New file.
26306
26307 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26308             Bruno Haible  <bruno@clisp.org>
26309
26310         * modules/cond (Dependencies): Add errno, time.
26311         * lib/glthread/cond.h: Include <time.h>.
26312         (gl_cond_define, gl_cond_define_initialized): Use the same definition
26313         across platforms.
26314
26315 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26316             Bruno Haible  <bruno@clisp.org>
26317
26318         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
26319
26320 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26321             Bruno Haible  <bruno@clisp.org>
26322
26323         * modules/tls-tests (Depends-on): Add thread, yield.
26324         (configure.ac): Remove all checks.
26325         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
26326         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26327         gl_thread_self): Remove definitions. Include glthread/thread.h and
26328         glthread/yield.h instead.
26329         (test_tls): Pass an additional NULL argument to gl_thread_join.
26330
26331 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26332             Bruno Haible  <bruno@clisp.org>
26333
26334         * modules/lock-tests (Depends-on): Add thread, yield.
26335         (configure.ac): Remove all checks.
26336         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
26337         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26338         gl_thread_self): Remove definitions. Include glthread/thread.h and
26339         glthread/yield.h instead.
26340         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
26341         additional NULL argument to gl_thread_join.
26342
26343 2008-09-30  Bruno Haible  <bruno@clisp.org>
26344
26345         Fix the Win32 implementation of the 'thread' module.
26346         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
26347         pointer type.
26348         (gl_thread_self): Invoke gl_thread_self_func.
26349         (gl_thread_self_func): New declaration.
26350         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
26351         (do_init_self_key, init_self_key): New functions.
26352         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
26353         Remove some fields.
26354         (running_threads, running_lock): Remove variables.
26355         (get_current_thread_handle): New function.
26356         (gl_thread_self_func, wrapper_func, glthread_create_func,
26357         glthread_join_func, gl_thread_exit_func): Largely rewritten and
26358         simplified.
26359
26360 2008-09-30  Bruno Haible  <bruno@clisp.org>
26361
26362         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
26363         files.
26364
26365 2008-09-30  Jim Meyering  <meyering@redhat.com>
26366
26367         fts.m4: correct the test for statfs.f_type
26368         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
26369         when checking for statfs.f_type.
26370
26371 2008-09-15  Simon Josefsson  <simon@josefsson.org>
26372
26373         tests: avoid some compiler warnings
26374         * tests/test-memchr.c (main): Pass NULL indirectly.
26375         * tests/test-getdate.c (main): Remove unused variable 'ret'.
26376
26377 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
26378
26379         getdate.y: disallow countable dayshifts like "4 yesterday ago"
26380         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
26381         exactly specified dayshifts.
26382         (dayshift): New rule.
26383         (rel): Add dayshift.
26384         (relative_time_table) [tomorrow, yesterday, today, now]:
26385         Use tDAY_SHIFT in place of tDAY_UNIT.
26386         * tests/test-getdate.c: Add tests for now-disallowed countable
26387         dayshifts, e.g., "4 yesterday ago".
26388
26389 2008-09-29  Bruno Haible  <bruno@clisp.org>
26390
26391         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
26392         * tests/test-posix_spawn1.in.sh: Renamed from
26393         tests/test-posix_spawn.in.sh.
26394         * tests/test-posix_spawn2.c: New file.
26395         * tests/test-posix_spawn2.in.sh: New file.
26396         * modules/posix_spawnp-tests (Files): Update.
26397         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
26398
26399 2008-09-29  Bruno Haible  <bruno@clisp.org>
26400
26401         Propagate effects of putenv/setenv/unsetenv to child processes.
26402         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
26403         * lib/pipe.c (create_pipe): Likewise.
26404
26405 2008-09-29  Bruno Haible  <bruno@clisp.org>
26406
26407         Enable use of shell scripts as executables in mingw.
26408         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
26409         run the program as a shell script.
26410         * lib/pipe.c (create_pipe): Likewise.
26411         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
26412         resulting array.
26413
26414 2008-09-29  Eric Blake  <ebb9@byu.net>
26415
26416         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
26417
26418 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
26419
26420         * doc/posix-functions/accept.texi: Update mingw problems.
26421         * doc/posix-functions/bind.texi: Update mingw problems.
26422         * doc/posix-functions/close.texi: Update mingw problems.
26423         * doc/posix-functions/connect.texi: Update mingw problems.
26424         * doc/posix-functions/getpeername.texi: Update mingw problems.
26425         * doc/posix-functions/getsockname.texi: Update mingw problems.
26426         * doc/posix-functions/getsockopt.texi: Update mingw problems.
26427         * doc/posix-functions/ioctl.texi: Update mingw problems.
26428         * doc/posix-functions/listen.texi: Update mingw problems.
26429         * doc/posix-functions/recv.texi: Update mingw problems.
26430         * doc/posix-functions/recvfrom.texi: Update mingw problems.
26431         * doc/posix-functions/select.texi: Update mingw problems.
26432         * doc/posix-functions/send.texi: Update mingw problems.
26433         * doc/posix-functions/sendto.texi: Update mingw problems.
26434         * doc/posix-functions/setsockopt.texi: Update mingw problems.
26435         * doc/posix-functions/socket.texi: Update mingw problems.
26436
26437 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
26438             Bruno Haible  <bruno@clisp.org>
26439
26440         * lib/sys_select.in.h: Include sys/time.h.
26441         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
26442         * modules/sys_select: Depend on sys_time.
26443         * tests/test-sys_select.c: Test that sys/select.h defines struct
26444         timeval fully.
26445
26446 2008-09-29  Bruno Haible  <bruno@clisp.org>
26447
26448         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
26449         * lib/sys_select.in.h: Likewise.
26450
26451 2008-09-29  Bruno Haible  <bruno@clisp.org>
26452
26453         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
26454
26455 2008-09-29  Bruno Haible  <bruno@clisp.org>
26456
26457         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
26458         Set LIBSOCKET instead of augmenting LIBS.
26459         * modules/sockets (Link): New section.
26460         * modules/sockets-tests (test_sockets_LDADD): New variable.
26461         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
26462         * modules/poll-tests (test_poll_LDADD): New variable.
26463         * NEWS: Document the change.
26464
26465 2008-09-29  Bruno Haible  <bruno@clisp.org>
26466
26467         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
26468         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
26469         ARPA_INET_H directly.
26470         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26471
26472 2008-09-28  Bruno Haible  <bruno@clisp.org>
26473
26474         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
26475         from gl_HEADER_SYS_SOCKET.
26476         (gl_HEADER_SYS_SOCKET): Invoke it.
26477         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26478
26479 2008-09-28  Bruno Haible  <bruno@clisp.org>
26480
26481         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
26482         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
26483         Needed on OSF/1 4.0.
26484
26485 2008-09-28  Bruno Haible  <bruno@clisp.org>
26486
26487         Override open more carefully.
26488         * lib/open.c (orig_open): New function.
26489         (rpl_open): Use orig_open instead of open.
26490         * lib/fcntl.in.h: Add special invocation convention.
26491         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
26492         (gl_FUNC_OPEN): Invoke it.
26493
26494         Override freopen more carefully.
26495         * lib/freopen.c (orig_freopen): New function.
26496         (rpl_freopen): Use orig_freopen instead of freopen.
26497         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
26498         (gl_FUNC_FREOPEN): Invoke it.
26499
26500         Override fopen more carefully.
26501         * lib/fopen.c (orig_fopen): New function.
26502         (rpl_fopen): Use orig_fopen instead of fopen.
26503         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
26504         (gl_FUNC_FOPEN): Invoke it.
26505         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
26506
26507 2008-09-28  Bruno Haible  <bruno@clisp.org>
26508
26509         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
26510         SIGPIPE.
26511
26512 2008-09-28  Bruno Haible  <bruno@clisp.org>
26513
26514         * tests/test-sigaction.c (handler, main): Disable the check whether
26515         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
26516         glibc systems with LinuxThreads.
26517
26518 2008-09-28  Bruno Haible  <bruno@clisp.org>
26519
26520         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
26521
26522         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
26523         with AIX xlc.
26524         * lib/fcntl.in.h (open): Likewise.
26525         Reported by Rainer Tammer <tammer@tammer.net>.
26526
26527 2008-09-28  Bruno Haible  <bruno@clisp.org>
26528
26529         * modules/posix_spawnp-tests: New file.
26530         * tests/test-posix_spawn.c: New file.
26531         * tests/test-posix_spawn.in.sh: New file.
26532
26533         New module 'posix_spawnp'.
26534         * modules/posix_spawnp: New file.
26535         * lib/spawnp.c: New file, from GNU libc with modifications.
26536         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
26537
26538         New module 'posix_spawn'.
26539         * modules/posix_spawn: New file.
26540         * lib/spawn.c: New file, from GNU libc with modifications.
26541         * doc/posix-functions/posix_spawn.texi: Mention the new module.
26542
26543         New module 'posix_spawnattr_destroy'.
26544         * modules/posix_spawnattr_destroy: New file.
26545         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
26546         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
26547         module.
26548
26549         New module 'posix_spawnattr_setsigmask'.
26550         * modules/posix_spawnattr_setsigmask: New file.
26551         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
26552         modifications.
26553         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
26554         new module.
26555
26556         New module 'posix_spawnattr_getsigmask'.
26557         * modules/posix_spawnattr_getsigmask: New file.
26558         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
26559         modifications.
26560         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
26561         new module.
26562
26563         New module 'posix_spawnattr_setsigdefault'.
26564         * modules/posix_spawnattr_setsigdefault: New file.
26565         * lib/spawnattr_setdefault.c: New file, from GNU libc with
26566         modifications.
26567         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
26568         new module.
26569
26570         New module 'posix_spawnattr_getsigdefault'.
26571         * modules/posix_spawnattr_getsigdefault: New file.
26572         * lib/spawnattr_getdefault.c: New file, from GNU libc with
26573         modifications.
26574         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
26575         new module.
26576
26577         New module 'posix_spawnattr_setschedpolicy'.
26578         * modules/posix_spawnattr_setschedpolicy: New file.
26579         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
26580         modifications.
26581         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
26582         new module.
26583
26584         New module 'posix_spawnattr_getschedpolicy'.
26585         * modules/posix_spawnattr_getschedpolicy: New file.
26586         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
26587         modifications.
26588         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
26589         new module.
26590
26591         New module 'posix_spawnattr_setschedparam'.
26592         * modules/posix_spawnattr_setschedparam: New file.
26593         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26594         modifications.
26595         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26596         new module.
26597
26598         New module 'posix_spawnattr_getschedparam'.
26599         * modules/posix_spawnattr_getschedparam: New file.
26600         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26601         modifications.
26602         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26603         new module.
26604
26605         New module 'posix_spawnattr_setpgroup'.
26606         * modules/posix_spawnattr_setpgroup: New file.
26607         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26608         modifications.
26609         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26610         module.
26611
26612         New module 'posix_spawnattr_getpgroup'.
26613         * modules/posix_spawnattr_getpgroup: New file.
26614         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26615         modifications.
26616         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26617         module.
26618
26619         New module 'posix_spawnattr_setflags'.
26620         * modules/posix_spawnattr_setflags: New file.
26621         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26622         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26623         module.
26624
26625         New module 'posix_spawnattr_getflags'.
26626         * modules/posix_spawnattr_getflags: New file.
26627         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26628         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26629         module.
26630
26631         New module 'posix_spawnattr_init'.
26632         * modules/posix_spawnattr_init: New file.
26633         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26634         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26635         module.
26636
26637         New module 'posix_spawn_file_actions_destroy'.
26638         * modules/posix_spawn_file_actions_destroy: New file.
26639         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26640         modifications.
26641         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26642         the new module.
26643
26644         New module 'posix_spawn_file_actions_addopen'.
26645         * modules/posix_spawn_file_actions_addopen: New file.
26646         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26647         modifications.
26648         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26649         the new module.
26650
26651         New module 'posix_spawn_file_actions_adddup2'.
26652         * modules/posix_spawn_file_actions_adddup2: New file.
26653         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26654         modifications.
26655         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26656         the new module.
26657
26658         New module 'posix_spawn_file_actions_addclose'.
26659         * modules/posix_spawn_file_actions_addclose: New file.
26660         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26661         modifications.
26662         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26663         the new module.
26664
26665         New module 'posix_spawn_file_actions_init'.
26666         * modules/posix_spawn_file_actions_init: New file.
26667         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26668         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26669         new module.
26670
26671         New module 'posix_spawn-internal'.
26672         * modules/posix_spawn-internal: New file.
26673         * lib/spawn_int.h: New file, from GNU libc with modifications.
26674         * lib/spawni.c: New file, from GNU libc with modifications.
26675         * m4/posix_spawn.m4: New file.
26676
26677         New module 'spawn'.
26678         * modules/spawn: New file.
26679         * lib/spawn.in.h: New file, from GNU libc with modifications.
26680         * m4/spawn_h.m4: New file.
26681         * doc/posix-headers/spawn.texi: Mention the new module.
26682
26683 2008-09-28  Bruno Haible  <bruno@clisp.org>
26684
26685         * modules/sched-tests: New file.
26686         * tests/test-sched.c: New file.
26687
26688         New module 'sched'.
26689         * modules/sched: New file.
26690         * lib/sched.in.h: New file.
26691         * m4/sched_h.m4: New file.
26692         * doc/posix-headers/sched.texi: Mention the new module.
26693
26694 2008-09-27  Eric Blake  <ebb9@byu.net>
26695
26696         Fix previous patch, and tweak references to $0.
26697         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26698         (func_version, func_gnulib_dir): Don't call this program
26699         gnulib-tool.
26700         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26701         with using $0 in function.
26702         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26703         (func_fatal_error): Reuse the name the user invoked us with.
26704
26705 2008-09-27  Bruno Haible  <bruno@clisp.org>
26706
26707         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26708         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26709         (gl_ICONV_H): Not here.
26710         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26711         instead of assigning ICONV_H directly.
26712
26713         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26715         WCHAR_H directly.
26716
26717 2008-09-27  Bruno Haible  <bruno@clisp.org>
26718
26719         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26720         * modules/arpa_inet (Depends-on): Add link-warning.
26721         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26722         * modules/unistd (Makefile.am): Likewise.
26723
26724 2008-09-26  Bruno Haible  <bruno@clisp.org>
26725
26726         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26727         variables.
26728         (func_version): Essentially copied from gnulib-tool.
26729         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26730         func_readlink): Copied from gnulib-tool.
26731
26732 2008-09-26  Bruno Haible  <bruno@clisp.org>
26733
26734         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26735         invoking git-version-gen.
26736
26737 2008-09-26  Bruno Haible  <bruno@clisp.org>
26738
26739         * posix-modules: Update to directory names changed on 2008-01-19.
26740         Remove commas in output before splitting into words. No more need to
26741         avoid 'ftruncate' since 2007-02-19.
26742
26743 2008-09-26  Bruno Haible  <bruno@clisp.org>
26744
26745         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26746
26747 2008-09-26  Bruno Haible  <bruno@clisp.org>
26748
26749         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26750         * modules/fwriteerror (Depends-on): Add errno.
26751
26752 2008-09-26  Bruno Haible  <bruno@clisp.org>
26753
26754         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26755         * tests/test-vc-list-files-cvs.sh: Likewise.
26756
26757 2008-09-26  Bruno Haible  <bruno@clisp.org>
26758
26759         * doc/posix-headers/sys_resource.texi: Reorder items.
26760
26761 2008-09-26  Jim Meyering  <meyering@redhat.com>
26762
26763         fts: tweak inode comparison function
26764         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26765         inode numbers, as documented.
26766
26767         fts: sort dirent entries on inode number before traversing
26768         This avoids a quadratic, seek-related performance penalty when
26769         operating on a directory containing many entries (measurable at 10k;
26770         3.5 hours at 2 million entries with a cold cache) on certain types
26771         of file systems, including ext3 and ext4, but not tmpfs.
26772         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26773         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26774         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26775         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26776         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26777         (fts_build): Set the stat.st_ino member from D_INO.
26778         If it is likely to be useful, sort dirent entries on inode number.
26779
26780         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26781         and the struct statfs.f_type member.
26782         * modules/fts (Depends-on): Add d-ino.
26783
26784 2008-09-26  Bruno Haible  <bruno@clisp.org>
26785
26786         * modules/sigpipe-die (Depends-on): Add sigpipe.
26787
26788         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26789         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26790         and GNULIB_STDIO_H_SIGPIPE are set.
26791         * lib/stdio-write.c: New file.
26792         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26793         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26794         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26795         REPLACE_STDIO_WRITE_FUNCS.
26796         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26797         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26798         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26799         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26800         * modules/stdio (Files): Add lib/stdio-write.c.
26801         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
26802         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26803         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26804         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26805         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26806         REPLACE_FPRINTF_POSIX.
26807         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26808         REPLACE_PRINTF_POSIX.
26809         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26810         REPLACE_VFPRINTF_POSIX.
26811         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26812         REPLACE_VPRINTF_POSIX.
26813         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26814         SIGPIPE issue.
26815         * doc/posix-functions/fputc.texi: Likewise.
26816         * doc/posix-functions/fputs.texi: Likewise.
26817         * doc/posix-functions/fwrite.texi: Likewise.
26818         * doc/posix-functions/printf.texi: Likewise.
26819         * doc/posix-functions/putc.texi: Likewise.
26820         * doc/posix-functions/putchar.texi: Likewise.
26821         * doc/posix-functions/puts.texi: Likewise.
26822         * doc/posix-functions/vfprintf.texi: Likewise.
26823         * doc/posix-functions/vprintf.texi: Likewise.
26824
26825         * modules/safe-write (Depends-on): Add write.
26826
26827         * modules/sigpipe-tests: New file.
26828         * tests/test-sigpipe.c: New file.
26829         * tests/test-sigpipe.sh: New file.
26830
26831         * modules/write: New file.
26832         * lib/unistd.in.h: Include <sys/types.h>.
26833         (write): New declaration.
26834         * lib/write.c: New file.
26835         * m4/write.m4: New file.
26836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26837         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
26838         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
26839         GNULIB_WRITE, REPLACE_WRITE.
26840         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
26841         and the SIGPIPE issue.
26842
26843         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
26844         (raise): New declaration.
26845         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
26846         (ext_signal): New function.
26847         (rpl_raise): New function.
26848         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26849         GNULIB_SIGNAL_H_SIGPIPE.
26850         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
26851         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
26852
26853         * modules/sigpipe: New file.
26854         * m4/sigpipe.m4: New file.
26855
26856 2008-09-25  Derek Price  <derek@ximbiot.com>
26857             Bruno Haible  <bruno@clisp.org>
26858
26859         * gnulib-tool (func_import): Report all license incompatibilities, not
26860         just the first one.
26861
26862 2008-09-25  Bruno Haible  <bruno@clisp.org>
26863
26864         * gnulib-tool (func_import): When computing the edits, consider not
26865         only the Makefile.ams that exist but also those that will be generated.
26866
26867 2008-09-25  Simon Josefsson  <simon@josefsson.org>
26868
26869         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
26870         fixes gnulib-tool --test warning about duplicate dependency.
26871
26872 2008-09-25  Bruno Haible  <bruno@clisp.org>
26873
26874         * gnulib-tool: Don't ask the user to perform edits in the generated
26875         Makefile.ams.
26876         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
26877         apply to the Makefile.am being generated.
26878         (func_emit_tests_Makefile_am): Execute edits that apply to the
26879         Makefile.am being generated.
26880         (func_import): Setup list of Makefile.am edits before emitting the
26881         Makefile.ams, not at the end.
26882         (func_create_testdir): Update.
26883         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26884
26885 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26886
26887         * gnulib-tool (func_import): Store the --tests-base option in the
26888         comment in gnulib-cache.m4.
26889
26890 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
26891
26892         * NEWS: Document increased portability that sys_select now provides.
26893
26894         * lib/sys_select.in.h: Install select wrapper.
26895         * lib/sys_socket.in.h: Use more descriptive name when there is no
26896         select wrapper.
26897         * lib/winsock-select.c: New.
26898         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
26899         Require gl_HEADER_SYS_SOCKET.
26900         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
26901         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
26902         * tests/test-sys_select.c: Add functional tests.
26903
26904 2008-09-24  Eric Blake  <ebb9@byu.net>
26905
26906         open, fopen: close fd leak in last patch
26907         * lib/open.c (rpl_open): Close fd before returning error.
26908         * lib/fopen.c (rpl_fopen): Close fd before returning error.
26909         * doc/posix-functions/open.texi (open): Document that Irix also
26910         has the bug.
26911         * doc/posix-functions/fopen.texi (fopen): Likewise.
26912         Reported by Paolo Bonzini.
26913
26914 2008-09-24  Bruno Haible  <bruno@clisp.org>
26915
26916         Ensure that a filename ending in a slash cannot be used to access a
26917         non-directory.
26918         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
26919         to check whether it's really a directory.
26920         * lib/fopen.c: Include fcntl.h, unistd.h.
26921         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
26922         and fdopen().
26923         * modules/fopen (Depends-on): Add unistd.
26924         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
26925         * tests/test-fopen.c (main): Likewise.
26926         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
26927         * doc/posix-functions/fopen.texi: Likewise.
26928         Reported by Eric Blake.
26929
26930 2008-09-23  Eric Blake  <ebb9@byu.net>
26931
26932         c-stack: avoid compiler optimizations when provoking overflow
26933         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
26934         recursion harder to optimize, to ensure a stack overflow occurs.
26935         * tests/test-c-stack.c (recurse): Likewise.
26936         Borrowed from libsigsegv.
26937
26938         c-stack: work around Irix sigaltstack bug
26939         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
26940         whether sigaltstack uses wrong end of stack_t (copied in part from
26941         libsigsegv).
26942         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
26943         Irix bug, without requiring an over-allocation.
26944         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
26945         bug.
26946
26947         fopen: document mingw bug on directories
26948         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
26949         not allowing a stream visiting a directory, even though reading
26950         from such a stream is not portable.
26951
26952 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26953
26954         * lib/poll.c: Rewrite.
26955         * modules/poll: Depend on alloca.
26956
26957 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26958
26959         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
26960         instead define prototypes for a full set of wrappers.  Ensure
26961         that Cygwin does not use the compatibility code, which is only
26962         for MinGW.
26963         * lib/winsock.c: New.
26964         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
26965         * modules/sys_socket: Add lib/winsock.c.
26966
26967         * modules/poll-tests: Add errno and perror.
26968         * tests/test-poll.c: Use ioctl, not ioctlsocket.
26969
26970 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26971
26972         * tests/test-poll.c: Downgrade minimum needed Winsock version.
26973
26974 2008-09-23  Bruno Haible  <bruno@clisp.org>
26975
26976         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
26977         * doc/glibc-functions/*: Likewise.
26978
26979 2008-09-23  Simon Josefsson  <simon@josefsson.org>
26980
26981         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
26982         success.
26983
26984 2008-09-22  Eric Blake  <ebb9@byu.net>
26985             Bruno Haible  <bruno@clisp.org>
26986
26987         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
26988         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
26989         supply %A but mishandle pseudo-NaN.
26990         Reported by Simon Josefsson.
26991
26992 2008-09-21  Bruno Haible  <bruno@clisp.org>
26993
26994         * tests/test-lock.c (main): Tweak skip message.
26995         * tests/test-tls.c (main): Likewise.
26996
26997 2008-09-21  Bruno Haible  <bruno@clisp.org>
26998
26999         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
27000         whether 'struct sigaction' has sa_sigaction here...
27001         (gl_PREREQ_SIG_HANDLER_H): ... not here.
27002         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
27003
27004 2008-09-21  Bruno Haible  <bruno@clisp.org>
27005
27006         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
27007         section.
27008         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
27009         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
27010         the new section.
27011         (Support for obsolete systems lacking POSIX:2001): New section.
27012         (String handling <string.h>): Move strdup to the new section.
27013         Suggested by Simon Josefsson and Paolo Bonzini.
27014
27015 2008-09-21  Bruno Haible  <bruno@clisp.org>
27016
27017         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
27018         exponents in %e and %g results on 'long double'. Needed for mingw's
27019         improved *printf functions.
27020         * tests/test-vasprintf-posix.c (test_function): Likewise.
27021         * tests/test-snprintf-posix.h (test_function): Likewise.
27022         * tests/test-sprintf-posix.h (test_function): Likewise.
27023         Reported by Eric Blake.
27024
27025 2008-09-21  Bruno Haible  <bruno@clisp.org>
27026
27027         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
27028         * tests/test-sprintf-posix.h (test_function): Likewise.
27029
27030 2008-09-21  Bruno Haible  <bruno@clisp.org>
27031
27032         * modules/getpass (Depends-on): Add strdup-posix.
27033
27034         New module 'strdup-posix'.
27035         * modules/strdup-posix: New file.
27036         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
27037         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
27038         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27039         REPLACE_STRDUP.
27040         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
27041         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
27042         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27043         strdup-posix.
27044
27045         * modules/strdup (Depends-on): Remove malloc-posix.
27046
27047 2008-09-20  Bruno Haible  <bruno@clisp.org>
27048
27049         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
27050         Wildenhues.
27051
27052 2008-09-20  Bruno Haible  <bruno@clisp.org>
27053
27054         Ensure that wint_t gets defined on IRIX 5.3.
27055         * lib/wchar.in.h (wint_t): Define if not defined by the system.
27056         * lib/wctype.in.h (wint_t): Likewise.
27057         (__wctype_wint_t): Remove type.
27058         (isw*): Use wint_t instead of __wctype_wint_t.
27059         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
27060         * modules/wchar (Files): Add m4/wint_t.m4.
27061         (Makefile.am): Substitute HAVE_WINT_T.
27062         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
27063         * tests/test-wctype.c: Check that wint_t is defined.
27064         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
27065         * doc/posix-headers/wctype.texi: Likewise.
27066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27067
27068 2008-09-18  Bruno Haible  <bruno@clisp.org>
27069
27070         * gnulib-tool (func_exit): Update comment.
27071
27072 2008-09-18  Simon Josefsson  <simon@josefsson.org>
27073
27074         * modules/getaddrinfo (Depends-on): Remove strdup, this module
27075         assumes strdup exists and does not depend on strdup to return
27076         ENOMEM on out of memory conditions.
27077
27078 2008-09-18  Bruno Haible  <bruno@clisp.org>
27079
27080         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
27081         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
27082         digits for the exponent.
27083
27084 2008-09-18  Jim Meyering  <meyering@redhat.com>
27085             Bruno Haible  <bruno@clisp.org>
27086
27087         * lib/vasnprintf.c (decimal_point_char): Define also if
27088         NEED_PRINTF_INFINITE_LONG_DOUBLE.
27089
27090 2008-09-16  Bruno Haible  <bruno@clisp.org>
27091         and Eric Blake  <ebb9@byu.net>
27092
27093         vasnprintf: support Irix 5.3
27094         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
27095         that mishandle long double infinity.
27096         Reported by Tom G. Christensen.
27097
27098 2008-09-16  Bruno Haible  <bruno@clisp.org>
27099
27100         * doc/glibc-functions/scandir.texi: Mention the function is missing on
27101         Solaris 9.
27102         * doc/glibc-functions/alphasort.texi: Likewise.
27103         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
27104
27105 2008-09-16  Jim Meyering  <meyering@redhat.com>
27106
27107         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
27108         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
27109         a umask modification leak out of a subshell.  Otherwise, the
27110         opensolaris /bin/sh would be accepted and thus cause unwarranted
27111         failures in the coreutils test suite.
27112
27113 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
27114
27115         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
27116         to succeed.
27117
27118 2008-09-16  Jim Meyering  <meyering@redhat.com>
27119
27120         avoid spurious test failure when library is built without ACL support
27121         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
27122         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
27123         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
27124         * tests/test-copy-acl.sh: Likewise.
27125
27126 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27127
27128         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
27129         based on character occurrence counts.
27130
27131 2008-09-15  Eric Blake  <ebb9@byu.net>
27132
27133         tests: avoid some compiler warnings
27134         * tests/test-memchr.c (main): Pass NULL indirectly.
27135         * tests/test-closein.c (main): Avoid unused variable.
27136
27137 2008-09-15  Bruno Haible  <bruno@clisp.org>
27138
27139         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
27140         are missing on OpenBSD 4.0 individually.
27141         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27142
27143 2008-09-15  Bruno Haible  <bruno@clisp.org>
27144
27145         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
27146         * doc/posix-functions/strerror.texi: Mention also Cygwin.
27147         * doc/posix-functions/perror.texi: Likewise.
27148         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
27149         is missing.
27150         Reported by Eric Blake.
27151
27152         * lib/errno.in.h: Use replacement values >= 2000.
27153         Reported by Eric Blake.
27154
27155 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27156
27157         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
27158         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
27159         limit.
27160         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
27161         compareseq was aborted.
27162
27163 2008-09-14  Bruno Haible  <bruno@clisp.org>
27164
27165         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
27166         yvec_edit_count.
27167         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
27168         (fstrcmp_bounded): Simplify result computation accordingly.
27169
27170 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27171
27172         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
27173         (fstrcmp): Define in terms of fstrcmp_bounded.
27174         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
27175         lower_bound argument.
27176         Return quickly if the result is certainly < lower_bound.
27177         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
27178
27179 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27180
27181         * lib/diffseq.h (EARLY_ABORT): New macro.
27182         (compareseq): Change return type to bool. Return true when EARLY_ABORT
27183         evaluates to true.
27184
27185 2008-09-14  Bruno Haible  <bruno@clisp.org>
27186
27187         * modules/perror-tests: New file.
27188         * tests/test-perror.sh: New file.
27189         * tests/test-perror.c: New file.
27190
27191         New module 'perror'.
27192         * lib/stdio.in.h (perror): New declaration.
27193         * lib/perror.c: New file.
27194         * m4/perror.m4: New file.
27195         * modules/perror: New file.
27196         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
27197         * doc/posix-functions/perror.texi: Mention the perror module.
27198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
27199         REPLACE_PERROR.
27200         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
27201         REPLACE_PERROR.
27202
27203 2008-09-14  Bruno Haible  <bruno@clisp.org>
27204
27205         * modules/stdio (Makefile.am): Reorder to match the order in
27206         lib/stdio.in.h.
27207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27208
27209 2008-09-13  Bruno Haible  <bruno@clisp.org>
27210
27211         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
27212
27213 2008-09-13  Bruno Haible  <bruno@clisp.org>
27214
27215         Extend strerror to cover the added errno values.
27216         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
27217         (rpl_strerror): Provide error messages for the added errno values and
27218         for the WSA* values.
27219         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
27220         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
27221         strerror.
27222         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
27223         * modules/strerror (Depends-on): Add errno.
27224         * doc/posix-functions/strerror.texi: Document the change.
27225         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
27226         and EOVERFLOW.
27227
27228 2008-09-13  Bruno Haible  <bruno@clisp.org>
27229
27230         * modules/EOVERFLOW: Remove file.
27231         * m4/eoverflow.m4: Remove file.
27232         * modules/EOVERFLOW-tests: Remove file.
27233         * tests/test-EOVERFLOW.c: Remove file.
27234         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
27235         * modules/ftell (Depends-on): Likewise.
27236         * modules/getdelim (Depends-on): Likewise.
27237         * modules/getugroups (Depends-on): Likewise.
27238         * modules/poll (Depends-on): Likewise.
27239         * modules/snprintf (Depends-on): Likewise.
27240         * modules/sprintf-posix (Depends-on): Likewise.
27241         * modules/vasnprintf (Depends-on): Likewise.
27242         * modules/vasprintf (Depends-on): Likewise.
27243         * modules/vfprintf-posix (Depends-on): Likewise.
27244         * modules/vsnprintf (Depends-on): Likewise.
27245         * modules/vsprintf-posix (Depends-on): Likewise.
27246         * modules/xvasprintf (Depends-on): Likewise.
27247         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27248         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
27249         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
27250         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
27251         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27252         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
27253         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
27254         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
27255         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27256         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
27257         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
27258         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
27259         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27260         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
27261         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
27262         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
27263         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27264         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
27265         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
27266         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
27267         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27268         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
27269         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
27270         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
27271         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
27272         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27273         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
27274         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
27275         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
27276         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
27277         * MODULES.html.sh: Remove EOVERFLOW.
27278         * NEWS: Mention the change.
27279
27280 2008-09-13  Bruno Haible  <bruno@clisp.org>
27281
27282         * modules/errno-tests: New file.
27283         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
27284
27285         * lib/errno.in.h: New file.
27286         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
27287         * modules/errno: New file.
27288         * doc/posix-headers/errno.texi: Update documentation.
27289         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
27290
27291 2008-09-13  Bruno Haible  <bruno@clisp.org>
27292
27293         * tests/test-poll.c: Use #if for native Windows, rather than testing
27294         __MSVCRT__.
27295
27296 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27297             Bruno Haible  <bruno@clisp.org>
27298
27299         * lib/glob.c: Don't include <pwd.h> on native Windows.
27300         (WINDOWS32): New macro.
27301         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
27302
27303 2008-09-13  Bruno Haible  <bruno@clisp.org>
27304
27305         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
27306         (ETIMEDOUT): Remove macro.
27307         (glthread_cond_timedwait_multithreaded): New declaration.
27308         (glthread_cond_timedwait): Use it.
27309         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
27310         (glthread_cond_timedwait_multithreaded): New function.
27311
27312 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27313
27314         * modules/poll-tests: Do not check for io.h.
27315         * tests/test-poll.c: Check for __MSVCRT__ instead.
27316
27317 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27318
27319         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
27320         * modules/poll-tests: Add inet_pton, stdbool, sockets.
27321         * tests/test-poll.c: Use them.  Use _pipe on Windows.
27322
27323 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27324
27325         * modules/poll-tests: New.
27326         * tests/test-poll.c: New.
27327
27328 2008-09-12  Eric Blake  <ebb9@byu.net>
27329
27330         frexp: test for NetBSD failure on -0.0
27331         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
27332         not all, bugs from NetBSD 3.0 have been fixed.
27333         * doc/posix-functions/frexp.texi (frexp): Document bug.
27334         Reported by Thomas Klausner.
27335
27336         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
27337         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
27338         literal -0.0.
27339         Reported by Jonathan C. Patschke <jp@centtech.com>.
27340
27341 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27342
27343         * lib/glthread/cond.h: Use dummy implementation also if
27344         USE_WIN32_THREADS.
27345
27346 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27347
27348         * modules/fnmatch-posix (License): Change to LGPLv2+.
27349         * modules/fnmatch-gnu (License): Likewise.
27350
27351 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27352
27353         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
27354
27355 2008-09-11  Jim Meyering  <meyering@redhat.com>
27356
27357         * users.txt: Add gtk-vnc.
27358
27359 2008-09-08  Simon Josefsson  <simon@josefsson.org>
27360
27361         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
27362         rotate amounts.
27363
27364         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
27365         required for 16-bit and 8-bit rotates.
27366         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
27367         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
27368         UINT8_MAX instead of hard-coded constants.
27369         Suggested by Paul Eggert.
27370
27371 2008-09-07  Bruno Haible  <bruno@clisp.org>
27372
27373         * tests/test-striconveh.c (main): Check behaviour when converting from
27374         UTF-7.
27375
27376         Make striconveh work better with stateful encodings.
27377         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
27378         that iconv does not increment the inptr when returning -1/EINVAL.
27379
27380 2008-09-07  Bruno Haible  <bruno@clisp.org>
27381
27382         * build-aux/config.rpath: Update according to libtool-2.2.6.
27383         * build-aux/config.libpath: Likewise.
27384
27385 2008-09-06  Bruno Haible  <bruno@clisp.org>
27386
27387         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
27388         * lib/freadptr.c (freadptr): Likewise.
27389         * lib/freadseek.c (freadptrinc): Likewise.
27390         Reported by Simon Josefsson.
27391
27392 2008-09-06  Bruno Haible  <bruno@clisp.org>
27393
27394         * modules/freadptr (License): Change to LGPLv2+.
27395         * modules/freadseek (License): Likewise.
27396         Suggested by Eric Blake.
27397
27398         * modules/memchr2 (License): Change to LGPLv2+.
27399         Approved by Eric Blake.
27400
27401 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27402             Bruno Haible  <bruno@clisp.org>
27403
27404         Make gnulib-tool work with native 'sed' on AIX.
27405         * gnulib-tool (sed_noop): New variable.
27406         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
27407         func_add_or_update, func_create_testdir): Use it to initialize sed
27408         script variables.
27409         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27410
27411 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
27412             Bruno Haible  <bruno@clisp.org>
27413
27414         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
27415         also works after #include directives.
27416
27417 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
27418
27419         getdate.y: reject an out-of-range timezone value
27420         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
27421         the range [-24...+24].  When specified with only one or two digits,
27422         * tests/test-getdate.c: Tests for the fix.
27423         * doc/getdate.texi: Document this change.
27424
27425 2008-09-03  Bruno Haible  <bruno@clisp.org>
27426
27427         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
27428
27429 2008-09-02  Simon Josefsson  <simon@josefsson.org>
27430
27431         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
27432         <bruce.korb@gmail.com> with ideas from Ben Pfaff
27433         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
27434         Blake <ebb9@byu.net>.
27435
27436         * tests/test-bitrotate.c: Add more test vectors.
27437
27438 2008-09-02  Eric Blake  <ebb9@byu.net>
27439
27440         vasnprintf-posix: handle large precision via %.*d
27441         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
27442         when handling it ourselves.
27443         * tests/test-vasnprintf-posix.c (test_function): Add test.
27444         * tests/test-snprintf-posix.h (test_function): Likewise.
27445         * tests/test-sprintf-posix.h (test_function): Likewise.
27446         * tests/test-vasprintf-posix.c (test_function): Likewise.
27447         Reported by Alain Guibert.
27448
27449 2008-09-01  Eric Blake  <ebb9@byu.net>
27450
27451         c-stack: make configure-time check more robust
27452         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
27453         successful sigaction call.
27454         Reported by Tom G. Christensen.
27455
27456 2008-09-01  Bruno Haible  <bruno@clisp.org>
27457
27458         New module 'findprog-lgpl'.
27459         * modules/findprog-lgpl: New file.
27460         * lib/findprog-lgpl.c: New file.
27461         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
27462         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
27463         to decide whether to use strdup or xstrdup, concatenated_filename or
27464         xconcatenated_filename.
27465
27466 2008-09-01  Bruno Haible  <bruno@clisp.org>
27467
27468         Split module 'concat-filename' into 'concat-filename' (LGPL) and
27469         'xconcat-filename' (GPL).
27470         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
27471         (License): Change to LGPLv2+.
27472         * modules/xconcat-filename: New file.
27473         * lib/concat-filename.h (concatenated_filename): Change specification.
27474         (xconcatenated_filename): New declaration.
27475         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
27476         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
27477         memory situations.
27478         * lib/xconcat-filename.c: New file.
27479         * NEWS: Mention the change.
27480         * lib/findprog.c: Include concat-filename.h, not filename.h.
27481         (find_in_path): Use xconcatenated_filename instead of
27482         concatenated_filename.
27483         * lib/javacomp.c: Include concat-filename.h, not filename.h.
27484         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27485         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27486         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27487         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
27488         instead of concatenated_filename.
27489         * lib/javaexec.c: Include concat-filename.h, not filename.h.
27490         (execute_java_class): Use xconcatenated_filename instead of
27491         concatenated_filename.
27492         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
27493         * modules/javacomp (Depends-on): Likewise.
27494         * modules/javaexec (Depends-on): Likewise.
27495
27496 2008-09-01  Bruno Haible  <bruno@clisp.org>
27497
27498         Split module 'filename' into 'filename' and 'concat-filename'.
27499         * modules/filename: Keep only lib/filename.h.
27500         (License): Change to LGPLv2+.
27501         * modules/concat-filename: New file, extracted from modules/filename.
27502         * lib/filename.h (concatenated_filename): Remove declaration.
27503         * lib/concat-filename.h: New file, extracted from lib/filename.h.
27504         * lib/concat-filename.c: Include concat-filename.h.
27505         * NEWS: Mention the change.
27506
27507 2008-09-01  Simon Josefsson  <simon@josefsson.org>
27508
27509         * lib/bitrotate.h (rotl8, rotr8): Add.
27510
27511         * modules/bitrotate (configure.ac): Need
27512         AC_REQUIRE([AC_C_INLINE]).
27513         (Description): Mention stdint.h.  Reported by Bruno Haible
27514         <bruno@clisp.org>.
27515
27516         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
27517         Paolo Bonzini <bonzini@gnu.org>.
27518
27519 2008-08-31  Bruno Haible  <bruno@clisp.org>
27520
27521         Assume Solaris specific bi-arch conventions on Solaris systems.
27522         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
27523         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
27524         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
27525         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
27526         like acl_libdirstem.
27527         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
27528         acl_libdirstem.
27529         * NEWS: Mention the change.
27530         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
27531
27532 2008-08-31  Jim Meyering  <meyering@redhat.com>
27533
27534         * lib/strftime.h: Add comments describing the two added arguments.
27535
27536         remove duplicate #include directives
27537         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
27538         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
27539
27540 2008-08-31  Bruno Haible  <bruno@clisp.org>
27541
27542         New module 'sigpipe-die'.
27543         * modules/sigpipe-die: New file.
27544         * lib/sigpipe-die.h: New file.
27545         * lib/sigpipe-die.c: New file.
27546         * MODULES.html.sh (Signal handling): Add sigpipe-die.
27547
27548 2008-08-31  Bruno Haible  <bruno@clisp.org>
27549
27550         Don't override previously installed signal handlers.
27551         * lib/fatal-signal.c (saved_sigactions): New variable.
27552         (uninstall_handlers): Reset the signal to the saved handler, not
27553         to SIG_DFL (except when ignored).
27554         (install_handlers): Save the previous handlers.
27555
27556 2008-08-30  Bruno Haible  <bruno@clisp.org>
27557
27558         * gnulib-tool (func_reset_sigpipe): New function.
27559         (func_get_automake_snippet, func_modules_transitive_closure,
27560         func_import): Invoke it before a join command that reads from stdin,
27561         to avoid "echo: write error: Broken pipe" error messages on stderr.
27562         Reported by Sam Steingold <sds@gnu.org>.
27563
27564 2008-08-30  Bruno Haible  <bruno@clisp.org>
27565
27566         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
27567         Code copied from m4/open.m4.
27568         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
27569         access and the filename ends in a slash. Code copied from lib/open.c.
27570         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
27571         * tests/test-fopen.c (main): Check against bug with trailing slash.
27572
27573 2008-08-29  Bruno Haible  <bruno@clisp.org>
27574
27575         Avoid some "gcc -pedantic" warnings.
27576         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
27577         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
27578         * lib/dirent.in.h: Likewise.
27579         * lib/fcntl.in.h: Likewise.
27580         * lib/float.in.h: Likewise.
27581         * lib/iconv.in.h: Likewise.
27582         * lib/inttypes.in.h: Likewise.
27583         * lib/locale.in.h: Likewise.
27584         * lib/math.in.h: Likewise.
27585         * lib/netinet_in.in.h: Likewise.
27586         * lib/search.in.h: Likewise.
27587         * lib/signal.in.h: Likewise.
27588         * lib/stdarg.in.h: Likewise.
27589         * lib/stdint.in.h: Likewise.
27590         * lib/stdio.in.h: Likewise.
27591         * lib/stdlib.in.h: Likewise.
27592         * lib/string.in.h: Likewise.
27593         * lib/strings.in.h: Likewise.
27594         * lib/sys_select.in.h: Likewise.
27595         * lib/sys_socket.in.h: Likewise.
27596         * lib/sys_stat.in.h: Likewise.
27597         * lib/sys_time.in.h: Likewise.
27598         * lib/sysexits.in.h: Likewise.
27599         * lib/time.in.h: Likewise.
27600         * lib/unistd.in.h: Likewise.
27601         * lib/wchar.in.h: Likewise.
27602         * lib/wctype.in.h: Likewise.
27603         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27604         * modules/fchdir (Makefile.am): Likewise.
27605         * modules/fcntl (Makefile.am): Likewise.
27606         * modules/float (Makefile.am): Likewise.
27607         * modules/iconv_open (Makefile.am): Likewise.
27608         * modules/inttypes (Makefile.am): Likewise.
27609         * modules/locale (Makefile.am): Likewise.
27610         * modules/math (Makefile.am): Likewise.
27611         * modules/netinet_in (Makefile.am): Likewise.
27612         * modules/search (Makefile.am): Likewise.
27613         * modules/signal (Makefile.am): Likewise.
27614         * modules/stdarg (Makefile.am): Likewise.
27615         * modules/stdint (Makefile.am): Likewise.
27616         * modules/stdio (Makefile.am): Likewise.
27617         * modules/stdlib (Makefile.am): Likewise.
27618         * modules/string (Makefile.am): Likewise.
27619         * modules/strings (Makefile.am): Likewise.
27620         * modules/sys_select (Makefile.am): Likewise.
27621         * modules/sys_socket (Makefile.am): Likewise.
27622         * modules/sys_stat (Makefile.am): Likewise.
27623         * modules/sys_time (Makefile.am): Likewise.
27624         * modules/sysexits (Makefile.am): Likewise.
27625         * modules/time (Makefile.am): Likewise.
27626         * modules/unistd (Makefile.am): Likewise.
27627         * modules/wchar (Makefile.am): Likewise.
27628         * modules/wctype (Makefile.am): Likewise.
27629         Reported by Reuben Thomas <rrt@sc3d.org>.
27630
27631 2008-08-29  Bruno Haible  <bruno@clisp.org>
27632
27633         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27634         any more.
27635
27636 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27637
27638         * MODULES.html.sh (Misc): Add bitrotate.
27639
27640         * modules/bitrotate: New file.
27641
27642         * lib/bitrotate.h: New file.
27643
27644         * modules/bitrotate-tests: New file.
27645
27646         * tests/test-bitrotate.c: New file.
27647
27648         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27649         on the bitrotate module.
27650
27651         * lib/arctwo.c: Use new bitrotate module.
27652
27653 2008-08-29  Jim Meyering  <meyering@redhat.com>
27654
27655         bootstrap: merge changes from coreutils
27656         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27657         of copied files.  Remove a kludge, now that this is fixed.
27658         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27659         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27660         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27661
27662 2008-08-29  Bruno Haible  <bruno@clisp.org>
27663
27664         * MODULES.html.sh: Remove --cvs-urls option.
27665
27666 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27667
27668         maint.mk: adjust to file name change
27669         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27670
27671 2008-08-28  Jim Meyering  <meyering@redhat.com>
27672
27673         * modules/getndelim2 (License): Relicense to LGPLv2+.
27674         Approved by Richard Stallman for the version of 1995, and by
27675         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27676
27677 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27678
27679         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27680         dummy if one is not available.  Do not touch them if
27681         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27682         (getc_maybe_unlocked): New.
27683         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27684
27685 2008-08-26  Eric Blake  <ebb9@byu.net>
27686
27687         doc/INSTALL: resync from autoconf
27688         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27689         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27690         moving...
27691         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27692         * INSTALL: Regenerate.
27693         * INSTALL.ISO: New file.
27694         * INSTALL.UTF-8: Likewise.
27695
27696 2008-08-26  Jim Meyering  <meyering@redhat.com>
27697
27698         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27699         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27700         these definitions conditional, so that they may be overridden, too.
27701
27702 2008-08-26  Bruno Haible  <bruno@clisp.org>
27703
27704         Generate INSTALL file variants with prettier quotes.
27705         * doc/Makefile (INSTALL_PRELUDE): New macro.
27706         (INSTALL): Use it.
27707         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27708
27709 2008-08-26  Bruno Haible  <bruno@clisp.org>
27710
27711         Run makeinfo in an English locale.
27712         * doc/Makefile (MAKEINFO): New variable.
27713
27714 2008-08-26  Bruno Haible  <bruno@clisp.org>
27715
27716         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27717         Suggested by Eric Blake.
27718
27719 2008-08-25  Bruno Haible  <bruno@clisp.org>
27720
27721         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27722
27723 2008-08-25  Eric Blake  <ebb9@byu.net>
27724
27725         c-stack: test that stack overflow can be caught
27726         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27727         that platform allows handling stack overflow; at least OS/2 EMX
27728         has sigaltstack, but crashes before transferring control to
27729         handler on stack overflow.
27730         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27731         check for HAVE_STACK_OVERFLOW_HANDLING.
27732         Reported by Elbert Pol.
27733
27734 2008-08-25  Bruno Haible  <bruno@clisp.org>
27735
27736         * doc/posix-functions/strftime.texi: Fix description of strftime
27737         module.
27738
27739 2008-08-24  Bruno Haible  <bruno@clisp.org>
27740
27741         * tests/uniwidth/test-uc_width2.c: New file.
27742         * tests/uniwidth/test-uc_width2.sh: New file.
27743         * modules/uniwidth/width-tests (Files): Add the new files.
27744         (TESTS): Add uniwidth/test-uc_width2.sh.
27745         (TESTS_ENVIRONMENT): New variable.
27746         (check_PROGRAMS): Add test-uc_width2.
27747         (test_uc_width2_SOURCES): New variable.
27748
27749         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27750         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27751         not 0x00AB.
27752         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27753
27754 2008-08-22  Eric Blake  <ebb9@byu.net>
27755
27756         test-lock, test-tls: mention why a test is skipped
27757         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27758         skipped.
27759         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27760
27761         count-one-bits: relax license
27762         * modules/count-one-bits (License): Relicense to LGPLv2+.
27763         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27764
27765 2008-08-22  Andreas Schwab  <schwab@suse.de>
27766
27767         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27768         Remove spurious space in assignment.
27769
27770 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27771
27772         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27773         Paul Eggert <eggert@CS.UCLA.EDU>.
27774
27775 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27776
27777         * modules/gettext: Add m4/threadlib.m4.
27778
27779 2008-08-19  Eric Blake  <ebb9@byu.net>
27780
27781         test-c-stack: fix compilation failure on FreeBSD 5.0
27782         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27783         headers before <sys/resource.h>.
27784         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27785         the bug.
27786         Reported by Nelson H. F. Beebe.
27787
27788         strverscmp: migrate from "strverscmp.h" to <string.h>
27789         * modules/string (Makefile.am): Add new hooks.
27790         * modules/strverscmp (Files): Remove strverscmp.h.
27791         (Depends-on): Add string.
27792         (configure.ac): Add indicator.
27793         (Include): Mention new header.
27794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27795         defaults.
27796         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27797         results.
27798         * lib/strverscmp.h: Delete.
27799         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27800         * tests/test-strverscmp.c (includes): Adjust client.
27801         * lib/check-version.c (includes): Likewise.
27802         * NEWS: Document the change.
27803
27804         strverscmp: add unit test
27805         * modules/strverscmp-tests: New file.
27806         * tests/test-strverscmp.c: Likewise.
27807
27808 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27809
27810         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27811         regarding Windows crypto stuff, from Mono.
27812
27813 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27814
27815         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27816         if present, for intel RND.  Return error on failures.
27817
27818 2008-08-18  Ben Pfaff  <blp@gnu.org>
27819
27820         gitlog-to-changelog: give better diagnostic for failed pipe-open
27821         * build-aux/gitlog-to-changelog: Improve error message: suggest
27822         that the version of Git may be too old.
27823
27824 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27825
27826         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27827         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27828
27829 2008-08-18  Bruno Haible  <bruno@clisp.org>
27830
27831         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27832         pthread_in_use().
27833
27834 2008-08-18  Bruno Haible  <bruno@clisp.org>
27835
27836         * lib/glthread/threadlib.c: Include <pthread.h>.
27837
27838 2008-08-18  Bruno Haible  <bruno@clisp.org>
27839
27840         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
27841         glthread_recursive_lock_* macros.
27842         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
27843         Fix syntax error.
27844
27845 2008-08-18  Bruno Haible  <bruno@clisp.org>
27846
27847         * lib/glthread/thread.c: Avoid forcing a context switch right after
27848         thread creation.
27849
27850 2008-08-17  Bruno Haible  <bruno@clisp.org>
27851
27852         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
27853         * lib/glthread/thread.h: Provide Win32 specific implementation.
27854         * modules/thread (Files): Add lib/glthread/thread.c.
27855         (Depends-on): Add lock.
27856         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
27857
27858 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27859
27860         New module 'yield'.
27861         * modules/yield: New file.
27862         * lib/glthread/yield.h: New file.
27863         * m4/yield.m4: New file.
27864         * MODULES.html.sh (Multithreading): Add yield.
27865
27866 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27867
27868         New module 'thread'.
27869         * modules/thread: New file.
27870         * lib/glthread/thread.h: New file.
27871         * m4/thread.m4: New file.
27872         * MODULES.html.sh (Multithreading): Add thread.
27873
27874 2008-08-17  Bruno Haible  <bruno@clisp.org>
27875
27876         * lib/glthread/lock.h: Include <stdlib.h> always.
27877         * lib/glthread/tls.h: Likewise.
27878         * lib/glthread/cond.h: Likewise.
27879
27880 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27881
27882         New module 'cond'.
27883         * modules/cond: New file.
27884         * lib/glthread/cond.h: New file.
27885         * lib/glthread/cond.c: New file.
27886         * m4/cond.m4: New file.
27887         * MODULES.html.sh (Multithreading): Add cond.
27888
27889 2008-08-16  Eric Blake  <ebb9@byu.net>
27890
27891         c-stack: fix regression on Irix 5.3 from 2008-06-21
27892         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
27893         sa_sigaction...
27894         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
27895         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
27896         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
27897         * modules/signal (Makefile.am): Use the value.
27898         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
27899         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
27900         * doc/posix-headers/signal.texi (signal.h): Document this
27901         portability issue.
27902         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
27903         Reported by Tom G. Christensen.
27904
27905 2008-08-17  Bruno Haible  <bruno@clisp.org>
27906
27907         New module 'threadlib'.
27908         * modules/threadlib: New file.
27909         * lib/glthread/threadlib.c: New file, extracted from
27910         lib/glthread/lock.c.
27911         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
27912         functions.
27913         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
27914         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
27915         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
27916         macros.
27917         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
27918         (gl_DISABLE_THREADS): Remove macro.
27919         * modules/lock (Files): Remove build-aux/config.rpath.
27920         (Depends-on): Remove havelib. Add threadlib.
27921         (configure.ac-early): Remove section.
27922         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
27923         * modules/tls (Depends-on): Remove lock. Add threadlib.
27924         (Link): New section, copied from threadlib.
27925         * MODULES.html.sh (Multithreading): Add threadlib.
27926
27927 2008-08-14  Bruno Haible  <bruno@clisp.org>
27928
27929         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
27930         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
27931         glthread_rwlock_unlock, glthread_rwlock_destroy,
27932         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
27933         glthread_recursive_lock_destroy): Define as macros always.
27934         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
27935         glthread_lock_lock.
27936         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
27937         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
27938         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
27939         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
27940         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
27941         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
27942         (glthread_recursive_lock_lock_func): Renamed from
27943         glthread_recursive_lock_lock.
27944         (glthread_recursive_lock_unlock_func): Renamed from
27945         glthread_recursive_lock_unlock.
27946         (glthread_recursive_lock_destroy_func): Renamed from
27947         glthread_recursive_lock_destroy.
27948
27949 2008-08-14  Bruno Haible  <bruno@clisp.org>
27950
27951         * lib/glthread/lock.h: Renamed from lib/lock.h.
27952         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
27953         * lib/glthread/tls.h: Renamed from lib/tls.h.
27954         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
27955         * lib/fstrcmp.c: Update includes.
27956         * lib/strsignal.c: Update includes.
27957         * modules/lock (Files, Makefile.am): Update.
27958         (Include): Change to "glthread/lock.h".
27959         * modules/tls (Files, Makefile.am): Update.
27960         (Include): Change to "glthread/tls.h".
27961         * tests/test-lock.c: Update includes.
27962         * tests/test-tls.c: Update includes.
27963         * NEWS: Mention the renamed header files.
27964
27965 2008-08-11  Jim Meyering  <meyering@redhat.com>
27966
27967         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
27968
27969 2008-08-11  Eric Blake  <ebb9@byu.net>
27970
27971         test-c-stack: avoid C99-ism
27972         * tests/test-c-stack.c (main): Fix whitespace, move declaration
27973         before statement.
27974         Reported by Alain Guibert.
27975
27976 2008-08-10  Jim Meyering  <meyering@redhat.com>
27977
27978         ensure that return value of uinttostr et al are not ignored
27979         * lib/inttostr.h (__GNUC_PREREQ): Define.
27980         (__attribute_warn_unused_result__): Define.
27981         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
27982
27983 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
27984
27985         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
27986         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
27987
27988 2008-08-07  Jim Meyering  <meyering@redhat.com>
27989
27990         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
27991
27992         * modules/mkstemp (License): Relicense under LGPLv2+.
27993         * modules/tempname (License): Likewise.
27994
27995 2008-08-06  Bruno Haible  <bruno@clisp.org>
27996
27997         * lib/poll.c (poll): Further micro-optimization.
27998
27999 2008-08-06  Jim Meyering  <meyering@redhat.com>
28000
28001         inet_pton.c: use locale-independent tolower
28002         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
28003         (inet_pton6): Use c_tolower rather than tolower.
28004         * modules/inet_pton (Depends-on): Add c-ctype.
28005
28006 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
28007
28008         * lib/poll.c (poll): Avoid division when timeout is 0, cache
28009         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
28010
28011 2008-08-06  Jim Meyering  <meyering@redhat.com>
28012
28013         * modules/inet_pton (License): Relicense under LGPLv2+.
28014
28015 2008-08-03  Bruno Haible  <bruno@clisp.org>
28016
28017         Additional non-aborting API for lock and tls.
28018         * lib/lock.h: Include <errno.h>.
28019         (glthread_lock_init): New macro/function.
28020         (gl_lock_init): Define as wrapper around glthread_lock_init.
28021         (glthread_lock_lock): New macro/function.
28022         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
28023         (glthread_lock_unlock): New macro/function.
28024         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
28025         (glthread_lock_destroy): New macro/function.
28026         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
28027         (glthread_rwlock_init): New macro/function.
28028         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
28029         (glthread_rwlock_rdlock): New macro/function.
28030         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
28031         (glthread_rwlock_wrlock): New macro/function.
28032         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
28033         (glthread_rwlock_unlock): New macro/function.
28034         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
28035         (glthread_rwlock_destroy): New macro/function.
28036         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
28037         (glthread_recursive_lock_init): New macro/function.
28038         (gl_recursive_lock_init): Define as wrapper around
28039         glthread_recursive_lock_init.
28040         (glthread_recursive_lock_lock): New macro/function.
28041         (gl_recursive_lock_lock): Define as wrapper around
28042         glthread_recursive_lock_lock.
28043         (glthread_recursive_lock_unlock): New macro/function.
28044         (gl_recursive_lock_unlock): Define as wrapper around
28045         glthread_recursive_lock_unlock.
28046         (glthread_recursive_lock_destroy): New macro/function.
28047         (gl_recursive_lock_destroy): Define as wrapper around
28048         glthread_recursive_lock_destroy.
28049         (glthread_once): New macro/function.
28050         (gl_once): Define as wrapper around glthread_once.
28051         Update function declarations.
28052         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
28053         glthread_rwlock_init. Return error code.
28054         (glthread_rwlock_rdlock_multithreaded): Renamed from
28055         glthread_rwlock_rdlock. Return error code.
28056         (glthread_rwlock_wrlock_multithreaded): Renamed from
28057         glthread_rwlock_wrlock. Return error code.
28058         (glthread_rwlock_unlock_multithreaded): Renamed from
28059         glthread_rwlock_unlock. Return error code.
28060         (glthread_rwlock_destroy_multithreaded): Renamed from
28061         glthread_rwlock_destroy. Return error code.
28062         (glthread_recursive_lock_init_multithreaded): Renamed from
28063         glthread_recursive_lock_init. Return error code.
28064         (glthread_recursive_lock_lock_multithreaded): Renamed from
28065         glthread_recursive_lock_lock. Return error code.
28066         (glthread_recursive_lock_unlock_multithreaded): Renamed from
28067         glthread_recursive_lock_unlock. Return error code.
28068         (glthread_recursive_lock_destroy_multithreaded): Renamed from
28069         glthread_recursive_lock_destroy. Return error code.
28070         (glthread_once_call): Make static.
28071         (glthread_once_multithreaded): Renamed from glthread_once.
28072         * lib/tls.h: Include <errno.h>.
28073         (glthread_tls_key_init): New macro/function.
28074         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
28075         (glthread_tls_set): New macro/function.
28076         (gl_tls_set): Define as wrapper around glthread_tls_set.
28077         (glthread_tls_key_destroy): New macro/function.
28078         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
28079         Update function declarations.
28080         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
28081         glthread_tls_get.
28082         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28083
28084 2008-08-04  Eric Blake  <ebb9@byu.net>
28085
28086         gnumakefile: use space, not TAB, outside of targets
28087         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
28088
28089 2008-08-02  Jim Meyering  <meyering@redhat.com>
28090
28091         getdate.y: avoid locale-dependent date parsing failure
28092         In Turkish locales, getdate would fail to recognize keywords
28093         containing a lowercase "i".  The solution is not to rely on
28094         locale-sensitive case-conversion.
28095         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
28096         (lookup_word): Use c_toupper in place of toupper.
28097         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
28098         Reported by Vefa Bicakci <bicave@superonline.com> in
28099         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
28100         * modules/getdate (Depends-on): Add c-ctype.
28101
28102 2008-08-02  Bruno Haible  <bruno@clisp.org>
28103
28104         * gnulib-tool (func_import): When updating or creating a .gitignore
28105         file, prepend each added line with a slash, and ignore leading slashes
28106         from the existing lines.
28107         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28108
28109 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28110
28111         Portability fix for GNU make 3.79.1.
28112         * top/GNUmakefile: Avoid 'else COND', which older GNU make
28113         versions do not understand.
28114
28115 2008-08-01  Bruno Haible  <bruno@clisp.org>
28116
28117         Work around bug of HP-UX 10.20 cc with -0.0 literal.
28118         * tests/test-isnanf.h (zero): New variable.
28119         (main): Avoid literal -0.0f.
28120         * tests/test-isnand.h (zero): New variable.
28121         (main): Avoid literal -0.0.
28122         * tests/test-isnanl.h (zero): New variable.
28123         (main): Avoid literal -0.0L.
28124         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
28125         (test_float, test_double, test_long_double): Avoid literals -0.0f,
28126         -0.0, -0.0L.
28127         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
28128         (test_signbitd): Avoid literal -0.0.
28129         (test_signbitl): Avoid literal -0.0L.
28130         * tests/test-ceilf1.c (zero): New variable.
28131         (main): Avoid literal -0.0f.
28132         * tests/test-ceill.c (zero): New variable.
28133         (main): Avoid literal -0.0L.
28134         * tests/test-floorf1.c (zero): New variable.
28135         (main): Avoid literal -0.0f.
28136         * tests/test-floorl.c (zero): New variable.
28137         (main): Avoid literal -0.0L.
28138         * tests/test-roundf1.c (zero): New variable.
28139         (main): Avoid literal -0.0f.
28140         * tests/test-round1.c (zero): New variable.
28141         (main): Avoid literal -0.0.
28142         * tests/test-roundl.c (zero): New variable.
28143         (main): Avoid literal -0.0L.
28144         * tests/test-truncf1.c (zero): New variable.
28145         (main): Avoid literal -0.0f.
28146         * tests/test-trunc1.c (zero): New variable.
28147         (main): Avoid literal -0.0.
28148         * tests/test-truncl.c (zero): New variable.
28149         (main): Avoid literal -0.0L.
28150         * tests/test-frexp.c (zero): New variable.
28151         (main): Avoid literal -0.0.
28152         * tests/test-frexpl.c (zero): New variable.
28153         (main): Avoid literal -0.0L.
28154         * tests/test-ldexpl.c (zero): New variable.
28155         (main): Avoid literal -0.0L.
28156         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28157         (zerod, zerol): New variables.
28158         (test_function): Avoid literals -0.0, -0.0L.
28159         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28160         (zerod, zerol): New variables.
28161         (test_function): Avoid literals -0.0, -0.0L.
28162         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28163         (zerod, zerol): New variables.
28164         (test_function): Avoid literals -0.0, -0.0L.
28165         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28166         (zerod, zerol): New variables.
28167         (test_function): Avoid literals -0.0, -0.0L.
28168         * tests/test-strtod.c (zero): New variable.
28169         (main): Avoid literal -0.0.
28170         Reported by Jonathan C. Patschke <jp@centtech.com>.
28171
28172 2008-07-31  Jim Meyering  <meyering@redhat.com>
28173
28174         sha256.h: correct definition of SHA224_DIGEST_SIZE
28175         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
28176         Reported by Paulie Pena IV <paulie4@gmail.com>.
28177         Define as 224 / 8, rather than as a literal.
28178         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
28179         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
28180         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
28181
28182 2008-07-31  Bruno Haible  <bruno@clisp.org>
28183
28184         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
28185         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
28186         Reported by Jonathan Patschke <jp@centtech.com>.
28187
28188 2008-07-31  Bruno Haible  <bruno@clisp.org>
28189
28190         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
28191         Reported by Paolo Bonzini <bonzini@gnu.org>.
28192
28193 2008-07-30  Eric Blake  <ebb9@byu.net>
28194
28195         test-strtod: allow compilation without -lm
28196         * tests/test-strtod.c (main): Avoid link dependence on fabs.
28197         Reported by Dennis Clarke <blastwave@gmail.com>.
28198
28199 2008-07-28  Jim Meyering  <meyering@redhat.com>
28200
28201         bootstrap: work also when there are no .po files in po/
28202         * build-aux/bootstrap (update_po_files): Complete the change
28203         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
28204
28205 2008-07-27  Jim Meyering  <meyering@redhat.com>
28206
28207         * users.txt: Add zile.
28208
28209 2008-07-26  Ben Pfaff  <blp@gnu.org>
28210
28211         Add missing dependencies on new m4/exponent[fdl].m4 files.
28212         * modules/isnanf-nolibm: Add m4/exponentf.m4.
28213         * modules/isnand-nolibm: Add m4/exponentd.m4.
28214         * modules/isnanl-nolibm: Add m4/exponentl.m4.
28215         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
28216         m4/isnan[fdl].m4, because the macros actually used moved.
28217         Reported by Jim Meyering.
28218
28219 2008-07-14  Ben Pfaff  <blp@gnu.org>
28220
28221         Add isinf module.
28222         * lib/isinf.c: New file.
28223         * lib/math.in.h: Define isinf macro if we have decided to replace
28224         it.
28225         * m4/isinf.m4: New file.
28226         * m4/math_h.m4: Initialize and substitute variables for isinf
28227         module.
28228         * modules/isinf: New file.
28229         * modules/isinf-tests: New file.
28230         * modules/math: Add substitutions for new module.
28231         * tests/test-isinf.c: New file.
28232         * doc/posix-functions/isinf.texi: Mention new module.
28233         * MODULES.html.sh: Mention new module.
28234
28235 2008-07-14  Ben Pfaff  <blp@gnu.org>
28236
28237         Factor out some macros for use by additional modules.
28238         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
28239         exponentf.m4.
28240         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
28241         exponentd.m4.
28242         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
28243         file exponentl.m4.
28244         * m4/exponentf.m4: New file.
28245         * m4/exponentd.m4: New file.
28246         * m4/exponentl.m4: New file.
28247         * modules/isnanf: Use new file m4/exponentf.m4.
28248         * modules/isnand: Use new file m4/exponentd.m4.
28249         * modules/isnanl: Use new file m4/exponentl.m4.
28250
28251 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
28252
28253         mktime.c: normalize tp->tm_isdst value to -1/0/1.
28254         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
28255         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
28256         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
28257
28258         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
28259         readlink on platforms without PATH_MAX.
28260
28261 2008-07-21  Eric Blake  <ebb9@byu.net>
28262
28263         Warn, not fail, on stale version.
28264         * top/GNUmakefile (_curr-ver): Tone down previous patch.
28265
28266         Don't allow installation with stale devel version number.
28267         * top/GNUmakefile (_is-install-target): New macro.
28268         (_curr-ver): Forbid installation with stale version number.
28269
28270 2008-07-20  Bruno Haible  <bruno@clisp.org>
28271
28272         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
28273         TESTS_ENVIRONMENT.
28274         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
28275
28276 2008-07-20  Bruno Haible  <bruno@clisp.org>
28277
28278         * lib/c-stack.h (c_stack_action): Add documentation.
28279         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
28280
28281 2008-07-20  Bruno Haible  <bruno@clisp.org>
28282
28283         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
28284         * modules/readlink (License): Likewise.
28285
28286 2008-07-17  Eric Blake  <ebb9@byu.net>
28287
28288         * modules/c-stack (Link): Fix typo.
28289
28290         Make c-stack use libsigsegv, when available.
28291         * modules/c-stack (Depends-on): Add libsigsegv.
28292         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
28293         needed.
28294         * lib/c-stack.c (SIGSTKSZ): Define fallback.
28295         (segv_handler, overflow_handler, c_stack_action)
28296         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
28297         implementation when libsigsegv is available, but only when using
28298         the library is necessary.
28299         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
28300         comment, explaining why XSI check fails on Linux.
28301         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
28302         * tests/test-c-stack2.sh: Tweak skip message.
28303         * NEWS: Document new link-time requirements.
28304
28305 2008-07-16  Eric Blake  <ebb9@byu.net>
28306
28307         c-stack: Expose false positives when not using libsigsegv.
28308         * modules/c-stack-tests (Files): Expand test.
28309         * tests/test-c-stack.c (main): Add means to conditionally trigger
28310         non-overflow SIGSEGV.
28311         * tests/test-c-stack2.sh: New file.
28312
28313 2008-07-14  Bruno Haible  <bruno@clisp.org>
28314
28315         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
28316         Reported by Eric Blake.
28317
28318 2008-07-14  Sam Steingold  <sds@gnu.org>
28319             Bruno Haible  <bruno@clisp.org>
28320
28321         New module libsigsegv.
28322         * modules/libsigsegv: New file.
28323         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
28324         modifications.
28325         * MODULES.html.sh (Signal handling): New section.
28326
28327 2008-07-14  Bruno Haible  <bruno@clisp.org>
28328
28329         * modules/unictype/ctype-* (Description): Add the word "function".
28330         Improves the resulting doc in MODULES.html.
28331
28332 2008-07-12  Ben Pfaff  <blp@gnu.org>
28333
28334         Add longlong module.
28335         * modules/longlong: New file.
28336
28337 2008-07-12  Bruno Haible  <bruno@clisp.org>
28338
28339         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
28340         to empty.
28341
28342 2008-07-10  Ben Pfaff  <blp@gnu.org>
28343
28344         Add isnan module.
28345         * doc/posix-functions/isnan.texi: Mention new module.
28346         * lib/math.in.h: Define isnan macro if we have decided to replace
28347         it.
28348         * m4/isnan.m4: New file.
28349         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
28350         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
28351         also.
28352         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
28353         redundancy.
28354         * m4/math_h.m4: Initialize and substitute variables for isnan
28355         module.
28356         * modules/isnan: New file.
28357         * modules/isnan-tests: New file.
28358         * modules/math: Add substitutions for new module.
28359         * tests/test-isnan.c: New file.
28360         * MODULES.html.sh: Mention new module.
28361
28362 2008-07-10  Ben Pfaff  <blp@gnu.org>
28363
28364         Add isnanf module.
28365         * lib/isnanf.m4: New file.
28366         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
28367         (gl_HAVE_ISNANF_IN_LIBM): New macro.
28368         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
28369         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
28370         * modules/isnanf: New file.
28371         * modules/isnanf-tests: New file.
28372         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
28373         files.
28374         * tests/test-isnanf-nolibm.c: factored most of its contents into
28375         new file tests/test-isnanf.h.
28376         * tests/test-isnanf.h: New file.
28377         * tests/test-isnanf.c: New file.
28378         * MODULES.html.sh: Mention new module.
28379         * doc/glibc-functions/isnanf.texi: Mention new module.
28380
28381 2008-07-10  Ben Pfaff  <blp@gnu.org>
28382
28383         Add isnand module.
28384         * lib/isnand.h: New file.
28385         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
28386         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
28387         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
28388         functionality also.
28389         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
28390         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
28391         (gl_HAVE_ISNAND_IN_LIBM): New macro.
28392         * modules/isnand: New file.
28393         * modules/isnand-tests: New file.
28394         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
28395         files.
28396         * tests/test-isnand-nolibm.c: factored most of its contents into
28397         new file tests/test-isnand.h.
28398         * tests/test-isnand.h: New file.
28399         * tests/test-isnand.c: New file.
28400         * MODULES.html.sh: Mention new module.
28401
28402 2008-07-10  Ben Pfaff  <blp@gnu.org>
28403
28404         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
28405         * lib/isnand.h: Rename lib/isnand-nolibm.h.
28406         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
28407         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
28408         * modules/isnanf-nolibm: Update references to renamed files.
28409         * modules/isnand-nolibm: Likewise.
28410         * modules/isnanf-nolibm-tests: Likewise.
28411         * modules/isnand-nolibm-tests: Likewise.
28412         * lib/frexp.c: Likewise.
28413         * lib/isfinite.c: Likewise.
28414         * lib/signbitd.c: Likewise.
28415         * lib/signbitf.c: Likewise.
28416         * lib/vasnprintf.c: Likewise.
28417         * tests/test-ceilf1.c: Likewise.
28418         * tests/test-ceilf2.c: Likewise.
28419         * tests/test-floorf1.c: Likewise.
28420         * tests/test-floorf2.c: Likewise.
28421         * tests/test-frexp.c: Likewise.
28422         * tests/test-round1.c: Likewise.
28423         * tests/test-round2.c: Likewise.
28424         * tests/test-roundf1.c: Likewise.
28425         * tests/test-strtod.c: Likewise.
28426         * tests/test-trunc1.c: Likewise.
28427         * tests/test-trunc2.c: Likewise.
28428         * tests/test-truncf1.c: Likewise.
28429         * tests/test-truncf2.c: Likewise.
28430         * NEWS: Mention the renamed header files.
28431
28432 2008-07-11  Jim Meyering  <meyering@redhat.com>
28433
28434         vc-list-files: make the last-resort awk code more portable
28435         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
28436         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
28437         does not support it.
28438
28439 2008-07-10  Eric Blake  <ebb9@byu.net>
28440
28441         Work with tar's bootstrap.
28442         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
28443         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
28444         an m4 comment.
28445
28446 2008-07-09  Jim Meyering  <meyering@redhat.com>
28447
28448         posix-shell.m4: fix typo that made this test malfunction
28449         * m4/posix-shell.m4: Remove capitalization in variable name.
28450
28451 2008-07-08  Bruno Haible  <bruno@clisp.org>
28452
28453         * m4/onceonly.m4: Update comments.
28454         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28455
28456 2008-07-04  Jim Meyering  <meyering@redhat.com>
28457
28458         * users.txt: Add vc-dwim.
28459         (bison, coreutils): Use the gitweb URL.
28460
28461 2008-07-03  Jim Meyering  <meyering@redhat.com>
28462
28463         * users.txt: Add libffcall.  From Sam Steingold.
28464
28465 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
28466
28467         getdate.y: do not ignore TZ with relative day, month or year offset
28468         * lib/getdate.y (get_date): Move the tz-handling block to follow the
28469         relative-date-handling, since otherwise, the latter would clobber the
28470         sole output (an updated Start value) of the tz-handling block.
28471         * tests/test-getdate.c: Tests for the fix
28472
28473 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28474
28475         Recognize 'foo_LIBRARIES += libgnu.a'.
28476         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
28477         makefile snippet has already specified an installation location,
28478         also using '+='.
28479
28480 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
28481
28482         getdate.y: factor out common actions
28483         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
28484         Use them in place of open-coded actions.
28485
28486 2008-07-01  Simon Josefsson  <simon@josefsson.org>
28487
28488         Add self-test for getdate module.
28489         * modules/getdate-tests: New file.
28490         * tests/test-getdate.c: New file.
28491
28492 2008-06-29  Bruno Haible  <bruno@clisp.org>
28493
28494         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
28495         .gitignore.
28496         Reported by Sylvain Beucler <beuc@beuc.net>.
28497
28498 2008-06-29  Bruno Haible  <bruno@clisp.org>
28499
28500         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
28501         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
28502
28503 2008-06-29  Bruno Haible  <bruno@clisp.org>
28504
28505         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
28506         EXTRA_DIST.
28507         Reported by Sylvain Beucler <beuc@beuc.net>.
28508
28509 2008-06-26  Jim Meyering  <meyering@redhat.com>
28510
28511         make several modules depend on the "open" module
28512         This provides slightly increased consistency when opening-for-write
28513         the name of a non-directory spelled with a trailing slash.
28514         * modules/chdir-safer: Likewise.
28515         * modules/chown: Likewise.
28516         * modules/clean-temp: Likewise.
28517         * modules/copy-file: Likewise.
28518         * modules/fchdir: Likewise.
28519         * modules/fcntl-safer: Likewise.
28520         * modules/pipe: Likewise.
28521         * modules/utime: Likewise.
28522         Prompted by Eric Blake and Bruno Haible.
28523
28524 2008-06-24  Andreas Schwab  <schwab@suse.de>
28525
28526         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
28527         literals can be used as initializers for global variables.
28528
28529 2008-06-23  Eric Blake  <ebb9@byu.net>
28530
28531         Make gnulib-cache.m4 easier to diff.
28532         * gnulib-tool (func_import): Allow newlines when reading cached
28533         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
28534
28535 2008-06-23  Bruno Haible  <bruno@clisp.org>
28536
28537         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
28538         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
28539         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
28540         m4/signalblocking.m4.
28541         (gl_PREREQ_SIGACTION): Don't invoke it.
28542         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
28543         gl_PREREQ_SIG_HANDLER_H.
28544         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28545         Don't check for sigaction here.
28546
28547 2008-06-23  Bruno Haible  <bruno@clisp.org>
28548
28549         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
28550         (install_handlers): Don't set the SA_RESETHAND flag.
28551
28552 2008-06-23  Bruno Haible  <bruno@clisp.org>
28553
28554         * m4/sigaction.m4: Comment fixes.
28555         * lib/signal.in.h: Likewise.
28556
28557 2008-06-23  Eric Blake  <ebb9@byu.net>
28558
28559         Fix typo.
28560         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
28561
28562         Avoid SA_ namespace.
28563         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
28564         Reported by Ralf Wildenhues.
28565
28566         Avoid test failure due to SA_RESTORER.
28567         * tests/test-sigaction.c (SA_MASK): New macro.
28568         (main): Avoid failing due to extension flags being set.
28569         Reported by Jim Meyering.
28570
28571         Revert use of sig-handler.h in sigprocmask.c.
28572         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
28573         it requires the existence of struct sigaction.
28574         * lib/sigprocmask.c (handler_t): Restore typedef.
28575         (rpl_signal, old_handlers): Use local type.
28576
28577 2008-06-22  Bruno Haible  <bruno@clisp.org>
28578
28579         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
28580         conditionally.
28581         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28582
28583 2008-06-22  Bruno Haible  <bruno@clisp.org>
28584
28585         * doc/posix-functions/siginterrupt.texi: Move note.
28586
28587         * lib/signal.in.h (SA_RESTART): New macro.
28588         * lib/sigaction.c: Update comment.
28589
28590         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28591
28592         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28593         (gl_PREREQ_SIGPROCMASK): Invoke it.
28594         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28595
28596         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28597
28598         * lib/sigprocmask.c: Update a comment.
28599
28600 2008-06-21  Eric Blake  <ebb9@byu.net>
28601
28602         Use sigaction module rather than signal().
28603         * modules/c-stack (Depends-on): Add sigaction.
28604         * modules/fatal-signal (Depends-on): Likewise.
28605         * modules/nanosleep (Depends-on): Likewise.
28606         * modules/sigprocmask (Files): Add sig-handler.h.
28607         * modules/sigaction (Files): Likewise.
28608         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28609         Eggert.
28610         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28611         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28612         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28613         (init_fatal_signals): Likewise.
28614         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28615         (siginterrupt): Delete fallback.
28616         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28617         instead.
28618         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28619         siginterrupt.
28620
28621         New module sigaction, for mingw.
28622         * modules/sigaction: New module...
28623         * modules/sigaction-tests: ...and its test.
28624         * m4/sigaction.m4: New file.
28625         * lib/sigaction.c: Likewise.
28626         * tests/test-sigaction.c: Likewise.
28627         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28628         * modules/signal (Makefile.am): Likewise.
28629         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28630         needed.
28631         * doc/posix-headers/signal.texi (signal.h): Mention provided
28632         types.
28633         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28634         that sigaction is preferable.
28635         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28636         module.
28637         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28638         sigaction.
28639
28640         Improve robustness of sigprocmask by overriding signal.
28641         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28642         is in use.
28643         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28644         (SIGKILL, SIGSTOP): Provide fallbacks.
28645         (rpl_signal): Implement.
28646         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28647         signal can be called inside handlers.
28648
28649         Fix nanosleep module on mingw.
28650         * modules/nanosleep (Depends-on): Add sys_select.
28651         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28652
28653         Fix licensing of sigprocmask.
28654         * modules/raise (License): Relicense as LGPL.
28655
28656 2008-06-21  Bruno Haible  <bruno@clisp.org>
28657
28658         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28659         result if it contains question marks.
28660         Reported by Michael Geng <linux@michaelgeng.de>.
28661
28662 2008-06-19  Bruno Haible  <bruno@clisp.org>
28663
28664         Fix CVS-ism.
28665         * doc/gnulib.texi: Include updated-stamp.texi.
28666         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28667         (updated-stamp.texi): New rule.
28668         (gnulib.info): Depend on it.
28669         * doc/.gitignore: Add updated-stamp.texi.
28670         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28671
28672 2008-06-19  Bruno Haible  <bruno@clisp.org>
28673
28674         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28675         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28676
28677 2008-06-19  Eric Blake  <ebb9@byu.net>
28678
28679         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28680         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28681         Reported by Stepan Kasal.
28682
28683 2008-06-18  Bruno Haible  <bruno@clisp.org>
28684
28685         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28686         Reported by Eric Blake.
28687
28688 2008-06-18  Eric Blake  <ebb9@byu.net>
28689
28690         Work around cygwin 1.5.25 strsignal bug.
28691         * tests/test-strsignal.c: Allow for const char *.
28692         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28693
28694 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28695
28696         * users.txt: Update URL to article and add author/date
28697         information.
28698
28699 2008-06-17  Bruno Haible  <bruno@clisp.org>
28700
28701         New macro gl_DISABLE_THREADS.
28702         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28703         if the user did not pass --enable-threads or --disable-threads option.
28704         (gl_DISABLE_THREADS): New macro.
28705         Reported by Eric Blake <ebb9@byu.net>.
28706
28707 2008-06-17  Bruno Haible  <bruno@clisp.org>
28708
28709         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28710         when the macro ignores it.
28711         Based on a patch by Eric Blake <ebb9@byu.net>.
28712
28713 2008-06-17  Bruno Haible  <bruno@clisp.org>
28714
28715         * modules/tls (License): Change to LGPLv2+.
28716         Reported by Eric Blake.
28717
28718 2008-06-17  Eric Blake  <ebb9@byu.net>
28719
28720         Simplify c-stack prerequisites.
28721         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28722         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28723         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28724         check.
28725         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28726         <sys/resource.h>.
28727
28728         Move c-stack test into testsuite.
28729         * modules/c-stack-tests: New file.
28730         * lib/c-stack.c [DEBUG]: Move test program...
28731         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28732         fail test if sigaltstack is lacking.
28733         * tests/test-c-stack.sh: New driver file.
28734
28735 2008-06-16  Eric Blake  <ebb9@byu.net>
28736
28737         Use raise module consistently.
28738         * modules/fatal-signal (Depends-on): Add raise.
28739         * modules/sigprocmask (Depends-on): Likewise.
28740         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28741         * lib/sigprocmask.c (sigprocmask): Likewise.
28742         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28743         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28744
28745         Fix compliance bug in sigpending.
28746         * lib/sigprocmask.c (sigpending): Return pending array via
28747         parameter, not return value.
28748
28749 2008-06-14  Eric Blake  <ebb9@byu.net>
28750
28751         Improve obstack-printf test code.
28752         * tests/test-obstack-printf.c (test_function): Fix comment, and
28753         simplify usage of obstack_* in macros.  Add a test for coverage.
28754         Reported by Bruno Haible.
28755
28756 2008-06-14  Bruno Haible  <bruno@clisp.org>
28757
28758         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28759         array size as a constant, not as a const variable.
28760         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28761         AC_USE_SYSTEM_EXTENSIONS.
28762         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28763         Test whether the obstack_printf function actually exists.
28764         * modules/obstack-printf (Depends-on): Add extensions.
28765         (Include): Remove obstack.h.
28766         * modules/obstack-printf-posix (Depends-on): Add extensions.
28767         (Include): Remove obstack.h.
28768
28769 2008-06-13  Eric Blake  <ebb9@byu.net>
28770
28771         Add obstack-printf and obstack-printf-posix modules.
28772         * modules/obstack-printf: New file.
28773         * modules/obstack-printf-posix: Likewise.
28774         * MODULES.html.sh (Misc): Mention them.
28775         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28776         Likewise.
28777         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28778         Likewise.
28779         * modules/stdio (Makefile.am): Accomodate new modules.
28780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28781         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28782         Declare.
28783         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28784         functions.
28785         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28786         (gl_REPLACE_OBSTACK_PRINTF): New macros
28787         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28788         * tests/test-obstack-printf.c: New file.
28789         * modules/obstack-printf-tests: Likewise.
28790         * modules/obstack-printf-posix-tests: Likewise.
28791
28792 2008-06-11  Bruno Haible  <bruno@clisp.org>
28793
28794         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28795         * lib/open.c: Include errno.h.
28796         (open): Fail when attempting to write to a file that has a trailing
28797         slash.
28798         * tests/test-open.c (main): Test against trailing slash bug.
28799         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28800
28801 2008-06-10  Bruno Haible  <bruno@clisp.org>
28802
28803         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28804         for $? to work inside the trap command, with various /bin/sh-s.
28805         * tests/test-vc-list-files-cvs.sh: Likewise.
28806
28807 2008-06-10  Bruno Haible  <bruno@clisp.org>
28808
28809         * lib/acl-internal.h: Don't include gettext.h here.
28810         * lib/set-mode-acl.c: Include gettext.h here.
28811         * lib/copy-acl.c: Likewise.
28812
28813 2008-06-10  Bruno Haible  <bruno@clisp.org>
28814
28815         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28816         * lib/wait-process.c (wait_subprocess): Likewise.
28817         * lib/execute.h (execute): Add termsigp argument.
28818         * lib/execute.c (execute): Likewise.
28819         * lib/csharpcomp.c (compile_csharp_using_pnet,
28820         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28821         * lib/csharpexec.c (execute_csharp_using_pnet,
28822         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28823         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28824         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28825         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28826         is_jikes_present): Update.
28827         * lib/javaexec.c (execute_java_class): Update.
28828         * lib/javaversion.c (execute_and_read_line): Update.
28829         * NEWS: Document the changes.
28830         Reported by Eric Blake.
28831
28832 2008-06-10  Eric Blake  <ebb9@byu.net>
28833
28834         Add missing include.
28835         * tests/test-strstr.c (includes): Add <signal.h>.
28836         * tests/test-strcasestr.c (includes): Likewise.
28837         * tests/test-memmem.c (includes): Likewise.
28838
28839 2008-06-10  Bruno Haible  <bruno@clisp.org>
28840
28841         * lib/wait-process.c (wait_subprocess): Add an assertion.
28842
28843 2008-06-10  Bruno Haible  <bruno@clisp.org>
28844
28845         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
28846
28847 2008-06-10  Bruno Haible  <bruno@clisp.org>
28848
28849         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
28850         using alarm().
28851         * tests/test-strcasestr.c (main): Likewise.
28852         * tests/test-strstr.c (main): Likewise.
28853
28854 2008-06-09  Bruno Haible  <bruno@clisp.org>
28855
28856         Work around the Solaris 10 ACE ACLs ABI change.
28857         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
28858         declare if ACL_NO_TRIVIAL is present.
28859         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
28860         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
28861         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
28862         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
28863         define if ACL_NO_TRIVIAL is present.
28864         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
28865         and use the current ABI.
28866         (file_has_acl): Use same #if condition as elsewhere.
28867         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
28868         in use, and use the current ABI.
28869         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
28870         Reported by Jim Meyering.
28871
28872 2008-06-09  Eric Blake  <ebb9@byu.net>
28873
28874         Work around environments that (stupidly) ignore SIGALRM.
28875         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
28876         before using alarm().
28877         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28878         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28879         Reported by Ian Beckwith <ianb@erislabs.net>.
28880
28881         Produce autobuild blurb earlier in log.
28882         * modules/autobuild (configure.ac-early): Move AB_INIT here.
28883
28884 2008-06-09  Jim Meyering  <meyering@redhat.com>
28885         and Ondřej Vašík  <ovasik@redhat.com>
28886
28887         utimens.c: correct kernel bug work-around
28888         Ondřej Vašík found that the invalid return value of 280 indicates
28889         failure, not success, and the kernel bug we're trying to work
28890         around affects not just the utimensat call, but also the fallback
28891         futimens call.
28892         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
28893         not success.
28894         [HAVE_FUTIMENS]: Use the same work-around, here.
28895
28896 2008-06-09  Jim Meyering  <meyering@redhat.com>
28897
28898         add more guards around definition of ACE_-related code
28899         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
28900         ALLOW and ACE_OWNER are also defined.
28901
28902 2008-06-08  Bruno Haible  <bruno@clisp.org>
28903
28904         * lib/acl-internal.h: Add me as co-author.
28905         * lib/file-has-acl.c: Likewise.
28906         * lib/set-mode-acl.c: Likewise.
28907         * lib/copy-acl.c: Likewise.
28908
28909 2008-06-08  Bruno Haible  <bruno@clisp.org>
28910
28911         Add support for AIX ACLs.
28912         * lib/acl-internal.h (acl_nontrivial): New declaration.
28913         * lib/file-has-acl.c (acl_nontrivial): New function.
28914         (file_has_acl): Add implementation using AIX 4 ACL API.
28915         * lib/set-mode-acl.c (qset_acl): Likewise.
28916         * lib/copy-acl.c (qcopy_acl): Likewise.
28917
28918 2008-06-08  Bruno Haible  <bruno@clisp.org>
28919
28920         Add support for HP-UX ACLs.
28921         * lib/acl-internal.h (acl_nontrivial): New declaration.
28922         * lib/file-has-acl.c (acl_nontrivial): New function.
28923         (file_has_acl): Add implementation using HP-UX 11 ACL API.
28924         * lib/set-mode-acl.c (qset_acl): Likewise.
28925         * lib/copy-acl.c (qcopy_acl): Likewise.
28926
28927 2008-06-08  Bruno Haible  <bruno@clisp.org>
28928
28929         Add support for Cygwin ACLs.
28930         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
28931         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
28932         the chmod_or_fchmod call.
28933         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
28934
28935 2008-06-08  Bruno Haible  <bruno@clisp.org>
28936
28937         Fix bug with setuid modes in Solaris 10+ code.
28938         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
28939         succeeded, when the mode contains some special bits.
28940
28941 2008-06-08  Bruno Haible  <bruno@clisp.org>
28942
28943         Add support for Solaris 7..10 ACLs.
28944         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
28945         declarations.
28946         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
28947         functions.
28948         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
28949         * lib/set-mode-acl.c (qset_acl): Likewise.
28950         * lib/copy-acl.c (qcopy_acl): Likewise.
28951
28952 2008-06-08  Bruno Haible  <bruno@clisp.org>
28953
28954         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
28955         declaration.
28956         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
28957         (acl_access_nontrivial): Remove MacOS X case.
28958         (file_has_acl): Use acl_extended_nontrivial.
28959         * lib/copy-acl.c (qcopy_acl): Likewise.
28960
28961 2008-06-08  Bruno Haible  <bruno@clisp.org>
28962
28963         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
28964
28965 2008-06-08  Jim Meyering  <meyering@redhat.com>
28966
28967         * modules/acl (Maintainer): Add Bruno Haible.
28968
28969 2008-06-07  Bruno Haible  <bruno@clisp.org>
28970
28971         Improve support for Tru64 ACLs.
28972         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
28973         ACL on OSF/1.
28974
28975 2008-06-07  Bruno Haible  <bruno@clisp.org>
28976
28977         Add support for MacOS X ACLs.
28978         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
28979         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
28980         * lib/set-mode-acl.c (qset_acl): Likewise.
28981         * lib/copy-acl.c (qcopy_acl): Likewise.
28982
28983 2008-06-07  Bruno Haible  <bruno@clisp.org>
28984
28985         Fix memory leak introduced on 2008-05-22.
28986         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
28987         use.
28988
28989 2008-06-07  Bruno Haible  <bruno@clisp.org>
28990
28991         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
28992         to construct an empty ACL.
28993
28994 2008-06-07  Bruno Haible  <bruno@clisp.org>
28995
28996         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
28997         precisely.
28998         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
28999
29000 2008-06-07  Bruno Haible  <bruno@clisp.org>
29001
29002         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
29003         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
29004
29005 2008-06-07  Bruno Haible  <bruno@clisp.org>
29006
29007         * doc/posix-functions/_setjmp.texi: Explain the use of this function
29008         regardless of POSIX.
29009         * doc/posix-functions/_longjmp.texi: Likewise.
29010         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
29011         SystemV platform in this case.
29012
29013 2008-06-06  Eric Blake  <ebb9@byu.net>
29014
29015         Document abort() bugs.
29016         * doc/posix-functions/abort.texi (abort): Mention anomalies.
29017
29018         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
29019         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
29020         sigsetjmp.
29021         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
29022         siglongjmp, but only as a macro.
29023         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
29024         is obsolete.
29025         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
29026
29027         Tweak documentation to cover cygwin argz bugs.
29028         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
29029         argz bug fix; no code change needed since no cygwin releases
29030         occurred between the last fix and the bug being tested.
29031         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
29032         module and recently fixed cygwin bugs.
29033         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
29034         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
29035         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
29036         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
29037         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
29038         Likewise.
29039         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
29040         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
29041         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
29042         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
29043         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
29044         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
29045         Likewise.
29046
29047         Avoid gcc warning on cygwin.
29048         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
29049         !ACL_NO_TRIVIAL]: Avoid unused variable.
29050
29051 2008-06-05  Eric Blake  <ebb9@byu.net>
29052
29053         Be tolerant of UNKNOWN version in gnulib-tool test dir.
29054         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
29055         git-version-gen fails to come up with a version.
29056         Reported by Simon Josefsson.
29057
29058 2008-06-05  Jim Meyering  <meyering@redhat.com>
29059             Paul Eggert  <eggert@cs.ucla.edu>
29060
29061         utimens.c: work around a probable Linux kernel bug
29062         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
29063         appears to be a kernel bug that causes utimensat to return 280
29064         instead of 0, indicating success.
29065
29066 2008-06-04  Bruno Haible  <bruno@clisp.org>
29067
29068         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
29069         2008-06-01 commit.
29070
29071 2008-06-04  Bruno Haible  <bruno@clisp.org>
29072
29073         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
29074         * lib/file-has-acl.c (acl_access_nontrivial): New function.
29075         (file_has_acl): Use it. Save errno afterwards.
29076         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
29077
29078 2008-06-03  Bruno Haible  <bruno@clisp.org>
29079
29080         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
29081         draft code. Simplify #ifs.
29082         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
29083         Put Solaris code after POSIX-draft code. Fix comments regarding
29084         Solaris 10, HP-UX. Mention Cygwin.
29085         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
29086
29087 2008-06-03  Eric Blake  <ebb9@byu.net>
29088
29089         Provide fallback for older kernels.
29090         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
29091         Provide runtime fallback if kernel lacks support.
29092         Reported by Mike Frysinger.
29093
29094 2008-06-02  Bruno Haible  <bruno@clisp.org>
29095
29096         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
29097         it exists.
29098
29099 2008-06-02  Bruno Haible  <bruno@clisp.org>
29100
29101         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
29102         * lib/copy-acl.c (qcopy_acl): Update comment.
29103
29104 2008-06-02  Bruno Haible  <bruno@clisp.org>
29105
29106         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
29107         like ACL APIs.
29108
29109 2008-06-02  Bruno Haible  <bruno@clisp.org>
29110
29111         * tests/test-file-has-acl.sh: Use different code for Cygwin.
29112         * tests/test-set-mode-acl.sh: Likewise.
29113         * tests/test-copy-acl.sh: Likewise.
29114         * tests/test-copy-file.sh: Likewise.
29115
29116 2008-06-02  Bruno Haible  <bruno@clisp.org>
29117
29118         * tests/test-file-has-acl.sh: Remove unused code.
29119
29120 2008-06-01  Bruno Haible  <bruno@clisp.org>
29121
29122         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
29123         (copy_acl): Just a wrapper around qcopy_acl that emits the error
29124         messages.
29125         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
29126
29127 2008-06-01  Bruno Haible  <bruno@clisp.org>
29128
29129         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
29130         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
29131         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
29132         APIs.
29133         * modules/acl-tests (configure.ac): Remove tests now contained in
29134         m4/acl.m4.
29135
29136 2008-06-02  Jim Meyering  <meyering@redhat.com>
29137
29138         announce-gen: use a better key-server host name
29139         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
29140         it may be more consistently reliable.  Suggested by Werner Koch
29141         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
29142
29143 2008-06-01  Bruno Haible  <bruno@clisp.org>
29144
29145         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
29146         Reported by Voroskoi Andras <voroskoi@gmail.com>.
29147
29148 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
29149
29150         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
29151
29152 2008-06-01  Bruno Haible  <bruno@clisp.org>
29153
29154         New ACL tests.
29155         * tests/test-file-has-acl.sh: New file.
29156         * tests/test-file-has-acl.c: New file.
29157         * tests/test-set-mode-acl.sh: New file.
29158         * tests/test-set-mode-acl.c: New file.
29159         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
29160         * tests/test-copy-acl.c: New file.
29161         * modules/acl-tests: New file, based on modules/copy-file-tests.
29162         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
29163         (Depends-on): Add acl-tests.
29164         (configure.ac): Remove checks.
29165         (Makefile.am): Don't create test-sameacls program here any more.
29166
29167 2008-06-01  Bruno Haible  <bruno@clisp.org>
29168
29169         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
29170         * tests/test-sameacls.c: Include progname.h.
29171         (main): Invoke set_program_name. Portability fixes for MacOS X,
29172         Solaris, HP-UX.
29173
29174 2008-06-01  Bruno Haible  <bruno@clisp.org>
29175
29176         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
29177         function.
29178         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
29179
29180 2008-06-01  Bruno Haible  <bruno@clisp.org>
29181
29182         * modules/rpmatch (Depends-on): Add strdup.
29183
29184 2008-06-01  Bruno Haible  <bruno@clisp.org>
29185
29186         * lib/pipe.c: Include unistd-safer.h.
29187         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
29188         * modules/pipe (Depends-on): Add unistd-safer.
29189
29190 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29191
29192         * modules/autobuild (configure.ac): Call AB_INIT.
29193
29194 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29195
29196         * tests/test-getaddrinfo.c: Don't print debug messages by default.
29197         Suggested by Bruno Haible <bruno@clisp.org>.
29198
29199 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29200
29201         * tests/test-base64.c: Cast size_t to unsigned long when invoking
29202         printf.  Use %lu instead of %d.  Reported by Bruno Haible
29203         <bruno@clisp.org>.
29204
29205 2008-05-29  Eric Blake  <ebb9@byu.net>
29206
29207         Prefer new POSIX 200x interfaces over futimesat.
29208         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
29209         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
29210         when available.
29211         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
29212
29213 2008-05-28  Bruno Haible  <bruno@clisp.org>
29214
29215         * modules/stpcpy (License): Change to LGPLv2+.
29216         Requested by David Lutterkort <dlutter@redhat.com>.
29217
29218 2008-05-27  Bruno Haible  <bruno@clisp.org>
29219
29220         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
29221         current mingw.
29222         Reported by Jose E. Marchesi <jemarch@gnu.org>.
29223
29224 2008-05-27  Bruno Haible  <bruno@clisp.org>
29225
29226         * modules/iconv_open (Link): New section, from module 'iconv'.
29227         * modules/striconv (Link): Likewise.
29228         * modules/striconveh (Link): Likewise.
29229         * modules/xstriconv (Link): Likewise.
29230         * modules/unicodeio (Link): Likewise.
29231         * modules/propername (Link): Likewise.
29232         Reported by Jim Meyering.
29233
29234 2008-05-26  Jim Meyering  <meyering@redhat.com>
29235
29236         sha256: do not artificially restrict buffer length to be < 2^32
29237         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
29238         uint32_t to size_t.
29239         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
29240         to match.
29241
29242         avoid unaligned access errors, e.g., on sparc
29243         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
29244         direct access through a possibly-unaligned uint64* pointer.
29245         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
29246         direct access through a possibly-unaligned uint32* pointer.
29247         Prompted by this patch from Tom "spot" Callaway:
29248         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
29249
29250         sha512.c: fix typo in comment
29251         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
29252
29253 2008-05-25  Bruno Haible  <bruno@clisp.org>
29254
29255         * lib/set-mode-acl.c: Renamed from lib/acl.c.
29256         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
29257         (Makefile.am): Update lib_SOURCES.
29258
29259 2008-05-25  Bruno Haible  <bruno@clisp.org>
29260
29261         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
29262
29263 2008-05-25  Jim Meyering  <meyering@redhat.com>
29264
29265         useless-if-before-free: freed expr may have white-space differences
29266         * build-aux/useless-if-before-free: Recognize cases in which the
29267         freed expression differs from the tested one in embedded white
29268         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
29269         $1 was used, so we can't make any regexp shy.  Improved tests now
29270         detect this.
29271
29272         useless-if-before-free: accept white space in the expression.
29273         * build-aux/useless-if-before-free: For now, any white space
29274         in the expression must be identical in the free argument.
29275
29276         useless-if-before-free: efficiency tweak
29277         * build-aux/useless-if-before-free: Make the expression-matching
29278         regexp "shy".
29279         Make the *outer* regexp shy, not the expr-matching one.
29280
29281         update code-in-comment to accept cast of free arg
29282         * build-aux/useless-if-before-free: Update regexp.
29283
29284 2008-05-25  Bruno Haible  <bruno@clisp.org>
29285
29286         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
29287         * modules/copy-file-tests (Files, Makefile.am): Update.
29288         * tests/test-copy-file.c (func_test_copy): Update.
29289
29290 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
29291
29292         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
29293
29294 2008-05-23  Bruno Haible  <bruno@clisp.org>
29295
29296         Improve support for ACLs on OSF/1.
29297         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
29298         Remove fallback for unknown flavors of ACLs.
29299
29300 2008-05-22  Bruno Haible  <bruno@clisp.org>
29301
29302         Add support for ACLs on OSF/1.
29303         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
29304         replacements.
29305         (acl_free_text): New macro fallback.
29306         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
29307         acl_free.
29308         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
29309         acl_free_text function. Require AC_C_INLINE.
29310
29311 2008-05-22  Bruno Haible  <bruno@clisp.org>
29312
29313         Make copy_acl work on MacOS X 10.5.
29314         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
29315         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
29316         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
29317         If MODE_INSIDE_ACL, don't assume that every system has the same text
29318         representation for ACLs as FreeBSD.
29319         * lib/copy-acl.c (copy_acl): Add support for platforms with
29320         !MODE_INSIDE_ACL.
29321         * lib/file-has-acl.c (file_has_acl): Likewise.
29322         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
29323         FreeBSD, MacOS X, or IRIX, respectively.
29324
29325 2008-05-22  Bruno Haible  <bruno@clisp.org>
29326
29327         * lib/acl.h: Don't include <sys/acl.h>.
29328         (GETACLCNT): Move fallback to lib/acl-internal.h.
29329         * lib/acl-internal.h: Include <sys/acl.h> here.
29330         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
29331
29332 2008-05-22  Bruno Haible  <bruno@clisp.org>
29333
29334         Split off copy_acl function to separate file.
29335         * lib/copy-acl.c: New file, extracted from lib/acl.c.
29336         * lib/acl.c (copy_acl): Moved function to separate file.
29337         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
29338         * modules/acl (Files): Add lib/copy-acl.c.
29339         (Makefiles.am): Augment lib_SOURCES.
29340
29341 2008-05-22  Bruno Haible  <bruno@clisp.org>
29342
29343         * modules/copy-file-tests: New file.
29344         * tests/test-copy-file.sh: New file.
29345         * tests/test-copy-file.c: New file.
29346         * tests/test-copy-file-sameacls.c: New file.
29347
29348 2008-05-22  Eric Blake  <ebb9@byu.net>
29349
29350         Avoid gcc warning.
29351         * tests/test-memcmp.c (main): Pass NULL indirectly.
29352
29353 2008-05-21  Bruno Haible  <bruno@clisp.org>
29354
29355         Add reference doc about ACLs.
29356         * doc/acl-resources.txt: New file.
29357         * doc/acl-cygwin.txt: New file.
29358
29359 2008-05-21  Bruno Haible  <bruno@clisp.org>
29360
29361         Avoid one more warning from gcc.
29362         * lib/vasnprintf.c (IF_LINT): Update comments.
29363         (VASNPRINTF): Use it also for the 'prefix' array initializer.
29364
29365 2008-05-21  Jim Meyering  <meyering@redhat.com>
29366
29367         avoid a warning from gcc
29368         * lib/vasnprintf.c (IF_LINT): Define.
29369         (scale10_round_decimal_long_double):
29370         Use it to avoid a "may be used uninitialized" warning.
29371         (scale10_round_decimal_double): Likewise.
29372
29373 2008-05-21  Simon Josefsson  <simon@josefsson.org>
29374
29375         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
29376         declared.
29377
29378 2008-05-20  Bruno Haible  <bruno@clisp.org>
29379
29380         * tests/test-memcmp.c (main): Test also the sign of the result. Test
29381         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
29382
29383 2008-05-20  Simon Josefsson  <simon@josefsson.org>
29384
29385         * modules/memcmp-tests: New file.
29386         * tests/test-memcmp.c: New file.
29387
29388 2008-05-19  Bruno Haible  <bruno@clisp.org>
29389
29390         * modules/propername (Notice, configure.ac): Put quoted "..." into
29391         --keyword option.
29392         * lib/propername.h: Update comments accordingly.
29393         Reported by Eric Blake.
29394
29395 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
29396
29397         * modules/getpass-gnu (Depends-on): Add fseeko.
29398
29399 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29400
29401         * modules/base64-tests: New file.
29402
29403 2008-05-19  Bo Borgerson <gigabo@gmail.com>
29404
29405         * lib/base64.c (base64_decode_ctx): If a decode context structure
29406         was passed in use it to ignore newlines.  If a context structure
29407         was _not_ passed in, continue to treat newlines as garbage (this
29408         is the historical behavior).  Formerly base64_decode.
29409         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29410         takes a decode context structure.
29411         * lib/base64.h (base64_decode): Macro for four-argument calls.
29412         (base64_decode_alloc): Likewise.
29413         * lib/base64.c (base64_decode_ctx): If a decode context structure
29414         was passed in use it to ignore newlines.  If a context structure
29415         was _not_ passed in, continue to treat newlines as garbage (this
29416         is the historical behavior).  Formerly base64_decode.
29417         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29418         takes a decode context structure.
29419         * lib/base64.h (base64_decode): Macro for four-argument calls.
29420         (base64_decode_alloc): Likewise.
29421
29422 2008-05-19  Jim Meyering  <meyering@redhat.com>
29423
29424         avoid a warning from gcc
29425         * lib/trim.c (IF_LINT): Define.
29426         (trim2): Use it to avoid a "may be used uninitialized" warning.
29427
29428         Fix doc typo.
29429         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
29430
29431 2008-05-19  Bruno Haible  <bruno@clisp.org>
29432
29433         * doc/glibc-functions/getpass.texi: Document limits of other
29434         implementations.
29435
29436 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29437             Bruno Haible <bruno@clisp.org>
29438
29439         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
29440
29441 2008-05-18  Bruno Haible  <bruno@clisp.org>
29442
29443         * modules/propername: New file, from GNU gettext.
29444         * lib/propername.h: New file, from GNU gettext.
29445         * lib/propername.c: New file, from GNU gettext.
29446         * MODULES.html.sh (Internationalization functions): Add propername.
29447
29448 2008-05-16  Jim Meyering  <meyering@redhat.com>
29449             Bruno Haible  <bruno@clisp.org>
29450
29451         Avoid some warnings from "gcc -Wshadow".
29452         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
29453
29454 2008-05-15  Eric Blake  <ebb9@byu.net>
29455
29456         Extend previous patch to cygwin 1.7.0.
29457         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
29458         fast implementation in cygwin >= 1.7.0.
29459         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29460         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29461
29462 2008-05-15  Bruno Haible  <bruno@clisp.org>
29463
29464         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
29465         implementation in glibc >= 2.9.
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         * MODULES.html.sh (Internationalization functions): Remove linebreak.
29472         (Unicode string functions): Add unilbrk/*.
29473         Reported by Karl Berry.
29474
29475 2008-05-15  Eric Blake  <ebb9@byu.net>
29476
29477         Fix violation of <stdbool.h> replacement in regex.
29478         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
29479         * lib/regexec.c (re_search_internal): Likewise.
29480         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
29481
29482 2008-05-15  Jim Meyering  <meyering@redhat.com>
29483
29484         avoid distracting test output when git or cvs is not found
29485         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
29486         * tests/test-vc-list-files-git.sh: Likewise.
29487
29488 2008-05-15  Eric Blake  <ebb9@byu.net>
29489
29490         Glibc finally accepted the memmem speedup code, bugzilla #5514.
29491         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
29492         glibc version.
29493         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29494         * doc/posix-functions/strstr.texi (strstr): Likewise.
29495         * lib/str-two-way.h (MAX): Sychronize with glibc.
29496
29497 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
29498
29499         * lib/regcomp.c (optimize_utf8): Add a note on why we test
29500         opr.ctx_type.
29501         (calc_first): Initialize constraint field.
29502         (duplicate_node_closure): Use it instead of special casing ANCHORS.
29503         Fix grammar.
29504         (duplicate_node): Merge constraint field for all node types.
29505         (calc_eclosure_iter): Look at constraint field for all node types.
29506         * lib/regex_internal.c (create_cd_newstate): Don't look at
29507         opr.ctx_type.
29508
29509 2008-05-14  Bruno Haible  <bruno@clisp.org>
29510
29511         Help GCC to do better code generation.
29512         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
29513         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29514         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
29515         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
29516         Declare with attribute 'malloc' if supported.
29517
29518 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
29519
29520         use "echo STR|wc -c" rather than unportable "expr length STR"
29521         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
29522         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
29523
29524 2008-05-14  Jim Meyering  <meyering@redhat.com>
29525
29526         use dd ibs=$n count=1 ... rather than less-portable head -c$n
29527         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
29528         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
29529         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
29530         via Collin Lasse.
29531
29532 2008-05-14  Eric Blake  <ebb9@byu.net>
29533
29534         Avoid quadratic growth in gl_LIBSOURCES.
29535         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
29536         Suggested by Bruno Haible.
29537
29538         Test xmemdup0.
29539         * modules/xmemdup0-tests: New file.
29540         * tests/test-xmemdup0.c: Likewise.
29541
29542 2008-05-13  Eric Blake  <ebb9@byu.net>
29543
29544         Split xmemdup0 into its own module.
29545         * modules/xmemdup0: New file.
29546         * lib/xmemdup0.h: Likewise.
29547         * lib/xmemdup0.c: Likewise.
29548         * MODULES.html.sh (Memory management functions): Add xmemdup0.
29549         * lib/xalloc.h (xmemdup0): Remove.
29550         * lib/xmalloc.c (xmemdup0): Likewise.
29551
29552 2008-05-13  Eric Blake  <ebb9@byu.net>
29553             Bruno Haible  <bruno@clisp.org>
29554
29555         Reduce number of forks required during autoconf.
29556         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
29557         and gl_LIBSOURCES_DIR.
29558         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
29559         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
29560         m4_syscmd per file.
29561         <m4_foreach_w>: Move...
29562         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
29563
29564 2008-05-13  Eric Blake  <ebb9@byu.net>
29565
29566         * gnulib-tool: Fix various comment typos.
29567
29568 2008-05-12  Bruno Haible  <bruno@clisp.org>
29569
29570         Tailor the linebreaking algorithm.
29571         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
29572
29573 2008-05-12  Bruno Haible  <bruno@clisp.org>
29574
29575         Update to Unicode 5.0.0.
29576         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29577         LBP_JV, LBP_JT. Redistribute values.
29578         (unilbrk_table): Change size.
29579         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
29580         Unicode TR#14 rev. 22.
29581         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29582         LBP_JV, LBP_JT. Redistribute values.
29583         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
29584         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
29585         Update.
29586         * lib/unilbrk/lbrkprop1.h: Regenerated.
29587         * lib/unilbrk/lbrkprop2.h: Regenerated.
29588         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
29589         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29590         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29591         Likewise.
29592         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29593         Likewise.
29594         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29595         result.
29596         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29597         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29598         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29599         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29600         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29601         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29602
29603 2008-05-11  Bruno Haible  <bruno@clisp.org>
29604
29605         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29606
29607 2008-05-11  Bruno Haible  <bruno@clisp.org>
29608
29609         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29610         * modules/unilbrk/gen-lbrk: New file.
29611
29612 2008-05-11  Bruno Haible  <bruno@clisp.org>
29613
29614         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29615         * m4/sha512.m4 (gl_SHA512): Likewise.
29616
29617 2008-05-11  Jim Meyering  <meyering@redhat.com>
29618
29619         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29620         * modules/crypto/sha256: New file.
29621         * modules/crypto/sha512: Likewise.
29622         * lib/sha256.c: Likewise.
29623         * lib/sha256.h: Likewise.
29624         * lib/sha512.c: Likewise.
29625         * lib/sha512.h: Likewise.
29626         * lib/u64.h: Likewise.
29627         * m4/sha256.m4: Likewise.
29628         * m4/sha512.m4: Likewise.
29629         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29630
29631 2008-05-10  Bruno Haible  <bruno@clisp.org>
29632
29633         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29634         (Input/Output <stdio.h>): Add xprintf.
29635         (Signal handling <signal.h>): Add strsignal.
29636         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29637         (Core language properties): Add func.
29638         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29639         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29640         strings.
29641         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29642         (Input/output): New section.
29643         (File system functions): Add openat-die, stat-macros.
29644         (Networking functions): Add sockets.
29645         (Unicode string functions): Add unictype/*.
29646         (Support for building libraries and executables): Add gperf.
29647         (Support for building documentation): Add agpl-3.0.
29648         (Misc): Add nocrash.
29649
29650 2008-05-10  Bruno Haible  <bruno@clisp.org>
29651
29652         * modules/unictype/gen-ctype: New file.
29653
29654 2008-05-10  Jim Meyering  <meyering@redhat.com>
29655
29656         Make chdir-safer.c more efficient on a system with no symlinks.
29657         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29658         also if ELOOP is zero.  Suggested by Bruno Haible.
29659
29660         Make chdir-safer.c slightly safer.
29661         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29662         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29663
29664         Avoid compile failure on systems without ELOOP (like mingw).
29665         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29666         Reported by Bruno Haible.
29667
29668 2008-05-10  Bruno Haible  <bruno@clisp.org>
29669
29670         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29671         (is_utf8_encoding): Use a case-insensitive comparison.
29672         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29673         streq.
29674
29675 2008-05-10  Bruno Haible  <bruno@clisp.org>
29676
29677         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29678         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29679         * lib/unilbrk/ulc-common.h (iconv_string_length,
29680         iconv_string_keeping_offsets): Remove declarations.
29681         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29682         Don't include <iconv.h>, streq.h, xsize.h.
29683         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29684         conversion.
29685         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29686         <iconv.h>, streq.h, xsize.h.
29687         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29688         conversion.
29689         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29690         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29691         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29692         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29693
29694 2008-05-10  Bruno Haible  <bruno@clisp.org>
29695
29696         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29697         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29698
29699         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29700         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29701
29702         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29703         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29704
29705         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29706         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29707
29708         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29709         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29710
29711         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29712         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29713
29714         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29715         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29716
29717         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29718         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29719
29720 2008-05-10  Bruno Haible  <bruno@clisp.org>
29721
29722         Split up 'linebreak' module.
29723         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29724         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29725         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29726         modifications.
29727         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29728         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29729         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29730         lib/linebreak.c.
29731         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29732         lib/linebreak.c.
29733         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29734         lib/linebreak.c.
29735         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29736         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29737         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29738         lib/linebreak.c.
29739         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29740         lib/linebreak.c.
29741         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29742         lib/linebreak.c.
29743         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29744         lib/linebreak.c.
29745         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29746         lib/linebreak.c.
29747         * modules/unilbrk/base: New file.
29748         * modules/unilbrk/tables: New file.
29749         * modules/unilbrk/u8-possible-linebreaks: New file.
29750         * modules/unilbrk/u16-possible-linebreaks: New file.
29751         * modules/unilbrk/u32-possible-linebreaks: New file.
29752         * modules/unilbrk/ulc-common: New file.
29753         * modules/unilbrk/ulc-possible-linebreaks: New file.
29754         * modules/unilbrk/u8-width-linebreaks: New file.
29755         * modules/unilbrk/u16-width-linebreaks: New file.
29756         * modules/unilbrk/u32-width-linebreaks: New file.
29757         * modules/unilbrk/ulc-width-linebreaks: New file.
29758         * lib/linebreak.h: Remove file.
29759         * lib/linebreak.c: Remove file.
29760         * m4/linebreak.m4: Remove file.
29761         * modules/linebreak: Remove file.
29762         * NEWS: Mention the changes.
29763
29764 2008-05-09  Eric Blake  <ebb9@byu.net>
29765
29766         Add xmemdup0.
29767         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29768         implementation.
29769         * lib/xmalloc.c (xmemdup0): New C implementation.
29770
29771 2008-05-08  Bruno Haible  <bruno@clisp.org>
29772
29773         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29774
29775 2008-05-07  Eric Blake  <ebb9@byu.net>
29776
29777         Support cross-compilation of <wctype.h>.
29778         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29779         AC_CACHE_CHECK.
29780
29781 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29782
29783         * build-aux/vc-list-files: Add support for bzr.
29784
29785 2008-05-03  Jim Meyering  <meyering@redhat.com>
29786
29787         avoid failed assertion with tight malloc
29788         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29789
29790 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29791
29792         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29793         are needed from arpa/inet.h.
29794         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29795         Reported by Bruno Haible.
29796
29797 2008-05-02  Jim Meyering  <meyering@redhat.com>
29798
29799         avoid compilation error on FreeBSD 6
29800         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29801
29802 2008-05-01  Jim Meyering  <meyering@redhat.com>
29803
29804         useless-if-before-free: correct --help's exit status description
29805         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29806         for one or more matches, etc.  Reported by Bruno Haible.
29807
29808         vc-list-files: make the stand-alone gnulib test work
29809         * modules/vc-list-files-tests (configure.ac):
29810         Define and AC_SUBST abs_aux_dir.
29811         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29812         $(abs_top_srcdir) to each script and having each of them
29813         duplicate the work of setting PATH, set PATH here, using
29814         the new variable, abs_aux_dir instead.
29815         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29816         * tests/test-vc-list-files-git.sh: Likewise.
29817         Reported by Bruno Haible.
29818
29819 2008-05-01  Bruno Haible  <bruno@clisp.org>
29820
29821         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29822         reallocation. Rename 'done' to 'found_delimiter'.
29823
29824 2008-05-01  Jim Meyering  <meyering@redhat.com>
29825
29826         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29827         * build-aux/vc-list-files: Use `...`, not $(...).
29828
29829 2008-04-30  Jim Meyering  <meyering@redhat.com>
29830
29831         add tests for vc-list-files
29832         * modules/vc-list-files-tests: New module.
29833         * tests/test-vc-list-files-cvs.sh: New file.
29834         * tests/test-vc-list-files-git.sh: New file.
29835
29836         avoid a warning from gcc
29837         * lib/getndelim2.c (IF_LINT): Define.
29838         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
29839
29840         vc-list-files: work properly with build-aux/cvsu, too
29841         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
29842         to all cvs-based clauses.
29843
29844         vc-list-files: work properly in the CVS+awk case, too
29845         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
29846
29847         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
29848         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
29849         take more than one file argument, so .  Add quotes, just in case $dir
29850         ever contains a shell meta-character.  Prompted by Soren Hansen in
29851         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
29852
29853 2008-04-29  Eric Blake  <ebb9@byu.net>
29854
29855         Optimize getndelim2 to use block operations when possible.
29856         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
29857         freadseek, and memchr2.
29858         * lib/getndelim2.c (getndelim2): Use them for block reads.
29859
29860 2008-04-29  Bruno Haible  <bruno@clisp.org>
29861
29862         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
29863         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29864         * modules/inet_ntop (Depends-on): Add extensions.
29865         * modules/inet_pton (Depends-on): Likewise.
29866         Reported by Simon Josefsson.
29867
29868 2008-04-29  Jim Meyering  <meyering@redhat.com>
29869
29870         When the is more than one match in a block, match all of them.
29871         * build-aux/useless-if-before-free: Iterate through each block
29872         until there are no more matches.
29873
29874         Fix broken useless-if-before-free script.
29875         * build-aux/useless-if-before-free: Fix typo: missing "?" after
29876         the expression to match cast of argument to free-like function.
29877
29878 2008-04-29  Eric Blake  <ebb9@byu.net>
29879
29880         Use new header.
29881         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
29882
29883 2008-04-29  Jim Meyering  <meyering@redhat.com>
29884
29885         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
29886         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
29887         by gnulib to exist and to declare e.g., inet_ntop.
29888         Don't include "inet_ntop.h", now removed.
29889
29890         * m4/arpa_inet_h.m4: Remove trailing blanks.
29891
29892 2008-04-29  Eric Blake  <ebb9@byu.net>
29893
29894         Silence valgrind on safe reads beyond potential array bounds.
29895         * lib/rawmemchr.valgrind: New file.
29896         * lib/strchrnul.valgrind: Likewise.
29897         * modules/rawmemchr (Files): Distribute new file.
29898         * modules/strchrnul (Files): Likewise.
29899         Suggested by Bruno Haible.
29900
29901 2008-04-29  Bruno Haible  <bruno@clisp.org>
29902
29903         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
29904         (inet_ntop, inet_pton): Change portability warning's wording.
29905         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
29906         Invoke gl_CHECK_NEXT_HEADERS.
29907         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
29908         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
29909         set ARPA_INET_H.
29910         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29911         * modules/arpa_inet (Description): No longer only for systems that
29912         lack it.
29913         (Depends-on): Add include_next.
29914         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
29915         HAVE_ARPA_INET_H.
29916
29917 2008-04-29  Jim Meyering  <meyering@redhat.com>
29918
29919         * modules/mkdir (License): Re-license as LGPLv2+.
29920
29921 2008-04-29  Bruno Haible  <bruno@clisp.org>
29922
29923         * modules/rawmemchr (Maintainer): Set to Eric.
29924         * modules/strchrnul (Maintainer): Likewise.
29925
29926 2008-04-29  Simon Josefsson  <simon@josefsson.org>
29927
29928         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
29929         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
29930
29931         * modules/arpa_inet (arpa/inet.h): Use them.
29932
29933 2008-04-28  Eric Blake  <ebb9@byu.net>
29934
29935         Test getndelim2.
29936         * modules/getndelim2-tests: New file.
29937         * tests/test-getndelim2.c: Likewise.
29938         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
29939         stream.
29940         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
29941
29942         * MODULES.html.sh: Document new module.
29943
29944 2008-04-20  Bruno Haible  <bruno@clisp.org>
29945
29946         * lib/c-stack.c (die): Use raise.
29947         * modules/c-stack (Depends-on): Add raise.
29948
29949 2008-04-28  Bruno Haible  <bruno@clisp.org>
29950
29951         Expect rpmatch to be declared.
29952         * lib/yesno.c (rpmatch): Remove declaration.
29953
29954         Declare rpmatch.
29955         * lib/stdlib.in.h (rpmatch): New declaration.
29956         * lib/rpmatch.c: Include <stdlib.h> first.
29957         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
29958         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
29959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
29960         HAVE_RPMATCH.
29961         * modules/rpmatch (Depends-on): Add stdlib, extensions.
29962         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29963         (Include): Set to <stdlib.h>.
29964         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
29965         HAVE_RPMATCH.
29966         * NEWS: Document the change.
29967
29968 2008-04-28  Bruno Haible  <bruno@clisp.org>
29969
29970         Change rpmatch to use nl_langinfo when appropriate.
29971         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
29972         (N_): New macro.
29973         (localized_pattern): New function/macro.
29974         (try): Remove match, nomatch arguments. Copy the pattern into safe
29975         memory before caching it.
29976         (rpmatch): Use localized_pattern. Add translator comments.
29977         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
29978         Suggested by Eric Blake.
29979         * modules/rpmatch (Depends-on): Add stdbool.
29980
29981 2008-04-28  Eric Blake  <ebb9@byu.net>
29982
29983         Add rawmemchr module, matching glibc.
29984         * modules/string (Makefile.am): New indicator.
29985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
29986         * lib/string.in.h (rawmemchr): Declare when appropriate.
29987         * modules/rawmemchr: New file.
29988         * m4/rawmemchr.m4: Likewise.
29989         * lib/rawmemchr.c: Likewise.
29990         * modules/rawmemchr-tests: Likewise.
29991         * tests/test-rawmemchr.c: Likewise.
29992         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
29993         module.
29994         * modules/strchrnul (Depends-on): Add rawmemchr.
29995         * lib/strchrnul.c (strchrnul): Optimize a corner case.
29996
29997         Whitespace cleanup.
29998         * tests/test-strchrnul.c: Reindent.
29999         * lib/strchrnul.c: Likewise.
30000
30001         Optimize and test strchrnul.
30002         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
30003         * modules/strchrnul-tests: New file.
30004         * tests/test-strchrnul.c: Likewise.
30005
30006         Remove intprops dependency.
30007         * modules/memchr (Depends-on): Remove intprops.
30008         * modules/memrchr (Depends-on): Likewise.
30009         * modules/memchr2 (Depends-on): Likewise.
30010         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
30011         * lib/memrchr.c (__memrchr): Likewise.
30012         * lib/memrchr2.c (memchr2): Likewise.
30013         Reported by Simon Josefsson.
30014
30015 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30016
30017         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
30018         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30019
30020 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30021
30022         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
30023
30024         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
30025
30026         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
30027
30028         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
30029         declarations.
30030         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
30031
30032         * m4/inet_pton.m4: Don't check for header files.
30033
30034         * m4/inet_ntop.m4: Don't check for header files.
30035
30036 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30037
30038         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
30039         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
30040         trigger for cygwin).
30041         Reported by Bruno Haible  <bruno@clisp.org>.
30042
30043 2008-04-28  Bruno Haible  <bruno@clisp.org>
30044
30045         * doc/posix-functions/strdup.texi: Mention mingw problem.
30046
30047 2008-04-27  Bruno Haible  <bruno@clisp.org>
30048
30049         * modules/stat-time-tests (Depends-on): Add sleep.
30050         * tests/test-stat-time.c (force_unlink): New function.
30051         (cleanup): Use it.
30052         (test_mtime): Remove the ctime related tests.
30053         (test_ctime): New function, containing the ctime related tests.
30054         (main): Call test_ctime, except on native Windows platforms.
30055
30056 2008-04-27  Bruno Haible  <bruno@clisp.org>
30057
30058         * lib/rpmatch.c (rpmatch): Add some comments.
30059         Reported by James Youngman <jay@gnu.org>.
30060
30061 2008-04-27  Bruno Haible  <bruno@clisp.org>
30062
30063         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
30064         quiet NaNs.
30065
30066 2008-04-27  Bruno Haible  <bruno@clisp.org>
30067
30068         Make test-yesno.sh work on mingw.
30069         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
30070         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
30071         (main): Set stdin to binary mode.
30072         * modules/yesno-tests (Depends-on): Add binary-io.
30073
30074 2008-04-27  Bruno Haible  <bruno@clisp.org>
30075
30076         Fix 'isfinite' on x86, x86_64, ia64 platforms.
30077         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
30078         argument that lie outside the IEEE 854 domain.
30079         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
30080         (gl_ISFINITE): Use it.
30081         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
30082
30083 2008-04-27  Bruno Haible  <bruno@clisp.org>
30084
30085         Allow local renaming in config.h.
30086         * lib/memrchr.c (memrchr): Don't undefine outside libc.
30087
30088 2008-04-27  Bruno Haible  <bruno@clisp.org>
30089
30090         * lib/memchr.c (__memchr): Change type of 'i'.
30091         * lib/memchr2.c (memchr2): Likewise.
30092
30093 2008-04-26  Eric Blake  <ebb9@byu.net>
30094         and Bruno Haible  <bruno@clisp.org>
30095
30096         Optimize and test memrchr.
30097         * modules/memrchr (Depends-on): Add intprops.
30098         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
30099         * modules/memrchr-tests: New file.
30100         * tests/test-memrchr.c: New file.
30101
30102 2008-04-26  Bruno Haible  <bruno@clisp.org>
30103
30104         Add tentative support for DragonFly BSD.
30105         * lib/stdio-impl.h: Add macros for DragonFly BSD.
30106         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
30107         fp.
30108         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30109         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
30110         * lib/fpurge.c (fpurge): Likewise.
30111         * lib/freadable.c (freaadable): Likewise.
30112         * lib/freadahead.c (freadahead): Likewise.
30113         * lib/freading.c (freading): Likewise.
30114         * lib/freadptr.c (freadptr): Likewise.
30115         * lib/freadseek.c (freadptrinc): Likewise.
30116         * lib/fseeko.c (fseeko): Likewise.
30117         * lib/fseterr.c (fseterr): Likewise.
30118         * lib/fwritable.c (fwritable): Likewise.
30119         * lib/fwriting.c (fwriting): Likewise.
30120
30121 2008-04-26  Bruno Haible  <bruno@clisp.org>
30122
30123         * lib/stdio-impl.h: New file.
30124         * lib/fbufmode.c: Include stdio-impl.h.
30125         (fbufmode): Use fp_, remove redundant #defines.
30126         * lib/fflush.c: Include stdio-impl.h.
30127         (clear_ungetc_buffer): Remove redundant #defines.
30128         * lib/fpurge.c: Include stdio-impl.h.
30129         (fpurge): Remove redundant #defines.
30130         * lib/freadable.c: Include stdio-impl.h.
30131         (freadable): Remove redundant #defines.
30132         * lib/freadahead.c: Include stdio-impl.h.
30133         (freadahead): Remove redundant #defines.
30134         * lib/freading.c: Include stdio-impl.h.
30135         (freading): Remove redundant #defines.
30136         * lib/freadptr.c: Include stdio-impl.h.
30137         (freadptr): Remove redundant #defines.
30138         * lib/freadseek.c: Include stdio-impl.h.
30139         (freadptrinc): Remove redundant #defines.
30140         * lib/fseeko.c: Include stdio-impl.h.
30141         (rpl_fseeko): Remove redundant #defines.
30142         * lib/fseterr.c: Include stdio-impl.h.
30143         (fseterr): Remove redundant #defines.
30144         * lib/fwritable.c: Include stdio-impl.h.
30145         (fwritable: Remove redundant #defines.
30146         * lib/fwriting.c: Include stdio-impl.h.
30147         (fwriting): Remove redundant #defines.
30148         * modules/fbufmode (Files): Add lib/stdio-impl.h.
30149         * modules/fflush (Files): Likewise.
30150         * modules/fpurge (Files): Likewise.
30151         * modules/freadable (Files): Likewise.
30152         * modules/freadahead (Files): Likewise.
30153         * modules/freading (Files): Likewise.
30154         * modules/freadptr (Files): Likewise.
30155         * modules/freadseek (Files): Likewise.
30156         * modules/fseeko (Files): Likewise.
30157         * modules/fseterr (Files): Likewise.
30158         * modules/fwritable (Files): Likewise.
30159         * modules/fwriting (Files): Likewise.
30160
30161 2008-04-26  Bruno Haible  <bruno@clisp.org>
30162
30163         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30164         restore_seek_optimization, update_fpos_cache): New functions, extracted
30165         from rpl_fflush.
30166         (rpl_fflush): Use them.
30167         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
30168         (gl_REPLACE_FFLUSH): Use it.
30169
30170 2008-04-26  Bruno Haible  <bruno@clisp.org>
30171
30172         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
30173         on Solaris.
30174         * tests/test-xstrtoimax.sh: Likewise.
30175         * tests/test-xstrtoumax.sh: Likewise.
30176         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30177
30178 2008-04-26  Bruno Haible  <bruno@clisp.org>
30179
30180         * modules/memchr-tests: New file.
30181         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
30182
30183 2008-04-26  Eric Blake  <ebb9@byu.net>
30184             Bruno Haible  <bruno@clisp.org>
30185
30186         * lib/memchr.c: Include intprops.h.
30187         (__memchr): Optimize parallel detection of matching bytes. Rename local
30188         variables. Add explanatory comments.
30189
30190 2008-04-26  Bruno Haible  <bruno@clisp.org>
30191
30192         Fix module 'memchr', broken since 2000-10-28.
30193         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
30194
30195 2008-04-26  Bruno Haible  <bruno@clisp.org>
30196
30197         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
30198         comments.
30199
30200 2008-04-25  Eric Blake  <ebb9@byu.net>
30201
30202         Use native fstatat on cygwin 1.7.0.
30203         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
30204         first.
30205
30206 2008-04-23  Eric Blake  <ebb9@byu.net>
30207
30208         Improve memchr2 performance.
30209         * lib/memchr2.c (memchr2): Further optimize parallel detection of
30210         NUL bytes.
30211         * modules/memchr2 (Depends-on): Use intprops.h.
30212
30213 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30214
30215         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
30216         an inline function instead of a CPP macro.  Patch by Ben Pfaff
30217         <blp@cs.stanford.edu>.
30218
30219 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30220
30221         * lib/arpa_inet.in.h: New file.
30222
30223         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
30224         (Makefile.am): Sed in substitute header file.
30225
30226         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
30227         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
30228
30229         * modules/inet_ntop (configure.ac): Use
30230         gl_ARPA_INET_MODULE_INDICATOR.
30231
30232         * modules/inet_pton (configure.ac): Use
30233         gl_ARPA_INET_MODULE_INDICATOR.
30234
30235 2008-04-22  Jim Meyering  <meyering@redhat.com>
30236
30237         * modules/verify (License): Re-license as LGPLv2+.
30238
30239 2008-04-22  Simon Josefsson  <simon@josefsson.org>
30240
30241         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
30242         parameter to void* as per POSIX standard (MinGW uses char*).
30243
30244 2008-04-21  Bruno Haible  <bruno@clisp.org>
30245
30246         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30247         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30248         Define to replacements if REPLACE_ISWCNTRL is 1.
30249         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
30250         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
30251         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
30252         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
30253         what it fixes.
30254         * doc/posix-functions/iswalpha.texi: Likewise.
30255         * doc/posix-functions/iswblank.texi: Likewise.
30256         * doc/posix-functions/iswcntrl.texi: Likewise.
30257         * doc/posix-functions/iswdigit.texi: Likewise.
30258         * doc/posix-functions/iswgraph.texi: Likewise.
30259         * doc/posix-functions/iswlower.texi: Likewise.
30260         * doc/posix-functions/iswprint.texi: Likewise.
30261         * doc/posix-functions/iswpunct.texi: Likewise.
30262         * doc/posix-functions/iswspace.texi: Likewise.
30263         * doc/posix-functions/iswupper.texi: Likewise.
30264         * doc/posix-functions/iswxdigit.texi: Likewise.
30265         Reported by Alain Guibert.
30266
30267 2008-04-21  Bruno Haible  <bruno@clisp.org>
30268
30269         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
30270         Patch by Alain Guibert.
30271
30272 2008-04-21  Bruno Haible  <bruno@clisp.org>
30273
30274         Fix test failures on mingw.
30275         * tests/test-xstrtol.c (print_no_progname): New function.
30276         (main): Install it in error_print_progname hook.
30277         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
30278         * tests/test-xstrtoimax.sh: Likewise.
30279         * tests/test-xstrtoumax.sh: Likewise.
30280
30281 2008-04-21  Bruno Haible  <bruno@clisp.org>
30282
30283         Fix test failure on mingw.
30284         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
30285
30286 2008-04-21  Bruno Haible  <bruno@clisp.org>
30287
30288         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
30289         Actually assign a value.
30290
30291 2008-04-20  Bruno Haible  <bruno@clisp.org>
30292
30293         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
30294         take 2.
30295         * lib/canonicalize.c (canonicalize_file_name): Elide if the
30296         'canonicalize-lgpl' module is also used.
30297         * lib/canonicalize-lgpl.c: Undo last change.
30298         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
30299
30300 2008-04-20  Bruno Haible  <bruno@clisp.org>
30301
30302         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
30303         config.h. Provide _mkdir based fallback for mingw.
30304         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
30305         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
30306         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
30307         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
30308         rather than defining mkdir in config.h.
30309         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
30310         (gl_SYS_STAT_H_DEFAULTS): New macro.
30311         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
30312         HAVE_IO_H any more.
30313         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
30314         HAVE_DECL_MKDIR and HAVE_IO_H.
30315
30316 2008-04-20  Bruno Haible  <bruno@clisp.org>
30317
30318         * lib/isapipe.c: Port to native Windows platforms.
30319
30320 2008-04-20  Bruno Haible  <bruno@clisp.org>
30321
30322         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
30323
30324 2008-04-21  Eric Blake  <ebb9@byu.net>
30325
30326         Work around preprocessors that don't handle UINTMAX_MAX.
30327         * lib/memchr2.c (memchr2): Avoid embedded #if.
30328         Reported by Alain Guibert, fix suggested by Bruno Haible.
30329
30330 2008-04-21  Simon Josefsson  <simon@josefsson.org>
30331
30332         * doc/posix-functions/strftime.texi (strftime): Explain better
30333         Windows incompatibility.  Suggested by Micah Cowan
30334         <micah@cowan.name>.
30335
30336 2008-04-20  Bruno Haible  <bruno@clisp.org>
30337
30338         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
30339         unistr/u8-mblen.
30340
30341 2008-04-20  Bruno Haible  <bruno@clisp.org>
30342
30343         Fix test failure on platforms with non-GNU iconv.
30344         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
30345         (U_TO_U8): Use it, rather than u16_to_u8.
30346         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
30347         units at the end of the input string.
30348         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
30349
30350 2008-04-20  Bruno Haible  <bruno@clisp.org>
30351
30352         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
30353         when the resulting length is 0.
30354         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
30355
30356 2008-04-20  Bruno Haible  <bruno@clisp.org>
30357
30358         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
30359         works.
30360         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
30361
30362 2008-04-20  Bruno Haible  <bruno@clisp.org>
30363
30364         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
30365         * modules/tsearch-tests (configure.ac): Test for initstate function.
30366
30367 2008-04-20  Bruno Haible  <bruno@clisp.org>
30368
30369         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
30370         for nlink_t if missing.
30371         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
30372
30373 2008-04-19  Bruno Haible  <bruno@clisp.org>
30374
30375         Work around snprintf bug on Linux libc5.
30376         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
30377         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30378         gl_SNPRINTF_SIZE1.
30379         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30380         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
30381         that test failed.
30382         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30383         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
30384         * modules/snprintf (Files): Add m4/printf.m4.
30385         * modules/vsnprintf (Files): Likewise.
30386         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
30387         * doc/posix-functions/vsnprintf.texi: Likewise.
30388
30389 2008-04-19  Bruno Haible  <bruno@clisp.org>
30390
30391         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
30392         from 0.0058 to less than 10^-7.
30393
30394 2008-04-19  Bruno Haible  <bruno@clisp.org>
30395
30396         Fix rounding when a precision is given.
30397         * lib/vasnprintf.c (is_borderline): New function.
30398         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
30399         9...9x.
30400         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
30401         %e, %g.
30402         * tests/test-vasprintf-posix.c (test_function): Likewise.
30403         * tests/test-snprintf-posix.h (test_function): Likewise.
30404         * tests/test-sprintf-posix.h (test_function): Likewise.
30405         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
30406         * tests/test-printf-posix.h (test_function): Likewise.
30407         * tests/test-printf-posix.output: Update.
30408         Reported by John Darrington <john@darrington.wattle.id.au> via
30409         Ben Pfaff <blp@cs.stanford.edu>.
30410
30411 2008-04-18  Simon Josefsson  <simon@josefsson.org>
30412
30413         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
30414         Suggested by Bruno Haible <bruno@clisp.org>.
30415
30416 2008-04-17  Bruno Haible  <bruno@clisp.org>
30417
30418         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
30419         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
30420         implementation.
30421         Patch by Bruce Merry <bmerry@gmail.com>.
30422
30423 2008-04-17  Simon Josefsson  <simon@josefsson.org>
30424
30425         * doc/posix-functions/strftime.texi (strftime): Mention that %e
30426         doesn't work under Windows.
30427
30428 2008-04-16  Bruno Haible  <bruno@clisp.org>
30429
30430         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
30431         New macros.
30432         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
30433         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
30434         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
30435         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
30436         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
30437         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
30438         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
30439         macros.
30440         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
30441         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
30442         Northern Sotho, Uighur.
30443
30444 2008-04-16  Bruno Haible  <bruno@clisp.org>
30445
30446         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
30447         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
30448         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
30449         Reported by Daniel Bergström <daniel@octocode.com>.
30450
30451 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
30452             Bruno Haible  <bruno@clisp.org>
30453
30454         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
30455         function.
30456         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
30457         New functions, mostly extracted from gl_locale_name_default.
30458         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
30459
30460 2008-04-16  Eric Blake  <ebb9@byu.net>
30461
30462         Adjust strtod detection to catch glibc 2.7 bug.
30463         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
30464         Reported by John Gatewood Ham.
30465
30466 2008-04-16  Bruno Haible  <bruno@clisp.org>
30467
30468         Add tentative support for Linux libc5.
30469         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
30470         * lib/fpurge.c (fpurge): Likewise.
30471         * lib/freadable.c (freadable): Likewise.
30472         * lib/freadahead.c (freadahead): Likewise.
30473         * lib/freading.c (freading): Likewise.
30474         * lib/freadptr.c (freadptr): Likewise.
30475         * lib/freadseek.c (freadptrinc): Likewise.
30476         * lib/fseeko.c (rpl_fseeko): Likewise.
30477         * lib/fseterr.c (fseterr): Likewise.
30478         * lib/fwritable.c (fwritable): Likewise.
30479         * lib/fwriting.c (fwriting): Likewise.
30480         Reported by Alain Guibert <alguibert+bts@free.fr>.
30481
30482 2008-04-15  Bruno Haible  <bruno@clisp.org>
30483
30484         * modules/mathl (configure.ac): Define module indicator.
30485
30486 2008-04-15  Bruno Haible  <bruno@clisp.org>
30487
30488         * lib/logl.c (logl): Remove unused variables.
30489
30490 2008-04-15  Bruno Haible  <bruno@clisp.org>
30491
30492         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
30493         fails.
30494
30495 2008-04-15  Bruno Haible  <bruno@clisp.org>
30496
30497         * lib/trim.c (trim2): Fix argument of isspace() macro.
30498
30499 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
30500
30501         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
30502         to 0.
30503         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
30504
30505 2008-04-14  Bruno Haible  <bruno@clisp.org>
30506
30507         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
30508         AC_LANG_PROGRAM argument.
30509         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
30510         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
30511         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30512         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30513         * m4/math_h.m4 (gl_MATH_H): Likewise.
30514         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
30515         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30516         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30517         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
30518         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
30519         * m4/regex.m4 (gl_REGEX): Likewise.
30520         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
30521         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
30522         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30523         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
30524         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30525         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30526         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30527         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30528
30529 2008-04-14  Jim Meyering  <meyering@redhat.com>
30530
30531         test-strtod: fix typos: s/abs/fabs/
30532         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
30533
30534 2008-04-13  Bruno Haible  <bruno@clisp.org>
30535
30536         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
30537         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
30538         module is also used and while not building the reloc-wrapper.
30539
30540 2008-04-13  Bruno Haible  <bruno@clisp.org>
30541
30542         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
30543
30544 2008-04-13  Bruno Haible  <bruno@clisp.org>
30545
30546         Fix AIX compilation failure introduced on 2008-04-02.
30547         * tests/test-frexp.c (exp): Undefine before redefining.
30548         * tests/test-frexpl.c (exp): Likewise.
30549
30550 2008-04-13  Bruno Haible  <bruno@clisp.org>
30551
30552         Work around a HP-UX stdio bug.
30553         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
30554         * tests/test-ftello.c (main): Likewise.
30555         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
30556         * doc/posix-functions/ftello.texi: Likewise.
30557
30558 2008-04-13  Bruno Haible  <bruno@clisp.org>
30559
30560         Make test-signbit pass on HP-UX/hppa.
30561         * tests/test-signbit.c (minus_zerol): New variable.
30562         (test_signbitl): Use it.
30563
30564 2008-04-13  Bruno Haible  <bruno@clisp.org>
30565
30566         Make truncl work on OSF/1 4.0.
30567         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
30568         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30569         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
30571         HAVE_DECL_TRUNCL.
30572         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
30573         HAVE_DECL_TRUNCL.
30574         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
30575
30576 2008-04-13  Bruno Haible  <bruno@clisp.org>
30577
30578         * lib/unictype.h: Remove trailing comma from enumeration definitions.
30579
30580 2008-04-13  Bruno Haible  <bruno@clisp.org>
30581
30582         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
30583         expression, so as to avoid HP-UX 11 cc compiler bug.
30584
30585 2008-04-13  Bruno Haible  <bruno@clisp.org>
30586
30587         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
30588
30589 2008-04-13  Bruno Haible  <bruno@clisp.org>
30590
30591         * lib/git-merge-changelog.c: Remove empty declaration outside of
30592         functions.
30593
30594 2008-04-13  Bruno Haible  <bruno@clisp.org>
30595
30596         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30597
30598 2008-04-13  Bruno Haible  <bruno@clisp.org>
30599
30600         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30601         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30602         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30603         also if it exists but lacks definitions of the SHUT_* macros.
30604         * modules/sys_socket (Description): Update.
30605         Reported by Elbert Pol <e.pol@chello.nl>.
30606
30607 2008-04-13  Bruno Haible  <bruno@clisp.org>
30608
30609         * lib/localcharset.c (OS2): Don't redefine if already defined.
30610         Reported by Elbert Pol <e.pol@chello.nl>.
30611
30612 2008-04-13  Bruno Haible  <bruno@clisp.org>
30613
30614         * lib/binary-io.h [__EMX__]: Include <io.h>.
30615         Reported by Elbert Pol <e.pol@chello.nl>.
30616
30617 2008-04-12  Bruno Haible  <bruno@clisp.org>
30618
30619         * lib/fpucw.h: Enable the definitions also for x86_64.
30620         Needed for NetBSD/x86_64.
30621         Reported by Thomas Klausner <tk@giga.or.at>.
30622
30623 2008-04-12  Bruno Haible  <bruno@clisp.org>
30624
30625         * tests/test-strtod.c: Include isnand.h.
30626         (main): Use isnand instead of isnan.
30627         Reported by Jim Meyering.
30628
30629 2008-04-12  Bruno Haible  <bruno@clisp.org>
30630
30631         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30632         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30633
30634 2008-04-12  Jim Meyering  <meyering@redhat.com>
30635
30636         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30637
30638 2008-04-12  Bruno Haible  <bruno@clisp.org>
30639
30640         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30641         Reported by Elbert Pol <e.pol@chello.nl>.
30642
30643 2008-04-12  Eric Blake  <ebb9@byu.net>
30644
30645         Work around Solaris 10 math.h bug.
30646         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30647         (gl_MATH_H_DEFAULTS): Set up default.
30648         * modules/math (Makefile.am): Replace new indicators.
30649         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30650         * tests/test-math.c (main): Test this.
30651         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30652         * doc/posix-headers/math.texi (math.h): Mention bug.
30653         Reported by Nelson H. F. Beebe and Jim Meyering.
30654
30655 2008-04-11  Bruno Haible  <bruno@clisp.org>
30656
30657         Adapt to future versions of Apple GCC.
30658         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30659         Reported by Peter O'Gorman <peter@pogma.com>.
30660
30661 2008-04-11  Bruno Haible  <bruno@clisp.org>
30662
30663         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30664
30665 2008-04-11  Bruno Haible  <bruno@clisp.org>
30666
30667         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30668
30669         * modules/getaddrinfo-tests (Makefile.am): Define
30670         test_getaddrinfo_LDADD.
30671
30672 2008-04-11  Bruno Haible  <bruno@clisp.org>
30673
30674         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30675         (init): Fix syntax error.
30676         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30677         is declared.
30678
30679 2008-04-11  Bruno Haible  <bruno@clisp.org>
30680
30681         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30682         * modules/glob (Depends-on): Add stdbool.
30683
30684 2008-04-11  Bruno Haible  <bruno@clisp.org>
30685
30686         * lib/trim.c: Include <string.h>.
30687
30688 2008-04-11  Eric Blake  <ebb9@byu.net>
30689
30690         Avoid compile failure on OS/2.
30691         * lib/regex_internal.h (internal_function): Disable optimization
30692         on OS/2 (__EMX__), where it caused compiler error.
30693         Reported by Elbert Pol.
30694
30695 2008-04-11  Bruno Haible  <bruno@clisp.org>
30696
30697         Flush the standard error stream before aborting. Needed on mingw.
30698         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30699         * tests/test-array_list.c (ASSERT): Likewise.
30700         * tests/test-array_oset.c (ASSERT): Likewise.
30701         * tests/test-avltree_list.c (ASSERT): Likewise.
30702         * tests/test-avltree_oset.c (ASSERT): Likewise.
30703         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30704         * tests/test-binary-io.c (ASSERT): Likewise.
30705         * tests/test-byteswap.c (ASSERT): Likewise.
30706         * tests/test-c-ctype.c (ASSERT): Likewise.
30707         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30708         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30709         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30710         * tests/test-c-strstr.c (ASSERT): Likewise.
30711         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30712         * tests/test-canonicalize.c (ASSERT): Likewise.
30713         * tests/test-carray_list.c (ASSERT): Likewise.
30714         * tests/test-ceilf1.c (ASSERT): Likewise.
30715         * tests/test-ceilf2.c (ASSERT): Likewise.
30716         * tests/test-ceill.c (ASSERT): Likewise.
30717         * tests/test-count-one-bits.c (ASSERT): Likewise.
30718         * tests/test-fbufmode.c (ASSERT): Likewise.
30719         * tests/test-fflush2.c (ASSERT): Likewise.
30720         * tests/test-floorf1.c (ASSERT): Likewise.
30721         * tests/test-floorf2.c (ASSERT): Likewise.
30722         * tests/test-floorl.c (ASSERT): Likewise.
30723         * tests/test-fopen.c (ASSERT): Likewise.
30724         * tests/test-fpending.c (ASSERT): Likewise.
30725         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30726         * tests/test-fpurge.c (ASSERT): Likewise.
30727         * tests/test-freadable.c (ASSERT): Likewise.
30728         * tests/test-freadahead.c (ASSERT): Likewise.
30729         * tests/test-freading.c (ASSERT): Likewise.
30730         * tests/test-freadptr.c (ASSERT): Likewise.
30731         * tests/test-freadptr2.c (ASSERT): Likewise.
30732         * tests/test-freadseek.c (ASSERT): Likewise.
30733         * tests/test-freopen.c (ASSERT): Likewise.
30734         * tests/test-frexp.c (ASSERT): Likewise.
30735         * tests/test-frexpl.c (ASSERT): Likewise.
30736         * tests/test-fseek.c (ASSERT): Likewise.
30737         * tests/test-fseeko.c (ASSERT): Likewise.
30738         * tests/test-fstrcmp.c (ASSERT): Likewise.
30739         * tests/test-ftell.c (ASSERT): Likewise.
30740         * tests/test-ftello.c (ASSERT): Likewise.
30741         * tests/test-func.c (ASSERT): Likewise.
30742         * tests/test-fwritable.c (ASSERT): Likewise.
30743         * tests/test-fwriting.c (ASSERT): Likewise.
30744         * tests/test-getdelim.c (ASSERT): Likewise.
30745         * tests/test-getline.c (ASSERT): Likewise.
30746         * tests/test-i-ring.c (ASSERT): Likewise.
30747         * tests/test-iconv-utf.c (ASSERT): Likewise.
30748         * tests/test-iconv.c (ASSERT): Likewise.
30749         * tests/test-isfinite.c (ASSERT): Likewise.
30750         * tests/test-isnand.c (ASSERT): Likewise.
30751         * tests/test-isnanf.c (ASSERT): Likewise.
30752         * tests/test-isnanl.h (ASSERT): Likewise.
30753         * tests/test-ldexpl.c (ASSERT): Likewise.
30754         * tests/test-linked_list.c (ASSERT): Likewise.
30755         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30756         * tests/test-localename.c (ASSERT): Likewise.
30757         * tests/test-lseek.c (ASSERT): Likewise.
30758         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30759         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30760         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30761         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30762         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30763         * tests/test-mbschr.c (ASSERT): Likewise.
30764         * tests/test-mbscspn.c (ASSERT): Likewise.
30765         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30766         * tests/test-mbspbrk.c (ASSERT): Likewise.
30767         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30768         * tests/test-mbsrchr.c (ASSERT): Likewise.
30769         * tests/test-mbsspn.c (ASSERT): Likewise.
30770         * tests/test-mbsstr1.c (ASSERT): Likewise.
30771         * tests/test-mbsstr2.c (ASSERT): Likewise.
30772         * tests/test-mbsstr3.c (ASSERT): Likewise.
30773         * tests/test-memchr2.c (ASSERT): Likewise.
30774         * tests/test-memmem.c (ASSERT): Likewise.
30775         * tests/test-open.c (ASSERT): Likewise.
30776         * tests/test-printf-frexp.c (ASSERT): Likewise.
30777         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30778         * tests/test-printf-posix.c (ASSERT): Likewise.
30779         * tests/test-quotearg.c (ASSERT): Likewise.
30780         * tests/test-rbtree_list.c (ASSERT): Likewise.
30781         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30782         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30783         * tests/test-round1.c (ASSERT): Likewise.
30784         * tests/test-roundf1.c (ASSERT): Likewise.
30785         * tests/test-roundl.c (ASSERT): Likewise.
30786         * tests/test-signbit.c (ASSERT): Likewise.
30787         * tests/test-sleep.c (ASSERT): Likewise.
30788         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30789         * tests/test-snprintf.c (ASSERT): Likewise.
30790         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30791         * tests/test-stat-time.c (ASSERT): Likewise.
30792         * tests/test-strcasestr.c (ASSERT): Likewise.
30793         * tests/test-strerror.c (ASSERT): Likewise.
30794         * tests/test-striconv.c (ASSERT): Likewise.
30795         * tests/test-striconveh.c (ASSERT): Likewise.
30796         * tests/test-striconveha.c (ASSERT): Likewise.
30797         * tests/test-strsignal.c (ASSERT): Likewise.
30798         * tests/test-strstr.c (ASSERT): Likewise.
30799         * tests/test-strtod.c (ASSERT): Likewise.
30800         * tests/test-trunc1.c (ASSERT): Likewise.
30801         * tests/test-trunc2.c (ASSERT): Likewise.
30802         * tests/test-truncf1.c (ASSERT): Likewise.
30803         * tests/test-truncf2.c (ASSERT): Likewise.
30804         * tests/test-truncl.c (ASSERT): Likewise.
30805         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30806         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30807         * tests/test-vasnprintf.c (ASSERT): Likewise.
30808         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30809         * tests/test-vasprintf.c (ASSERT): Likewise.
30810         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30811         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30812         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30813         * tests/test-vsnprintf.c (ASSERT): Likewise.
30814         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30815         * tests/test-wcwidth.c (ASSERT): Likewise.
30816         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30817         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30818         * tests/test-xvasprintf.c (ASSERT): Likewise.
30819         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30820         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30821         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30822         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30823         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30824         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30825         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30826         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30827         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30828         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30829         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30830         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30831         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30832         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30833         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
30834         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
30835         * tests/unictype/test-block_list.c (ASSERT): Likewise.
30836         * tests/unictype/test-block_of.c (ASSERT): Likewise.
30837         * tests/unictype/test-block_test.c (ASSERT): Likewise.
30838         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
30839         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
30840         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
30841         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
30842         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
30843         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
30844         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
30845         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
30846         * tests/unictype/test-combining.c (ASSERT): Likewise.
30847         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
30848         * tests/unictype/test-digit.c (ASSERT): Likewise.
30849         * tests/unictype/test-mirror.c (ASSERT): Likewise.
30850         * tests/unictype/test-numeric.c (ASSERT): Likewise.
30851         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
30852         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
30853         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
30854         * tests/unictype/test-scripts.c (ASSERT): Likewise.
30855         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
30856         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
30857         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
30858         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
30859         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
30860         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
30861         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
30862         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
30863         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
30864         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
30865         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
30866         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
30867         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
30868         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
30869         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
30870         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
30871         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
30872         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
30873         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
30874         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
30875         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
30876         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
30877         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
30878         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
30879         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
30880         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
30881         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
30882         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
30883         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
30884         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
30885         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
30886         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
30887         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
30888         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
30889         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
30890         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
30891         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
30892         Reported by Eric Blake.
30893
30894 2008-04-11  Bruno Haible  <bruno@clisp.org>
30895
30896         * lib/wchar.in.h: Tweak comment.
30897
30898 2008-04-11  Bruno Haible  <bruno@clisp.org>
30899
30900         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
30901         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
30902         gl_COMMON.
30903         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
30904
30905 2008-04-11  Bruno Haible  <bruno@clisp.org>
30906
30907         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
30908
30909 2008-04-11  Simon Josefsson  <simon@josefsson.org>
30910
30911         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
30912         of attempting to use non-existing /dev/*random.  Based on patch
30913         from Adam Strzelecki <ono@java.pl> in
30914         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
30915
30916 2008-04-08  Bruno Haible  <bruno@clisp.org>
30917
30918         Add tentative support for emx+gcc.
30919         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
30920         * lib/fpurge.c (fpurge): Likewise.
30921         * lib/freadable.c (freadable): Likewise.
30922         * lib/freadahead.c (freadahead): Likewise.
30923         * lib/freading.c (freading): Likewise.
30924         * lib/freadptr.c (freadptr): Likewise.
30925         * lib/freadseek.c (freadptrinc): Likewise.
30926         * lib/fseeko.c (rpl_fseeko): Likewise.
30927         * lib/fseterr.c (fseterr): Likewise.
30928         * lib/fwritable.c (fwritable): Likewise.
30929         * lib/fwriting.c (fwriting): Likewise.
30930         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
30931
30932 2008-04-09  Eric Blake  <ebb9@byu.net>
30933
30934         Avoid some autoconf warnings.
30935         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
30936         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
30937         * m4/afs.m4 (gl_AFS): Likewise.
30938         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
30939         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
30940         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30941         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
30942         (gl_INTEGER_TYPE_SUFFIX): Likewise.
30943         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
30944         (AC_CHECK_DECLS_ONCE): Likewise.
30945         Rename file...
30946         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
30947         gnulib-tool requires autoconf 2.59 or better.
30948         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
30949
30950 2008-04-08  Eric Blake  <ebb9@byu.net>
30951
30952         Use 'git describe --match' if present (added in git 1.5.5).
30953         * build-aux/git-version-gen: Limit result to tags that match 'v*'
30954         if possible.
30955
30956 2008-04-08  Bruno Haible  <bruno@clisp.org>
30957
30958         Add tentative support for OpenServer.
30959         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
30960         _ptr, _cnt.
30961         * lib/fpurge.c (fpurge): Likewise.
30962         * lib/freadable.c (freadable): Likewise.
30963         * lib/freadahead.c (freadahead): Likewise.
30964         * lib/freading.c (freading): Likewise.
30965         * lib/freadptr.c (freadptr): Likewise.
30966         * lib/freadseek.c (freadptrinc): Likewise.
30967         * lib/fseeko.c (rpl_fseeko): Likewise.
30968         * lib/fseterr.c (fseterr): Likewise.
30969         * lib/fwritable.c (fwritable): Likewise.
30970         * lib/fwriting.c (fwriting): Likewise.
30971         Reported by Roger Cornelius <rac@tenzing.org> and
30972         Brian K. White <brian@aljex.com>.
30973
30974 2008-04-06  Jim Meyering  <meyering@redhat.com>
30975
30976         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
30977
30978 2008-04-06  Bruno Haible  <bruno@clisp.org>
30979
30980         Avoid possible error with non-ASCII bytes in UTF-8 locales.
30981         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
30982         * tests/test-printf-posix.sh: Likewise.
30983         * tests/test-vfprintf-posix.sh: Likewise.
30984         * tests/test-vprintf-posix.sh: Likewise.
30985         * tests/test-xprintf-posix.sh: Likewise.
30986
30987 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30988
30989         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
30990         hide error from 'ls', needed on OS/2.
30991         Report by Elbert Pol <elbert.pol@gmail.com>.
30992
30993 2008-04-04  Eric Blake  <ebb9@byu.net>
30994
30995         Make test-fseeko.c failures meaningful.
30996         * tests/test-fseeko.c: Print line number on failure.
30997         * tests/test-fseek.c: Likewise.
30998         Reported by Nelson H. F. Beebe.
30999
31000         Improve strtod bug detection check.
31001         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
31002         required for Solaris 10.
31003         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
31004
31005 2008-04-04  Bruno Haible  <bruno@clisp.org>
31006
31007         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
31008         by m4/setenv.m4.
31009
31010 2008-04-03  Eric Blake  <ebb9@byu.net>
31011
31012         Ensure sane .version contents.
31013         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
31014         version string.
31015         * build-aux/git-version-gen: Improve documentation.
31016
31017         Make GNU make output nicer.
31018         * top/GNUmakefile [!_have-Makefile]: Add dependency on
31019         MAKECMDGOALS to enforce message for all command line targets.  Set
31020         srcdir for use in maint.mk.
31021
31022         Another maintainer tweak.
31023         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
31024         a target that regenerates version.
31025
31026 2008-04-03  Jim Meyering  <meyering@redhat.com>
31027
31028         vc-list-files: don't cause coreutils "make po-check" failure
31029         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
31030
31031 2008-04-03  Eric Blake  <ebb9@byu.net>
31032
31033         Allow VPATH usage of vc-list-files.
31034         * build-aux/vc-list-files (scriptversion): Add timestamp.
31035         (options): Add --help, --version, -C.
31036         (CVS): Support installed cvsu.
31037
31038 2008-04-02  Bruno Haible  <bruno@clisp.org>
31039
31040         Avoid some "statement with no effect" warnings from gcc.
31041         * tests/test-wctype.c (main): Explicitly ignore unused values.
31042         Reported by Jim Meyering.
31043
31044 2008-04-02  Jim Meyering  <meyering@redhat.com>
31045
31046         Avoid some warnings from "gcc -Wshadow".
31047         * tests/test-frexp.c (exp): Define to a different identifier.
31048         * tests/test-frexpl.c (exp): Likewise.
31049
31050 2008-04-03  Jim Meyering  <meyering@redhat.com>
31051
31052         bootstrap: remove dangling *.[ch] symlinks from lib
31053         * build-aux/bootstrap [dangling symlink removal]: Move find's
31054         -depth option to precede all others, to avoid a warning.
31055         Remove *.[ch] files too, and from "$source_base" (usually lib/).
31056
31057 2008-04-02  Bruno Haible  <bruno@clisp.org>
31058
31059         Avoid some warnings from "gcc -Wshadow".
31060         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
31061         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
31062         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
31063         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
31064         Reported by Jim Meyering.
31065
31066 2008-04-01  Bruno Haible  <bruno@clisp.org>
31067
31068         Fix test to work on IRIX 6.5 with cc.
31069         * tests/test-math.c (numeric_equal): New function.
31070         (main): Use it.
31071
31072 2008-04-01  Bruno Haible  <bruno@clisp.org>
31073
31074         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
31075
31076 2008-04-01  Bruno Haible  <bruno@clisp.org>
31077
31078         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
31079         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31080         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
31081         (Depends-on): Remove math.
31082
31083         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
31084         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31085         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
31086         (Depends-on): Remove math.
31087
31088         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
31089         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31090         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
31091         (Depends-on): Remove math.
31092         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
31093         (Depends-on): Remove math.
31094
31095         * tests/test-sprintf-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/sprintf-posix-tests (Files): Add tests/nan.h.
31098         (Depends-on): Remove math.
31099         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
31100         (Depends-on): Remove math.
31101
31102         * tests/test-round1.c: Include nan.h.
31103         (main): Use NaNd instead of NAN.
31104         * modules/round-tests (Files): Add tests/nan.h.
31105
31106         * tests/test-trunc1.c: Include nan.h.
31107         (main): Use NaNd instead of NAN.
31108         * modules/trunc-tests (Files): Add tests/nan.h.
31109
31110         * tests/test-roundf1.c: Include nan.h.
31111         (main): Use NaNf instead of NAN.
31112         * modules/roundf-tests (Files): Add tests/nan.h.
31113
31114         * tests/test-truncf1.c: Include nan.h.
31115         (main): Use NaNf instead of NAN.
31116         * modules/truncf-tests (Files): Add tests/nan.h.
31117
31118         * tests/test-ceilf1.c: Include nan.h.
31119         (main): Use NaNf instead of NAN.
31120         * modules/ceilf-tests (Files): Add tests/nan.h.
31121
31122         * tests/test-floorf1.c: Include nan.h.
31123         (main): Use NaNf instead of NAN.
31124         * modules/floorf-tests (Files): Add tests/nan.h.
31125
31126         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
31127         (main): Use NaNf instead of NAN.
31128         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
31129
31130         * tests/test-isnand.c: Include nan.h instead of <math.h>.
31131         (main): Use NaNd instead of NAN.
31132         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
31133
31134         * tests/test-frexp.c: Include nan.h.
31135         (main): Use NaNd instead of NAN.
31136         * modules/frexp-tests (Files): Add tests/nan.h.
31137
31138         * lib/isnan.c: Don't include <math.h>.
31139         (FUNC): Don't use NAN macro.
31140         * modules/isnand-nolibm (Depends-on): Remove math.
31141         * modules/isnanf-nolibm (Depends-on): Remove math.
31142         * modules/isnanl (Depends-on): Remove math.
31143         * modules/isnanl-nolibm (Depends-on): Remove math.
31144
31145         * tests/nan.h: New file.
31146
31147 2008-04-01  Eric Blake  <ebb9@byu.net>
31148
31149         Fix typos.
31150         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
31151         values to be the right type.
31152
31153         For now, cater to gnulib strtod inaccuracies.
31154         * tests/test-strtod.c (main): Allow 1-ulp error on expected
31155         fractional results.  While not as nice from a QoI perspective, it
31156         is a quicker patch than correctly implementing decimal to binary
31157         rounding.
31158
31159 2008-03-31  Eric Blake  <ebb9@byu.net>
31160
31161         Guarantee a definition of NAN.
31162         * lib/math.in.h (NAN): Define if missing.
31163         * tests/test-math.c (main): Test it.
31164         * doc/posix-headers/math.texi (math.h): Document this.
31165         * lib/isnan.c (rpl_isnand): Use it.
31166         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
31167         * tests/test-floorf1.c (NaN): Likewise.
31168         * tests/test-frexp.c (NaN): Likewise.
31169         * tests/test-isnand.c (NaN): Likewise.
31170         * tests/test-isnanf.c (NaN): Likewise.
31171         * tests/test-round1.c (NaN): Likewise.
31172         * tests/test-roundf1.c (NaN): Likewise.
31173         * tests/test-snprintf-posix.h (NaN): Likewise.
31174         * tests/test-sprintf-posix.h (NaN): Likewise.
31175         * tests/test-trunc1.c (NaN): Likewise.
31176         * tests/test-truncf1.c (NaN): Likewise.
31177         * tests/test-vasnprintf-posix.c (NaN): Likewise.
31178         * tests/test-vasprintf-posix.c (NaN): Likewise.
31179         * modules/isnand-nolibm (Depends-on): Add math.
31180         * modules/isnanf-nolibm (Depends-on): Likewise.
31181         * modules/isnanl (Depends-on): Likewise.
31182         * modules/isnanl-nolibm (Depends-on): Likewise.
31183         * modules/snprintf-posix-tests (Depends-on): Likewise.
31184         * modules/sprintf-posix-tests (Depends-on): Likewise.
31185         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
31186         * modules/vsprintf-posix-tests (Depends-on): Likewise.
31187         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
31188         * modules/vasprintf-posix-tests (Depends-on): Likewise.
31189
31190 2008-03-31  Bruno Haible  <bruno@clisp.org>
31191
31192         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
31193         * doc/posix-functions/strtod.texi: Likewise.
31194
31195 2008-03-31  Bruno Haible  <bruno@clisp.org>
31196
31197         * tests/test-strtod.c (main): Don't use C99 syntax.
31198
31199 2008-03-31  Bruno Haible  <bruno@clisp.org>
31200
31201         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
31202         Reported by Eric Blake.
31203
31204 2008-03-31  Jim Meyering  <meyering@redhat.com>
31205
31206         Don't compare actual signbit return values.
31207         * tests/test-strtod.c (main): Rather, compare only their
31208         zero/non-zero nature.
31209
31210 2008-03-31  Eric Blake  <ebb9@byu.net>
31211
31212         More strtod documentation.
31213         * doc/posix-functions/strtod.texi (strtod): Interpret more test
31214         failures as distinct bugs.
31215
31216 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31217
31218         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
31219         Problem reported by Erik Benada in
31220         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
31221
31222 2008-03-30  Bruno Haible  <bruno@clisp.org>
31223
31224         * tests/test-strtod.c: Add comments about which assertion fails on which
31225         platform.
31226         * doc/posix-functions/strtod.texi: Add info about many more platforms.
31227
31228 2008-03-30  Eric Blake  <ebb9@byu.net>
31229
31230         Test signbit behavior on zeros.
31231         * tests/test-signbit.c (test_signbitf): Add tests for zero.
31232         (test_signbitd, test_signbitl): Likewise.
31233
31234         More strtod touchups.
31235         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
31236         sign of negative underflow, for now.  Use .5, not .1.
31237         * doc/posix-functions/strtod.texi (strtod): Mention these
31238         limitations.
31239         Reported by Jim Meyering.
31240
31241 2008-03-30  Bruno Haible  <bruno@clisp.org>
31242
31243         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
31244         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
31245
31246 2008-03-30  Bruno Haible  <bruno@clisp.org>
31247
31248         Avoid failure when attempting to return empty iconv results on some
31249         platforms.
31250         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
31251         allocation, don't report ENOMEM when the resulting string is empty.
31252
31253 2008-03-30  Bruno Haible  <bruno@clisp.org>
31254
31255         Fix buffer overrun.
31256         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
31257         Don't consider the width for tmp_length. Check count against tmp_length
31258         before doing the padding. Ensure enough allocation during padding.
31259
31260 2008-03-30  Eric Blake  <ebb9@byu.net>
31261
31262         strtod touchups.
31263         * lib/strtod.c (strtod): Avoid compiler warnings.
31264         Reported by Jim Meyering.
31265
31266 2008-03-30  Bruno Haible  <bruno@clisp.org>
31267
31268         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
31269         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
31270         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
31271         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
31272         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
31273         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
31274         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
31275         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
31276
31277         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
31278         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
31279         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
31280         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
31281         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
31282         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
31283         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
31284         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
31285
31286         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
31287         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
31288         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
31289         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
31290         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
31291         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
31292         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
31293         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
31294
31295         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
31296         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
31297
31298         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
31299         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
31300
31301         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
31302         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
31303
31304         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
31305         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
31306         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
31307
31308         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
31309         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
31310         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
31311
31312         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
31313         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
31314         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
31315
31316         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
31317         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
31318         * modules/vasprintf (Depends-on): Add EOVERFLOW.
31319
31320         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
31321         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
31322         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
31323         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
31324         (Depends-on): Add EOVERFLOW.
31325         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
31326         (Depends-on): Add EOVERFLOW.
31327         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31328         (Depends-on): Add EOVERFLOW.
31329         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31330         (Depends-on): Add EOVERFLOW.
31331         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31332         (Depends-on): Add EOVERFLOW.
31333         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31334         (Depends-on): Add EOVERFLOW.
31335         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31336         (Depends-on): Add EOVERFLOW.
31337         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31338         (Depends-on): Add EOVERFLOW.
31339
31340         * lib/sprintf.c (EOVERFLOW): Remove fallback.
31341         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
31342         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
31343
31344         * lib/snprintf.c (EOVERFLOW): Remove fallback.
31345         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
31346         * modules/snprintf (Depends-on): Add EOVERFLOW.
31347
31348         * lib/poll.c (EOVERFLOW): Remove fallback.
31349         * modules/poll (Depends-on): Add EOVERFLOW.
31350
31351         * lib/getugroups.c (EOVERFLOW): Remove fallback.
31352         * modules/getugroups (Depends-on): Add EOVERFLOW.
31353
31354         * lib/getdelim.c (EOVERFLOW): Remove fallback.
31355         * modules/getdelim (Depends-on): Add EOVERFLOW.
31356
31357         * lib/ftell.c (EOVERFLOW): Remove fallback.
31358         * modules/ftell (Depends-on): Add EOVERFLOW.
31359
31360         * lib/fprintf.c (EOVERFLOW): Remove fallback.
31361         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
31362         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
31363
31364         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
31365
31366         * modules/EOVERFLOW-tests: New file.
31367         * tests/test-EOVERFLOW.c: New file.
31368
31369         * modules/EOVERFLOW: New file.
31370         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
31371
31372 2008-03-30  Bruno Haible  <bruno@clisp.org>
31373
31374         Fix bug introduced on 2007-06-10.
31375         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
31376         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
31377
31378 2008-03-30  Bruno Haible  <bruno@clisp.org>
31379
31380         Improve freadseek's efficiency after ungetc.
31381         * lib/freadseek.c: Include freadahead.h.
31382         (freadptrinc): New function, extracted from freadseek.
31383         (freadseek): Use it in a loop. Use freadahead to determine the number
31384         of loop iterations.
31385         * modules/freadseek (Depends-on): Add freadahead.
31386         (configure.ac): Require AC_C_INLINE.
31387
31388 2008-03-30  Bruno Haible  <bruno@clisp.org>
31389
31390         * lib/freadseek.c (freadseek): Don't ignore the return value of
31391         freadptr.
31392
31393 2008-03-29  Eric Blake  <ebb9@byu.net>
31394
31395         Add hex float support.
31396         * modules/strtod (Depends-on): Add c-ctype.
31397         (Link): Mention POW_LIB.
31398         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
31399         whitespace between 'e' and exponent.
31400         * tests/test-strtod.c (main): Enable hex float tests.
31401         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
31402         now provides.
31403
31404         Document various strtod bugs, with some fixes.
31405         * doc/posix-functions/strtod.texi (strtod): Document bugs with
31406         "-0x", "inf", "nan", and hex constants.
31407         * doc/posix-functions/atof.texi (atof): Likewise.
31408         * modules/stdlib (Makefile.am): Support strtod.
31409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31410         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
31411         detect additional strtod bugs.
31412         * lib/stdlib.in.h (rpl_strtod): Add declarations.
31413         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
31414         bool where appropriate.  Parse 'inf' and 'nan'.
31415         * tests/test-strtod.c: New file.
31416         * modules/strtod (Depends-on): Add stdbool, stdlib.
31417         (configure.ac): Turn on module indicator.
31418         * modules/strtod-tests: New module.
31419
31420 2008-03-29  Eric Blake  <ebb9@byu.net>
31421
31422         Fix ftell on mingw.
31423         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
31424         * modules/ftell-tests (Depends-on): Add binary-io.
31425         * modules/ftello-tests (Depends-on): Likewise.
31426         * tests/test-ftell.c (main): Enhance test to cover behavior after
31427         ungetc.  Enforce binary mode.
31428         * tests/test-ftello.c (main): Likewise.
31429
31430         Pass test-freadseek on cygwin.
31431         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
31432         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
31433         ungetc buffer.
31434
31435         * tests/test-fflush2.c (main): Fix typo.
31436
31437 2008-03-29  Bruno Haible  <bruno@clisp.org>
31438
31439         * tests/test-fflush2.c (main): Temporarily disable the contents of
31440         this test.
31441         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
31442         Reported by Eric Blake.
31443
31444 2008-03-28  Simon Josefsson  <simon@josefsson.org>
31445
31446         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
31447         (GC_SHA224_DIGEST_SIZE): Add.
31448
31449         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
31450         (gc_hash_digest_length): Likewise.
31451         (gc_hash_buffer): Likewise.
31452
31453 2008-03-25  Bruno Haible  <bruno@clisp.org>
31454
31455         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
31456         detail which gettext release to use.
31457         Reported by Simon Josefsson.
31458
31459 2008-03-26  Jim Meyering  <meyering@redhat.com>
31460
31461         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
31462         * modules/gnumakefile (clean-GNUmakefile): Also, use
31463         test ... && ... || : syntax rather than if-then ... fi.
31464
31465         gnumakefile: Don't double-quote-expand $(VPATH) value.
31466         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
31467
31468 2008-03-24  Eric Blake  <ebb9@byu.net>
31469
31470         Alter GNUmakefile to install into top directory.
31471         * modules/maintainer-makefile: Split, and add dependency...
31472         * modules/gnumakefile: to this new module.
31473         * build-aux/GNUmakefile: Move...
31474         * top/GNUmakefile: ...here.
31475         * build-aux/maint.mk: Move...
31476         * top/maint.mk: ...here.
31477         * MODULES.html.sh (Support for maintaining...): Document new
31478         module.
31479
31480 2008-03-23  Bruno Haible  <bruno@clisp.org>
31481
31482         * gnulib-tool: New options --vc-files, --no-vc-files.
31483         (func_usage): Document them.
31484         (vc_files): New variable.
31485         (func_import): Consider vc_files.
31486         (func_create_testdir): Set vc_files to empty.
31487         Suggested by Jim Meyering and Karl Berry.
31488
31489 2008-03-23  Bruno Haible  <bruno@clisp.org>
31490
31491         Fix regex compilation error on HP-UX 11.
31492         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
31493         * modules/regex (Files): Add m4/mbstate_t.m4.
31494         Reported by Ton Voon <ton.voon@altinity.com>.
31495
31496 2008-03-23  Bruno Haible  <bruno@clisp.org>
31497
31498         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
31499
31500 2008-03-23  Eric Blake  <ebb9@byu.net>
31501             Bruno Haible  <bruno@clisp.org>
31502
31503         Install files from top/ in the destination directory.
31504         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31505         augmentation also for the files from top/.
31506         (func_import, func_create_testdir): Rewrite file names:
31507         top/filename -> filename.
31508
31509 2008-03-23  Bruno Haible  <bruno@clisp.org>
31510
31511         Tweak "gnulib --version" output.
31512         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
31513
31514 2008-03-23  Bruno Haible  <bruno@clisp.org>
31515
31516         Tweak "gnulib --version" output.
31517         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
31518         rather than contents of ChangeLog, when possible.
31519
31520 2008-03-21  Eric Blake  <ebb9@byu.net>
31521
31522         More --version tweaks.
31523         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
31524         date of last ChangeLog entry.
31525
31526 2008-03-21  Jim Meyering  <meyering@redhat.com>
31527
31528         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
31529
31530 2008-03-20  Eric Blake  <ebb9@byu.net>
31531
31532         VPATH fix.
31533         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
31534
31535 2008-03-20  Simon Josefsson  <simon@josefsson.org>
31536
31537         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
31538         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
31539
31540 2008-03-20  Eric Blake  <ebb9@byu.net>
31541
31542         Sync GNUmakefile with coreutils.
31543         * build-aux/GNUmakefile (have-Makefile): Rename...
31544         (_have-Makefile): ...to this, for namespace consideration.
31545         (GNUmakefile.cfg): Include, if present.
31546         (_autoreconf): Define a default.
31547         (_is-dist-target): New rule for rebuilds to pick up intra-release
31548         version.
31549         (maint-cfg.mk): Rename...
31550         (cfg.mk): ...to this.
31551
31552 2008-03-18  Jim Meyering  <meyering@redhat.com>
31553
31554         New script and module: mktempd
31555         * MODULES.html.sh (maint+release support): Add mktempd.
31556         * build-aux/mktempd: New file.
31557         * modules/mktempd: New file.
31558
31559 2008-03-15  Jim Meyering  <meyering@redhat.com>
31560
31561         Undo last change.
31562         * lib/sha1.c, lib/md5.c: 63 != ~63.
31563         Reported by Andreas Schwab.
31564
31565         sha1.c, md5.c: Hoist a redundant expression.
31566         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
31567         "ctx->buflen" only once, before calling *_process_block.
31568         * lib/md5.c (md5_process_bytes): Likewise.
31569
31570 2008-03-14  Eric Blake  <ebb9@byu.net>
31571
31572         Bump copyright year in files generated by gnulib-tool.
31573         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
31574         gnulib-tool, rather than hard-coding it.
31575
31576         Fix 'gnulib-tool --version' output to work with git.
31577         * gnulib-tool (func_gnulib_dir): New function, extracted from...
31578         (startup): ...here.
31579         (func_version): Use it to invoke git-version-gen, rather than
31580         relying on CVS keyword expansion.  Modernize wording.
31581         (cvsdatestamp, last_checkin_date, version): Kill unused
31582         variables.
31583
31584 2008-03-12  Jim Meyering  <meyering@redhat.com>
31585
31586         Recognize optional cast of the argument to free.
31587         * build-aux/useless-if-before-free: Update regexps.
31588
31589         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31590
31591 2008-03-11  Bruno Haible  <bruno@clisp.org>
31592
31593         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31594         by a single package.
31595         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31596         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31597         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31598         Reported by Sam Steingold <sds@gnu.org>.
31599
31600 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31601
31602         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31603         repositories.
31604
31605 2008-03-11  Bruno Haible  <bruno@clisp.org>
31606
31607         Avoid conflicts between local macro definitions.
31608         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31609         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31610
31611 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31612             Bruno Haible  <bruno@clisp.org>
31613
31614         Make va_copy work with some version of xlc on AIX 5.1.
31615         * lib/stdarg.in.h: New file.
31616         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31617         On AIX, use a <stdarg.h> file substitute.
31618         * modules/stdarg (Files): Add lib/stdarg.in.h.
31619         (Depends-on): Add include_next.
31620         (Makefile.am): Build a stdarg.h substitute if requested.
31621         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31622
31623 2008-03-10  Bruno Haible  <bruno@clisp.org>
31624
31625         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31626         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31627         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31628
31629 2008-03-10  Bruno Haible  <bruno@clisp.org>
31630
31631         * modules/stdlib (Depends-on): Add include_next, remove
31632         absolute-header.
31633
31634 2008-03-09  Bruno Haible  <bruno@clisp.org>
31635
31636         * lib/freadahead.h (freadahead): Document more precisely.
31637         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31638         the sum of both buffer sizes.
31639         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31640         * NEWS: Document the change.
31641
31642 2008-03-09  Bruno Haible  <bruno@clisp.org>
31643
31644         Extend freadptr to return also the buffer size.
31645         * lib/freadptr.h (freadptr): Add sizep argument.
31646         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31647         (freadptr): Add sizep argument. Determine buffer size like freadahead
31648         does.
31649         * tests/test-freadptr.c: Don't include freadahead.h.
31650         (main): Adapt for new calling convention of freadptr.
31651         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31652         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31653         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31654         tests/test-freadptr2.sh.
31655         (Depends): Remove freadahead.
31656         (TESTS): Add test-freadptr2.sh.
31657         (check_PROGRAMS): Add test-freadptr2.
31658
31659 2008-03-09  Bruno Haible  <bruno@clisp.org>
31660
31661         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31662         Report and solution by Simon Josefsson.
31663
31664 2008-03-06  Bruno Haible  <bruno@clisp.org>
31665
31666         Make fflush after ungetc work on BSD platforms.
31667         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31668         * tests/test-fflush2.c: New file.
31669         * tests/test-fflush2.sh: New file.
31670         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31671         tests/test-fflush2.c.
31672         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31673         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31674
31675 2008-03-06  Eric Blake  <ebb9@byu.net>
31676
31677         Likewise for ftello.
31678         * modules/ftello (Dependencies): Add extensions.
31679         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31680
31681 2008-03-06  Bruno Haible  <bruno@clisp.org>
31682
31683         * modules/fseeko (Dependencies): Add extensions.
31684         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31685         Needed on glibc systems.
31686
31687 2008-03-06  Bruno Haible  <bruno@clisp.org>
31688
31689         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31690         email address.
31691         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31692
31693 2008-03-06  Bruno Haible  <bruno@clisp.org>
31694
31695         * users.txt: Add libgnupdf.
31696
31697 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31698
31699         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31700         (Header File Substitutes, Function Substitutes,
31701         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31702         (Build robot for gnulib): Fix typo.
31703
31704 2008-03-06  Bruno Haible  <bruno@clisp.org>
31705
31706         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31707         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31708
31709 2008-03-06  Bruno Haible  <bruno@clisp.org>
31710
31711         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31712         * doc/gnulib.texi: Include it.
31713
31714 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31715
31716         * modules/func (License): Change license to unlimited; there was
31717         no LGPL parts in the module anyway.
31718
31719 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31720
31721         * modules/__func__: Renamed to modules/func.
31722         * modules/__func__-tests: Renamed to modules/func-tests.
31723         * tests/test-__func__.c: Renamed to tests/test-func.c.
31724         * m4/__func__.m4: Renamed to m4/func.m4.
31725         * doc/gnulib.texi (__func__): Section renamed to func.
31726         Suggested by Eric Blake <ebb9@byu.net>.
31727
31728 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31729
31730         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31731         about __func__.  Make example self-contained.  Suggested by Eric
31732         Blake <ebb9@byu.net>.
31733
31734         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31735         Suggested by Eric Blake <ebb9@byu.net>.
31736
31737 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31738
31739         * modules/__func__: New file.
31740         * modules/__func__-tests: New file.
31741         * tests/test-__func__.c: New file.
31742         * m4/__func__.m4: New file.
31743         * doc/gnulib.texi (__func__): Document __func__ module.
31744
31745 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31746
31747         * modules/byteswap (License): Re-license as LGPLv2+.
31748
31749 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31750
31751         * doc/Makefile: Add pdf target.
31752
31753 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31754
31755         * modules/inline (License): Use 'unlimited', since there are only
31756         *.m4 files in this module.
31757
31758 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31759             Bruno Haible  <bruno@clisp.org>
31760
31761         Add support for HP C 7.1 on OpenVMS 8.3.
31762         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31763
31764 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31765
31766         Update VMS specifics.
31767         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31768
31769 2008-03-02  Jim Meyering  <meyering@redhat.com>
31770
31771         Remove the last dependency on the "free" module.
31772         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31773         Reported by Bob Proulx.
31774
31775         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31776
31777         Remove useless "if" tests before free.  Deprecate "free" module.
31778         * doc/posix-functions/free.texi: Mention that this
31779         module is no longer useful.
31780         * modules/free (Notice): Say this module is obsolete.
31781         * modules/readutmp (Depends-on): Remove free.
31782         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31783         * lib/putenv.c (putenv): Likewise.
31784         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31785         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31786         * tests/test-c-strcasestr.c (main): Likewise.
31787         * tests/test-c-strstr.c (main): Likewise.
31788         * tests/test-mbscasestr1.c (main): Likewise.
31789         * tests/test-mbscasestr2.c (main): Likewise.
31790         * tests/test-mbsstr1.c (main): Likewise.
31791         * tests/test-mbsstr2.c (main): Likewise.
31792         * tests/test-memmem.c (main): Likewise.
31793         * tests/test-strcasestr.c (main): Likewise.
31794         * tests/test-striconv.c (main): Likewise.
31795         * tests/test-striconveh.c (main): Likewise.
31796         * tests/test-striconveha.c (main): Likewise.
31797         * tests/test-strstr.c (main): Likewise.
31798
31799         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31800
31801         bootstrap: sync from coreutils again
31802         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31803
31804 2008-03-01  Jim Meyering  <meyering@redhat.com>
31805
31806         bootstrap: sync from coreutils
31807         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31808         also when the target doesn't exist.
31809
31810 2008-03-01  Eric Blake  <ebb9@byu.net>
31811
31812         Fix bugs in last patch.
31813         * lib/memchr2.c (memchr2): Fix typo.
31814         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31815         extension.
31816         Reported by Bruce Korb.
31817
31818         New module 'memchr2'.
31819         * modules/memchr2: New file.
31820         * modules/memchr2-tests: Likewise.
31821         * lib/memchr2.h: Likewise.
31822         * lib/memchr2.c: Likewise, based on memchr.c.
31823         * tests/test-memchr2.c: New test.
31824         * MODULES.html.sh (String handling): Add memchr2.
31825
31826 2008-02-29  Bruno Haible  <bruno@clisp.org>
31827
31828         * modules/freadseek-tests: New file.
31829         * tests/test-freadseek.sh: New file.
31830         * tests/test-freadseek.c: New file.
31831
31832         New module 'freadseek'.
31833         * modules/freadseek: New file.
31834         * lib/freadseek.h: New file.
31835         * lib/freadseek.c: New file.
31836         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
31837
31838 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31839
31840         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
31841         wydawca.
31842
31843         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
31844         program_invocation_name and program_invocation_short_name are
31845         present.
31846
31847 2008-02-28  Bruno Haible  <bruno@clisp.org>
31848
31849         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
31850         * tests/test-freadptr.sh: Also test non-seekable stdin.
31851
31852 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
31853
31854         * build-aux/bootstrap (source_base, m4_base)
31855         (doc_base, tests_base): New variables.
31856         (gnulib_tool_options): Do not hardcode base directories, use
31857         the above variables instead.
31858
31859 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
31860
31861         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
31862
31863 2008-02-28  Bruno Haible  <bruno@clisp.org>
31864
31865         * modules/freadptr-tests: New file.
31866         * tests/test-freadptr.sh: New file.
31867         * tests/test-freadptr.c: New file.
31868
31869         New module 'freadptr'.
31870         * modules/freadptr: New file.
31871         * lib/freadptr.h: New file.
31872         * lib/freadptr.c: New file.
31873         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
31874
31875 2008-02-26  Karl Berry  <karl@freefriends.org>
31876
31877         Sync from Libtool:
31878         * libltdl/argz.c (argz_add, argz_count): New functions.
31879         * libltdl/argz.in.h: Declare them.
31880         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
31881
31882 2008-02-22  Bruno Haible  <bruno@clisp.org>
31883
31884         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
31885         is a pointer type.  Needed for HP-UX 10.
31886         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
31887         * doc/posix-functions/gmtime_r.texi: Likewise.
31888         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31889
31890 2008-02-24  Bruno Haible  <bruno@clisp.org>
31891
31892         * modules/environ-tests: New file.
31893         * tests/test-environ.c: New file.
31894
31895         New module 'environ'.
31896         * modules/environ: New file.
31897         * lib/unistd.in.h (environ): New declaration.
31898         * m4/environ.m4: New file.
31899         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
31900         after use.
31901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
31902         HAVE_DECL_ENVIRON.
31903         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
31904         HAVE_DECL_ENVIRON.
31905         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
31906         wrong claim that 'environ' is missing on some systems.
31907         * modules/execute (Depends-on): Add environ.
31908         * lib/execute.c (environ): Remove fallback declaration.
31909         * modules/pipe (Depends-on): Add environ.
31910         * lib/pipe.c (environ): Remove fallback declaration.
31911         * modules/setenv (Depends-on): Add environ.
31912         * lib/setenv.c (environ): Remove fallback declaration.
31913         * modules/unsetenv (Depends-on): Add environ.
31914         * lib/unsetenv.c (environ): Remove fallback declaration.
31915         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
31916         m4/environ.m4.
31917         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
31918         (gl_PREREQ_UNSETENV): Likewise.
31919
31920 2008-02-24  Bruno Haible  <bruno@clisp.org>
31921
31922         * doc/posix-functions/environ.texi: Document the MacOS X problem.
31923
31924 2008-02-20  Bob Proulx  <bob@proulx.com>
31925
31926         Enable use of older two part flavor 'git describe'.
31927         * build-aux/git-version-gen: If using the older two part flavor of
31928         git version then recreate the third part now present in the
31929         newer three part flavor of git describe.
31930
31931 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
31932
31933         * lib/fts.c (fts_build): Typo correction to comment.
31934
31935 2008-02-17  Bruno Haible  <bruno@clisp.org>
31936
31937         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
31938         generating no-op conflicts.
31939
31940 2008-02-17  Bruno Haible  <bruno@clisp.org>
31941
31942         Speed up by 10%.
31943         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
31944         result_entries, rather than an index-based loop.
31945
31946 2008-02-17  Bruno Haible  <bruno@clisp.org>
31947
31948         Speed up by 25%.
31949         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
31950         'hashcode_cached'.
31951         (entry_create): New function.
31952         (entry_hashcode): Use the cached hashcode if possible.
31953         (read_changelog_file, try_split_merged_entry): Use entry_create.
31954
31955 2008-02-17  Bruno Haible  <bruno@clisp.org>
31956
31957         Speed up from O(n^2) to O(n) for long ChangeLog files.
31958         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
31959         (read_changelog_file): Change implementation of entries_reversed list
31960         to rbtreehash.
31961         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
31962
31963 2008-02-17  Bruno Haible  <bruno@clisp.org>
31964
31965         New option --split-merged-entry.
31966         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
31967         (find_paragraph_end, try_split_merged_entry): New functions.
31968         (long_options): Add option --split-merged-entry.
31969         (usage): Document option --split-merged-entry.
31970         (main): Implement option --split-merged-entry.
31971         Reported by Eric Blake.
31972
31973 2008-02-17  Bruno Haible  <bruno@clisp.org>
31974
31975         * lib/git-merge-changelog.c: Include c-strstr.h.
31976         (main): Support the "git pull --rebase" situation.
31977         * modules/git-merge-changelog (Depends-on): Add c-strstr.
31978         Reported by Eric Blake.
31979
31980 2008-02-16  Eric Blake  <ebb9@byu.net>
31981
31982         Avoid doubling \ in common case of "c-maybe" quoting style.
31983         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
31984         eliding outer quotes.
31985         * lib/quotearg.h: Document this.
31986         * tests/test-quotearg.c (result_strings, inputs, results_g)
31987         (flag_results, locale_results): Test it by adding a new string to
31988         each test group.
31989         (compare_strings): Test new string.
31990
31991 2008-02-13  Eric Blake  <ebb9@byu.net>
31992
31993         Avoid trigraph quoting in default output.
31994         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
31995         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
31996         unless explicitly requested.
31997         * tests/test-quotearg.c (flag_results, main): Add additional tests.
31998
31999 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
32000
32001         Don't rely on signed integer overflowing to negative value.
32002         * lib/getugroups.c (getugroups): Include <limits.h>.
32003         Instead, compare against INT_MAX, and increment only if the test passes.
32004
32005 2008-02-13  Jim Meyering  <meyering@redhat.com>
32006         and Eric Blake  <ebb9@byu.net>
32007
32008         Avoid shadowing warning and compile errors on Linux.
32009         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
32010         forwarding macros on Linux.
32011         (dcgettext): Define a stub, for Linux.
32012         (results_g, main): Avoid warnings.
32013
32014 2008-02-12  Eric Blake  <ebb9@byu.net>
32015
32016         Silence warning in last patch.
32017         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
32018
32019         Quotearg part 4: add tests, fix c-maybe colon quoting.
32020         * lib/quotearg.h: Improve documentation.
32021         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
32022         escapes when adding outer quotes.  When quoting trigraphs, use
32023         valid C notation.  When quoting NUL, omit extra characters if next
32024         character is not digit.  Alter prototype.
32025         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
32026         callers.
32027         * modules/quotearg-tests: New module.
32028         * tests/test-quotearg.c: New test.
32029
32030 2008-02-07  Eric Blake  <ebb9@byu.net>
32031
32032         Quotearg part 3: add flag to control outer quote elision.
32033         * lib/quotearg.h (c_maybe_quoting_style): New style.
32034         (enum quoting_flags): Better documentation of flags.
32035         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
32036         c-maybe style.
32037         (quotearg_buffer_restyled): Handle new flag to elide outer
32038         quotes.
32039
32040         Quotearg part 2: add flag that can control NUL elision.
32041         * lib/quotearg.h (set_quoting_flags): New prototype.
32042         * lib/quotearg.c (struct quoting_options): Add flag field.
32043         (set_quoting_flags): New function.
32044         (quotearg_buffer_restyled): Add flags parameter.
32045         (quotearg_alloc_mem): Set the flag if length cannot be returned.
32046         (quotearg_n_options): Set the flag, since length cannot be
32047         returned.
32048         (quoting_options_from_style): Default flags correctly.
32049
32050         Quotearg part 1: more wrappers, restore quotearg_char state.
32051         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
32052         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
32053         (quotearg_colon_mem): New wrappers.
32054         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
32055         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
32056         functions.
32057         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
32058         (quotearg_colon_mem): New functions.
32059
32060 2008-02-11  Bruno Haible  <bruno@clisp.org>
32061
32062         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
32063         library in the current directory: it does not work with parallel make.
32064         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32065
32066 2008-02-11  Bruno Haible  <bruno@clisp.org>
32067
32068         * .gitattributes: New file.
32069
32070 2008-02-11  Jim Meyering  <meyering@redhat.com>
32071
32072         useless-if-before-free: Fix reversed exit values.
32073         * build-aux/useless-if-before-free: Use correct values
32074         for EXIT_MATCH and EXIT_NO_MATCH.
32075
32076         * build-aux/useless-if-before-free: Close stdout carefully.
32077
32078 2008-02-10  Bruno Haible  <bruno@clisp.org>
32079
32080         New module 'git-merge-changelog'.
32081         * modules/git-merge-changelog: New file.
32082         * lib/git-merge-changelog.c: New file.
32083
32084 2008-02-10  Jim Meyering  <meyering@redhat.com>
32085
32086         useless-if-before-free: New option: --list (-l).
32087
32088         useless-if-before-free: Don't exit immediately upon open failure.
32089         * build-aux/useless-if-before-free: Exit 2 for errors.
32090         Upon failure to open a file, don't exit immediately.
32091         Rather, just warn and continue with any remaining files.
32092
32093 2008-02-10  Bruno Haible  <bruno@clisp.org>
32094
32095         New abstract list operation 'node_set_value'.
32096         * lib/gl_list.h (gl_list_node_set_value): New function.
32097         (struct gl_list_implementation): New field node_set_value.
32098         * lib/gl_list.c (gl_list_node_set_value): New function.
32099         * lib/gl_array_list.c (gl_array_node_set_value): New function.
32100         (gl_array_list_implementation): Update.
32101         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
32102         (gl_carray_list_implementation): Update.
32103         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
32104         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32105         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32106         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
32107         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32108         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32109         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32110         Update.
32111         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32112         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
32113         (gl_sublist_list_implementation): Update.
32114
32115 2008-02-10  Bruno Haible  <bruno@clisp.org>
32116
32117         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
32118         Needed when ELEMENT is #defined to 'some_type *'.
32119
32120 2008-02-10  Jim Meyering  <meyering@redhat.com>
32121
32122         New script and module: useless-if-before-free
32123         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
32124         * build-aux/useless-if-before-free: New file.
32125         * modules/useless-if-before-free: New file.
32126
32127         * build-aux/gitlog-to-changelog: Use committer date, not author date.
32128
32129         xstrtol_error: Fix typo.
32130         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
32131         s/exit_failure/exit_status/.
32132
32133 2008-02-09  Jim Meyering  <meyering@redhat.com>
32134
32135         New script and module: gitlog-to-changelog
32136         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
32137         * modules/gitlog-to-changelog: New file.
32138         * build-aux/gitlog-to-changelog: New file.
32139
32140 2008-02-08  Jim Meyering  <meyering@redhat.com>
32141
32142         Avoid two "parameter unused" warnings.
32143         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
32144         Mark "st" as used.
32145
32146         Use "git COMMAND", not "git-COMMAND".
32147         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
32148         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
32149         * build-aux/git-version-gen: Use "git status", not "git-status".
32150
32151 2008-02-07  Bruno Haible  <bruno@clisp.org>
32152
32153         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
32154         Avoids a crash on Windows Vista.
32155         Reported by Adam Strzelecki <ono@java.pl> via
32156         Simon Josefsson <simon@josefsson.org>.
32157
32158 2008-02-06  Bruno Haible  <bruno@clisp.org>
32159
32160         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
32161         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
32162         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
32163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
32164         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32165         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32166         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
32167         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
32168         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32169         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32170         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32171         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32172         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32173         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32174         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32175         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
32176         left-adjust flag.
32177         * tests/test-snprintf-posix.h (test_function): Likewise.
32178         * tests/test-sprintf-posix.h (test_function): Likewise.
32179         * tests/test-vasprintf-posix.c (test_function): Likewise.
32180         * doc/posix-functions/fprintf.texi: Update.
32181         * doc/posix-functions/printf.texi: Update.
32182         * doc/posix-functions/snprintf.texi: Update.
32183         * doc/posix-functions/sprintf.texi: Update.
32184         * doc/posix-functions/vfprintf.texi: Update.
32185         * doc/posix-functions/vprintf.texi: Update.
32186         * doc/posix-functions/vsnprintf.texi: Update.
32187         * doc/posix-functions/vsprintf.texi: Update.
32188         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32189
32190 2008-02-06  Bruno Haible  <bruno@clisp.org>
32191
32192         Fix bug introduced on 2008-01-26.
32193         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
32194
32195 2008-02-06  Bruno Haible  <bruno@clisp.org>
32196
32197         Fix bug introduced on 2007-06-10.
32198         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
32199         !NEED_PRINTF_FLAG_ZERO.
32200
32201 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
32202
32203         getloadavg: use libperfstat on AIX5
32204         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
32205
32206 2008-02-03  Bruno Haible  <bruno@clisp.org>
32207
32208         * lib/diffseq.h: Add comments about required #includes.
32209         Reported by Michael Biggs <gnulib@doubleplum.net>.
32210
32211 2008-02-01  Bruno Haible  <bruno@clisp.org>
32212
32213         * users.txt: Add gnuit.
32214
32215 2008-01-31  Bruno Haible  <bruno@clisp.org>
32216
32217         * lib/md4.c (set_uint32): Mark as inline.
32218         * lib/md5.c (set_uint32): Likewise.
32219         * lib/sha1.c (set_uint32): Likewise.
32220         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
32221         * m4/md5.m4 (gl_MD5): Likewise.
32222         * m4/sha1.m4 (gl_SHA1): Likewise.
32223
32224 2008-01-31  Jim Meyering  <meyering@redhat.com>
32225
32226         Use "sizeof VAR", rather than a literal "4".
32227         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
32228         * lib/md4.c (md4_read_ctx): Likewise.
32229         * lib/sha1.c (sha1_read_ctx): Likewise.
32230
32231 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32232
32233         * tests/test-sha1.c: New file, based on test-md5.c.
32234
32235         * modules/crypto/sha1-tests: New file.
32236
32237 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32238
32239         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
32240
32241 2008-01-31  Jim Meyering  <meyering@redhat.com>
32242
32243         Prefer "sizeof v" over the equivalent "4".
32244         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
32245         * lib/md5.c (set_uint32): Likewise.
32246         * lib/sha1.c (set_uint32): Likewise.
32247
32248 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32249
32250         * lib/sha1.c (set_uint32): Mark function as static.
32251
32252 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32253
32254         md2: clarify comments to say that alignment is not required.
32255         * lib/md2.h: Remove warning about alignment in comment.
32256         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
32257         never been required.
32258
32259 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32260
32261         md4: adapt alignment constraint fix from sha1.
32262         * lib/md4.c (set_uint32): New function, from sha1.c
32263         (md4_read_ctx): Use it.
32264         (md4_finish_ctx): Doc fix.
32265         * lib/md4.h: Doc fix.
32266
32267 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32268
32269         md5: adapt alignment constraint fix from sha1.
32270         * lib/md5.c (set_uint32): New function, from sha1.c
32271         (md5_read_ctx): Use it.
32272         (md5_finish_ctx): Doc fix.
32273         * lib/md5.h: Doc fix.
32274
32275 2008-01-30  Peter Palfrader  <weasel@debian.org>
32276
32277         sha1: remove the result buffer alignment constraint
32278         * lib/sha1.c (set_uint32): New function.
32279         (sha1_read_ctx): Rewrite to remove the result buffer alignment
32280         constraint.
32281         (sha1_finish_ctx): Remove comment warning about alignment constraint.
32282         * lib/sha1.h: Likewise.
32283
32284 2008-01-30  Andreas Schwab  <schwab@suse.de>
32285             Bruno Haible  <bruno@clisp.org>
32286
32287         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
32288         correct definition of LDBL_MIN_EXP.
32289
32290 2008-01-30  Karl Berry  <karl@gnu.org>
32291
32292         * config/srclist-update: try to preserve x bit on updates.
32293         * config/srclistvars.sh: update for karl.
32294
32295 2008-01-29  Jim Meyering  <meyering@redhat.com>
32296
32297         vasnprintf.c: Avoid warning about unused label
32298         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
32299         "overflow" label definition and associated code with the
32300         same cpp condition that guards the sole use of that label.
32301
32302 2008-01-26  Bruno Haible  <bruno@clisp.org>
32303
32304         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
32305         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
32306         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
32307         * lib/isnanl-nolibm.h (isnanl): Likewise.
32308         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32309
32310 2008-01-26  Bruno Haible  <bruno@clisp.org>
32311
32312         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
32313         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
32314
32315 2008-01-26  Bruno Haible  <bruno@clisp.org>
32316
32317         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
32318         GCC >= 4.0 built-in.
32319         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
32320
32321 2008-01-26  Bruno Haible  <bruno@clisp.org>
32322
32323         Rename isnan, applicable to 'double' only, to isnand.
32324         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
32325         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
32326         (configure.ac): Update.
32327         (Include): Replace "isnan.h" with "isnand.h".
32328         * m4/isnand.m4: Renamed from m4/isnan.m4.
32329         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
32330         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
32331         instead of isnan.c.
32332         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
32333         instead of HAVE_ISNAN_IN_LIBC.
32334         (isnand): Renamed from isnan.
32335         * lib/isnand.c: New file.
32336         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
32337         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
32338         (Makefile.am): Update.
32339         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
32340         Include isnand.h instead of isnan.h.
32341         (main): Test isnand instead of isnan.
32342         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
32343         isnan-nolibm.
32344         * modules/frexp (Depends-on): Likewise.
32345         * modules/frexp-tests (Depends-on): Likewise.
32346         * modules/frexp-nolibm (Depends-on): Likewise.
32347         * modules/frexp-nolibm-tests (Depends-on): Likewise.
32348         * modules/isfinite (Depends-on): Likewise.
32349         * modules/round-tests (Depends-on): Likewise.
32350         * modules/signbit (Depends-on): Likewise.
32351         * modules/signbit-tests (Depends-on): Likewise.
32352         * modules/snprintf-posix (Depends-on): Likewise.
32353         * modules/sprintf-posix (Depends-on): Likewise.
32354         * modules/trunc-tests (Depends-on): Likewise.
32355         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32356         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32357         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32358         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32359         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32360         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32361         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32362         * modules/vasnprintf-posix (Depends-on): Likewise.
32363         * modules/vasprintf-posix (Depends-on): Likewise.
32364         * modules/vfprintf-posix (Depends-on): Likewise.
32365         * modules/vsnprintf-posix (Depends-on): Likewise.
32366         * modules/vsprintf-posix (Depends-on): Likewise.
32367         * lib/frexp.c: Include isnand.h instead of isnan.h.
32368         (ISNAN): Set to isnand instead of isnan.
32369         * lib/isfinite.c: Include isnand.h instead of isnan.h.
32370         (gl_isfinited): Use isnand instead of isnan.
32371         * lib/signbitd.c: Include isnand.h instead of isnan.h.
32372         (gl_signbitd): Use isnand instead of isnan.
32373         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
32374         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
32375         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
32376         (main): Use isnand instead of isnan.
32377         * tests/test-round1.c: Include isnand.h.
32378         (main): Use isnand instead of isnan.
32379         * tests/test-round2.c: Include isnand.h instead of isnan.h.
32380         (ISNAN): Set to isnand instead of isnan.
32381         * tests/test-trunc1.c: Include isnand.h.
32382         (main): Use isnand instead of isnan.
32383         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
32384         (equal): Use isnand instead of isnan.
32385         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
32386         isnand-nolibm.
32387         * NEWS: Mention the change.
32388
32389 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32390             Bruno Haible  <bruno@clisp.org>
32391
32392         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
32393         the GCC builtins for signbits are present and set
32394         REPLACE_SIGNBIT_USING_GCC if so.
32395         * lib/math.in.h (signbit): Define using GCC builtins if
32396         REPLACE_SIGNBIT_USING_GCC is set.
32397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
32398         REPLACE_SIGNBIT_USING_GCC.
32399         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
32400
32401 2008-01-25  Jim Meyering  <meyering@redhat.com>
32402
32403         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
32404         * lib/poll.c: Include <config.h>, not "config.h".
32405         * tests/test-getaddrinfo.c: Likewise.
32406
32407 2008-01-25  Simon Josefsson  <simon@josefsson.org>
32408
32409         * modules/sockets-tests: New file.
32410
32411 2008-01-24  Simon Josefsson  <simon@josefsson.org>
32412
32413         * modules/sockets: New module, can be used to call WSA_Startup and
32414         WSA_Cleanup when needed.
32415
32416         * lib/sockets.h, lib/sockets.c: New files.
32417
32418         * m4/sockets.m4: New file.
32419
32420         * tests/test-sockets.c: New file.
32421
32422 2008-01-19  Bruno Haible  <bruno@clisp.org>
32423
32424         * doc/posix-headers: Renamed from doc/headers.
32425         * doc/posix-functions: Renamed from doc/functions.
32426         * doc/gnulib.texi: Update.
32427
32428 2008-01-19  Bruno Haible  <bruno@clisp.org>
32429
32430         * doc/glibc-functions/strcasestr.texi: Include contents of
32431         doc/functions/strcasestr.texi, fixing the list of platforms.
32432         * doc/functions/strcasestr.texi: Remove file.
32433
32434 2008-01-19  Bruno Haible  <bruno@clisp.org>
32435
32436         * doc/glibc-functions/memmem.texi: Include contents of
32437         doc/functions/memmem.texi.
32438         * doc/functions/memmem.texi: Remove file.
32439
32440 2008-01-18  Bruno Haible  <bruno@clisp.org>
32441
32442         * doc/glibc-functions/*.texi: New files.
32443         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
32444         to use the new files.
32445
32446 2008-01-17  Bruno Haible  <bruno@clisp.org>
32447
32448         * tests/test-gethostname.c (main): Fix printf statement.
32449
32450 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32451
32452         * modules/gethostname-tests: New file.
32453
32454         * tests/test-gethostname.c: New file.
32455
32456 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32457
32458         * lib/gethostname.c: Include string.h unconditionally, strncpy is
32459         used by the UNAME case.  Reported by Bruno Haible
32460         <bruno@clisp.org>.
32461
32462 2008-01-17  Eric Blake  <ebb9@byu.net>
32463
32464         Convert c-strcasestr to be more efficient.
32465         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
32466         (Depends-on): Add c-strcase, remove malloca, strnlen.
32467         * tests/test-c-strcasestr.c (main): Enhance test.
32468         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
32469
32470 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32471
32472         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
32473         Use it in creating po/Makevars.
32474
32475 2008-01-15  Simon Josefsson  <simon@josefsson.org>
32476
32477         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
32478         Applications that requires it should initialize libgcrypt
32479         manually.
32480
32481 2008-01-16  Simon Josefsson  <simon@josefsson.org>
32482
32483         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
32484
32485 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32486
32487         Fix problem with getdate on mingw32 reported by Simon Josefsson
32488         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
32489         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
32490         tzname", when deciding whether to declare tzname.
32491         * lib/strftime.c (tzname): Likewise.
32492
32493 2008-01-15  Bruno Haible  <bruno@clisp.org>
32494
32495         Work around a MacOS X 10.5 bug in frexpl().
32496         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
32497         * doc/functions/frexpl.texi: Document the bug.
32498         Reported by Elias Pipping <pipping@gentoo.org>.
32499
32500 2008-01-14  Eric Blake  <ebb9@byu.net>
32501
32502         Touch up previous patch.
32503         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
32504         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
32505
32506         Convert strcasestr module to use Two-Way algorithm.
32507         * modules/strcasestr-simple: New module, based on the old
32508         strcasestr, but with Two-Way rather than KMP.
32509         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
32510         * lib/string.in.h (rpl_strcasestr): Declare.
32511         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
32512         performance.
32513         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
32514         * modules/string (Makefile.am): Support strcasestr.
32515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32516         * modules/strcasestr-tests (Depends-on): Check for alarm.
32517         * tests/test-strcasestr.c: Augment test.
32518         * lib/str-two-way.h: Clean up stray macro.
32519         * NEWS: Document new module.
32520         * MODULES.html.sh (string handling): Likewise.
32521         * doc/functions/strcasestr.texi: New file.
32522         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
32523         here, since it is not a POSIX function.
32524
32525 2008-01-14  Colin Watson  <cjwatson@debian.org>
32526             Bruno Haible  <bruno@clisp.org>
32527
32528         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
32529         works fine; if not, set REPLACE_STRSIGNAL.
32530         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
32531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32532         REPLACE_STRSIGNAL.
32533         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
32534         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
32535         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
32536
32537 2008-01-14  Bruno Haible  <bruno@clisp.org>
32538
32539         * modules/strsignal (Include): Change to <string.h>.
32540
32541 2008-01-14  Colin Watson  <cjwatson@debian.org>
32542
32543         * modules/argp (Notice): Add a notice recommending to change
32544         XGETTEXT_OPTIONS.
32545         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
32546
32547 2008-01-13  Colin Watson  <cjwatson@debian.org>
32548
32549         * modules/strsignal-tests: New file.
32550         * tests/test-strsignal.c: New file.
32551
32552         * lib/strsignal.c: New file, from glibc with modifications.
32553         * lib/siglist.h: New file, from glibc with modifications.
32554         * lib/string.in.h (strsignal): New declaration.
32555         * m4/strsignal.m4: New file.
32556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32557         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
32558         * modules/strsignal: New file.
32559         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
32560         HAVE_DECL_STRSIGNAL.
32561
32562 2008-01-13  Bruno Haible  <bruno@clisp.org>
32563
32564         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
32565         locale encoding is not ASCII. Needed for OpenBSD 4.0.
32566         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32567         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32568
32569 2008-01-13  Bruno Haible  <bruno@clisp.org>
32570
32571         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
32572         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
32573         * lib/argp.h (__attribute__): Likewise.
32574         * lib/c-stack.c (__attribute__): Likewise.
32575         * lib/error.h (__attribute__): Likewise.
32576         * lib/fts.c (__attribute__): Likewise.
32577         * lib/openat.h (__attribute__): Likewise.
32578         * lib/stdio.in.h (__attribute__): Likewise.
32579         * lib/string.in.h (__attribute__): Likewise.
32580         * lib/utimens.c (__attribute__): Likewise.
32581         * lib/vasnprintf.h (__attribute__): Likewise.
32582         * lib/xalloc.h (__attribute__): Likewise.
32583         * lib/xprintf.h (__attribute__): Likewise.
32584         * lib/xstrtol.h (__attribute__): Likewise.
32585         * lib/xvasprintf.h (__attribute__): Likewise.
32586
32587 2008-01-12  Bruno Haible  <bruno@clisp.org>
32588
32589         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32590         * doc/glibc-headers/a.out.texi: New file.
32591         * doc/glibc-headers/aliases.texi: New file.
32592         * doc/glibc-headers/alloca.texi: New file.
32593         * doc/glibc-headers/ar.texi: New file.
32594         * doc/glibc-headers/argp.texi: New file.
32595         * doc/glibc-headers/argz.texi: New file.
32596         * doc/glibc-headers/byteswap.texi: New file.
32597         * doc/glibc-headers/crypt.texi: New file.
32598         * doc/glibc-headers/endian.texi: New file.
32599         * doc/glibc-headers/envz.texi: New file.
32600         * doc/glibc-headers/err.texi: New file.
32601         * doc/glibc-headers/error.texi: New file.
32602         * doc/glibc-headers/execinfo.texi: New file.
32603         * doc/glibc-headers/fpu_control.texi: New file.
32604         * doc/glibc-headers/fstab.texi: New file.
32605         * doc/glibc-headers/fts.texi: New file.
32606         * doc/glibc-headers/getopt.texi: New file.
32607         * doc/glibc-headers/ieee754.texi: New file.
32608         * doc/glibc-headers/ifaddrs.texi: New file.
32609         * doc/glibc-headers/libintl.texi: New file.
32610         * doc/glibc-headers/mcheck.texi: New file.
32611         * doc/glibc-headers/mntent.texi: New file.
32612         * doc/glibc-headers/obstack.texi: New file.
32613         * doc/glibc-headers/paths.texi: New file.
32614         * doc/glibc-headers/printf.texi: New file.
32615         * doc/glibc-headers/pty.texi: New file.
32616         * doc/glibc-headers/resolv.texi: New file.
32617         * doc/glibc-headers/shadow.texi: New file.
32618         * doc/glibc-headers/sysexits.texi: New file.
32619         * doc/glibc-headers/ttyent.texi: New file.
32620
32621 2008-01-12  Jim Meyering  <meyering@redhat.com>
32622
32623         announce-gen: emit Gnulib's git-based version string.
32624         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32625         New option --gnulib-version=V, where V is expected to be
32626         the output of running git describe in the gnulib directory.
32627         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32628         not useful, and plan to stop publishing an xdelta file with each
32629         coreutils release.
32630
32631         * build-aux/announce-gen: Also check for lzma-compressed files.
32632
32633 2008-01-11  Bruno Haible  <bruno@clisp.org>
32634
32635         * tests/test-memmem.c (main): Increase maximum allowed time.
32636         * tests/test-strstr.c (main): Likewise.
32637
32638 2008-01-11  Bruno Haible  <bruno@clisp.org>
32639
32640         * doc/functions/memmem.texi: Add more precisions about platforms.
32641         * doc/functions/strstr.texi: Likewise.
32642
32643 2008-01-10  Eric Blake  <ebb9@byu.net>
32644
32645         * m4/strstr.m4: Delete cruft from copy-n-paste.
32646         Reported by Bruno Haible.
32647
32648 2008-01-10  Bruno Haible  <bruno@clisp.org>
32649
32650         Make c-strstr rely on strstr.
32651         * lib/c-strstr.c: Don't include str-kmp.h.
32652         (c_strstr): Define in terms of strstr.
32653         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32654         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32655
32656 2008-01-10  Bruno Haible  <bruno@clisp.org>
32657
32658         * doc/gnulib.texi (String Functions in C Locale): New section.
32659         * doc/c-ctype.texi: New file.
32660         * doc/c-strcase.texi: New file.
32661         * doc/c-strcaseeq.texi: New file.
32662         * doc/c-strcasestr.texi: New file.
32663         * doc/c-strstr.texi: New file.
32664         * doc/c-strtod.texi: New file.
32665         * doc/c-strtold.texi: New file.
32666
32667 2008-01-10  Eric Blake  <ebb9@byu.net>
32668
32669         * lib/relocatable.h: Fix a comment.
32670
32671 2008-01-10  Eric Blake  <ebb9@byu.net>
32672
32673         Share two-way algorithm.
32674         * lib/str-two-way.h: New file, merged from...
32675         * lib/memmem.c: ...here...
32676         * lib/strstr.c: ...and here.
32677         * modules/memmem (Files): Use it.
32678         * modules/strstr (Files): Likewise.
32679
32680         Avoid quadratic strstr implementations.
32681         * lib/strstr.c: New file.
32682         * m4/strstr.m4: Likewise.
32683         * modules/strstr: Likewise.
32684         * modules/strstr-tests: Likewise.
32685         * tests/test-strstr.c: Likewise.
32686         * lib/string.in.h (rpl_strstr): Declare.
32687         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32689         * modules/string (Makefile.am): Likewise.
32690         * MODULES.html.sh (string handling): Mention new module.
32691         * doc/functions/strstr.texi (strstr): Document the bug.
32692
32693 2008-01-10  Bruno Haible  <bruno@clisp.org>
32694
32695         * lib/relocatable.h (relocate): State whether result is freshly
32696         allocated or not.
32697         * lib/relocatable.c (relocate): Return a freshly allocated string
32698         instead of a pointer to a privately held string.
32699         Reported by Sylvain Beucler <beuc@gnu.org>.
32700
32701 2008-01-10  Colin Watson  <cjwatson@debian.org>
32702
32703         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32704         s/S_ISNLK/S_ISLNK/.
32705
32706 2008-01-09  Bruno Haible  <bruno@clisp.org>
32707
32708         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32709         and other files.
32710         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32711         if it's only a guess.
32712         * modules/memmem: Simplify by depending on memmem-simple.
32713
32714 2008-01-09  Bruno Haible  <bruno@clisp.org>
32715
32716         Work around OpenBSD 4.0 tdelete() bug.
32717         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32718         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32719         macros and don't redefine the enum values.
32720         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32721         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32722         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32723
32724 2008-01-09  Bruno Haible  <bruno@clisp.org>
32725
32726         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32727         (main): Don't perform the tests if setlocale did not install a UTF-8
32728         locale. Needed on OpenBSD 4.0.
32729         * modules/wcwidth-tests (Depends-on): Add localcharset.
32730
32731 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32732
32733         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32734         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32735         * NEWS: announce this.
32736         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32737
32738 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32739         and Eric Blake  <ebb9@byu.net>
32740
32741         Add memmem-simple module.
32742         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32743         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32744         * modules/memmem-simple: New file.
32745         * modules/memmem (Description): Tweak.
32746         * MODULES.html.sh (string handling): Mention new module.
32747         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32748         addressed by memmem-simple.
32749         * NEWS: Document the difference.
32750
32751 2008-01-09  Eric Blake  <ebb9@byu.net>
32752
32753         Give gcc some memmem optimization hints.
32754         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32755         (strcasestr): Declare as pure.
32756         * modules/memmem (Maintainer): Claim my implementation.
32757
32758 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32759
32760         Support AIX 6.1 and higher.
32761         * build-aux/config.libpath: Likewise.
32762         * build-aux/config.rpath: Likewise.
32763
32764 2008-01-08  Jim Meyering  <meyering@redhat.com>
32765             Bruno Haible  <bruno@clisp.org>
32766
32767         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32768         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32769         Reported by Peter Fales in
32770         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32771
32772 2008-01-08  Bruno Haible  <bruno@clisp.org>
32773
32774         * modules/unictype/category-of (Depends-on): Add
32775         unictype/category-none.
32776         * modules/unictype/category-and-tests (Depends-on): Add
32777         unictype/category-{L,N,Lu,Nd}.
32778         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32779         * modules/unictype/category-or-tests (Depends-on): Add
32780         unictype/category-{L,N}.
32781         * modules/unictype/category-name-tests (Depends-on): Add
32782         unictype/category-{Z,Nl}.
32783         Reported by Simon Josefsson.
32784
32785 2008-01-08  Bruno Haible  <bruno@clisp.org>
32786
32787         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32788         convention better.
32789         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32790         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32791         Reported by Peter Miller <millerp@canb.auug.org.au>.
32792
32793 2008-01-08  Eric Blake  <ebb9@byu.net>
32794
32795         Rewrite memmem to guarantee linear complexity without malloc.
32796         * lib/memmem.c (memmem): Use Two-Way rather than
32797         Knuth-Morris-Pratt, to allow O(1) space usage.
32798         (critical_factorization, two_way_short_needle)
32799         (two_way_long_needle): New functions.
32800         (knuth_morris_pratt): Delete.
32801         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32802         Add stdint.
32803         * tests/test-memmem.c (main): Add tests for periodic needle and
32804         sublinear performance.
32805         * doc/functions/memmem.texi (memmem): Document other deficiencies
32806         in cygwin and older glibc.
32807
32808 2008-01-08  Bruno Haible  <bruno@clisp.org>
32809
32810         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32811         augmentation.
32812
32813 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32814
32815         Add a configure time option: --disable-acl.
32816         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32817         AC_ARG_ENABLE(acl).
32818
32819 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32820
32821         * tests/test-localename.c: Don't include obsolete "setenv.h".
32822
32823         * modules/localename-tests (Depends-on): Need unsetenv.
32824
32825 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32826
32827         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32828
32829 2008-01-06  Colin Watson  <cjwatson@debian.org>
32830
32831         * users.txt: Add man-db.
32832
32833 2008-01-07  Bruno Haible  <bruno@clisp.org>
32834
32835         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
32836         previous section name.
32837
32838 2008-01-07  Bruno Haible  <bruno@clisp.org>
32839
32840         * lib/progname.c (set_program_name): Don't strip off a leading
32841         "lt-" prefix outside a .libs directory.
32842         Suggested by Paul Eggert.
32843
32844 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
32845             Bruno Haible  <bruno@clisp.org>
32846
32847         Improve memory cleanup in 'relocatable' module.
32848         * lib/relocatable.h (compute_curr_prefix): Change return type to
32849         'char *'.
32850         * lib/relocatable.c (compute_curr_prefix): Change return type to
32851         'char *'. Free curr_installdir after use.
32852         (relocate): Free curr_prefix_better after use.
32853         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
32854
32855 2008-01-01  Bruno Haible  <bruno@clisp.org>
32856
32857         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
32858         failure on older glibc systems.
32859         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32860
32861 2008-01-05  Eric Blake  <ebb9@byu.net>
32862
32863         Avoid quadratic system memmem.
32864         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
32865         Reported by Ralf Wildenhues.
32866
32867         Fix memmem test for mingw.
32868         * modules/memmem-tests (configure.ac): Check for alarm.
32869         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
32870         it.
32871         * doc/functions/memmem.texi: New file.
32872         * doc/gnulib.texi (Function Substitutes): Add memmem.
32873         Reported by Bruno Haible.
32874
32875 2008-01-04  Bruno Haible  <bruno@clisp.org>
32876
32877         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
32878         Require gl_HEADER_STRINGS_H_DEFAULTS, not
32879         gl_HEADER_STRING_H_DEFAULTS.
32880
32881 2008-01-04  Eric Blake  <ebb9@byu.net>
32882
32883         Shorten duration of memmem test.
32884         * tests/test-memmem.c (main): Use alarm to declare failure if test
32885         is taking too long.
32886         Reported by Ralf Wildenhues.
32887
32888 2007-12-21  Simon Josefsson  <simon@josefsson.org>
32889
32890         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
32891         string, needed by strerror.
32892
32893 2008-01-03  Colin Watson  <cjwatson@debian.org>
32894             Bruno Haible  <bruno@clisp.org>
32895
32896         * doc/gnulib-tool.texi (Localization): New section.
32897
32898 2008-01-02  Bruno Haible  <bruno@clisp.org>
32899
32900         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
32901         variables to 'unsigned char *' type.
32902         Reported by Paul Eggert.
32903
32904 2008-01-02  Jim Meyering  <jim@meyering.net>
32905
32906         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
32907
32908 2007-12-31  Jim Meyering  <jim@meyering.net>
32909
32910         Avoid use of private FTS type name.
32911         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
32912
32913 2007-12-30  Karl Berry  <karl@gnu.org>
32914
32915         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
32916         work around defect in Texinfo and/or the standalone Info browser.
32917
32918 2007-12-30  Bruno Haible  <bruno@clisp.org>
32919
32920         Unify 5 copies of the KMP code.
32921         * lib/str-kmp.h: New file.
32922         * lib/c-strcasestr.c: Include str-kmp.h.
32923         (knuth_morris_pratt): Remove function.
32924         (c_strcasestr): Update.
32925         * lib/c-strstr.c: Include str-kmp.h.
32926         (knuth_morris_pratt): Remove function.
32927         (c_strcasestr): Update.
32928         * lib/mbscasestr.c: Include str-kmp.h.
32929         (knuth_morris_pratt_unibyte): Remove function.
32930         * lib/mbsstr.c: Include str-kmp.h.
32931         (knuth_morris_pratt_unibyte): Remove function.
32932         * lib/strcasestr.c: Include str-kmp.h.
32933         (knuth_morris_pratt): Remove function.
32934         (strcasestr): Update.
32935         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
32936         * modules/c-strstr (Files): Likewise.
32937         * modules/mbscasestr (Files): Likewise.
32938         * modules/mbsstr (Files): Likewise.
32939         * modules/strcasestr (Files): Likewise.
32940         Suggested by Paul Eggert.
32941
32942 2007-12-30  Bruno Haible  <bruno@clisp.org>
32943
32944         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
32945         defined.
32946
32947 2007-12-30  Bruno Haible  <bruno@clisp.org>
32948
32949         * lib/xmalloca.h: Include xalloc.h.
32950         (xnmalloca): New macro.
32951
32952 2007-12-30  Bruno Haible  <bruno@clisp.org>
32953
32954         * lib/malloca.h (nmalloca): New macro.
32955         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
32956         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
32957         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
32958         knuth_morris_pratt_multibyte): Likewise.
32959         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
32960         knuth_morris_pratt_multibyte): Likewise.
32961         * lib/memmem.c (knuth_morris_pratt): Likewise.
32962         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
32963
32964 2007-12-25  Bruno Haible  <bruno@clisp.org>
32965
32966         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
32967         * lib/glob.c: Don't include openat.h.
32968         (link_exists2_p): Add back the code that deals with the
32969         !GLOB_ALTDIRFUNC case.
32970         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
32971         let it do the filename concatenation.
32972         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
32973         * modules/glob (Depends-on): Remove openat.
32974
32975 2007-12-31  Bruno Haible  <bruno@clisp.org>
32976
32977         * modules/dirfd (License): Change to LGPLv2+.
32978         Approved by Jim Meyering.
32979
32980 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32981
32982         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
32983         when multiplying M by sizeof (size_t).
32984
32985 2007-12-10  Martin Lambers  <marlam@marlam.de>
32986
32987         Override getpagesize on mingw.
32988         * lib/getpagesize.c: New file.
32989         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
32990         * modules/getpagesize (Files): Add lib/getpagesize.c.
32991         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
32992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32993         REPLACE_GETPAGESIZE.
32994         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
32995
32996 2007-12-25  Bruno Haible  <bruno@clisp.org>
32997
32998         * modules/localcharset (Notice): New field.
32999         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
33000         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
33001
33002 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
33003             Bruno Haible  <bruno@clisp.org>
33004
33005         Avoid using the syntax symbol() in formatted documentation.
33006         * MODULES.html.sh (func_module): When replacing symbol() with a
33007         hyperlink, remove the parentheses. Show an error if some remain.
33008         Recognize and render the '...' syntax.
33009         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
33010         Rework. Add paragraph about GCC's inlining.
33011         * doc/alloca.texi: Likewise.
33012         * doc/error.texi: Remove parentheses from symbol reference.
33013         * doc/gnulib-intro.texi: Likewise.
33014         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
33015         * modules/fnmatch (Description): Reword to say "the ... function".
33016         * modules/full-read (Description): Likewise.
33017         * modules/full-write (Description): Likewise.
33018         * modules/safe-read (Description): Likewise.
33019         * modules/safe-write (Description): Likewise.
33020         * modules/strchrnul (Description): Likewise.
33021         * modules/trim (Description): Likewise.
33022         * modules/error (Description): Remove parentheses from symbol
33023         references.
33024         * modules/verror (Description): Likewise.
33025         Reported by Karl Berry.
33026
33027 2007-12-25  Bruno Haible  <bruno@clisp.org>
33028
33029         Fixup after 2007-10-16 commit.
33030         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
33031
33032 2007-12-24  Bruno Haible  <bruno@clisp.org>
33033
33034         Make --enable-relocatable work with DESTDIR.
33035         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
33036         to compute installdir from destprog.
33037         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
33038         also set the RELOC_DESTDIR variable.
33039         Reported by Левашев Иван <octagram@bluebottle.com>.
33040
33041 2007-12-24  Bruno Haible  <bruno@clisp.org>
33042
33043         Fix link error due to xalloc_die().
33044         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
33045         of xreadlink.
33046         * lib/relocwrapper.c: Update comments.
33047         * build-aux/install-reloc: Remove xreadlink.c from file list.
33048         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
33049         xreadlink.c.
33050         Reported by Левашев Иван <octagram@bluebottle.com>.
33051
33052 2007-12-24  Bruno Haible  <bruno@clisp.org>
33053
33054         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
33055         * lib/setenv.h: Remove file.
33056         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
33057         lib/setenv.h.
33058         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
33059         (Depends-on): Add stdlib.
33060         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
33061         gl_FUNC_UNSETENV.
33062         (Include): Replace setenv.h with <stdlib.h>.
33063         * modules/unsetenv: New file.
33064         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
33065         * lib/unsetenv.c: Include <stdlib.h> first.
33066         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
33067         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
33068         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
33069         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
33070         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
33071         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
33073         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33074         * doc/functions/unsetenv.texi: Update.
33075         * modules/xsetenv (Depends-on): Add unsetenv.
33076         * modules/getdate (Depends-on): Likewise.
33077         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
33078         * lib/xsetenv.c: Don't include setenv.h.
33079         * lib/getdate.y: Likewise.
33080         * lib/relocwrapper.c: Likewise.
33081         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
33082         (Depends-on): Add stdlib.
33083         * NEWS: Mention the changes.
33084         Reported by Левашев Иван <octagram@bluebottle.com>.
33085
33086 2007-12-23  Bruno Haible  <bruno@clisp.org>
33087
33088         * lib/memmem.c (memmem): Use lowercase variable names. Tab
33089         indentation.
33090
33091 2007-12-23  Bruno Haible  <bruno@clisp.org>
33092
33093         * lib/c-strcasestr.c: Add more comments.
33094         * lib/c-strstr.c: Likewise.
33095         * lib/mbscasestr.c: Likewise.
33096         * lib/mbsstr.c: Likewise.
33097         * lib/strcasestr.c: Likewise.
33098         * lib/memmem.c: Likewise.
33099
33100 2007-12-23  Bruno Haible  <bruno@clisp.org>
33101
33102         * tests/test-memmem.c: Include <string.h> first.
33103
33104 2007-12-22  Bruno Haible  <bruno@clisp.org>
33105
33106         * gnulib-tool (func_create_testdir): Change $auxdir while generating
33107         the contents of $testsbase.
33108         Reported by Ralf Wildenhues.
33109
33110 2007-12-22  Bruno Haible  <bruno@clisp.org>
33111
33112         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
33113         two variables local_ldadd_before, local_ldadd_last.
33114
33115 2007-12-20  Eric Blake  <ebb9@byu.net>
33116
33117         Work around circular library issue when cross-compiling.
33118         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
33119         that progname.o does not need to pull in rpl_memcmp.
33120
33121 2007-12-19  Eric Blake  <ebb9@byu.net>
33122
33123         Fix memmem to avoid O(n^2) worst-case complexity.
33124         * lib/memmem.c (knuth_morris_pratt): New function.
33125         (memmem): Use it if first few naive iterations fail.
33126         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
33127         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
33128         * modules/memchr (License): Likewise.
33129         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
33130         malloca.
33131         * tests/test-memmem.c: Rewrite, borrowing ideas from
33132         test-mbsstr1.c; the old version wouldn't even compile!
33133         * modules/memmem-tests: New file.
33134         * lib/string.in.h (rpl_memmem): Add declaration.
33135         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
33136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
33137         REPLACE_MEMMEM.
33138
33139 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33140
33141         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
33142         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
33143         before any system include files, and undef after them all.  This
33144         should fix a problem on VMS reported by John E. Malmberg in
33145         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
33146
33147 2007-12-17  Eric Blake  <ebb9@byu.net>
33148
33149         Revert addition of verify, for BSD/OS.
33150         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
33151         can't handle large files, for the sake of obsolete platforms.
33152         * modules/fseeko (Depends-on): Remove verify.
33153         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
33154         * doc/functions/ftello.texi (ftello): Likewise.
33155         * doc/functions/fgetpos.texi (fgetpos): Likewise.
33156         Reported by Larry Jones.
33157
33158 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
33159
33160         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
33161         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
33162
33163 2007-12-17  Jim Meyering  <meyering@redhat.com>
33164
33165         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
33166         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
33167         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
33168         * modules/getcwd (Depends-on): Add openat.
33169         Reported by Petr Salinger.
33170
33171 2007-12-17  Bruno Haible  <bruno@clisp.org>
33172
33173         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
33174         avoid a segmentation fault of the configure test on x86_64 systems.
33175
33176 2007-12-15  Jim Meyering  <meyering@redhat.com>
33177
33178         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
33179
33180 2007-12-13  Eric Blake  <ebb9@byu.net>
33181
33182         Another fseek test.
33183         * tests/test-fseek.c (main): Also test ungetc handling.
33184         * tests/test-fseeko.c (main): Likewise.
33185         * modules/fseeko (Depends-on): Add verify.
33186         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
33187         large.
33188         Reported by Larry Jones.
33189
33190         Fix fseeko on mingw.
33191         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
33192         seek.
33193
33194         Beef up fseek tests.
33195         * tests/test-fseek.c (main): Also test eof handling.
33196         * tests/test-fseeko.c (main): Likewise.
33197         Reported by Larry Jones.
33198
33199 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
33200
33201         Fix fseeko on BSD-based platforms.
33202         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
33203         successful seek.
33204
33205 2007-12-12  Eric Blake  <ebb9@byu.net>
33206
33207         Allow circular dependency of separate libtests.a
33208         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
33209         when use_libtests.
33210
33211 2007-12-11  Eric Blake  <ebb9@byu.net>
33212
33213         Fix bug with -0.0L in previous patch.
33214         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
33215         * tests/test-isnan.c (main): Also test on zeroes.
33216         * tests/test-isnanf.c (main): Likewise.
33217         * tests/test-isnanl.h (main): Likewise.
33218
33219         Detect pseudo-denormals on x86 even when cross-compiling.
33220         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
33221         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
33222         invalid bit patterns that happen to satisfy ==.
33223
33224         Avoid link failures with separate libtests.a.
33225         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
33226         last, to satisfy circular dependencies.
33227
33228 2007-12-11  Eric Blake  <ebb9@byu.net>
33229         and Bruno Haible  <bruno@clisp.org>
33230
33231         Fix OpenBSD 4.0 <float.h> handling of long double.
33232         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
33233         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
33234         * doc/headers/float.texi (float.h): Document OpenBSD bug.
33235
33236 2007-12-11  Jim Meyering  <meyering@redhat.com>
33237
33238         * users.txt: Add libvirt.
33239
33240         Support versions of autoconf prior to 2.59c.
33241         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
33242         if it is not already defined.
33243
33244 2007-12-09  Bruno Haible  <bruno@clisp.org>
33245
33246         Let 'gnulib-tool --import' collect sources needed for the tests in
33247         tests/ rather than in lib/.
33248         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
33249         argument. If true, add rules to generate libtests.a, and put libtests.a
33250         into $(LDADD). Consider source files in subdirectories and set
33251         uses_subdirs.
33252         (func_emit_initmacro_start, func_emit_initmacro_end,
33253         func_emit_initmacro_done): Pass all arguments explicitly.
33254         (func_import): Determine two module lists main_modules,
33255         testsrelated_modules. Determine use_libtests. Determine two variables
33256         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
33257         instead of just sed_transform_lib_file. Determine two variables
33258         main_files and testsrelated_files. Compute 'files' as the union of
33259         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
33260         func_add_or_update. In the generated gnulib-comp.m4, collect the
33261         object files for tests/ in different variables than those for lib/.
33262         Substitute LIBTESTS_LIBDEPS.
33263         (func_create_testdir): Combine the uses_subdirs results from
33264         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
33265
33266 2007-12-09  Bruno Haible  <bruno@clisp.org>
33267
33268         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
33269         the build-aux directory.
33270
33271 2007-12-09  Bruno Haible  <bruno@clisp.org>
33272
33273         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
33274         introduced on 2006-09-09.
33275
33276 2007-12-07  Jim Meyering  <meyering@redhat.com>
33277
33278         Let these macros work also with autoconf-2.59.
33279         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
33280         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
33281         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
33282
33283 2007-12-06  Jim Meyering  <meyering@redhat.com>
33284
33285         Avoid a configure-time syntax error in gl_FUNC_ACL.
33286         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
33287         function in each branch, before testing the cache variable.
33288
33289 2007-12-04  Eric Blake  <ebb9@byu.net>
33290
33291         Make scripts executable.
33292         * build-aux/config.guess: Add execute permissions.
33293         * build-aux/config.sub: Likewise.
33294         * build-aux/gendocs.sh: Likewise.
33295
33296         Fix frexp on mingw.
33297         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
33298         cross-compiling.
33299         * doc/functions/frexp.texi (frexp): Document the bug.
33300
33301         Make cygwin fseeko check more reliable.
33302         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
33303         version numbers, rather than unrelated feature check.
33304         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
33305         * doc/functions/ftello.texi (ftello): Likewise.
33306         Reported by Bruno Haible.
33307
33308         * m4/strerror.m4: Bump version number.
33309
33310 2007-12-03  Bruno Haible  <bruno@clisp.org>
33311
33312         * doc/functions/mprotect.texi: Mention the mingw problem.
33313
33314 2007-12-03  Eric Blake  <ebb9@byu.net>
33315
33316         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
33317         REPLACE_STRERROR is initialized before this macro.
33318
33319 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
33320
33321         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
33322         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
33323         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
33324         put -lsec in even for programs other than 'ls'.  This fixes a problem
33325         for gettext reported by Bruno Haible in
33326         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
33327         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
33328         Add support for Solaris 10.  This isn't efficient, but should get the
33329         job done for now.
33330
33331 2007-12-03  James Youngman  <jay@gnu.org>
33332
33333         * doc/regexprops-generic.texi: change "an close-group" to "a
33334         close-group" and "illegal" to "not allowed".
33335
33336 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33337
33338         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
33339         pr_byname.h. Needed for the rare case when the maintainer has done
33340         "make maintainer-clean" in the source directory and then attempts a
33341         build outside the source directory.
33342         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
33343         scripts_byname.h.
33344
33345 2007-12-02  Martin Lambers <marlam@marlam.de>
33346             Bruno Haible  <bruno@clisp.org>
33347
33348         * lib/getpagesize.h: Remove file.
33349         * lib/unistd.in.h: Include declaration of getpagesize here.
33350         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
33351         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
33352         HAVE_SYS_PARAM_H.
33353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
33354         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33355         * modules/getpagesize (Files): Remove lib/getpagesize.h.
33356         (Depends-on): Add unistd.
33357         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33358         (Include): Use <unistd.h> instead of getpagesize.h.
33359         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
33360         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33361         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
33362         gl_GETPAGESIZE invocation, already handled by module dependency.
33363         * lib/pagealign_alloc.c: Don't include getpagesize.h.
33364
33365 2007-12-02  Bruno Haible  <bruno@clisp.org>
33366
33367         * modules/strings-tests: New file.
33368         * tests/test-strings.c: New file.
33369
33370         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
33371         * lib/strings.in.h: New file.
33372         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
33373         * m4/strings_h.m4: New file.
33374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
33375         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
33376         * modules/strings: New file.
33377         * modules/string (Makefile.am): Update.
33378         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
33379         Reported by Karl Berry.
33380
33381 2007-12-01  Eric Blake  <ebb9@byu.net>
33382
33383         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
33384         accomodate fix in cygwin 1.5.25.
33385
33386 2007-12-01  Jim Meyering  <meyering@redhat.com>
33387
33388         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
33389         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
33390         that would inhibit utf8-optimization of a regexp containing line-
33391         or buffer-anchors, e.g., `^', `$'.
33392
33393 2007-11-30  Bruno Haible  <bruno@clisp.org>
33394
33395         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
33396         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
33397         glthread_recursive_lock_init.
33398         * lib/lock.c (glthread_recursive_lock_init)
33399         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
33400         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33401
33402 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33403
33404         New function qset_acl, like set_acl but with syscall semantics.
33405         * lib/acl.h (qset_acl): New decl.
33406         * lib/acl.c (qset_acl): New function.
33407         (set_acl): Use new function.  Use more-consistent diagnostics.
33408
33409 2007-11-28  Jim Meyering  <meyering@redhat.com>
33410
33411         * modules/physmem (License): Change from GPL to LGPLv2+.
33412
33413 2007-11-26  Bruno Haible  <bruno@clisp.org>
33414
33415         * lib/vasnprintf.c (decode_long_double): Don't abort if the
33416         'long double' type has excess precision.
33417         Reported by Jim Meyering in
33418         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
33419
33420 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33421
33422         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
33423         Sync from <http://gnu.org/licenses>.
33424         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
33425         with license text from same location.
33426         * doc/maintain.texi, doc/standards.texi:  Sync from
33427         <http://savannah.gnu.org/projects/gnustandards>.
33428
33429 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
33430         and Jim Meyering  <meyering@redhat.com>
33431
33432         Adjust getdate' grammar to accept a slightly more regular language.
33433         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
33434         Before, the former was rejected.
33435         * lib/getdate.y (digits_to_date_time): New function, factored
33436         out of ...
33437         (number): ...here.  Just call digits_to_date_time.
33438         (hybrid): New non-terminal to handle an <unsigned number,
33439         signed relative offset> sequence consistently.
33440
33441 2007-11-18  Jim Meyering  <meyering@redhat.com>
33442
33443         Pull my changes from coreutils:
33444         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
33445         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
33446         use of $gnulib_tool_option_extras, so that it's separated from the
33447         preceding argument.
33448
33449         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
33450         * build-aux/bootstrap (cp_mark_as_generated): Create any required
33451         parent destination directories before copying a file into place.
33452
33453 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33454
33455         bootstrap: work also with 4-argument variant of AC_INIT
33456         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
33457
33458 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33459
33460         Port test-getaddrinfo to Solaris.
33461         Problem reported by Bruno Haible in
33462         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
33463         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
33464         explanation of setting 'hints'.
33465         Don't reject an implementation merely because it returns EAI_SERVICE.
33466         (EAI_SERVICE): Define to 0 if not defined.
33467
33468 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33469
33470         The license of gnu-make and posix-shell is now "GPLed build tool".
33471         * modules/gnu-make (License): Likewise.
33472         * modules/posix-shell (License): Likewise.
33473
33474         New module posix-shell, for determining a POSIX shell
33475         or perhaps something that is close enough to a POSIX shell.
33476         * m4/posix-shell.m4: New file.
33477         * modules/posix-shell: New file.
33478
33479         * MODULES.html.sh: Mention new module.
33480
33481         New module gnu-make, for determining whether we're using GNU Make.
33482         * m4/gnu-make.m4: New file.
33483         * modules/gnu-make: New file.
33484         * MODULES.html.sh: Mention new module.
33485
33486 2007-11-14  Jim Meyering  <meyering@redhat.com>
33487
33488         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
33489         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
33490         use this macro to create a function _definition_.
33491         Remove useless "#undef ARGMATCH_DIE".
33492
33493 2007-11-14  Bruno Haible  <bruno@clisp.org>
33494
33495         * lib/config.charset: Update for OpenBSD 4.1.
33496         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
33497
33498 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
33499
33500         Document 64-bit #if problems in stdint.texi.
33501         * doc/headers/stdint.texi (stdint.h): Mention problems with
33502         64-bit-#if, and how to work around them.
33503
33504         Don't insist on 'long long int' support in the preprocessor.  It
33505         breaks too many things.  For example, PRIdMAX still uses a 'long
33506         long int' format with the latest Sun compiler, even though
33507         HAVE_LONG_LONG_INT isn't defined due to that compiler's
33508         preprocessor problem.  This causes the latest coreutils to dump
33509         core on Solaris 10 sparc with the Sun C compiler.
33510         Instead, fix the 2007-10-16 problem in a different way, by evaluating
33511         the troublesome expressions at configure-time, not at #if-time.
33512         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
33513         preprocessor.
33514         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
33515         compile-time C checks, done at 'configure'-time.
33516         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
33517         * modules/inttypes (Makefile): Substitute the new symbols that
33518         gl_INTTYPES_H now generates.
33519         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
33520
33521 2007-11-12  Bruno Haible  <bruno@clisp.org>
33522
33523         Tests for Unicode character classification functions.
33524
33525         * modules/unictype/bidicategory-byname-tests: New file.
33526         * modules/unictype/bidicategory-name-tests: New file.
33527         * modules/unictype/bidicategory-of-tests: New file.
33528         * modules/unictype/bidicategory-test-tests: New file.
33529         * modules/unictype/block-list-tests: New file.
33530         * modules/unictype/block-of-tests: New file.
33531         * modules/unictype/block-test-tests: New file.
33532         * modules/unictype/category-C-tests: New file.
33533         * modules/unictype/category-Cc-tests: New file.
33534         * modules/unictype/category-Cf-tests: New file.
33535         * modules/unictype/category-Cn-tests: New file.
33536         * modules/unictype/category-Co-tests: New file.
33537         * modules/unictype/category-Cs-tests: New file.
33538         * modules/unictype/category-L-tests: New file.
33539         * modules/unictype/category-Ll-tests: New file.
33540         * modules/unictype/category-Lm-tests: New file.
33541         * modules/unictype/category-Lo-tests: New file.
33542         * modules/unictype/category-Lt-tests: New file.
33543         * modules/unictype/category-Lu-tests: New file.
33544         * modules/unictype/category-M-tests: New file.
33545         * modules/unictype/category-Mc-tests: New file.
33546         * modules/unictype/category-Me-tests: New file.
33547         * modules/unictype/category-Mn-tests: New file.
33548         * modules/unictype/category-N-tests: New file.
33549         * modules/unictype/category-Nd-tests: New file.
33550         * modules/unictype/category-Nl-tests: New file.
33551         * modules/unictype/category-No-tests: New file.
33552         * modules/unictype/category-P-tests: New file.
33553         * modules/unictype/category-Pc-tests: New file.
33554         * modules/unictype/category-Pd-tests: New file.
33555         * modules/unictype/category-Pe-tests: New file.
33556         * modules/unictype/category-Pf-tests: New file.
33557         * modules/unictype/category-Pi-tests: New file.
33558         * modules/unictype/category-Po-tests: New file.
33559         * modules/unictype/category-Ps-tests: New file.
33560         * modules/unictype/category-S-tests: New file.
33561         * modules/unictype/category-Sc-tests: New file.
33562         * modules/unictype/category-Sk-tests: New file.
33563         * modules/unictype/category-Sm-tests: New file.
33564         * modules/unictype/category-So-tests: New file.
33565         * modules/unictype/category-Z-tests: New file.
33566         * modules/unictype/category-Zl-tests: New file.
33567         * modules/unictype/category-Zp-tests: New file.
33568         * modules/unictype/category-Zs-tests: New file.
33569         * modules/unictype/category-and-not-tests: New file.
33570         * modules/unictype/category-and-tests: New file.
33571         * modules/unictype/category-byname-tests: New file.
33572         * modules/unictype/category-name-tests: New file.
33573         * modules/unictype/category-none-tests: New file.
33574         * modules/unictype/category-of-tests: New file.
33575         * modules/unictype/category-or-tests: New file.
33576         * modules/unictype/category-test-withtable-tests: New file.
33577         * modules/unictype/combining-class-tests: New file.
33578         * modules/unictype/ctype-alnum-tests: New file.
33579         * modules/unictype/ctype-alpha-tests: New file.
33580         * modules/unictype/ctype-blank-tests: New file.
33581         * modules/unictype/ctype-cntrl-tests: New file.
33582         * modules/unictype/ctype-digit-tests: New file.
33583         * modules/unictype/ctype-graph-tests: New file.
33584         * modules/unictype/ctype-lower-tests: New file.
33585         * modules/unictype/ctype-print-tests: New file.
33586         * modules/unictype/ctype-punct-tests: New file.
33587         * modules/unictype/ctype-space-tests: New file.
33588         * modules/unictype/ctype-upper-tests: New file.
33589         * modules/unictype/ctype-xdigit-tests: New file.
33590         * modules/unictype/decimal-digit-tests: New file.
33591         * modules/unictype/digit-tests: New file.
33592         * modules/unictype/mirror-tests: New file.
33593         * modules/unictype/numeric-tests: New file.
33594         * modules/unictype/property-alphabetic-tests: New file.
33595         * modules/unictype/property-ascii-hex-digit-tests: New file.
33596         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33597         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33598         * modules/unictype/property-bidi-block-separator-tests: New file.
33599         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33600         * modules/unictype/property-bidi-common-separator-tests: New file.
33601         * modules/unictype/property-bidi-control-tests: New file.
33602         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33603         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33604         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33605         * modules/unictype/property-bidi-european-digit-tests: New file.
33606         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33607         * modules/unictype/property-bidi-left-to-right-tests: New file.
33608         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33609         * modules/unictype/property-bidi-other-neutral-tests: New file.
33610         * modules/unictype/property-bidi-pdf-tests: New file.
33611         * modules/unictype/property-bidi-segment-separator-tests: New file.
33612         * modules/unictype/property-bidi-whitespace-tests: New file.
33613         * modules/unictype/property-byname-tests: New file.
33614         * modules/unictype/property-combining-tests: New file.
33615         * modules/unictype/property-composite-tests: New file.
33616         * modules/unictype/property-currency-symbol-tests: New file.
33617         * modules/unictype/property-dash-tests: New file.
33618         * modules/unictype/property-decimal-digit-tests: New file.
33619         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33620         * modules/unictype/property-deprecated-tests: New file.
33621         * modules/unictype/property-diacritic-tests: New file.
33622         * modules/unictype/property-extender-tests: New file.
33623         * modules/unictype/property-format-control-tests: New file.
33624         * modules/unictype/property-grapheme-base-tests: New file.
33625         * modules/unictype/property-grapheme-extend-tests: New file.
33626         * modules/unictype/property-grapheme-link-tests: New file.
33627         * modules/unictype/property-hex-digit-tests: New file.
33628         * modules/unictype/property-hyphen-tests: New file.
33629         * modules/unictype/property-id-continue-tests: New file.
33630         * modules/unictype/property-id-start-tests: New file.
33631         * modules/unictype/property-ideographic-tests: New file.
33632         * modules/unictype/property-ids-binary-operator-tests: New file.
33633         * modules/unictype/property-ids-trinary-operator-tests: New file.
33634         * modules/unictype/property-ignorable-control-tests: New file.
33635         * modules/unictype/property-iso-control-tests: New file.
33636         * modules/unictype/property-join-control-tests: New file.
33637         * modules/unictype/property-left-of-pair-tests: New file.
33638         * modules/unictype/property-line-separator-tests: New file.
33639         * modules/unictype/property-logical-order-exception-tests: New file.
33640         * modules/unictype/property-lowercase-tests: New file.
33641         * modules/unictype/property-math-tests: New file.
33642         * modules/unictype/property-non-break-tests: New file.
33643         * modules/unictype/property-not-a-character-tests: New file.
33644         * modules/unictype/property-numeric-tests: New file.
33645         * modules/unictype/property-other-alphabetic-tests: New file.
33646         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33647         * modules/unictype/property-other-grapheme-extend-tests: New file.
33648         * modules/unictype/property-other-id-continue-tests: New file.
33649         * modules/unictype/property-other-id-start-tests: New file.
33650         * modules/unictype/property-other-lowercase-tests: New file.
33651         * modules/unictype/property-other-math-tests: New file.
33652         * modules/unictype/property-other-uppercase-tests: New file.
33653         * modules/unictype/property-paired-punctuation-tests: New file.
33654         * modules/unictype/property-paragraph-separator-tests: New file.
33655         * modules/unictype/property-pattern-syntax-tests: New file.
33656         * modules/unictype/property-pattern-white-space-tests: New file.
33657         * modules/unictype/property-private-use-tests: New file.
33658         * modules/unictype/property-punctuation-tests: New file.
33659         * modules/unictype/property-quotation-mark-tests: New file.
33660         * modules/unictype/property-radical-tests: New file.
33661         * modules/unictype/property-sentence-terminal-tests: New file.
33662         * modules/unictype/property-soft-dotted-tests: New file.
33663         * modules/unictype/property-space-tests: New file.
33664         * modules/unictype/property-terminal-punctuation-tests: New file.
33665         * modules/unictype/property-test-tests: New file.
33666         * modules/unictype/property-titlecase-tests: New file.
33667         * modules/unictype/property-unassigned-code-value-tests: New file.
33668         * modules/unictype/property-unified-ideograph-tests: New file.
33669         * modules/unictype/property-uppercase-tests: New file.
33670         * modules/unictype/property-variation-selector-tests: New file.
33671         * modules/unictype/property-white-space-tests: New file.
33672         * modules/unictype/property-xid-continue-tests: New file.
33673         * modules/unictype/property-xid-start-tests: New file.
33674         * modules/unictype/property-zero-width-tests: New file.
33675         * modules/unictype/scripts-tests: New file.
33676         * modules/unictype/syntax-c-ident-tests: New file.
33677         * modules/unictype/syntax-c-whitespace-tests: New file.
33678         * modules/unictype/syntax-java-ident-tests: New file.
33679         * modules/unictype/syntax-java-whitespace-tests: New file.
33680         * tests/unictype/test-bidi_byname.c: New file.
33681         * tests/unictype/test-bidi_name.c: New file.
33682         * tests/unictype/test-bidi_of.c: New file.
33683         * tests/unictype/test-bidi_test.c: New file.
33684         * tests/unictype/test-block_list.c: New file.
33685         * tests/unictype/test-block_of.c: New file.
33686         * tests/unictype/test-block_test.c: New file.
33687         * tests/unictype/test-categ_and.c: New file.
33688         * tests/unictype/test-categ_and_not.c: New file.
33689         * tests/unictype/test-categ_byname.c: New file.
33690         * tests/unictype/test-categ_name.c: New file.
33691         * tests/unictype/test-categ_none.c: New file.
33692         * tests/unictype/test-categ_of.c: New file.
33693         * tests/unictype/test-categ_or.c: New file.
33694         * tests/unictype/test-categ_test_withtable.c: New file.
33695         * tests/unictype/test-combining.c: New file.
33696         * tests/unictype/test-decdigit.c: New file.
33697         * tests/unictype/test-digit.c: New file.
33698         * tests/unictype/test-mirror.c: New file.
33699         * tests/unictype/test-numeric.c: New file.
33700         * tests/unictype/test-pr_byname.c: New file.
33701         * tests/unictype/test-pr_test.c: New file.
33702         * tests/unictype/test-predicate-part1.h: New file.
33703         * tests/unictype/test-predicate-part2.h: New file.
33704         * tests/unictype/test-scripts.c: New file.
33705         * tests/unictype/test-sy_c_ident.c: New file.
33706         * tests/unictype/test-sy_java_ident.c: New file.
33707
33708         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33709         for Unicode 5.0.0.
33710         * tests/unictype/test-categ_Cc.c: Likewise.
33711         * tests/unictype/test-categ_Cf.c: Likewise.
33712         * tests/unictype/test-categ_Cn.c: Likewise.
33713         * tests/unictype/test-categ_Co.c: Likewise.
33714         * tests/unictype/test-categ_Cs.c: Likewise.
33715         * tests/unictype/test-categ_L.c: Likewise.
33716         * tests/unictype/test-categ_Ll.c: Likewise.
33717         * tests/unictype/test-categ_Lm.c: Likewise.
33718         * tests/unictype/test-categ_Lo.c: Likewise.
33719         * tests/unictype/test-categ_Lt.c: Likewise.
33720         * tests/unictype/test-categ_Lu.c: Likewise.
33721         * tests/unictype/test-categ_M.c: Likewise.
33722         * tests/unictype/test-categ_Mc.c: Likewise.
33723         * tests/unictype/test-categ_Me.c: Likewise.
33724         * tests/unictype/test-categ_Mn.c: Likewise.
33725         * tests/unictype/test-categ_N.c: Likewise.
33726         * tests/unictype/test-categ_Nd.c: Likewise.
33727         * tests/unictype/test-categ_Nl.c: Likewise.
33728         * tests/unictype/test-categ_No.c: Likewise.
33729         * tests/unictype/test-categ_P.c: Likewise.
33730         * tests/unictype/test-categ_Pc.c: Likewise.
33731         * tests/unictype/test-categ_Pd.c: Likewise.
33732         * tests/unictype/test-categ_Pe.c: Likewise.
33733         * tests/unictype/test-categ_Pf.c: Likewise.
33734         * tests/unictype/test-categ_Pi.c: Likewise.
33735         * tests/unictype/test-categ_Po.c: Likewise.
33736         * tests/unictype/test-categ_Ps.c: Likewise.
33737         * tests/unictype/test-categ_S.c: Likewise.
33738         * tests/unictype/test-categ_Sc.c: Likewise.
33739         * tests/unictype/test-categ_Sk.c: Likewise.
33740         * tests/unictype/test-categ_Sm.c: Likewise.
33741         * tests/unictype/test-categ_So.c: Likewise.
33742         * tests/unictype/test-categ_Z.c: Likewise.
33743         * tests/unictype/test-categ_Zl.c: Likewise.
33744         * tests/unictype/test-categ_Zp.c: Likewise.
33745         * tests/unictype/test-categ_Zs.c: Likewise.
33746         * tests/unictype/test-ctype_alnum.c: Likewise.
33747         * tests/unictype/test-ctype_alpha.c: Likewise.
33748         * tests/unictype/test-ctype_blank.c: Likewise.
33749         * tests/unictype/test-ctype_cntrl.c: Likewise.
33750         * tests/unictype/test-ctype_digit.c: Likewise.
33751         * tests/unictype/test-ctype_graph.c: Likewise.
33752         * tests/unictype/test-ctype_lower.c: Likewise.
33753         * tests/unictype/test-ctype_print.c: Likewise.
33754         * tests/unictype/test-ctype_punct.c: Likewise.
33755         * tests/unictype/test-ctype_space.c: Likewise.
33756         * tests/unictype/test-ctype_upper.c: Likewise.
33757         * tests/unictype/test-ctype_xdigit.c: Likewise.
33758         * tests/unictype/test-decdigit.h: Likewise.
33759         * tests/unictype/test-digit.h: Likewise.
33760         * tests/unictype/test-numeric.h: Likewise.
33761         * tests/unictype/test-pr_alphabetic.c: Likewise.
33762         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33763         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33764         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33765         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33766         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33767         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33768         * tests/unictype/test-pr_bidi_control.c: Likewise.
33769         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33770         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33771         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33772         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33773         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33774         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33775         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33776         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33777         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33778         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33779         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33780         * tests/unictype/test-pr_combining.c: Likewise.
33781         * tests/unictype/test-pr_composite.c: Likewise.
33782         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33783         * tests/unictype/test-pr_dash.c: Likewise.
33784         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33785         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33786         * tests/unictype/test-pr_deprecated.c: Likewise.
33787         * tests/unictype/test-pr_diacritic.c: Likewise.
33788         * tests/unictype/test-pr_extender.c: Likewise.
33789         * tests/unictype/test-pr_format_control.c: Likewise.
33790         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33791         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33792         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33793         * tests/unictype/test-pr_hex_digit.c: Likewise.
33794         * tests/unictype/test-pr_hyphen.c: Likewise.
33795         * tests/unictype/test-pr_id_continue.c: Likewise.
33796         * tests/unictype/test-pr_id_start.c: Likewise.
33797         * tests/unictype/test-pr_ideographic.c: Likewise.
33798         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33799         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33800         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33801         * tests/unictype/test-pr_iso_control.c: Likewise.
33802         * tests/unictype/test-pr_join_control.c: Likewise.
33803         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33804         * tests/unictype/test-pr_line_separator.c: Likewise.
33805         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33806         * tests/unictype/test-pr_lowercase.c: Likewise.
33807         * tests/unictype/test-pr_math.c: Likewise.
33808         * tests/unictype/test-pr_non_break.c: Likewise.
33809         * tests/unictype/test-pr_not_a_character.c: Likewise.
33810         * tests/unictype/test-pr_numeric.c: Likewise.
33811         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33812         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33813         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33814         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33815         * tests/unictype/test-pr_other_id_start.c: Likewise.
33816         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33817         * tests/unictype/test-pr_other_math.c: Likewise.
33818         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33819         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33820         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33821         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33822         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33823         * tests/unictype/test-pr_private_use.c: Likewise.
33824         * tests/unictype/test-pr_punctuation.c: Likewise.
33825         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33826         * tests/unictype/test-pr_radical.c: Likewise.
33827         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33828         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33829         * tests/unictype/test-pr_space.c: Likewise.
33830         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33831         * tests/unictype/test-pr_titlecase.c: Likewise.
33832         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33833         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
33834         * tests/unictype/test-pr_uppercase.c: Likewise.
33835         * tests/unictype/test-pr_variation_selector.c: Likewise.
33836         * tests/unictype/test-pr_white_space.c: Likewise.
33837         * tests/unictype/test-pr_xid_continue.c: Likewise.
33838         * tests/unictype/test-pr_xid_start.c: Likewise.
33839         * tests/unictype/test-pr_zero_width.c: Likewise.
33840         * tests/unictype/test-sy_c_whitespace.c: Likewise.
33841         * tests/unictype/test-sy_java_whitespace.c: Likewise.
33842
33843 2007-11-12  Bruno Haible  <bruno@clisp.org>
33844
33845         Unicode character classification functions.
33846         * lib/unictype.h: New file.
33847         * modules/unictype/base: New file.
33848         * modules/unictype/category-L: New file.
33849         * modules/unictype/category-Lu: New file.
33850         * modules/unictype/category-Ll: New file.
33851         * modules/unictype/category-Lt: New file.
33852         * modules/unictype/category-Lm: New file.
33853         * modules/unictype/category-Lo: New file.
33854         * modules/unictype/category-M: New file.
33855         * modules/unictype/category-Mn: New file.
33856         * modules/unictype/category-Mc: New file.
33857         * modules/unictype/category-Me: New file.
33858         * modules/unictype/category-N: New file.
33859         * modules/unictype/category-Nd: New file.
33860         * modules/unictype/category-Nl: New file.
33861         * modules/unictype/category-No: New file.
33862         * modules/unictype/category-P: New file.
33863         * modules/unictype/category-Pc: New file.
33864         * modules/unictype/category-Pd: New file.
33865         * modules/unictype/category-Ps: New file.
33866         * modules/unictype/category-Pe: New file.
33867         * modules/unictype/category-Pi: New file.
33868         * modules/unictype/category-Pf: New file.
33869         * modules/unictype/category-Po: New file.
33870         * modules/unictype/category-S: New file.
33871         * modules/unictype/category-Sm: New file.
33872         * modules/unictype/category-Sc: New file.
33873         * modules/unictype/category-Sk: New file.
33874         * modules/unictype/category-So: New file.
33875         * modules/unictype/category-Z: New file.
33876         * modules/unictype/category-Zs: New file.
33877         * modules/unictype/category-Zl: New file.
33878         * modules/unictype/category-Zp: New file.
33879         * modules/unictype/category-C: New file.
33880         * modules/unictype/category-Cc: New file.
33881         * modules/unictype/category-Cf: New file.
33882         * modules/unictype/category-Cs: New file.
33883         * modules/unictype/category-Co: New file.
33884         * modules/unictype/category-Cn: New file.
33885         * modules/unictype/category-or: New file.
33886         * modules/unictype/category-of: New file.
33887         * modules/unictype/category-test: New file.
33888         * modules/unictype/category-test-withtable: New file.
33889         * modules/unictype/category-byname: New file.
33890         * modules/unictype/category-none: New file.
33891         * modules/unictype/category-and: New file.
33892         * modules/unictype/category-and-not: New file.
33893         * modules/unictype/category-name: New file.
33894         * modules/unictype/combining-class: New file.
33895         * modules/unictype/category-all: New file.
33896         * modules/unictype/bidicategory-all: New file.
33897         * modules/unictype/bidicategory-byname: New file.
33898         * modules/unictype/bidicategory-name: New file.
33899         * modules/unictype/bidicategory-of: New file.
33900         * modules/unictype/bidicategory-test: New file.
33901         * modules/unictype/decimal-digit: New file.
33902         * modules/unictype/digit: New file.
33903         * modules/unictype/numeric: New file.
33904         * modules/unictype/mirror: New file.
33905         * modules/unictype/property-white-space: New file.
33906         * modules/unictype/property-alphabetic: New file.
33907         * modules/unictype/property-other-alphabetic: New file.
33908         * modules/unictype/property-not-a-character: New file.
33909         * modules/unictype/property-default-ignorable-code-point: New file.
33910         * modules/unictype/property-other-default-ignorable-code-point: New
33911         file.
33912         * modules/unictype/property-deprecated: New file.
33913         * modules/unictype/property-logical-order-exception: New file.
33914         * modules/unictype/property-variation-selector: New file.
33915         * modules/unictype/property-private-use: New file.
33916         * modules/unictype/property-unassigned-code-value: New file.
33917         * modules/unictype/property-uppercase: New file.
33918         * modules/unictype/property-other-uppercase: New file.
33919         * modules/unictype/property-lowercase: New file.
33920         * modules/unictype/property-other-lowercase: New file.
33921         * modules/unictype/property-titlecase: New file.
33922         * modules/unictype/property-soft-dotted: New file.
33923         * modules/unictype/property-id-start: New file.
33924         * modules/unictype/property-other-id-start: New file.
33925         * modules/unictype/property-id-continue: New file.
33926         * modules/unictype/property-other-id-continue: New file.
33927         * modules/unictype/property-xid-start: New file.
33928         * modules/unictype/property-xid-continue: New file.
33929         * modules/unictype/property-pattern-white-space: New file.
33930         * modules/unictype/property-pattern-syntax: New file.
33931         * modules/unictype/property-join-control: New file.
33932         * modules/unictype/property-grapheme-base: New file.
33933         * modules/unictype/property-grapheme-extend: New file.
33934         * modules/unictype/property-other-grapheme-extend: New file.
33935         * modules/unictype/property-grapheme-link: New file.
33936         * modules/unictype/property-bidi-control: New file.
33937         * modules/unictype/property-bidi-left-to-right: New file.
33938         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
33939         * modules/unictype/property-bidi-arabic-right-to-left: New file.
33940         * modules/unictype/property-bidi-european-digit: New file.
33941         * modules/unictype/property-bidi-eur-num-separator: New file.
33942         * modules/unictype/property-bidi-eur-num-terminator: New file.
33943         * modules/unictype/property-bidi-arabic-digit: New file.
33944         * modules/unictype/property-bidi-common-separator: New file.
33945         * modules/unictype/property-bidi-block-separator: New file.
33946         * modules/unictype/property-bidi-segment-separator: New file.
33947         * modules/unictype/property-bidi-whitespace: New file.
33948         * modules/unictype/property-bidi-non-spacing-mark: New file.
33949         * modules/unictype/property-bidi-boundary-neutral: New file.
33950         * modules/unictype/property-bidi-pdf: New file.
33951         * modules/unictype/property-bidi-embedding-or-override: New file.
33952         * modules/unictype/property-bidi-other-neutral: New file.
33953         * modules/unictype/property-hex-digit: New file.
33954         * modules/unictype/property-ascii-hex-digit: New file.
33955         * modules/unictype/property-ideographic: New file.
33956         * modules/unictype/property-unified-ideograph: New file.
33957         * modules/unictype/property-radical: New file.
33958         * modules/unictype/property-ids-binary-operator: New file.
33959         * modules/unictype/property-ids-trinary-operator: New file.
33960         * modules/unictype/property-zero-width: New file.
33961         * modules/unictype/property-space: New file.
33962         * modules/unictype/property-non-break: New file.
33963         * modules/unictype/property-iso-control: New file.
33964         * modules/unictype/property-format-control: New file.
33965         * modules/unictype/property-dash: New file.
33966         * modules/unictype/property-hyphen: New file.
33967         * modules/unictype/property-punctuation: New file.
33968         * modules/unictype/property-line-separator: New file.
33969         * modules/unictype/property-paragraph-separator: New file.
33970         * modules/unictype/property-quotation-mark: New file.
33971         * modules/unictype/property-sentence-terminal: New file.
33972         * modules/unictype/property-terminal-punctuation: New file.
33973         * modules/unictype/property-currency-symbol: New file.
33974         * modules/unictype/property-math: New file.
33975         * modules/unictype/property-other-math: New file.
33976         * modules/unictype/property-paired-punctuation: New file.
33977         * modules/unictype/property-left-of-pair: New file.
33978         * modules/unictype/property-combining: New file.
33979         * modules/unictype/property-composite: New file.
33980         * modules/unictype/property-decimal-digit: New file.
33981         * modules/unictype/property-numeric: New file.
33982         * modules/unictype/property-diacritic: New file.
33983         * modules/unictype/property-extender: New file.
33984         * modules/unictype/property-ignorable-control: New file.
33985         * modules/unictype/property-test: New file.
33986         * modules/unictype/property-byname: New file.
33987         * modules/unictype/property-all: New file.
33988         * modules/unictype/scripts: New file.
33989         * modules/unictype/scripts-all: New file.
33990         * modules/unictype/block-of: New file.
33991         * modules/unictype/block-test: New file.
33992         * modules/unictype/block-list: New file.
33993         * modules/unictype/block-all: New file.
33994         * modules/unictype/syntax-c-whitespace: New file.
33995         * modules/unictype/syntax-java-whitespace: New file.
33996         * modules/unictype/syntax-c-ident: New file.
33997         * modules/unictype/syntax-java-ident: New file.
33998         * modules/unictype/ctype-alnum: New file.
33999         * modules/unictype/ctype-alpha: New file.
34000         * modules/unictype/ctype-cntrl: New file.
34001         * modules/unictype/ctype-digit: New file.
34002         * modules/unictype/ctype-graph: New file.
34003         * modules/unictype/ctype-lower: New file.
34004         * modules/unictype/ctype-print: New file.
34005         * modules/unictype/ctype-punct: New file.
34006         * modules/unictype/ctype-space: New file.
34007         * modules/unictype/ctype-upper: New file.
34008         * modules/unictype/ctype-xdigit: New file.
34009         * modules/unictype/ctype-blank: New file.
34010         * lib/unictype/bidi_byname.c: New file.
34011         * lib/unictype/bidi_name.c: New file.
34012         * lib/unictype/bidi_of.c: New file.
34013         * lib/unictype/bidi_test.c: New file.
34014         * lib/unictype/bitmap.h: New file.
34015         * lib/unictype/block_test.c: New file.
34016         * lib/unictype/blocks.c: New file.
34017         * lib/unictype/categ_C.c: New file.
34018         * lib/unictype/categ_Cc.c: New file.
34019         * lib/unictype/categ_Cf.c: New file.
34020         * lib/unictype/categ_Cn.c: New file.
34021         * lib/unictype/categ_Co.c: New file.
34022         * lib/unictype/categ_Cs.c: New file.
34023         * lib/unictype/categ_L.c: New file.
34024         * lib/unictype/categ_Ll.c: New file.
34025         * lib/unictype/categ_Lm.c: New file.
34026         * lib/unictype/categ_Lo.c: New file.
34027         * lib/unictype/categ_Lt.c: New file.
34028         * lib/unictype/categ_Lu.c: New file.
34029         * lib/unictype/categ_M.c: New file.
34030         * lib/unictype/categ_Mc.c: New file.
34031         * lib/unictype/categ_Me.c: New file.
34032         * lib/unictype/categ_Mn.c: New file.
34033         * lib/unictype/categ_N.c: New file.
34034         * lib/unictype/categ_Nd.c: New file.
34035         * lib/unictype/categ_Nl.c: New file.
34036         * lib/unictype/categ_No.c: New file.
34037         * lib/unictype/categ_P.c: New file.
34038         * lib/unictype/categ_Pc.c: New file.
34039         * lib/unictype/categ_Pd.c: New file.
34040         * lib/unictype/categ_Pe.c: New file.
34041         * lib/unictype/categ_Pf.c: New file.
34042         * lib/unictype/categ_Pi.c: New file.
34043         * lib/unictype/categ_Po.c: New file.
34044         * lib/unictype/categ_Ps.c: New file.
34045         * lib/unictype/categ_S.c: New file.
34046         * lib/unictype/categ_Sc.c: New file.
34047         * lib/unictype/categ_Sk.c: New file.
34048         * lib/unictype/categ_Sm.c: New file.
34049         * lib/unictype/categ_So.c: New file.
34050         * lib/unictype/categ_Z.c: New file.
34051         * lib/unictype/categ_Zl.c: New file.
34052         * lib/unictype/categ_Zp.c: New file.
34053         * lib/unictype/categ_Zs.c: New file.
34054         * lib/unictype/categ_and.c: New file.
34055         * lib/unictype/categ_and_not.c: New file.
34056         * lib/unictype/categ_byname.c: New file.
34057         * lib/unictype/categ_name.c: New file.
34058         * lib/unictype/categ_none.c: New file.
34059         * lib/unictype/categ_of.c: New file.
34060         * lib/unictype/categ_or.c: New file.
34061         * lib/unictype/categ_test.c: New file.
34062         * lib/unictype/combining.c: New file.
34063         * lib/unictype/ctype_alnum.c: New file.
34064         * lib/unictype/ctype_alpha.c: New file.
34065         * lib/unictype/ctype_blank.c: New file.
34066         * lib/unictype/ctype_cntrl.c: New file.
34067         * lib/unictype/ctype_digit.c: New file.
34068         * lib/unictype/ctype_graph.c: New file.
34069         * lib/unictype/ctype_lower.c: New file.
34070         * lib/unictype/ctype_print.c: New file.
34071         * lib/unictype/ctype_punct.c: New file.
34072         * lib/unictype/ctype_space.c: New file.
34073         * lib/unictype/ctype_upper.c: New file.
34074         * lib/unictype/ctype_xdigit.c: New file.
34075         * lib/unictype/decdigit.c: New file.
34076         * lib/unictype/digit.c: New file.
34077         * lib/unictype/identsyntaxmap.h: New file.
34078         * lib/unictype/mirror.c: New file.
34079         * lib/unictype/numeric.c: New file.
34080         * lib/unictype/pr_alphabetic.c: New file.
34081         * lib/unictype/pr_ascii_hex_digit.c: New file.
34082         * lib/unictype/pr_bidi_arabic_digit.c: New file.
34083         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
34084         * lib/unictype/pr_bidi_block_separator.c: New file.
34085         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
34086         * lib/unictype/pr_bidi_common_separator.c: New file.
34087         * lib/unictype/pr_bidi_control.c: New file.
34088         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
34089         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
34090         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
34091         * lib/unictype/pr_bidi_european_digit.c: New file.
34092         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
34093         * lib/unictype/pr_bidi_left_to_right.c: New file.
34094         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
34095         * lib/unictype/pr_bidi_other_neutral.c: New file.
34096         * lib/unictype/pr_bidi_pdf.c: New file.
34097         * lib/unictype/pr_bidi_segment_separator.c: New file.
34098         * lib/unictype/pr_bidi_whitespace.c: New file.
34099         * lib/unictype/pr_byname.c: New file.
34100         * lib/unictype/pr_byname.gperf: New file.
34101         * lib/unictype/pr_combining.c: New file.
34102         * lib/unictype/pr_composite.c: New file.
34103         * lib/unictype/pr_currency_symbol.c: New file.
34104         * lib/unictype/pr_dash.c: New file.
34105         * lib/unictype/pr_decimal_digit.c: New file.
34106         * lib/unictype/pr_default_ignorable_code_point.c: New file.
34107         * lib/unictype/pr_deprecated.c: New file.
34108         * lib/unictype/pr_diacritic.c: New file.
34109         * lib/unictype/pr_extender.c: New file.
34110         * lib/unictype/pr_format_control.c: New file.
34111         * lib/unictype/pr_grapheme_base.c: New file.
34112         * lib/unictype/pr_grapheme_extend.c: New file.
34113         * lib/unictype/pr_grapheme_link.c: New file.
34114         * lib/unictype/pr_hex_digit.c: New file.
34115         * lib/unictype/pr_hyphen.c: New file.
34116         * lib/unictype/pr_id_continue.c: New file.
34117         * lib/unictype/pr_id_start.c: New file.
34118         * lib/unictype/pr_ideographic.c: New file.
34119         * lib/unictype/pr_ids_binary_operator.c: New file.
34120         * lib/unictype/pr_ids_trinary_operator.c: New file.
34121         * lib/unictype/pr_ignorable_control.c: New file.
34122         * lib/unictype/pr_iso_control.c: New file.
34123         * lib/unictype/pr_join_control.c: New file.
34124         * lib/unictype/pr_left_of_pair.c: New file.
34125         * lib/unictype/pr_line_separator.c: New file.
34126         * lib/unictype/pr_logical_order_exception.c: New file.
34127         * lib/unictype/pr_lowercase.c: New file.
34128         * lib/unictype/pr_math.c: New file.
34129         * lib/unictype/pr_non_break.c: New file.
34130         * lib/unictype/pr_not_a_character.c: New file.
34131         * lib/unictype/pr_numeric.c: New file.
34132         * lib/unictype/pr_other_alphabetic.c: New file.
34133         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
34134         * lib/unictype/pr_other_grapheme_extend.c: New file.
34135         * lib/unictype/pr_other_id_continue.c: New file.
34136         * lib/unictype/pr_other_id_start.c: New file.
34137         * lib/unictype/pr_other_lowercase.c: New file.
34138         * lib/unictype/pr_other_math.c: New file.
34139         * lib/unictype/pr_other_uppercase.c: New file.
34140         * lib/unictype/pr_paired_punctuation.c: New file.
34141         * lib/unictype/pr_paragraph_separator.c: New file.
34142         * lib/unictype/pr_pattern_syntax.c: New file.
34143         * lib/unictype/pr_pattern_white_space.c: New file.
34144         * lib/unictype/pr_private_use.c: New file.
34145         * lib/unictype/pr_punctuation.c: New file.
34146         * lib/unictype/pr_quotation_mark.c: New file.
34147         * lib/unictype/pr_radical.c: New file.
34148         * lib/unictype/pr_sentence_terminal.c: New file.
34149         * lib/unictype/pr_soft_dotted.c: New file.
34150         * lib/unictype/pr_space.c: New file.
34151         * lib/unictype/pr_terminal_punctuation.c: New file.
34152         * lib/unictype/pr_test.c: New file.
34153         * lib/unictype/pr_titlecase.c: New file.
34154         * lib/unictype/pr_unassigned_code_value.c: New file.
34155         * lib/unictype/pr_unified_ideograph.c: New file.
34156         * lib/unictype/pr_uppercase.c: New file.
34157         * lib/unictype/pr_variation_selector.c: New file.
34158         * lib/unictype/pr_white_space.c: New file.
34159         * lib/unictype/pr_xid_continue.c: New file.
34160         * lib/unictype/pr_xid_start.c: New file.
34161         * lib/unictype/pr_zero_width.c: New file.
34162         * lib/unictype/scripts.c: New file.
34163         * lib/unictype/sy_c_ident.c: New file.
34164         * lib/unictype/sy_c_whitespace.c: New file.
34165         * lib/unictype/sy_java_ident.c: New file.
34166         * lib/unictype/sy_java_whitespace.c: New file.
34167
34168         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
34169         Unicode 5.0.0.
34170         * lib/unictype/blocks.h: Likewise.
34171         * lib/unictype/categ_C.h: Likewise.
34172         * lib/unictype/categ_Cc.h: Likewise.
34173         * lib/unictype/categ_Cf.h: Likewise.
34174         * lib/unictype/categ_Cn.h: Likewise.
34175         * lib/unictype/categ_Co.h: Likewise.
34176         * lib/unictype/categ_Cs.h: Likewise.
34177         * lib/unictype/categ_L.h: Likewise.
34178         * lib/unictype/categ_Ll.h: Likewise.
34179         * lib/unictype/categ_Lm.h: Likewise.
34180         * lib/unictype/categ_Lo.h: Likewise.
34181         * lib/unictype/categ_Lt.h: Likewise.
34182         * lib/unictype/categ_Lu.h: Likewise.
34183         * lib/unictype/categ_M.h: Likewise.
34184         * lib/unictype/categ_Mc.h: Likewise.
34185         * lib/unictype/categ_Me.h: Likewise.
34186         * lib/unictype/categ_Mn.h: Likewise.
34187         * lib/unictype/categ_N.h: Likewise.
34188         * lib/unictype/categ_Nd.h: Likewise.
34189         * lib/unictype/categ_Nl.h: Likewise.
34190         * lib/unictype/categ_No.h: Likewise.
34191         * lib/unictype/categ_P.h: Likewise.
34192         * lib/unictype/categ_Pc.h: Likewise.
34193         * lib/unictype/categ_Pd.h: Likewise.
34194         * lib/unictype/categ_Pe.h: Likewise.
34195         * lib/unictype/categ_Pf.h: Likewise.
34196         * lib/unictype/categ_Pi.h: Likewise.
34197         * lib/unictype/categ_Po.h: Likewise.
34198         * lib/unictype/categ_Ps.h: Likewise.
34199         * lib/unictype/categ_S.h: Likewise.
34200         * lib/unictype/categ_Sc.h: Likewise.
34201         * lib/unictype/categ_Sk.h: Likewise.
34202         * lib/unictype/categ_Sm.h: Likewise.
34203         * lib/unictype/categ_So.h: Likewise.
34204         * lib/unictype/categ_Z.h: Likewise.
34205         * lib/unictype/categ_Zl.h: Likewise.
34206         * lib/unictype/categ_Zp.h: Likewise.
34207         * lib/unictype/categ_Zs.h: Likewise.
34208         * lib/unictype/categ_of.h: Likewise.
34209         * lib/unictype/combining.h: Likewise.
34210         * lib/unictype/ctype_alnum.h: Likewise.
34211         * lib/unictype/ctype_alpha.h: Likewise.
34212         * lib/unictype/ctype_blank.h: Likewise.
34213         * lib/unictype/ctype_cntrl.h: Likewise.
34214         * lib/unictype/ctype_digit.h: Likewise.
34215         * lib/unictype/ctype_graph.h: Likewise.
34216         * lib/unictype/ctype_lower.h: Likewise.
34217         * lib/unictype/ctype_print.h: Likewise.
34218         * lib/unictype/ctype_punct.h: Likewise.
34219         * lib/unictype/ctype_space.h: Likewise.
34220         * lib/unictype/ctype_upper.h: Likewise.
34221         * lib/unictype/ctype_xdigit.h: Likewise.
34222         * lib/unictype/decdigit.h: Likewise.
34223         * lib/unictype/digit.h: Likewise.
34224         * lib/unictype/mirror.h: Likewise.
34225         * lib/unictype/numeric.h: Likewise.
34226         * lib/unictype/pr_alphabetic.h: Likewise.
34227         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
34228         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
34229         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
34230         * lib/unictype/pr_bidi_block_separator.h: Likewise.
34231         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
34232         * lib/unictype/pr_bidi_common_separator.h: Likewise.
34233         * lib/unictype/pr_bidi_control.h: Likewise.
34234         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
34235         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
34236         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
34237         * lib/unictype/pr_bidi_european_digit.h: Likewise.
34238         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
34239         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
34240         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
34241         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
34242         * lib/unictype/pr_bidi_pdf.h: Likewise.
34243         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
34244         * lib/unictype/pr_bidi_whitespace.h: Likewise.
34245         * lib/unictype/pr_combining.h: Likewise.
34246         * lib/unictype/pr_composite.h: Likewise.
34247         * lib/unictype/pr_currency_symbol.h: Likewise.
34248         * lib/unictype/pr_dash.h: Likewise.
34249         * lib/unictype/pr_decimal_digit.h: Likewise.
34250         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
34251         * lib/unictype/pr_deprecated.h: Likewise.
34252         * lib/unictype/pr_diacritic.h: Likewise.
34253         * lib/unictype/pr_extender.h: Likewise.
34254         * lib/unictype/pr_format_control.h: Likewise.
34255         * lib/unictype/pr_grapheme_base.h: Likewise.
34256         * lib/unictype/pr_grapheme_extend.h: Likewise.
34257         * lib/unictype/pr_grapheme_link.h: Likewise.
34258         * lib/unictype/pr_hex_digit.h: Likewise.
34259         * lib/unictype/pr_hyphen.h: Likewise.
34260         * lib/unictype/pr_id_continue.h: Likewise.
34261         * lib/unictype/pr_id_start.h: Likewise.
34262         * lib/unictype/pr_ideographic.h: Likewise.
34263         * lib/unictype/pr_ids_binary_operator.h: Likewise.
34264         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
34265         * lib/unictype/pr_ignorable_control.h: Likewise.
34266         * lib/unictype/pr_iso_control.h: Likewise.
34267         * lib/unictype/pr_join_control.h: Likewise.
34268         * lib/unictype/pr_left_of_pair.h: Likewise.
34269         * lib/unictype/pr_line_separator.h: Likewise.
34270         * lib/unictype/pr_logical_order_exception.h: Likewise.
34271         * lib/unictype/pr_lowercase.h: Likewise.
34272         * lib/unictype/pr_math.h: Likewise.
34273         * lib/unictype/pr_non_break.h: Likewise.
34274         * lib/unictype/pr_not_a_character.h: Likewise.
34275         * lib/unictype/pr_numeric.h: Likewise.
34276         * lib/unictype/pr_other_alphabetic.h: Likewise.
34277         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
34278         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
34279         * lib/unictype/pr_other_id_continue.h: Likewise.
34280         * lib/unictype/pr_other_id_start.h: Likewise.
34281         * lib/unictype/pr_other_lowercase.h: Likewise.
34282         * lib/unictype/pr_other_math.h: Likewise.
34283         * lib/unictype/pr_other_uppercase.h: Likewise.
34284         * lib/unictype/pr_paired_punctuation.h: Likewise.
34285         * lib/unictype/pr_paragraph_separator.h: Likewise.
34286         * lib/unictype/pr_pattern_syntax.h: Likewise.
34287         * lib/unictype/pr_pattern_white_space.h: Likewise.
34288         * lib/unictype/pr_private_use.h: Likewise.
34289         * lib/unictype/pr_punctuation.h: Likewise.
34290         * lib/unictype/pr_quotation_mark.h: Likewise.
34291         * lib/unictype/pr_radical.h: Likewise.
34292         * lib/unictype/pr_sentence_terminal.h: Likewise.
34293         * lib/unictype/pr_soft_dotted.h: Likewise.
34294         * lib/unictype/pr_space.h: Likewise.
34295         * lib/unictype/pr_terminal_punctuation.h: Likewise.
34296         * lib/unictype/pr_titlecase.h: Likewise.
34297         * lib/unictype/pr_unassigned_code_value.h: Likewise.
34298         * lib/unictype/pr_unified_ideograph.h: Likewise.
34299         * lib/unictype/pr_uppercase.h: Likewise.
34300         * lib/unictype/pr_variation_selector.h: Likewise.
34301         * lib/unictype/pr_white_space.h: Likewise.
34302         * lib/unictype/pr_xid_continue.h: Likewise.
34303         * lib/unictype/pr_xid_start.h: Likewise.
34304         * lib/unictype/pr_zero_width.h: Likewise.
34305         * lib/unictype/scripts.h: Likewise.
34306         * lib/unictype/scripts_byname.gperf: Likewise.
34307         * lib/unictype/sy_c_ident.h: Likewise.
34308         * lib/unictype/sy_c_whitespace.h: Likewise.
34309         * lib/unictype/sy_java_ident.h: Likewise.
34310         * lib/unictype/sy_java_whitespace.h: Likewise.
34311
34312         * lib/unictype/Makefile: New file.
34313         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
34314         glibc.
34315         * lib/unictype/3level.h: New file, copied from glibc.
34316         * lib/unictype/3levelbit.h: New file.
34317
34318 2007-11-11  Bruno Haible  <bruno@clisp.org>
34319
34320         * modules/gperf: New file.
34321         * modules/iconv_open (Depends-on): Add it.
34322         (Makefile.am): Remove the GPERF definition.
34323
34324 2007-11-11  Bruno Haible  <bruno@clisp.org>
34325
34326         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
34327         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
34328
34329 2007-11-11  Bruno Haible  <bruno@clisp.org>
34330
34331         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
34332         (usage): Remove function.
34333
34334 2007-11-11  Bruno Haible  <bruno@clisp.org>
34335
34336         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
34337         gl_FUNC_CEILF_LIBS.
34338         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
34339         gl_FUNC_CEIL_LIBS.
34340         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
34341         gl_FUNC_CEILL_LIBS.
34342         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
34343         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
34344         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
34345
34346 2007-11-11  Bruno Haible  <bruno@clisp.org>
34347
34348         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
34349         roundf were declared but do not exist on functions.
34350         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
34351         roundl were declared but do not exist on functions.
34352         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
34353         HAVE_FLOORL_AND_CEILL, respectively.
34354         Needed for Sun C on Solaris 10.
34355
34356 2007-11-11  Bruno Haible  <bruno@clisp.org>
34357
34358         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
34359         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
34360         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
34361         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
34362         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
34363         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
34364         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
34365         HAVE_DECL_ROUNDF.
34366         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
34367         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
34368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
34369         of HAVE_DECL_ROUND*.
34370         * modules/math (Makefile.am): Update.
34371
34372 2007-11-10  Bruno Haible  <bruno@clisp.org>
34373
34374         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
34375         ptrdiff_t as m4/intl.m4.
34376
34377 2007-11-10  Jim Meyering  <meyering@redhat.com>
34378
34379         Avoid link failure for the argmatch test.
34380         * tests/test-argmatch.c (usage): Define function to avoid a link
34381         failure: argmatch_die requires a usage function.
34382
34383 2007-11-09  Bruno Haible  <bruno@clisp.org>
34384
34385         * doc/functions/snprintf.texi: Mention BeOS deficiency.
34386         * doc/functions/vsnprintf.texi: Likewise.
34387         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
34388         with a size argument < 2.
34389
34390 2007-11-09  Bruno Haible  <bruno@clisp.org>
34391
34392         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
34393         buffer. Fixes an inefficiency introduced on 2007-11-03.
34394
34395 2007-11-09  Bruno Haible  <bruno@clisp.org>
34396
34397         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
34398         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
34399
34400 2007-11-08  Jim Meyering  <meyering@redhat.com>
34401
34402         Change cache variable name prefix "jm_" to "gl_" everywhere.
34403         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
34404         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
34405         * m4/uptime.m4: s/gl_/jm_/
34406
34407 2007-11-07  Bruno Haible  <bruno@clisp.org>
34408
34409         Update to GNU gettext 0.17.
34410         * m4/intl.m4: Update to GNU gettext 0.17.
34411         * m4/po.m4: Likewise.
34412         * modules/gettext (Files): Remove m4/ulonglong.m4.
34413         (configure.ac): Require gettext infrastructure from version 0.17.
34414
34415 2007-11-06  Bruno Haible  <bruno@clisp.org>
34416
34417         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
34418         symbolic values are not defined in a public header.
34419         * lib/freadable.c (freadable) [QNX]: Likewise.
34420         * lib/freadahead.c (freadahead) [QNX]: Likewise.
34421         * lib/freading.c (freading) [QNX]: Likewise.
34422         * lib/fseterr.c (fseterr) [QNX]: Likewise.
34423         * lib/fwritable.c (fwritable) [QNX]: Likewise.
34424         * lib/fwriting.c (fwriting) [QNX]: Likewise.
34425         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
34426         Reported by Alain Magloire.
34427
34428         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
34429
34430 2007-11-05  Bruno Haible  <bruno@clisp.org>
34431
34432         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
34433         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
34434         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
34435         Reported by Eric Blake.
34436
34437 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34438             Bruno Haible  <bruno@clisp.org>
34439
34440         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
34441         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
34442         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
34443         (malloc): Undefine also before including <stdlib.h>.
34444         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
34445         Needed on OSF/1 4.0.
34446
34447 2007-11-05  Jim Meyering  <meyering@redhat.com>
34448
34449         git-version-gen: sync from coreutils.
34450         * build-aux/git-version-gen: Add comments.
34451         Change the first '-' to '.' in the snapshot version string,
34452         e.g., 6.9-377-08144 -> 6.9.377-08144
34453         Remove first parameter.
34454         Don't declare a version "-dirty" merely because a time
34455         stamp has changed.
34456
34457 2007-11-04  Bruno Haible  <bruno@clisp.org>
34458
34459         * lib/lock.h: Protect all macro definitions containing an 'if'
34460         statement through a "do { ... } while (0)".
34461         * lib/tls.h: Likewise.
34462
34463 2007-11-04  Bruno Haible  <bruno@clisp.org>
34464
34465         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
34466
34467 2007-11-04  Bruno Haible  <bruno@clisp.org>
34468
34469         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
34470         * modules/fprintf-posix (Depends-on): Add nocrash.
34471         * modules/snprintf-posix (Depends-on): Likewise.
34472         * modules/sprintf-posix (Depends-on): Likewise.
34473         * modules/vasnprintf-posix (Depends-on): Likewise.
34474         * modules/vasprintf-posix (Depends-on): Likewise.
34475         * modules/vfprintf-posix (Depends-on): Likewise.
34476         * modules/vsnprintf-posix (Depends-on): Likewise.
34477         * modules/vsprintf-posix (Depends-on): Likewise.
34478         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34479         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34480         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34481         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34482         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34483         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34484         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34485
34486 2007-11-04  Bruno Haible  <bruno@clisp.org>
34487
34488         * modules/nocrash: New file.
34489         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
34490         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
34491
34492 2007-11-04  Bruno Haible  <bruno@clisp.org>
34493
34494         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
34495         precision handling.
34496         * tests/test-vasprintf-posix.c (test_function): Likewise.
34497         * tests/test-snprintf-posix.h (test_function): Likewise.
34498         * tests/test-sprintf-posix.h (test_function): Likewise.
34499
34500         Fix *printf behaviour for large precisions on mingw and BeOS.
34501         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
34502         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
34503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
34504         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34505         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34506         gl_PRINTF_PRECISION and test its result. Invoke
34507         gl_PREREQ_VASNPRINTF_PRECISION.
34508         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34509         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34510         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34511         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34512         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34513         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34514         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34515         * doc/functions/fprintf.texi: Update.
34516         * doc/functions/printf.texi: Update.
34517         * doc/functions/snprintf.texi: Update.
34518         * doc/functions/sprintf.texi: Update.
34519         * doc/functions/vfprintf.texi: Update.
34520         * doc/functions/vprintf.texi: Update.
34521         * doc/functions/vsnprintf.texi: Update.
34522         * doc/functions/vsprintf.texi: Update.
34523
34524 2007-11-04  Bruno Haible  <bruno@clisp.org>
34525
34526         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
34527
34528 2007-11-04  Bruno Haible  <bruno@clisp.org>
34529
34530         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
34531         Reported by Sylvain Beucler <beuc@gnu.org>.
34532
34533 2007-11-03  Bruno Haible  <bruno@clisp.org>
34534
34535         * tests/test-fprintf-posix2.sh: New file.
34536         * tests/test-fprintf-posix2.c: New file.
34537         * modules/fprintf-posix-tests (Files): Add them.
34538         (TESTS): Add test-fprintf-posix2.sh.
34539         (configure.ac): Check for getrlimit and setrlimit.
34540         (check_PROGRAMS): Add test-fprintf-posix2.
34541
34542         * tests/test-printf-posix2.sh: New file.
34543         * tests/test-printf-posix2.c: New file.
34544         * modules/printf-posix-tests (Files): Add them.
34545         (TESTS): Add test-printf-posix2.sh.
34546         (configure.ac): Check for getrlimit and setrlimit.
34547         (check_PROGRAMS): Add test-printf-posix2.
34548
34549         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
34550         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
34551         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
34552         (decode_double): New function, copied from decode_long_double.
34553         (scale10_round_decimal_decoded): New function, extracted from
34554         scale10_round_decimal_long_double.
34555         (scale10_round_decimal_long_double): Use it.
34556         (scale10_round_decimal_double): New function.
34557         (floorlog10): New function.
34558         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
34559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
34560         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34561         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34562         gl_PRINTF_ENOMEM and test its result. Invoke
34563         gl_PREREQ_VASNPRINTF_ENOMEM.
34564         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34565         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34566         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34567         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34568         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34569         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34570         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34571         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
34572         * modules/snprintf-posix (Depends-on): Likewise.
34573         * modules/sprintf-posix (Depends-on): Likewise.
34574         * modules/vasnprintf-posix (Depends-on): Likewise.
34575         * modules/vasprintf-posix (Depends-on): Likewise.
34576         * modules/vfprintf-posix (Depends-on): Likewise.
34577         * modules/vsnprintf-posix (Depends-on): Likewise.
34578         * modules/vsprintf-posix (Depends-on): Likewise.
34579         * doc/functions/fprintf.texi: Update.
34580         * doc/functions/printf.texi: Update.
34581         * doc/functions/snprintf.texi: Update.
34582         * doc/functions/sprintf.texi: Update.
34583         * doc/functions/vfprintf.texi: Update.
34584         * doc/functions/vprintf.texi: Update.
34585         * doc/functions/vsnprintf.texi: Update.
34586         * doc/functions/vsprintf.texi: Update.
34587
34588 2007-11-03  Bruno Haible  <bruno@clisp.org>
34589
34590         * modules/frexp-nolibm-tests: New file.
34591
34592         * modules/frexp-nolibm: New file.
34593         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34594
34595 2007-11-03  Bruno Haible  <bruno@clisp.org>
34596
34597         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34598         value is C99 compliant.
34599         Needed for OSF/1 5.1.
34600
34601 2007-11-03  Bruno Haible  <bruno@clisp.org>
34602
34603         Fix out-of-memory handling of vasnprintf.
34604         * lib/printf-parse.c: Include <errno.h>.
34605         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34606         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34607         is already set.
34608
34609 2007-11-02  Eric Blake  <ebb9@byu.net>
34610
34611         Fix tests on cygwin.
34612         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34613
34614 2007-11-01  Bruno Haible  <bruno@clisp.org>
34615
34616         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34617         warning.
34618         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34619         needed for POSIX compatibility.
34620
34621 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34622
34623         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34624         for compatibility with GNU.
34625
34626 2007-11-01  Bruno Haible  <bruno@clisp.org>
34627
34628         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34629         (putenv): Renamed from rpl_putenv. Change argument type from
34630         'const char *' to 'char *'.
34631         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34632         of defining putenv in config.h, just set REPLACE_PUTENV.
34633         * modules/putenv (Depends-on): Add stdlib.
34634         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34635         (Include): Use <stdlib.h>.
34636         * lib/stdlib.in.h (putenv): New declaration.
34637         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34638         REPLACE_PUTENV.
34639         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34640         REPLACE_PUTENV.
34641         Needed for MacOS X 10.5.0.
34642         Reported by Peter O'Gorman <peter@pogma.com>.
34643
34644 2007-11-01  Jim Meyering  <meyering@redhat.com>
34645
34646         Treat an empty date string exactly like "0".
34647         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34648         if the remaining date string (to be parsed) is empty, use "0".
34649         Reported by Mischa Molhoek and discussed in this thread:
34650         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34651
34652 2007-10-31  Bruno Haible  <bruno@clisp.org>
34653
34654         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34655         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34656         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34657         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34658         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34659         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34660
34661 2007-10-31  Bruno Haible  <bruno@clisp.org>
34662
34663         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34664         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34665         (AC_TYPE_LONG_LONG_INT): Use it.
34666         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34667         it as well.
34668         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34669         to m4/longlong.m4.
34670         * modules/stdint (Files): Remove m4/ulonglong.m4.
34671         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34672         m4/ulonglong.m4.
34673         * modules/strtoumax (Files): Likewise.
34674
34675 2007-10-30  Bruno Haible  <bruno@clisp.org>
34676
34677         * modules/xvasprintf-posix: New file.
34678         Suggested by Eric Blake.
34679
34680 2007-10-30  Bruno Haible  <bruno@clisp.org>
34681
34682         * modules/xprintf-posix-tests: New file.
34683         * tests/test-xprintf-posix.sh: New file.
34684         * tests/test-xprintf-posix.c: New file.
34685         * tests/test-xfprintf-posix.c: New file.
34686
34687         * modules/xprintf-posix: New file.
34688
34689 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34690
34691         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34692         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34693         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34694
34695 2007-10-29  Bruno Haible  <bruno@clisp.org>
34696
34697         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34698         contain the special marker '_cv_'.
34699         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34700         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34701         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34702         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34703         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34704         Reported by Ralf Wildenhues.
34705
34706 2007-10-29  Bruno Haible  <bruno@clisp.org>
34707
34708         * gnulib-tool (func_import): When --lgpl is not specified, set
34709         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34710         GPLv3.
34711         Reported by Simon Josefsson.
34712
34713 2007-10-28  Bruno Haible  <bruno@clisp.org>
34714
34715         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34716         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34717         HAVE_DECL_ISFINITE.
34718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34719         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34720         HAVE_DECL_ISFINITE.
34721
34722 2007-10-28  Bruno Haible  <bruno@clisp.org>
34723
34724         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34725         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34726
34727 2007-10-28  Bruno Haible  <bruno@clisp.org>
34728
34729         Fix link errors with Sun C 5.0 on Solaris 10.
34730         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34731         function is declared but not present in the compiler's libm.
34732         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34733         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34734         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34735         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34736         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34737         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34738         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34740         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34741         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34742         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34743         HAVE_DECL_FLOORL.
34744
34745 2007-10-28  Bruno Haible  <bruno@clisp.org>
34746
34747         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34748         gl_FUNC_FLOORL. Cache the result.
34749         (gl_FUNC_FLOORL): Use it.
34750         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34751         gl_FUNC_CEILL. Cache the result.
34752         (gl_FUNC_CEILL): Use it.
34753
34754         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34755         gl_FUNC_FLOOR. Cache the result.
34756         (gl_FUNC_FLOOR): Use it.
34757         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34758         gl_FUNC_CEIL. Cache the result.
34759         (gl_FUNC_CEIL): Use it.
34760
34761         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34762         gl_FUNC_FLOORF. Cache the result.
34763         (gl_FUNC_FLOORF): Use it.
34764         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34765         gl_FUNC_CEILF. Cache the result.
34766         (gl_FUNC_CEILF): Use it.
34767
34768 2007-10-28  Bruno Haible  <bruno@clisp.org>
34769
34770         * gnulib-tool: Allow specifying the LGPL version number through
34771         --lgpl=2 or --lgpl=3.
34772         (func_usage): Document --lgpl with argument.
34773         Handle --lgpl=... arguments.
34774         (func_import): Recognize also gl_LGPL calls with an argument. When
34775         --lgpl=2 is used and the module's license is just LGPL, report an
34776         error. Set sed_transform_lib_file according to the lgpl variable. In
34777         the generated files, use --lgpl or gl_LGPL invocations with argument,
34778         if necessary.
34779         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34780         an LGPv2+ license.
34781         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34782         gl_LGPL macro.
34783
34784 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34785             Bruno Haible  <bruno@clisp.org>
34786
34787         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34788         (u16_uctomb_aux): Likewise.
34789         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34790         !HAVE_INLINE.
34791         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34792
34793 2007-10-28  Bruno Haible  <bruno@clisp.org>
34794
34795         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34796         Invoke AM_GETTEXT_OPTION if it exists.
34797         * modules/vasprintf: Likewise.
34798         * modules/verror: Likewise.
34799         * modules/xprintf: Likewise.
34800         * modules/xvasprintf: Likewise.
34801
34802 2007-10-27  Ben Pfaff  <blp@gnu.org>
34803
34804         * lib/math.in.h: Define isfinite macro and prototypes for
34805         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34806         implementations.
34807         * m4/math_h.m4: New substitutions for isfinite module.
34808         * lib/isfinite.c: New file.
34809         * m4/isfinite.m4: New file.
34810         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34811         * modules/isfinite: New file.
34812         * modules/isfinite-tests: New file.
34813         * tests/tests-isfinite.c: New file.
34814         * doc/functions/isfinite.texi: Mention isfinite module.
34815         * MODULES.html.sh: Mention new module.
34816
34817 2007-10-27  Ben Pfaff  <blp@gnu.org>
34818
34819         Ralf Wildenhues reported that Tru64 4.0D declares the round
34820         functions but does not have definitions.
34821         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34822         cannot be found in any library, set the output variable to
34823         "missing" instead of "".
34824         * m4/round.m4: Also use our substitute if we cannot find round in
34825         any library, even if it is declared.
34826         * m4/roundf.m4: Likewise for roundf.
34827         * m4/roundl.m4: Likewise for roundl.
34828         * lib/math.in.h: Undefine roundf, round, roundl before defining
34829         their replacements, to allow for hypothetical systems where these
34830         may be defined as macros but not available in libraries.
34831
34832 2007-10-27  Bruno Haible  <bruno@clisp.org>
34833
34834         * doc/gnulib.texi: Invoke @firstparagraphindent.
34835         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
34836         changes in gnulib.
34837         (Source changes): New section.
34838
34839 2007-10-26  Bruno Haible  <bruno@clisp.org>
34840
34841         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
34842         borrowed from autoconf.
34843
34844 2007-10-26  Bruno Haible  <bruno@clisp.org>
34845
34846         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
34847         strerror returned the empty string. Needed on HP-UX 11.00.
34848
34849 2007-10-24  Micah Cowan  <micah@cowan.name>
34850
34851         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
34852         * build-aux/bootstrap: Remove support for now-unnecessary option,
34853         --cvs-user, and envvars CVS_USER, CVS_RSH.
34854
34855 2007-10-24  Jim Meyering  <meyering@redhat.com>
34856
34857         Avoid diagnostics from sha1sum when there is no cached checksum.
34858         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
34859         if the po.s1 file hasn't been created yet.
34860
34861         * build-aux/bootstrap: Sync from coreutils:
34862         2007-10-24  Jim Meyering  <meyering@redhat.com>
34863         Get gnulib from the git repository, not from an obsolete cvs one.
34864         * build-aux/bootstrap: Suggestion from Micah Cowan.
34865         2007-10-04  Jim Meyering  <jim@meyering.net>
34866         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
34867         (update_po_files): Work also when there are no .po files in po/.
34868
34869 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34870
34871         * README: Append ".git" to git and cg examples.
34872         Problem reported by Benoit Sigoure.
34873
34874 2007-10-23  Micah Cowan  <micah@cowan.name>
34875
34876         * users.txt: Add wget.
34877
34878 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34879
34880         Fix linking of some unistdio tests on FreeBSD.
34881         * modules/unistdio/u16-vsnprintf-tests
34882         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
34883         * modules/unistdio/u16-vsprintf-tests
34884         (test_u16_vsnprintf1_LDADD): Likewise.
34885         * modules/unistdio/u32-vsnprintf-tests
34886         (test_u32_vsnprintf1_LDADD): Likewise.
34887         * modules/unistdio/u32-vsprintf-tests
34888         (test_u32_vsprintf1_LDADD): Likewise.
34889         * modules/unistdio/u8-vsnprintf-tests
34890         (test_u8_vsnprintf1_LDADD): Likewise.
34891         * modules/unistdio/u8-vsprintf-tests
34892         (test_u8_vsprintf1_LDADD): Likewise.
34893         * modules/unistdio/ulc-vsnprintf-tests
34894         (test_ulc_vsnprintf1_LDADD): Likewise.
34895         * modules/unistdio/ulc-vsprintf-tests
34896         (test_ulc_vsprintf1_LDADD): Likewise.
34897
34898         Fix linking of some uniconv tests on FreeBSD.
34899         * modules/uniconv/u16-conv-from-enc-tests
34900         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
34901         * modules/uniconv/u16-conv-to-enc-tests
34902         (test_u16_conv_to_enc_LDADD): Likewise.
34903         * modules/uniconv/u16-strconv-from-enc-tests
34904         (test_u16_strconv_from_enc_LDADD): Likewise.
34905         * modules/uniconv/u16-strconv-to-enc-tests
34906         (test_u16_strconv_to_enc_LDADD): Likewise.
34907         * modules/uniconv/u32-conv-from-enc-tests
34908         (test_u32_conv_from_enc_LDADD): Likewise.
34909         * modules/uniconv/u32-conv-to-enc-tests
34910         (test_u32_conv_to_enc_LDADD): Likewise.
34911         * modules/uniconv/u32-strconv-from-enc-tests
34912         (test_u32_strconv_from_enc_LDADD): Likewise.
34913         * modules/uniconv/u32-strconv-to-enc-tests
34914         (test_u32_strconv_to_enc_LDADD): Likewise.
34915         * modules/uniconv/u8-conv-from-enc-tests
34916         (test_u8_conv_from_enc_LDADD): Likewise.
34917         * modules/uniconv/u8-conv-to-enc-tests
34918         (test_u8_conv_to_enc_LDADD): Likewise.
34919         * modules/uniconv/u8-strconv-from-enc-tests
34920         (test_u8_strconv_from_enc_LDADD): Likewise.
34921         * modules/uniconv/u8-strconv-to-enc-tests
34922         (test_u8_strconv_to_enc_LDADD): Likewise.
34923
34924 2007-10-22  Bruno Haible  <bruno@clisp.org>
34925
34926         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
34927         size.
34928
34929 2007-10-22  Eric Blake  <ebb9@byu.net>
34930
34931         Tweak x*printf documentation.
34932         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
34933         variable name and comments.
34934         Suggested by Bruno Haible.
34935
34936 2007-10-22  Bruno Haible  <bruno@clisp.org>
34937
34938         * lib/acl.c (copy_acl): Fix file name in comment.
34939
34940 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34941
34942         Fix Tru64 problem with stdbool.h.
34943         * lib/stdbool.in.h (false, true):
34944         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
34945         Don't declare as an enum in this situation; it runs afoul of Tru64.
34946         Problem reported by Steven M. Schweda in
34947         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
34948
34949 2007-10-22  Eric Blake  <ebb9@byu.net>
34950
34951         Also wrap vf?printf.
34952         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
34953         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
34954         (xvprintf, xvfprintf): New functions.
34955
34956 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34957
34958         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
34959         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
34960
34961         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
34962         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
34963
34964 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34965
34966         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
34967         by Bruno Haible.
34968
34969 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34970
34971         * lib/getloadavg.c
34972         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
34973         Undef `sys' after including sys/table.h, for Tru64 4.0D.
34974
34975         * tests/test-i-ring.c: Work for C89.
34976
34977 2007-10-22  Bruno Haible  <bruno@clisp.org>
34978
34979         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
34980         -1u, in preprocessor expression, so that we don't test for the bug
34981         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
34982         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
34983
34984 2007-10-22  Eric Blake  <ebb9@byu.net>
34985
34986         * tests/test-yesno.sh: Silence stderr during test.
34987
34988 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34989
34990         * modules/crypto/gc-camellia: New file.
34991
34992         * m4/gc-camellia.m4: New file.
34993
34994         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
34995
34996         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
34997
34998 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34999
35000         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
35001         --help to stdout.  Reported by sms@antinode.org (Steven
35002         M. Schweda).
35003
35004 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35005
35006         * users.txt: Fix link to libksba.
35007
35008 2007-10-21  Ben Pfaff  <blp@gnu.org>
35009
35010         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
35011         round.c roundf implementation that depends on floorf and ceilf to
35012         be tested unconditionally.
35013
35014 2007-10-21  Ben Pfaff  <blp@gnu.org>
35015
35016         * m4/check-libm-func.m4: Removed.
35017         * m4/check-math-lib.m4: New file.
35018         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
35019         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
35020         definition and lack of AC_LIBOBJ([roundf]).
35021         * m4/roundl.m4: Ditto, and similarly for roundl.
35022         * modules/round: Reference new m4 file.
35023         * modules/roundf: Ditto.
35024         * modules/roundl: Ditto.
35025         * tests/test-round2.c (main): Use ROUND instead of round.
35026         Bug report from Bruno Haible.
35027
35028 2007-10-21  Bruno Haible  <bruno@clisp.org>
35029
35030         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
35031         context.
35032
35033 2007-10-21  Bruno Haible  <bruno@clisp.org>
35034
35035         * tests/test-wcwidth.c (main): Allow negative result for some control
35036         characters.
35037
35038         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
35039         Needed on OSF/1 5.1.
35040
35041 2007-10-21  Bruno Haible  <bruno@clisp.org>
35042
35043         * tests/test-floorf1.c: Include isnanf.h.
35044         (main): Use isnanf() instead of isnan().
35045         * tests/test-ceilf1.c: Include isnanf.h.
35046         (main): Use isnanf() instead of isnan().
35047         * tests/test-truncf1.c: Include isnanf.h.
35048         (main): Use isnanf() instead of isnan().
35049         * tests/test-roundf1.c: Include isnanf.h.
35050         (main): Use isnanf() instead of isnan().
35051
35052 2007-10-21  Eric Blake  <ebb9@byu.net>
35053
35054         * users.txt: Update URL for m4.
35055
35056 2007-10-21  Bruno Haible  <bruno@clisp.org>
35057
35058         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
35059
35060 2007-10-21  Bruno Haible  <bruno@clisp.org>
35061
35062         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
35063         Git's management files if the CVS files are not present.
35064
35065 2007-10-20  Bruno Haible  <bruno@clisp.org>
35066
35067         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
35068         gcc-3.4.x.
35069
35070 2007-10-20  Ben Pfaff  <blp@gnu.org>
35071
35072         * lib/math.in.h: Declare round, roundf, roundl if we are providing
35073         implementations.
35074         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
35075         * lib/round.c: New file.
35076         * lib/roundf.c: New file.
35077         * lib/roundl.c: New file.
35078         * m4/round.m4: New file.
35079         * m4/roundf.m4: New file.
35080         * m4/roundl.m4: New file.
35081         * m4/check-libm-func-m4: New file.
35082         * modules/math: Replace round, roundf, roundl related @VARS@ in
35083         math.in.h.
35084         * modules/round: New file.
35085         * modules/round-tests: New file.
35086         * modules/roundf: New file.
35087         * modules/roundf-tests: New file.
35088         * modules/roundl: New file.
35089         * modules/roundl-tests: New file.
35090         * tests/test-round1.c: New file.
35091         * tests/test-round2.c: New file.
35092         * tests/test-roundf1.c: New file.
35093         * tests/test-roundf2.c: New file.
35094         * tests/test-roundl.c: New file.
35095         * doc/functions/round.texi: Mention round module.
35096         * doc/functions/roundf.texi: Mention roundf module.
35097         * doc/functions/roundl.texi: Mention roundl module.
35098         * MODULES.html.sh: Mention new modules.
35099         Thanks to Bruno Haible for suggestions.
35100
35101 2007-10-20  Jim Meyering  <meyering@redhat.com>
35102
35103         * lib/xprintf.c: Include <config.h> unconditionally.
35104
35105         Change xprintf's license to GPL.
35106         * modules/xprintf (License): s/LGPL/GPL/, since this module
35107         depends on modules (exit and exitfail) which are GPL.
35108         Suggestion from Bruno Haible.
35109
35110         xprintf fixes.
35111         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
35112         Use a clearer diagnostic.
35113         Patch from Bruno Haible.
35114
35115 2007-10-20  Bruno Haible  <bruno@clisp.org>
35116
35117         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
35118         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
35119         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35120
35121 2007-10-20  Bruno Haible  <bruno@clisp.org>
35122
35123         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
35124         precision in the comparison result > x - 1 or similar.
35125         * tests/test-ceilf2.c (correct_result_p): Likewise.
35126         * tests/test-truncf2.c (correct_result_p): Likewise.
35127         * tests/test-trunc2.c (correct_result_p): Likewise.
35128         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35129
35130 2007-10-20  Bruno Haible  <bruno@clisp.org>
35131
35132         * modules/ceil: New file.
35133         * m4/ceil.m4: New file.
35134         * doc/functions/ceil.texi: Mention the 'ceil' module.
35135
35136 2007-10-20  Bruno Haible  <bruno@clisp.org>
35137
35138         * modules/floor: New file.
35139         * m4/floor.m4: New file.
35140         * doc/functions/floor.texi: Mention the 'floor' module.
35141
35142 2007-10-20  Bruno Haible  <bruno@clisp.org>
35143
35144         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
35145         of %a.
35146         * modules/floorf-tests (Depends-on): Likewise.
35147         * modules/truncf-tests (Depends-on): Likewise.
35148         * modules/trunc-tests (Depends-on): Likewise.
35149         Reported by Ben Pfaff.
35150
35151 2007-10-19  Jim Meyering  <meyering@redhat.com>
35152
35153         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
35154         Don't bother testing specific errno values.  Just test ferror.
35155
35156         New module: xprintf
35157         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
35158
35159 2007-10-19  Bruno Haible  <bruno@clisp.org>
35160
35161         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
35162         syntax.
35163         * modules/javaexec (Makefile.am): Likewise.
35164         * modules/relocatable-prog (Makefile.am): Likewise.
35165         Suggested by Jim Meyering.
35166
35167 2007-10-18  Bruno Haible  <bruno@clisp.org>
35168
35169         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
35170         Reported by Jim Meyering.
35171
35172 2007-10-18  Eric Blake  <ebb9@byu.net>
35173
35174         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
35175
35176 2007-10-18  Bruno Haible  <bruno@clisp.org>
35177
35178         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
35179         the format string into writable memory. Needed in Fortify conditions.
35180
35181 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
35182             Bruno Haible  <bruno@clisp.org>
35183
35184         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
35185         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
35186         * modules/trim (Depends-on): Add mbchar.
35187         (configure.ac): Add gl_FUNC_MBRTOWC.
35188         (Makefile.am): Augment lib_SOURCES.
35189
35190 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35191
35192         Modify glob.c to use fstatat and dirfd, to simplify it.
35193         Suggested by Eric Blake.
35194         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
35195         Don't include <stdbool.h>; not used.
35196         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
35197         (link_exists_p): Simplify implementation, since we can now assume
35198         dirfd and fstatat.
35199         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
35200
35201 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35202
35203         * gnulib-tool (func_get_dependencies): Fix sed script to
35204         match only tests.
35205
35206 2007-10-17  Bruno Haible  <bruno@clisp.org>
35207
35208         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
35209         allow locale names without encoding suffix.
35210         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35211         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35212
35213 2007-10-16  Bruno Haible  <bruno@clisp.org>
35214
35215         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
35216         * lib/getgroups.c (getgroups): Likewise.
35217         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
35218
35219 2007-10-16  Bruno Haible  <bruno@clisp.org>
35220
35221         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
35222         * modules/malloc-posix (License): Likewise.
35223         * modules/realloc-posix (License): Likewise.
35224         * modules/calloc-posix (License): Likewise.
35225         * modules/intprops (License): Change from GPL to LGPL, with
35226         Paul Eggert's approval.
35227
35228 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35229
35230         Merge glibc changes into lib/glob.c.
35231
35232         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
35233         2007-10-15 04:59:03 UTC.  Here are the changes:
35234
35235         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
35236
35237         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
35238
35239         * lib/glob.c: Add some branch prediction throughout.
35240
35241         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
35242
35243         [BZ #5103]
35244         * lib/glob.c (glob): Recognize patterns starting \/.
35245
35246         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
35247
35248         [BZ #3996]
35249         * lib/glob.c (attribute_hidden): Define if not defined.
35250         (glob): Unescape dirname, filename or username when needed and not
35251         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
35252         is NULL.  Handle unescaped [ in pattern without closing ].
35253         Don't pass GLOB_CHECK down to recursive glob for directories.
35254         (__glob_pattern_type): New function.
35255         (__glob_pattern_p): Implement using __glob_pattern_type.
35256         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
35257         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
35258         Remove unreachable code.
35259
35260         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
35261
35262         * lib/glob.c (glob_in_dir): Add some comments and asserts to
35263         explain why there are no leaks.
35264
35265         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
35266
35267         [BZ #3253]
35268         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
35269         time, rather allocate increasingly bigger arrays of pointers, if
35270         possible with alloca, if too large with malloc.
35271
35272 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35273
35274         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
35275         Problem reported by H.Merijn Brand in
35276         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
35277         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
35278         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35279
35280 2007-10-15  Bruno Haible  <bruno@clisp.org>
35281
35282         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
35283         with explicit rpl_ prefix.
35284         * lib/fopen.c (fopen): Likewise.
35285         * lib/freopen.c (freopen): Likewise.
35286         * lib/iconv.c (iconv): Likewise.
35287         * lib/iconv_close.c (iconv_close): Likewise.
35288
35289 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35290
35291         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
35292
35293 2007-10-15  Bruno Haible  <bruno@clisp.org>
35294
35295         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
35296         <stddef.h> instead of <stdlib.h> since we only need NULL.
35297         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35298
35299 2007-10-15  Bruno Haible  <bruno@clisp.org>
35300
35301         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
35302         Replace paragraph talking about LIBOBJS.
35303         Reported by Colin Watson <cjwatson@debian.org>.
35304
35305 2007-10-15  Bruno Haible  <bruno@clisp.org>
35306
35307         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
35308         <stdlib.h> before using NULL.
35309
35310 2007-10-15  Simon Josefsson  <simon@josefsson.org>
35311
35312         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
35313         Reported by Albert Chin <china@thewrittenword.com>.
35314
35315 2007-10-14  Bruno Haible  <bruno@clisp.org>
35316
35317         * modules/iconv_open-utf-tests: New file.
35318         * tests/test-iconv-utf.c: New file.
35319
35320         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
35321         * modules/iconv_open-utf: New file.
35322         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
35323         (iconv, iconv_close): New declarations.
35324         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
35325         be defined.
35326         (iconv_open): Add special handling of conversion between UTF-8 and
35327         UTF-{16,32}{BE,LE}.
35328         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
35329         * lib/iconv_close.c: New file.
35330         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
35331         gl_FUNC_ICONV_OPEN.
35332         (gl_FUNC_ICONV_OPEN): Use it.
35333         (gl_FUNC_ICONV_OPEN_UTF): New macro.
35334         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
35335         and REPLACE_ICONV_UTF.
35336         * modules/iconv_open (Depends-on): Add c-strcase.
35337         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
35338         ICONV_CONST.
35339         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
35340
35341 2007-10-13  Albert Chin  <china@thewrittenword.com>
35342             Bruno Haible  <bruno@clisp.org>
35343
35344         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
35345         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
35346
35347 2007-10-13  Bruno Haible  <bruno@clisp.org>
35348
35349         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
35350         defined, use the ISO C99 inline semantics.
35351         * lib/argp.h (ARGP_EI): Likewise.
35352
35353 2007-10-13  Bruno Haible  <bruno@clisp.org>
35354
35355         Handle 'inline' change in gcc 4.3.0.
35356         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
35357         argp_fmtstream_write, argp_fmtstream_set_lmargin,
35358         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
35359         argp_fmtstream_point): Disable 'extern' declaration if the function
35360         definition is going to be provided inline.
35361         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
35362         semantics, not the ISO C99 inline semantics.
35363         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
35364         'extern' declaration if the function definition is going to be provided
35365         inline.
35366         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
35367         the GNU C inline semantics, not the ISO C99 inline semantics. With
35368         GCC 4.2, avoid a warning.
35369
35370 2007-10-13  Bruno Haible  <bruno@clisp.org>
35371
35372         * lib/freading.h (freading): Enable the use of __freading for
35373         glibc >= 2.7.
35374         * lib/freading.c (freading): Likewise.
35375
35376 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35377
35378         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
35379         "warning: C99 inline functions are not supported; using GNU89".
35380
35381 2007-10-12  Bruno Haible  <bruno@clisp.org>
35382
35383         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
35384         of 2.
35385         * tests/test-ceilf2.c: New file.
35386         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
35387
35388         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
35389         * modules/ceilf-tests: Update.
35390
35391 2007-10-12  Bruno Haible  <bruno@clisp.org>
35392
35393         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
35394         of 2.
35395         * tests/test-floorf2.c: New file.
35396         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
35397
35398         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
35399         * modules/floorf-tests: Update.
35400
35401 2007-10-12  Bruno Haible  <bruno@clisp.org>
35402
35403         * tests/test-trunc2.c: New file.
35404         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
35405
35406         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
35407         * modules/trunc-tests: Update.
35408
35409 2007-10-12  Bruno Haible  <bruno@clisp.org>
35410
35411         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
35412         of 2.
35413         * tests/test-truncf2.c: New file.
35414         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
35415
35416         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
35417         * modules/truncf-tests: Update.
35418
35419 2007-10-11  Eric Blake  <ebb9@byu.net>
35420
35421         Don't claim strerror is broken on Interix.
35422         * doc/functions/strerror.texi (strerror): Known broken systems are
35423         now Solaris 8, and not Interix.
35424         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
35425         Interix on cross-compile.
35426         Reported by Martin Koeppe in
35427         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
35428
35429 2007-10-11  Bruno Haible  <bruno@clisp.org>
35430
35431         * modules/i-ring-tests: New file.
35432         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
35433         instead of assert.
35434
35435 2007-10-11  Bruno Haible  <bruno@clisp.org>
35436
35437         * modules/filenamecat-tests: New file.
35438         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
35439         * lib/filenamecat.c: Remove test code.
35440
35441 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35442
35443         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
35444
35445         * lib/strerror.c: Include <string.h> always, to test interface,
35446         and to remove the need for the dummy.
35447         Include intprops.h to compute width instead of doing it ourselves
35448         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
35449         (strerror): Define it to return NULL if there's no system strerror.
35450         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
35451         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
35452         ancient pre-strerror Unix systems well any more.  Saying "unknown
35453         system error" is enough.
35454         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
35455         simpler strerror.c implementation.
35456         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
35457         Simplify the tests to reflect the simpler strerror implementation.
35458         * modules/strerror (Depends-on): Add intprops.
35459
35460 2007-10-09  Eric Blake  <ebb9@byu.net>
35461
35462         Silence test-fpending.
35463         * modules/fpending-tests (Files): Add wrapper script.
35464         * tests/test-fpending.sh: New file.
35465
35466 2007-10-09  Bruno Haible  <bruno@clisp.org>
35467
35468         * MODULES.html.sh (func_module): Don't create a hyperlink for
35469         function names like 'printf_frexp'.
35470         (Misc): Add crc, memxor.
35471         (Characteristics of floating types): New section.
35472         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
35473         isnanf-nolibm, signbit, trunc, truncf, truncl.
35474         (Enhancements for ISO C 99 functions): New subsection Input/output.
35475         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
35476         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
35477         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
35478         (Compatibility checks for POSIX:2001 functions): Add clock-time.
35479         (Enhancements for POSIX:2001 functions): Add chdir-long.
35480         (File system functions): Add areadlink, chdir-safer, read-file.
35481         Remove cycle-check.
35482         (File system as inode set): New section.
35483         (Date and time): Add gethrxtime.
35484         (Multithreading): Add openmp.
35485         (Internationalization functions): Add localename.
35486         (Unicode string functions): Add unistr/u*-mbsnlen.
35487         (Support for maintaining and releasing projects): Add git-version-gen.
35488         (Lone files): Remove directories.
35489
35490 2007-10-08  Ben Pfaff  <blp@gnu.org>
35491
35492         * lib/xmalloca.h: Fix typo in comment.
35493
35494 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35495
35496         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
35497         when avoiding problems with integer overflow.  Use a portable test
35498         instead.
35499
35500 2007-10-08  Simon Josefsson  <simon@josefsson.org>
35501
35502         * modules/dummy (License): Change to LGPLv2+.
35503         * modules/float (License): Likewise
35504         * modules/realloc (License): Likewise
35505         * modules/stdlib (License): Likewise
35506
35507 2007-10-07  Bruno Haible  <bruno@clisp.org>
35508
35509         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
35510         * floor.c (TWO_MANT_DIG): Likewise.
35511         * ceil.c (TWO_MANT_DIG): Likewise.
35512         Reported by Ben Pfaff.
35513
35514 2007-10-07  Bruno Haible  <bruno@clisp.org>
35515
35516         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
35517         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
35518         * lib/frexp.c (FUNC): Likewise.
35519         * lib/printf-frexp.h (printf_frexp): Likewise.
35520         * lib/printf-frexpl.h (printf_frexpl): Likewise.
35521         * lib/printf-frexp.c (FUNC): Likewise.
35522         Suggested by Jim Meyering.
35523
35524 2007-10-07  Jim Meyering  <meyering@redhat.com>
35525
35526         Make xnanosleep's integer overflow test more robust.
35527         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35528         so that gcc-4.3.0 doesn't optimize away this test for overflow.
35529
35530 2007-10-07  Bruno Haible  <bruno@clisp.org>
35531
35532         * NEWS: Mention the license change.
35533
35534         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
35535         abbreviations in the modules files.
35536
35537         Change copyright notice from GPLv2+ to GPLv3+.
35538         * README: Change copyright notice.
35539         * MODULES.html.sh: Likewise.
35540         * build-aux/bootstrap.conf: Likewise.
35541         * build-aux/config.libpath: Likewise.
35542         * build-aux/csharpcomp.sh.in: Likewise.
35543         * build-aux/csharpexec.sh.in: Likewise.
35544         * build-aux/install-reloc: Likewise.
35545         * build-aux/javacomp.sh.in: Likewise.
35546         * build-aux/javaexec.sh.in: Likewise.
35547         * build-aux/ldd.sh.in: Likewise.
35548         * build-aux/reloc-ldflags: Likewise.
35549         * build-aux/relocatable.sh.in: Likewise.
35550         * build-aux/x-to-1.in: Likewise.
35551         * check-module: Likewise.
35552         * config/srclistvars.sh: Likewise.
35553         * gnulib-tool: Likewise.
35554         * lib/acl-internal.h: Likewise.
35555         * lib/acl.c: Likewise.
35556         * lib/acl.h: Likewise.
35557         * lib/acl_entries.c: Likewise.
35558         * lib/areadlink-with-size.c: Likewise.
35559         * lib/areadlink.c: Likewise.
35560         * lib/areadlink.h: Likewise.
35561         * lib/argmatch.c: Likewise.
35562         * lib/argmatch.h: Likewise.
35563         * lib/argp-ba.c: Likewise.
35564         * lib/argp-eexst.c: Likewise.
35565         * lib/argp-fmtstream.c: Likewise.
35566         * lib/argp-fmtstream.h: Likewise.
35567         * lib/argp-fs-xinl.c: Likewise.
35568         * lib/argp-help.c: Likewise.
35569         * lib/argp-namefrob.h: Likewise.
35570         * lib/argp-parse.c: Likewise.
35571         * lib/argp-pin.c: Likewise.
35572         * lib/argp-pv.c: Likewise.
35573         * lib/argp-pvh.c: Likewise.
35574         * lib/argp-xinl.c: Likewise.
35575         * lib/argp.h: Likewise.
35576         * lib/at-func.c: Likewise.
35577         * lib/atanl.c: Likewise.
35578         * lib/backupfile.c: Likewise.
35579         * lib/backupfile.h: Likewise.
35580         * lib/basename.c: Likewise.
35581         * lib/binary-io.h: Likewise.
35582         * lib/byteswap.in.h: Likewise.
35583         * lib/c-stack.c: Likewise.
35584         * lib/c-stack.h: Likewise.
35585         * lib/c-strcasestr.c: Likewise.
35586         * lib/c-strcasestr.h: Likewise.
35587         * lib/c-strstr.c: Likewise.
35588         * lib/c-strstr.h: Likewise.
35589         * lib/c-strtod.c: Likewise.
35590         * lib/calloc.c: Likewise.
35591         * lib/canon-host.c: Likewise.
35592         * lib/canon-host.h: Likewise.
35593         * lib/canonicalize-lgpl.c: Likewise.
35594         * lib/canonicalize.c: Likewise.
35595         * lib/canonicalize.h: Likewise.
35596         * lib/ceil.c: Likewise.
35597         * lib/ceilf.c: Likewise.
35598         * lib/ceill.c: Likewise.
35599         * lib/chdir-long.c: Likewise.
35600         * lib/chdir-long.h: Likewise.
35601         * lib/chdir-safer.c: Likewise.
35602         * lib/chdir-safer.h: Likewise.
35603         * lib/chown.c: Likewise.
35604         * lib/classpath.c: Likewise.
35605         * lib/classpath.h: Likewise.
35606         * lib/clean-temp.c: Likewise.
35607         * lib/clean-temp.h: Likewise.
35608         * lib/cloexec.c: Likewise.
35609         * lib/close-stream.c: Likewise.
35610         * lib/closein.c: Likewise.
35611         * lib/closein.h: Likewise.
35612         * lib/closeout.c: Likewise.
35613         * lib/closeout.h: Likewise.
35614         * lib/concat-filename.c: Likewise.
35615         * lib/copy-file.c: Likewise.
35616         * lib/copy-file.h: Likewise.
35617         * lib/count-one-bits.h: Likewise.
35618         * lib/crc.c: Likewise.
35619         * lib/crc.h: Likewise.
35620         * lib/creat-safer.c: Likewise.
35621         * lib/csharpcomp.c: Likewise.
35622         * lib/csharpcomp.h: Likewise.
35623         * lib/csharpexec.c: Likewise.
35624         * lib/csharpexec.h: Likewise.
35625         * lib/cycle-check.c: Likewise.
35626         * lib/cycle-check.h: Likewise.
35627         * lib/diacrit.c: Likewise.
35628         * lib/diacrit.h: Likewise.
35629         * lib/diffseq.h: Likewise.
35630         * lib/dirchownmod.c: Likewise.
35631         * lib/dirent.in.h: Likewise.
35632         * lib/dirfd.c: Likewise.
35633         * lib/dirfd.h: Likewise.
35634         * lib/dirname.c: Likewise.
35635         * lib/dirname.h: Likewise.
35636         * lib/dummy.c: Likewise.
35637         * lib/dup-safer.c: Likewise.
35638         * lib/dup2.c: Likewise.
35639         * lib/eealloc.h: Likewise.
35640         * lib/error.c: Likewise.
35641         * lib/error.h: Likewise.
35642         * lib/euidaccess.c: Likewise.
35643         * lib/exclude.c: Likewise.
35644         * lib/exclude.h: Likewise.
35645         * lib/execute.c: Likewise.
35646         * lib/execute.h: Likewise.
35647         * lib/exitfail.c: Likewise.
35648         * lib/exitfail.h: Likewise.
35649         * lib/expl.c: Likewise.
35650         * lib/fatal-signal.c: Likewise.
35651         * lib/fatal-signal.h: Likewise.
35652         * lib/fbufmode.c: Likewise.
35653         * lib/fbufmode.h: Likewise.
35654         * lib/fchdir.c: Likewise.
35655         * lib/fchmodat.c: Likewise.
35656         * lib/fchownat.c: Likewise.
35657         * lib/fcntl--.h: Likewise.
35658         * lib/fcntl-safer.h: Likewise.
35659         * lib/fcntl.in.h: Likewise.
35660         * lib/fd-safer.c: Likewise.
35661         * lib/fflush.c: Likewise.
35662         * lib/file-has-acl.c: Likewise.
35663         * lib/file-set.c: Likewise.
35664         * lib/file-type.c: Likewise.
35665         * lib/file-type.h: Likewise.
35666         * lib/fileblocks.c: Likewise.
35667         * lib/filemode.c: Likewise.
35668         * lib/filemode.h: Likewise.
35669         * lib/filename.h: Likewise.
35670         * lib/filenamecat.c: Likewise.
35671         * lib/filenamecat.h: Likewise.
35672         * lib/findprog.c: Likewise.
35673         * lib/findprog.h: Likewise.
35674         * lib/float.in.h: Likewise.
35675         * lib/floor.c: Likewise.
35676         * lib/floorf.c: Likewise.
35677         * lib/floorl.c: Likewise.
35678         * lib/fopen-safer.c: Likewise.
35679         * lib/fopen.c: Likewise.
35680         * lib/fpending.c: Likewise.
35681         * lib/fpending.h: Likewise.
35682         * lib/fprintf.c: Likewise.
35683         * lib/fprintftime.h: Likewise.
35684         * lib/fpucw.h: Likewise.
35685         * lib/fpurge.c: Likewise.
35686         * lib/fpurge.h: Likewise.
35687         * lib/freadable.c: Likewise.
35688         * lib/freadable.h: Likewise.
35689         * lib/freadahead.c: Likewise.
35690         * lib/freadahead.h: Likewise.
35691         * lib/freading.c: Likewise.
35692         * lib/freading.h: Likewise.
35693         * lib/free.c: Likewise.
35694         * lib/freopen.c: Likewise.
35695         * lib/frexp.c: Likewise.
35696         * lib/frexpl.c: Likewise.
35697         * lib/fseek.c: Likewise.
35698         * lib/fseterr.c: Likewise.
35699         * lib/fseterr.h: Likewise.
35700         * lib/fstatat.c: Likewise.
35701         * lib/fstrcmp.c: Likewise.
35702         * lib/fstrcmp.h: Likewise.
35703         * lib/fsusage.c: Likewise.
35704         * lib/fsusage.h: Likewise.
35705         * lib/ftell.c: Likewise.
35706         * lib/ftello.c: Likewise.
35707         * lib/fts-cycle.c: Likewise.
35708         * lib/fts.c: Likewise.
35709         * lib/fts_.h: Likewise.
35710         * lib/full-read.c: Likewise.
35711         * lib/full-read.h: Likewise.
35712         * lib/full-write.c: Likewise.
35713         * lib/full-write.h: Likewise.
35714         * lib/fwritable.c: Likewise.
35715         * lib/fwritable.h: Likewise.
35716         * lib/fwriteerror.c: Likewise.
35717         * lib/fwriteerror.h: Likewise.
35718         * lib/fwriting.c: Likewise.
35719         * lib/fwriting.h: Likewise.
35720         * lib/gcd.c: Likewise.
35721         * lib/gcd.h: Likewise.
35722         * lib/getcwd.c: Likewise.
35723         * lib/getdate.h: Likewise.
35724         * lib/getdate.y: Likewise.
35725         * lib/getdomainname.c: Likewise.
35726         * lib/getdomainname.h: Likewise.
35727         * lib/getgroups.c: Likewise.
35728         * lib/gethostname.c: Likewise.
35729         * lib/gethrxtime.c: Likewise.
35730         * lib/gethrxtime.h: Likewise.
35731         * lib/getloadavg.c: Likewise.
35732         * lib/getndelim2.c: Likewise.
35733         * lib/getndelim2.h: Likewise.
35734         * lib/getnline.c: Likewise.
35735         * lib/getnline.h: Likewise.
35736         * lib/getopt.c: Likewise.
35737         * lib/getopt.in.h: Likewise.
35738         * lib/getopt1.c: Likewise.
35739         * lib/getopt_int.h: Likewise.
35740         * lib/getpagesize.h: Likewise.
35741         * lib/getsubopt.c: Likewise.
35742         * lib/gettime.c: Likewise.
35743         * lib/getugroups.c: Likewise.
35744         * lib/getugroups.h: Likewise.
35745         * lib/getusershell.c: Likewise.
35746         * lib/gl_anyavltree_list1.h: Likewise.
35747         * lib/gl_anyavltree_list2.h: Likewise.
35748         * lib/gl_anyhash_list1.h: Likewise.
35749         * lib/gl_anyhash_list2.h: Likewise.
35750         * lib/gl_anylinked_list1.h: Likewise.
35751         * lib/gl_anylinked_list2.h: Likewise.
35752         * lib/gl_anyrbtree_list1.h: Likewise.
35753         * lib/gl_anyrbtree_list2.h: Likewise.
35754         * lib/gl_anytree_list1.h: Likewise.
35755         * lib/gl_anytree_list2.h: Likewise.
35756         * lib/gl_anytree_oset.h: Likewise.
35757         * lib/gl_anytreehash_list1.h: Likewise.
35758         * lib/gl_anytreehash_list2.h: Likewise.
35759         * lib/gl_array_list.c: Likewise.
35760         * lib/gl_array_list.h: Likewise.
35761         * lib/gl_array_oset.c: Likewise.
35762         * lib/gl_array_oset.h: Likewise.
35763         * lib/gl_avltree_list.c: Likewise.
35764         * lib/gl_avltree_list.h: Likewise.
35765         * lib/gl_avltree_oset.c: Likewise.
35766         * lib/gl_avltree_oset.h: Likewise.
35767         * lib/gl_avltreehash_list.c: Likewise.
35768         * lib/gl_avltreehash_list.h: Likewise.
35769         * lib/gl_carray_list.c: Likewise.
35770         * lib/gl_carray_list.h: Likewise.
35771         * lib/gl_linked_list.c: Likewise.
35772         * lib/gl_linked_list.h: Likewise.
35773         * lib/gl_linkedhash_list.c: Likewise.
35774         * lib/gl_linkedhash_list.h: Likewise.
35775         * lib/gl_list.c: Likewise.
35776         * lib/gl_list.h: Likewise.
35777         * lib/gl_oset.c: Likewise.
35778         * lib/gl_oset.h: Likewise.
35779         * lib/gl_rbtree_list.c: Likewise.
35780         * lib/gl_rbtree_list.h: Likewise.
35781         * lib/gl_rbtree_oset.c: Likewise.
35782         * lib/gl_rbtree_oset.h: Likewise.
35783         * lib/gl_rbtreehash_list.c: Likewise.
35784         * lib/gl_rbtreehash_list.h: Likewise.
35785         * lib/gl_sublist.c: Likewise.
35786         * lib/gl_sublist.h: Likewise.
35787         * lib/group-member.c: Likewise.
35788         * lib/group-member.h: Likewise.
35789         * lib/hard-locale.c: Likewise.
35790         * lib/hard-locale.h: Likewise.
35791         * lib/hash-pjw.c: Likewise.
35792         * lib/hash-pjw.h: Likewise.
35793         * lib/hash-triple.c: Likewise.
35794         * lib/hash.c: Likewise.
35795         * lib/hash.h: Likewise.
35796         * lib/human.c: Likewise.
35797         * lib/human.h: Likewise.
35798         * lib/i-ring.c: Likewise.
35799         * lib/i-ring.h: Likewise.
35800         * lib/idcache.c: Likewise.
35801         * lib/imaxabs.c: Likewise.
35802         * lib/imaxdiv.c: Likewise.
35803         * lib/inet_pton.c: Likewise.
35804         * lib/inet_pton.h: Likewise.
35805         * lib/intprops.h: Likewise.
35806         * lib/inttostr.c: Likewise.
35807         * lib/inttostr.h: Likewise.
35808         * lib/inttypes.in.h: Likewise.
35809         * lib/isapipe.c: Likewise.
35810         * lib/isdir.c: Likewise.
35811         * lib/isnan.c: Likewise.
35812         * lib/isnan.h: Likewise.
35813         * lib/isnanf.c: Likewise.
35814         * lib/isnanf.h: Likewise.
35815         * lib/isnanl-nolibm.h: Likewise.
35816         * lib/isnanl.c: Likewise.
35817         * lib/isnanl.h: Likewise.
35818         * lib/javacomp.c: Likewise.
35819         * lib/javacomp.h: Likewise.
35820         * lib/javaexec.c: Likewise.
35821         * lib/javaexec.h: Likewise.
35822         * lib/javaversion.c: Likewise.
35823         * lib/javaversion.h: Likewise.
35824         * lib/javaversion.java: Likewise.
35825         * lib/lbrkprop.h: Likewise.
35826         * lib/lchmod.h: Likewise.
35827         * lib/lchown.c: Likewise.
35828         * lib/ldexpl.c: Likewise.
35829         * lib/linebreak.c: Likewise.
35830         * lib/linebreak.h: Likewise.
35831         * lib/linebuffer.c: Likewise.
35832         * lib/linebuffer.h: Likewise.
35833         * lib/locale.in.h: Likewise.
35834         * lib/logl.c: Likewise.
35835         * lib/long-options.c: Likewise.
35836         * lib/long-options.h: Likewise.
35837         * lib/lstat.c: Likewise.
35838         * lib/lstat.h: Likewise.
35839         * lib/math.in.h: Likewise.
35840         * lib/mbchar.c: Likewise.
35841         * lib/mbchar.h: Likewise.
35842         * lib/mbfile.h: Likewise.
35843         * lib/mbiter.h: Likewise.
35844         * lib/mbscasecmp.c: Likewise.
35845         * lib/mbscasestr.c: Likewise.
35846         * lib/mbschr.c: Likewise.
35847         * lib/mbscspn.c: Likewise.
35848         * lib/mbslen.c: Likewise.
35849         * lib/mbsncasecmp.c: Likewise.
35850         * lib/mbsnlen.c: Likewise.
35851         * lib/mbspbrk.c: Likewise.
35852         * lib/mbspcasecmp.c: Likewise.
35853         * lib/mbsrchr.c: Likewise.
35854         * lib/mbssep.c: Likewise.
35855         * lib/mbsspn.c: Likewise.
35856         * lib/mbsstr.c: Likewise.
35857         * lib/mbstok_r.c: Likewise.
35858         * lib/mbswidth.c: Likewise.
35859         * lib/mbswidth.h: Likewise.
35860         * lib/mbuiter.h: Likewise.
35861         * lib/memcasecmp.c: Likewise.
35862         * lib/memcasecmp.h: Likewise.
35863         * lib/memchr.c: Likewise.
35864         * lib/memcmp.c: Likewise.
35865         * lib/memcoll.c: Likewise.
35866         * lib/memcoll.h: Likewise.
35867         * lib/memcpy.c: Likewise.
35868         * lib/memrchr.c: Likewise.
35869         * lib/mkancesdirs.c: Likewise.
35870         * lib/mkdir-p.c: Likewise.
35871         * lib/mkdir-p.h: Likewise.
35872         * lib/mkdir.c: Likewise.
35873         * lib/mkdirat.c: Likewise.
35874         * lib/mkdtemp.c: Likewise.
35875         * lib/mkstemp-safer.c: Likewise.
35876         * lib/mkstemp.c: Likewise.
35877         * lib/modechange.c: Likewise.
35878         * lib/modechange.h: Likewise.
35879         * lib/mountlist.c: Likewise.
35880         * lib/mountlist.h: Likewise.
35881         * lib/mpsort.c: Likewise.
35882         * lib/nanosleep.c: Likewise.
35883         * lib/obstack.c: Likewise.
35884         * lib/obstack.h: Likewise.
35885         * lib/open-safer.c: Likewise.
35886         * lib/open.c: Likewise.
35887         * lib/openat-die.c: Likewise.
35888         * lib/openat-priv.h: Likewise.
35889         * lib/openat-proc.c: Likewise.
35890         * lib/openat.c: Likewise.
35891         * lib/openat.h: Likewise.
35892         * lib/pagealign_alloc.c: Likewise.
35893         * lib/pagealign_alloc.h: Likewise.
35894         * lib/physmem.c: Likewise.
35895         * lib/physmem.h: Likewise.
35896         * lib/pipe-safer.c: Likewise.
35897         * lib/pipe.c: Likewise.
35898         * lib/pipe.h: Likewise.
35899         * lib/posixtm.c: Likewise.
35900         * lib/posixtm.h: Likewise.
35901         * lib/posixver.c: Likewise.
35902         * lib/printf-frexp.c: Likewise.
35903         * lib/printf-frexp.h: Likewise.
35904         * lib/printf-frexpl.c: Likewise.
35905         * lib/printf-frexpl.h: Likewise.
35906         * lib/printf.c: Likewise.
35907         * lib/progname.c: Likewise.
35908         * lib/progname.h: Likewise.
35909         * lib/progreloc.c: Likewise.
35910         * lib/putenv.c: Likewise.
35911         * lib/quote.c: Likewise.
35912         * lib/quote.h: Likewise.
35913         * lib/quotearg.c: Likewise.
35914         * lib/quotearg.h: Likewise.
35915         * lib/raise.c: Likewise.
35916         * lib/readline.c: Likewise.
35917         * lib/readline.h: Likewise.
35918         * lib/readlink.c: Likewise.
35919         * lib/readtokens.c: Likewise.
35920         * lib/readtokens.h: Likewise.
35921         * lib/readtokens0.c: Likewise.
35922         * lib/readtokens0.h: Likewise.
35923         * lib/readutmp.c: Likewise.
35924         * lib/readutmp.h: Likewise.
35925         * lib/realloc.c: Likewise.
35926         * lib/relocwrapper.c: Likewise.
35927         * lib/rename-dest-slash.c: Likewise.
35928         * lib/rename.c: Likewise.
35929         * lib/rmdir.c: Likewise.
35930         * lib/rpmatch.c: Likewise.
35931         * lib/safe-read.c: Likewise.
35932         * lib/safe-read.h: Likewise.
35933         * lib/safe-write.c: Likewise.
35934         * lib/safe-write.h: Likewise.
35935         * lib/same-inode.h: Likewise.
35936         * lib/same.c: Likewise.
35937         * lib/same.h: Likewise.
35938         * lib/save-cwd.c: Likewise.
35939         * lib/save-cwd.h: Likewise.
35940         * lib/savedir.c: Likewise.
35941         * lib/savedir.h: Likewise.
35942         * lib/savewd.c: Likewise.
35943         * lib/savewd.h: Likewise.
35944         * lib/search.in.h: Likewise.
35945         * lib/setenv.c: Likewise.
35946         * lib/setenv.h: Likewise.
35947         * lib/settime.c: Likewise.
35948         * lib/sh-quote.c: Likewise.
35949         * lib/sh-quote.h: Likewise.
35950         * lib/sig2str.c: Likewise.
35951         * lib/sig2str.h: Likewise.
35952         * lib/signal.in.h: Likewise.
35953         * lib/signbitd.c: Likewise.
35954         * lib/signbitf.c: Likewise.
35955         * lib/signbitl.c: Likewise.
35956         * lib/sigprocmask.c: Likewise.
35957         * lib/sincosl.c: Likewise.
35958         * lib/sleep.c: Likewise.
35959         * lib/sprintf.c: Likewise.
35960         * lib/sqrtl.c: Likewise.
35961         * lib/stat-time.h: Likewise.
35962         * lib/stdio--.h: Likewise.
35963         * lib/stdio-safer.h: Likewise.
35964         * lib/stdlib--.h: Likewise.
35965         * lib/stdlib-safer.h: Likewise.
35966         * lib/stdlib.in.h: Likewise.
35967         * lib/stpcpy.c: Likewise.
35968         * lib/stpncpy.c: Likewise.
35969         * lib/strchrnul.c: Likewise.
35970         * lib/strcspn.c: Likewise.
35971         * lib/strerror.c: Likewise.
35972         * lib/strftime.c: Likewise.
35973         * lib/strftime.h: Likewise.
35974         * lib/striconveh.c: Likewise.
35975         * lib/striconveh.h: Likewise.
35976         * lib/striconveha.c: Likewise.
35977         * lib/striconveha.h: Likewise.
35978         * lib/stripslash.c: Likewise.
35979         * lib/strnlen1.c: Likewise.
35980         * lib/strnlen1.h: Likewise.
35981         * lib/strtod.c: Likewise.
35982         * lib/strtoimax.c: Likewise.
35983         * lib/strtok_r.c: Likewise.
35984         * lib/strtol.c: Likewise.
35985         * lib/strtoll.c: Likewise.
35986         * lib/strtoul.c: Likewise.
35987         * lib/strtoull.c: Likewise.
35988         * lib/sysexits.in.h: Likewise.
35989         * lib/tempname.c: Likewise.
35990         * lib/tempname.h: Likewise.
35991         * lib/timespec.h: Likewise.
35992         * lib/tls.c: Likewise.
35993         * lib/tls.h: Likewise.
35994         * lib/tmpdir.c: Likewise.
35995         * lib/tmpdir.h: Likewise.
35996         * lib/tmpfile-safer.c: Likewise.
35997         * lib/tmpfile.c: Likewise.
35998         * lib/trigl.c: Likewise.
35999         * lib/trigl.h: Likewise.
36000         * lib/trim.c: Likewise.
36001         * lib/trim.h: Likewise.
36002         * lib/trunc.c: Likewise.
36003         * lib/truncf.c: Likewise.
36004         * lib/truncl.c: Likewise.
36005         * lib/tsearch.c: Likewise.
36006         * lib/unicodeio.c: Likewise.
36007         * lib/unicodeio.h: Likewise.
36008         * lib/unistd--.h: Likewise.
36009         * lib/unistd-safer.h: Likewise.
36010         * lib/unistdio/ulc-fprintf.c: Likewise.
36011         * lib/unistdio/ulc-vfprintf.c: Likewise.
36012         * lib/unlinkdir.c: Likewise.
36013         * lib/unlinkdir.h: Likewise.
36014         * lib/unlocked-io.h: Likewise.
36015         * lib/unsetenv.c: Likewise.
36016         * lib/userspec.c: Likewise.
36017         * lib/utime.c: Likewise.
36018         * lib/utimecmp.c: Likewise.
36019         * lib/utimecmp.h: Likewise.
36020         * lib/utimens.c: Likewise.
36021         * lib/verify.h: Likewise.
36022         * lib/verror.c: Likewise.
36023         * lib/verror.h: Likewise.
36024         * lib/version-etc-fsf.c: Likewise.
36025         * lib/version-etc.c: Likewise.
36026         * lib/version-etc.h: Likewise.
36027         * lib/vfprintf.c: Likewise.
36028         * lib/vprintf.c: Likewise.
36029         * lib/vsprintf.c: Likewise.
36030         * lib/w32spawn.h: Likewise.
36031         * lib/wait-process.c: Likewise.
36032         * lib/wait-process.h: Likewise.
36033         * lib/wcwidth.c: Likewise.
36034         * lib/write-any-file.c: Likewise.
36035         * lib/xalloc-die.c: Likewise.
36036         * lib/xalloc.h: Likewise.
36037         * lib/xasprintf.c: Likewise.
36038         * lib/xgetcwd.c: Likewise.
36039         * lib/xgetcwd.h: Likewise.
36040         * lib/xgetdomainname.c: Likewise.
36041         * lib/xgetdomainname.h: Likewise.
36042         * lib/xgethostname.c: Likewise.
36043         * lib/xmalloc.c: Likewise.
36044         * lib/xmalloca.c: Likewise.
36045         * lib/xmalloca.h: Likewise.
36046         * lib/xmemcoll.c: Likewise.
36047         * lib/xnanosleep.c: Likewise.
36048         * lib/xreadlink.c: Likewise.
36049         * lib/xreadlink.h: Likewise.
36050         * lib/xsetenv.c: Likewise.
36051         * lib/xsetenv.h: Likewise.
36052         * lib/xstriconv.c: Likewise.
36053         * lib/xstriconv.h: Likewise.
36054         * lib/xstrndup.c: Likewise.
36055         * lib/xstrndup.h: Likewise.
36056         * lib/xstrtod.c: Likewise.
36057         * lib/xstrtod.h: Likewise.
36058         * lib/xstrtol-error.c: Likewise.
36059         * lib/xstrtol.c: Likewise.
36060         * lib/xstrtol.h: Likewise.
36061         * lib/xtime.h: Likewise.
36062         * lib/xvasprintf.c: Likewise.
36063         * lib/xvasprintf.h: Likewise.
36064         * lib/yesno.c: Likewise.
36065         * lib/yesno.h: Likewise.
36066         * posix-modules: Likewise.
36067         * tests/test-alloca-opt.c: Likewise.
36068         * tests/test-arcfour.c: Likewise.
36069         * tests/test-arctwo.c: Likewise.
36070         * tests/test-argmatch.c: Likewise.
36071         * tests/test-argp-2.sh: Likewise.
36072         * tests/test-argp.c: Likewise.
36073         * tests/test-arpa_inet.c: Likewise.
36074         * tests/test-array_list.c: Likewise.
36075         * tests/test-array_oset.c: Likewise.
36076         * tests/test-atexit.c: Likewise.
36077         * tests/test-avltree_list.c: Likewise.
36078         * tests/test-avltree_oset.c: Likewise.
36079         * tests/test-avltreehash_list.c: Likewise.
36080         * tests/test-base64.c: Likewise.
36081         * tests/test-binary-io.c: Likewise.
36082         * tests/test-byteswap.c: Likewise.
36083         * tests/test-c-ctype.c: Likewise.
36084         * tests/test-c-strcasecmp.c: Likewise.
36085         * tests/test-c-strcasestr.c: Likewise.
36086         * tests/test-c-strncasecmp.c: Likewise.
36087         * tests/test-c-strstr.c: Likewise.
36088         * tests/test-canonicalize-lgpl.c: Likewise.
36089         * tests/test-canonicalize.c: Likewise.
36090         * tests/test-carray_list.c: Likewise.
36091         * tests/test-ceilf.c: Likewise.
36092         * tests/test-ceill.c: Likewise.
36093         * tests/test-count-one-bits.c: Likewise.
36094         * tests/test-crc.c: Likewise.
36095         * tests/test-dirname.c: Likewise.
36096         * tests/test-fbufmode.c: Likewise.
36097         * tests/test-fcntl.c: Likewise.
36098         * tests/test-fflush.c: Likewise.
36099         * tests/test-floorf.c: Likewise.
36100         * tests/test-floorl.c: Likewise.
36101         * tests/test-fopen.c: Likewise.
36102         * tests/test-fprintf-posix.c: Likewise.
36103         * tests/test-fprintf-posix.h: Likewise.
36104         * tests/test-fpurge.c: Likewise.
36105         * tests/test-freadable.c: Likewise.
36106         * tests/test-freadahead.c: Likewise.
36107         * tests/test-freading.c: Likewise.
36108         * tests/test-freopen.c: Likewise.
36109         * tests/test-frexp.c: Likewise.
36110         * tests/test-frexpl.c: Likewise.
36111         * tests/test-fseek.c: Likewise.
36112         * tests/test-fseeko.c: Likewise.
36113         * tests/test-fseterr.c: Likewise.
36114         * tests/test-fstrcmp.c: Likewise.
36115         * tests/test-ftell.c: Likewise.
36116         * tests/test-ftello.c: Likewise.
36117         * tests/test-fwritable.c: Likewise.
36118         * tests/test-fwriting.c: Likewise.
36119         * tests/test-getaddrinfo.c: Likewise.
36120         * tests/test-getpass.c: Likewise.
36121         * tests/test-gettimeofday.c: Likewise.
36122         * tests/test-hmac-md5.c: Likewise.
36123         * tests/test-hmac-sha1.c: Likewise.
36124         * tests/test-iconv.c: Likewise.
36125         * tests/test-iconvme.c: Likewise.
36126         * tests/test-inttypes.c: Likewise.
36127         * tests/test-isnan.c: Likewise.
36128         * tests/test-isnanf.c: Likewise.
36129         * tests/test-isnanl-nolibm.c: Likewise.
36130         * tests/test-isnanl.c: Likewise.
36131         * tests/test-isnanl.h: Likewise.
36132         * tests/test-ldexpl.c: Likewise.
36133         * tests/test-linked_list.c: Likewise.
36134         * tests/test-linkedhash_list.c: Likewise.
36135         * tests/test-locale.c: Likewise.
36136         * tests/test-localename.c: Likewise.
36137         * tests/test-lock.c: Likewise.
36138         * tests/test-lseek.c: Likewise.
36139         * tests/test-malloca.c: Likewise.
36140         * tests/test-math.c: Likewise.
36141         * tests/test-mbscasecmp.c: Likewise.
36142         * tests/test-mbscasestr1.c: Likewise.
36143         * tests/test-mbscasestr2.c: Likewise.
36144         * tests/test-mbscasestr3.c: Likewise.
36145         * tests/test-mbscasestr4.c: Likewise.
36146         * tests/test-mbschr.c: Likewise.
36147         * tests/test-mbscspn.c: Likewise.
36148         * tests/test-mbsncasecmp.c: Likewise.
36149         * tests/test-mbspbrk.c: Likewise.
36150         * tests/test-mbspcasecmp.c: Likewise.
36151         * tests/test-mbsrchr.c: Likewise.
36152         * tests/test-mbsspn.c: Likewise.
36153         * tests/test-mbsstr1.c: Likewise.
36154         * tests/test-mbsstr2.c: Likewise.
36155         * tests/test-mbsstr3.c: Likewise.
36156         * tests/test-md5.c: Likewise.
36157         * tests/test-memmem.c: Likewise.
36158         * tests/test-netinet_in.c: Likewise.
36159         * tests/test-open.c: Likewise.
36160         * tests/test-printf-frexp.c: Likewise.
36161         * tests/test-printf-frexpl.c: Likewise.
36162         * tests/test-printf-posix.c: Likewise.
36163         * tests/test-printf-posix.h: Likewise.
36164         * tests/test-rbtree_list.c: Likewise.
36165         * tests/test-rbtree_oset.c: Likewise.
36166         * tests/test-rbtreehash_list.c: Likewise.
36167         * tests/test-read-file.c: Likewise.
36168         * tests/test-rijndael.c: Likewise.
36169         * tests/test-search.c: Likewise.
36170         * tests/test-signbit.c: Likewise.
36171         * tests/test-sleep.c: Likewise.
36172         * tests/test-snprintf-posix.c: Likewise.
36173         * tests/test-snprintf-posix.h: Likewise.
36174         * tests/test-snprintf.c: Likewise.
36175         * tests/test-sprintf-posix.c: Likewise.
36176         * tests/test-sprintf-posix.h: Likewise.
36177         * tests/test-stat-time.c: Likewise.
36178         * tests/test-stdbool.c: Likewise.
36179         * tests/test-stdint.c: Likewise.
36180         * tests/test-stdio.c: Likewise.
36181         * tests/test-stdlib.c: Likewise.
36182         * tests/test-stpncpy.c: Likewise.
36183         * tests/test-strcasestr.c: Likewise.
36184         * tests/test-striconv.c: Likewise.
36185         * tests/test-striconveh.c: Likewise.
36186         * tests/test-striconveha.c: Likewise.
36187         * tests/test-string.c: Likewise.
36188         * tests/test-sys_select.c: Likewise.
36189         * tests/test-sys_socket.c: Likewise.
36190         * tests/test-sys_stat.c: Likewise.
36191         * tests/test-sys_time.c: Likewise.
36192         * tests/test-sysexits.c: Likewise.
36193         * tests/test-time.c: Likewise.
36194         * tests/test-tls.c: Likewise.
36195         * tests/test-trunc.c: Likewise.
36196         * tests/test-truncf.c: Likewise.
36197         * tests/test-truncl.c: Likewise.
36198         * tests/test-unistd.c: Likewise.
36199         * tests/test-vasnprintf-posix.c: Likewise.
36200         * tests/test-vasnprintf-posix2.c: Likewise.
36201         * tests/test-vasnprintf.c: Likewise.
36202         * tests/test-vasprintf-posix.c: Likewise.
36203         * tests/test-vasprintf.c: Likewise.
36204         * tests/test-verify.c: Likewise.
36205         * tests/test-vfprintf-posix.c: Likewise.
36206         * tests/test-vprintf-posix.c: Likewise.
36207         * tests/test-vsnprintf-posix.c: Likewise.
36208         * tests/test-vsnprintf.c: Likewise.
36209         * tests/test-vsprintf-posix.c: Likewise.
36210         * tests/test-wchar.c: Likewise.
36211         * tests/test-wctype.c: Likewise.
36212         * tests/test-wcwidth.c: Likewise.
36213         * tests/test-xstrtol.c: Likewise.
36214         * tests/test-xvasprintf.c: Likewise.
36215         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36216         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36217         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36218         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36219         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36220         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36221         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36222         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36223         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36224         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36225         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36226         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36227         * tests/uniname/test-uninames.c: Likewise.
36228         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36229         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
36230         * tests/unistdio/test-u16-printf1.h: Likewise.
36231         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36232         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36233         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36234         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36235         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36236         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36237         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36238         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
36239         * tests/unistdio/test-u32-printf1.h: Likewise.
36240         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36241         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36242         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36243         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36244         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36245         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36246         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36247         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
36248         * tests/unistdio/test-u8-printf1.h: Likewise.
36249         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36250         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36251         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36252         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36253         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36254         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36255         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36256         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
36257         * tests/unistdio/test-ulc-printf1.h: Likewise.
36258         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36259         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36260         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36261         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36262         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36263         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36264         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36265         * tests/uniwidth/test-u16-width.c: Likewise.
36266         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36267         * tests/uniwidth/test-u32-width.c: Likewise.
36268         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36269         * tests/uniwidth/test-u8-width.c: Likewise.
36270         * tests/uniwidth/test-uc_width.c: Likewise.
36271         * config/srclist-update: Likewise.
36272         (fixlicense): Update to GPLv3+.
36273
36274         Change copyright notice from LGPLv2.1+ to LGPLv3+.
36275         * tests/test-tsearch.c: Change copyright notice.
36276
36277         Change copyright notice from LGPLv2.0+ to LGPLv3+.
36278         * lib/c-strcaseeq.h: Change copyright notice.
36279         * lib/streq.h: Likewise.
36280         * lib/uniconv.h: Likewise.
36281         * lib/uniconv/u-conv-from-enc.h: Likewise.
36282         * lib/uniconv/u-conv-to-enc.h: Likewise.
36283         * lib/uniconv/u-strconv-from-enc.h: Likewise.
36284         * lib/uniconv/u-strconv-to-enc.h: Likewise.
36285         * lib/uniconv/u16-conv-from-enc.c: Likewise.
36286         * lib/uniconv/u16-conv-to-enc.c: Likewise.
36287         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
36288         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
36289         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
36290         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
36291         * lib/uniconv/u32-conv-from-enc.c: Likewise.
36292         * lib/uniconv/u32-conv-to-enc.c: Likewise.
36293         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
36294         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
36295         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
36296         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
36297         * lib/uniconv/u8-conv-from-enc.c: Likewise.
36298         * lib/uniconv/u8-conv-to-enc.c: Likewise.
36299         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
36300         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
36301         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
36302         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
36303         * lib/uniname.h: Likewise.
36304         * lib/uniname/uniname.c: Likewise.
36305         * lib/unistdio.h: Likewise.
36306         * lib/unistdio/u-asnprintf.h: Likewise.
36307         * lib/unistdio/u-asprintf.h: Likewise.
36308         * lib/unistdio/u-printf-args.c: Likewise.
36309         * lib/unistdio/u-printf-args.h: Likewise.
36310         * lib/unistdio/u-printf-parse.h: Likewise.
36311         * lib/unistdio/u-snprintf.h: Likewise.
36312         * lib/unistdio/u-sprintf.h: Likewise.
36313         * lib/unistdio/u-vasprintf.h: Likewise.
36314         * lib/unistdio/u-vsnprintf.h: Likewise.
36315         * lib/unistdio/u-vsprintf.h: Likewise.
36316         * lib/unistdio/u16-asnprintf.c: Likewise.
36317         * lib/unistdio/u16-asprintf.c: Likewise.
36318         * lib/unistdio/u16-printf-parse.c: Likewise.
36319         * lib/unistdio/u16-snprintf.c: Likewise.
36320         * lib/unistdio/u16-sprintf.c: Likewise.
36321         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
36322         * lib/unistdio/u16-u16-asprintf.c: Likewise.
36323         * lib/unistdio/u16-u16-snprintf.c: Likewise.
36324         * lib/unistdio/u16-u16-sprintf.c: Likewise.
36325         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
36326         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
36327         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
36328         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
36329         * lib/unistdio/u16-vasnprintf.c: Likewise.
36330         * lib/unistdio/u16-vasprintf.c: Likewise.
36331         * lib/unistdio/u16-vsnprintf.c: Likewise.
36332         * lib/unistdio/u16-vsprintf.c: Likewise.
36333         * lib/unistdio/u32-asnprintf.c: Likewise.
36334         * lib/unistdio/u32-asprintf.c: Likewise.
36335         * lib/unistdio/u32-printf-parse.c: Likewise.
36336         * lib/unistdio/u32-snprintf.c: Likewise.
36337         * lib/unistdio/u32-sprintf.c: Likewise.
36338         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
36339         * lib/unistdio/u32-u32-asprintf.c: Likewise.
36340         * lib/unistdio/u32-u32-snprintf.c: Likewise.
36341         * lib/unistdio/u32-u32-sprintf.c: Likewise.
36342         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
36343         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
36344         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
36345         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
36346         * lib/unistdio/u32-vasnprintf.c: Likewise.
36347         * lib/unistdio/u32-vasprintf.c: Likewise.
36348         * lib/unistdio/u32-vsnprintf.c: Likewise.
36349         * lib/unistdio/u32-vsprintf.c: Likewise.
36350         * lib/unistdio/u8-asnprintf.c: Likewise.
36351         * lib/unistdio/u8-asprintf.c: Likewise.
36352         * lib/unistdio/u8-printf-parse.c: Likewise.
36353         * lib/unistdio/u8-snprintf.c: Likewise.
36354         * lib/unistdio/u8-sprintf.c: Likewise.
36355         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
36356         * lib/unistdio/u8-u8-asprintf.c: Likewise.
36357         * lib/unistdio/u8-u8-snprintf.c: Likewise.
36358         * lib/unistdio/u8-u8-sprintf.c: Likewise.
36359         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
36360         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
36361         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
36362         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
36363         * lib/unistdio/u8-vasnprintf.c: Likewise.
36364         * lib/unistdio/u8-vasprintf.c: Likewise.
36365         * lib/unistdio/u8-vsnprintf.c: Likewise.
36366         * lib/unistdio/u8-vsprintf.c: Likewise.
36367         * lib/unistdio/ulc-asnprintf.c: Likewise.
36368         * lib/unistdio/ulc-asprintf.c: Likewise.
36369         * lib/unistdio/ulc-printf-parse.c: Likewise.
36370         * lib/unistdio/ulc-snprintf.c: Likewise.
36371         * lib/unistdio/ulc-sprintf.c: Likewise.
36372         * lib/unistdio/ulc-vasnprintf.c: Likewise.
36373         * lib/unistdio/ulc-vasprintf.c: Likewise.
36374         * lib/unistdio/ulc-vsnprintf.c: Likewise.
36375         * lib/unistdio/ulc-vsprintf.c: Likewise.
36376         * lib/unistr.h: Likewise.
36377         * lib/unistr/u-cpy-alloc.h: Likewise.
36378         * lib/unistr/u-cpy.h: Likewise.
36379         * lib/unistr/u-endswith.h: Likewise.
36380         * lib/unistr/u-move.h: Likewise.
36381         * lib/unistr/u-set.h: Likewise.
36382         * lib/unistr/u-startswith.h: Likewise.
36383         * lib/unistr/u-stpcpy.h: Likewise.
36384         * lib/unistr/u-stpncpy.h: Likewise.
36385         * lib/unistr/u-strcat.h: Likewise.
36386         * lib/unistr/u-strcpy.h: Likewise.
36387         * lib/unistr/u-strcspn.h: Likewise.
36388         * lib/unistr/u-strdup.h: Likewise.
36389         * lib/unistr/u-strlen.h: Likewise.
36390         * lib/unistr/u-strncat.h: Likewise.
36391         * lib/unistr/u-strncpy.h: Likewise.
36392         * lib/unistr/u-strnlen.h: Likewise.
36393         * lib/unistr/u-strpbrk.h: Likewise.
36394         * lib/unistr/u-strspn.h: Likewise.
36395         * lib/unistr/u-strstr.h: Likewise.
36396         * lib/unistr/u-strtok.h: Likewise.
36397         * lib/unistr/u16-check.c: Likewise.
36398         * lib/unistr/u16-chr.c: Likewise.
36399         * lib/unistr/u16-cmp.c: Likewise.
36400         * lib/unistr/u16-cpy-alloc.c: Likewise.
36401         * lib/unistr/u16-cpy.c: Likewise.
36402         * lib/unistr/u16-endswith.c: Likewise.
36403         * lib/unistr/u16-mblen.c: Likewise.
36404         * lib/unistr/u16-mbsnlen.c: Likewise.
36405         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36406         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36407         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36408         * lib/unistr/u16-mbtouc.c: Likewise.
36409         * lib/unistr/u16-mbtoucr.c: Likewise.
36410         * lib/unistr/u16-move.c: Likewise.
36411         * lib/unistr/u16-next.c: Likewise.
36412         * lib/unistr/u16-prev.c: Likewise.
36413         * lib/unistr/u16-set.c: Likewise.
36414         * lib/unistr/u16-startswith.c: Likewise.
36415         * lib/unistr/u16-stpcpy.c: Likewise.
36416         * lib/unistr/u16-stpncpy.c: Likewise.
36417         * lib/unistr/u16-strcat.c: Likewise.
36418         * lib/unistr/u16-strchr.c: Likewise.
36419         * lib/unistr/u16-strcmp.c: Likewise.
36420         * lib/unistr/u16-strcpy.c: Likewise.
36421         * lib/unistr/u16-strcspn.c: Likewise.
36422         * lib/unistr/u16-strdup.c: Likewise.
36423         * lib/unistr/u16-strlen.c: Likewise.
36424         * lib/unistr/u16-strmblen.c: Likewise.
36425         * lib/unistr/u16-strmbtouc.c: Likewise.
36426         * lib/unistr/u16-strncat.c: Likewise.
36427         * lib/unistr/u16-strncmp.c: Likewise.
36428         * lib/unistr/u16-strncpy.c: Likewise.
36429         * lib/unistr/u16-strnlen.c: Likewise.
36430         * lib/unistr/u16-strpbrk.c: Likewise.
36431         * lib/unistr/u16-strrchr.c: Likewise.
36432         * lib/unistr/u16-strspn.c: Likewise.
36433         * lib/unistr/u16-strstr.c: Likewise.
36434         * lib/unistr/u16-strtok.c: Likewise.
36435         * lib/unistr/u16-to-u32.c: Likewise.
36436         * lib/unistr/u16-to-u8.c: Likewise.
36437         * lib/unistr/u16-uctomb-aux.c: Likewise.
36438         * lib/unistr/u16-uctomb.c: Likewise.
36439         * lib/unistr/u32-check.c: Likewise.
36440         * lib/unistr/u32-chr.c: Likewise.
36441         * lib/unistr/u32-cmp.c: Likewise.
36442         * lib/unistr/u32-cpy-alloc.c: Likewise.
36443         * lib/unistr/u32-cpy.c: Likewise.
36444         * lib/unistr/u32-endswith.c: Likewise.
36445         * lib/unistr/u32-mblen.c: Likewise.
36446         * lib/unistr/u32-mbsnlen.c: Likewise.
36447         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36448         * lib/unistr/u32-mbtouc.c: Likewise.
36449         * lib/unistr/u32-mbtoucr.c: Likewise.
36450         * lib/unistr/u32-move.c: Likewise.
36451         * lib/unistr/u32-next.c: Likewise.
36452         * lib/unistr/u32-prev.c: Likewise.
36453         * lib/unistr/u32-set.c: Likewise.
36454         * lib/unistr/u32-startswith.c: Likewise.
36455         * lib/unistr/u32-stpcpy.c: Likewise.
36456         * lib/unistr/u32-stpncpy.c: Likewise.
36457         * lib/unistr/u32-strcat.c: Likewise.
36458         * lib/unistr/u32-strchr.c: Likewise.
36459         * lib/unistr/u32-strcmp.c: Likewise.
36460         * lib/unistr/u32-strcpy.c: Likewise.
36461         * lib/unistr/u32-strcspn.c: Likewise.
36462         * lib/unistr/u32-strdup.c: Likewise.
36463         * lib/unistr/u32-strlen.c: Likewise.
36464         * lib/unistr/u32-strmblen.c: Likewise.
36465         * lib/unistr/u32-strmbtouc.c: Likewise.
36466         * lib/unistr/u32-strncat.c: Likewise.
36467         * lib/unistr/u32-strncmp.c: Likewise.
36468         * lib/unistr/u32-strncpy.c: Likewise.
36469         * lib/unistr/u32-strnlen.c: Likewise.
36470         * lib/unistr/u32-strpbrk.c: Likewise.
36471         * lib/unistr/u32-strrchr.c: Likewise.
36472         * lib/unistr/u32-strspn.c: Likewise.
36473         * lib/unistr/u32-strstr.c: Likewise.
36474         * lib/unistr/u32-strtok.c: Likewise.
36475         * lib/unistr/u32-to-u16.c: Likewise.
36476         * lib/unistr/u32-to-u8.c: Likewise.
36477         * lib/unistr/u32-uctomb.c: Likewise.
36478         * lib/unistr/u8-check.c: Likewise.
36479         * lib/unistr/u8-chr.c: Likewise.
36480         * lib/unistr/u8-cmp.c: Likewise.
36481         * lib/unistr/u8-cpy-alloc.c: Likewise.
36482         * lib/unistr/u8-cpy.c: Likewise.
36483         * lib/unistr/u8-endswith.c: Likewise.
36484         * lib/unistr/u8-mblen.c: Likewise.
36485         * lib/unistr/u8-mbsnlen.c: Likewise.
36486         * lib/unistr/u8-mbtouc-aux.c: Likewise.
36487         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36488         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36489         * lib/unistr/u8-mbtouc.c: Likewise.
36490         * lib/unistr/u8-mbtoucr.c: Likewise.
36491         * lib/unistr/u8-move.c: Likewise.
36492         * lib/unistr/u8-next.c: Likewise.
36493         * lib/unistr/u8-prev.c: Likewise.
36494         * lib/unistr/u8-set.c: Likewise.
36495         * lib/unistr/u8-startswith.c: Likewise.
36496         * lib/unistr/u8-stpcpy.c: Likewise.
36497         * lib/unistr/u8-stpncpy.c: Likewise.
36498         * lib/unistr/u8-strcat.c: Likewise.
36499         * lib/unistr/u8-strchr.c: Likewise.
36500         * lib/unistr/u8-strcmp.c: Likewise.
36501         * lib/unistr/u8-strcpy.c: Likewise.
36502         * lib/unistr/u8-strcspn.c: Likewise.
36503         * lib/unistr/u8-strdup.c: Likewise.
36504         * lib/unistr/u8-strlen.c: Likewise.
36505         * lib/unistr/u8-strmblen.c: Likewise.
36506         * lib/unistr/u8-strmbtouc.c: Likewise.
36507         * lib/unistr/u8-strncat.c: Likewise.
36508         * lib/unistr/u8-strncmp.c: Likewise.
36509         * lib/unistr/u8-strncpy.c: Likewise.
36510         * lib/unistr/u8-strnlen.c: Likewise.
36511         * lib/unistr/u8-strpbrk.c: Likewise.
36512         * lib/unistr/u8-strrchr.c: Likewise.
36513         * lib/unistr/u8-strspn.c: Likewise.
36514         * lib/unistr/u8-strstr.c: Likewise.
36515         * lib/unistr/u8-strtok.c: Likewise.
36516         * lib/unistr/u8-to-u16.c: Likewise.
36517         * lib/unistr/u8-to-u32.c: Likewise.
36518         * lib/unistr/u8-uctomb-aux.c: Likewise.
36519         * lib/unistr/u8-uctomb.c: Likewise.
36520         * lib/unitypes.h: Likewise.
36521         * lib/uniwidth.h: Likewise.
36522         * lib/uniwidth/cjk.h: Likewise.
36523         * lib/uniwidth/u16-strwidth.c: Likewise.
36524         * lib/uniwidth/u16-width.c: Likewise.
36525         * lib/uniwidth/u32-strwidth.c: Likewise.
36526         * lib/uniwidth/u32-width.c: Likewise.
36527         * lib/uniwidth/u8-strwidth.c: Likewise.
36528         * lib/uniwidth/u8-width.c: Likewise.
36529         * lib/uniwidth/width.c: Likewise.
36530
36531 2007-10-07  Bruno Haible  <bruno@clisp.org>
36532
36533         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
36534         The file is still under LGPL (see modules/inttypes).
36535
36536 2007-10-06  Bruno Haible  <bruno@clisp.org>
36537
36538         * modules/trunc (Dependencies): Add 'extensions'.
36539         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
36540         Reported by Ben Pfaff <blp@gnu.org>.
36541
36542 2007-10-06  Bruno Haible  <bruno@clisp.org>
36543
36544         * modules/freopen-tests: New file.
36545         * tests/test-freopen.c: New file.
36546
36547         * modules/fopen-tests: New file.
36548         * tests/test-fopen.c: New file.
36549
36550         * modules/fopen: New file.
36551         * lib/fopen.c: New file.
36552         * m4/fopen.m4: New file.
36553         * modules/freopen: New file.
36554         * lib/freopen.c: New file.
36555         * m4/freopen.m4: New file.
36556         * lib/stdio.in.h (fopen, freopen): New declarations.
36557         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
36558         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36559         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
36560         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36561         * doc/functions/fopen.texi: Mention the 'fopen' module.
36562         * doc/functions/freopen.texi: Mention the 'freopen' module.
36563
36564 2007-10-06  Bruno Haible  <bruno@clisp.org>
36565
36566         * modules/open-tests: New file.
36567         * tests/test-open.c: New file.
36568
36569         * modules/open: New file.
36570         * lib/open.c: New file.
36571         * m4/open.m4: New file.
36572         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
36573         lib/open.c does.
36574         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
36575         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
36576         macros.
36577         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
36578         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
36579         REPLACE_OPEN.
36580         * doc/functions/open.texi: Mention the 'open' module.
36581
36582 2007-10-04  Bruno Haible  <bruno@clisp.org>
36583
36584         * modules/ceill-tests: New file.
36585         * tests/test-ceill.c: New file.
36586
36587         * modules/ceill: New file.
36588         * lib/ceill.c: Replace entire file.
36589         * m4/ceill.m4: New file.
36590         * lib/math.in.h (ceill): Replace declaration.
36591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36592         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36593         * doc/functions/ceill.texi: Mention the 'ceill' module.
36594         * modules/mathl (Files): Remove lib/ceill.c.
36595         (Depends-on): Add ceill.
36596
36597 2007-10-04  Bruno Haible  <bruno@clisp.org>
36598
36599         * modules/ceilf-tests: New file.
36600         * tests/test-ceilf.c: New file.
36601
36602         * modules/ceilf: New file.
36603         * lib/ceil.c: New file.
36604         * lib/ceilf.c: New file.
36605         * m4/ceilf.m4: New file.
36606         * lib/math.in.h (ceilf): New declaration.
36607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36608         HAVE_DECL_CEILF.
36609         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36610         HAVE_DECL_CEILF.
36611         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36612
36613 2007-10-04  Bruno Haible  <bruno@clisp.org>
36614
36615         * modules/floorl-tests: New file.
36616         * tests/test-floorl.c: New file.
36617
36618         * modules/floorl: New file.
36619         * lib/floorl.c: Replace entire file.
36620         * m4/floorl.m4: New file.
36621         * lib/math.in.h (floorl): Replace declaration.
36622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36623         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36624         * doc/functions/floorl.texi: Mention the 'floorl' module.
36625         * modules/mathl (Files): Remove lib/floorl.c.
36626         (Depends-on): Add floorl.
36627
36628 2007-10-04  Bruno Haible  <bruno@clisp.org>
36629
36630         * modules/floorf-tests: New file.
36631         * tests/test-floorf.c: New file.
36632
36633         * modules/floorf: New file.
36634         * lib/floor.c: New file.
36635         * lib/floorf.c: New file.
36636         * m4/floorf.m4: New file.
36637         * lib/math.in.h (floorf): New declaration.
36638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36639         HAVE_DECL_FLOORF.
36640         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36641         HAVE_DECL_FLOORF.
36642         * doc/functions/floorf.texi: Mention the 'floorf' module.
36643
36644 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36645             Bruno Haible  <bruno@clisp.org>
36646
36647         Advertise for the Git server instead of the CVS server.
36648         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36649         repository instead of the CVS one.
36650         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36651         about all VCS systems generically.
36652         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36653
36654 2007-10-04  Bruno Haible  <bruno@clisp.org>
36655
36656         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36657         means.
36658         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36659
36660 2007-10-04  Bruno Haible  <bruno@clisp.org>
36661
36662         * modules/truncl-tests: New file.
36663         * tests/test-truncl.c: New file.
36664
36665         * modules/truncl: New file.
36666         * lib/truncl.c: New file.
36667         * m4/truncl.m4: New file.
36668         * lib/math.in.h (truncl): New declaration.
36669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36670         HAVE_DECL_TRUNCL.
36671         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36672         HAVE_DECL_TRUNCL.
36673         * doc/functions/truncl.texi: Mention the 'truncl' module.
36674
36675 2007-10-04  Bruno Haible  <bruno@clisp.org>
36676
36677         * modules/truncf-tests: New file.
36678         * tests/test-truncf.c: New file.
36679
36680         * modules/truncf: New file.
36681         * lib/trunc.c: Make paramerizable through USE_* macros.
36682         * lib/truncf.c: New file.
36683         * m4/truncf.m4: New file.
36684         * lib/math.in.h (truncf): New declaration.
36685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36686         HAVE_DECL_TRUNCF.
36687         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36688         HAVE_DECL_TRUNCF.
36689         * doc/functions/truncf.texi: Mention the 'truncf' module.
36690
36691 2007-10-03  Bruno Haible  <bruno@clisp.org>
36692
36693         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36694         augmentation also for tests modules.
36695         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36696         * modules/atexit-tests (Makefile.am): Likewise.
36697         * modules/binary-io-tests (Makefile.am): Likewise.
36698         * modules/c-strcase-tests (Makefile.am): Likewise.
36699         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36700         * modules/canonicalize-tests (Makefile.am): Likewise.
36701         * modules/closein-tests (Makefile.am): Likewise.
36702         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36703         * modules/freadahead-tests (Makefile.am): Likewise.
36704         * modules/fseek-tests (Makefile.am): Likewise.
36705         * modules/fseeko-tests (Makefile.am): Likewise.
36706         * modules/ftell-tests (Makefile.am): Likewise.
36707         * modules/ftello-tests (Makefile.am): Likewise.
36708         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36709         * modules/isnanl-tests (Makefile.am): Likewise.
36710         * modules/lseek-tests (Makefile.am): Likewise.
36711         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36712         * modules/mbscasestr-tests (Makefile.am): Likewise.
36713         * modules/mbschr-tests (Makefile.am): Likewise.
36714         * modules/mbscspn-tests (Makefile.am): Likewise.
36715         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36716         * modules/mbspbrk-tests (Makefile.am): Likewise.
36717         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36718         * modules/mbsrchr-tests (Makefile.am): Likewise.
36719         * modules/mbsspn-tests (Makefile.am): Likewise.
36720         * modules/mbsstr-tests (Makefile.am): Likewise.
36721         * modules/printf-posix-tests (Makefile.am): Likewise.
36722         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36723         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36724         * modules/tsearch-tests (Makefile.am): Likewise.
36725         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36726         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36727         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36728         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36729         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36730         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36731         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36732         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36733         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36734         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36735         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36736         * modules/xstrtol-tests (Makefile.am): Likewise.
36737         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36738         * modules/yesno-tests (Makefile.am): Likewise.
36739
36740 2007-10-03  Bruno Haible  <bruno@clisp.org>
36741
36742         * modules/trunc-tests: New file.
36743         * tests/test-trunc.c: New file.
36744
36745         * modules/trunc: New file.
36746         * lib/trunc.c: New file.
36747         * m4/trunc.m4: New file.
36748         * lib/math.in.h (trunc): New declaration.
36749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36750         HAVE_DECL_TRUNC.
36751         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36752         HAVE_DECL_TRUNC.
36753         * doc/functions/trunc.texi: Mention the 'trunc' module.
36754
36755 2007-10-03  Bruno Haible  <bruno@clisp.org>
36756
36757         * tests/test-fpending.c: New file, mostly copied
36758         from coreutils/lib/t-fpending.c.
36759         * modules/fpending-tests: New file.
36760
36761 2007-10-03  Bruno Haible  <bruno@clisp.org>
36762
36763         Port the stdio extensions to QNX (untested).
36764         * lib/fseterr.c (fseterr): Add support for QNX.
36765         * lib/fbufmode.c (fbufmode): Likewise.
36766         * lib/freadable.c (freadable): Likewise.
36767         * lib/fwritable.c (fwritable): Likewise.
36768         * lib/freading.c (freading): Likewise.
36769         * lib/fwriting.c (fwriting): Likewise.
36770         * lib/freadahead.c (freadahed): Likewise.
36771         * lib/fpurge.c (fpurge): Likewise.
36772         * lib/fseeko.c (rpl_fseeko): Likewise.
36773
36774 2007-10-03  Bruno Haible  <bruno@clisp.org>
36775             Jim Meyering  <jim@meyering.net>
36776             Eric Blake  <ebb9@byu.net>
36777
36778         * doc/relocatable.texi: Use @command instead of @program.
36779
36780 2007-10-02  Jim Meyering  <jim@meyering.net>
36781
36782         Perform one more "_.h" -> ".in.h" substitution.
36783         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36784         instead of unistd_.h here, too.
36785
36786 2007-10-01  Bruno Haible  <bruno@clisp.org>
36787
36788         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36789         Needed for the alloca-opt module.
36790
36791 2007-09-30  Bruno Haible  <bruno@clisp.org>
36792
36793         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36794         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36795         alloca_.h.
36796         * lib/argz.in.h: Renamed from lib/argz_.h.
36797         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36798         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36799         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36800         byteswap_.h.
36801         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36802         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36803         dirent_.h.
36804         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36805         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36806         fcntl_.h.
36807         * lib/float.in.h: Renamed from lib/float_.h.
36808         * modules/float (Files, Makefile.am): Use float.in.h instead of
36809         float_.h.
36810         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36811         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36812         fnmatch_.h.
36813         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36814         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36815         getopt_.h.
36816         * lib/glob.in.h: Renamed from lib/glob_.h.
36817         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36818         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36819         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36820         iconv_.h.
36821         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36822         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36823         inttypes_.h.
36824         * lib/locale.in.h: Renamed from lib/locale_.h.
36825         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36826         locale_.h.
36827         * lib/math.in.h: Renamed from lib/math_.h.
36828         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36829         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36830         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36831         of netinet_in_.h. Add dependency.
36832         * lib/poll.in.h: Renamed from lib/poll_.h.
36833         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
36834         * lib/search.in.h: Renamed from lib/search_.h.
36835         * modules/search (Files, Makefile.am): Use search.in.h instead of
36836         search_.h.
36837         * lib/signal.in.h: Renamed from lib/signal_.h.
36838         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
36839         _signal.h.
36840         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
36841         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
36842         stdbool_.h.
36843         * lib/stdint.in.h: Renamed from lib/stdint_.h.
36844         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
36845         stdint_.h.
36846         * lib/stdio.in.h: Renamed from lib/stdio_.h.
36847         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
36848         stdio_.h.
36849         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
36850         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
36851         stdlib_.h.
36852         * lib/string.in.h: Renamed from lib/string_.h.
36853         * modules/string (Files, Makefile.am): Use string.in.h instead of
36854         string_.h.
36855         * doc/gnulib-tool.texi (Initial import): Update.
36856         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
36857         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
36858         of sys_select_.h. Add dependency.
36859         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
36860         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
36861         of sys_socket_.h.
36862         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
36863         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
36864         sys_stat_.h.
36865         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
36866         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
36867         sys_time_.h.
36868         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
36869         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
36870         sysexits_.h.
36871         * lib/time.in.h: Renamed from lib/time_.h.
36872         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
36873         * lib/unistd.in.h: Renamed from lib/unistd_.h.
36874         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
36875         unistd_.h.
36876         * lib/wchar.in.h: Renamed from lib/wchar_.h.
36877         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
36878         wchar_.h.
36879         * lib/wctype.in.h: Renamed from lib/wctype_.h.
36880         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
36881         wctype_.h.
36882         * build-aux/bootstrap (slurp): Update.
36883         * lib/.cppi-disable: Update.
36884
36885 2007-09-30  Bruno Haible  <bruno@clisp.org>
36886
36887         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
36888         Needed on BeOS.
36889
36890 2007-09-30  Bruno Haible  <bruno@clisp.org>
36891
36892         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
36893
36894 2007-09-29  Bruno Haible  <bruno@clisp.org>
36895
36896         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
36897
36898 2007-09-29  Bruno Haible  <bruno@clisp.org>
36899
36900         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
36901         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
36902         * build-aux/install-reloc: Compile also areadlink.c.
36903         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
36904
36905 2007-09-29  Bruno Haible  <bruno@clisp.org>
36906
36907         * gnulib-tool (func_emit_initmacro_done): Indentation.
36908
36909 2007-09-29  Bruno Haible  <bruno@clisp.org>
36910
36911         * README: Add CVS checkout update instructions.
36912         Info from Bob Proulx <bob@proulx.com>.
36913
36914 2007-09-28  Eric Blake  <ebb9@byu.net>
36915
36916         Provide move-if-change.
36917         * build-aux/move-if-change: New file, based on best practice
36918         rather than any canonical upstream location.
36919
36920 2007-09-28  Jim Meyering  <jim@meyering.net>
36921
36922         Fix canonicalize loop-detection corner case.
36923         Do not attempt to stat the symlink values stored via seen_triple.
36924         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
36925         on linux-2.6.18, (but not 2.6.22).
36926         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
36927         triple_compare.  The former compares dev,ino,filename, while the latter
36928         would actually stat dirname(filename) when dev and ino were equal.
36929         * lib/hash-triple.c: Install <string.h>.
36930         (STREQ): Define.
36931         (triple_compare_ino_str): New function.
36932         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
36933
36934 2007-09-28  Eric Blake  <ebb9@byu.net>
36935
36936         Enforce that AC_REPLACE_FUNCS files exist.
36937         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
36938         override check for typos.
36939
36940         Fix test-closein on Solaris 10.
36941         * tests/test-closein.c (main): Don't assume stdin can be inherited
36942         closed on all systems.
36943         * tests/test-closein.sh: Likewise.
36944         Reported by Piotr Tarnowski.
36945
36946 2007-09-28  Jim Meyering  <jim@meyering.net>
36947
36948         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
36949
36950 2007-09-27  Jim Meyering  <jim@meyering.net>
36951
36952         canonicalize: Avoid a false-positive cycle failure.
36953         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
36954         Sort.  Remove cycle-check.
36955         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
36956         not cycle-check.h.
36957         (seen_triple): New function.
36958         (canonicalize_filename_mode): Use it instead of cycle-check.
36959         * tests/test-canonicalize.c: Add a test for this bug.
36960         * tests/test-canonicalize.sh: Set up and run the test.
36961
36962         New module, file-set, from coreutils.
36963         * modules/file-set: Define it.
36964         * lib/file-set.c, lib/file-set.h: Implement.
36965
36966         New module, hash-triple, from coreutils.
36967         * modules/hash-triple: Define it.
36968         * lib/hash-triple.c, lib/hash-triple.h: Implement.
36969
36970 2007-09-25  Eric Blake  <ebb9@byu.net>
36971
36972         Fix strerror on Interix.
36973         * lib/string_.h (strerror): Declare replacement.
36974         * doc/functions/strerror.texi (strerror): Document the Interix
36975         shortcoming.
36976         * modules/string (Makefile.am): Support new hooks.
36977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
36978         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
36979         gl_FUNC_STRERROR_SEPARATE.
36980         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
36981         * lib/strerror.c (rpl_strerror): Provide replacement.
36982         * modules/strerror (Depends-on): Add string.
36983         (configure.ac): Detect use of module.
36984         * tests/test-strerror.c: New file.
36985         * modules/strerror-tests: New test module.
36986         * modules/argp (Depends-on): Add strerror.
36987         * modules/error (Depends-on): Likewise.
36988         Reported by Martin Koeppe.
36989
36990 2007-09-24  Bruno Haible  <bruno@clisp.org>
36991
36992         * README: Update git instructions.
36993
36994 2007-09-24  Eric Blake  <ebb9@byu.net>
36995
36996         Revert fpending breakage from 2007-09-08.
36997         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
36998         __fpending.c.
36999
37000 2007-09-24  Jim Meyering  <jim@meyering.net>
37001
37002         filenamecat.c: Add a test.
37003         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
37004         showing how the function works when DIR is the empty string.
37005
37006 2007-09-21  Simon Josefsson  <simon@josefsson.org>
37007
37008         * tests/test-canonicalize.sh: Turn on executable bit.
37009
37010 2007-09-19  Eric Blake  <ebb9@byu.net>
37011
37012         * README: Update CVS instructions.
37013
37014 2007-09-18  Bruno Haible  <bruno@clisp.org>
37015
37016         * modules/areadlink: New file.
37017         * lib/areadlink.h (areadlink): New declaration.
37018         * lib/areadlink.c: New file, based on lib/xreadlink.c.
37019
37020 2007-09-17  Jim Meyering  <jim@meyering.net>
37021
37022         * lib/savewd.c (ESTALE) [!defined]: Define.
37023         Reported to be required on Interix by Martin Koeppe.
37024
37025 2007-09-17  Bruno Haible  <bruno@clisp.org>
37026
37027         * gnulib-tool (func_version): Use $version.
37028
37029 2007-09-16  Bruno Haible  <bruno@clisp.org>
37030
37031         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
37032         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
37033         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
37034         Reported by Greg Schafer <gschafer@zip.com.au>.
37035
37036 2007-09-15  Bruno Haible  <bruno@clisp.org>
37037
37038         * gnulib-tool (sed): Try a little harder to make bash understand the
37039         alias.
37040         Reported by Bruce Korb <bruce.korb@gmail.com>.
37041
37042 2007-09-13  Eric Blake  <ebb9@byu.net>
37043
37044         * ChangeLog: Remove conflict markers.
37045
37046 2007-09-13  Simon Josefsson  <simon@josefsson.org>
37047
37048         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
37049         Reported by Bruno Haible <bruno@clisp.org>.
37050
37051 2007-09-12  Bruno Haible  <bruno@clisp.org>
37052
37053         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
37054         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
37055         is not defined.
37056
37057 2007-09-12  Eric Blake  <ebb9@byu.net>
37058
37059         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
37060         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
37061         Autoconf definition.
37062         * modules/euidaccess (Depends-on): Add extensions, for
37063         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
37064         * modules/fnmatch (Depends-on): Likewise.
37065         * modules/getaddrinfo (Depends-on): Likewise.
37066         * modules/getdelim (Depends-on): Likewise.
37067         * modules/getline (Depends-on): Likewise.
37068         * modules/getsubopt (Depends-on): Likewise.
37069         * modules/gettext (Depends-on): Likewise.
37070         * modules/group-member (Depends-on): Likewise.
37071         * modules/mbchar (Depends-on): Likewise.
37072         * modules/memmem (Depends-on): Likewise.
37073         * modules/mempcpy (Depends-on): Likewise.
37074         * modules/memrchr (Depends-on): Likewise.
37075         * modules/pagealign_alloc (Depends-on): Likewise.
37076         * modules/readutmp (Depends-on): Likewise.
37077         * modules/stpcpy (Depends-on): Likewise.
37078         * modules/stpncpy (Depends-on): Likewise.
37079         * modules/strchrnul (Depends-on): Likewise.
37080         * modules/strndup (Depends-on): Likewise.
37081         * modules/strsep (Depends-on): Likewise.
37082         * modules/strverscmp (Depends-on): Likewise.
37083         * modules/vasprintf (Depends-on): Likewise.
37084         * modules/wcwidth (Depends-on): Likewise.
37085         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
37086         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
37087         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
37088         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
37089         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37090         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37091         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
37092         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37093         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
37094         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37095         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37096         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37097         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37098         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37099         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
37100         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37101         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37102         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37103         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37104         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37105         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37106         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37107         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37108         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
37109         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
37110         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37111         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
37112         so that lock.m4 can be used in gettext without extensions module.
37113
37114 2007-09-11  Bruno Haible  <bruno@clisp.org>
37115
37116         * m4/isc-posix.m4: Remove file.
37117         Suggested by Eric Blake.
37118
37119 2007-09-11  Eric Blake  <ebb9@byu.net>
37120
37121         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
37122
37123 2007-09-10  Bruno Haible  <bruno@clisp.org>
37124
37125         * posix-modules: Fix typo in error message.
37126         Reported by Matt <mkraai@beckman.com>.
37127
37128 2007-09-09  Bruno Haible  <bruno@clisp.org>
37129
37130         * doc/functions/getdelim.texi: Update list of platforms lacking the
37131         function.
37132         * doc/functions/getline.texi: Likewise.
37133
37134 2007-09-09  Jim Meyering  <jim@meyering.net>
37135
37136         * lib/hash.c (hash_initialize): Detect calloc failure.
37137         Reported by Bruno Haible.
37138
37139 2007-09-09  Bruno Haible  <bruno@clisp.org>
37140
37141         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
37142         malloc or realloc fails.
37143
37144 2007-09-09  Bruno Haible  <bruno@clisp.org>
37145
37146         * modules/getcwd (Depends-on): Add malloc-posix.
37147         * modules/glob (Depends-on): Likewise.
37148         * modules/putenv (Depends-on): Likewise.
37149         * modules/strdup (Depends-on): Likewise.
37150         * modules/getdelim (Depends-on): Add realloc-posix.
37151         * modules/read-file (Depends-on): Likewise.
37152
37153 2007-09-09  Bruno Haible  <bruno@clisp.org>
37154
37155         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
37156         (gl_FUNC_MALLOC_POSIX): Require it.
37157         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
37158         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
37159         * modules/realloc (Files): Add m4/malloc.m4.
37160         * modules/calloc (Files): Likewise.
37161
37162 2007-09-09  Bruno Haible  <bruno@clisp.org>
37163
37164         * modules/malloc-posix: New file.
37165         * modules/malloc (Depends-on): Add malloc-posix.
37166         * lib/malloc.c: Include errno.h.
37167         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
37168         and a POSIX-compatible malloc into a single function. Set ENOMEM
37169         when returning NULL.
37170         * m4/malloc.m4: New file.
37171         * doc/functions/malloc.texi: Mention the malloc-posix module.
37172         * lib/stdlib_.h (malloc): New declaration.
37173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37174         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
37175         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
37176         and HAVE_MALLOC_POSIX.
37177
37178 2007-09-09  Bruno Haible  <bruno@clisp.org>
37179
37180         * modules/realloc-posix: New file.
37181         * modules/realloc (Depends-on): Add realloc-posix.
37182         * lib/realloc.c: Include errno.h.
37183         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
37184         and a POSIX-compatible realloc into a single function. Set ENOMEM
37185         when returning NULL.
37186         * m4/realloc.m4: New file.
37187         * doc/functions/realloc.texi: Mention the realloc-posix module.
37188         * lib/stdlib_.h (realloc): New declaration.
37189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37190         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
37191         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
37192         and HAVE_REALLOC_POSIX.
37193
37194 2007-09-09  Bruno Haible  <bruno@clisp.org>
37195
37196         * modules/calloc-posix: New file.
37197         * modules/calloc (Depends-on): Add calloc-posix.
37198         * lib/calloc.c: Include errno.h.
37199         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
37200         and a POSIX-compatible calloc into a single function. Set ENOMEM
37201         when returning NULL.
37202         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
37203         * doc/functions/calloc.texi: Mention the calloc-posix module.
37204         * lib/stdlib_.h (calloc): New declaration.
37205         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37206         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
37207         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
37208         and HAVE_CALLOC_POSIX.
37209
37210 2007-09-09  Bruno Haible  <bruno@clisp.org>
37211
37212         Allow for modules to show an arbitrary notice.
37213         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
37214         * gnulib-tool: New option --extract-notice.
37215         (func_usage): Document it.
37216         (sed_extract_prog): Update.
37217         (func_get_notice): New function.
37218         (func_modules_notice): New function.
37219         (func_import, func_create_testdir): Invoke it.
37220         Suggested by Jim Meyering.
37221
37222 2007-09-09  Bruno Haible  <bruno@clisp.org>
37223
37224         * gnulib-tool: New options --verbose, --quiet.
37225         (func_usage): Document them.
37226         (verbose): New variable.
37227         (func_execute_command): New function.
37228         (func_import): Don't show the module list and the file list if
37229         $verbose < 0.
37230         (func_create_testdir): Likewise. Use func_execute_command.
37231         (func_create_megatestdir): Use func_execute_command.
37232
37233 2007-09-08  Bruno Haible  <bruno@clisp.org>
37234
37235         * gnulib-tool (func_import): Prefer rsync over wget when available,
37236         for fetching the PO files.
37237
37238 2007-09-08  Bruno Haible  <bruno@clisp.org>
37239
37240         * posix-modules: New file. Portions copied from gnulib-tool.
37241         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
37242
37243 2007-09-08  Jim Meyering  <jim@meyering.net>
37244
37245         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
37246         * lib/fpending.h: Rename from __fpending.h.
37247         * lib/fpending.c: Rename from __fpending.c.
37248         Include "fpending.h", not "__fpending.h".
37249         * lib/__fpending.h, lib/__fpending.c: Remove files.
37250         * modules/fpending (Files): Reflect new file names.
37251         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
37252
37253 2007-09-08  Bruno Haible  <bruno@clisp.org>
37254
37255         * m4/inttypes-h.m4: Remove stub file.
37256
37257 2007-09-07  Simon Josefsson  <simon@josefsson.org>
37258
37259         * doc/headers/stdint.texi: Discuss #include_next issue.
37260
37261 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37262
37263         * build-aux/bootstrap: Remove obsolete comment about wget --help.
37264
37265 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37266
37267         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
37268         in variable name.
37269
37270 2007-09-03  Jim Meyering  <jim@meyering.net>
37271
37272         New module: git-version-gen.
37273         * modules/git-version-gen: New file.
37274
37275         Import changes from coreutils for bootstrap script.
37276
37277         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
37278
37279         bootstrap: uses rsync to download the .po files
37280         * build-aux/bootstrap (po_download_command_format): New global.
37281         (download_po_files): Use rsync.
37282         (update_po_files): Don't remove .po files after download,
37283         so future rsync runs can take advantage of the copies.
37284
37285         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
37286
37287         Solve the unnecessary-.po-file-regeneration problem once and for all.
37288         * build-aux/bootstrap (download_po_files): New function, renamed from
37289         get_translations.  Now, downloads, but doesn't update LINGUAS.
37290         (update_po_files): New function.
37291
37292         bootstrap: Ignore more.
37293         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
37294         uniwidth to e.g., lib/.gitignore.
37295         (slurp): Handle the sys_stat_.h -> sys mapping, too.
37296
37297         * build-aux/bootstrap: New setting: vc_ignore.
37298         (insert_sorted_if_absent): Create $file if absent.
37299         Adapt to new, possibly empty, list: $vc_ignore.
37300
37301         bootstrap: generate more ignorable names
37302         * build-aux/bootstrap (slurp): When generating ignorable names,
37303         also map .sin to .sed, .gperf to .c, and .y to .c.
37304
37305 2007-09-03  Jim Meyering  <jim@meyering.net>
37306
37307         * build-aux/git-version-gen: New file, from coreutils.  For details, see
37308         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
37309
37310 2007-09-02  Bruno Haible  <bruno@clisp.org>
37311
37312         Fix mis-recognition of 'mcs' on QNX 6.
37313         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
37314         output contains the string "Mono".
37315         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
37316         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
37317
37318 2007-09-01  Bruno Haible  <bruno@clisp.org>
37319
37320         Fix collision between uniwidth/* and linebreak modules.
37321         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
37322         u32_width): Remove declarations.
37323         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
37324         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
37325         streq3, streq2, streq1, streq0): Remove functions.
37326         (STREQ): Remove macro.
37327         (is_cjk_encoding): Remove function.
37328         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
37329         (uc_width, u8_width, u16_width, u32_width): Remove functions.
37330         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
37331         * NEWS: Document the change.
37332
37333 2007-09-01  Bruno Haible  <bruno@clisp.org>
37334
37335         * lib/streq.h: Add double-inclusion guard.
37336
37337 2007-09-01  Karl Berry  <karl@gnu.org>
37338
37339         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
37340
37341 2007-08-28  Jim Meyering  <jim@meyering.net>
37342
37343         Rename mreadlink_with_size to areadlink_with_size.
37344         * NEWS: Document the change.
37345         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
37346         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
37347         * lib/mreadlink.h: Rename this to...
37348         * lib/areadlink.h: ...this.
37349         * modules/mreadlink-with-size: Rename this to...
37350         * modules/areadlink-with-size: ...this.
37351         * lib/canonicalize.c: Reflect the renaming.
37352         * modules/canonicalize: Likewise.
37353
37354 2007-08-26  Bruno Haible  <bruno@clisp.org>
37355
37356         * gnulib-tool (func_import): When deciding which files to remove,
37357         consider also dangling symbolic links.
37358         Reported by Eric Blake.
37359
37360 2007-08-26  Bruno Haible  <bruno@clisp.org>
37361
37362         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
37363
37364 2007-08-23  Simon Josefsson  <simon@josefsson.org>
37365
37366         * lib/readline.c: Don't include getline.h, the prototype is now
37367         found in stdio.h.
37368
37369 2007-08-23  Jim Meyering  <jim@meyering.net>
37370
37371         Getdelim touchup.
37372         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
37373         around the funlockfile call, since funlockfile never sets errno.
37374         Don't set errno upon failed realloc.
37375
37376 2007-08-22  Eric Blake  <ebb9@byu.net>
37377
37378         Getline touchups.
37379         * lib/getdelim.c (getdelim): Revert regression that required *n to
37380         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
37381         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
37382         getdelim, rather than whether implementation is missing.
37383         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
37384         * lib/stdio_.h (getline): Also declare if replacement is
37385         required.
37386         * doc/functions/getdelim.texi: New file.
37387         * doc/functions/getline.texi: Likewise.
37388         * doc/gnulib.texi (Function Substitutes): Add new files.
37389         Reported by Bruno Haible.
37390
37391 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
37392
37393         * users.txt: Add Guile.
37394
37395 2007-08-22  Eric Blake  <ebb9@byu.net>
37396
37397         * tests/test-getdelim.c (main): Use remove, not unlink.
37398         * tests/test-getline.c (main): Likewise.
37399
37400         Move getline and getdelim into stdio.h, per POSIX 200x.
37401         * modules/getline (Files): Remove getline.h.
37402         (Depends-on): Add stdio.
37403         (configure.ac): Add module indicator.
37404         * modules/getdelim (Files): Remove getdelim.h.
37405         (Depends-on): Add stdio.
37406         (configure.ac): Add module indicator.
37407         * modules/stdio (Makefile.am): Work with new indicators.
37408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37409         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
37410         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37411         * lib/getdelim.h: Delete.
37412         * lib/getline.h: Delete.
37413         * lib/stdio_.h (getdelim, getline): Declare.
37414         * modules/getdelim-tests: New module.
37415         * modules/getline-tests: Likewise.
37416         * tests/test-getdelim.c: New file.
37417         * tests/test-getline.c: Likewise.
37418         * NEWS: Document the change.
37419         * lib/getline.c: Update choice of header.
37420         * lib/csharpcomp.c: Likewise.
37421         * lib/getpass.c: Likewise.
37422         * lib/javacomp.c: Likewise.
37423         * lib/javaversion.c: Likewise.
37424         * lib/yesno.c: Likewise.
37425         * lib/getdelim.c: Likewise.
37426         (getdelim): Set errno on failure, and avoid memory leak.
37427
37428 2007-08-19  Bruno Haible  <bruno@clisp.org>
37429
37430         * modules/closein (Depends-on): Add freadahead.
37431         * lib/closein.c: Include freadahead.h.
37432         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
37433         is zero.
37434
37435 2007-08-19  Bruno Haible  <bruno@clisp.org>
37436
37437         * modules/freadahead-tests: New file.
37438         * tests/test-freadahead.sh: New file.
37439         * tests/test-freadahead.c: New file.
37440
37441         * modules/freadahead: New file.
37442         * lib/freadahead.h: New file.
37443         * lib/freadahead.c: New file.
37444         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
37445         fbufmode, fpurge, freadable, fwritable.
37446
37447 2007-08-19  Eric Blake  <ebb9@byu.net>
37448
37449         Test yesno in combination with closein.
37450         * lib/yesno.c (yesno): Document use of stdin.
37451         * modules/yesno-tests (Files): New module.
37452         * tests/test-yesno.c (main): New file.
37453         * tests/test-yesno.sh: Likewise.
37454
37455 2007-08-19  Bruno Haible  <bruno@clisp.org>
37456
37457         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
37458         * lib/fseeko.c (rpl_fseeko): Likewise.
37459         * lib/fseterr.c (fseterr): Likewise.
37460
37461 2007-08-19  Bruno Haible  <bruno@clisp.org>
37462
37463         * tests/test-lseek.c (main): Disable a test for BeOS.
37464         * doc/functions/lseek.texi: Document the BeOS bug.
37465
37466 2007-08-19  Bruno Haible  <bruno@clisp.org>
37467             Eric Blake  <ebb9@byu.net>
37468
37469         * lib/lseek.c: Include <sys/stat.h>.
37470         (rpl_lseek): Add workaround code also for Unix platforms.
37471         Needed for BeOS.
37472         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
37473         * doc/functions/lseek.texi: Document BeOS definiency.
37474
37475 2007-08-18  Bruno Haible  <bruno@clisp.org>
37476
37477         * modules/fstrcmp-tests: New file.
37478         * tests/test-fstrcmp.c: New file.
37479
37480 2007-08-18  Bruno Haible  <bruno@clisp.org>
37481
37482         * modules/fstrcmp: New file, from GNU gettext with modifications.
37483         * lib/fstrcmp.h: New file, from GNU gettext.
37484         * lib/fstrcmp.c: New file, from GNU gettext.
37485         * MODULES.html.sh (String handling): Add fstrcmp.
37486
37487 2007-08-18  Bruno Haible  <bruno@clisp.org>
37488
37489         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
37490         'bool'.
37491         (diag, compareseq): Remove const from the ctxt argument.
37492         (USE_HEURISTIC): Undefine at the end.
37493
37494 2007-08-18  Jim Meyering  <jim@meyering.net>
37495
37496         New file: lib/idcache.h
37497         * NEWS: Mention the addition.
37498         * modules/idcache (Files): Add lib/idcache.h
37499         * lib/idcache.c: Include "idcache.h".
37500         Don't include <sys/types.h>.
37501         Add a FIXME comment.
37502         Move file-scoped "static" declarations to the top.
37503         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
37504
37505 2007-08-17  Bruno Haible  <bruno@clisp.org>
37506         and Paul Eggert  <eggert@cs.ucla.edu>
37507
37508         * MODULES.html.sh: Add diffseq.
37509         * modules/diffseq: New file.
37510         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37511         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
37512
37513 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37514
37515         Import changes from coreutils for bootstrap script.
37516
37517         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
37518
37519         * build-aux/bootstrap (slurp): Work even in environments where
37520         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
37521         current code does not slurp files whose names start with ".", and
37522         this looks like it might be a troublesome area.
37523
37524         2007-07-11  Jim Meyering  <jim@meyering.net>
37525
37526         If there's a GPL vN copyright comment, require that N == 3.
37527
37528         2007-07-08  Jim Meyering  <jim@meyering.net>
37529
37530         Run the coreutils-specific code only if tests/Makefile.am.in exists.
37531         * build-aux/bootstrap (mam_template): Move definition out of loop.
37532
37533         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
37534
37535         * build-aux/bootstrap (symlink_to_dir): Rename function from
37536         symlink_to_gnulib.  Add a directory parameter.  Update all
37537         callers.
37538         (cp_mark_as_generated): Also check for -- and link to -- files in
37539         gl/.
37540
37541         2007-07-08  Jim Meyering  <jim@meyering.net>
37542
37543         Adapt to deeper hierarchy in gnulib.
37544         * build-aux/bootstrap (symlink_to_dir): If the destination
37545         directory doesn't exist, create it. This is required at least for
37546         "lib/uniwidth/cjk.h".
37547
37548         2007-05-15  Jim Meyering  <jim@meyering.net>
37549
37550         * build-aux/bootstrap: Now that generated Makefile.am files
37551         are no longer under version control, they must be created at
37552         bootstrap time.
37553
37554 2007-08-14  Ben Pfaff  <blp@gnu.org>
37555
37556         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
37557
37558 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37559
37560         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
37561         given the changes below.
37562         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
37563         even on hosts that have padding bits beyond the supported 64.
37564
37565 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37566
37567         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
37568         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
37569         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
37570         depends on it.
37571         (xstrtol_error): Remove.
37572         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
37573         but with a different signature.
37574         (ATTRIBUTE_NORETURN, __attribute__): New macros.
37575         * lib/xstrtol-error.c: Include exitfail.h.
37576         (xstrtol_fatal): New function, with a different signature from the
37577         old xstrtol_error, so that the caller need not worry about passing
37578         in an exit status, or about storage management of the option argument.
37579         (xstrtol_error): Now a static function.  Redo signature to
37580         implement xstrtol_fatal.  Output the correct number of hyphens in
37581         front of the option so that the caller need not worry about
37582         storage management.
37583         (N_): New macro.
37584         (_): Remove; not used now.
37585         * modules/xstrtol: Depend on getopt.
37586         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
37587         of old STRTOL_FATAL_ERROR macro.
37588         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
37589         of test program.
37590         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37591         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37592
37593 2007-08-08  Eric Blake  <ebb9@byu.net>
37594
37595         * lib/xstrtol-error.c: Add missing include.
37596
37597         Move xstrtol messages into gnulib domain, when --pobase is used.
37598         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37599         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37600         * modules/xstrtol (Files): Distribute new file.
37601         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37602         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37603         * tests/test-xstrtol.c: ...into new file.
37604         * tests/test-xstrtoul.c: Also test xstrtoul.
37605         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37606         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37607         * tests/test-xstrtol.sh: Drive the tests.
37608         * tests/test-xstrtoimax.sh: Likewise.
37609         * tests/test-xstrtoumax.sh: Likewise.
37610         * modules/xstrtol-tests: New module.
37611         * modules/xstrtoimax-tests: Likewise.
37612         * modules/xstrtoumax-tests: Likewise.
37613
37614 2007-08-08  Jim Meyering  <jim@meyering.net>
37615
37616         New function: mfile_name_concat.
37617         * lib/filenamecat.c (mfile_name_concat): New function, just like
37618         file_name_concat, but return NULL upon failure rather than exiting
37619         with a diagnostic.
37620         * lib/filenamecat.h: Declare it.
37621
37622 2007-08-07  Bruno Haible  <bruno@clisp.org>
37623
37624         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37625         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37626         warning from gcc.
37627         Reported by Eric Blake.
37628
37629 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37630
37631         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37632         * modules/crypto/arcfour (License): Likewise.
37633         * modules/crypto/des-tests (License): Likewise.
37634         * modules/crypto/gc-arctwo-tests (License): Likewise.
37635         * modules/crypto/gc-des-tests (License): Likewise.
37636         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37637         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37638         * modules/crypto/gc-md2-tests (License): Likewise.
37639         * modules/crypto/gc-md4-tests (License): Likewise.
37640         * modules/crypto/gc-md5-tests (License): Likewise.
37641         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37642         * modules/crypto/gc-rijndael-tests (License): Likewise.
37643         * modules/crypto/gc-sha1-tests (License): Likewise.
37644         * modules/crypto/gc-tests (License): Likewise.
37645         * modules/crypto/hmac-md5 (License): Likewise.
37646         * modules/crypto/hmac-sha1 (License): Likewise.
37647         * modules/crypto/md2-tests (License): Likewise.
37648         * modules/crypto/md4-tests (License): Likewise.
37649         * modules/crypto/md5 (License): Likewise.
37650         * modules/crypto/rijndael (License): Likewise.
37651         * modules/crypto/sha1 (License): Likewise.
37652         * modules/memxor (License): Likewise.
37653
37654 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37655         and Bruno Haible  <bruno@clisp.org>
37656
37657         * NEWS: Describe interface changes to human, xstrtol.
37658         * lib/human.h: Include <xstrtol.h>.
37659         (human_options): Return enum strtol_error, not int.  Remove
37660         bool arg; take int * instead.
37661         * lib/human.c: Don't include "gettext.h".
37662         (_): Remove; no longer used.
37663         Don't include <xstrtol.h>, since human.h does it.
37664         (human_options): Adjust to abovementioned interface changes.
37665         Do not report error to stderr; that's now the caller's
37666         responsibility.
37667         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37668         interface change.
37669         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37670         Str, Argument_type_string.  All uses changed.  Put " argument"
37671         in diagnostics to make them clearer.  Change wording of suffix
37672         message for clarity.
37673         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37674         Argument_type_string.
37675         (STRTOL_FATAL_WARN): Remove; no longer used.
37676         * modules/human (Depends-on): Remove gettext-h.
37677
37678 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37679
37680         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37681
37682 2007-07-31  Bruno Haible  <bruno@clisp.org>
37683
37684         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37685         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37686         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37687
37688 2007-07-31  Bruno Haible  <bruno@clisp.org>
37689
37690         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37691         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37692
37693 2007-07-30  Bruno Haible  <bruno@clisp.org>
37694
37695         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37696         * modules/c-ctype (License): Likewise.
37697         * modules/c-strcase (License): Likewise.
37698         * modules/check-version (License): Likewise.
37699         * modules/iconv (License): Likewise.
37700         * modules/iconv_open (License): Likewise.
37701         * modules/read-file (License): Likewise.
37702         * modules/striconv (License): Likewise.
37703         * modules/strverscmp (License): Likewise.
37704         * modules/vasprintf (License): Likewise.
37705         * modules/crypto/des (License): Likewise.
37706         * modules/crypto/gc (License): Likewise.
37707         * modules/crypto/gc-arcfour (License): Likewise.
37708         * modules/crypto/gc-arctwo (License): Likewise.
37709         * modules/crypto/gc-des (License): Likewise.
37710         * modules/crypto/gc-hmac-md5 (License): Likewise.
37711         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37712         * modules/crypto/gc-md2 (License): Likewise.
37713         * modules/crypto/gc-md4 (License): Likewise.
37714         * modules/crypto/gc-md5 (License): Likewise.
37715         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37716         * modules/crypto/gc-random (License): Likewise.
37717         * modules/crypto/gc-rijndael (License): Likewise.
37718         * modules/crypto/gc-sha1 (License): Likewise.
37719         * modules/crypto/md2 (License): Likewise.
37720         * modules/crypto/md4 (License): Likewise.
37721
37722 2007-07-30  Jim Meyering  <jim@meyering.net>
37723
37724         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37725         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37726         it has valid stat data.  This bug would cause du not to count the
37727         sizes of inaccessible directories.
37728         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37729         in <http://bugzilla.redhat.com/250077>.
37730
37731 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37732             Bruno Haible  <bruno@clisp.org>
37733
37734         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37735         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37736         #include_next, gives a diagnostic about it, but reports no error in
37737         the exit code.
37738         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37739
37740 2007-07-24  Ben Pfaff  <blp@gnu.org>
37741
37742         Improve name: "count-one-bits" is better than "popcount".
37743         * MODULES.html.sh: Update name.
37744         * lib/popcount.h: Renamed lib/count-one-bits.h.
37745         (popcount): Renamed count_one_bits.
37746         (popcountl): Renamed count_one_bits_l.
37747         (popcountll): Renamed count_one_bits_ll.
37748         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37749         * modules/popcount: Renamed module/count-one-bits.
37750         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37751         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37752
37753 2007-07-23  Ben Pfaff  <blp@gnu.org>
37754
37755         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37756         better code generation, and add U to large constants to avoid
37757         warnings, in non-GCC case.
37758         Suggested by Bruno Haible.
37759
37760 2007-07-23  Ben Pfaff  <blp@gnu.org>
37761
37762         * lib/popcount.h: Use verify_true instead of if...abort.
37763         * modules/popcount: Depend on verify module.
37764         Suggested by Jim Meyering.
37765
37766 2007-07-23  Bruno Haible  <bruno@clisp.org>
37767
37768         * gnulib-tool (func_import): Create a .cvsignore file also when the
37769         directory is not yet in CVS but the toplevel directory is. When
37770         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37771         Reported by Karl Berry.
37772
37773 2007-07-22  Ben Pfaff  <blp@gnu.org>
37774
37775         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37776         case.
37777         Suggested by Eric Blake.
37778
37779 2007-07-22  Ben Pfaff  <blp@gnu.org>
37780
37781         New module: popcount.
37782         * MODULES.html.sh: Add popcount.
37783         * modules/popcount: New file.
37784         * modules/popcount-tests: New file.
37785         * tests/test-popcount.c: New file.
37786         * lib/popcount.h: New file.
37787         * m4/popcount.m4: New file.
37788
37789 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37790
37791         * build-aux/announce-gen: Update to GPLv3.
37792
37793         * build-aux/config.guess: Update from config.
37794
37795 2007-07-21  Bruno Haible  <bruno@clisp.org>
37796
37797         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37798         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37799
37800 2007-07-20  Jim Meyering  <jim@meyering.net>
37801
37802         * check-module: Diagnose a self-dependency.
37803
37804 2007-07-19  Bruno Haible  <bruno@clisp.org>
37805
37806         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37807         empty.
37808         Reported by Eric Blake.
37809
37810 2007-07-18  Bruno Haible  <bruno@clisp.org>
37811
37812         * gnulib-tool: New options --po-base, --po-domain.
37813         (func_usage): Document them.
37814         (pobase, po_domain): New variables.
37815         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37816         DEFAULT_TEXT_DOMAIN.
37817         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37818         (func_import): Consider pobase and po_domain. Create a po/ directory.
37819         (func_create_testdir): Set pobase and po_domain to empty.
37820         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37821         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37822
37823 2007-07-18  Bruno Haible  <bruno@clisp.org>
37824
37825         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37826         EXTRA_DIST augmentation for files in build-aux/.
37827
37828 2007-07-16  Bruno Haible  <bruno@clisp.org>
37829
37830         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37831         * modules/getdelim (License): Likewise.
37832
37833 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37834
37835         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
37836         * modules/d-type (License): Likewise.
37837         * modules/extensions (License): Likewise.
37838         * modules/fnmatch (License): Likewise.
37839         * modules/fseeko (License): Likewise.
37840         * modules/getaddrinfo (License): Likewise.
37841         * modules/getline (License): Likewise.
37842         * modules/getlogin_r (License): Likewise.
37843         * modules/getpass (License): Likewise.
37844         * modules/gettimeofday (License): Likewise.
37845         * modules/glob (License): Likewise.
37846         * modules/inet_ntop (License): Likewise.
37847         * modules/malloc (License): Likewise.
37848         * modules/malloca (License): Likewise.
37849         * modules/memmem (License): Likewise.
37850         * modules/mempcpy (License): Likewise.
37851         * modules/memset (License): Likewise.
37852         * modules/minmax (License): Likewise.
37853         * modules/mktime (License): Likewise.
37854         * modules/netinet_in (License): Likewise.
37855         * modules/pathmax (License): Likewise.
37856         * modules/poll (License): Likewise.
37857         * modules/regex (License): Likewise.
37858         * modules/snprintf (License): Likewise.
37859         * modules/stdbool (License): Likewise.
37860         * modules/stdint (License): Likewise.
37861         * modules/stdio (License): Likewise.
37862         * modules/strcase (License): Likewise.
37863         * modules/strcasestr (License): Likewise.
37864         * modules/strdup (License): Likewise.
37865         * modules/string (License): Likewise.
37866         * modules/strndup (License): Likewise.
37867         * modules/strnlen (License): Likewise.
37868         * modules/strpbrk (License): Likewise.
37869         * modules/strptime (License): Likewise.
37870         * modules/strsep (License): Likewise.
37871         * modules/sys_select (License): Likewise.
37872         * modules/sys_socket (License): Likewise.
37873         * modules/sys_stat (License): Likewise.
37874         * modules/sys_time (License): Likewise.
37875         * modules/time (License): Likewise.
37876         * modules/time_r (License): Likewise.
37877         * modules/timegm (License): Likewise.
37878         * modules/unistd (License): Likewise.
37879         * modules/vsnprintf (License): Likewise.
37880         * modules/wctype (License): Likewise.
37881
37882 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37883
37884         * modules/argz (License): LGPLv2+.
37885
37886 2007-07-15  Karl Berry  <karl@gnu.org>
37887
37888         * doc/gnulib.texi: revise node structure per new fdl.texi.
37889
37890 2007-07-14  Bruno Haible  <bruno@clisp.org>
37891
37892         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
37893         the output file.
37894         * lib/uniname/uninames.h: Regenerated.
37895
37896 2007-07-14  Karl Berry  <karl@gnu.org>
37897
37898         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
37899         omitting sectioning and index commands.
37900
37901 2007-07-13  Bruno Haible  <bruno@clisp.org>
37902
37903         New gnulib-tool option --more-symlinks.
37904         * gnulib-tool (func_usage): Document --more-symlinks.
37905         (do_copyrights): New variable.
37906         Recognize option --more-symlinks.
37907         (func_import): Don't add a copyright notice transform to
37908         sed_transform_lib_file if do_copyrights is empty.
37909
37910 2007-07-13  Bruno Haible  <bruno@clisp.org>
37911
37912         * lib/vasnprintf.c (decimal_point_char): Define also if
37913         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
37914         && !NEED_PRINTF_DIRECTIVE_A.
37915         Reported by Clemens Koller <clemens.koller@anagramm.de> via
37916         Gary V. Vaughan <gary@gnu.org>.
37917
37918 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
37919
37920         * lib/inttypes_.h: Undo previous change, since it was fixed
37921         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
37922
37923 2007-07-13  Bruno Haible  <bruno@clisp.org>
37924
37925         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
37926         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
37927
37928 2007-07-13  Jim Meyering  <jim@meyering.net>
37929
37930         df: Don't fail for Tru64's "file-on-file mount".
37931         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
37932         so we fall through and use statfs instead.  Details here:
37933         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
37934         Reported by Albert Chin.
37935
37936 2007-07-13  Bruno Haible  <bruno@clisp.org>
37937
37938         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
37939         * modules/configmake (License): Likewise.
37940         * modules/gettext (License): Likewise.
37941         * modules/gettext-h (License): Likewise.
37942         * modules/include_next (License): Likewise.
37943         * modules/link-warning (License): Likewise.
37944         * modules/localcharset (License): Likewise.
37945         * modules/localename (License): Likewise.
37946         * modules/lock (License): Likewise.
37947         * modules/relocatable-lib-lgpl (License): Likewise.
37948         * modules/size_max (License): Likewise.
37949         * modules/vasnprintf (License): Likewise.
37950         * modules/wchar (License): Likewise.
37951         * modules/xsize (License): Likewise.
37952
37953 2007-07-13  Bruno Haible  <bruno@clisp.org>
37954
37955         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
37956         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
37957
37958 2007-07-12  Bruno Haible  <bruno@clisp.org>
37959
37960         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
37961         in the modules files.
37962
37963 2007-07-11  Karl Berry  <karl@gnu.org>
37964
37965         * MODULES.html.sh (func_module): use
37966          sed -e '\|^'"${includefile}"'$|d'
37967          instead of /.../d, to avoid errors on $includefile's containing /.
37968
37969 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37970
37971         * gnulib-tool (func_import): Avoid duplication of --avoid
37972         statements
37973         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
37974         names to `_' in variable names.
37975
37976 2007-07-10  Eric Blake  <ebb9@byu.net>
37977
37978         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
37979         * NEWS: Document this change.
37980
37981 2007-07-08  Bruno Haible  <bruno@clisp.org>
37982
37983         Update to Unicode 5.0.
37984         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
37985         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
37986         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
37987         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
37988         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
37989         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
37990         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
37991         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
37992         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
37993         U+10A3F, U+1D242..U+1D244.
37994         (nonspacing_table_ind): Update.
37995         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
37996         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
37997
37998 2007-07-08  Bruno Haible  <bruno@clisp.org>
37999
38000         Update to Unicode 5.0.
38001         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
38002         code transform. Extend the name index field of unicode_name_to_code and
38003         unicode_code_to_name from 16 to 24 bits.
38004         * lib/uniname/uniname.c (unicode_character_name,
38005         unicode_name_character): Add the range 0x12xxx to the code transform.
38006         * lib/uniname/uninames.h: Regenerated.
38007         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
38008
38009 2007-07-07  Bruno Haible  <bruno@clisp.org>
38010
38011         * modules/wcwidth-tests: New file.
38012         * tests/test-wcwidth.c: New file.
38013
38014         Work around MacOS X wcwidth() bug.
38015         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
38016         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
38017         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
38018         original wcwidth in non-UTF-8 locales.
38019         * modules/wcwidth (Depends-on): Add localcharset, streq,
38020         uniwidth/width.
38021         * doc/functions/wcwidth.texi: Update.
38022
38023 2007-07-07  Bruno Haible  <bruno@clisp.org>
38024
38025         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
38026         (wcwidth): New declaration.
38027         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
38028         macros.
38029         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
38030         here. Prepare for creating <wchar.h> unconditionally.
38031         * modules/wchar (Depends-on): Add link-warning.
38032         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
38033         REPLACE_WCWIDTH, and GL_LINK_WARNING.
38034         * lib/wcwidth.h: Remove file.
38035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
38036         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
38037         * modules/wcwidth (Files): Remove lib/wcwidth.h.
38038         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
38039         (Include): Replace wcwidth.h with <wchar.h>.
38040         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
38041         * lib/mbchar.h: Don't include wcwidth.h.
38042         * lib/mbswidth.c: Likewise.
38043         * NEWS: Mention the change.
38044
38045 2007-07-07  Bruno Haible  <bruno@clisp.org>
38046
38047         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
38048         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
38049         definition with an external declaration.
38050         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
38051         defined as a function. Remove AC_C_INLINE requirement.
38052         * modules/wcwidth (Files): Add lib/wcwidth.c.
38053         (Makefile.am): Remove redundant statement.
38054
38055 2007-07-07  Bruno Haible  <bruno@clisp.org>
38056
38057         * MODULES.html.sh (Unicode string functions): Add the new modules.
38058
38059         * tests/uniwidth/test-u32-strwidth.c: New file.
38060         * modules/uniwidth/u32-strwidth-tests: New file.
38061
38062         * lib/uniwidth/u32-strwidth.c: New file.
38063         * modules/uniwidth/u32-strwidth: New file.
38064
38065         * tests/uniwidth/test-u16-strwidth.c: New file.
38066         * modules/uniwidth/u16-strwidth-tests: New file.
38067
38068         * lib/uniwidth/u16-strwidth.c: New file.
38069         * modules/uniwidth/u16-strwidth: New file.
38070
38071         * tests/uniwidth/test-u8-strwidth.c: New file.
38072         * modules/uniwidth/u8-strwidth-tests: New file.
38073
38074         * lib/uniwidth/u8-strwidth.c: New file.
38075         * modules/uniwidth/u8-strwidth: New file.
38076
38077         * tests/uniwidth/test-u32-width.c: New file.
38078         * modules/uniwidth/u32-width-tests: New file.
38079
38080         * lib/uniwidth/u32-width.c: New file.
38081         * modules/uniwidth/u32-width: New file.
38082
38083         * tests/uniwidth/test-u16-width.c: New file.
38084         * modules/uniwidth/u16-width-tests: New file.
38085
38086         * lib/uniwidth/u16-width.c: New file.
38087         * modules/uniwidth/u16-width: New file.
38088
38089         * tests/uniwidth/test-u8-width.c: New file.
38090         * modules/uniwidth/u8-width-tests: New file.
38091
38092         * lib/uniwidth/u8-width.c: New file.
38093         * modules/uniwidth/u8-width: New file.
38094
38095         * tests/uniwidth/test-uc_width.c: New file.
38096         * modules/uniwidth/width-tests: New file.
38097
38098         * lib/uniwidth/width.c: New file, from GNU libiconv.
38099         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
38100         * modules/uniwidth/width: New file.
38101
38102         * lib/uniwidth.h: New file, from GNU libiconv.
38103         * modules/uniwidth/base: New file.
38104
38105 2007-07-07  Bruno Haible  <bruno@clisp.org>
38106
38107         * lib/uniname.h: New file, from GNU gettext.
38108         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
38109         * lib/uniname/uninames.h: New file, from GNU gettext.
38110         * lib/uniname/uniname.c: New file, from GNU gettext.
38111         * tests/uniname/test-uninames.sh: New file.
38112         * tests/uniname/test-uninames.c: New file, from GNU gettext.
38113         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
38114         * modules/uniname/base: New file.
38115         * modules/uniname/uniname: New file.
38116         * modules/uniname/uniname-tests: New file.
38117         * MODULES.html.sh (Unicode string functions): Add the new modules.
38118
38119 2007-07-06  Bruno Haible  <bruno@clisp.org>
38120
38121         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
38122
38123 2007-07-06  Bruno Haible  <bruno@clisp.org>
38124
38125         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
38126         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
38127         includes <cygwin/sys_time.h> which includes <sys/select.h> which
38128         include <sys/time.h>.
38129         Reported by Eric Blake.
38130
38131 2007-07-06  Eric Blake  <ebb9@byu.net>
38132
38133         Fix testing canonicalize on cygwin.
38134         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38135         Revert patch from 2007-06-19.
38136         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
38137         canonicalize module is also in use.
38138         * tests/test-canonicalize.c: New file.
38139         * tests/test-canonicalize.sh: Likewise.
38140         * modules/canonicalize-tests: Likewise.
38141
38142 2007-07-06  Jim Meyering  <jim@meyering.net>
38143
38144         * lib/getugroups.c (getugroups): Detect getgrent failure.
38145         Adjust comment to reflect reality: this function may return -1.
38146
38147 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38148
38149         * build-aux/bootstrap (TP_URL,get_translations): Update to use
38150         the new TP address.
38151         (usage): Fix typo
38152         (gnulib_mk): New variable.
38153
38154 2007-07-05  Jim Meyering  <jim@meyering.net>
38155
38156         Don't let endgrent clobber errno, no matter how improbable.
38157         * lib/getugroups.c (getugroups): Save and restore errno around
38158         endgrent call.
38159
38160         Close the group DB even when failing with 2^31 or more members.
38161         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
38162
38163 2007-07-04  Jim Meyering  <jim@meyering.net>
38164
38165         * lib/getugroups.h: New file.
38166         * lib/getugroups.c: Include "getugroups.h".
38167         Remove uses of "register" keyword.
38168         Move local variable, "cp", down into scope where used.
38169         Give "username" parameter the "const" attribute.
38170         * modules/getugroups (Files): Add lib/getugroups.h
38171
38172 2007-07-04  Karl Berry  <karl@gnu.org>
38173
38174         * MODULES.html.sh (func_all_modules): Complete rename of
38175         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
38176
38177 2007-07-02  Bruno Haible  <bruno@clisp.org>
38178
38179         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
38180         mode, when inttypes.h comes from gnulib.
38181         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38182
38183 2007-07-02  Simon Josefsson  <simon@josefsson.org>
38184
38185         * NEWS: Mention lgpl module name change.
38186
38187         * modules/lgpl-2.1: Renamed from lgpl.
38188
38189         * NEWS: Mention gpl module name change.
38190
38191         * modules/gpl-3.0: New file, based on gpl-2.0.
38192
38193         * modules/gpl-2.0: Renamed from gpl.
38194
38195         * modules/gpl: Fix filename, doc/gpl.texi is now found at
38196         doc/gpl-2.0.texi.
38197
38198 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38199
38200         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
38201         #define __STDC_LIMIT_MACROS temporarily while including
38202         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
38203         Problem reported by Joel E. Denny in
38204         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
38205
38206 2007-07-01  Bruno Haible  <bruno@clisp.org>
38207
38208         * lib/unistdio.h: New file.
38209         * lib/unistdio/u-asnprintf.h: New file.
38210         * lib/unistdio/u-asprintf.h: New file.
38211         * lib/unistdio/u-printf-args.c: New file.
38212         * lib/unistdio/u-printf-args.h: New file.
38213         * lib/unistdio/u-printf-parse.h: New file.
38214         * lib/unistdio/u-snprintf.h: New file.
38215         * lib/unistdio/u-sprintf.h: New file.
38216         * lib/unistdio/u-vasprintf.h: New file.
38217         * lib/unistdio/u-vsnprintf.h: New file.
38218         * lib/unistdio/u-vsprintf.h: New file.
38219         * lib/unistdio/ulc-asnprintf.c: New file.
38220         * lib/unistdio/ulc-asprintf.c: New file.
38221         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
38222         * lib/unistdio/ulc-printf-parse.c: New file.
38223         * lib/unistdio/ulc-snprintf.c: New file.
38224         * lib/unistdio/ulc-sprintf.c: New file.
38225         * lib/unistdio/ulc-vasnprintf.c: New file.
38226         * lib/unistdio/ulc-vasprintf.c: New file.
38227         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
38228         * lib/unistdio/ulc-vsnprintf.c: New file.
38229         * lib/unistdio/ulc-vsprintf.c: New file.
38230         * lib/unistdio/u8-asnprintf.c: New file.
38231         * lib/unistdio/u8-asprintf.c: New file.
38232         * lib/unistdio/u8-printf-parse.c: New file.
38233         * lib/unistdio/u8-snprintf.c: New file.
38234         * lib/unistdio/u8-sprintf.c: New file.
38235         * lib/unistdio/u8-vasnprintf.c: New file.
38236         * lib/unistdio/u8-vasprintf.c: New file.
38237         * lib/unistdio/u8-vsnprintf.c: New file.
38238         * lib/unistdio/u8-vsprintf.c: New file.
38239         * lib/unistdio/u8-u8-asnprintf.c: New file.
38240         * lib/unistdio/u8-u8-asprintf.c: New file.
38241         * lib/unistdio/u8-u8-snprintf.c: New file.
38242         * lib/unistdio/u8-u8-sprintf.c: New file.
38243         * lib/unistdio/u8-u8-vasnprintf.c: New file.
38244         * lib/unistdio/u8-u8-vasprintf.c: New file.
38245         * lib/unistdio/u8-u8-vsnprintf.c: New file.
38246         * lib/unistdio/u8-u8-vsprintf.c: New file.
38247         * lib/unistdio/u16-asnprintf.c: New file.
38248         * lib/unistdio/u16-asprintf.c: New file.
38249         * lib/unistdio/u16-printf-parse.c: New file.
38250         * lib/unistdio/u16-snprintf.c: New file.
38251         * lib/unistdio/u16-sprintf.c: New file.
38252         * lib/unistdio/u16-vasnprintf.c: New file.
38253         * lib/unistdio/u16-vasprintf.c: New file.
38254         * lib/unistdio/u16-vsnprintf.c: New file.
38255         * lib/unistdio/u16-vsprintf.c: New file.
38256         * lib/unistdio/u16-u16-asnprintf.c: New file.
38257         * lib/unistdio/u16-u16-asprintf.c: New file.
38258         * lib/unistdio/u16-u16-snprintf.c: New file.
38259         * lib/unistdio/u16-u16-sprintf.c: New file.
38260         * lib/unistdio/u16-u16-vasnprintf.c: New file.
38261         * lib/unistdio/u16-u16-vasprintf.c: New file.
38262         * lib/unistdio/u16-u16-vsnprintf.c: New file.
38263         * lib/unistdio/u16-u16-vsprintf.c: New file.
38264         * lib/unistdio/u32-asnprintf.c: New file.
38265         * lib/unistdio/u32-asprintf.c: New file.
38266         * lib/unistdio/u32-printf-parse.c: New file.
38267         * lib/unistdio/u32-snprintf.c: New file.
38268         * lib/unistdio/u32-sprintf.c: New file.
38269         * lib/unistdio/u32-vasnprintf.c: New file.
38270         * lib/unistdio/u32-vasprintf.c: New file.
38271         * lib/unistdio/u32-vsnprintf.c: New file.
38272         * lib/unistdio/u32-vsprintf.c: New file.
38273         * lib/unistdio/u32-u32-asnprintf.c: New file.
38274         * lib/unistdio/u32-u32-asprintf.c: New file.
38275         * lib/unistdio/u32-u32-snprintf.c: New file.
38276         * lib/unistdio/u32-u32-sprintf.c: New file.
38277         * lib/unistdio/u32-u32-vasnprintf.c: New file.
38278         * lib/unistdio/u32-u32-vasprintf.c: New file.
38279         * lib/unistdio/u32-u32-vsnprintf.c: New file.
38280         * lib/unistdio/u32-u32-vsprintf.c: New file.
38281         * tests/unistdio/test-ulc-asnprintf1.c: New file.
38282         * tests/unistdio/test-ulc-asnprintf1.h: New file.
38283         * tests/unistdio/test-ulc-printf1.h: New file.
38284         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
38285         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
38286         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
38287         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
38288         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
38289         * tests/unistdio/test-ulc-vasprintf1.c: New file.
38290         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
38291         * tests/unistdio/test-ulc-vsprintf1.c: New file.
38292         * tests/unistdio/test-u8-asnprintf1.c: New file.
38293         * tests/unistdio/test-u8-asnprintf1.h: New file.
38294         * tests/unistdio/test-u8-printf1.h: New file.
38295         * tests/unistdio/test-u8-vasnprintf1.c: New file.
38296         * tests/unistdio/test-u8-vasnprintf2.c: New file.
38297         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
38298         * tests/unistdio/test-u8-vasnprintf3.c: New file.
38299         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
38300         * tests/unistdio/test-u8-vasprintf1.c: New file.
38301         * tests/unistdio/test-u8-vsnprintf1.c: New file.
38302         * tests/unistdio/test-u8-vsprintf1.c: New file.
38303         * tests/unistdio/test-u16-asnprintf1.c: New file.
38304         * tests/unistdio/test-u16-asnprintf1.h: New file.
38305         * tests/unistdio/test-u16-printf1.h: New file.
38306         * tests/unistdio/test-u16-vasnprintf1.c: New file.
38307         * tests/unistdio/test-u16-vasnprintf2.c: New file.
38308         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
38309         * tests/unistdio/test-u16-vasnprintf3.c: New file.
38310         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
38311         * tests/unistdio/test-u16-vasprintf1.c: New file.
38312         * tests/unistdio/test-u16-vsnprintf1.c: New file.
38313         * tests/unistdio/test-u16-vsprintf1.c: New file.
38314         * tests/unistdio/test-u32-asnprintf1.c: New file.
38315         * tests/unistdio/test-u32-asnprintf1.h: New file.
38316         * tests/unistdio/test-u32-printf1.h: New file.
38317         * tests/unistdio/test-u32-vasnprintf1.c: New file.
38318         * tests/unistdio/test-u32-vasnprintf2.c: New file.
38319         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
38320         * tests/unistdio/test-u32-vasnprintf3.c: New file.
38321         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
38322         * tests/unistdio/test-u32-vasprintf1.c: New file.
38323         * tests/unistdio/test-u32-vsnprintf1.c: New file.
38324         * tests/unistdio/test-u32-vsprintf1.c: New file.
38325         * modules/unistdio/base: New file.
38326         * modules/unistdio/u-printf-args: New file.
38327         * modules/unistdio/ulc-asnprintf: New file.
38328         * modules/unistdio/ulc-asprintf: New file.
38329         * modules/unistdio/ulc-fprintf: New file.
38330         * modules/unistdio/ulc-printf-parse: New file.
38331         * modules/unistdio/ulc-snprintf: New file.
38332         * modules/unistdio/ulc-sprintf: New file.
38333         * modules/unistdio/ulc-vasnprintf: New file.
38334         * modules/unistdio/ulc-vasprintf: New file.
38335         * modules/unistdio/ulc-vfprintf: New file.
38336         * modules/unistdio/ulc-vsnprintf: New file.
38337         * modules/unistdio/ulc-vsprintf: New file.
38338         * modules/unistdio/u8-asnprintf: New file.
38339         * modules/unistdio/u8-asprintf: New file.
38340         * modules/unistdio/u8-printf-parse: New file.
38341         * modules/unistdio/u8-snprintf: New file.
38342         * modules/unistdio/u8-sprintf: New file.
38343         * modules/unistdio/u8-vasnprintf: New file.
38344         * modules/unistdio/u8-vasprintf: New file.
38345         * modules/unistdio/u8-vsnprintf: New file.
38346         * modules/unistdio/u8-vsprintf: New file.
38347         * modules/unistdio/u8-u8-asnprintf: New file.
38348         * modules/unistdio/u8-u8-asprintf: New file.
38349         * modules/unistdio/u8-u8-snprintf: New file.
38350         * modules/unistdio/u8-u8-sprintf: New file.
38351         * modules/unistdio/u8-u8-vasnprintf: New file.
38352         * modules/unistdio/u8-u8-vasprintf: New file.
38353         * modules/unistdio/u8-u8-vsnprintf: New file.
38354         * modules/unistdio/u8-u8-vsprintf: New file.
38355         * modules/unistdio/u16-asnprintf: New file.
38356         * modules/unistdio/u16-asprintf: New file.
38357         * modules/unistdio/u16-printf-parse: New file.
38358         * modules/unistdio/u16-snprintf: New file.
38359         * modules/unistdio/u16-sprintf: New file.
38360         * modules/unistdio/u16-vasnprintf: New file.
38361         * modules/unistdio/u16-vasprintf: New file.
38362         * modules/unistdio/u16-vsnprintf: New file.
38363         * modules/unistdio/u16-vsprintf: New file.
38364         * modules/unistdio/u16-u16-asnprintf: New file.
38365         * modules/unistdio/u16-u16-asprintf: New file.
38366         * modules/unistdio/u16-u16-snprintf: New file.
38367         * modules/unistdio/u16-u16-sprintf: New file.
38368         * modules/unistdio/u16-u16-vasnprintf: New file.
38369         * modules/unistdio/u16-u16-vasprintf: New file.
38370         * modules/unistdio/u16-u16-vsnprintf: New file.
38371         * modules/unistdio/u16-u16-vsprintf: New file.
38372         * modules/unistdio/u32-asnprintf: New file.
38373         * modules/unistdio/u32-asprintf: New file.
38374         * modules/unistdio/u32-printf-parse: New file.
38375         * modules/unistdio/u32-snprintf: New file.
38376         * modules/unistdio/u32-sprintf: New file.
38377         * modules/unistdio/u32-vasnprintf: New file.
38378         * modules/unistdio/u32-vasprintf: New file.
38379         * modules/unistdio/u32-vsnprintf: New file.
38380         * modules/unistdio/u32-vsprintf: New file.
38381         * modules/unistdio/u32-u32-asnprintf: New file.
38382         * modules/unistdio/u32-u32-asprintf: New file.
38383         * modules/unistdio/u32-u32-snprintf: New file.
38384         * modules/unistdio/u32-u32-sprintf: New file.
38385         * modules/unistdio/u32-u32-vasnprintf: New file.
38386         * modules/unistdio/u32-u32-vasprintf: New file.
38387         * modules/unistdio/u32-u32-vsnprintf: New file.
38388         * modules/unistdio/u32-u32-vsprintf: New file.
38389         * modules/unistdio/ulc-asnprintf-tests: New file.
38390         * modules/unistdio/ulc-vasnprintf-tests: New file.
38391         * modules/unistdio/ulc-vasprintf-tests: New file.
38392         * modules/unistdio/ulc-vsnprintf-tests: New file.
38393         * modules/unistdio/ulc-vsprintf-tests: New file.
38394         * modules/unistdio/u8-asnprintf-tests: New file.
38395         * modules/unistdio/u8-vasnprintf-tests: New file.
38396         * modules/unistdio/u8-vasprintf-tests: New file.
38397         * modules/unistdio/u8-vsnprintf-tests: New file.
38398         * modules/unistdio/u8-vsprintf-tests: New file.
38399         * modules/unistdio/u16-asnprintf-tests: New file.
38400         * modules/unistdio/u16-vasnprintf-tests: New file.
38401         * modules/unistdio/u16-vasprintf-tests: New file.
38402         * modules/unistdio/u16-vsnprintf-tests: New file.
38403         * modules/unistdio/u16-vsprintf-tests: New file.
38404         * modules/unistdio/u32-asnprintf-tests: New file.
38405         * modules/unistdio/u32-vasnprintf-tests: New file.
38406         * modules/unistdio/u32-vasprintf-tests: New file.
38407         * modules/unistdio/u32-vsnprintf-tests: New file.
38408         * modules/unistdio/u32-vsprintf-tests: New file.
38409         * MODULES.html.sh (Unicode string functions): Add the new modules.
38410
38411 2007-07-01  Bruno Haible  <bruno@clisp.org>
38412
38413         * lib/sprintf.c (sprintf): Limit the available length estimation,
38414         to avoid address wraparound.
38415         * lib/vsprintf.c (vsprintf): Likewise.
38416         * modules/sprintf-posix (Dependencies): Add stdint.
38417         * modules/vsprintf-posix (Dependencies): Likewise.
38418
38419 2007-07-01  Bruno Haible  <bruno@clisp.org>
38420
38421         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
38422         Windows PATH as well. Conservative double-quoting. Comments.
38423
38424 2007-07-01  Bruno Haible  <bruno@clisp.org>
38425             Eric Blake  <ebb9@byu.net>
38426             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38427
38428         * gnulib-tool (self_abspathname): Fix algorithm to cope with
38429         empty components in $PATH, denoting '.'.
38430
38431 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38432
38433         * gnulib-tool: Fix indentation.
38434         (func_create_megatestdir): Likewise.
38435         Report by Bruno Haible.
38436
38437 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38438
38439         Sync from Automake.
38440         * build-aux/gnupload: Fix shell portability issues with for loops.
38441         Report by Karl Berry.
38442
38443 2007-06-29  Simon Josefsson  <simon@josefsson.org>
38444
38445         * build-aux/maint.mk (POURL): Use translationproject.org.
38446
38447 2007-06-27  Simon Josefsson  <simon@josefsson.org>
38448             Bruno Haible  <bruno@clisp.org>
38449
38450         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
38451         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
38452         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
38453         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
38454         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
38455
38456 2007-06-27  Bruno Haible  <bruno@clisp.org>
38457
38458         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
38459         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
38460
38461 2007-06-26  Karl Berry  <karl@gnu.org>
38462
38463         * MODULES.html.sh: remove xreadlink-with-size.
38464
38465 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38466
38467         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
38468         method that I hope also handles the double-include problem noted
38469         by Bruno Haible in
38470         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
38471
38472 2007-06-23  Bruno Haible  <bruno@clisp.org>
38473
38474         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38475         Don't let the 'mostlyclean' target fail if the last subdirectory could
38476         not be removed.
38477         Reported by Karl Berry.
38478
38479 2007-06-23  Bruno Haible  <bruno@clisp.org>
38480
38481         * gnulib-tool (echo): Add a speedier workaround for ksh.
38482         * tests/test-echo.sh: Likewise.
38483
38484 2007-06-23  Bruno Haible  <bruno@clisp.org>
38485
38486         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
38487         * tests/test-echo.sh: Likewise.
38488
38489 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38490
38491         * gnulib-tool (IFS): Initialize early, so we don't set it to
38492         empty later.
38493         (self_abspathname): Rewrite algorithm to set it, reindent.
38494         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
38495         (func_create_megatestdir): Merge some sed scripts.
38496
38497 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38498
38499         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
38500         exposed by Sun Studio 11 cc on Solaris 8.
38501
38502 2007-06-22  Bruno Haible  <bruno@clisp.org>
38503
38504         * gnulib-tool (echo): Ensure the echo primitive does not interpret
38505         backslashes.
38506         * tests/test-echo.sh: New file.
38507
38508 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38509
38510         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
38511         simplify `sed_replace_build_aux' scripts, they are portable but
38512         echoing them with `echo' is not.
38513         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
38514
38515 2007-06-21  Karl Berry  <karl@gnu.org>
38516
38517         * config/srclist.txt: guess we can't handle the licenses via
38518         srclist at the moment.
38519
38520 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38521
38522         * MODULES.html.sh: Add include_next.
38523         * modules/include_next: New file.
38524
38525 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38526
38527         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
38528         INCLUDE_NEXT.
38529         (gl_CHECK_NEXT_HEADERS): New macro.
38530         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
38531         the obsolescent gl_ABSOLUTE_HEADER.
38532         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
38533         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
38534         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38535         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38536         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38537         * m4/math_h.m4 (gl_MATH_H): Likewise.
38538         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38539         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38540         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38541         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38542         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38543         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38544         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38545         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38546         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38547         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38548         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38549         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38550         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38551         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38552         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38553         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38554         * m4/inttypes.m4 (gl_INTTYPES_H): Define
38555         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
38556         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38557         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
38558         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
38559         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
38560         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
38561         * lib/float_.h: Likewise.
38562         * lib/inttypes_.h: Likewise.
38563         * lib/math_.h: Likewise.
38564         * lib/search_.h: Likewise.
38565         * lib/signal_.h: Likewise.
38566         * lib/stdint_.h: Likewise.
38567         * lib/stdio_.h: Likewise.
38568         * lib/stdlib_.h: Likewise.
38569         * lib/string_.h: Likewise.
38570         * lib/sys_stat_.h: Likewise.
38571         * lib/sys_time_.h: Likewise.
38572         * lib/time_.h: Likewise.
38573         * lib/unistd_.h: Likewise.
38574         * lib/wchar_.h: Likewise.
38575         * lib/wctype_.h: Likewise.
38576         * lib/dirent_.h: Likewise.
38577         * lib/iconv_.h: Likewise.
38578         * lib/locale_.h: Likewise.
38579         * lib/netinet_in_.h: Likewise.
38580         * lib/sys_select_.h: Likewise.
38581         * lib/sys_socket_.h: Likewise.
38582         * lib/sysexits_.h: Likewise.
38583         * modules/fcntl (Depends-on): Depend on include_next, not
38584         absolute_header.
38585         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
38586         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
38587         * modules/fchdir: Likewise.
38588         * modules/float: Likewise.
38589         * modules/iconv_open: Likewise.
38590         * modules/inttypes: Likewise.
38591         * modules/locale: Likewise.
38592         * modules/math: Likewise.
38593         * modules/netinet_in: Likewise.
38594         * modules/search: Likewise.
38595         * modules/signal: Likewise.
38596         * modules/stdint: Likewise.
38597         * modules/stdio: Likewise.
38598         * modules/stdlib: Likewise.
38599         * modules/string: Likewise.
38600         * modules/sys_select: Likewise.
38601         * modules/sys_socket: Likewise.
38602         * modules/sys_stat: Likewise.
38603         * modules/sys_time: Likewise.
38604         * modules/sysexits: Likewise.
38605         * modules/time: Likewise.
38606         * modules/unistd: Likewise.
38607         * modules/wchar: Likewise.
38608         * modules/wctype: Likewise.
38609         * modules/sys_stat: Change maintainer to "all".
38610         * modules/unistd: Likewise.
38611
38612 2007-06-20  Karl Berry  <karl@gnu.org>
38613
38614         * config/srclist.txt: track www changes in license files.
38615
38616 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38617
38618         * build-aux/bootstrap: Remove stray dot.
38619         Make sure build_aux settings are honored when linking
38620         gnulib_extra_files.
38621
38622 2007-06-19  Eric Blake  <ebb9@byu.net>
38623
38624         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38625         Allow compilation on cygwin.
38626
38627 2007-06-19  Jim Meyering  <jim@meyering.net>
38628
38629         xreadlink-with-size: Remove module.  No longer used.
38630         Ex-callers now use xreadlink or mreadlink-with-size.
38631         * modules/xreadlink-with-size: Remove module.
38632         * lib/xreadlink-with-size.c: Remove file.
38633         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38634         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38635         just before the function definition *is* accurate.
38636
38637         Eliminate one way canonicalize_filename_mode could exit.
38638         * lib/canonicalize.c (canonicalize_filename_mode):
38639         Use mreadlink_with_size, not xreadlink_with_size.
38640
38641 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38642
38643         Detect porting problems to FreeBSD/arm, which has time_t wider than
38644         long int.  Original problem reported for GNU diff by Xin Li in
38645         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38646         * modules/getdate (Depends-on): Add intprops, verify.
38647         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38648         is an integer type no wider than long int.
38649
38650 2007-06-18  Jim Meyering  <jim@meyering.net>
38651
38652         New module: mreadlink-with-size.
38653         * MODULES.html.sh: Add mreadlink-with-size.
38654         * modules/mreadlink-with-size: New module
38655         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38656         not xreadlink-with-size.
38657         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38658
38659 2007-06-16  Bruno Haible  <bruno@clisp.org>
38660
38661         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38662         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38663         Reported by Gary V. Vaughan <gary@gnu.org>.
38664
38665 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38666
38667         Revamp lchown so that it lives in unistd.h where it belongs.
38668         * lib/lchown.h: Remove.
38669         * lib/dirchownmod.c: Don't include lib/lchown.h.
38670         * lib/fchownat.c: Likewise.
38671         * lib/openat.c: Likewise.
38672         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38673         does not follow symlinks.
38674         (EOPNOTSUPP): Define if not defined.
38675         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38676         is defined to 0.
38677         (lchown): New decl.
38678         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38679         Do not check for lchown decl.
38680         Set REPLACE_LCHOWN.
38681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38682         REPLACE_LCHOWN.
38683         * modules/chown: Make it clear it follows symlinks.
38684         * modules/lchown: Make it clear it doesn't follow symlinks.
38685         (Files): Remove lib/lchown.h
38686         (Depends-on): Add unistd.
38687         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38688         (Include): Include <unistd.h>, not "lchown.h".
38689         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38690         REPLACE_LCHOWN.
38691
38692 2007-06-15  Jim Meyering  <jim@meyering.net>
38693
38694         Change license (GPL to LGPL) of fsusage and dependents.
38695         * modules/fsusage (License): Change to LGPL.
38696         * modules/full-read (License): Likewise.
38697         * modules/full-write (License): Likewise.
38698         * modules/safe-read (License): Likewise.
38699         * modules/safe-write (License): Likewise.
38700
38701 2007-06-14  Ben Pfaff  <blp@gnu.org>
38702
38703         Missing part of allocsa -> malloca transition.
38704         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38705         gl_MALLOCA.
38706
38707 2007-06-12  Bruno Haible  <bruno@clisp.org>
38708
38709         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38710         to ia64, x86_64, i386.
38711         Reported by Eric Blake.
38712
38713 2007-06-12  Bruno Haible  <bruno@clisp.org>
38714
38715         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38716         cross-compiling to x86_64.
38717
38718 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38719
38720         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38721         glitch reported by Ralf Wildenhues in
38722         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38723
38724         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38725         Vin Shelton.
38726
38727 2007-06-11  Bruno Haible  <bruno@clisp.org>
38728
38729         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38730         replacement string.
38731         Reported by Eric Blake.
38732
38733 2007-06-10  Bruno Haible  <bruno@clisp.org>
38734
38735         Prepare vasnprintf code for use with Unicode strings.
38736         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38737         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38738         TYPE_U32_STRING.
38739         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38740         a_u32_string variants.
38741         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38742         * lib/printf-args.c: Don't include config.h and the specification
38743         header if PRINTF_FETCHARGS is already defined.
38744         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38745         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38746         TYPE_U16_STRING, TYPE_U32_STRING.
38747         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38748         u16_directive, u16_directives, u32_directive, u32_directives): New
38749         types.
38750         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38751         New declarations.
38752         * lib/printf-parse.c: Don't include config.h and the specification
38753         header if PRINTF_PARSE is already defined. Eliminate the set of
38754         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38755         them now. Include c-ctype.h.
38756         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38757         directive and CHAR_T_ONLY_ASCII.
38758         * lib/vasnprintf.c: Don't include config.h and the specification header
38759         if VASNPRINTF is already defined.
38760         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38761         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38762         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38763         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38764         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38765         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38766         code accordingly.
38767         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38768         pad_ourselves also in this case, with the 'c' and 's' directives, and
38769         with a different notion of "width".
38770         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38771
38772 2007-06-10  Bruno Haible  <bruno@clisp.org>
38773
38774         * modules/unistr/u32-mbsnlen: New file.
38775         * lib/unistr/u32-mbsnlen.c: New file.
38776
38777         * modules/unistr/u16-mbsnlen: New file.
38778         * lib/unistr/u16-mbsnlen.c: New file.
38779
38780         * modules/unistr/u8-mbsnlen: New file.
38781         * lib/unistr/u8-mbsnlen.c: New file.
38782
38783         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38784         declarations.
38785
38786 2007-06-10  Bruno Haible  <bruno@clisp.org>
38787
38788         * lib/string_.h (mbsnlen): New declaration.
38789         * lib/mbsnlen.c: New file.
38790         * m4/mbsnlen.m4: New file.
38791         * modules/mbsnlen: New file.
38792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38793         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38794         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38795
38796 2007-06-10  Bruno Haible  <bruno@clisp.org>
38797
38798         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38799
38800 2007-06-10  Bruno Haible  <bruno@clisp.org>
38801
38802         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38803         * lib/mbuiter.h: Likewise.
38804
38805 2007-06-10  Bruno Haible  <bruno@clisp.org>
38806
38807         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38808         declaration.
38809
38810 2007-06-10  Karl Berry  <karl@gnu.org>
38811
38812         * config/srclist.txt: remove gettext entries, Bruno prefers
38813         to update individually.
38814
38815 2007-06-10  Bruno Haible  <bruno@clisp.org>
38816
38817         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38818         'maxlen'. Ensure only length + width bytes are allocated, not
38819         length + 1 + width.
38820
38821 2007-06-09  Bruno Haible  <bruno@clisp.org>
38822
38823         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38824         (CHAR_T): Remove macro.
38825         (VASNPRINTF): Update.
38826
38827 2007-06-09  Bruno Haible  <bruno@clisp.org>
38828
38829         * MODULES.html.sh (Unicode string functions): Add the new modules.
38830
38831         * modules/uniconv/u32-conv-to-enc: New file.
38832         * lib/uniconv/u32-conv-to-enc.c: New file.
38833         * modules/uniconv/u32-conv-to-enc-tests: New file.
38834         * tests/uniconv/test-u32-conv-to-enc.c: New file.
38835
38836         * modules/uniconv/u16-conv-to-enc: New file.
38837         * lib/uniconv/u16-conv-to-enc.c: New file.
38838         * lib/uniconv/u-conv-to-enc.h: New file.
38839         * modules/uniconv/u16-conv-to-enc-tests: New file.
38840         * tests/uniconv/test-u16-conv-to-enc.c: New file.
38841
38842         * modules/uniconv/u8-conv-to-enc: New file.
38843         * lib/uniconv/u8-conv-to-enc.c: New file.
38844         * modules/uniconv/u8-conv-to-enc-tests: New file.
38845         * tests/uniconv/test-u8-conv-to-enc.c: New file.
38846
38847         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38848         u32_conv_to_encoding): New declarations.
38849
38850 2007-06-09  Bruno Haible  <bruno@clisp.org>
38851
38852         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
38853
38854 2007-06-09  Bruno Haible  <bruno@clisp.org>
38855
38856         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
38857         * modules/malloca: Renamed from modules/allocsa, updated.
38858         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
38859         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
38860         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
38861         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
38862         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
38863         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
38864         * modules/xmalloca: Renamed from modules/xallocsa, updated.
38865         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
38866         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
38867         * modules/c-strcasestr (Depends-on): Update.
38868         * lib/c-strcasestr.c: Update.
38869         * modules/c-strstr (Depends-on): Update.
38870         * lib/c-strstr.c: Update.
38871         * modules/canonicalize-lgpl (Depends-on): Update.
38872         * lib/canonicalize-lgpl.c: Update.
38873         * modules/clean-temp (Depends-on): Update.
38874         * lib/clean-temp.c: Update.
38875         * modules/csharpcomp (Depends-on): Update.
38876         * lib/csharpcomp.c: Update.
38877         * modules/csharpexec (Depends-on): Update.
38878         * lib/csharpexec.c: Update.
38879         * modules/javacomp (Depends-on): Update.
38880         * lib/javacomp.c: Update.
38881         * modules/javaexec (Depends-on): Update.
38882         * lib/javaexec.c: Update.
38883         * modules/mbscasestr (Depends-on): Update.
38884         * lib/mbscasestr.c: Update.
38885         * modules/mbsstr (Depends-on): Update.
38886         * lib/mbsstr.c: Update.
38887         * modules/setenv (Depends-on): Update.
38888         * lib/setenv.c: Update.
38889         * modules/strcasestr (Depends-on): Update.
38890         * lib/strcasestr.c: Update.
38891         * modules/striconveha (Depends-on): Update.
38892         * lib/striconveha.c: Update.
38893         * modules/relocatable-prog-wrapper (Files): Update.
38894         * lib/relocwrapper.c: Update.
38895         * build-aux/install-reloc: Update.
38896         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
38897
38898 2007-06-08  Bruno Haible  <bruno@clisp.org>
38899
38900         Port to uClibc.
38901         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
38902         * lib/fpurge.c (fpurge): Likewise.
38903         * lib/freading.c (freading): Likewise.
38904         * lib/fseeko.c (rpl_fseeko): Likewise.
38905         * lib/fseterr.c (fseterr): Likewise.
38906         * lib/fwriting.c (fwriting): Likewise.
38907         * tests/test-fflush.c (main): Avoid a failure on uClibc.
38908
38909 2007-06-08  Bruno Haible  <bruno@clisp.org>
38910
38911         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
38912         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
38913         * modules/gettext (Files): Add m4/intlmacosx.m4.
38914
38915 2007-06-07  Bruno Haible  <bruno@clisp.org>
38916
38917         * modules/localename-tests: New file.
38918         * tests/test-localename.c: New file.
38919
38920         New module 'localename'.
38921         * lib/localename.h: New file.
38922         * lib/localename.c: New file, from GNU gettext.
38923         * m4/localename.m4: New file.
38924         * modules/localename: New file.
38925
38926 2007-06-07  Bruno Haible  <bruno@clisp.org>
38927
38928         Work around the lack of <wchar.h> on some builds of uClibc.
38929         * doc/headers/wchar.texi: Update.
38930         * lib/wchar_.h: Include <wchar.h> only if it exists.
38931         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
38932         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
38933         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
38934         doesn't exist.
38935         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
38936         * modules/mbfile (Depends-on): Add wchar.
38937         * modules/mbiter (Depends-on): Likewise.
38938         * modules/mbuiter (Depends-on): Likewise.
38939         Reported by Simon Josefsson.
38940
38941 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
38942
38943         Work around problem reported by Steven M. Schweda in
38944         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
38945         Tru64 5.1B with the Compaq compiler environment installed declares
38946         an 'isblank' function but does not define it in the C library.
38947         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
38948         * lib/regex_internal.h (isblank): Likewise.
38949         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
38950         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38951
38952 2007-06-05  Bruno Haible  <bruno@clisp.org>
38953
38954         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
38955         ia64.
38956         * modules/printf-safe: New file.
38957         * modules/fprintf-posix (Depends-on): Add printf-safe.
38958         * modules/printf-posix (Depends-on): Likewise.
38959         * modules/snprintf-posix (Depends-on): Likewise.
38960         * modules/sprintf-posix (Depends-on): Likewise.
38961         * modules/vasnprintf-posix (Depends-on): Likewise.
38962         * modules/vasprintf-posix (Depends-on): Likewise.
38963         * modules/vfprintf-posix (Depends-on): Likewise.
38964         * modules/vprintf-posix (Depends-on): Likewise.
38965         * modules/vsnprintf-posix (Depends-on): Likewise.
38966         * modules/vsprintf-posix (Depends-on): Likewise.
38967         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
38968         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
38969         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
38970         "no" on i386, x86_64, ia64.
38971         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
38972         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38973         on i386, x86_64, ia64.
38974         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
38975         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38976         on i386, x86_64, ia64.
38977         * tests/test-vasnprintf-posix.c: Include float.h.
38978         (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-vasprintf-posix.c: Include float.h.
38982         (LDBL80_WORDS): New macro.
38983         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38984         on i386, x86_64, ia64.
38985         * tests/test-snprintf-posix.c: Include float.h.
38986         * tests/test-sprintf-posix.c: Likewise.
38987         * tests/test-vsnprintf-posix.c: Likewise.
38988         * tests/test-vsprintf-posix.c: Likewise.
38989
38990 2007-06-05  Bruno Haible  <bruno@clisp.org>
38991
38992         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
38993         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
38994         non-IEEE numbers on i386, x86_64, ia64.
38995         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
38996         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
38997         * tests/test-isnanl.h: Include float.h.
38998         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
38999
39000 2007-06-05  Bruno Haible  <bruno@clisp.org>
39001
39002         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
39003         also the %a / %A. Handle the %a / %A code before this extra handling.
39004
39005 2007-06-05  Bruno Haible  <bruno@clisp.org>
39006
39007         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
39008         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
39009
39010 2007-06-05  Bruno Haible  <bruno@clisp.org>
39011
39012         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
39013         typo in variable name.
39014
39015 2007-06-05  Eric Blake  <ebb9@byu.net>
39016
39017         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
39018         Reported by Simon Josefsson.
39019
39020 2007-06-04  Bruno Haible  <bruno@clisp.org>
39021
39022         Avoid test failures on some PowerPC platforms.
39023         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
39024         Define differently for PowerPC.
39025         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
39026         Reported by Gary V. Vaughan <gary@gnu.org>.
39027
39028 2007-06-02  Bruno Haible  <bruno@clisp.org>
39029
39030         Fix test-stdint failure on FreeBSD/ia64.
39031         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
39032         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
39033         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
39034         * doc/headers/stdint.texi: Update.
39035
39036 2007-06-01  Bruno Haible  <bruno@clisp.org>
39037
39038         * tests/test-binary-io.c (main): Pass a third argument to open().
39039         Reported by Gary V. Vaughan <gary@gnu.org>.
39040
39041 2007-06-01  Bruno Haible  <bruno@clisp.org>
39042
39043         * doc/functions/frexpl.texi: Update for mingw.
39044
39045 2007-06-01  Bruno Haible  <bruno@clisp.org>
39046
39047         * tests/test-lseek.c (main): Disable test of errno for invalid third
39048         argument.
39049         * doc/functions/lseek.texi: Update.
39050         Reported by Gary V. Vaughan <gary@gnu.org>.
39051
39052 2007-05-28  Bruno Haible  <bruno@clisp.org>
39053
39054         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
39055
39056 2007-05-31  Eric Blake  <ebb9@byu.net>
39057
39058         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
39059         cross compiling.
39060
39061 2007-05-30  Eric Blake  <ebb9@byu.net>
39062         and Bruno Haible  <bruno@clisp.org>
39063
39064         Work around mingw test failures exposed by m4-1.4.9b.
39065         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
39066         * tests/test-unistd.c: Disable uid_t and git_t tests for the
39067         moment.
39068
39069 2007-05-30  Bruno Haible  <bruno@clisp.org>
39070
39071         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
39072         assuming that they are closed. Needed on HP-UX 11.
39073
39074 2007-05-29  Bruno Haible  <bruno@clisp.org>
39075
39076         Fix a problem with #include_next.
39077         * lib/dirent_.h: Split the double-inclusion guard.
39078         * lib/fcntl_.h: Likewise.
39079         * lib/float_.h: Likewise.
39080         * lib/iconv_.h: Likewise.
39081         * lib/inttypes_.h: Likewise.
39082         * lib/locale_.h: Likewise.
39083         * lib/math_.h: Likewise.
39084         * lib/netinet_in_.h: Likewise.
39085         * lib/search_.h: Likewise.
39086         * lib/signal_.h: Likewise.
39087         * lib/stdint_.h: Likewise.
39088         * lib/stdio_.h: Likewise.
39089         * lib/stdlib_.h: Likewise.
39090         * lib/string_.h: Likewise.
39091         * lib/sys_select_.h: Likewise.
39092         * lib/sys_socket_.h: Likewise.
39093         * lib/sys_stat_.h: Likewise.
39094         * lib/sys_time_.h: Likewise.
39095         * lib/sysexits_.h: Likewise.
39096         * lib/time_.h: Likewise.
39097         * lib/unistd_.h: Likewise.
39098         * lib/wchar_.h: Likewise.
39099         * lib/wctype_.h: Likewise.
39100
39101 2007-05-29  Bruno Haible  <bruno@clisp.org>
39102
39103         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
39104         for the moment.
39105
39106 2007-05-29  Bruno Haible  <bruno@clisp.org>
39107
39108         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
39109         invocation.
39110         Reported by Eric Blake.
39111
39112 2007-05-29  Bruno Haible  <bruno@clisp.org>
39113
39114         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
39115         compiling case.
39116
39117 2007-05-29  Eric Blake  <ebb9@byu.net>
39118             Bruno Haible  <bruno@clisp.org>
39119
39120         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
39121         cross compiles.
39122
39123 2007-05-28  Eric Blake  <ebb9@byu.net>
39124
39125         * modules/closein-tests (test_closein_LDADD): Support test on
39126         cygwin with libtool.
39127
39128 2007-05-28  Bruno Haible  <bruno@clisp.org>
39129
39130         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
39131         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39132         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39133         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39134         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39135         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39136         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39137         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39138         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39139
39140 2007-05-28  Eric Blake  <ebb9@byu.net>
39141
39142         Unconditionally include <config.h> in unit tests.
39143         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
39144         * tests/test-allocsa.c, tests/test-arcfour.c,
39145         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
39146         tests/test-array_list.c, tests/test-array_oset.c,
39147         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
39148         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
39149         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
39150         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
39151         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
39152         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
39153         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
39154         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
39155         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
39156         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
39157         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
39158         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
39159         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
39160         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
39161         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
39162         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
39163         test-md5.c, test-memmem.c, test-printf-posix.c,
39164         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
39165         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
39166         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
39167         test-strcasestr.c, test-striconv.c, test-striconveh.c,
39168         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
39169         test-vasnprintf-posix2.c, test-vasnprintf.c,
39170         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
39171         test-vfprintf-posix.c, test-vprintf-posix.c,
39172         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
39173         test-xvasprintf.c: Likewise.
39174
39175 2007-05-28  Bruno Haible  <bruno@clisp.org>
39176
39177         * gnulib-tool (func_import): Remember the --with-tests command-line
39178         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
39179         Reported by Eric Blake.
39180
39181 2007-05-28  Bruno Haible  <bruno@clisp.org>
39182
39183         * modules/ftell-tests: New file.
39184         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
39185         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
39186
39187         * lib/ftell.c: New file.
39188         * modules/ftell: New file.
39189         * m4/ftell.m4: New file.
39190         * doc/functions/ftell.texi: Update.
39191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
39192         REPLACE_FTELL.
39193         * lib/stdio_.h (rpl_ftell): New declaration.
39194         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
39195         REPLACE_FTELL.
39196
39197 2007-05-28  Eric Blake  <ebb9@byu.net>
39198
39199         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
39200
39201 2007-05-28  Bruno Haible  <bruno@clisp.org>
39202
39203         * modules/fseek-tests: New file.
39204         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
39205         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
39206
39207         * lib/fseek.c: New file.
39208         * modules/fseek: New file.
39209         * m4/fseek.m4: New file.
39210         * doc/functions/fseek.texi: Update.
39211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
39212         REPLACE_FSEEK.
39213         * lib/stdio_.h (rpl_fseek): New declaration.
39214         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
39215         REPLACE_FSEEK.
39216
39217 2007-05-28  Bruno Haible  <bruno@clisp.org>
39218
39219         * lib/stdio_.h (fflush): More comments.
39220
39221 2007-05-28  Bruno Haible  <bruno@clisp.org>
39222
39223         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
39224         runtime test.
39225
39226 2007-05-28  Eric Blake  <ebb9@byu.net>
39227
39228         Improve lseek module.
39229         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
39230         * lib/unistd_.h (lseek): Scale back link warning message.
39231         * tests/test-lseek.c: Beef up test.
39232         * tests/test-lseek.sh: Exercise more facets of lseek.
39233         Reported by Bruno Haible.
39234
39235 2007-05-28  Bruno Haible  <bruno@clisp.org>
39236
39237         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
39238         to define.
39239
39240 2007-05-27  Bruno Haible  <bruno@clisp.org>
39241
39242         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
39243
39244 2007-05-27  Bruno Haible  <bruno@clisp.org>
39245
39246         * modules/openmp: New file.
39247         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
39248         Noah Misch.
39249
39250 2007-05-26  Bruno Haible  <bruno@clisp.org>
39251
39252         * modules/chdir-long (Depends-on): Add fchdir.
39253         * modules/chdir-safer (Depends-on): Likewise.
39254         * modules/fts (Depends-on): Likewise.
39255         * modules/fts-lgpl (Depends-on): Likewise.
39256         * modules/openat (Depends-on): Likewise.
39257         * modules/savewd (Depends-on): Likewise.
39258
39259 2007-05-24  Eric Blake  <ebb9@byu.net>
39260
39261         Fix lseek on mingw.
39262         * modules/lseek: New module.
39263         * m4/lseek.m4: New file.
39264         * lib/lseek.c: New file.
39265         * modules/lseek-tests: New file.
39266         * tests/test-lseek.c: New file.
39267         * tests/test-lseek.sh: New file.
39268         * MODULES.html.sh: Document lseek module.
39269         * modules/fflush (Depends-on): Add lseek, fseeko.
39270         * modules/fseeko (Depends-on): Likewise.
39271         * modules/ftello (Depends-on): Likewise.
39272         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
39273         broken.
39274         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
39275         broken.
39276         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
39277         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
39278         * lib/ftello.c (rpl_ftello): Likewise.
39279         * tests/test-fseeko.c (main): Test this.
39280         * tests/test-fseeko.sh: Likewise.
39281         * tests/test-ftello.c (main): Likewise.
39282         * tests/test-ftello.sh: Likewise.
39283         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
39284         implies replacing fseek.
39285         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
39286         HAVE_FTELLO.
39287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
39288         * modules/unistd (Makefile.am): Likewise.
39289         * lib/unistd_.h (lseek): Declare a replacement.
39290         * doc/functions/lseek.texi (lseek): Document this fix.
39291         * doc/functions/fseek.texi (fseek): Likewise.
39292         * doc/functions/ftell.texi (ftell): Likewise.
39293
39294 2007-05-24  Bruno Haible  <bruno@clisp.org>
39295
39296         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
39297         in the printed representation of a NaN.
39298         * tests/test-vasprintf-posix.c (test_function): Likewise.
39299         * tests/test-snprintf-posix.h (test_function): Likewise.
39300         * tests/test-sprintf-posix.h (test_function): Likewise.
39301         Reported by Eric Blake.
39302
39303 2007-05-23  Eric Blake  <ebb9@byu.net>
39304
39305         Fix fseeko/ftello on cygwin 1.5.24.
39306         * doc/functions/fseeko.texi (fseeko): Document the fix.
39307         * doc/functions/ftello.texi (ftello): Document the fix.
39308         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
39309         * doc/functions/stdout.text (stdout): New file.
39310         * doc/functions/stderr.text (stderr): New file.
39311         * doc/gnulib.texi (Function Substitutes): Use new files.
39312         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
39313         prior to 1.7.0.
39314         * tests/test-ftello.c (main): Likewise for ftello.
39315         * tests/test-fseeko.sh: New file.
39316         * tests/test-ftello.sh: New file.
39317         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
39318         with seekable stdin.
39319         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
39320         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
39321         (gl_REPLACE_FSEEKO): New macro.
39322         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
39323         * modules/fseeko (Files): Distribute fseeko.c.
39324         * modules/ftello (Files): Distribute ftello.c.
39325         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
39326         mode.
39327         * lib/ftello.c (rpl_ftello): New file.
39328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
39329         fseeko, ftello.
39330         (gl_STDIN_LARGE_OFFSET): New macro.
39331         * modules/stdio (Makefile.am): Perform the replacement.
39332         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
39333
39334 2007-05-23  Bruno Haible  <bruno@clisp.org>
39335
39336         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
39337         GNULIB_POSIXCHECK is defined.
39338
39339 2007-05-21  Bruno Haible  <bruno@clisp.org>
39340
39341         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
39342         Check also the output for NaN arguments. When cross-compiling, guess
39343         no on IRIX.
39344         * lib/vasnprintf.c: Update comments.
39345         * tests/test-vasnprintf-posix.c (strisnan): New function.
39346         (test_function): Use it.
39347         * tests/test-vasprintf-posix.c (strisnan): New function.
39348         (test_function): Use it.
39349         * tests/test-snprintf-posix.h (strisnan): New function.
39350         (test_function): Use it.
39351         * tests/test-sprintf-posix.h (strisnan): New function.
39352         (test_function): Use it.
39353         Reported by Eric Blake.
39354
39355 2007-05-20  Bruno Haible  <bruno@clisp.org>
39356
39357         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
39358         numbers that fails on BeOS.
39359         * doc/functions/frexpl.texi: Update.
39360
39361 2007-05-20  Jim Meyering  <jim@meyering.net>
39362
39363         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
39364         forced upon us by glibc-2.6.
39365
39366 2007-05-20  Bruno Haible  <bruno@clisp.org>
39367
39368         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
39369         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
39370         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
39371         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
39372         NEED_PRINTF_INFINITE.
39373         (is_infinitel): New function.
39374         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
39375         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
39376         gl_PREREQ_VASNPRINTF_INFINITE.
39377         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
39378         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39379         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
39380         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
39381         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
39382         gl_PREREQ_VASNPRINTF_INFINITE.
39383         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39384         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39385         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39386         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39387         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39388         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39389         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39390         * doc/functions/fprintf.texi: Update.
39391         * doc/functions/printf.texi: Update.
39392         * doc/functions/snprintf.texi: Update.
39393         * doc/functions/sprintf.texi: Update.
39394         * doc/functions/vfprintf.texi: Update.
39395         * doc/functions/vprintf.texi: Update.
39396         * doc/functions/vsnprintf.texi: Update.
39397         * doc/functions/vsprintf.texi: Update.
39398
39399 2007-05-20  Bruno Haible  <bruno@clisp.org>
39400
39401         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
39402         was not found in libc.
39403         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
39404
39405 2007-05-20  Bruno Haible  <bruno@clisp.org>
39406
39407         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39408         printed as "-nan" instead of "nan".
39409         * tests/test-vasprintf-posix.c (test_function): Likewise.
39410         * tests/test-snprintf-posix.h (test_function): Likewise.
39411         * tests/test-sprintf-posix.h (test_function): Likewise.
39412         Needed for HP-UX 11.
39413
39414 2007-05-20  Jim Meyering  <jim@meyering.net>
39415
39416         Fix buggy test for the fchownat-deref bug.
39417         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
39418         symlink required for the run-test.  Without it, this test would
39419         always declare that fchownat doesn't work, and client code would
39420         unnecessarily use the replacement function with fixed libc.
39421         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
39422         Reported by Greg Schafer.
39423
39424 2007-05-19  Bruno Haible  <bruno@clisp.org>
39425
39426         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
39427         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
39428         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
39429         Needed for IRIX 6.5 and Solaris 2.5.1.
39430
39431 2007-05-19  Bruno Haible  <bruno@clisp.org>
39432
39433         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
39434         (test_function): Skip tests involving -0.0 on platforms where
39435         -0.0 = 0.0.
39436         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
39437         (test_function): Skip tests involving -0.0 on platforms where
39438         -0.0 = 0.0.
39439         * tests/test-snprintf-posix.h (have_minus_zero): New function.
39440         (test_function): Skip tests involving -0.0 on platforms where
39441         -0.0 = 0.0.
39442         * tests/test-sprintf-posix.h (have_minus_zero): New function.
39443         (test_function): Skip tests involving -0.0 on platforms where
39444         -0.0 = 0.0.
39445         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
39446         tests.
39447         * tests/test-printf-posix.h (test_function): Likewise.
39448         * tests/test-printf-posix.output: Remove all -0.0 related results.
39449         Needed for IRIX 6.5.
39450
39451 2007-05-19  Bruno Haible  <bruno@clisp.org>
39452
39453         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39454         printed as "nan0x7fffffff" instead of "nan".
39455         * tests/test-vasprintf-posix.c (test_function): Likewise.
39456         * tests/test-snprintf-posix.h (test_function): Likewise.
39457         * tests/test-sprintf-posix.h (test_function): Likewise.
39458         * tests/test-fprintf-posix.h (NaN): Remove macro.
39459         (test_function): Remove all NaN related tests.
39460         * tests/test-printf-posix.h (NaN): Remove macro.
39461         (test_function): Remove all NaN related tests.
39462         * tests/test-printf-posix.output: Remove all NaN related results.
39463         Needed for IRIX 6.5.
39464
39465 2007-05-19  Bruno Haible  <bruno@clisp.org>
39466
39467         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
39468         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39469
39470 2007-05-19  Bruno Haible  <bruno@clisp.org>
39471
39472         * lib/float_.h: New file.
39473         * m4/float_h.m4: New file.
39474         * modules/float: New file.
39475         * modules/isnanl (Dependencies): Add float.
39476         * modules/isnanl-nolibm (Dependencies): Likewise.
39477         * modules/mathl (Dependencies): Likewise.
39478         * modules/printf-frexpl (Dependencies): Likewise.
39479         * modules/signbit (Dependencies): Likewise.
39480         * modules/vasnprintf (Dependencies): Likewise.
39481         * doc/headers/float.texi: Update.
39482
39483 2007-05-19  Jim Meyering  <jim@meyering.net>
39484
39485         * lib/utimens.c (gl_futimens): Rename from futimens,
39486         now that glibc-2.6 declares futimens.
39487         * lib/utimens.h: Likewise.
39488
39489 2007-05-19  Bruno Haible  <bruno@clisp.org>
39490
39491         Avoid test failures on mingw.
39492         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
39493         * tests/test-printf-posix.sh: Likewise.
39494         * tests/test-vfprintf-posix.sh: Likewise.
39495         * tests/test-vprintf-posix.sh: Likewise.
39496
39497 2007-05-19  Bruno Haible  <bruno@clisp.org>
39498
39499         Fix *printf result for NaN, Inf, -0.0 on mingw.
39500         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
39501         * lib/vasnprintf.c: Include math.h and isnan.h.
39502         (is_infinite_or_zero): New function.
39503         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
39504         values in the %f, %F, %e, %E, %g, %G directives.
39505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
39506         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39507         gl_PRINTF_INFINITE and test its result. Invoke
39508         gl_PREREQ_VASNPRINTF_INFINITE.
39509         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39510         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39511         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39512         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39513         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39514         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39515         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39516         * doc/functions/fprintf.texi: Update.
39517         * doc/functions/printf.texi: Update.
39518         * doc/functions/snprintf.texi: Update.
39519         * doc/functions/sprintf.texi: Update.
39520         * doc/functions/vfprintf.texi: Update.
39521         * doc/functions/vprintf.texi: Update.
39522         * doc/functions/vsnprintf.texi: Update.
39523         * doc/functions/vsprintf.texi: Update.
39524
39525 2007-05-19  Bruno Haible  <bruno@clisp.org>
39526
39527         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
39528         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
39529         Instead of multiplying with 10^k, set extra_zeroes to k.
39530         (scale10_round_long_double): Remove function.
39531
39532 2007-05-18  Bruno Haible  <bruno@clisp.org>
39533
39534         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
39535         introduced on 2007-05-06.
39536
39537 2007-05-18  Bruno Haible  <bruno@clisp.org>
39538
39539         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
39540         %g directives.
39541         * tests/test-vasprintf-posix.c (test_function): Likewise.
39542         * tests/test-snprintf-posix.h (test_function): Likewise.
39543         * tests/test-sprintf-posix.h (test_function): Likewise.
39544
39545 2007-05-18  Bruno Haible  <bruno@clisp.org>
39546
39547         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
39548         (strmatch): New function.
39549         (test_function): Test the %f directive on numbers of various exponents.
39550         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
39551         (strmatch): New function.
39552         (test_function): Test the %f directive on numbers of various exponents.
39553         * tests/test-snprintf-posix.h (strmatch): New function.
39554         (test_function): Test the %f directive on numbers of various exponents.
39555         * tests/test-sprintf-posix.h (strmatch): New function.
39556         (test_function): Test the %f directive on numbers of various exponents.
39557         * tests/test-snprintf-posix.c (SIZEOF): New macro.
39558         * tests/test-sprintf-posix.c (SIZEOF): New macro.
39559         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
39560         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
39561
39562 2007-05-18  Bruno Haible  <bruno@clisp.org>
39563
39564         Add support for 'long double' number output.
39565         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
39566         * lib/vasnprintf.c: Include math.h and float+.h.
39567         (mp_limb_t): New type.
39568         (GMP_LIMB_BITS): New macro.
39569         (mp_twolimb_t): New type.
39570         (GMP_TWOLIMB_BITS): New macro.
39571         (mpn_t): New type.
39572         (multiply, divide, convert_to_decimal, decode_long_double,
39573         scale10_round_long_double, scale10_round_decimal_long_double,
39574         floorlog10l): New functions.
39575         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
39576         for the %f, %F, %e, %E, %g, %G directives.
39577         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
39578         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39579         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
39580         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
39581         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39582         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39583         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39584         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39585         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39586         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39587         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39588         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
39589         * modules/snprintf-posix (Depends-on): Likewise.
39590         * modules/sprintf-posix (Depends-on): Likewise.
39591         * modules/vasnprintf-posix (Depends-on): Likewise.
39592         * modules/vasprintf-posix (Depends-on): Likewise.
39593         * modules/vfprintf-posix (Depends-on): Likewise.
39594         * modules/vsnprintf-posix (Depends-on): Likewise.
39595         * modules/vsprintf-posix (Depends-on): Likewise.
39596         * modules/vasnprintf (Files): Add lib/float+.h.
39597         * doc/functions/fprintf.texi: Update.
39598         * doc/functions/printf.texi: Update.
39599         * doc/functions/snprintf.texi: Update.
39600         * doc/functions/sprintf.texi: Update.
39601         * doc/functions/vfprintf.texi: Update.
39602         * doc/functions/vprintf.texi: Update.
39603         * doc/functions/vsnprintf.texi: Update.
39604         * doc/functions/vsprintf.texi: Update.
39605
39606 2007-05-18  Bruno Haible  <bruno@clisp.org>
39607
39608         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39609
39610 2007-05-18  Bruno Haible  <bruno@clisp.org>
39611
39612         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39613         for printing 64-bit integers. Needed for mingw.
39614
39615 2007-05-18  Bruno Haible  <bruno@clisp.org>
39616
39617         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39618         gl_FUNC_FREXPL_WORKS.
39619         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39620
39621 2007-05-18  Bruno Haible  <bruno@clisp.org>
39622
39623         * modules/frexpl-nolibm-tests: New file.
39624
39625         * modules/frexpl-nolibm: New file.
39626         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39627
39628 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39629
39630         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39631         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39632         GCC 4.2, which otherwise issues a lot of warnings.
39633         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39634         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39635         Likewise.
39636         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39637         * modules/iconv_open (iconv.h): Likewise.
39638         * modules/locale (locale.h): Likewise.
39639         * modules/netinet_in (netinet/in.h): Likewise.
39640         * modules/sys_select (sys_select.h): Likewise.
39641         * modules/sys_socket (sys/socket.h): Likewise.
39642         * modules/sys_stat (sys/stat.h): Likewise.
39643         * modules/sysexits (sysexits.h): Likewise.
39644         * modules/unistd (unistd.h): Likewise.
39645
39646 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39647
39648         * modules/closein-tests (Makefile.am): Distribute
39649         `test-closein.sh'.
39650
39651 2007-05-17  Bruno Haible  <bruno@clisp.org>
39652
39653         * tests/test-printf-posix.output: Renamed from
39654         tests/test-fprintf-posix.out.
39655         * modules/fprintf-posix-tests: Update.
39656         * modules/printf-posix-tests: Update.
39657         * modules/vfprintf-posix-tests: Update.
39658         * modules/vprintf-posix-tests: Update.
39659         * tests/test-fprintf-posix.sh: Update.
39660         * tests/test-printf-posix.sh: Update.
39661         * tests/test-vfprintf-posix.sh: Update.
39662         * tests/test-vprintf-posix.sh: Update.
39663         Reported by Ralf Wildenhues.
39664
39665 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39666
39667         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
39668         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39669         GCC 4.2, which otherwise issues a lot of warnings.
39670         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39671         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39672         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39673         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39674         it should no longer be needed.
39675         * lib/string_.h: Likewise.
39676         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39677         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39678         * modules/inttypes (inttypes.h): Likewise.
39679         * modules/math (math.h): Likewise.
39680         * modules/search (search.h): Likewise.
39681         * modules/signal (signal.h): Likewise.
39682         * modules/stdint (stdint.h): Likewise.
39683         * modules/stdio (stdio.h): Likewise.
39684         * modules/stdlib (stdlib.h): Likewise.
39685         * modules/string (string.h): Likewise.
39686         * modules/sys_time (sys/time.h): Likewise.
39687         * modules/time (time.h): Likewise.
39688         * modules/wchar (wchar.h): Likewise.
39689         * modules/wctype (wtype.h): Likewise.
39690
39691 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39692
39693         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39694
39695 2007-05-13  Bruno Haible  <bruno@clisp.org>
39696
39697         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39698         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39699         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39700         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39701         (gl_PREREQ_STRTOK_R): Don't require it here.
39702
39703 2007-05-13  Bruno Haible  <bruno@clisp.org>
39704
39705         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39706         when used in C++ mode.
39707
39708 2007-05-12  Bruno Haible  <bruno@clisp.org>
39709
39710         * lib/linebuffer.h: Tweak doc.
39711         * lib/linebuffer.c: Likewise.
39712
39713 2007-05-12  James Youngman  <jay@gnu.org>
39714
39715         * lib/linebuffer.c (readlinebuffer_delim): New function,
39716         like readlinebuffer, but use a caller-specified delimiter.
39717         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39718         as the delimiter.
39719         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39720
39721 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39722
39723         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39724         * modules/openat (Files): Remove openat-die.c.
39725         (Depends-on): Add openat-die.
39726         * modules/openat-die: New module.
39727
39728 2007-05-06  Bruno Haible  <bruno@clisp.org>
39729
39730         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39731         Update with info about Cygwin.
39732         * doc/functions/fprintf.texi: Update.
39733         * doc/functions/printf.texi: Update.
39734         * doc/functions/snprintf.texi: Update.
39735         * doc/functions/sprintf.texi: Update.
39736         * doc/functions/vfprintf.texi: Update.
39737         * doc/functions/vprintf.texi: Update.
39738         * doc/functions/vsnprintf.texi: Update.
39739         * doc/functions/vsprintf.texi: Update.
39740         Reported by Eric Blake.
39741
39742 2007-05-06  Bruno Haible  <bruno@clisp.org>
39743
39744         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39745         padding ourselves for the floating-point directives.
39746         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39747         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39748         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39749         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39750         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39752         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39753         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39754         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39755         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39756         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39757         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39758         * tests/test-snprintf-posix.h (test_function): Also check the width
39759         and some flags in the %f directive.
39760         * tests/test-sprintf-posix.h (test_function): Likewise.
39761         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39762         * tests/test-vasprintf-posix.c (test_function): Likewise.
39763         * doc/functions/fprintf.texi: Update.
39764         * doc/functions/printf.texi: Update.
39765         * doc/functions/snprintf.texi: Update.
39766         * doc/functions/sprintf.texi: Update.
39767         * doc/functions/vfprintf.texi: Update.
39768         * doc/functions/vprintf.texi: Update.
39769         * doc/functions/vsnprintf.texi: Update.
39770         * doc/functions/vsprintf.texi: Update.
39771
39772 2007-05-06  Bruno Haible  <bruno@clisp.org>
39773
39774         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39775         pass the ' flag character to sprintf or snprintf.
39776         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39777         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39778         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39779         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39780         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39781         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39782         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39783         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39784         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39785         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39786         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39787         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39788         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39789         flag.
39790         * tests/test-sprintf-posix.h (test_function): Likewise.
39791         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39792         * tests/test-vasprintf-posix.c (test_function): Likewise.
39793         * doc/functions/fprintf.texi: Update.
39794         * doc/functions/printf.texi: Update.
39795         * doc/functions/snprintf.texi: Update.
39796         * doc/functions/sprintf.texi: Update.
39797         * doc/functions/vfprintf.texi: Update.
39798         * doc/functions/vprintf.texi: Update.
39799         * doc/functions/vsnprintf.texi: Update.
39800         * doc/functions/vsprintf.texi: Update.
39801
39802 2007-05-01  Bruno Haible  <bruno@clisp.org>
39803
39804         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39805
39806 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39807
39808         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39809         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39810
39811 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39812
39813         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39814         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39815         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39816
39817 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39818
39819         * lib/argp-help.c (struct hol_entry): New member `ord'.
39820         (HOL_ENTRY_PTRCMP): Use ord for comparison
39821         (hol_sort): Initialize ord.
39822
39823 2007-05-01  Bruno Haible  <bruno@clisp.org>
39824
39825         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39826         Reported by Eric Blake.
39827         * doc/gnulib.texi (Function Substitutes): Update.
39828
39829 2007-05-01  Bruno Haible  <bruno@clisp.org>
39830
39831         * doc/functions.texi: Remove file, now redundant through
39832         doc/functions/*.texi.
39833
39834 2007-05-01  Bruno Haible  <bruno@clisp.org>
39835
39836         * modules/argp (Depends-on): Add sleep.
39837
39838 2007-05-01  Bruno Haible  <bruno@clisp.org>
39839
39840         * modules/sleep-tests: New file.
39841         * tests/test-sleep.c: New file.
39842
39843         * modules/sleep: New file.
39844         * lib/sleep.c: New file.
39845         * m4/sleep.m4: New file.
39846         * lib/unistd_.h (sleep): New declaration.
39847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
39848         HAVE_SLEEP.
39849         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
39850         * doc/functions/sleep.texi: Document the sleep module.
39851
39852 2007-05-01  Bruno Haible  <bruno@clisp.org>
39853
39854         * lib/sigprocmask.h: Remove file.
39855         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
39856         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
39857         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
39858         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
39859         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
39860         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
39861         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
39862         HAVE_SIGSET_T as a shell variable.
39863         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
39864         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
39865         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
39866         (Depends-on): Add signal. Remove verify.
39867         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
39868         (Include): Mention <signal.h> instead of sigprocmask.h.
39869         * NEWS: Mention the change.
39870         * lib/fatal-signal.c: Don't include sigprocmask.h.
39871
39872 2007-05-01  Bruno Haible  <bruno@clisp.org>
39873
39874         * modules/signal: New file.
39875         * lib/signal_.h: New file.
39876         * m4/signal_h.m4: New file.
39877
39878 2007-05-01  Bruno Haible  <bruno@clisp.org>
39879
39880         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
39881         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
39882         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
39883         HAVE_WCTYPE_CTMP_BUG into wctype.h.
39884
39885 2007-05-01  Bruno Haible  <bruno@clisp.org>
39886
39887         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
39888         configure time.
39889         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
39890         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
39891         * modules/sys_stat (Makefile.am): Substitute their values into
39892         sys/stat.h.
39893
39894 2007-05-01  Bruno Haible  <bruno@clisp.org>
39895
39896         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
39897         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
39898         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
39899
39900 2007-05-01  Bruno Haible  <bruno@clisp.org>
39901
39902         * doc/header/assert.texi: Undo last change: don't mention the gnulib
39903         'assert' module here.
39904
39905 2007-05-01  Bruno Haible  <bruno@clisp.org>
39906
39907         * doc/functions/*.texi: New files.
39908         * doc/functions/google-ranking.txt: New file.
39909         * doc/gnulib.texi (Function Substitutes): New chapter.
39910         (ctime, inet_ntoa): Remove sections.
39911         * doc/ctime.texi: Remove file.
39912         * doc/inet_ntoa.texi: Remove file.
39913         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
39914         dependencies.
39915         (%.info): New rule, specifying a --reference-limit.
39916
39917 2007-05-01  Bruno Haible  <bruno@clisp.org>
39918
39919         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
39920
39921 2007-05-01  Bruno Haible  <bruno@clisp.org>
39922
39923         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
39924         the portability of 'mkdir' to mingw systems.
39925
39926 2007-05-01  Bruno Haible  <bruno@clisp.org>
39927
39928         * doc/headers/google-ranking.txt: New file.
39929
39930 2007-04-30  Eric Blake  <ebb9@byu.net>
39931
39932         Prefer fseeko to fseek.
39933         * modules/getpass (Depends-on): Add fseeko.
39934         * lib/getpass.c (getpass): Use fseeko, not fseek.
39935
39936 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
39937
39938         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
39939         assumes the sorting is stable, while most qsort implementations
39940         are not.  Use argument addresses to ensure they never compare as
39941         equal.
39942
39943         * tests/test-argp-2.sh (usage-indent test): Fix output
39944         (func_compare): Restore diff options
39945         * tests/test-argp.c: Restore #include "progname.h"
39946
39947 2007-04-29  Bruno Haible  <bruno@clisp.org>
39948
39949         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
39950         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39951         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
39952         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39953         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
39954         (configure.ac): Define CHECK_SNPRINTF_POSIX.
39955         (TESTS, check_PROGRAMS): Add test-snprintf.
39956         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
39957         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
39958         (TESTS, check_PROGRAMS): Add test-vsnprintf.
39959         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
39960         assertions that fail on HP-UX, OSF/1, or IRIX.
39961         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
39962
39963 2007-04-29  Bruno Haible  <bruno@clisp.org>
39964
39965         * MODULES.html.sh (posix_functions): Remove 'contents'.
39966
39967 2007-04-29  Karl Berry  <karl@gnu.org>
39968
39969         * config/srclist.txt (gendocs_template_min): new entry.
39970
39971 2007-04-29  Bruno Haible  <bruno@clisp.org>
39972
39973         Work around fpurge bug on BSD systems.
39974         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
39975         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
39976         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
39977         fpurge to rpl_fpurge if the system already has this function.
39978         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
39979         the case where the system already has this function. Correct invariants
39980         on BSD systems.
39981         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
39982         BSD systems.
39983
39984 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39985
39986         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
39987         proposed by Sven Verdoolaege.
39988
39989         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
39990         options.
39991         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
39992         (usage and help tests): Update
39993
39994 2007-04-29  Bruno Haible  <bruno@clisp.org>
39995
39996         * tests/test-fflush.c (main): Use a file of size 17, not 10.
39997         Print more information in case of failure. Disable a test on BeOS.
39998
39999 2007-04-29  Bruno Haible  <bruno@clisp.org>
40000
40001         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
40002         This helps debugging on systems on which no gdb is available.
40003
40004 2007-04-29  Bruno Haible  <bruno@clisp.org>
40005
40006         * lib/freading.h: Improve comments.
40007         * lib/fwriting.h: Likewise.
40008         * tests/test-freading.c (main): Don't check freading immediately after
40009         repositioning. Needed for glibc.
40010
40011 2007-04-29  Bruno Haible  <bruno@clisp.org>
40012
40013         * lib/freading.c (freading): Trivial simplification.
40014
40015 2007-04-28  Bruno Haible  <bruno@clisp.org>
40016
40017         * tests/test-fwriting.c (main): Also test the interaction between
40018         fflush and fwriting.
40019         * modules/fwriting-tests (Depends-on): Add fflush.
40020
40021         * tests/test-freading.c (main): Also test the interaction between
40022         fflush and freading.
40023         * modules/freading-tests (Depends-on): Add fflush.
40024
40025 2007-04-28  Bruno Haible  <bruno@clisp.org>
40026
40027         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
40028         fseeko and ftello.
40029         Suggested by Eric Blake.
40030
40031 2007-04-28  Jim Meyering  <jim@meyering.net>
40032
40033         Avoid false-negative in gl_STDINT_H's C99 conformance test.
40034         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
40035         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
40036
40037 2007-04-27  Eric Blake  <ebb9@byu.net>
40038
40039         * doc/headers/assert.texi (assert.h): Document assert module use.
40040
40041 2007-04-27  Bruno Haible  <bruno@clisp.org>
40042
40043         * doc/headers/*.texi: New files.
40044         * doc/gnulib.texi (Header File Substitutes): New chapter.
40045         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
40046         dependencies.
40047         (standards.info ,standards.html, standards.dvi): Update dependencies.
40048         (mostlyclean, clean): New targets.
40049
40050 2007-04-27  Bruno Haible  <bruno@clisp.org>
40051
40052         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
40053         * modules/sysexits (Files, Makefile.am): Update.
40054
40055         * lib/sys_socket_.h: Renamed from lib/socket_.h.
40056         * modules/sys_socket (Files, Makefile.am): Update.
40057
40058         * lib/sys_stat_.h: Renamed from lib/stat_.h.
40059         * modules/sys_stat (Files, Makefile.am): Update.
40060
40061 2007-04-27  Eric Blake  <ebb9@byu.net>
40062
40063         * lib/freading.h: Improve comments.
40064         * lib/fwriting.h: Likewise.
40065         * lib/fflush.c: Likewise.
40066
40067         Fix closein for mingw.
40068         * modules/closein-tests: Add tests for closein.
40069         * tests/test-closein.c: New file.
40070         * tests/test-closein.sh: Likewise.
40071         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
40072         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
40073
40074 2007-04-27  Bruno Haible  <bruno@clisp.org>
40075
40076         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
40077         version is < 6.
40078         * lib/math_.h [__DECC]: Likewise.
40079         * lib/stdio_.h [__DECC]: Likewise.
40080         * lib/stdlib_.h [__DECC]: Likewise.
40081         * lib/string_.h [__DECC]: Likewise.
40082         * lib/time_.h [__DECC]: Likewise.
40083         * lib/wchar_.h [__DECC]: Likewise.
40084         * lib/wctype_.h [__DECC]: Likewise.
40085
40086 2007-04-27  Bruno Haible  <bruno@clisp.org>
40087
40088         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
40089
40090 2007-04-27  Bruno Haible  <bruno@clisp.org>
40091
40092         * lib/fflush.c: Add comments.
40093         * modules/fpurge-tests (Depends-on): Add fflush.
40094         * modules/freadable-tests (Depends-on): Likewise.
40095         * modules/fwritable-tests (Depends-on): Likewise.
40096
40097 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
40098
40099         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
40100         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
40101         Report by Bruno Haible <bruno@clisp.org>.
40102
40103 2007-04-26  Eric Blake  <ebb9@byu.net>
40104
40105         Fix fflush on mingw.
40106         * modules/fflush (Depends-on): Add freading.
40107         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
40108         but unread data.
40109
40110 2007-04-26  Eric Blake  <ebb9@byu.net>
40111         and Bruno Haible  <bruno@clisp.org>
40112
40113         Implement freading and fwriting.
40114         * lib/freading.c: New file.
40115         * lib/freading.h: Likewise.
40116         * m4/freading.m4: Likewise.
40117         * modules/freading: Likewise.
40118         * modules/freading-tests: Likewise.
40119         * tests/test-freading.c: Likewise.
40120         * lib/fwriting.c: New file.
40121         * lib/fwriting.h: Likewise.
40122         * m4/fwriting.m4: Likewise.
40123         * modules/fwriting: Likewise.
40124         * modules/fwriting-tests: Likewise.
40125         * tests/test-fwriting.c: Likewise.
40126         * MODULES.html.sh (File stream based Input/Output): Mention them.
40127
40128 2007-04-26  Bruno Haible  <bruno@clisp.org>
40129
40130         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
40131         'long' when we assume it.
40132         Suggested by Eric Blake.
40133
40134 2007-04-26  Bruno Haible  <bruno@clisp.org>
40135
40136         Ensure fseeko, ftello are declared on glibc systems.
40137         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
40138         * modules/fseeko (configure.ac-early): Likewise.
40139         * modules/ftello (configure.ac-early): Likewise.
40140         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
40141         AC_FUNC_FSEEKO for this.
40142         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
40143         (gl_CHECK_FSEEKO): Remove macro.
40144
40145 2007-04-26  Bruno Haible  <bruno@clisp.org>
40146
40147         * tests/test-fflush.c (main): Also check the ftell result after
40148         fflush and fseek/fseeko.
40149         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
40150         file descriptor position cache in the stream.
40151         * lib/fseeko.c (rpl_fseeko): Likewise.
40152
40153 2007-04-26  Bruno Haible  <bruno@clisp.org>
40154
40155         * modules/fflush-tests (Depends-on): Add fseeko.
40156
40157 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
40158             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40159
40160         * lib/argz_.h: ensure error_t definition is obtained in same
40161         mechanism system argz.h would have.
40162         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
40163         argz facilities are known bad.  Err on the side of caution if
40164         cross-compiling.
40165
40166 2007-04-25  Eric Blake  <ebb9@byu.net>
40167
40168         * lib/fpurge.c (includes): Use stdlib.h for free.
40169         * tests/test-fflush.c (main): Also test fflush-fseeko.
40170
40171 2007-04-25  Bruno Haible  <bruno@clisp.org>
40172
40173         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
40174         * lib/fseeko.c: New file.
40175         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
40176         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
40177         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
40178         gl_FUNC_FSEEKO.
40179         (gl_FUNC_FSEEKO): Invoke it.
40180         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
40181         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
40182         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
40183
40184 2007-04-25  Bruno Haible  <bruno@clisp.org>
40185
40186         * modules/fflush (Depends-on): Add ftello.
40187
40188 2007-04-25  Bruno Haible  <bruno@clisp.org>
40189
40190         * modules/ftello-tests: New file.
40191         * tests/test-ftello.c: New file.
40192
40193         * modules/ftello: New file.
40194         * m4/ftello.m4: New file.
40195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
40196         HAVE_FTELLO.
40197         * lib/stdio_.h (ftello): New declaration.
40198         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
40199         HAVE_FTELLO.
40200
40201 2007-04-25  Bruno Haible  <bruno@clisp.org>
40202
40203         * modules/fseeko-tests: New file.
40204         * tests/test-fseeko.c: New file.
40205
40206         * modules/fseeko: New file.
40207         * m4/fseeko.m4: New file.
40208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
40209         HAVE_FSEEKO.
40210         * lib/stdio_.h (fseeko): New declaration.
40211         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
40212         HAVE_FSEEKO.
40213
40214 2007-04-25  Bruno Haible  <bruno@clisp.org>
40215
40216         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
40217
40218 2007-04-25  Bruno Haible  <bruno@clisp.org>
40219
40220         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
40221         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
40222         * tests/test-unistd.c: Likewise.
40223         * tests/test-fcntl.c: Likewise.
40224
40225 2007-04-23  Eric Blake  <ebb9@byu.net>
40226
40227         * lib/fflush.c: Fix missing include.
40228         Reported by Bruno Haible.
40229
40230 2007-04-23  Bruno Haible  <bruno@clisp.org>
40231
40232         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
40233         Reported by Eric Blake.
40234
40235 2007-04-23  Bruno Haible  <bruno@clisp.org>
40236
40237         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
40238
40239 2007-04-23  Bruno Haible  <bruno@clisp.org>
40240
40241         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
40242
40243 2007-04-23  Bruno Haible  <bruno@clisp.org>
40244
40245         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
40246         Needed on HP-UX 11.
40247
40248 2007-04-16  Eric Blake  <ebb9@byu.net>
40249
40250         Make fflush rely on fpurge.
40251         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
40252         open coding all variants.
40253         * modules/fflush (Depends-on): Add fpurge and unistd.
40254         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
40255         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
40256
40257         Fix --with-tests compilation on cygwin.
40258         * modules/argmatch-tests (Makefile.am): List gnulib library first
40259         in LDADD.
40260         * modules/argp-tests (Makefile.am): Likewise.
40261         * modules/array-list-tests (Makefile.am): Likewise.
40262         * modules/array-oset-tests (Makefile.am): Likewise.
40263         * modules/avltree-list-tests (Makefile.am): Likewise.
40264         * modules/avltree-oset-tests (Makefile.am): Likewise.
40265         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40266         * modules/carray-list-tests (Makefile.am): Likewise.
40267         * modules/dirname-tests (Makefile.am): Likewise.
40268         * modules/frexp-tests (Makefile.am): Likewise.
40269         * modules/isnanl-tests (Makefile.am): Likewise.
40270         * modules/linked-list-tests (Makefile.am): Likewise.
40271         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40272         * modules/lock-tests (Makefile.am): Likewise.
40273         * modules/rbtree-list-tests (Makefile.am): Likewise.
40274         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40275         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40276         * modules/tls-tests (Makefile.am): Likewise.
40277         * modules/tsearch-tests (Makefile.am): Likewise.
40278         * modules/xvasprintf-tests (Makefile.am): Likewise.
40279
40280         Fix fpurge for cygwin.
40281         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
40282         value.
40283         * modules/fpurge-tests (Depends-on): Clean up trash.
40284
40285 2007-04-16  Simon Josefsson  <simon@josefsson.org>
40286
40287         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
40288
40289         * m4/autobuild.m4: Re-indent.
40290
40291 2007-04-13  Bruno Haible  <bruno@clisp.org>
40292
40293         * modules/fpurge-tests: New file.
40294         * tests/test-fpurge.c: New file.
40295
40296         * modules/fpurge: New file.
40297         * lib/fpurge.h: New file.
40298         * lib/fpurge.c: New file.
40299         * m4/fpurge.m4: New file.
40300
40301 2007-04-13  Bruno Haible  <bruno@clisp.org>
40302
40303         * modules/fbufmode-tests: New file.
40304         * tests/test-fbufmode.c: New file.
40305
40306         * modules/fbufmode: New file.
40307         * lib/fbufmode.h: New file.
40308         * lib/fbufmode.c: New file.
40309         * m4/fbufmode.m4: New file.
40310
40311 2007-04-13  Bruno Haible  <bruno@clisp.org>
40312
40313         * modules/fwritable-tests: New file.
40314         * tests/test-fwritable.c: New file.
40315
40316         * modules/fwritable: New file.
40317         * lib/fwritable.h: New file.
40318         * lib/fwritable.c: New file.
40319         * m4/fwritable.m4: New file.
40320
40321 2007-04-13  Bruno Haible  <bruno@clisp.org>
40322
40323         * modules/freadable-tests: New file.
40324         * tests/test-freadable.c: New file.
40325
40326         * modules/freadable: New file.
40327         * lib/freadable.h: New file.
40328         * lib/freadable.c: New file.
40329         * m4/freadable.m4: New file.
40330
40331 2007-04-13  Bruno Haible  <bruno@clisp.org>
40332
40333         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
40334         MOSTLYCLEANFILES.
40335
40336 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40337
40338         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
40339         gzip bootstrap.conf to avoid dragging in i18n machinery.
40340         (gnulib_tool_option): Use it.
40341
40342 2007-04-13  Bruno Haible  <bruno@clisp.org>
40343
40344         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
40345         %F directives.
40346         * tests/test-vasprintf-posix.c (test_function): Likewise.
40347         * tests/test-snprintf-posix.h (test_function): Likewise.
40348         * tests/test-sprintf-posix.h (test_function): Likewise.
40349         * tests/test-fprintf-posix.h (test_function): Likewise.
40350         * tests/test-printf-posix.h (test_function): Likewise.
40351         * tests/test-fprintf-posix.out: Likewise.
40352
40353 2007-04-13  Bruno Haible  <bruno@clisp.org>
40354
40355         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
40356         * modules/tls-tests (configure.ac): Likewise.
40357         Reported by Arto C. Nirkko <anirkko@insel.ch>.
40358
40359 2007-04-13  Bruno Haible  <bruno@clisp.org>
40360
40361         * lib/tls.c (glthread_tls_get): Fix return type.
40362         Patch by Arto C. Nirkko <anirkko@insel.ch>.
40363
40364 2007-04-12  Eric Blake  <ebb9@byu.net>
40365
40366         * modules/gettime (Depends-on): Remove gettime.
40367         Reported by Dmitry V. Levin.
40368
40369 2007-04-12  Bruno Haible  <bruno@clisp.org>
40370
40371         * modules/fflush (Include): Mention <stdio.h>.
40372         * modules/strtoimax (Include): Mention <inttypes.h>.
40373         * modules/strtoumax (Include): Likewise.
40374
40375 2007-04-12  Eric Blake  <ebb9@byu.net>
40376
40377         * .cvsignore: New file.
40378         * .gitignore: Likewise.
40379
40380 2007-04-12  Bruno Haible  <bruno@clisp.org>
40381
40382         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
40383         not before, since $(LDADD) often contains libgnu.a.
40384         * modules/striconv-tests (test_striconv_LDADD): Likewise.
40385         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
40386         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
40387         Needed on Cygwin.
40388
40389 2007-04-12  Eric Blake  <ebb9@byu.net>
40390
40391         Work around glibc's failure to flush stdin on fclose.
40392         * lib/closein.c (close_stdin): Flush stdin before closing.
40393
40394         Work around glibc's failure to reset seekable stdin on exit.
40395         * modules/closein: New module.
40396         * lib/closein.c: New file.
40397         * lib/closein.h: Likewise.
40398         * m4/closein.m4: Likewise.
40399         * MODULES.html.sh (File stream based Input/Output): Document it.
40400
40401 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40402
40403         * gnulib-tool: Rename generated 'autobuild' script to
40404         'do-autobuild' in --create-megatestdir output.
40405
40406         * doc/gnulib.texi (Build robot for gnulib): Fix.
40407
40408 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40409
40410         * modules/sysexits (Depends-on): Add absolute-header.
40411
40412 2007-04-12  Eric Blake  <ebb9@byu.net>
40413
40414         No need to preserve errno on success.
40415         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
40416         Reported by Bruno Haible.
40417
40418 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40419
40420         * MODULES.html.sh (Support for maintaining and releasing
40421         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
40422
40423 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40424
40425         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
40426
40427 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40428
40429         * modules/autobuild: New module.
40430
40431         * m4/autobuild.m4: New file.
40432
40433 2007-04-11  Bruno Haible  <bruno@clisp.org>
40434
40435         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
40436         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
40437         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
40438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
40439         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40440         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40441         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40442         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40443         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40444         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40445         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
40446         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40447         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40448         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
40449         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40450         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40451         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
40452         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40453         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40454         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
40455         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40456         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40457         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
40458         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40459         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40460         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
40461         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40462         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40463         Reported by Eric Blake.
40464
40465 2007-04-11  Bruno Haible  <bruno@clisp.org>
40466
40467         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
40468
40469 2007-04-10  Bruno Haible  <bruno@clisp.org>
40470
40471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
40472         for NaN and Infinity. Needed on FreeBSD 6.1.
40473         * tests/test-vasnprintf-posix.c (test_function): Undo last change
40474         regarding results for "%010a" of Infinity and NaN.
40475         * tests/test-vasprintf-posix.c (test_function): Likewise.
40476         * tests/test-snprintf-posix.h (test_function): Likewise.
40477         * tests/test-sprintf-posix.h (test_function): Likewise.
40478         * tests/test-fprintf-posix.h (test_function): Likewise.
40479         * tests/test-printf-posix.h (test_function): Likewise.
40480         * tests/test-fprintf-posix.out: Likewise.
40481
40482 2007-04-10  Bruno Haible  <bruno@clisp.org>
40483
40484         * modules/locale-tests: New file.
40485         * tests/test-locale.c: New file.
40486
40487         * modules/locale: New file.
40488         * lib/locale_.h: New file.
40489         * m4/locale_h.m4: New file.
40490
40491 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
40492             Bruno Haible  <bruno@clisp.org>
40493
40494         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
40495         be determined, test for availability of the copysignf, copysign,
40496         copysignl functions.
40497         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
40498         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
40499         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
40500
40501 2007-04-09  Eric Blake  <ebb9@byu.net>
40502
40503         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
40504         * modules/stdio (Makefile.am): Support fflush.
40505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40506         * modules/fflush: New file.
40507         * lib/fflush.c: Likewise.
40508         * m4/fflush.m4: Likewise.
40509         * modules/fflush-tests: New test.
40510         * tests/test-fflush.c: Likewise.
40511         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
40512
40513 2007-04-06  Bruno Haible  <bruno@clisp.org>
40514
40515         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
40516         (VASNPRINTF): Use signbit for faster determination whether to print a
40517         minus sign.
40518         * modules/vasnprintf (Files): Remove lib/float+.h.
40519         * modules/fprintf-posix (Depends-on): Add signbit.
40520         * modules/snprintf-posix (Depends-on): Likewise.
40521         * modules/sprintf-posix (Depends-on): Likewise.
40522         * modules/vasnprintf-posix (Depends-on): Likewise.
40523         * modules/vasprintf-posix (Depends-on): Likewise.
40524         * modules/vfprintf-posix (Depends-on): Likewise.
40525         * modules/vsnprintf-posix (Depends-on): Likewise.
40526         * modules/vsprintf-posix (Depends-on): Likewise.
40527
40528 2007-04-06  Bruno Haible  <bruno@clisp.org>
40529
40530         * tests/test-frexp.c (main): Test also the sign bit of zero results.
40531         * tests/test-frexpl.c (main): Likewise.
40532         * tests/test-ldexpl.c (main): Likewise.
40533         * modules/frexp-tests (Depends-on): Add signbit.
40534         * modules/frexpl-tests (Depdends-on): Likewise.
40535         * modules/ldexpl-tests (Depdends-on): Likewise.
40536
40537 2007-04-06  Bruno Haible  <bruno@clisp.org>
40538
40539         * modules/signbit-tests: New file.
40540         * tests/test-signbit.c: New file.
40541
40542         * modules/signbit: New file.
40543         * lib/signbitf.c: New file.
40544         * lib/signbitd.c: New file.
40545         * lib/signbitl.c: New file.
40546         * m4/signbit.m4: New file.
40547         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
40548         (signbit): New macro.
40549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
40550         REPLACE_SIGNBIT.
40551         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
40552         REPLACE_FREXPL into math.h.
40553
40554 2007-04-06  Bruno Haible  <bruno@clisp.org>
40555
40556         * modules/isnanf-nolibm-tests: New file.
40557         * tests/test-isnanf.c: New file.
40558
40559         * modules/isnanf-nolibm: New file.
40560         * lib/isnanf.h: New file.
40561         * lib/isnanf.c: New file.
40562         * lib/isnan.c: Consider the USE_FLOAT macro.
40563         * m4/isnanf.m4: New file.
40564
40565 2007-04-06  Bruno Haible  <bruno@clisp.org>
40566
40567         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
40568         (Link): New section.
40569
40570         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
40571
40572 2007-04-06  Bruno Haible  <bruno@clisp.org>
40573
40574         Assume the 'long double' type.
40575         * m4/longdouble.m4: Remove file.
40576         * config/srclist.txt: Don't mention longdouble.m4.
40577         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
40578         * lib/float+.h: Likewise.
40579         * lib/frexp.c: Likewise.
40580         * lib/printf-args.h: Likewise.
40581         * lib/printf-args.c: Likewise.
40582         * lib/printf-frexp.c: Likewise.
40583         * lib/printf-parse.c: Likewise.
40584         * lib/vasnprintf.c: Likewise.
40585         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
40586         * m4/intl.m4: Likewise.
40587         * m4/isnanl.m4: Likewise.
40588         * m4/printf.m4: Likewise.
40589         * m4/printf-frexpl.m4: Likewise.
40590         * m4/vasnprintf.m4: Likewise.
40591         * modules/allocsa (Files): Remove m4/longdouble.m4.
40592         * modules/gettext (Files): Likewise.
40593         * modules/relocatable-prog-wrapper (Files): Likewise.
40594         * modules/vasnprintf (Files): Likewise.
40595         * modules/isnanl (Files): Likewise.
40596         (Include): Simplify.
40597         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40598         (Include): Simplify.
40599         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40600         (Include): Simplify.
40601         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40602         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40603         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40604         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40605         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40606         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40607         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40608         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40609         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40610         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40611         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40612         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40613         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40614         * tests/test-isnanl.c: Likewise.
40615         * tests/test-snprintf-posix.h: Likewise.
40616         * tests/test-sprintf-posix.h: Likewise.
40617         * tests/test-vasnprintf-posix.c: Likewise.
40618         * tests/test-vasnprintf-posix2.c: Likewise.
40619         * tests/test-vasprintf-posix.c: Likewise.
40620
40621 2007-04-06  Bruno Haible  <bruno@clisp.org>
40622
40623         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40624         * lib/math_.h [__DECC]: Include the overridden include file through
40625         #include_next, outside the double-inclusion guard.
40626         * lib/stdio_.h [__DECC]: Likewise.
40627         * lib/stdlib_.h [__DECC]: Likewise.
40628         * lib/string_.h [__DECC]: Likewise.
40629         * lib/time_.h [__DECC]: Likewise.
40630         * lib/wchar_.h [__DECC]: Likewise.
40631         * lib/wctype_.h [__DECC]: Likewise.
40632         * lib/inttypes_.h [__DECC]: Likewise.
40633         Reported by Albert Chin <china@thewrittenword.com> in
40634         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40635
40636 2007-04-04  Eric Blake  <ebb9@byu.net>
40637
40638         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40639         1.5.x.
40640
40641 2007-04-04  Bruno Haible  <bruno@clisp.org>
40642
40643         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40644         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40645
40646 2007-04-04  Bruno Haible  <bruno@clisp.org>
40647
40648         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40649         results for "%010a" of Infinity and NaN.
40650         * tests/test-vasprintf-posix.c (test_function): Likewise.
40651         * tests/test-snprintf-posix.h (test_function): Likewise.
40652         * tests/test-sprintf-posix.h (test_function): Likewise.
40653         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40654         * tests/test-printf-posix.h (test_function): Likewise.
40655         * tests/test-fprintf-posix.out: Update.
40656         Needed for FreeBSD 6.1.
40657
40658 2007-04-04  Bruno Haible  <bruno@clisp.org>
40659
40660         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40661         directly used by the gnulib modules nor by gnulib-tool.
40662
40663 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40664
40665         * DEPENDENCIES: Give overall description of version dependency
40666         desirability.  Use more-typical names for apps.
40667         Add shell, coreutils, diffutils, grep, tar, gzip.
40668
40669 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40670
40671         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40672
40673 2007-04-04  Karl Berry  <karl@gnu.org>
40674
40675         * MODULES.html.sh (func_module): missing '.
40676
40677 2007-04-03  Bruno Haible  <bruno@clisp.org>
40678
40679         * modules/argmatch-tests (Makefile.am): New variable
40680         test_argmatch_LDADD.
40681         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40682         * modules/array-list-tests (Makefile.am): New variable
40683         test_array_list_LDADD.
40684         * modules/array-oset-tests (Makefile.am): New variable
40685         test_array_oset_LDADD.
40686         * modules/avltree-list-tests (Makefile.am): New variable
40687         test_avltree_list_LDADD.
40688         * modules/avltree-oset-tests (Makefile.am): New variable
40689         test_avltree_oset_LDADD.
40690         * modules/avltreehash-list-tests (Makefile.am): New variable
40691         test_avltreehash_list_LDADD.
40692         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40693         test_canonicalize_lgpl_LDADD.
40694         * modules/carray-list-tests (Makefile.am): New variable
40695         test_carray_list_LDADD.
40696         * modules/dirname-tests (Makefile.am): New variable
40697         test_dirname_LDADD.
40698         * modules/linked-list-tests (Makefile.am): New variable
40699         test_linked_list_LDADD.
40700         * modules/linkedhash-list-tests (Makefile.am): New variable
40701         test_linkedhash_list_LDADD.
40702         * modules/rbtree-list-tests (Makefile.am): New variable
40703         test_rbtree_list_LDADD.
40704         * modules/rbtree-oset-tests (Makefile.am): New variable
40705         test_rbtree_oset_LDADD.
40706         * modules/rbtreehash-list-tests (Makefile.am): New variable
40707         test_rbtreehash_list_LDADD.
40708         * modules/xvasprintf-tests (Makefile.am): New variable
40709         test_xvasprintf_LDADD.
40710         Reported by Eric Blake.
40711
40712 2007-04-03  Eric Blake  <ebb9@byu.net>
40713
40714         * DEPENDENCIES: Weaken m4 requirements.
40715
40716 2007-04-03  Bruno Haible  <bruno@clisp.org>
40717
40718         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40719         * modules/isnanl-tests (configure.ac): Likewise.
40720
40721 2007-04-03  Ben Pfaff  <blp@gnu.org>
40722
40723         * modules/iconv_open: Add $(srcdir)/ to source directory
40724         references in Makefile fragments that call gperf, to fix VPATH
40725         builds.
40726
40727 2007-04-03  Bruno Haible  <bruno@clisp.org>
40728
40729         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40730         * lib/ldexpl.c: Undo last change.
40731
40732 2007-04-03  Bruno Haible  <bruno@clisp.org>
40733
40734         * modules/printf-frexpl (Depends-on): Undo last change.
40735         (Files): Add m4/ldexpl.m4.
40736
40737 2007-04-03  Bruno Haible  <bruno@clisp.org>
40738
40739         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40740         * modules/isnanl (Link): New section.
40741
40742         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40743         * modules/frexp (Link): New section.
40744
40745         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40746         * modules/frexpl (Link): New section.
40747
40748         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40749         * modules/ldexpl (Link): New section.
40750
40751 2007-04-03  Bruno Haible  <bruno@clisp.org>
40752
40753         * modules/TEMPLATE-EXTENDED: New file.
40754         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40755
40756 2007-04-03  Bruno Haible  <bruno@clisp.org>
40757
40758         * DEPENDENCIES: New file.
40759         Suggested by Simon Josefsson.
40760
40761 2007-04-03  Bruno Haible  <bruno@clisp.org>
40762
40763         * doc/gnulib.texi: Escape @.
40764
40765 2007-04-03  James Youngman  <jay@gnu.org>
40766         and Paul Eggert  <eggert@cs.ucla.edu>
40767
40768         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40769         birthtime on all systems that have birthtime, not just those which
40770         use st_birthtimensec rather than st_birthtim.  Putting zero in
40771         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40772         that the birth time is not available for files on an NFS mount.
40773
40774 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40775
40776         * modules/memxor: Move back from crypto/, suggested by Bruno.
40777         * modules/crypto/hmac-sha1: Fix memxor dependency.
40778
40779         * modules/crypto/gc: Moved from ../.
40780
40781 2007-04-02  Eric Blake  <ebb9@byu.net>
40782
40783         * lib/ldexpl.c (includes): Avoid libm.
40784
40785         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40786
40787 2007-04-02  Bruno Haible  <bruno@clisp.org>
40788
40789         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40790         on IRIX.
40791
40792 2007-04-02  Bruno Haible  <bruno@clisp.org>
40793
40794         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40795         x86 or x86_64 platforms running MacOS X.
40796         Reported by Ryan Schmidt <@ryandesign.com>.
40797
40798 2007-04-02  Bruno Haible  <bruno@clisp.org>
40799
40800         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40801         i386.
40802
40803 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40804
40805         * modules/crypto/arcfour: Moved from ../.
40806         * modules/crypto/arcfour-tests: Moved from ../.
40807         * modules/crypto/arctwo: Moved from ../.
40808         * modules/crypto/arctwo-tests: Moved from ../.
40809         * modules/crypto/des: Moved from ../.
40810         * modules/crypto/des-tests: Moved from ../.
40811         * modules/crypto/gc-arcfour: Moved from ../.
40812         * modules/crypto/gc-arcfour-tests: Moved from ../.
40813         * modules/crypto/gc-arctwo: Moved from ../.
40814         * modules/crypto/gc-arctwo-tests: Moved from ../.
40815         * modules/crypto/gc-des: Moved from ../.
40816         * modules/crypto/gc-des-tests: Moved from ../.
40817         * modules/crypto/gc-hmac-md5: Moved from ../.
40818         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40819         * modules/crypto/gc-hmac-sha1: Moved from ../.
40820         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40821         * modules/crypto/gc-md2: Moved from ../.
40822         * modules/crypto/gc-md2-tests: Moved from ../.
40823         * modules/crypto/gc-md4: Moved from ../.
40824         * modules/crypto/gc-md4-tests: Moved from ../.
40825         * modules/crypto/gc-md5: Moved from ../.
40826         * modules/crypto/gc-md5-tests: Moved from ../.
40827         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40828         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40829         * modules/crypto/gc-random: Moved from ../.
40830         * modules/crypto/gc-rijndael: Moved from ../.
40831         * modules/crypto/gc-rijndael-tests: Moved from ../.
40832         * modules/crypto/gc-sha1: Moved from ../.
40833         * modules/crypto/gc-sha1-tests: Moved from ../.
40834         * modules/crypto/gc-tests: Moved from ../.
40835         * modules/crypto/hmac-md5: Moved from ../.
40836         * modules/crypto/hmac-md5-tests: Moved from ../.
40837         * modules/crypto/hmac-sha1: Moved from ../.
40838         * modules/crypto/hmac-sha1-tests: Moved from ../.
40839         * modules/crypto/md2: Moved from ../.
40840         * modules/crypto/md2-tests: Moved from ../.
40841         * modules/crypto/md4: Moved from ../.
40842         * modules/crypto/md4-tests: Moved from ../.
40843         * modules/crypto/md5: Moved from ../.
40844         * modules/crypto/md5-tests: Moved from ../.
40845         * modules/crypto/memxor: Moved from ../.
40846         * modules/crypto/rijndael: Moved from ../.
40847         * modules/crypto/rijndael-tests: Moved from ../.
40848         * modules/crypto/sha1: Moved from ../.
40849
40850 2007-03-30  James Youngman  <jay@gnu.org>
40851
40852         * tests/test-stat-time.c (prepare_test): use chmod() rather than
40853         rename() to change the ctime of a file (because ctime is unaffected
40854         by rename on jfs2 on AIX 5.1).
40855         (main): Start by doing cleanup, in case a previous run failed leaving
40856         test files behind.
40857
40858 2007-03-31  Bruno Haible  <bruno@clisp.org>
40859
40860         Support old proprietary implementations of iconv.
40861         * modules/iconv_open: New file.
40862         * lib/iconv_.h: New file.
40863         * m4/iconv_h.m4: New file.
40864         * lib/iconv_open.c: New file.
40865         * lib/iconv_open-aix.gperf: New file.
40866         * lib/iconv_open-hpux.gperf: New file.
40867         * lib/iconv_open-irix.gperf: New file.
40868         * lib/iconv_open-osf.gperf: New file.
40869         * m4/iconv_open.m4: New file.
40870         * modules/linebreak (Depends-on): Add iconv_open.
40871         * modules/striconv (Depends-on): Likewise.
40872         * modules/striconveh (Depends-on): Likewise.
40873         * modules/unicodeio (Depends-on): Likewise.
40874         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
40875         (iconv_t)(-1).
40876         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
40877         conversion if cd is (iconv_t)(-1).
40878         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
40879         is not possible.
40880
40881 2007-03-31  Bruno Haible  <bruno@clisp.org>
40882
40883         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40884         work on Solaris either. Protect also second use of "autodetect_jp".
40885
40886 2007-03-31  Bruno Haible  <bruno@clisp.org>
40887
40888         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
40889         the function is not present.
40890
40891 2007-03-31  Bruno Haible  <bruno@clisp.org>
40892
40893         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
40894         the function is not present.
40895
40896 2007-03-31  Bruno Haible  <bruno@clisp.org>
40897
40898         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
40899         a bug in HP-UX iconv_open().
40900
40901 2007-03-31  Bruno Haible  <bruno@clisp.org>
40902
40903         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
40904         (Mathematics <math.h>): New section, add fpieee.
40905         (Input/output <stdio.h>): Add fseterr.
40906         (Mathematics <math.h>): New section, add printf-frexp.
40907         (Container data structures): Add sublist.
40908         (Core language properties): Add fpucw, inline.
40909         (Functions for greatest-width integer types <inttypes.h>): Add
40910         imaxabs, imaxdiv, inttypes.
40911         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
40912         isnanl-nolibm, ldexp.
40913         (Mathematics <math.h>): New section, add printf-frexpl.
40914         (Support for systems lacking POSIX:2001): Add fprintf-posix,
40915         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
40916         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
40917         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
40918         (Unicode string functions): Add unistr/u*-mbtoucr.
40919         (Java): Add javacomp-script, javaexec-script.
40920         (C#): Add csharpcomp-script, csharpexec-script.
40921         (Support for building libraries and executables): Add havelib,
40922         relocatable-*.
40923         (Support for maintaining and releasing projects): Renamed from
40924         'Support for maintaining and release projects'. Add announce-gen.
40925
40926 2007-03-31  Bruno Haible  <bruno@clisp.org>
40927
40928         * README: Talk primarily about git.
40929         (git and CVS): Renamed from CVS.
40930         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
40931         gnulib is available through git.
40932         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
40933
40934 2007-03-30  Bruno Haible  <bruno@clisp.org>
40935
40936         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
40937         * lib/poll_.h: Likewise.
40938         * lib/stat_.h: Likewise.
40939         * lib/sys_time_.h: Likewise.
40940         * lib/sysexit_.h: Likewise.
40941         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
40942         * lib/stdbool_.h: Likewise.
40943         * lib/byteswap_.h: Add double-inclusion guard.
40944
40945 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
40946
40947         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
40948
40949 2007-03-30  Karl Berry  <karl@gnu.org>
40950
40951         * config/srclist-update: double space after USA in the license
40952         substitution, since that's how it's usually (?) written.
40953
40954 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40955
40956         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
40957         reported by Bruno Haible.
40958
40959 2007-03-29  Bruno Haible  <bruno@clisp.org>
40960
40961         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
40962         a bug in AIX iconv().
40963
40964 2007-03-29  Bruno Haible  <bruno@clisp.org>
40965
40966         * modules/ldexpl-tests: New file.
40967         * tests/test-ldexpl.c: New file.
40968
40969 2007-03-29  Bruno Haible  <bruno@clisp.org>
40970
40971         * lib/ldexpl.c: Include fpucw.h.
40972         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
40973         multiplication.
40974         * modules/ldexpl (Depends-on): Add fpucw.
40975
40976 2007-03-29  Bruno Haible  <bruno@clisp.org>
40977
40978         * modules/ldexpl: New file.
40979         * m4/ldexpl.m4: New file.
40980         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
40981         set.
40982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
40983         REPLACE_LDEXPL.
40984         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
40985         REPLACE_LDEXPL.
40986         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40987         gl_FUNC_LDEXPL_WORKS.
40988         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
40989         * modules/mathl (Files): Remove lib/ldexpl.c.
40990         (Depends-on): Add ldexpl.
40991
40992 2007-03-29  Bruno Haible  <bruno@clisp.org>
40993
40994         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
40995
40996 2007-03-29  Bruno Haible  <bruno@clisp.org>
40997
40998         * tests/test-striconveh.c (main): Don't assume that a direct conversion
40999         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
41000         and possibly also HP-UX.
41001         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41002         work on AIX, IRIX, HP-UX, OSF/1.
41003         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41004         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41005         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41006         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41007         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
41008         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41009
41010 2007-03-29  Bruno Haible  <bruno@clisp.org>
41011
41012         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
41013
41014 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41015
41016         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
41017         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
41018
41019 2007-03-29  Eric Blake  <ebb9@byu.net>
41020
41021         * lib/acl-internal.h: Remove redundant include.
41022         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
41023         Cygwin when a file is locked.
41024
41025 2007-03-29  Bruno Haible  <bruno@clisp.org>
41026
41027         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
41028         file.
41029         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
41030
41031 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41032
41033         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
41034         try to remove a parent directory if the child couldn't be removed
41035         (except for the first rmdir, which could fail because the child
41036         doesn't exist).  Problem reported by Jeff Blaine in
41037         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
41038
41039 2007-03-28  Bruno Haible  <bruno@clisp.org>
41040
41041         * lib/striconveh.c (utf8conv_carefully): New function.
41042         (mem_cd_iconveh_internal): Invoke it.
41043
41044 2007-03-28  Bruno Haible  <bruno@clisp.org>
41045
41046         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
41047         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
41048         input.
41049         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
41050         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
41051         unistr/u8-uctomb.
41052
41053 2007-03-28  Bruno Haible  <bruno@clisp.org>
41054
41055         * modules/unistr/u8-mbtoucr: New file.
41056         * lib/unistr/u8-mbtoucr.c: New file.
41057         * modules/unistr/u16-mbtoucr: New file.
41058         * lib/unistr/u16-mbtoucr.c: New file.
41059         * modules/unistr/u16-mbtoucr: New file.
41060         * lib/unistr/u16-mbtoucr.c: New file.
41061         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
41062
41063 2007-03-27  Simon Josefsson  <simon@josefsson.org>
41064             Bruno Haible  <bruno@clisp.org>
41065
41066         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
41067         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
41068         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
41069
41070         * m4/stdio_h.m4: Add stubs for vasprintf too.
41071
41072         * modules/stdio: Support vasprintf in sed command.
41073
41074         * modules/vasprintf: Depend on stdio for prototypes.  Remove
41075         vasprintf.h.  Add stdio module indicator.
41076
41077         * lib/stdio_.h: Declare asprintf and vasprintf, based on
41078         vasprintf.h.
41079
41080         * lib/vasprintf.h: File removed.
41081
41082         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
41083         * lib/vasprintf.c: Ditto.
41084         * lib/xvasprintf.c: Ditto.
41085         * tests/test-vasprintf-posix.c: Ditto.
41086         * tests/test-vasprintf.c: Ditto.
41087
41088 2007-03-27  Bruno Haible  <bruno@clisp.org>
41089
41090         Make vasnprintf multithread-safe.
41091         * lib/vasnprintf.c (decimal_point_char): New function.
41092         (VASNPRINTF): Use it.
41093         Suggested by Simon Josefsson.
41094
41095 2007-03-27  Eric Blake  <ebb9@byu.net>
41096
41097         Support sub-second birthtime on cygwin.
41098         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
41099         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
41100         (get_stat_birthtime): Also work with st_birthtim.
41101
41102 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
41103
41104         * lib/stat-time.h (USE_BIRTHTIME): Remove.
41105         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
41106         (get_stat_birthtime_ns): Do not try to use "spare" fields.
41107         (get_stat_birthtime_ns): Simplify compile-time tests.
41108         (get_stat_birthtime): Change the API to look like
41109         get_stat_mtime etc., except return a negative tv_nsec on error.
41110         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
41111         Don't check for "spare" fields.
41112         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
41113         or for struct stat.st_birthtime, as these tests aren't used.
41114         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
41115
41116 2007-03-27  Bruno Haible  <bruno@clisp.org>
41117
41118         * lib/stat-time.h: Include <sys/stat.h>.
41119
41120 2007-03-27  James Youngman  <jay@gnu.org>
41121
41122         * lib/stat-time.h (get_stat_birthtime): New function for
41123           retrieving st_birthtime as provided by UFS2 (hence *BSD).
41124         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
41125           and its variants.
41126         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
41127         * modules/stat-time-test: New file.
41128         * tests/test-stat-time.c: New test, devised by Bruno Haible.
41129
41130 2007-03-26  Bruno Haible  <bruno@clisp.org>
41131
41132         Better support of signalling NaNs.
41133         * lib/atanl.c: Include isnanl.h.
41134         (atanl): Perform test for NaN at the beginning of the function and
41135         through a call to isnanl.
41136         * lib/cosl.c: Include isnanl.h.
41137         (cosl): Perform test for NaN at the beginning of the function and
41138         through a call to isnanl.
41139         * lib/ldexpl.c: Include isnanl.h.
41140         (ldexpl): Perform test for NaN through a call to isnanl.
41141         * lib/logl.c: Include isnanl.h.
41142         (logl): Perform test for NaN at the beginning of the function and
41143         through a call to isnanl.
41144         * lib/sinl.c: Include isnanl.h.
41145         (sinl): Perform test for NaN at the beginning of the function and
41146         through a call to isnanl.
41147         * lib/sqrtl.c: Include isnanl.h.
41148         (sqrtl): Perform test for NaN at the beginning of the function and
41149         through a call to isnanl.
41150         * lib/tanl.c: Include isnanl.h.
41151         (tanl): Perform test for NaN at the beginning of the function and
41152         through a call to isnanl.
41153         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
41154         * modules/mathl (Depends-on): Add isnanl.
41155
41156 2007-03-26  Eric Blake  <ebb9@byu.net>
41157
41158         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
41159         regression in logic sense of previous patch.
41160
41161 2007-03-26  Bruno Haible  <bruno@clisp.org>
41162
41163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
41164         unportable shell command "if ! ...".
41165         Reported by Ralf Wildenhues.
41166
41167 2007-03-25  Bruno Haible  <bruno@clisp.org>
41168
41169         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
41170         <sysexits.h> file, and only add EX_CONFIG.
41171         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
41172         absolute file name and whether it is sufficient. Substitute also
41173         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
41174         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
41175         ABSOLUTE_SYSEXITS_H into sysexits.h.
41176
41177 2007-03-25  Bruno Haible  <bruno@clisp.org>
41178
41179         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
41180         hints is NULL.
41181
41182 2007-03-25  Bruno Haible  <bruno@clisp.org>
41183
41184         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
41185         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
41186
41187 2007-03-25  Bruno Haible  <bruno@clisp.org>
41188
41189         * lib/vasnprintf.c: Include langinfo.h.
41190         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
41191         multithread-safe.
41192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
41193         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
41194         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41195         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41196         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41197         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41198         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41199         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
41200         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41201         Reported by Simon Josefsson.
41202
41203 2007-03-25  Bruno Haible  <bruno@clisp.org>
41204
41205         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
41206         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
41207         * modules/vasnprintf (Depends-on): Add stdint.
41208
41209 2007-03-25  Bruno Haible  <bruno@clisp.org>
41210
41211         * modules/fpieee: New file.
41212         * m4/fpieee.m4: New file.
41213         * modules/isnan-nolibm (Depends-on): Add fpieee.
41214         * modules/isnanl-nolibm (Depends-on): Add fpieee.
41215         * modules/isnanl (Depends-on): Add fpieee.
41216
41217 2007-03-25  Bruno Haible  <bruno@clisp.org>
41218
41219         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
41220
41221 2007-03-25  Bruno Haible  <bruno@clisp.org>
41222
41223         Avoid test failures on IRIX 6.5.
41224         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
41225         (main): Use it.
41226         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
41227         macros.
41228         (main): Use them.
41229
41230 2007-03-25  Bruno Haible  <bruno@clisp.org>
41231
41232         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
41233         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
41234         exists but doesn't work.
41235         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
41236         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
41237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
41238         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
41239
41240 2007-03-25  Bruno Haible  <bruno@clisp.org>
41241
41242         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
41243         returns inf. Needed on IRIX 6.5.
41244
41245 2007-03-25  Bruno Haible  <bruno@clisp.org>
41246
41247         * tests/test-frexpl.c: Include isnanl-nolibm.h.
41248         (main): Use isnanl instead of x != x idiom.
41249         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
41250
41251         * tests/test-frexp.c: Include isnan.h.
41252         (main): Use isnan instead of x != x idiom.
41253         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
41254
41255 2007-03-25  Bruno Haible  <bruno@clisp.org>
41256
41257         * tests/test-frexp.c (NaN): New function/macro.
41258         (main): Use it instead of 0.0 / 0.0.
41259         * tests/test-isnan.c (NaN): New function/macro.
41260         (main): Use it instead of 0.0 / 0.0.
41261         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
41262         (test_function): Use it instead of 0.0 / 0.0.
41263         * tests/test-vasprintf-posix.c (NaN): New function/macro.
41264         (test_function): Use it instead of 0.0 / 0.0.
41265         * tests/test-snprintf-posix.h (NaN): New function/macro.
41266         (test_function): Use it instead of 0.0 / 0.0.
41267         * tests/test-sprintf-posix.h (NaN): New function/macro.
41268         (test_function): Use it instead of 0.0 / 0.0.
41269         * tests/test-fprintf-posix.h (NaN): New function/macro.
41270         (test_function): Use it instead of 0.0 / 0.0.
41271         * tests/test-printf-posix.h (NaN): New function/macro.
41272         (test_function): Use it instead of 0.0 / 0.0.
41273
41274         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
41275
41276 2007-03-25  Bruno Haible  <bruno@clisp.org>
41277
41278         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
41279
41280 2007-03-25  Bruno Haible  <bruno@clisp.org>
41281
41282         * lib/regexec.c (merge_state_with_log): Make static.
41283
41284 2007-03-25  Bruno Haible  <bruno@clisp.org>
41285
41286         * lib/trigl.c (kernel_rem_pio2): Make static.
41287
41288 2007-03-25  Bruno Haible  <bruno@clisp.org>
41289
41290         * lib/sincosl.c (sincosl_table): Make static.
41291
41292 2007-03-25  Bruno Haible  <bruno@clisp.org>
41293
41294         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
41295         if the compiler does not support C99.
41296
41297 2007-03-25  Bruno Haible  <bruno@clisp.org>
41298
41299         * modules/time (Makefile.am): Ensure all rule action lines start with a
41300         tab.
41301
41302 2007-03-24  Bruno Haible  <bruno@clisp.org>
41303
41304         * modules/tsearch-tests: New file.
41305         * tests/test-tsearch.sh: New file.
41306         * tests/test-tsearch.c: New file, mostly copied from glibc.
41307
41308         * modules/search-tests: New file.
41309         * tests/test-search.c: New file.
41310
41311         * modules/search: New file.
41312         * lib/search_.h: New file, incorporating lib/tsearch.h.
41313         * m4/search_h.m4: New file.
41314         * lib/tsearch.h: Remove file.
41315         * lib/tsearch.c: Include search.h instead of tsearch.h.
41316         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
41317         HAVE_TSEARCH.
41318         * modules/tsearch (Files): Remove lib/tsearch.h.
41319         (Depends-on): Add search.
41320         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
41321         (Include): Change tsearch.h into search.h.
41322
41323 2007-03-24  Bruno Haible  <bruno@clisp.org>
41324
41325         * modules/fpucw: New file.
41326         * lib/fpucw.h: New file.
41327         * lib/frexp.c: Include fpucw.h.
41328         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41329         (FUNC): Use them.
41330         * lib/printf-frexp.c: Include fpucw.h.
41331         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41332         (FUNC): Use them.
41333         * lib/vasnprintf.c: Include fpucw.h.
41334         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
41335         'long double' calculations.
41336         * tests/test-frexpl.c: Include fpucw.h.
41337         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41338         * tests/test-printf-frexpl.c: Include fpucw.h.
41339         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41340         * modules/frexpl (Depends-on): Add fpucw.
41341         * modules/printf-frexpl (Depends-on): Likewise.
41342         * modules/fprintf-posix (Depends-on): Likewise.
41343         * modules/snprintf-posix (Depends-on): Likewise.
41344         * modules/sprintf-posix (Depends-on): Likewise.
41345         * modules/vasnprintf-posix (Depends-on): Likewise.
41346         * modules/vasprintf-posix (Depends-on): Likewise.
41347         * modules/vfprintf-posix (Depends-on): Likewise.
41348         * modules/vsnprintf-posix (Depends-on): Likewise.
41349         * modules/vsprintf-posix (Depends-on): Likewise.
41350         * modules/frexpl-tests (Depends-on): Likewise.
41351         * modules/printf-frexpl-tests (Depends-on): Likewise.
41352
41353 2007-03-24  Bruno Haible  <bruno@clisp.org>
41354
41355         * lib/float+.h: New file.
41356         * lib/isnan.c: Include float+.h.
41357         (SIZE): New macro.
41358         (FUNC): Compare only SIZE bytes of the value.
41359         * lib/vasnprintf.c: Include float+.h.
41360         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
41361         SIZEOF_LDBL or SIZEOF_DBL bytes.
41362         * modules/isnan-nolibm (Files): Add lib/float+.h.
41363         * modules/isnanl-nolibm (Files): Add lib/float+.h.
41364         * modules/isnanl (Files): Add lib/float+.h.
41365         * modules/vasnprintf (Files): Add lib/float+.h.
41366
41367 2007-03-24  Bruno Haible  <bruno@clisp.org>
41368
41369         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
41370         include isnanl-nolibm.h.
41371
41372 2007-03-24  Bruno Haible  <bruno@clisp.org>
41373
41374         * tests/test-read-file.c (main): Don't produce spurious output for
41375         expected situations. Make the test fail if it encountered unexpected
41376         results.
41377
41378 2007-03-24  Bruno Haible  <bruno@clisp.org>
41379
41380         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
41381         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
41382
41383 2007-03-24  Bruno Haible  <bruno@clisp.org>
41384
41385         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
41386
41387 2007-03-24  Bruno Haible  <bruno@clisp.org>
41388
41389         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
41390         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
41391
41392         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
41393         * modules/utf8-ucs4: Turn into a symbolic link to module
41394         unistr/u8-mbtouc.
41395
41396         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
41397         utf8-ucs4-unsafe.
41398         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
41399         unistr/u8-mbtouc-unsafe.
41400
41401         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
41402         * modules/utf16-ucs4: Turn into a symbolic link to module
41403         unistr/u16-mbtouc.
41404
41405         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
41406         utf16-ucs4-unsafe.
41407         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
41408         unistr/u16-mbtouc-unsafe.
41409
41410         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
41411         * modules/ucs4-utf8: Turn into a symbolic link to module
41412         unistr/u8-ubtomb.
41413
41414         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
41415         * modules/ucs4-utf16: Turn into a symbolic link to module
41416         unistr/u16-ubtomb.
41417
41418 2007-03-24  Bruno Haible  <bruno@clisp.org>
41419
41420         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
41421         Enable the function only if HAVE_INLINE.
41422         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
41423         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41424         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
41425         Enable the function only if HAVE_INLINE.
41426         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
41427         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41428         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
41429         Enable the function only if HAVE_INLINE.
41430         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
41431         Enable the function only if HAVE_INLINE.
41432         * modules/utf8-ucs4: Update.
41433         * modules/utf8-ucs4-unsafe: Update.
41434         * modules/utf16-ucs4: Update.
41435         * modules/utf16-ucs4-unsafe: Update.
41436         * modules/ucs4-utf8: Update.
41437         * modules/ucs4-utf16: Update.
41438
41439 2007-03-24  Bruno Haible  <bruno@clisp.org>
41440
41441         * lib/utf8-ucs4.h: Remove file.
41442         * lib/utf8-ucs4-unsafe.h: Remove file.
41443         * lib/utf16-ucs4.h: Remove file.
41444         * lib/utf16-ucs4-unsafe.h: Remove file.
41445         * lib/ucs4-utf8.h: Remove file.
41446         * lib/ucs4-utf16.h: Remove file.
41447         * lib/unistr.h: Include their previous contents.
41448         * m4/utf-ucs4.m4: Remove file.
41449         * m4/ucs4-utf.m4: Remove file.
41450         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
41451         (Depends-on): Add unistr/base.
41452         (configure.ac): Remove gl_UTF_UCS4.
41453         (Makefile.am): Update.
41454         (Include): Change to unistr.h.
41455         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
41456         (Depends-on): Add unistr/base.
41457         (configure.ac): Remove gl_UTF_UCS4.
41458         (Makefile.am): Update.
41459         (Include): Change to unistr.h.
41460         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
41461         (Depends-on): Add unistr/base.
41462         (configure.ac): Remove gl_UTF_UCS4.
41463         (Makefile.am): Update.
41464         (Include): Change to unistr.h.
41465         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
41466         (Depends-on): Add unistr/base.
41467         (configure.ac): Remove gl_UTF_UCS4.
41468         (Makefile.am): Update.
41469         (Include): Change to unistr.h.
41470         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
41471         (Depends-on): Add unistr/base.
41472         (configure.ac): Remove gl_UCS4_UTF.
41473         (Makefile.am): Update.
41474         (Include): Change to unistr.h.
41475         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
41476         (Depends-on): Add unistr/base.
41477         (configure.ac): Remove gl_UCS4_UTF.
41478         (Makefile.am): Update.
41479         (Include): Change to unistr.h.
41480         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
41481         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
41482         utf8-ucs4-unsafe.h.
41483         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
41484         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
41485         utf16-ucs4-unsafe.h.
41486         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
41487         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
41488         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
41489         * lib/unistr/u8-strchr.c: Likewise.
41490         * lib/unistr/u8-strrchr.c: Likewise.
41491         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
41492         * lib/unistr/u16-strchr.c: Likewise.
41493         * lib/unistr/u16-strrchr.c: Likewise.
41494         * lib/striconveh.c: Update.
41495         * lib/linebreak.c: Update.
41496
41497 2007-03-24  Bruno Haible  <bruno@clisp.org>
41498
41499         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
41500         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
41501
41502 2007-03-22  Bruno Haible  <bruno@clisp.org>
41503
41504         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
41505
41506 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41507
41508         * MODULES.html.sh (File system functions): New module write-any-file.
41509         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
41510         * m4/write-any-file.m4: New files.
41511
41512 2007-03-23  Eric Blake  <ebb9@byu.net>
41513
41514         * gnulib-tool: Rearrange space-tab sequences, since some editors
41515         like to eat them.
41516
41517 2007-03-23  Eric Blake  <ebb9@byu.net>
41518
41519         * lib/version-etc.c (version_etc_va): Update license wording to
41520         be more concise.  Recommended by Richard Stallman.
41521
41522 2007-03-22  Bruno Haible  <bruno@clisp.org>
41523
41524         * lib/poll.c (MSG_PEEK): New fallback definition.
41525
41526 2007-03-22  Bruno Haible  <bruno@clisp.org>
41527
41528         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
41529         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
41530         (main): Update.
41531         Fixes a compilation error on BeOS.
41532
41533 2007-03-22  Bruno Haible  <bruno@clisp.org>
41534
41535         * modules/frexpl-tests: New file.
41536         * tests/test-frexpl.c: New file.
41537
41538         * modules/frexpl: New file.
41539         * m4/frexpl.m4: New file.
41540         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
41541         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
41542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
41543         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
41544         (Depends-on): Add frexpl. Remove isnanl-nolibm.
41545         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
41546
41547 2007-03-22  Bruno Haible  <bruno@clisp.org>
41548
41549         * lib/frexpl.c: Share code with lib/frexp.c.
41550         * modules/mathl (Files): Add lib/frexp.c.
41551         (Depends-on): Add isnanl-nolibm.
41552
41553 2007-03-22  Bruno Haible  <bruno@clisp.org>
41554
41555         * modules/printf-frexp (Files): Add m4/frexp.m4.
41556         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
41557         only if the found frexp function actually works.
41558
41559 2007-03-22  Bruno Haible  <bruno@clisp.org>
41560
41561         * lib/frexp.c: Remove older implementation that uses divisions.
41562
41563 2007-03-21  Bruno Haible  <bruno@clisp.org>
41564
41565         * modules/frexp-tests: New file.
41566         * tests/test-frexp.c: New file.
41567
41568         * modules/frexp: New file.
41569         * lib/frexp.c: New file.
41570         * m4/frexp.m4: New file.
41571         * lib/math_.h (frexp): New declaration.
41572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
41573         REPLACE_FREXP.
41574         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
41575
41576 2007-03-21  Bruno Haible  <bruno@clisp.org>
41577
41578         * modules/isnanl-tests: New file.
41579         * tests/test-isnanl.c: New file.
41580
41581         * modules/isnanl: New file.
41582         * lib/isnanl.h: New file.
41583         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
41584         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
41585         gl_FUNC_ISNANL_WORKS.
41586         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
41587         New macros.
41588
41589 2007-03-21  Bruno Haible  <bruno@clisp.org>
41590
41591         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41592         lib/isnanl.h.
41593         (Include): Update.
41594         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41595         * lib/vasnprintf.c: Update.
41596         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41597         tests/test-isnanl.h, remove tests/test-isnanl.c.
41598         (Makefile.am): Update.
41599         * tests/test-isnanl-nolibm.c: New file.
41600         * tests/test-isnanl.h: New file.
41601         * tests/test-isnanl.c: Remove file.
41602
41603 2007-03-21  Jim Meyering  <jim@meyering.net>
41604
41605         When trying to open ".", treat ESTALE like EACCES.
41606         * lib/savewd.c (savewd_save): Resort to forking not just upon
41607         failure with EACCES, but also when errno is ESTALE.
41608
41609 2007-03-20  Bruno Haible  <bruno@clisp.org>
41610
41611         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41612         Needed on AIX 5.1. Reported by Matthew Woehlke.
41613
41614 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41615
41616         Suggestions by Bruno Haible:
41617         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41618         our own.
41619         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41620         * modules/acl (Depends-on): Add gettext.
41621
41622 2007-03-19  Bruno Haible  <bruno@clisp.org>
41623
41624         * modules/iconvme: Remove file.
41625         * lib/iconvme.h: Remove file.
41626         * lib/iconvme.c: Remove file.
41627         * m4/iconvme.m4: Remove file.
41628
41629 2007-03-19  Bruno Haible  <bruno@clisp.org>
41630
41631         * doc/relocatable-maint.texi: Break long shell script line.
41632         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41633
41634 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41635
41636         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41637         handle file_has_acl.
41638         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41639         * lib/acl.c: Move header inclusions and related macro defns into
41640         lib/acl-internal.h.
41641         (S_ISLNK): Remove defn, since that's now done for us.
41642         (file_has_acl): Move to lib/file-has-acl.c.
41643         Call acl_trivial if available.  This is the crucial part of the fix.
41644         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41645         shared within the library.  Rewrite a bit, partly to make it compatible
41646         with the GNU coding style.
41647         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41648         Remove unnecessary double-quotes.
41649         Don't test for acl_to_text; the build will catch that.
41650         Replace acl_entries if it doesn't exist and it is needed.
41651         Check for -lsec and acl_trivial (as used on Solaris 10).
41652         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41653         lib/file-has-acl.c.
41654         (Depends-on): Add sys_stat, for S_ISLNK.
41655
41656 2007-03-19  Ben Pfaff  <blp@gnu.org>
41657
41658         * doc/gnulib.texi: Fix typos.
41659         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41660
41661 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41662
41663         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41664         If size is zero here, buf must be zero.
41665
41666 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41667
41668         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41669         <bruno@clisp.org>.
41670
41671 2007-03-18  Bruno Haible  <bruno@clisp.org>
41672
41673         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41674         Suggested by Eric Blake.
41675
41676 2007-03-18  Ben Pfaff  <blp@gnu.org>
41677
41678         * doc/relocatable.texi: Recommend using as prefix a directory
41679         that does not exist and will never be created.  Based on
41680         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41681         and others.
41682
41683 2007-03-17  Bruno Haible  <bruno@clisp.org>
41684
41685         * lib/fchownat.c: Include lchown.h.
41686
41687 2007-03-17  Bruno Haible  <bruno@clisp.org>
41688
41689         Fix endless loop when the given allocated size was > INT_MAX.
41690         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41691         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41692         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41693         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41694         * lib/sprintf.c (sprintf): Likewise.
41695
41696 2007-03-17  Bruno Haible  <bruno@clisp.org>
41697
41698         * tests/test-argp-2.sh (func_compare): Output a context diff.
41699
41700 2007-03-17  Bruno Haible  <bruno@clisp.org>
41701
41702         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41703         locale's decimal-point character.
41704
41705 2007-03-17  Bruno Haible  <bruno@clisp.org>
41706
41707         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41708         before comparing it. Needed because on some platforms (e.g. x86) a
41709         'long double' occupies less bytes than sizeof (long double).
41710
41711 2007-03-17  Bruno Haible  <bruno@clisp.org>
41712
41713         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41714         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41715         * tests/test-getaddrinfo.c (simple): Likewise.
41716         * tests/test-read-file.c (main): Likewise.
41717
41718 2007-03-17  Bruno Haible  <bruno@clisp.org>
41719
41720         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41721
41722 2007-03-17  Bruno Haible  <bruno@clisp.org>
41723
41724         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41725         unused variable.
41726
41727 2007-03-17  Bruno Haible  <bruno@clisp.org>
41728
41729         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41730         * tests/test-c-strncasecmp.c: Likewise.
41731
41732 2007-03-17  Bruno Haible  <bruno@clisp.org>
41733
41734         * modules/stdlib (Depends-on): Add unistd.
41735         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41736         Needed for MacOS X 10.3.
41737
41738 2007-03-17  Bruno Haible  <bruno@clisp.org>
41739
41740         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41741
41742 2007-03-17  Bruno Haible  <bruno@clisp.org>
41743
41744         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41745
41746 2007-03-17  Bruno Haible  <bruno@clisp.org>
41747
41748         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41749         to reflect files copied from gnulib (with or without modifications).
41750         Suggested by Jim Meyering.
41751
41752 2007-03-17  Eric Blake  <ebb9@byu.net>
41753
41754         * NEWS: Document stdlib change from 2007-02-18.
41755
41756 2007-03-17  Jim Meyering  <jim@meyering.net>
41757
41758         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41759         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41760         someone uses a name containing shell meta-characters.
41761         Reported by Alfred M. Szmidt.
41762
41763         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41764
41765 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41766
41767         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41768         and copy gettext configuration files only if configure.ac contains
41769         a use of AM_GNU_GETTEXT_VERSION.
41770
41771 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41772
41773         * build-aux/bootstrap (gnulib_name): New variable.
41774         (gnulib_tool_options): Use it.
41775
41776 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41777
41778         * tests/test-des.c: Use new namespace.
41779
41780 2007-03-15  Bruno Haible  <bruno@clisp.org>
41781
41782         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41783         Reported by James Youngman <jay@gnu.org>.
41784
41785 2007-03-15  Bruno Haible  <bruno@clisp.org>
41786
41787         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41788         declared prototype. Needed with cc on OSF/1 5.1.
41789
41790 2007-03-15  Bruno Haible  <bruno@clisp.org>
41791
41792         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41793         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41794         (struct gl_list_implementation): Add dispose_fn argument to the
41795         'create_empty', 'create' methods.
41796         (struct gl_list_impl_base): Add field 'dispose_fn'.
41797         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41798         argument.
41799         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41800         dispose_fn argument.
41801         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41802         dispose_fn on the dropped values.
41803         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41804         dispose_fn argument.
41805         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41806         dropped values.
41807         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41808         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41809         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41810         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41811         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41812         argument.
41813         (gl_tree_list_free): Call dispose_fn on the dropped values.
41814         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41815         the dropped values.
41816         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41817         Add dispose_fn argument.
41818         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41819         Call dispose_fn on the dropped values.
41820         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41821         Add dispose_fn argument.
41822         (gl_sublist_create): Initialize the 'dispose_fn' field.
41823         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41824         * tests/test-array_list.c (main): Update.
41825         * tests/test-carray_list.c (main): Update.
41826         * tests/test-avltree_list.c (main): Update.
41827         * tests/test-rbtree_list.c (main): Update.
41828         * tests/test-avltreehash_list.c (main): Update.
41829         * tests/test-rbtreehash_list.c (main): Update.
41830         * tests/test-linked_list.c (main): Update.
41831         * tests/test-linkedhash_list.c (main): Update.
41832         * tests/test-array_oset.c (main): Update.
41833
41834 2007-03-15  Bruno Haible  <bruno@clisp.org>
41835
41836         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
41837         (gl_oset_create_empty): Add dispose_fn argument.
41838         (struct gl_oset_implementation): Add dispose_fn argument to
41839         'create_empty' method.
41840         (struct gl_oset_impl_base): Add dispose_fn field.
41841         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
41842         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
41843         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
41844         values.
41845         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
41846         (gl_tree_oset_free): Call dispose_fn on the dropped values.
41847         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41848         dropped value.
41849         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41850         dropped value.
41851         * tests/test-array_oset.c (main): Update.
41852         * tests/test-avltree_oset.c (main): Update.
41853         * tests/test-rbtree_oset.c (main): Update.
41854         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
41855
41856 2007-03-13  Bruno Haible  <bruno@clisp.org>
41857
41858         * tests/test-stdbool.c (i): Update after last patch.
41859
41860 2007-03-12  Bruno Haible  <bruno@clisp.org>
41861
41862         * lib/quotearg.c: Include <wctype.h> early, before the definition of
41863         the iswprint macro. Needed on Solaris 2.5.1.
41864
41865 2007-03-12  Bruno Haible  <bruno@clisp.org>
41866
41867         * tests/test-printf-frexp.c (main): Declare x as volatile.
41868
41869 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41870
41871         * doc/gnulib.texi (Build robot for gnulib): New section.
41872
41873 2007-03-12  Jim Meyering  <jim@meyering.net>
41874
41875         * build-aux/bootstrap: New file.
41876         * build-aux/bootstrap.conf: New file, from coreutils.
41877
41878 2007-03-11  Bruno Haible  <bruno@clisp.org>
41879
41880         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
41881
41882 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41883
41884         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
41885         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
41886         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
41887
41888 2007-03-11  Bruno Haible  <bruno@clisp.org>
41889
41890         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
41891         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
41892
41893 2007-03-11  Bruno Haible  <bruno@clisp.org>
41894
41895         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
41896         formula. Needed for SunPRO C 5.0.
41897
41898 2007-03-11  Bruno Haible  <bruno@clisp.org>
41899
41900         * modules/long-options (Depends-on): Add getopt.
41901
41902 2007-03-11  Bruno Haible  <bruno@clisp.org>
41903
41904         * modules/modechange (Depends-on): Add stdbool.
41905
41906 2007-03-11  Bruno Haible  <bruno@clisp.org>
41907
41908         * modules/i-ring (Depends-on): Add stdbool.
41909
41910 2007-03-11  Bruno Haible  <bruno@clisp.org>
41911
41912         * modules/gc-des (Depends-on): Add stdbool.
41913
41914 2007-03-11  Bruno Haible  <bruno@clisp.org>
41915
41916         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
41917
41918 2007-03-11  Bruno Haible  <bruno@clisp.org>
41919
41920         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
41921
41922 2007-03-11  Bruno Haible  <bruno@clisp.org>
41923
41924         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
41925
41926 2007-03-11  Bruno Haible  <bruno@clisp.org>
41927
41928         * lib/vasnprintf.c (sprintf): Undefine.
41929
41930 2007-03-11  Bruno Haible  <bruno@clisp.org>
41931
41932         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
41933         initializers in SunPRO C and Compaq C compilers.
41934
41935 2007-03-11  Bruno Haible  <bruno@clisp.org>
41936
41937         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
41938         decrementing code ANSI C compliant.
41939
41940 2007-03-11  Bruno Haible  <bruno@clisp.org>
41941
41942         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
41943         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
41944
41945 2007-03-11  Bruno Haible  <bruno@clisp.org>
41946
41947         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
41948         <stdbool.h> substitute doesn't pass.
41949
41950 2007-03-11  Bruno Haible  <bruno@clisp.org>
41951
41952         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
41953
41954 2007-03-11  Bruno Haible  <bruno@clisp.org>
41955
41956         * gnulib-tool (func_create_megatestdir): Create also an autobuild
41957         script, for submission to autobuild.josefsson.org.
41958
41959 2007-03-10  Bruno Haible  <bruno@clisp.org>
41960
41961         * modules/canonicalize-lgpl-tests: New file.
41962         * tests/test-canonicalize-lgpl.sh: New file.
41963         * tests/test-canonicalize-lgpl.c: New file.
41964
41965         * modules/c-strcase-tests: New file.
41966         * tests/test-c-strcase.sh: New file.
41967         * tests/test-c-strcasecmp.c: New file.
41968         * tests/test-c-strncasecmp.c: New file.
41969
41970         * modules/atexit-tests: New file.
41971         * tests/test-atexit.sh: New file.
41972         * tests/test-atexit.c: New file.
41973
41974 2007-03-10  Bruno Haible  <bruno@clisp.org>
41975
41976         * tests/test-binary-io.sh: Use temporary filenames that are not so
41977         likely to clash with those of other tests (in a parallel make).
41978         * tests/test-binary-io.c: Likewise.
41979
41980 2007-03-10  Bruno Haible  <bruno@clisp.org>
41981
41982         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
41983         fallback; use #error instead.
41984         Suggested by Simon Josefsson.
41985
41986 2007-03-10  Bruno Haible  <bruno@clisp.org>
41987
41988         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
41989         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
41990         first and the last.
41991
41992 2007-03-10  Bruno Haible  <bruno@clisp.org>
41993
41994         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
41995
41996 2007-03-10  Bruno Haible  <bruno@clisp.org>
41997
41998         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
41999         "make distcheck".
42000         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
42001         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
42002         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
42003
42004 2007-03-10  Bruno Haible  <bruno@clisp.org>
42005
42006         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
42007         variable.
42008         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
42009         variable.
42010
42011 2007-03-09  Eric Blake  <ebb9@byu.net>
42012         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
42013
42014         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
42015         types are not being provided by gnulib.
42016         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
42017         types are supported.
42018
42019 2007-03-10  Bruno Haible  <bruno@clisp.org>
42020
42021         * lib/stdio_.h (__attribute__): New macro.
42022         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
42023         vsprintf): Specify __attribute__ __format__ for GCC.
42024         Suggested by Eric Blake.
42025
42026 2007-03-09  Bruno Haible  <bruno@clisp.org>
42027
42028         * modules/printf-posix-tests: New file.
42029         * tests/test-printf-posix.sh: New file.
42030         * tests/test-printf-posix.c: New file.
42031
42032         * modules/printf-posix: New file.
42033         * lib/printf.c: New file.
42034         * m4/printf-posix-rpl.m4: New file.
42035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
42036         REPLACE_PRINTF.
42037         * lib/stdio_.h (printf): New declaration.
42038         (format, __format__, ____printf____, ____scanf____, ____strftime____,
42039         ____strfmon____): New macros.
42040         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
42041         REPLACE_PRINTF.
42042
42043 2007-03-09  Bruno Haible  <bruno@clisp.org>
42044
42045         * tests/test-vasnprintf-posix2.sh: New file.
42046         * tests/test-vasnprintf-posix2.c: New file.
42047         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
42048         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42049         (Makefile.am): Activate test-vasnprintf-posix2.sh.
42050
42051         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
42052         a locale dependent decimal point, rather than always '.'.
42053
42054 2007-03-09  Eric Blake  <ebb9@byu.net>
42055
42056         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
42057         spite of platforms like Tandem/NSK that define it to -1.
42058
42059 2007-03-08  Bruno Haible  <bruno@clisp.org>
42060
42061         * modules/vprintf-posix-tests: New file.
42062         * tests/test-vprintf-posix.sh: New file.
42063         * tests/test-vprintf-posix.c: New file.
42064         * tests/test-printf-posix.h: New file.
42065
42066         * modules/vprintf-posix: New file.
42067         * lib/vprintf.c: New file.
42068         * m4/vprintf-posix.m4: New file.
42069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
42070         REPLACE_VPRINTF.
42071         * lib/stdio_.h (vprintf): New declaration.
42072         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
42073         REPLACE_VPRINTF.
42074
42075 2007-03-08  Bruno Haible  <bruno@clisp.org>
42076
42077         * modules/fprintf-posix-tests: New file.
42078         * tests/test-fprintf-posix.sh: New file.
42079         * tests/test-fprintf-posix.c: New file.
42080
42081         * modules/fprintf-posix: New file.
42082         * lib/fprintf.c: New file.
42083         * m4/fprintf-posix.m4: New file.
42084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
42085         REPLACE_FPRINTF.
42086         * lib/stdio_.h (fprintf): New declaration.
42087         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
42088         REPLACE_FPRINTF.
42089
42090 2007-03-08  Bruno Haible  <bruno@clisp.org>
42091
42092         * modules/vfprintf-posix-tests: New file.
42093         * tests/test-vfprintf-posix.sh: New file.
42094         * tests/test-vfprintf-posix.c: New file.
42095         * tests/test-fprintf-posix.h: New file.
42096         * tests/test-fprintf-posix.out: New file.
42097
42098         * modules/vfprintf-posix: New file.
42099         * lib/vfprintf.c: New file.
42100         * m4/vfprintf-posix.m4: New file.
42101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
42102         REPLACE_VFPRINTF.
42103         * lib/stdio_.h (vfprintf): New declaration.
42104         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
42105         REPLACE_VFPRINTF.
42106
42107 2007-03-08  Bruno Haible  <bruno@clisp.org>
42108
42109         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
42110
42111 2007-03-08  Bruno Haible  <bruno@clisp.org>
42112
42113         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
42114         instead of 'expr' invocations.
42115         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42116         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42117         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42118         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42119         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42120         Suggested by Paul Eggert.
42121
42122 2007-03-08  Bruno Haible  <bruno@clisp.org>
42123
42124         * modules/fseterr-tests: New file.
42125         * tests/test-fseterr.c: New file.
42126
42127         * modules/fseterr: New file.
42128         * lib/fseterr.h: New file.
42129         * lib/fseterr.c: New file.
42130
42131 2007-03-08  Bruno Haible  <bruno@clisp.org>
42132
42133         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
42134         * lib/getopt_.h: Likewise.
42135         * lib/mbswidth.h: Likewise.
42136         * lib/setenv.h: Likewise.
42137         * lib/vasnprintf.h: Likewise.
42138         * lib/vasprintf.h: Likewise.
42139         * lib/verror.h: Likewise.
42140         * lib/xsetenv.h: Likewise.
42141         * lib/xvasprintf.h: Likewise.
42142
42143 2007-03-08  Jim Meyering  <jim@meyering.net>
42144
42145         * users.txt: Add parted.
42146
42147         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
42148
42149 2007-03-07  Bruno Haible  <bruno@clisp.org>
42150
42151         * m4/printf.m4: Make the shell script snippets copy&pastable.
42152
42153 2007-03-02  Bruno Haible  <bruno@clisp.org>
42154
42155         * lib/netinet_in_.h: New file.
42156         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
42157         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
42158         * modules/netinet_in (Files): Add lib/netinet_in_.h.
42159         (Depends-on): Add absolute-header.
42160         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
42161         into netinet/in.h.
42162
42163 2007-03-03  Bruno Haible  <bruno@clisp.org>
42164
42165         * lib/sys_select_.h: New file.
42166         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
42167         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
42168         * modules/sys_select (Files): Add lib/sys_select_.h.
42169         (Depends-on): Add absolute-header.
42170         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
42171         into sys/select.h.
42172
42173 2007-03-02  Bruno Haible  <bruno@clisp.org>
42174
42175         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
42176         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
42177         values.
42178         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
42179         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
42180         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
42181         * modules/sys_socket (Depends-on): Add absolute-header.
42182         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
42183         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
42184         (Include): Remove requirement of inclusion of <sys/types.h>.
42185
42186 2007-03-02  Bruno Haible  <bruno@clisp.org>
42187
42188         * lib/byteswap_.h (bswap_32): Fix formula.
42189
42190 2007-03-06  Bruno Haible  <bruno@clisp.org>
42191
42192         * modules/sprintf-posix-tests: New file.
42193         * tests/test-sprintf-posix.c: New file.
42194
42195         * modules/sprintf-posix: New file.
42196         * lib/sprintf.c: New file.
42197         * m4/sprintf-posix.m4: New file.
42198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
42199         REPLACE_SPRINTF.
42200         * lib/stdio_.h (sprintf): New declaration.
42201         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
42202         REPLACE_SPRINTF.
42203
42204 2007-03-06  Bruno Haible  <bruno@clisp.org>
42205
42206         * modules/vsprintf-posix-tests: New file.
42207         * tests/test-vsprintf-posix.c: New file.
42208         * tests/test-sprintf-posix.h: New file.
42209
42210         * modules/vsprintf-posix: New file.
42211         * lib/vsprintf.c: New file.
42212         * m4/vsprintf-posix.m4: New file.
42213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
42214         REPLACE_VSPRINTF.
42215         * lib/stdio_.h (vsprintf): New declaration.
42216         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
42217         REPLACE_VSPRINTF.
42218
42219 2007-03-06  Bruno Haible  <bruno@clisp.org>
42220
42221         * modules/vsnprintf (Depend-on): Remove minmax.
42222
42223 2007-03-06  Bruno Haible  <bruno@clisp.org>
42224
42225         * modules/snprintf-posix-tests: New file.
42226         * tests/test-snprintf-posix.c: New file.
42227
42228         * modules/snprintf-posix: New file.
42229         * m4/snprintf-posix.m4: New file.
42230         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
42231         gl_FUNC_SNPRINTF.
42232         (gl_FUNC_SNPRINTF): Invoke it.
42233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
42234         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
42235         is set.
42236         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
42237
42238 2007-03-06  Bruno Haible  <bruno@clisp.org>
42239
42240         * modules/vsnprintf-posix-tests: New file.
42241         * tests/test-vsnprintf-posix.c: New file.
42242         * tests/test-snprintf-posix.h: New file.
42243
42244         * modules/vsnprintf-posix: New file.
42245         * m4/vsnprintf-posix.m4: New file.
42246         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
42247         gl_FUNC_VSNPRINTF.
42248         (gl_FUNC_VSNPRINTF): Invoke it.
42249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
42250         * lib/stdio_.h (vsnprintf): Define as a replacement if
42251         REPLACE_VSNPRINTF is set.
42252         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
42253
42254 2007-03-06  Bruno Haible  <bruno@clisp.org>
42255
42256         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
42257         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
42258
42259 2007-03-06  Bruno Haible  <bruno@clisp.org>
42260
42261         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
42262         (asinl): Declare also if HAVE_DECL_ASINL is set.
42263         (atanl): Declare also if HAVE_DECL_ATANL is set.
42264         (ceill): Declare also if HAVE_DECL_CEILL is set.
42265         (cosl): Declare also if HAVE_DECL_COSL is set.
42266         (expl): Declare also if HAVE_DECL_EXPL is set.
42267         (floorl): Declare also if HAVE_DECL_FLOORL is set.
42268         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
42269         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
42270         (logl): Declare also if HAVE_DECL_LOGL is set.
42271         (sinl): Declare also if HAVE_DECL_SINL is set.
42272         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
42273         (tanl): Declare also if HAVE_DECL_TANL is set.
42274         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
42275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
42276         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
42277         declaration of frexpl, ldexpl.
42278         * modules/printf-frexpl (Depends-on): Add math.
42279         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
42280
42281 2007-03-05  Bruno Haible  <bruno@clisp.org>
42282
42283         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
42284         frexpl and ldexpl are declared.
42285         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
42286
42287 2007-03-05  Bruno Haible  <bruno@clisp.org>
42288
42289         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
42290         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
42291
42292 2007-03-05  Bruno Haible  <bruno@clisp.org>
42293
42294         * lib/stdio_.h: Include <stddef.h>.
42295
42296 2007-03-05  Bruno Haible  <bruno@clisp.org>
42297
42298         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
42299
42300 2007-03-05  Bruno Haible  <bruno@clisp.org>
42301
42302         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
42303         NetBSD 4, from Ralf Wildenhues.
42304
42305 2007-03-04  Bruno Haible  <bruno@clisp.org>
42306
42307         * lib/vasprintf.h: Update #if logic for the case when the functions
42308         exist but are overridden.
42309
42310 2007-03-04  Bruno Haible  <bruno@clisp.org>
42311
42312         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
42313         implementations: glibc-2.4 and MacOS X 10.3.
42314         * tests/test-vasnprintf-posix.c (test_function): Test also the case
42315         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
42316         * tests/test-vasprintf-posix.c (test_function): Likewise.
42317
42318 2007-03-04  Bruno Haible  <bruno@clisp.org>
42319
42320         * modules/vasprintf-posix-tests: New file.
42321         * tests/test-vasprintf-posix.c: New file.
42322
42323         * modules/vasprintf-posix: New file.
42324         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
42325         defined.
42326         * m4/vasprintf-posix.m4: New file.
42327         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
42328         gl_FUNC_VASPRINTF.
42329         (gl_FUNC_VASPRINTF): Invoke it.
42330         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
42331         here.
42332         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
42333
42334 2007-03-04  Bruno Haible  <bruno@clisp.org>
42335
42336         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
42337         REPLACE_GETTIMEOFDAY.
42338         * modules/sys_time (Makefile.am): Likewise.
42339         * m4/sys_time_h.m4: Likewise.
42340         * m4/gettimeofday.m4: Likewise.
42341
42342 2007-03-04  Bruno Haible  <bruno@clisp.org>
42343
42344         * modules/vasnprintf-posix-tests: New file.
42345         * tests/test-vasnprintf-posix.c: New file.
42346
42347         * modules/vasnprintf-posix: New file.
42348         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
42349         printf-frexpl.h.
42350         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
42351         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
42352         REPLACE_VASNPRINTF is defined.
42353         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
42354         gl_FUNC_VASNPRINTF.
42355         (gl_FUNC_VASNPRINTF): Invoke it.
42356         * m4/vasnprintf-posix.m4: New file.
42357         * m4/printf.m4: New file.
42358
42359 2007-03-04  Bruno Haible  <bruno@clisp.org>
42360
42361         Compile progreloc.c only if --enable-relocatable is specified.
42362         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
42363         if --enable-relocatable was specified.
42364         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
42365         lib_SOURCES.
42366
42367 2007-03-04  Jim Meyering  <jim@meyering.net>
42368
42369         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
42370         Use it consistently, rather than enumerating errno constants.
42371
42372 2007-03-04  Bruno Haible  <bruno@clisp.org>
42373
42374         * modules/xvasprintf-tests: New file.
42375         * tests/test-xvasprintf.c: New file.
42376
42377         * modules/vasprintf-tests: New file.
42378         * tests/test-vasprintf.c: New file.
42379
42380         * modules/vasnprintf-tests: New file.
42381         * tests/test-vasnprintf.c: New file.
42382
42383         * modules/vsnprintf-tests: New file.
42384         * tests/test-vsnprintf.c: New file.
42385
42386         * modules/snprintf-tests: New file.
42387         * tests/test-snprintf.c: New file.
42388
42389 2007-03-04  Bruno Haible  <bruno@clisp.org>
42390
42391         Compile relocatable.c only if --enable-relocatable is specified.
42392         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
42393         gl_RELOCATABLE_LIBRARY.
42394         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
42395         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
42396         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
42397         gl_RELOCATABLE_LIBRARY.
42398         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
42399         (Makefile.am): Remove lib_SOURCES.
42400         * modules/relocatable-lib-lgpl (configure.ac): Invoke
42401         gl_RELOCATABLE_LIBRARY.
42402         (Makefile.am): Remove lib_SOURCES.
42403         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
42404         always.
42405         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42406         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
42407
42408 2007-03-04  Bruno Haible  <bruno@clisp.org>
42409
42410         * modules/argmatch-tests: New file.
42411         * tests/test-argmatch.c: New file.
42412
42413         * tests/test-allocsa.c (main): Halve the number of loop runs.
42414
42415         * modules/alloca-opt-tests: New file.
42416         * tests/test-alloca-opt.c: New file.
42417
42418 2007-03-04  Jim Meyering  <jim@meyering.net>
42419
42420         Work around difference between Linux ACLs and Solaris 10 ZFS.
42421         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
42422         for EINVAL.
42423
42424 2007-03-03  Bruno Haible  <bruno@clisp.org>
42425
42426         * modules/relocatable-prog (Depends-on): Add back progreloc's
42427         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
42428
42429 2007-03-03  Bruno Haible  <bruno@clisp.org>
42430
42431         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
42432         * modules/relocatable-lib: New file.
42433
42434 2007-03-03  Bruno Haible  <bruno@clisp.org>
42435
42436         * modules/relocatable-prog: Renamed from modules/relocatable.
42437         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
42438
42439 2007-03-03  Bruno Haible  <bruno@clisp.org>
42440
42441         * modules/relocatable-script (Files): Add doc/relocatable.texi,
42442         m4/relocatable-lib.m4.
42443         (Depends-on): Remove 'relocatable'.
42444         (configure.ac): Add gl_RELOCATABLE_NOP.
42445
42446 2007-03-03  Bruno Haible  <bruno@clisp.org>
42447
42448         * modules/relocatable-prog-wrapper: New file.
42449         * modules/relocatable (Depends-on): Add it. Remove all other
42450         dependencies except progname.
42451         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
42452
42453         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
42454         (gl_FUNC_STRERROR): Nop.
42455         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
42456
42457         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
42458         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
42459
42460         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
42461         (gl_FUNC_READLINK): Update.
42462
42463         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
42464
42465 2007-03-03  Bruno Haible  <bruno@clisp.org>
42466
42467         * lib/xreadlink.c: Include <unistd.h> unconditionally.
42468         * modules/xreadlink (Depends-on): Add unistd.
42469         * modules/xreadlink-with-size (Depends-on): Likewise.
42470
42471 2007-03-03  Bruno Haible  <bruno@clisp.org>
42472
42473         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
42474         extracted from gt_FUNC_SETENV.
42475         (gt_FUNC_SETENV): Remove macro.
42476         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
42477         remove gt_FUNC_SETENV.
42478
42479 2007-03-03  Bruno Haible  <bruno@clisp.org>
42480
42481         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
42482         ENABLE_RELOCATABLE here.
42483         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
42484
42485 2007-03-03  Bruno Haible  <bruno@clisp.org>
42486
42487         * modules/rbtreehash-list-tests (Depends-on): Add progname.
42488         * tests/test-rbtreehash_list.c: Include progname.h.
42489         (main): Call set_program_name.
42490
42491         * modules/rbtree-oset-tests (Depends-on): Add progname.
42492         * tests/test-rbtree_oset.c: Include progname.h.
42493         (main): Call set_program_name.
42494
42495         * modules/rbtree-list-tests (Depends-on): Add progname.
42496         * tests/test-rbtree_list.c: Include progname.h.
42497         (main): Call set_program_name.
42498
42499         * modules/linked-list-tests (Depends-on): Add progname.
42500         * tests/test-linked_list.c: Include progname.h.
42501         (main): Call set_program_name.
42502
42503 2007-03-03  Bruno Haible  <bruno@clisp.org>
42504
42505         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
42506         All uses of __restrict changed to _Restrict_.
42507         * lib/glob_.h (__restrict): Remove macro.
42508
42509 2007-03-02  Bruno Haible  <bruno@clisp.org>
42510
42511         * modules/gettext (configure.ac): Require gettext infrastructure
42512         from version 0.16.1.
42513
42514 2007-03-02  Bruno Haible  <bruno@clisp.org>
42515
42516         * modules/linkedhash-list-tests (Depends-on): Add progname.
42517         * tests/test-linkedhash_list.c: Include progname.h.
42518         (main): Call set_program_name.
42519
42520         * modules/carray-list-tests (Depends-on): Add progname.
42521         * tests/test-carray_list.c: Include progname.h.
42522         (main): Call set_program_name.
42523
42524         * modules/avltreehash-list-tests (Depends-on): Add progname.
42525         * tests/test-avltreehash_list.c: Include progname.h.
42526         (main): Call set_program_name.
42527
42528         * modules/avltree-oset-tests (Depends-on): Add progname.
42529         * tests/test-avltree_oset.c: Include progname.h.
42530         (main): Call set_program_name.
42531
42532         * modules/avltree-list-tests (Depends-on): Add progname.
42533         * tests/test-avltree_list.c: Include progname.h.
42534         (main): Call set_program_name.
42535
42536         * modules/array-oset-tests (Depends-on): Add progname.
42537         * tests/test-array_oset.c: Include progname.h.
42538         (main): Call set_program_name.
42539
42540         * modules/array-list-tests (Depends-on): Add progname.
42541         * tests/test-array_list.c: Include progname.h.
42542         (main): Call set_program_name.
42543
42544         * modules/argp-tests (Depends-on): Add progname.
42545         * tests/test-argp.c: Include argp.h first. Include progname.h.
42546         (main): Call set_program_name.
42547
42548 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
42549
42550         * doc/gnulib-tool.texi (Initial import): Reword description of
42551         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
42552         limited effect even if defined after the first system include.
42553
42554 2007-03-01  Bruno Haible  <bruno@clisp.org>
42555
42556         * build-aux/config.libpath: Update to libtool-1.5.22.
42557         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42558
42559 2007-03-01  Bruno Haible  <bruno@clisp.org>
42560
42561         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
42562         foo_CFLAGS.
42563         Reported by Ralf Wildenhues.
42564
42565 2007-03-01  Bruno Haible  <bruno@clisp.org>
42566
42567         * build-aux/install-reloc: Remove object files left over by some
42568         compilers.
42569         Reported by Ralf Wildenhues.
42570
42571 2007-03-01  Bruno Haible  <bruno@clisp.org>
42572
42573         * build-aux/install-reloc: Break long lines.
42574
42575 2007-03-01  Bruno Haible  <bruno@clisp.org>
42576
42577         * doc/relocatable.texi: Document that it may not work on OpenBSD.
42578         Reported by Ralf Wildenhues.
42579
42580 2007-03-01  Bruno Haible  <bruno@clisp.org>
42581
42582         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
42583         include ordering constraints.
42584
42585 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42586
42587         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
42588         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
42589         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42590         as another example.
42591         * lib/time_.h: Fix misspelling.
42592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42593         Require gl_HEADER_TIME_H_DEFAULTS.
42594         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42595         * m4/time_r.m4 (gl_TIME_R): Likewise.
42596         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42597
42598 2007-03-01  Bruno Haible  <bruno@clisp.org>
42599
42600         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42601         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42602
42603 2007-03-01  Jim Meyering  <jim@meyering.net>
42604
42605         * modules/xreadlink (Maintainer): Add my name.
42606         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42607
42608 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42609             Bruno Haible  <bruno@clisp.org>
42610
42611         * build-aux/install-reloc: Compile also c-ctype.c.
42612         * build-aux/relocatable.sh.in: New file.
42613         * doc/relocatable.texi: New file.
42614         * doc/relocatable-maint.texi: New file.
42615         * doc/gnulib.texi: Include relocatable-maint.texi.
42616         * lib/progreloc.c: Include unistd.h unconditionally.
42617         * lib/relocwrapper.c: Include unistd.h unconditionally.
42618         Include c-ctype.h.
42619         (add_dotbin): Use c_tolower.
42620         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42621         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42622         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42623         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42624         to m4/relocatable-lib.m4.
42625         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42626         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42627         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42628         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42629         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42630         * modules/relocatable: New file.
42631         * modules/relocatable-lib: New file.
42632         * modules/relocatable-script: New file.
42633
42634 2007-02-28  Bruno Haible  <bruno@clisp.org>
42635
42636         Import --enable-relocatable infrastructure.
42637         * build-aux/config.libpath: New file, from GNU gettext.
42638         * build-aux/install-reloc: New file, from GNU gettext.
42639         * build-aux/reloc-ldflags: New file, from GNU gettext.
42640         * lib/relocatable.h: New file, from GNU gettext.
42641         * lib/relocatable.c: New file, from GNU gettext.
42642         * lib/relocwrapper.c: New file, from GNU gettext.
42643         * m4/relocatable.m4: New file, from GNU gettext.
42644
42645 2007-02-28  Bruno Haible  <bruno@clisp.org>
42646
42647         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42648
42649         * modules/xreadlink: New file, from GNU gettext with modifications.
42650         * lib/xreadlink.c: New file, from GNU gettext.
42651         * lib/xreadlink.h: Add comments.
42652         (xreadlink): New declaration.
42653
42654         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42655         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42656         lib/xreadlink-with-size.c.
42657         (configure.ac): Remove gl_XREADLINK invocation.
42658         (Makefile.am): Augment lib_SOURCES.
42659         * m4/xreadlink.m4: Remove file.
42660         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42661         (xreadlink_with_size): Renamed from xreadink.
42662         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42663         * modules/canonicalize (Depends-on): Replace xreadlink with
42664         xreadlink-with-size.
42665         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42666
42667 2007-02-25  Jim Meyering  <jim@meyering.net>
42668
42669         * build-aux/announce-gen: When complaining about excess arguments,
42670         list them.
42671
42672 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42673
42674         * README: Document signed integer overflow situation more
42675         accurately.
42676
42677 2007-02-25  Bruno Haible  <bruno@clisp.org>
42678
42679         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42680         'a' or 'A' conversion.
42681
42682 2007-02-25  Bruno Haible  <bruno@clisp.org>
42683
42684         * modules/filename: Renamed from modules/pathname.
42685         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42686         lib/concatpath.c with lib/concat-filename.c.
42687         (Makefile.am): Update.
42688         (Include): Replace pathname.h with filename.h.
42689         * lib/filename.h: Renamed from lib/pathname.h.
42690         (concatenated_filename): Renamed from concatenated_pathname.
42691         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42692         (concatenated_filename): Renamed from concatenated_pathname.
42693         * lib/findprog.c: Include filename.h instead of pathname.h.
42694         (find_in_path): Update.
42695         * lib/javacomp.c: Include filename.h instead of pathname.h.
42696         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42697         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42698         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42699         is_oldgcj_14_13_usable, is_javac_usable): Update.
42700         * lib/javaexec.c: Include filename.h instead of pathname.h.
42701         (execute_java_class): Update.
42702         * modules/findprog: Update.
42703         * modules/javacomp: Update.
42704         * modules/javaexec: Update.
42705         * MODULES.html.sh (File system functions): Add 'filename', remove
42706         'pathname'.
42707
42708 2007-02-25  Bruno Haible  <bruno@clisp.org>
42709
42710         * modules/printf-frexpl-tests: New file.
42711         * tests/test-printf-frexpl.c: New file.
42712
42713         * modules/printf-frexpl: New file.
42714         * lib/printf-frexpl.h: New file.
42715         * lib/printf-frexpl.c: New file.
42716         * m4/printf-frexpl.m4: New file.
42717
42718 2007-02-25  Bruno Haible  <bruno@clisp.org>
42719
42720         * modules/printf-frexp-tests: New file.
42721         * tests/test-printf-frexp.c: New file.
42722
42723         * modules/printf-frexp: New file.
42724         * lib/printf-frexp.h: New file.
42725         * lib/printf-frexp.c: New file.
42726         * m4/printf-frexp.m4: New file.
42727
42728 2007-02-25  Bruno Haible  <bruno@clisp.org>
42729
42730         Assume automake >= 1.10 for the tests.
42731         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42732         * modules/arctwo-tests: Likewise.
42733         * modules/argp-tests: Likewise.
42734         * modules/avltree-list-tests: Likewise.
42735         * modules/avltree-oset-tests: Likewise.
42736         * modules/avltreehash-list-tests: Likewise.
42737         * modules/carray-list-tests: Likewise.
42738         * modules/crc-tests: Likewise.
42739         * modules/des-tests: Likewise.
42740         * modules/gc-arcfour-tests: Likewise.
42741         * modules/gc-arctwo-tests: Likewise.
42742         * modules/gc-des-tests: Likewise.
42743         * modules/gc-hmac-md5-tests: Likewise.
42744         * modules/gc-hmac-sha1-tests: Likewise.
42745         * modules/gc-md2-tests: Likewise.
42746         * modules/gc-md4-tests: Likewise.
42747         * modules/gc-md5-tests: Likewise.
42748         * modules/gc-pbkdf2-sha1-tests: Likewise.
42749         * modules/gc-rijndael-tests: Likewise.
42750         * modules/gc-sha1-tests: Likewise.
42751         * modules/gc-tests: Likewise.
42752         * modules/getaddrinfo-tests: Likewise.
42753         * modules/hmac-md5-tests: Likewise.
42754         * modules/hmac-sha1-tests: Likewise.
42755         * modules/linked-list-tests: Likewise.
42756         * modules/linkedhash-list-tests: Likewise.
42757         * modules/lock-tests: Likewise.
42758         * modules/md2-tests: Likewise.
42759         * modules/md4-tests: Likewise.
42760         * modules/md5-tests: Likewise.
42761         * modules/rbtree-list-tests: Likewise.
42762         * modules/rbtree-oset-tests: Likewise.
42763         * modules/rbtreehash-list-tests: Likewise.
42764         * modules/read-file-tests: Likewise.
42765         * modules/rijndael-tests: Likewise.
42766         * modules/stdint-tests: Likewise.
42767         * modules/tls-tests: Likewise.
42768
42769 2007-02-24  Bruno Haible  <bruno@clisp.org>
42770
42771         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42772         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42773         function; instead check whether isnan with a double argument links.
42774         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42775         function; instead check whether isnan with a 'long double' argument
42776         links.
42777         Reported by Eric Blake <ebb9@byu.net>.
42778
42779 2007-02-24  Bruno Haible  <bruno@clisp.org>
42780
42781         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42782         defined.
42783         * lib/isnanl.c: Remove all code. Just include isnan.c.
42784         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42785
42786 2007-02-25  Jim Meyering  <jim@meyering.net>
42787
42788         Avoid conflicting types for 'unsetenv' on FreeBSD.
42789         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42790         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42791         in stdlib.h.
42792
42793 2007-02-24  Bruno Haible  <bruno@clisp.org>
42794
42795         * modules/isnanl-nolibm-tests: New file.
42796         * tests/test-isnanl.c: New file.
42797
42798         * modules/isnanl-nolibm: New file.
42799         * lib/isnanl.h: New file.
42800         * lib/isnanl.c: New file.
42801         * m4/isnanl.m4: New file.
42802
42803 2007-02-24  Bruno Haible  <bruno@clisp.org>
42804
42805         * modules/isnan-nolibm-tests: New file.
42806         * tests/test-isnan.c: New file.
42807
42808         * modules/isnan-nolibm: New file.
42809         * lib/isnan.h: New file.
42810         * lib/isnan.c: New file.
42811         * m4/isnan.m4: New file.
42812
42813 2007-02-24  Bruno Haible  <bruno@clisp.org>
42814
42815         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42816         assume that an exponent fits in 20 bits.
42817
42818 2007-02-24  Jim Meyering  <jim@meyering.net>
42819
42820         * m4/regex.m4: Update the description of the configure-time option,
42821         --without-included-regex, to state accurately what the defaults are,
42822         and perhaps to give people an idea why using this option is risky.
42823
42824 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42825
42826         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42827         loops on small arguments.  This attempts to avoid the problem
42828         Bruno Haible reported for AIX 4.3.2 in
42829         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42830
42831 2007-02-23  Bruno Haible  <bruno@clisp.org>
42832
42833         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
42834         Needed for help2man.
42835
42836 2007-02-23  Karl Berry  <karl@gnu.org>
42837
42838         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
42839         exists, foo.h should be cvs-ignored, not committed.
42840
42841 2007-02-23  Eric Blake  <ebb9@byu.net>
42842
42843         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
42844         * lib/stat-time.h (includes): Likewise.
42845         * lib/utimecmp.c (includes): Likewise.
42846         * lib/utimens.h (includes): Likewise.
42847         * lib/getdate.y (includes): Also include "timespec.h" for use
42848         internal to the module.
42849         * modules/utimens (Depends-on): Revert yesterday's patch.
42850         * modules/nanosleep (Depends-on): Add missing dependency.
42851
42852 2007-02-22  Bruno Haible  <bruno@clisp.org>
42853
42854         * lib/glob.c: Don't include getlogin_r.h.
42855
42856 2007-02-22  Jim Meyering  <jim@meyering.net>
42857
42858         * modules/utimens (Depends-on): Add timespec, required for
42859         utimens.h's inclusion of timespec.h.
42860
42861 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
42862
42863         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
42864         long unreadable paths in GNU/Linux.  Problem reported by Andreas
42865         Schwab in
42866         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
42867         I'll try to think of a better way to fix the Solaris problem.
42868
42869         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
42870         like glibc; on Solaris 10, it fails with errno == EINVAL.
42871         POSIX says the behavior is unspecified if the first argument is NULL,
42872         so play it safe and never pass NULL to the system getcwd.
42873
42874 2007-02-21  Jim Meyering  <jim@meyering.net>
42875
42876         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
42877         of gettimeofday.  It would conflict with the one now always
42878         provided via sys_time_.h.  Reported by Matthew Woehlke, as
42879         an IRIX 6.5 build failure.
42880
42881 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42882
42883         Minor fixups to port to Solaris 10 with Sun C 5.8.
42884         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
42885         * modules/getcwd (Depends-on): Add dirfd.
42886         * lib/putenv.c (putenv): #undef it.
42887         (rpl_putenv): New decl.
42888         (malloc, free): Include <stdlib.h> rather than prototyping separately.
42889
42890 2007-02-20  Bruno Haible  <bruno@clisp.org>
42891
42892         * modules/stdio-tests: New file.
42893         * tests/test-stdio.c: New file.
42894
42895         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
42896         (Depends-on): Add stdio.
42897         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42898         (Include): Use <stdio.h> instead of vsnprintf.h.
42899         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42900         HAVE_DECL_VSNPRINTF.
42901         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
42902
42903         * modules/snprintf (Files): Remove lib/snprintf.h.
42904         (Depends-on): Add stdio.
42905         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42906         (Include): Use <stdio.h> instead of snprintf.h.
42907         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42908         HAVE_DECL_SNPRINTF.
42909         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
42910         * lib/getaddrinfo.c: Likewise.
42911
42912         * modules/stdio: New file.
42913         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
42914         * lib/snprintf.h: Remove file.
42915         * lib/vsnprintf.h: Remove file.
42916         * lib/.cppi-disable: Remove snprintf.h.
42917         * m4/stdio_h.m4: New file.
42918         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
42919
42920 2007-02-20  Jim Meyering  <jim@meyering.net>
42921
42922         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
42923         used by e.g., mingw.  From Bruno Haible.
42924
42925 2007-02-19  Bruno Haible  <bruno@clisp.org>
42926
42927         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
42928         warnings.
42929         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42930
42931 2007-02-19  Bruno Haible  <bruno@clisp.org>
42932
42933         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
42934         from mingw users.
42935
42936 2007-02-19  Bruno Haible  <bruno@clisp.org>
42937
42938         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
42939         warnings.
42940         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
42941
42942 2007-02-19  Jim Meyering  <jim@meyering.net>
42943
42944         Don't use FD after a successful "fdopendir (fd)".
42945         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
42946         Reset it by calling dirfd on the just-obtained DIR*.
42947
42948         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
42949         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
42950
42951 2007-02-18  Bruno Haible  <bruno@clisp.org>
42952
42953         * lib/readlink.c: Include <unistd.h>.
42954         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
42955         HAVE_READLINK.
42956         * modules/readlink (Depends-on): Add unistd.
42957         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42958         (Include): Add <unistd.h>.
42959
42960         * lib/getlogin_r.h: Remove file.
42961         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
42962         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
42963         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
42964         HAVE_DECL_GETLOGIN_R.
42965         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
42966         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42967         (Include): Use <unistd.h> instead of getlogin_r.h.
42968
42969         * lib/getcwd.h: Remove file.
42970         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
42971         * lib/xgetcwd.c: Likewise.
42972         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
42973         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
42974         * modules/getcwd (Files): Remove lib/getcwd.h.
42975         (Depends-on): Add unistd.
42976         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42977         (Include): Use <unistd.h> instad of getcwd.h.
42978
42979         * lib/ftruncate.c: Include <unistd.h> first.
42980         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
42981         Set HAVE_FTRUNCATE.
42982         * modules/ftruncate (Depends-on): Add unistd.
42983         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42984
42985         * lib/fchdir.c: Include <unistd.h> first.
42986         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
42987         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
42988         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
42989         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42990         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
42991
42992         * lib/dup2.c: Include <unistd.h> first.
42993         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
42994         HAVE_DUP2.
42995         * modules/dup2 (Depends-on): Add unistd.
42996         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42997
42998         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
42999         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
43000         REPLACE_CHOWN. Don't define chown as a macro here.
43001         * modules/chown (Depends-on): Add unistd.
43002         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43003
43004         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
43005         Add definition for GL_LINK_WARNING.
43006         (chown, dup2): New declarations.
43007         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
43008         link warning.
43009         (ftruncate): New declaration.
43010         (getcwd): New declaration, taken from old getcwd.h.
43011         (getlogin_r): New declaration, taken from old getlogin_r.h.
43012         (readlink): New declaration.
43013         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
43014         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
43015         (gl_PREREQ_UNISTD): Remove macro.
43016         (gl_UNISTD_MODULE_INDICATOR): New macro.
43017         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
43018         many new variables. Don't set UNISTD_H.
43019         * modules/unistd (Description): Change.
43020         (Depends-on): Add link-warning.
43021         (configure.ac): Update.
43022         (Makefile.am): Create unistd.h always. Substitute many new variables
43023         into it.
43024
43025 2007-02-18  Bruno Haible  <bruno@clisp.org>
43026
43027         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
43028         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
43029         HAVE_GETSUBOPT.
43030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
43031         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
43032         * lib/getsubopt.h: Remove file.
43033         * modules/getsubopt (Files): Remove lib/getsubopt.h.
43034         (Depends-on): Add stdlib.
43035         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43036         (Includes): Use <stdlib.h> instead of getsubopt.h.
43037         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
43038         Set HAVE_GETSUBOPT.
43039         * lib/getsubopt.c: Don't include getsubopt.h.
43040
43041 2007-02-18  Bruno Haible  <bruno@clisp.org>
43042
43043         * modules/fchdir (Depends-on): Add dup2.
43044
43045 2007-02-18  Bruno Haible  <bruno@clisp.org>
43046
43047         * lib/stdlib_.h: Handle glibc's special invocation convention
43048         specially.
43049
43050 2007-02-18  Bruno Haible  <bruno@clisp.org>
43051
43052         * modules/stdlib-tests: New file.
43053         * tests/test-stdlib.c: New file.
43054
43055         * modules/mkstemp (Files): Remove lib/mkstemp.h.
43056         (Depends-on): Add stdlib.
43057         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43058         (Includes): Use <stdlib.h> instead of mkstemp.h.
43059         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43060         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
43061         * lib/mkstemp.c: Don't include mkstemp.h.
43062         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
43063         * lib/stdlib--.h: Don't include mkstemp.h.
43064
43065         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
43066         (Depends-on): Add stdlib.
43067         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43068         (Includes): Use <stdlib.h> instead of mkdtemp.h.
43069         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43070         HAVE_MKDTEMP.
43071         * lib/mkdtemp.c: Don't include mkdtemp.h.
43072         * lib/clean-temp.c: Don't include mkdtemp.h.
43073
43074         * modules/exit (Files): Remove lib/exit.h.
43075         (Depends-on): Add stdlib.
43076         (Makefile.am): Remove lib_SOURCES.
43077         (Include): Use <stdlib.h> instead of exit.h.
43078         * lib/argmatch.c: Don't include exit.h.
43079         * lib/execute.c: Likewise.
43080         * lib/pagealign_alloc.c: Likewise.
43081         * lib/pipe.c: Likewise.
43082         * lib/wait-process.c: Likewise.
43083         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
43084         * lib/exitfail.c: Likewise.
43085         * lib/savewd.c: Likewise.
43086         * lib/xsetenv.c: Likewise.
43087
43088         * modules/stdlib: New file.
43089         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
43090         and extra comments about mkstemp().
43091         * lib/exit.h: Remove file.
43092         * lib/mkdtemp.h: Remove file.
43093         * lib/mkstemp.h: Remove file.
43094         * m4/stdlib_h.m4: New file.
43095         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
43096
43097 2007-02-18  Bruno Haible  <bruno@clisp.org>
43098
43099         * modules/math-tests: New file.
43100         * tests/test-math.c: New file.
43101
43102         * modules/math: New file.
43103         * modules/mathl (Files): Remove lib/mathl.h.
43104         (Depends-on): Add math.
43105         (Makefile.am): Don't mention mathl.h.
43106         (Include): Use <math.h> instead of mathl.h.
43107         * lib/math_.h: New file.
43108         * lib/mathl.h: Remove file.
43109         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
43110         mathl.h.
43111         * lib/asinl.c: Likewise.
43112         * lib/atanl.c: Likewise.
43113         * lib/ceill.c: Likewise.
43114         * lib/cosl.c: Likewise.
43115         * lib/expl.c: Likewise.
43116         * lib/floorl.c: Likewise.
43117         * lib/frexpl.c: Likewise.
43118         * lib/ldexpl.c: Likewise.
43119         * lib/logl.c: Likewise.
43120         * lib/sincosl.c: Likewise.
43121         * lib/sinl.c: Likewise.
43122         * lib/sqrtl.c: Likewise.
43123         * lib/tanl.c: Likewise.
43124         * lib/trigl.c: Likewise.
43125         * m4/math_h.m4: New file.
43126         * MODULES.html.sh (Mathematics): Add math.
43127
43128 2007-02-17  Bruno Haible  <bruno@clisp.org>
43129
43130         * modules/wctype-tests: New file.
43131         * tests/test-wctype.c: New file.
43132
43133         * modules/wchar-tests: New file.
43134         * tests/test-wchar.c: New file.
43135
43136         * modules/unistd-tests: New file.
43137         * tests/test-unistd.c: New file.
43138
43139         * modules/time-tests: New file.
43140         * tests/test-time.c: New file.
43141
43142         * modules/sysexits-tests: New file.
43143         * tests/test-sysexits.c: New file.
43144
43145         * modules/sys_time-tests: New file.
43146         * tests/test-sys_time.c: New file.
43147
43148         * modules/sys_stat-tests: New file.
43149         * tests/test-sys_stat.c: New file.
43150
43151         * modules/sys_socket-tests: New file.
43152         * tests/test-sys_socket.c: New file.
43153
43154         * modules/sys_select-tests: New file.
43155         * tests/test-sys_select.c: New file.
43156
43157         * modules/string-tests: New file.
43158         * tests/test-string.c: New file.
43159
43160         * modules/stdbool-tests: New file.
43161         * tests/test-stdbool.c: New file.
43162
43163         * modules/netinet_in-tests: New file.
43164         * tests/test-netinet_in.c: New file.
43165
43166         * modules/inttypes-tests: New file.
43167         * tests/test-inttypes.c: New file.
43168
43169         * modules/fcntl-tests: New file.
43170         * tests/test-fcntl.c: New file.
43171
43172         * modules/byteswap-tests: New file.
43173         * tests/test-byteswap.c: New file.
43174
43175         * modules/arpa_inet-tests: New file.
43176         * tests/test-arpa_inet.c: New file.
43177
43178 2007-02-17  Bruno Haible  <bruno@clisp.org>
43179
43180         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
43181         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
43182         if the corresponding module is not enabled. Emit link warnings if
43183         the function is used nevertheless.
43184         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
43185         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
43186         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
43187         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
43188         * modules/inttypes (Depends-on): Add link-warning.
43189         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43190         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
43191         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
43192         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
43193         * modules/imaxdiv (configure.ac): Likewise.
43194         * modules/strtoimax (configure.ac): Likewise.
43195         * modules/strtoumax (configure.ac): Likewise.
43196
43197 2007-02-17  Bruno Haible  <bruno@clisp.org>
43198
43199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
43200         gl_STRING_MODULE_INDICATOR_DEFAULTS.
43201         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
43202         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
43203
43204 2007-02-17  Bruno Haible  <bruno@clisp.org>
43205
43206         * modules/link-warning: New file.
43207         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
43208         * lib/string_.h (GL_LINK_WARNING): Remove definition.
43209         * modules/string (Depends-on): Add link-warning.
43210         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43211         string.h.
43212         * MODULES.html.sh (Support for building libraries and executables): Add
43213         link-warning.
43214
43215 2007-02-17  Bruno Haible  <bruno@clisp.org>
43216
43217         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
43218         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
43219         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
43220         long lines.
43221
43222 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
43223             Bruno Haible  <bruno@clisp.org>
43224
43225         * modules/tmpfile: New file.
43226         * lib/tmpfile.c: New file.
43227         * m4/tmpfile.m4: New file.
43228         * MODULES.html.sh (func_all_modules): New section "Input/output".
43229
43230 2007-02-15  Bruno Haible  <bruno@clisp.org>
43231
43232         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
43233         (supports_delete_on_close): New function.
43234         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
43235
43236 2007-02-14  Bruno Haible  <bruno@clisp.org>
43237
43238         * modules/mbspcasecmp-tests: New file.
43239         * tests/test-mbspcasecmp.sh: New file.
43240         * tests/test-mbspcasecmp.c: New file.
43241
43242         New module mbspcasecmp.
43243         * modules/mbspcasecmp: New file.
43244         * lib/mbspcasecmp.c: New file.
43245         * lib/string_.h (strncasecmp): Change warning message.
43246         (mbspcasecmp): New declaration.
43247         * m4/mbspcasecmp.m4: New file.
43248         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43249         GNULIB_MBSPCASECMP.
43250         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
43251         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
43252
43253 2007-02-14  Bruno Haible  <bruno@clisp.org>
43254
43255         * modules/mbsncasecmp-tests: New file.
43256         * tests/test-mbsncasecmp.sh: New file.
43257         * tests/test-mbsncasecmp.c: New file.
43258
43259         New module mbsncasecmp.
43260         * modules/mbsncasecmp: New file.
43261         * lib/mbsncasecmp.c: New file.
43262         * lib/string_.h (mbsncasecmp): New declaration.
43263         * m4/mbsncasecmp.m4: New file.
43264         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43265         GNULIB_MBSNCASECMP.
43266         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
43267         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
43268
43269 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
43270
43271         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
43272         Verify that it doesn't overlap with our flags.
43273         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
43274         do not have the desired effect in multibyte locales; instead, use
43275         mbscasecmp.
43276         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
43277         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
43278         we don't require GNU fnmatch ourselves (if our users require it, they
43279         should do so explicitly).
43280
43281         Fix regex code so it doesn't rely on strcasecmp.
43282         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
43283         Otherwise, include gnulib's langinfo.h.
43284         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
43285         undesirable behavior in non-C locales.  Instead, rely on localecharset.
43286         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
43287         * modules/regex (FILES): Remove m4/codeset.m4.
43288         (Depends-on): Add localcharset.  Remove strcase.
43289
43290 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43291
43292         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
43293         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43294
43295 2007-02-13  Bruno Haible  <bruno@clisp.org>
43296
43297         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
43298         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43299
43300 2007-02-12  Bruno Haible  <bruno@clisp.org>
43301
43302         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43303         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
43304         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
43305         time warning rather than a link error.
43306
43307 2007-02-12  Bruno Haible  <bruno@clisp.org>
43308
43309         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
43310         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43311         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43312
43313 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43314
43315         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
43316         args, not 2.
43317
43318 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43319
43320         New module 'time', so that apps can include <time.h> as per
43321         POSIX and GNU instead of separate include files like time_r.h
43322         and timegm.h.  This implementation tries out a simpler approach
43323         for replacing decls in standard include files (as compared to
43324         the string module), somewhat as an experiment.
43325
43326         * config/srclist.txt: Comment out mktime.c for now.
43327         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
43328         since it doesn't apply any more.  Use generic wording instead.
43329         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
43330         'time'.
43331         * lib/time_.h, m4/time_h.m4, modules/time: New files.
43332         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
43333         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
43334         Don't include <sys/types.h>; no longer needed since we assume C89.
43335         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
43336         * lib/strftime.c: Likewise.
43337         * lib/time_r.c: Likewise.
43338         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
43339         * lib/nanosleep.c: Include <time.h> first, to check interface.
43340         * lib/strptime.c: Likewise.
43341         * lib/time_r.c: Likewise.
43342         * lib/timegm.c: Likewise.
43343         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
43344         needed.
43345         * lib/timegm.c: Don't include timegm.h; no longer needed.
43346         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
43347         time.h now handles any problems in that area.
43348         (struct timespec, nanosleep): Remove; time.h now arranges for these.
43349         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
43350         that time.h defines struct timespec.
43351         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
43352         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
43353         handles that.
43354         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
43355         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
43356         needed.  Set REPLACE_LOCALTIME.
43357         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
43358         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
43359         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
43360         nanosleep; time_h.m4 now does that.  Don't require
43361         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
43362         module handles this now.
43363         * modules/getdate (Depends-on): Remove timespec.  Add time.
43364         * modules/nanosleep (Depends-on): Likewise.
43365         * modules/stat-time (Depends-on): Likewise.
43366         * modules/nanosleep (Include): Include time.h, not timespec.h.
43367         * modules/strptime (Files): Remove lib/strptime.h.
43368         (Depends-on): Add extensions, time.
43369         (Include): Include time.h, not strptime.h.
43370         * modules/time_r (Files): Remove lib/time_r.h.
43371         (Depends-on): Add time.
43372         (Include): Include time.h, not time_r.h.
43373         * modules/timegm: Likewise.
43374         * modules/timespec (Description): Now does timespec-related decls
43375         of our own, instead of struct timespec itself.
43376         (Depends-on): Add time; remove extensions.
43377         (Maintainer): Add self.
43378         * modules/utimecmp (Depends-on): Add time; remove timespec.
43379         * modules/utimens (Depends-on): Likewise.
43380         * modules/xnanosleep (Depends-on): Likewise.
43381
43382 2007-02-11  Bruno Haible  <bruno@clisp.org>
43383
43384         * lib/c-strstr.c: Include allocsa.h.
43385         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43386         * lib/c-strcasestr.c: Include allocsa.h.
43387         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43388         * lib/strcasestr.c: Include allocsa.h.
43389         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43390         * lib/mbsstr.c: Include allocsa.h.
43391         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43392         allocsa/freesa instead of malloc/free.
43393         * lib/mbscasestr.c: Include allocsa.h.
43394         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43395         allocsa/freesa instead of malloc/free.
43396         * modules/c-strstr (Depends-on): Add allocsa.
43397         * modules/c-strcasestr (Depends-on): Likewise.
43398         * modules/strcasestr (Depends-on): Likewise.
43399         * modules/mbsstr (Depends-on): Likewise.
43400         * modules/mbscasestr (Depends-on): Likewise.
43401
43402 2007-02-11  Bruno Haible  <bruno@clisp.org>
43403
43404         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
43405
43406         * modules/mbsspn-tests: New file.
43407         * tests/test-mbsspn.sh: New file.
43408         * tests/test-mbsspn.c: New file.
43409
43410 2007-02-11  Bruno Haible  <bruno@clisp.org>
43411
43412         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
43413
43414         * modules/mbspbrk-tests: New file.
43415         * tests/test-mbspbrk.sh: New file.
43416         * tests/test-mbspbrk.c: New file.
43417
43418 2007-02-11  Bruno Haible  <bruno@clisp.org>
43419
43420         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
43421         unneeded cast.
43422
43423         * modules/mbscspn-tests: New file.
43424         * tests/test-mbscspn.sh: New file.
43425         * tests/test-mbscspn.c: New file.
43426
43427 2007-02-11  Bruno Haible  <bruno@clisp.org>
43428
43429         * modules/mbscasecmp-tests: New file.
43430         * tests/test-mbscasecmp.sh: New file.
43431         * tests/test-mbscasecmp.c: New file.
43432
43433 2007-02-11  Bruno Haible  <bruno@clisp.org>
43434
43435         Ensure O(n) worst-case complexity of mbscasestr.
43436         * lib/mbscasestr.c: Include stdbool.h.
43437         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43438         functions.
43439         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
43440         the bookkeeping indicates that it's worth it.
43441         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
43442
43443         * modules/mbscasestr-tests: New file.
43444         * tests/test-mbscasestr1.c: New file.
43445         * tests/test-mbscasestr2.sh: New file.
43446         * tests/test-mbscasestr2.c: New file.
43447         * tests/test-mbscasestr3.sh: New file.
43448         * tests/test-mbscasestr3.c: New file.
43449         * tests/test-mbscasestr4.sh: New file.
43450         * tests/test-mbscasestr4.c: New file.
43451         * m4/locale-tr.m4: New file.
43452
43453 2007-02-11  Bruno Haible  <bruno@clisp.org>
43454
43455         Ensure O(n) worst-case complexity of mbsstr.
43456         * lib/mbsstr.c: Include stdbool.h.
43457         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43458         functions.
43459         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
43460         bookkeeping indicates that it's worth it.
43461         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
43462
43463         * modules/mbsstr-tests: New file.
43464         * tests/test-mbsstr1.c: New file.
43465         * tests/test-mbsstr2.sh: New file.
43466         * tests/test-mbsstr2.c: New file.
43467         * tests/test-mbsstr3.sh: New file.
43468         * tests/test-mbsstr3.c: New file.
43469         * m4/locale-fr.m4: New file.
43470
43471 2007-02-11  Bruno Haible  <bruno@clisp.org>
43472
43473         * lib/mbsrchr.c (mbsrchr): Fix bug.
43474
43475         * modules/mbsrchr-tests: New file.
43476         * tests/test-mbsrchr.sh: New file.
43477         * tests/test-mbsrchr.c: New file.
43478
43479 2007-02-11  Bruno Haible  <bruno@clisp.org>
43480
43481         * lib/mbschr.c (mbschr): Fix bug.
43482
43483         * modules/mbschr-tests: New file.
43484         * tests/test-mbschr.sh: New file.
43485         * tests/test-mbschr.c: New file.
43486         * m4/locale-zh.m4: New file.
43487
43488 2007-02-11  Bruno Haible  <bruno@clisp.org>
43489
43490         Support for copying multibyte string iterators.
43491         * lib/mbiter.h: Include <string.h>.
43492         (mbiter_multi_copy): New function.
43493         (mbi_copy): New macro.
43494         * lib/mbuiter.h: Include <string.h>.
43495         (mbuiter_multi_copy): New function.
43496         (mbui_copy): New macro.
43497
43498 2007-02-11  Bruno Haible  <bruno@clisp.org>
43499
43500         New module mbslen.
43501         * modules/mbslen: New file.
43502         * lib/mbslen.c: New file.
43503         * lib/string_.h (mbslen): New declaration.
43504         * m4/mbslen.m4: New file.
43505         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43506         GNULIB_MBSLEN.
43507         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
43508         * MODULES.html.sh (Internationalization functions): Add mbslen.
43509
43510 2007-02-11  Bruno Haible  <bruno@clisp.org>
43511
43512         Ensure O(n) worst-case complexity of strcasestr substitute.
43513         * lib/strcasestr.c: Include stdbool.h.
43514         (knuth_morris_pratt): New function.
43515         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43516         bookkeeping indicates that it's worth it.
43517         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
43518
43519         * modules/strcasestr-tests: New file.
43520         * tests/test-strcasestr.c: New file.
43521
43522 2007-02-11  Bruno Haible  <bruno@clisp.org>
43523
43524         Ensure O(n) worst-case complexity of c_strcasestr.
43525         * lib/c-strcasestr.c: Include stdbool.h, string.h.
43526         (knuth_morris_pratt): New function.
43527         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
43528         the bookkeeping indicates that it's worth it.
43529         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
43530
43531         * modules/c-strcasestr-tests: New file.
43532         * tests/test-c-strcasestr.c: New file.
43533
43534 2007-02-11  Bruno Haible  <bruno@clisp.org>
43535
43536         Ensure O(n) worst-case complexity of c_strstr.
43537         * lib/c-strstr.c: Include stdbool.h, string.h.
43538         (knuth_morris_pratt): New function.
43539         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43540         bookkeeping indicates that it's worth it.
43541         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
43542
43543         * lib/c-strstr.c: Complete rewrite for maintainability.
43544
43545         * modules/c-strstr-tests: New file.
43546         * tests/test-c-strstr.c: New file.
43547
43548 2007-02-11  Bruno Haible  <bruno@clisp.org>
43549
43550         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
43551         5.2.1 and earlier, whereby \055 was treated just like the range
43552         delimiter '-'.
43553         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43554
43555 2007-02-08  Bruno Haible  <bruno@clisp.org>
43556
43557         * modules/regex (Depends-on): Add stdbool.
43558         Reported by Dalibor Topic <robilad@kaffe.org>.
43559
43560 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43561
43562         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
43563         Prefer returning from main to exiting from it.
43564         Remove unnecessary parens after sizeof.
43565
43566 2007-02-05  Bruno Haible  <bruno@clisp.org>
43567
43568         New module mbssep.
43569         * modules/mbssep: New file.
43570         * lib/mbssep.c: New file.
43571         * lib/string_.h (strsep): Add a conditional link warning.
43572         (mbssep): New declaration.
43573         * m4/mbssep.m4: New file.
43574         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43575         GNULIB_MBSSEP.
43576         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
43577         * MODULES.html.sh (Internationalization functions): Add mbssep.
43578
43579 2007-02-05  Bruno Haible  <bruno@clisp.org>
43580
43581         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
43582         Optimize search in case of 1 delimiter.
43583
43584 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43585
43586         * lib/acl.h: Include sys/types.h before sys/acl.h.
43587
43588 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43589
43590         Merge upstream fix for glibc bugzilla #3957:
43591
43592         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43593
43594         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43595         bit for RE_HAT_LISTS_NOT_NEWLINE.
43596         (build_charclass_op): Remove bogus comment.
43597
43598 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43599
43600         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43601
43602 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43603
43604         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43605         * lib/memmem.c [!defined _LIBC]: Include config.h.
43606
43607 2007-02-04  Bruno Haible  <bruno@clisp.org>
43608
43609         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43610         warning message.
43611
43612 2007-02-04  Bruno Haible  <bruno@clisp.org>
43613
43614         New module mbstok_r.
43615         * modules/mbstok_r: New file.
43616         * lib/mbstok_r.c: New file.
43617         * lib/string_.h (strtok_r): Change argument names to match the
43618         comments. Add a conditional link warning.
43619         (mbstok_r): New declaration.
43620         * m4/mbstok_r.m4: New file.
43621         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43622         GNULIB_MBSTOK_R.
43623         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43624         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43625
43626 2007-02-04  Bruno Haible  <bruno@clisp.org>
43627
43628         New module mbsspn.
43629         * modules/mbsspn: New file.
43630         * lib/mbsspn.c: New file.
43631         * lib/string_.h (strspn): Add a conditional link warning.
43632         (mbsspn): New declaration.
43633         * m4/mbsspn.m4: New file.
43634         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43635         GNULIB_MBSSPN.
43636         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43637         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43638
43639 2007-02-04  Bruno Haible  <bruno@clisp.org>
43640
43641         New module mbspbrk.
43642         * modules/mbspbrk: New file.
43643         * lib/mbspbrk.c: New file.
43644         * lib/string_.h (strpbrk): Add a conditional link warning.
43645         (mbspbrk): New declaration.
43646         * m4/mbspbrk.m4: New file.
43647         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43648         GNULIB_MBSPBRK.
43649         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43650         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43651
43652 2007-02-04  Bruno Haible  <bruno@clisp.org>
43653
43654         New module mbscspn.
43655         * modules/mbscspn: New file.
43656         * lib/mbscspn.c: New file.
43657         * lib/string_.h (strcspn): Add a conditional link warning.
43658         (mbscspn): New declaration.
43659         * m4/mbscspn.m4: New file.
43660         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43661         GNULIB_MBSCSPN.
43662         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43663         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43664
43665 2007-02-04  Bruno Haible  <bruno@clisp.org>
43666
43667         New module mbscasestr, reduced goal of strcasestr.
43668         * modules/mbscasestr: New file.
43669         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43670         (mbscasestr): Renamed from strcasestr.
43671         * lib/strcasestr.c: Don't include mbuiter.h.
43672         (strcasestr): Remove support for multibyte locales.
43673         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43674         Change the conditional link warning.
43675         (mbscasestr): New declaration.
43676         * m4/mbscasestr.m4: New file.
43677         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43678         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43679         REPLACE_STRCASESTR.
43680         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43682         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43683         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43684         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43685         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43686         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43687         (Depends-on): Remove mbuiter.
43688         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43689
43690 2007-02-04  Bruno Haible  <bruno@clisp.org>
43691
43692         Simplify handling of strncasecmp.
43693         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43694         the conditional link warning.
43695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43696         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43697         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43698         * modules/strcase (configure.ac): Don't invoke
43699         gl_STRING_MODULE_INDICATOR.
43700         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43701
43702 2007-02-04  Bruno Haible  <bruno@clisp.org>
43703
43704         New module mbscasecmp, reduced goal of strcasecmp.
43705         * modules/mbscasecmp: New file.
43706         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43707         (mbscasecmp): Renamed from strcasecmp.
43708         * lib/strcasecmp.c: Don't include mbuiter.h.
43709         (strcasecmp): Remove support for multibyte locales.
43710         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43711         Change the conditional link warning.
43712         (mbscasecmp): New declaration.
43713         * m4/mbscasecmp.m4: New file.
43714         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43715         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43716         REPLACE_STRCASECMP.
43717         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43718         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43719         GNULIB_MBSCASECMP.
43720         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43721         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43722         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43723         (Depends-on): Remove mbuiter.
43724         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43725
43726 2007-02-04  Bruno Haible  <bruno@clisp.org>
43727
43728         New module mbsstr. Remove module strstr.
43729         * modules/mbsstr: New file.
43730         * modules/strstr: Remove file.
43731         * lib/mbsstr.c: Renamed from lib/strstr.c.
43732         (mbsstr): Renamed from strstr.
43733         * lib/string_.h (strstr): Remove declaration. Change the conditional
43734         link warning.
43735         (mbsstr): New declaration.
43736         * m4/mbsstr.m4: New file.
43737         * m4/strstr.m4: Remove file.
43738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43739         REPLACE_STRSTR.
43740         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43741         Don't initialize GNULIB_STRSTR.
43742         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43743         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43744         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43745         (Support for systems lacking ANSI C 89): Remove strstr.
43746
43747 2007-02-04  Bruno Haible  <bruno@clisp.org>
43748
43749         New module mbsrchr.
43750         * modules/mbsrchr: New file.
43751         * lib/mbsrchr.c: New file.
43752         * lib/string_.h (strrchr): Add a conditional link warning.
43753         (mbsrchr): New declaration.
43754         * m4/mbsrchr.m4: New file.
43755         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43756         GNULIB_MBSRCHR.
43757         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43758         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43759
43760 2007-02-04  Bruno Haible  <bruno@clisp.org>
43761
43762         New module mbschr.
43763         * modules/mbschr: New file.
43764         * lib/mbschr.c: New file.
43765         * lib/string_.h (strchr): Add a conditional link warning.
43766         (mbschr): New declaration.
43767         * m4/mbschr.m4: New file.
43768         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43769         GNULIB_MBSCHR.
43770         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43771         * MODULES.html.sh (Internationalization functions): Add mbschr.
43772
43773 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43774
43775         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43776
43777         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43778
43779 2007-02-04  Bruno Haible  <bruno@clisp.org>
43780
43781         New module description section 'configure.ac-early'.
43782         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43783         (func_get_autoconf_early_snippet): New function.
43784         (func_import, func_create_testdir): Use it. Remove special cases for
43785         modules 'extensions' and 'lock'.
43786         * modules/extensions (configure.ac-early): Require
43787         gl_USE_SYSTEM_EXTENSIONS.
43788         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43789
43790 2007-02-04  Bruno Haible  <bruno@clisp.org>
43791
43792         Make use of gcj-4.3's -fsource and -ftarget option.
43793         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43794         and if so try the options -fsource and -ftarget.
43795         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43796         source_version, ftarget_option, target_version arguments.
43797         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43798         (is_envjavac_oldgcj_14_14_usable): Renamed from
43799         is_envjavac_gcj_14_14_usable.
43800         (is_envjavac_oldgcj_14_13_usable): Renamed from
43801         is_envjavac_gcj_14_13_usable.
43802         (is_gcj_present): Update.
43803         (is_gcj_43, is_gcj43_usable): New functions.
43804         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43805         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43806         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43807         try the options -fsource and -ftarget.
43808
43809 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43810
43811         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43812         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43813         larger value.
43814
43815 2007-02-03  Jim Meyering  <jim@meyering.net>
43816
43817         Give tools a better chance to allocate space for very large buffers.
43818         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43819
43820         Make pwd and readlink work also when run with an unreadable parent dir
43821         on systems with openat support.
43822         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43823         provided getcwd function, even when we have openat support.
43824         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43825
43826 2007-02-02  Bruno Haible  <bruno@clisp.org>
43827
43828         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43829         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43830         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43831         portability problems if one of these functions is only used on specific
43832         platforms.
43833         Reported by Paul Eggert.
43834
43835 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
43836
43837         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
43838         is causing more trouble than it's curing.
43839         * lib/regex_internal.h (__mempcpy): Remove.
43840         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
43841         (and make the code a tad smaller to boot).
43842         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
43843
43844 2007-02-02  Jim Meyering  <jim@meyering.net>
43845
43846         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
43847         section, not in the Makefile.am: one.
43848
43849 2007-02-02  Eric Blake  <ebb9@byu.net>
43850
43851         * lib/strchrnul.c: Always include config.h first.
43852
43853         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
43854         gnulib strstr is not necessary here.
43855
43856 2007-02-02  Simon Josefsson  <simon@josefsson.org>
43857
43858         * m4/socklen.m4: Fix typo.
43859
43860 2007-02-02  Eric Blake  <ebb9@byu.net>
43861
43862         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
43863         * modules/netinet_in (Makefile.am): Likewise.
43864
43865 2007-02-01  Bruno Haible  <bruno@clisp.org>
43866
43867         * lib/string_.h (GL_LINK_WARNING): New macro.
43868         (strcasecmp, strstr, strcasestr): If provided by the system,
43869         conditionally define as a macro that leads to a warning instead of to
43870         an error.
43871         (strncasecmp): Conditionally define as a macro that leads to a warning.
43872
43873 2007-02-01  Karl Berry  <karl@gnu.org>
43874
43875         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
43876
43877 2007-02-01  Bruno Haible  <bruno@clisp.org>
43878
43879         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
43880         renamings.
43881
43882 2007-02-01  Eric Blake  <ebb9@byu.net>
43883
43884         * modules/regex (Depends-on): Revert dependence on mempcpy.
43885         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
43886         module's definition of mempcpy.
43887         Reported by Paul Eggert.
43888
43889 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
43890
43891         * lib/string_.h: If the gnulib module XYZ is not present, undefine
43892         the symbol XYZ before redefining it.  This fixes a problem with
43893         programs that don't use XYZ, when compiled on systems that define
43894         XYZ to something else.
43895
43896 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
43897
43898         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
43899         occurs when "mkdir -m foo" creates a setgid directory that is (1)
43900         writeable to group or other and (2) is intended to have a special
43901         mode bit that is set or cleared.  In such a case, the directory
43902         should be neither group- nor other-writeable until the special
43903         mode bits are right.
43904
43905 2007-01-31  Eric Blake  <ebb9@byu.net>
43906
43907         * modules/mountlist (Depends-on): Add strstr.
43908
43909         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
43910         bug.
43911         * modules/string (Makefile.am): Remove redundant replacement.
43912         * modules/regex (Depends-on): Add mempcpy.
43913
43914 2007-01-31  Bruno Haible  <bruno@clisp.org>
43915
43916         New module description field 'Link'.
43917         * gnulib-tool (func_usage): Document --extract-link-directive.
43918         (sed_extract_prog): Recognize 'Link' directive.
43919         (func_get_link_directive): New function.
43920         (func_import): Show summary of link directives.
43921         Handle --extract-link-directive option.
43922         * modules/acl (Link): New section.
43923         * modules/clock-time (Link): New section.
43924         * modules/euidaccess (Link): New section.
43925         * modules/gettext (Link): New section.
43926         * modules/iconv (Link): New section.
43927         * modules/lock (Link): New section.
43928         * modules/nanosleep (Link): New section.
43929         * modules/readline (Link): New section.
43930
43931 2007-01-27  Bruno Haible  <bruno@clisp.org>
43932
43933         Enforce the use of gnulib modules for unportable <string.h> functions.
43934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
43935         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
43936         (gl_HEADER_STRING_H_BODY): Require it.
43937         * lib/string_.h: If the gnulib module XYZ is not present, redefine
43938         the symbol XYZ to one that gives a link error.
43939         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
43940         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
43941         * modules/mempcpy (configure.ac): Likewise.
43942         * modules/memrchr (configure.ac): Likewise.
43943         * modules/stpcpy (configure.ac): Likewise.
43944         * modules/stpncpy (configure.ac): Likewise.
43945         * modules/strcase (configure.ac): Likewise.
43946         * modules/strcasestr (configure.ac): Likewise.
43947         * modules/strchrnul (configure.ac): Likewise.
43948         * modules/strdup (configure.ac): Likewise.
43949         * modules/strndup (configure.ac): Likewise.
43950         * modules/strnlen (configure.ac): Likewise.
43951         * modules/strpbrk (configure.ac): Likewise.
43952         * modules/strsep (configure.ac): Likewise.
43953         * modules/strstr (configure.ac): Likewise.
43954         * modules/strtok_r (configure.ac): Likewise.
43955
43956 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
43957
43958         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
43959
43960 2007-01-30  Jim Meyering  <jim@meyering.net>
43961
43962         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
43963
43964 2007-01-29  Bruno Haible  <bruno@clisp.org>
43965
43966         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
43967         * lib/execute.c: Likewise.
43968         * lib/pipe.c: Likewise.
43969         * lib/printf-args.h: Likewise.
43970         * lib/printf-args.c: Likewise.
43971         * lib/printf-parse.c: Likewise.
43972         * lib/vasnprintf.c: Likewise.
43973
43974 2007-01-29  Eric Blake  <ebb9@byu.net>
43975
43976         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
43977         declaration.
43978
43979 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43980
43981         * lib/strptime.h (strptime): Use 'restrict' for args where
43982         POSIX requires this.
43983         * lib/strptime.c (strptime): Likewise.
43984         Change license notice from LGPL to GPL, since gnulib-tool will
43985         change this as needed.
43986         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
43987         defined.
43988         Include "strptime.h" first, to check interface.
43989         Do not #undef _LIBC and _NL_CURRENT.
43990         Do not include <stdlib.h>; no longer needed.
43991         Include "time_r.h" and declare ptime_locale_status
43992         only if _LIBC is not defined.
43993         (__P): Remove unused macro.
43994         (match_string): Bring back glibc version, but use it only if _LIBC
43995         is defined.
43996         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
43997         Remove unnecessary assertion and abort() call.
43998         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
43999         * m4/strptime.m4: Fix serial number comment.
44000         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
44001         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
44002         (Depends-on): Add time_r.
44003
44004 2007-01-29  Bruno Haible  <bruno@clisp.org>
44005
44006         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44007         strptime.
44008         * modules/strptime (Depends-on): Add stdbool.
44009         * lib/strptime.h: Include <time.h> always. Add comments.
44010
44011 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44012
44013         * modules/strptime: New file.
44014         * lib/strptime.h: New file.
44015         * lib/strptime.c: New file.
44016         * m4/strptime.m4: New file.
44017
44018 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44019
44020         * MODULES.html.sh: New module mpsort.
44021         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
44022
44023         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
44024         a circularity problem with HP-UX ia64 reported by Bob Proulx in
44025         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
44026         All uses changed.
44027         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
44028         All uses changed.
44029         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
44030         to _Restrict_.
44031         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
44032         the parameter matches the prototype.
44033
44034 2007-01-28  Jim Meyering  <jim@meyering.net>
44035
44036         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
44037         sys/time.h here, reverting that part of the previous patch:
44038         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
44039
44040 2007-01-28  Bruno Haible  <bruno@clisp.org>
44041
44042         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
44043         value of $(SYS_TIME_H).
44044         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
44045         remove it conditionally, too. [added by Jim Meyering]
44046         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
44047         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44048         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
44049         GETTIMEOFDAY_REPLACEMENT to 1.
44050
44051 2007-01-28  Bruno Haible  <bruno@clisp.org>
44052
44053         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
44054         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
44055         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
44056         Set UNISTD_H instead of UNISTD_H2.
44057         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
44058
44059 2007-01-28  Bruno Haible  <bruno@clisp.org>
44060
44061         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
44062         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
44063
44064 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44065
44066         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
44067         (func_create_testdir): Ensure C locale for `grep' and `tr'
44068         character ranges.
44069         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
44070         ACLOCAL_AMFLAGS parsing state machine.
44071
44072 2007-01-27  Bruno Haible  <bruno@clisp.org>
44073
44074         * modules/unistr/base: Update.
44075
44076 2007-01-27  Bruno Haible  <bruno@clisp.org>
44077
44078         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
44079         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
44080         * modules/unistr/u32-mbtouc-unsafe: Renamed from
44081         modules/unistr/u32-mbtouc.
44082         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
44083         * lib/unistr.h: Update.
44084         * lib/linebreak.c: Update.
44085         * modules/unistr/u32-mbtouc: Renamed from
44086         modules/unistr/u32-mbtouc-safe.
44087         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
44088         * lib/unistr.h: Update.
44089         * lib/unistr/u32-to-u8.c: Update.
44090         * lib/unistr/u32-to-u16.c: Update.
44091
44092 2007-01-27  Bruno Haible  <bruno@clisp.org>
44093
44094         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
44095         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
44096         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
44097         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
44098         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
44099         * modules/unistr/u16-mbtouc-unsafe: Renamed from
44100         modules/unistr/u16-mbtouc.
44101         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
44102         * lib/unistr.h: Update.
44103         * lib/linebreak.c: Update.
44104         * modules/linebreak: Update.
44105         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
44106         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
44107         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
44108         * modules/unistr/u16-mbtouc: Renamed from
44109         modules/unistr/u16-mbtouc-safe.
44110         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
44111         * lib/unistr.h: Update.
44112         * lib/unistr/u16-to-u8.c: Update.
44113         * modules/unistr/u16-to-u8: Update.
44114         * lib/unistr/u16-to-u32.c: Update.
44115         * modules/unistr/u16-to-u32: Update.
44116
44117 2007-01-27  Bruno Haible  <bruno@clisp.org>
44118
44119         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
44120         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
44121         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
44122         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
44123         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
44124         * modules/unistr/u8-mbtouc-unsafe: Renamed from
44125         modules/unistr/u8-mbtouc.
44126         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
44127         * lib/unistr.h: Update.
44128         * lib/striconveh.c: Update.
44129         * modules/striconveh: Update.
44130         * lib/linebreak.c: Update.
44131         * modules/linebreak: Update.
44132         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
44133         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
44134         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
44135         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
44136         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
44137         * lib/unistr.h: Update.
44138         * lib/striconveh.c: Update.
44139         * modules/striconveh: Update.
44140         * lib/unistr/u8-to-u16.c: Update.
44141         * modules/unistr/u8-to-u16: Update.
44142         * lib/unistr/u8-to-u32.c: Update.
44143         * modules/unistr/u8-to-u32: Update.
44144
44145 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44146
44147         Sync from Libtool.
44148         * lib/argz.c: Do not include strings.h nor memory.h, include
44149         string.h unconditionally.  Patch by Simon Josefsson.
44150
44151 2007-01-27  Bruno Haible  <bruno@clisp.org>
44152
44153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
44154         from gl_HEADER_STRING_H_BODY.
44155         (gl_HEADER_STRING_H_BODY): Require it.
44156         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
44157         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44158         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44159         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44160         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44161         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
44162         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44163         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44164         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
44165         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44166         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44167         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
44168         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44169         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44170         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44171
44172 2007-01-27  Bruno Haible  <bruno@clisp.org>
44173
44174         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
44175         check_PROGRAMS into noinst_PROGRAMS.
44176         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
44177         check_PROGRAMS in this case.
44178         (func_import): Set for_test to false.
44179         (func_create_testdir): Set for_test to true.
44180
44181 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44182             Bruno Haible  <bruno@clisp.org>
44183
44184         * modules/strcasestr (Files): Remove lib/strcasestr.h.
44185         (Depends-on): Add string.
44186         (Includes): Use <string.h> instead of strcasestr.h.
44187         * modules/string (Makefile.am): Also substitute the value of
44188         REPLACE_STRCASESTR.
44189         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
44190         assume strcasestr is declared in <string.h> not <strings.h>. Also
44191         set REPLACE_STRCASESTR.
44192         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
44193         REPLACE_STRCASESTR.
44194         * lib/strcasestr.h: Remove file.
44195         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
44196         * lib/string_.h (strcasestr): New declaration.
44197
44198 2007-01-27  Bruno Haible  <bruno@clisp.org>
44199
44200         * lib/string_.h: Use 'extern'.
44201
44202 2007-01-27  Jim Meyering  <jim@meyering.net>
44203
44204         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
44205         of set-but-not-used local, "q".
44206
44207         * lib/mempcpy.c: Include <config.h> before <string.h>.
44208         This fixes a compilation error on HP-UX, due to the system's
44209         "restrict"-using mempcpy prototype.
44210
44211 2007-01-26  Bruno Haible  <bruno@clisp.org>
44212
44213         Small optimization.
44214         * lib/javacomp.c: Include c-strstr.h.
44215          (is_envjavac_gcj): Use c_strstr instead of strstr.
44216         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
44217
44218 2007-01-26  Bruno Haible  <bruno@clisp.org>
44219
44220         * MODULES.html.sh (Unicode string functions): Add the new modules.
44221
44222         * modules/uniconv/u32-strconv-to-locale: New file.
44223         * lib/uniconv/u32-strconv-to-locale.c: New file.
44224
44225         * modules/uniconv/u16-strconv-to-locale: New file.
44226         * lib/uniconv/u16-strconv-to-locale.c: New file.
44227
44228         * modules/uniconv/u8-strconv-to-locale: New file.
44229         * lib/uniconv/u8-strconv-to-locale.c: New file.
44230
44231         * modules/uniconv/u32-strconv-from-locale: New file.
44232         * lib/uniconv/u32-strconv-from-locale.c: New file.
44233
44234         * modules/uniconv/u16-strconv-from-locale: New file.
44235         * lib/uniconv/u16-strconv-from-locale.c: New file.
44236
44237         * modules/uniconv/u8-strconv-from-locale: New file.
44238         * lib/uniconv/u8-strconv-from-locale.c: New file.
44239
44240         * modules/uniconv/u32-strconv-to-enc: New file.
44241         * lib/uniconv/u32-strconv-to-enc.c: New file.
44242         * modules/uniconv/u32-strconv-to-enc-tests: New file.
44243         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
44244
44245         * modules/uniconv/u16-strconv-to-enc: New file.
44246         * lib/uniconv/u16-strconv-to-enc.c: New file.
44247         * lib/uniconv/u-strconv-to-enc.h: New file.
44248         * modules/uniconv/u16-strconv-to-enc-tests: New file.
44249         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
44250
44251         * modules/uniconv/u8-strconv-to-enc: New file.
44252         * lib/uniconv/u8-strconv-to-enc.c: New file.
44253         * modules/uniconv/u8-strconv-to-enc-tests: New file.
44254         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
44255
44256         * modules/uniconv/u32-strconv-from-enc: New file.
44257         * lib/uniconv/u32-strconv-from-enc.c: New file.
44258         * modules/uniconv/u32-strconv-from-enc-tests: New file.
44259         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
44260
44261         * modules/uniconv/u16-strconv-from-enc: New file.
44262         * lib/uniconv/u16-strconv-from-enc.c: New file.
44263         * modules/uniconv/u16-strconv-from-enc-tests: New file.
44264         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
44265
44266         * modules/uniconv/u8-strconv-from-enc: New file.
44267         * lib/uniconv/u8-strconv-from-enc.c: New file.
44268         * lib/uniconv/u-strconv-from-enc.h: New file.
44269         * modules/uniconv/u8-strconv-from-enc-tests: New file.
44270         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
44271
44272         * modules/uniconv/u32-conv-from-enc: New file.
44273         * lib/uniconv/u32-conv-from-enc.c: New file.
44274         * modules/uniconv/u32-conv-from-enc-tests: New file.
44275         * tests/uniconv/test-u32-conv-from-enc.c: New file.
44276
44277         * modules/uniconv/u16-conv-from-enc: New file.
44278         * lib/uniconv/u16-conv-from-enc.c: New file.
44279         * lib/uniconv/u-conv-from-enc.h: New file.
44280         * modules/uniconv/u16-conv-from-enc-tests: New file.
44281         * tests/uniconv/test-u16-conv-from-enc.c: New file.
44282
44283         * modules/uniconv/u8-conv-from-enc: New file.
44284         * lib/uniconv/u8-conv-from-enc.c: New file.
44285         * modules/uniconv/u8-conv-from-enc-tests: New file.
44286         * tests/uniconv/test-u8-conv-from-enc.c: New file.
44287
44288         * modules/uniconv/base: New file.
44289         * lib/uniconv.h: New file.
44290
44291 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44292
44293         * doc/gnulib-tool.texi (Initial import): Update to match current
44294         behavior with strdup module.
44295         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
44296         * lib/memmem.h: Remove; all uses removed.  This is now done
44297         by <string.h>.
44298         * lib/mempcpy.h: Likewise.
44299         * lib/memrchr.h: Likewise.
44300         * lib/stpcpy.h: Likewise.
44301         * lib/stpncpy.h: Likewise.
44302         * lib/strcase.h: Likewise.
44303         * lib/strchrnul.h: Likewise.
44304         * lib/strdup.h: Likewise.
44305         * lib/strndup.h: Likewise.
44306         * lib/strnlen.h: Likewise.
44307         * lib/strpbrk.h: Likewise.
44308         * lib/strsep.h: Likewise.
44309         * lib/strstr.h: Likewise.
44310         * lib/strtok_r.h: Likewise.
44311         * lib/string_.h: New file.
44312         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
44313         Rely on <string.h> instead.
44314         * lib/canon-host.c: Likewise.
44315         * lib/chdir-long.c: Likewise.
44316         * lib/concatpath.c: Likewise.
44317         * lib/exclude.c: Likewise.
44318         * lib/fchdir.c: Likewise.
44319         * lib/getaddrinfo.c: Likewise.
44320         * lib/getcwd.c: Likewise.
44321         * lib/getsubopt.c: Likewise.
44322         * lib/glob.c: Likewise.
44323         * lib/hard-locale.c: Likewise.
44324         * lib/iconvme.c: Likewise.
44325         * lib/javacomp.c: Likewise.
44326         * lib/mempcpy.c: Likewise.
44327         * lib/memrchr.c: Likewise.
44328         * lib/regex_internal.h: Likewise.
44329         * lib/stpncpy.c: Likewise.
44330         * lib/strcasecmp.c: Likewise.
44331         * lib/strchrnul.c: Likewise.
44332         * lib/strdup.c: Likewise.
44333         * lib/striconv.c: Likewise.
44334         * lib/striconveh.c: Likewise.
44335         * lib/striconveha.c: Likewise.
44336         * lib/strncasecmp.c: Likewise.
44337         * lib/strndup.c: Likewise.
44338         * lib/strnlen.c: Likewise.
44339         * lib/strsep.c: Likewise.
44340         * lib/strstr.c: Likewise.
44341         * lib/strtok_r.c: Likewise.
44342         * lib/userspec.c: Likewise.
44343         * lib/w32spawn.h: Likewise.
44344         * lib/xstrndup.c: Likewise.
44345         * lib/mountlist.c (strstr): Remove decl.
44346         * m4/string_h.m4: New file.
44347         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
44348         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
44349         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
44350         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
44351         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
44352         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
44353         Set REPLACE_STRCASECMP if necessary.
44354         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
44355         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
44356         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
44357         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
44358         HAVE_DECL_STRDUP if necessary.
44359         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
44360         since gl_FUNC_STRNDUP does that now.
44361         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
44362         Check for decl here...
44363         (gl_PREREQ_STRNLEN): ... not here.
44364         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
44365         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
44366         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
44367         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
44368         necessary.
44369         * modules/string: New file.
44370         * modules/memmem (Files): Remove special-purpose include file.
44371         (Depends-on): Add string.
44372         (Include): Include <string.h>, not the removed file.
44373         * modules/mempcpy: Likewise.
44374         * modules/memrchr: Likewise.
44375         * modules/stpcpy: Likewise.
44376         * modules/stpncpy: Likewise.
44377         * modules/strcase: Likewise.
44378         * modules/strchrnul: Likewise.
44379         * modules/strdup: Likewise.
44380         * modules/strndup: Likewise.
44381         * modules/strnlen: Likewise.
44382         * modules/strpbrk: Likewise.
44383         * modules/strsep: Likewise.
44384         * modules/strstr: Likewise.
44385         * modules/strtok_r: Likewise.
44386         * tests/test-dirname.c: Don't include "strdup.h", since
44387         <string.h> now suffices.
44388         * tests/test-memmem.c: Don't include "memmem.h", since
44389         <string.h> now suffices.
44390
44391 2007-01-25  Bruno Haible  <bruno@clisp.org>
44392
44393         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
44394         *resultp is 0.
44395
44396         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
44397         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
44398         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
44399         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
44400
44401         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
44402         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
44403         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
44404         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
44405         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
44406         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
44407
44408 2007-01-24  Bruno Haible  <bruno@clisp.org>
44409
44410         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
44411         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
44412         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
44413         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
44414         gl_FUNC_FTS_CORE.
44415         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
44416         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
44417         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44418         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
44419         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
44420         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
44421         gl_FUNC_FCHOWNAT.
44422         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
44423         gl_FUNC_STRFTIME.
44424         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
44425         Reported by Ralf Wildenhues.
44426
44427 2007-01-24  Bruno Haible  <bruno@clisp.org>
44428
44429         Drop AC_REQUIRE calls that are redundant with the module dependencies.
44430         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
44431         gl_GETADDRINFO.
44432         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
44433         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
44434         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
44435
44436 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
44437
44438         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
44439         Don't use 'exit'; just return from 'main'.
44440         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
44441
44442         * lib/fnmatch_.h: Readjust white space and comments to match
44443         glibc, to avoid spurious diffs.
44444
44445 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44446
44447         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
44448         2004-12-01 change by Jakub Jelinek, since this code won't compile
44449         if !LIBC.  Problem reported by Bob Proulx.
44450
44451 2007-01-23  Bruno Haible  <bruno@clisp.org>
44452
44453         * lib/striconveh.c: Include c-strcaseeq.h.
44454         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
44455         * modules/striconveh (Depends-on): Add c-strcaseeq.
44456
44457 2007-01-23  Bruno Haible  <bruno@clisp.org>
44458
44459         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
44460
44461         * modules/c-strcaseeq: New file.
44462         * lib/c-strcaseeq.h: New file.
44463
44464         * modules/streq: New file.
44465         * lib/streq.h: New file.
44466
44467 2007-01-23  Bruno Haible  <bruno@clisp.org>
44468
44469         * modules/striconveha-tests: New file.
44470         * tests/test-striconveha.c: New file.
44471
44472         * lib/striconveha.h: Include <stdbool.h>.
44473         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
44474         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
44475         (mem_iconveha_notranslit): Renamed from mem_iconveha.
44476         (mem_iconveha): New function.
44477         (str_iconveha_notranslit): Renamed from str_iconveha.
44478         (str_iconveha): New function.
44479         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
44480         c-strcase.
44481
44482 2007-01-23  Bruno Haible  <bruno@clisp.org>
44483
44484         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
44485         encodings without forgiving before trying any encoding with handler.
44486         (str_iconveha): Try all encodings without forgiving before trying any
44487         encoding with handler.
44488
44489 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44490
44491         Import the following changes from libc.
44492
44493         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44494
44495         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
44496
44497         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44498
44499         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
44500         normal_bracket label.
44501
44502         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
44503
44504         [BZ #361]
44505         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
44506         to normal_bracket after fetching the next character.
44507
44508 2007-01-22  Bruno Haible  <bruno@clisp.org>
44509
44510         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
44511         argument.
44512         * lib/striconveh.c (iconv_carefully_1): New function.
44513         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
44514         argument.
44515         (str_cd_iconveh): Update.
44516         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
44517         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
44518         * tests/test-striconveh.c (MAGIC): New macro.
44519         (new_offsets): New function.
44520         (main): Test call with and without offsets.
44521
44522 2007-01-22  Bruno Haible  <bruno@clisp.org>
44523
44524         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
44525         * modules/sys_select (Makefile.am): Likewise.
44526         * modules/sys_socket (Makefile.am): Likewise.
44527         * modules/sys_time (Makefile.am): Likewise.
44528
44529 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44530
44531         * modules/gettimeofday (License): Change from GPL to LGPL, since
44532         gettimeofday is a library function.
44533
44534 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44535
44536         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
44537
44538 2007-01-21  Bruno Haible  <bruno@clisp.org>
44539
44540         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
44541
44542 2007-01-21  Bruno Haible  <bruno@clisp.org>
44543
44544         * modules/striconveha: New file.
44545         * lib/striconveha.h: New file.
44546         * lib/striconveha.c: New file.
44547         * MODULES.html.sh (Internationalization functions): Add striconveha.
44548         * lib/striconv.c (str_iconv): Optimize the case of an empty input
44549         string.
44550         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
44551
44552 2007-01-21  Bruno Haible  <bruno@clisp.org>
44553
44554         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
44555         * lib/striconveh.c (str_iconveh): Likewise.
44556
44557 2007-01-21  Bruno Haible  <bruno@clisp.org>
44558
44559         * lib/striconveh.h (mem_iconveh): New declaration.
44560         * lib/striconveh.c (mem_iconveh): New function.
44561         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
44562
44563 2007-01-21  Bruno Haible  <bruno@clisp.org>
44564
44565         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
44566
44567         * lib/striconveh.h (mem_cd_iconveh): Change specification.
44568         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
44569         original result buffer.
44570         (str_cd_iconveh): Update.
44571         * tests/test-striconveh.c (main): Update.
44572
44573         * lib/striconv.h (mem_cd_iconv): Change specification.
44574         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
44575         result buffer.
44576         (str_cd_iconv): Update.
44577         * tests/test-striconv.c (main): Update.
44578
44579 2007-01-21  Bruno Haible  <bruno@clisp.org>
44580
44581         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
44582
44583 2007-01-20  Jim Meyering  <jim@meyering.net>
44584
44585         * lib/userspec.c (parse_with_separator): If a user or group string
44586         starts with "+", skip the corresponding name-to-ID look-up, since
44587         such a look-up must fail: user and group names may not include "+".
44588
44589 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44590
44591         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44592         since we now assume the sys_time module.
44593         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44594         check for sys/time.h; no longer needed.
44595         * modules/poll (Depends-on): Depend on sys_time.
44596
44597 2007-01-18  Bruno Haible  <bruno@clisp.org>
44598
44599         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44600         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44601
44602         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44603         gettimeofday.
44604
44605         * tests/test-gettimeofday.c: Include <time.h>.
44606         (dummy): Remove variable.
44607
44608         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44609         gl_HEADER_SYS_TIME_H.
44610         (gl_HEADER_SYS_TIME_H): New macro.
44611
44612         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44613         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44614         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44615         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44616         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44617         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44618         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44619         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44620         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44621         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44622         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44623
44624         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44625         last change; it caused a compilation error when cross-compiling to
44626         Cygwin.
44627
44628 2007-01-18  Jim Meyering  <jim@meyering.net>
44629
44630         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44631         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44632         than the race-prone "test -d sys || mkdir sys".
44633         (configure.ac): Use AC_PROG_MKDIR_P.
44634         * modules/sys_select: Likewise.
44635         * modules/sys_socket: Likewise.
44636         * modules/sys_time: Likewise.
44637
44638 2007-01-18  Eric Blake  <ebb9@byu.net>
44639
44640         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44641         replace gettimeofday.
44642         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44643         name, to avoid infinite recursion.
44644
44645 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44646
44647         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44648         module sys_time.
44649         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44650         assume timespec.h defines struct timeval.
44651         * lib/settime.c: Likewise.
44652         * lib/utimens.c: Likewise.
44653         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44654         since we now assume the gettimeofday module.
44655         * lib/tempname.c (__gen_tempname): Likewise.
44656         * lib/gettimeofday.h: Remove.
44657         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44658         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44659         Include <time.h>, for 'time()'.
44660         (localtime_buffer_addr): Also use this workaround if
44661         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44662         to simplify the uses.  All uses changed.
44663         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44664         that #undef is inside {}, and 'const' follows type name consistently.
44665         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44666         (gettimeofday): Do not use the maximum possible value for
44667         tv->tv_usec, since that might break usages other than ls.c.
44668         Instead, we'll leave ls.c alone.  This undoes today's patch
44669         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44670         we've never observed the problem but might as well keep the
44671         canary.
44672         * lib/nanosleep.c: Include timespec.h first, for interface check.
44673         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44674         now assume the sys_time module.
44675         * lib/tempname.c: Likewise.
44676         * lib/timespec.h: Likewise.
44677         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44678         needed.
44679         * lib/strftime.c: Likewise.
44680         * lib/timespec.h: Likewise.
44681         * lib/posixtm.c: Include posixtm.h first, for interface check.
44682         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44683         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44684         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44685         * lib/sys_time_.h: New file.
44686         * lib/timespec.h (struct timespec): Use long int, not long.
44687         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44688         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44689         Remove obsolescent call to AC_HEADER_TIME.
44690         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44691         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44692         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44693         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44694         Likewise.
44695         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44696         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44697         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44698         into the sys_time module.  Check for gettimeofday just once.
44699         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44700         for gettimeofday signature to just check the signature.  Merely
44701         compile it, since linking doesn't test signature.  Improve test for
44702         whether gettimeofday.o is actually needed.
44703         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44704         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44705         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44706         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44707         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44708         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44709         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44710         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44711         than worrying about sys/time.h.
44712         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44713         Don't bother worrying about TIME_WITH_SYS_TIME.
44714         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44715         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44716         * m4/sys_time_h.m4: New file.
44717         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44718         Don't include sys/time.h.  Return from main rather than exiting.
44719         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44720         all uses changed.
44721         * modules/gethrxtime (Depends-on): Add sys_time.
44722         * modules/gettime (Depends-on): Likewise.
44723         * modules/gettimeofday (Depends-on): Likewise.
44724         * modules/nanosleep (Depends-on): Likewise.
44725         * modules/settime (Depends-on): Likewise.
44726         * modules/tempname (Depends-on): Likewise.
44727         * modules/utimens (Depends-on): Likewise.
44728         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44729         (Include:) Change back to <sys/time.h>.
44730         (Maintainer:) Add self.
44731         * modules/sys_time: New file.
44732         * modules/tempname (Depends-on): Add gettimeofday.
44733         * tests/test-gettimeofday.c: Include <sys/time.h>
44734         rather than gettimeofday.h.
44735
44736 2007-01-17  Bruno Haible  <bruno@clisp.org>
44737
44738         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44739         the license default to GPL.
44740         (func_create_testdir): Don't complain if a module is LGPL and its
44741         tests module depends on GPLed modules.
44742
44743 2007-01-17  Bruno Haible  <bruno@clisp.org>
44744
44745         * lib/gettimeofday.c (gettimeofday): Add code for the case
44746         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44747         maximum possible value for tv->tv_usec, rather than the minimum one.
44748
44749 2005-10-08  Martin Lambers  <marlam@marlam.de>
44750 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44751 2007-01-16  Bruno Haible  <bruno@clisp.org>
44752
44753         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44754         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44755         gl_FUNC_GETTIMEOFDAY.
44756         (Include): Add gettimeofday.h.
44757         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44758         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44759         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44760         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44761         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44762         * lib/gettimeofday.h: New file.
44763         * lib/gettimeofday.c: Include <sys/timeb.h>.
44764         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44765         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44766         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44767         fall back on time().
44768
44769         * tests/test-gettimeofday.c: New file.
44770         * modules/gettimeofday-tests: New file.
44771
44772 2007-01-16  Eric Blake  <ebb9@byu.net>
44773
44774         * modules/fnmatch (Depends-on): Depend on wchar.
44775         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44776         * m4/fnmatch.m4: Likewise.
44777         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44778         * m4/mbchar.m4: Likewise.
44779         * modules/mbswidth (Depends-on): Depend on wchar.
44780         * lib/mbswidth.c: Assume <wchar.h>.
44781         * m4/mbswidth.m4: Likewise.
44782         * modules/quotearg (Depends-on): Depend on wchar.
44783         * lib/quotearg.c: Assume <wchar.h>.
44784         * m4/quotearg.m4: Likewise.
44785         * modules/regex (Depends-on): Depend on wchar.
44786         * lib/regex_internal.h: Assume <wchar.h>.
44787         * m4/regex.m4: Likewise.
44788         * modules/stdint (Depends-on): Depend on wchar.
44789         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44790         * m4/stdint.m4: Likewise.
44791         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44792         * modules/strftime (Depends-on): Depend on wchar.
44793         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44794         * modules/strtol (Depends-on): Depend on wchar.
44795         * lib/strtol.c: Assume <wchar.h>.
44796         * modules/wcwidth (Depends-on): Depend on wchar.
44797         * lib/wcwidth.h: Assume <wchar.h>.
44798         * m4/wcwidth.m4: Likewise.
44799
44800 2007-01-16  Bruno Haible  <bruno@clisp.org>
44801
44802         * modules/csharpexec-script: New, created from...
44803         * modules/csharpexec: ... this.
44804
44805 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44806
44807         * modules/javaexec-script: New, created from...
44808         * modules/javaexec: ... this.
44809
44810 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44811
44812         * modules/poll (Dependencies): Add sys_select.
44813
44814 2007-01-15  Jim Meyering  <jim@meyering.net>
44815
44816         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44817         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44818         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44819         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44820
44821 2007-01-15  Bruno Haible  <bruno@clisp.org>
44822
44823         * modules/striconveh: New file.
44824         * lib/striconveh.h: New file.
44825         * lib/striconveh.c: New file.
44826         * MODULES.html.sh (Internationalization functions): Add striconveh.
44827
44828         * modules/striconveh-tests: New file.
44829         * tests/test-striconveh.c: New file.
44830
44831 2007-01-15  Bruno Haible  <bruno@clisp.org>
44832
44833         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
44834         not from GNU libiconv or GNU libc.
44835
44836 2007-01-15  Bruno Haible  <bruno@clisp.org>
44837
44838         * doc/gnulib-intro.texi (Copyright): Explain the different license
44839         terms for module descriptions, autoconf macros, tests, documentation.
44840
44841 2007-01-14  Bruno Haible  <bruno@clisp.org>
44842
44843         * modules/striconv-tests: New file.
44844         * tests/test-striconv.c: New file.
44845
44846 2007-01-14  Bruno Haible  <bruno@clisp.org>
44847
44848         * modules/iconv-tests: New file.
44849         * tests/test-iconv.c: New file.
44850
44851 2007-01-14  Bruno Haible  <bruno@clisp.org>
44852
44853         * gnulib-tool (func_get_license): For test modules, use the license of
44854         the main module.
44855
44856 2007-01-14  Bruno Haible  <bruno@clisp.org>
44857
44858         * modules/iconv (Include): Clarify that <iconv.h> can only be included
44859         if iconv is found to exist.
44860
44861 2007-01-14  Bruno Haible  <bruno@clisp.org>
44862
44863         * modules/c-ctype-tests: New file.
44864         * tests/test-c-ctype.c: New file.
44865
44866 2007-01-14  Bruno Haible  <bruno@clisp.org>
44867
44868         * modules/binary-io-tests: New file.
44869         * tests/test-binary-io.sh: New file.
44870         * tests/test-binary-io.c: New file.
44871
44872 2007-01-14  Bruno Haible  <bruno@clisp.org>
44873
44874         * modules/array-oset-tests: New file.
44875         * tests/test-array_oset.c: New file.
44876
44877 2007-01-14  Bruno Haible  <bruno@clisp.org>
44878
44879         * modules/array-list-tests: New file.
44880         * tests/test-array_list.c: New file.
44881
44882 2007-01-14  Bruno Haible  <bruno@clisp.org>
44883
44884         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
44885         and make.
44886         Reported by Simon Josefsson in
44887         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
44888
44889 2007-01-14  Bruno Haible  <bruno@clisp.org>
44890
44891         * modules/allocsa-tests: New file.
44892         * tests/test-allocsa.c: New file.
44893
44894 2007-01-14  Bruno Haible  <bruno@clisp.org>
44895
44896         * modules/fchdir (Depends-on): Add absolute-header.
44897         * modules/unistd (Depends-on): Likewise.
44898
44899 2006-12-30  Bruno Haible  <bruno@clisp.org>
44900
44901         * modules/fchdir: New file.
44902         * modules/unistd (Files): Add lib/unistd_.h.
44903         (Makefile.am): Generate unistd.h from unistd_.h.
44904         * lib/fchdir.c: New file.
44905         * lib/dirent_.h: New file.
44906         * lib/unistd_.h: New file.
44907         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
44908         * m4/fchdir.m4: New file.
44909         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
44910         (gl_HEADER_UNISTD): Invoke it.
44911         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
44912         function.
44913         * lib/backupfile.c (opendir, closedir): Undefine.
44914         * lib/chown.c (open, close): Undefine.
44915         * lib/clean-temp.c (open, close): Undefine.
44916         * lib/copy-file.c (open, close): Undefine.
44917         * lib/execute.c (open, close): Undefine.
44918         * lib/fsusage.c (open, close): Undefine.
44919         * lib/gc-gnulib.c (open, close): Undefine.
44920         * lib/getcwd.c (opendir, closedir): Undefine.
44921         * lib/glob.c (opendir, closedir): Undefine.
44922         * lib/javacomp.c (open, close): Undefine.
44923         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
44924         * lib/openat-proc.c (open, close): Undefine.
44925         * lib/pagealign_alloc.c (open, close): Undefine.
44926         * lib/pipe.c (open, close): Undefine.
44927         * lib/progreloc.c (open, close): Undefine.
44928         * lib/savedir.c (opendir, closedir): Undefine.
44929         * lib/utime.c (open, close): Undefine.
44930         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
44931
44932 2007-01-10  Bruno Haible  <bruno@clisp.org>
44933
44934         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
44935
44936 2007-01-12  Eric Blake  <ebb9@byu.net>
44937
44938         Provide a robust <wchar.h>.  Further simplifications are now
44939         possible in other modules, but not included here.
44940         * modules/wchar: New module.
44941         * m4/wchar.m4: New file.
44942         * lib/wchar_.h: Likewise.
44943         * modules/mbchar (Depends-on): Depend on wchar, as the first use
44944         of the new module.
44945         * MODULES.html.sh (Extended multibyte and wide character utilities):
44946         New section.
44947
44948 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
44949
44950         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
44951         to a reasonable default for memory allocation.
44952         (xreadlink): Don't allocate a huge buffer, to work around a buggy
44953         file system that reports garbage st_size values for symlinks.
44954         Problem reported by Liyang Hu.
44955
44956 2007-01-11  Simon Josefsson  <simon@josefsson.org>
44957
44958         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
44959         Emacs .#* auto-save files).
44960
44961 2007-01-11  Bruno Haible  <bruno@clisp.org>
44962
44963         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
44964         directory.
44965
44966 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44967
44968         Use @...@ consistently in lib/wctype_.h.
44969         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
44970         on it being set to 1 or 0.
44971         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
44972         go back to AC_SUBSTing it.
44973         * modules/wctype (Makefile.am): Undo previous change.
44974
44975 2007-01-10  Eric Blake  <ebb9@byu.net>
44976
44977         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
44978         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
44979         * modules/wctype (Makefile.am): Likewise.
44980         Reported by Chris McGuire.
44981
44982 2007-01-10  Jim Meyering  <jim@meyering.net>
44983
44984         fts.c: a small readability/maintainability improvement
44985         * lib/fts.c (fts_read): Make this code slightly more readable and
44986         maintainable by hoisting the "sp->fts_cur = p" assignments to
44987         immediately follow the statements that set P.  Derived from
44988         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
44989
44990 2007-01-10  Eric Blake  <ebb9@byu.net>
44991
44992         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
44993         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
44994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44995         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44996         Reported by Chris McGuire.
44997
44998 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44999
45000         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
45001         in sed script.
45002
45003 2007-01-09  Bruno Haible  <bruno@clisp.org>
45004
45005         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
45006         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
45007         variables.
45008         (func_module): Use them.
45009
45010 2007-01-09  Bruno Haible  <bruno@clisp.org>
45011
45012         * modules/unistr/base: New file.
45013         * lib/unistr.h: New file.
45014
45015         * modules/unistr/u8-to-u16: New file.
45016         * lib/unistr/u8-to-u16.c: New file.
45017
45018         * modules/unistr/u8-to-u32: New file.
45019         * lib/unistr/u8-to-u32.c: New file.
45020
45021         * modules/unistr/u16-to-u8: New file.
45022         * lib/unistr/u16-to-u8.c: New file.
45023
45024         * modules/unistr/u16-to-u32: New file.
45025         * lib/unistr/u16-to-u32.c: New file.
45026
45027         * modules/unistr/u32-to-u8: New file.
45028         * lib/unistr/u32-to-u8.c: New file.
45029
45030         * modules/unistr/u32-to-u16: New file.
45031         * lib/unistr/u32-to-u16.c: New file.
45032
45033         * modules/unistr/u8-check: New file.
45034         * modules/unistr/u16-check: New file.
45035         * modules/unistr/u32-check: New file.
45036         * lib/unistr/u8-check.c: New file.
45037         * lib/unistr/u16-check.c: New file.
45038         * lib/unistr/u32-check.c: New file.
45039
45040         * modules/unistr/u8-chr: New file.
45041         * modules/unistr/u16-chr: New file.
45042         * modules/unistr/u32-chr: New file.
45043         * lib/unistr/u8-chr.c: New file.
45044         * lib/unistr/u16-chr.c: New file.
45045         * lib/unistr/u32-chr.c: New file.
45046
45047         * modules/unistr/u8-cmp: New file.
45048         * modules/unistr/u16-cmp: New file.
45049         * modules/unistr/u32-cmp: New file.
45050         * lib/unistr/u8-cmp.c: New file.
45051         * lib/unistr/u16-cmp.c: New file.
45052         * lib/unistr/u32-cmp.c: New file.
45053
45054         * modules/unistr/u8-cpy: New file.
45055         * modules/unistr/u16-cpy: New file.
45056         * modules/unistr/u32-cpy: New file.
45057         * lib/unistr/u8-cpy.c: New file.
45058         * lib/unistr/u16-cpy.c: New file.
45059         * lib/unistr/u32-cpy.c: New file.
45060         * lib/unistr/u-cpy.h: New file.
45061
45062         * modules/unistr/u8-cpy-alloc: New file.
45063         * modules/unistr/u16-cpy-alloc: New file.
45064         * modules/unistr/u32-cpy-alloc: New file.
45065         * lib/unistr/u8-cpy-alloc.c: New file.
45066         * lib/unistr/u16-cpy-alloc.c: New file.
45067         * lib/unistr/u32-cpy-alloc.c: New file.
45068         * lib/unistr/u-cpy-alloc.h: New file.
45069
45070         * modules/unistr/u8-endswith: New file.
45071         * modules/unistr/u16-endswith: New file.
45072         * modules/unistr/u32-endswith: New file.
45073         * lib/unistr/u8-endswith.c: New file.
45074         * lib/unistr/u16-endswith.c: New file.
45075         * lib/unistr/u32-endswith.c: New file.
45076         * lib/unistr/u-endswith.h: New file.
45077
45078         * modules/unistr/u8-mblen: New file.
45079         * modules/unistr/u16-mblen: New file.
45080         * modules/unistr/u32-mblen: New file.
45081         * lib/unistr/u8-mblen.c: New file.
45082         * lib/unistr/u16-mblen.c: New file.
45083         * lib/unistr/u32-mblen.c: New file.
45084
45085         * modules/unistr/u8-mbtouc: New file.
45086         * modules/unistr/u16-mbtouc: New file.
45087         * modules/unistr/u32-mbtouc: New file.
45088         * lib/unistr/u8-mbtouc.c: New file.
45089         * lib/unistr/u16-mbtouc.c: New file.
45090         * lib/unistr/u32-mbtouc.c: New file.
45091
45092         * modules/unistr/u8-mbtouc-safe: New file.
45093         * modules/unistr/u16-mbtouc-safe: New file.
45094         * modules/unistr/u32-mbtouc-safe: New file.
45095         * lib/unistr/u8-mbtouc-safe.c: New file.
45096         * lib/unistr/u16-mbtouc-safe.c: New file.
45097         * lib/unistr/u32-mbtouc-safe.c: New file.
45098
45099         * modules/unistr/u8-move: New file.
45100         * modules/unistr/u16-move: New file.
45101         * modules/unistr/u32-move: New file.
45102         * lib/unistr/u8-move.c: New file.
45103         * lib/unistr/u16-move.c: New file.
45104         * lib/unistr/u32-move.c: New file.
45105         * lib/unistr/u-move.h: New file.
45106
45107         * modules/unistr/u8-next: New file.
45108         * modules/unistr/u16-next: New file.
45109         * modules/unistr/u32-next: New file.
45110         * lib/unistr/u8-next.c: New file.
45111         * lib/unistr/u16-next.c: New file.
45112         * lib/unistr/u32-next.c: New file.
45113
45114         * modules/unistr/u8-prev: New file.
45115         * modules/unistr/u16-prev: New file.
45116         * modules/unistr/u32-prev: New file.
45117         * lib/unistr/u8-prev.c: New file.
45118         * lib/unistr/u16-prev.c: New file.
45119         * lib/unistr/u32-prev.c: New file.
45120
45121         * modules/unistr/u8-set: New file.
45122         * modules/unistr/u16-set: New file.
45123         * modules/unistr/u32-set: New file.
45124         * lib/unistr/u8-set.c: New file.
45125         * lib/unistr/u16-set.c: New file.
45126         * lib/unistr/u32-set.c: New file.
45127         * lib/unistr/u-set.h: New file.
45128
45129         * modules/unistr/u8-startswith: New file.
45130         * modules/unistr/u16-startswith: New file.
45131         * modules/unistr/u32-startswith: New file.
45132         * lib/unistr/u8-startswith.c: New file.
45133         * lib/unistr/u16-startswith.c: New file.
45134         * lib/unistr/u32-startswith.c: New file.
45135         * lib/unistr/u-startswith.h: New file.
45136
45137         * modules/unistr/u8-stpcpy: New file.
45138         * modules/unistr/u16-stpcpy: New file.
45139         * modules/unistr/u32-stpcpy: New file.
45140         * lib/unistr/u8-stpcpy.c: New file.
45141         * lib/unistr/u16-stpcpy.c: New file.
45142         * lib/unistr/u32-stpcpy.c: New file.
45143         * lib/unistr/u-stpcpy.h: New file.
45144
45145         * modules/unistr/u8-stpncpy: New file.
45146         * modules/unistr/u16-stpncpy: New file.
45147         * modules/unistr/u32-stpncpy: New file.
45148         * lib/unistr/u8-stpncpy.c: New file.
45149         * lib/unistr/u16-stpncpy.c: New file.
45150         * lib/unistr/u32-stpncpy.c: New file.
45151         * lib/unistr/u-stpncpy.h: New file.
45152
45153         * modules/unistr/u8-strcat: New file.
45154         * modules/unistr/u16-strcat: New file.
45155         * modules/unistr/u32-strcat: New file.
45156         * lib/unistr/u8-strcat.c: New file.
45157         * lib/unistr/u16-strcat.c: New file.
45158         * lib/unistr/u32-strcat.c: New file.
45159         * lib/unistr/u-strcat.h: New file.
45160
45161         * modules/unistr/u8-strchr: New file.
45162         * modules/unistr/u16-strchr: New file.
45163         * modules/unistr/u32-strchr: New file.
45164         * lib/unistr/u8-strchr.c: New file.
45165         * lib/unistr/u16-strchr.c: New file.
45166         * lib/unistr/u32-strchr.c: New file.
45167
45168         * modules/unistr/u8-strcmp: New file.
45169         * modules/unistr/u16-strcmp: New file.
45170         * modules/unistr/u32-strcmp: New file.
45171         * lib/unistr/u8-strcmp.c: New file.
45172         * lib/unistr/u16-strcmp.c: New file.
45173         * lib/unistr/u32-strcmp.c: New file.
45174
45175         * modules/unistr/u8-strcpy: New file.
45176         * modules/unistr/u16-strcpy: New file.
45177         * modules/unistr/u32-strcpy: New file.
45178         * lib/unistr/u8-strcpy.c: New file.
45179         * lib/unistr/u16-strcpy.c: New file.
45180         * lib/unistr/u32-strcpy.c: New file.
45181         * lib/unistr/u-strcpy.h: New file.
45182
45183         * modules/unistr/u8-strcspn: New file.
45184         * modules/unistr/u16-strcspn: New file.
45185         * modules/unistr/u32-strcspn: New file.
45186         * lib/unistr/u8-strcspn.c: New file.
45187         * lib/unistr/u16-strcspn.c: New file.
45188         * lib/unistr/u32-strcspn.c: New file.
45189         * lib/unistr/u-strcspn.h: New file.
45190
45191         * modules/unistr/u8-strdup: New file.
45192         * modules/unistr/u16-strdup: New file.
45193         * modules/unistr/u32-strdup: New file.
45194         * lib/unistr/u8-strdup.c: New file.
45195         * lib/unistr/u16-strdup.c: New file.
45196         * lib/unistr/u32-strdup.c: New file.
45197         * lib/unistr/u-strdup.h: New file.
45198
45199         * modules/unistr/u8-strlen: New file.
45200         * modules/unistr/u16-strlen: New file.
45201         * modules/unistr/u32-strlen: New file.
45202         * lib/unistr/u8-strlen.c: New file.
45203         * lib/unistr/u16-strlen.c: New file.
45204         * lib/unistr/u32-strlen.c: New file.
45205         * lib/unistr/u-strlen.h: New file.
45206
45207         * modules/unistr/u8-strmblen: New file.
45208         * modules/unistr/u16-strmblen: New file.
45209         * modules/unistr/u32-strmblen: New file.
45210         * lib/unistr/u8-strmblen.c: New file.
45211         * lib/unistr/u16-strmblen.c: New file.
45212         * lib/unistr/u32-strmblen.c: New file.
45213
45214         * modules/unistr/u8-strmbtouc: New file.
45215         * modules/unistr/u16-strmbtouc: New file.
45216         * modules/unistr/u32-strmbtouc: New file.
45217         * lib/unistr/u8-strmbtouc.c: New file.
45218         * lib/unistr/u16-strmbtouc.c: New file.
45219         * lib/unistr/u32-strmbtouc.c: New file.
45220
45221         * modules/unistr/u8-strncat: New file.
45222         * modules/unistr/u16-strncat: New file.
45223         * modules/unistr/u32-strncat: New file.
45224         * lib/unistr/u8-strncat.c: New file.
45225         * lib/unistr/u16-strncat.c: New file.
45226         * lib/unistr/u32-strncat.c: New file.
45227         * lib/unistr/u-strncat.h: New file.
45228
45229         * modules/unistr/u8-strncmp: New file.
45230         * modules/unistr/u16-strncmp: New file.
45231         * modules/unistr/u32-strncmp: New file.
45232         * lib/unistr/u8-strncmp.c: New file.
45233         * lib/unistr/u16-strncmp.c: New file.
45234         * lib/unistr/u32-strncmp.c: New file.
45235
45236         * modules/unistr/u8-strncpy: New file.
45237         * modules/unistr/u16-strncpy: New file.
45238         * modules/unistr/u32-strncpy: New file.
45239         * lib/unistr/u8-strncpy.c: New file.
45240         * lib/unistr/u16-strncpy.c: New file.
45241         * lib/unistr/u32-strncpy.c: New file.
45242         * lib/unistr/u-strncpy.h: New file.
45243
45244         * modules/unistr/u8-strnlen: New file.
45245         * modules/unistr/u16-strnlen: New file.
45246         * modules/unistr/u32-strnlen: New file.
45247         * lib/unistr/u8-strnlen.c: New file.
45248         * lib/unistr/u16-strnlen.c: New file.
45249         * lib/unistr/u32-strnlen.c: New file.
45250         * lib/unistr/u-strnlen.h: New file.
45251
45252         * modules/unistr/u8-strpbrk: New file.
45253         * modules/unistr/u16-strpbrk: New file.
45254         * modules/unistr/u32-strpbrk: New file.
45255         * lib/unistr/u8-strpbrk.c: New file.
45256         * lib/unistr/u16-strpbrk.c: New file.
45257         * lib/unistr/u32-strpbrk.c: New file.
45258         * lib/unistr/u-strpbrk.h: New file.
45259
45260         * modules/unistr/u8-strrchr: New file.
45261         * modules/unistr/u16-strrchr: New file.
45262         * modules/unistr/u32-strrchr: New file.
45263         * lib/unistr/u8-strrchr.c: New file.
45264         * lib/unistr/u16-strrchr.c: New file.
45265         * lib/unistr/u32-strrchr.c: New file.
45266
45267         * modules/unistr/u8-strspn: New file.
45268         * modules/unistr/u16-strspn: New file.
45269         * modules/unistr/u32-strspn: New file.
45270         * lib/unistr/u8-strspn.c: New file.
45271         * lib/unistr/u16-strspn.c: New file.
45272         * lib/unistr/u32-strspn.c: New file.
45273         * lib/unistr/u-strspn.h: New file.
45274
45275         * modules/unistr/u8-strstr: New file.
45276         * modules/unistr/u16-strstr: New file.
45277         * modules/unistr/u32-strstr: New file.
45278         * lib/unistr/u8-strstr.c: New file.
45279         * lib/unistr/u16-strstr.c: New file.
45280         * lib/unistr/u32-strstr.c: New file.
45281         * lib/unistr/u-strstr.h: New file.
45282
45283         * modules/unistr/u8-strtok: New file.
45284         * modules/unistr/u16-strtok: New file.
45285         * modules/unistr/u32-strtok: New file.
45286         * lib/unistr/u8-strtok.c: New file.
45287         * lib/unistr/u16-strtok.c: New file.
45288         * lib/unistr/u32-strtok.c: New file.
45289         * lib/unistr/u-strtok.h: New file.
45290
45291         * modules/unistr/u8-uctomb: New file.
45292         * modules/unistr/u16-uctomb: New file.
45293         * modules/unistr/u32-uctomb: New file.
45294         * lib/unistr/u8-uctomb.c: New file.
45295         * lib/unistr/u16-uctomb.c: New file.
45296         * lib/unistr/u32-uctomb.c: New file.
45297
45298         * MODULES.html.sh (Unicode string functions): Add the new modules.
45299
45300 2007-01-08  Bruno Haible  <bruno@clisp.org>
45301
45302         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
45303         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
45304         subdirectories.
45305
45306 2007-01-08  Karl Berry  <karl@gnu.org>
45307
45308         * doc/error.texi: mention that main() fns must set program_name
45309         when progname is used.
45310
45311 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
45312
45313         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
45314         WCTYPE_H is empty, for the benefit of builds from non-distclean
45315         directories.  Problem reported by Eric Blake in
45316         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
45317
45318 2007-01-08  Bruno Haible  <bruno@clisp.org>
45319
45320         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
45321         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
45322         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
45323         PROVIDE_CANONICALIZE_FILENAME_MODE.
45324         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
45325
45326 2007-01-08  Bruno Haible  <bruno@clisp.org>
45327
45328         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
45329         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
45330         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
45331         * lib/fts.c: Likewise.
45332         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
45333
45334 2006-12-25  Bruno Haible  <bruno@clisp.org>
45335
45336         * modules/utf8-ucs4-safe: New file.
45337         * lib/utf8-ucs4-safe.h: New file.
45338         * lib/unistr/utf8-ucs4-safe.c: New file.
45339
45340         * modules/utf16-ucs4-safe: New file.
45341         * lib/utf16-ucs4-safe.h: New file.
45342         * lib/unistr/utf16-ucs4-safe.c: New file.
45343
45344         * MODULES.html.sh (Unicode string functions): Add the new modules.
45345
45346 2007-01-08  Bruno Haible  <bruno@clisp.org>
45347
45348         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
45349         (Depends-on): Add unitypes.
45350         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45351         (u8_mbtouc_aux): Move out to separate file.
45352         (u8_mbtouc): Use ucs4_t, uint8_t types.
45353         * lib/unistr/utf8-ucs4.c: New file.
45354
45355         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
45356         (Depends-on): Add unitypes.
45357         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45358         (u16_mbtouc_aux): Move out to separate file.
45359         (u16_mbtouc): Use ucs4_t, uint16_t types.
45360         * lib/unistr/utf16-ucs4.c: New file.
45361
45362         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
45363         (Depends-on): Add unitypes.
45364         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
45365         (u8_uctomb_aux): Move out to separate file.
45366         (u8_uctomb): Use ucs4_t, uint8_t types.
45367         * lib/unistr/ucs4-utf8.c: New file.
45368
45369         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
45370         (Depends-on): Add unitypes.
45371         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
45372         (u16_uctomb_aux): Move out to separate file.
45373         (u16_uctomb): Use ucs4_t, uint16_t types.
45374         * lib/unistr/ucs4-utf16.c: New file.
45375
45376 2006-12-25  Bruno Haible  <bruno@clisp.org>
45377
45378         * modules/unitypes: New file.
45379         * lib/unitypes.h: New file.
45380         * MODULES.html.sh (func_all_modules): New section "Unicode string
45381         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
45382         this section. Add unitypes.
45383
45384 2007-01-08  Bruno Haible  <bruno@clisp.org>
45385
45386         Avoid variable names that conflict with those from libtool.
45387         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
45388         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
45389         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
45390         library_names_spec to acl_library_names_spec, hardcode_* to
45391         acl_hardcode_*.
45392         Reported by Ralf Wildenhues.
45393
45394 2007-01-08  Bruno Haible  <bruno@clisp.org>
45395
45396         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
45397         definition.
45398         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
45399         definition.
45400         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
45401         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
45402         definition.
45403         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
45404         definition.
45405         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
45406         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
45407         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
45408         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
45409         definition.
45410         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
45411         definition.
45412         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
45413         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
45414         GC_USE_<algorithm>.
45415         * lib/gc-libgcrypt.c: Likewise.
45416         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
45417         * modules/gc-arctwo (configure.ac): Likewise.
45418         * modules/gc-des (configure.ac): Likewise.
45419         * modules/gc-hmac-md5 (configure.ac): Likewise.
45420         * modules/gc-hmac-sha1 (configure.ac): Likewise.
45421         * modules/gc-md2 (configure.ac): Likewise.
45422         * modules/gc-md4 (configure.ac): Likewise.
45423         * modules/gc-md5 (configure.ac): Likewise.
45424         * modules/gc-random (configure.ac): Likewise.
45425         * modules/gc-rijndael (configure.ac): Likewise.
45426         * modules/gc-sha1 (configure.ac): Likewise.
45427
45428 2007-01-08  Bruno Haible  <bruno@clisp.org>
45429
45430         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
45431         macro definition.
45432         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
45433         definition.
45434         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
45435         definition.
45436         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
45437         * modules/fcntl-safer (configure.ac): Likewise.
45438         * modules/fopen-safer (configure.ac): Likewise.
45439         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
45440         GNULIB_FWRITEERROR macro definition.
45441
45442 2007-01-08  Bruno Haible  <bruno@clisp.org>
45443
45444         * m4/gnulib-common.m4: New file.
45445         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
45446         (func_get_filelist): Add m4/gnulib-common.m4.
45447
45448 2007-01-08  Bruno Haible  <bruno@clisp.org>
45449
45450         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
45451         command.
45452
45453 2007-01-08  Jim Meyering  <jim@meyering.net>
45454
45455         Use a more robust test for a "can't happen" condition.
45456         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
45457         narrowed the st_size value.  Presuming the "can't happen" condition
45458         is true, that narrowing could conceivably convert an invalid st_size
45459         value into a valid one.  Instead, use a change based on Matthew
45460         Woehlke's original patch.
45461
45462         Slight readability improvement: use an assert-like macro
45463         in place of literal "abort ()" uses.
45464         * lib/fts.c (fts_assert): Define.
45465         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
45466         Use this macro instead of a bare 'abort'.
45467
45468 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45469
45470         Don't worry about using IRIX 5.3's wctype.h broken definitions;
45471         simply work around them.
45472         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
45473         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
45474         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
45475         declaring.
45476         Don't bother to define as macros, since the standard doesn't require it.
45477         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
45478         longer worry about IRIX 5.3.
45479         (HAVE_WCTYPE_CTMP_BUG): Remove.
45480
45481 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45482
45483         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
45484         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
45485         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45486         Problems reported by Georg Schwarz for IRIX 5.3.
45487
45488         * gnulib-tool (autoconf_minversion): Take the maximum version number
45489         found, not the minimum.  Problem reported by James Youngman.
45490
45491 2007-01-03  Karl Berry  <karl@gnu.org>
45492
45493         * doc/error.texi: new file, explaining interaction with progname.
45494         * doc/gnulib.texi: include it.  Update copyright.
45495
45496 2007-01-03  Simon Josefsson  <simon@josefsson.org>
45497
45498         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
45499         AC_CANONICAL_HOST, to improve autobuild outputs.
45500
45501 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
45502             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45503
45504         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45505         sockets, server sockets, and other file descriptors.  Count errors
45506         to compute the return value.  Reorder the code a bit to be easier
45507         to follow.  Don't set event bits that were not requested (except
45508         POLLERR and POLLHUP).
45509
45510 2007-01-01  Bruno Haible  <bruno@clisp.org>
45511
45512         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
45513
45514 2007-01-03  Jim Meyering  <jim@meyering.net>
45515
45516         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
45517
45518 2007-01-02  Bruno Haible  <bruno@clisp.org>
45519
45520         * modules/settime (Include): Require timespec.h.
45521         * modules/nanosleep (Include): Likewise.
45522
45523 2007-01-01  Bruno Haible  <bruno@clisp.org>
45524
45525         * gnulib-tool (func_emit_copyright_notice): Bump year.
45526         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
45527
45528 2007-01-01  Bruno Haible  <bruno@clisp.org>
45529
45530         Improve support for OpenBSD.
45531         * build-aux/config.rpath (libname_spec): Export.
45532         (library_names_spec): New variable. Export.
45533         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
45534         library_names_spec from the config.rpath output. Locate shared library
45535         through the name pattern in library_names_spec.
45536
45537 2007-01-01  Eric Blake  <ebb9@byu.net>
45538
45539         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
45540
45541 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
45542
45543         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
45544         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
45545         assume the C locale, and avoid an "eval" that could cause trouble.
45546         Problem with SORT reported by Bob Proulx.
45547
45548         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
45549         Define.  Trivial patch from Henning Nielsen Lund, originally
45550         sent to bug-grep@gnu.org today.
45551
45552 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45553
45554         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
45555         struct stat.  Problem reported by Henning Nielsen Lund.
45556         * lib/acl.c: Include acl.h first, to check interface.  Don't
45557         bother to include sys/types.h and sys/stat.h again.
45558
45559 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45560
45561         Import the following change from libc; problem reported by
45562         Sven Verdoolaege.
45563
45564         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
45565
45566         [BZ #1373]
45567         * lib/argp.h: Remove __NTH for __argp_usage inline function.
45568
45569 2006-12-28  Jim Meyering  <jim@meyering.net>
45570
45571         * build-aux/announce-gen: Do not assume that the package
45572         builds any of tar.gz, tar.bz2, and .xdelta files.
45573         Suggestion from Simon Josefsson.
45574
45575 2006-12-28  Simon Josefsson  <simon@josefsson.org>
45576
45577         * modules/announce-gen: New file.
45578
45579 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45580
45581         * lib/mbchar.h: Just include <wctype.h>; the wctype module
45582         handles its gotchas now.
45583         * lib/mbswidth.c: Likewise.
45584         * lib/wcwidth.h: Likewise.
45585         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
45586         and iswcntrl; the wctype module does this stuff now.
45587         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45589         * modules/mbchar (Depends-on): Add wctype.
45590         * modules/mbswidth (Depends-on): Likewise.
45591         * modules/wcwidth (Depends-on): Likewise.
45592
45593 2006-12-27  Eric Blake  <ebb9@byu.net>
45594
45595         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45596         module uses more than what <wctype.h> is required to provide.
45597
45598 2006-12-26  Eric Blake  <ebb9@byu.net>
45599
45600         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45601
45602 2006-12-26  Eric Blake  <ebb9@byu.net>
45603
45604         * modules/absolute-header: New module.
45605         * modules/fcntl (Depends-on): Depend on it.
45606         * modules/inttypes (Depends-on): Likewise.
45607         * modules/stdint (Depends-on): Likewise.
45608         * modules/sys_stat (Depends-on): Likewise.
45609         * modules/wctype (Depends-on): Likewise.
45610         * MODULES.html.sh (Support for building libraries and
45611         executables): Document it.
45612
45613 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45614
45615         * gnulib-tool (SED): Remove, undoing previous change.
45616         The problem was that it broke coreutils on Solaris, because
45617         "sed --posix" leaked into a makefile.
45618         (sed): New alias, if 'alias' and GNU sed.
45619
45620 2006-12-24  Jim Meyering  <jim@meyering.net>
45621
45622         Work around an fchownat bug in glibc-2.4:
45623         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45624         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45625         in spite of the -P option.
45626         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45627         New macros.
45628         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45629         * modules/openat (Files): Add lib/fchownat.c.
45630         * lib/openat.c (fchownat): Don't define here.  Move to...
45631         * lib/fchownat.c: ...this new file.
45632
45633 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45634
45635         Fix bug reported by Bruno Haible in
45636         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45637         where quotearg.c didn't compile on Mac OS X 10.2 because it
45638         lacks <wchar.h> and wint_t.
45639         * lib/wctype_.h (__wctype_wint_t): New type.
45640         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45641         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45642         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45643         Arg is now of type __wctype_wint_t, not wint_t.
45644         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45645         substitute HAVE_WINT_T.
45646         * modules/wctype (Files): Add m4/wint_t.m4.
45647         (wctype.h): Substitute HAVE_WINT_T.
45648
45649 2006-12-23  Bruno Haible  <bruno@clisp.org>
45650
45651         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45652
45653 2006-12-23  Bruno Haible  <bruno@clisp.org>
45654
45655         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45656         S_ISLNK.
45657         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45658         mingw.
45659
45660 2006-12-22  Bruno Haible  <bruno@clisp.org>
45661
45662         * lib/copy-file.c: Include acl.h.
45663         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45664         Close the file descriptors only after being done with copy_acl.
45665         * modules/copy-file (Depends-on): Add acl.
45666
45667 2006-12-22  Bruno Haible  <bruno@clisp.org>
45668
45669         * gnulib-tool (SED): New variable.
45670         Use $SED instead of sed everywhere.
45671
45672 2006-12-22  Bruno Haible  <bruno@clisp.org>
45673
45674         * modules/no-c++: New file.
45675         * m4/no-c++.m4: New file.
45676         * MODULES.html.sh (Support for building libraries and executables):
45677         Add no-c++.
45678
45679 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45680
45681         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45682         Include <limits.h>, and use its INT_MAX to rewrite the
45683         j loop so that it does not overflow 'int'.  Problem reported by
45684         Ralf Wildenhues in
45685         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45686         Play it safe by shifting left by 1 rather than multiplying by 2,
45687         as GCC is less likely to optimize this away when the value
45688         is signed (when it assumes overflow leads to undefined behavior).
45689         Also, don't assume time_t uses two's complement.
45690
45691 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45692
45693         * MODULES.html.sh: New module wctype.
45694         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45695         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45696         <wctype.h>, since the new wctype module should fix this.
45697         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45698         the wctype module should arrange for it.
45699         * lib/regex_internal.h: Likewise.
45700         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45701         since the wctype module should handle this now.
45702         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45703         * modules/fnmatch (Depends-on): Add wctype.
45704         * modules/quotearg (Depends-on): Likewise.
45705         * modules/regex (Depends-on): Likewise.
45706
45707 2006-12-19  Bruno Haible  <bruno@clisp.org>
45708
45709         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45710         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45711
45712 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45713
45714         * modules/savewd (Depends-on): Fix dependency on fcntl.
45715
45716 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45717
45718         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45719         conforms to C99, rather than relying on the user's environment
45720         setting of STDINT_H.
45721
45722 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45723         and Eric Blake  <ebb9@byu.net>
45724
45725         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45726         This is more consistent with the other defines here.
45727         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45728         Port to z/OS.  Problem reported by Paul Gilmartin.
45729         Change local vars to use gl_ prefix rather than ac_.
45730         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45731         with other defines.
45732         * modules/double-slash-root: New module.
45733         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45734         (Depends-on): Add double-slash-root.
45735         * MODULES.html.sh (File system functions): Mention new module.
45736
45737 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45738
45739         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45740         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45741         This is for the benefit of gzip, which doesn't do i18n.
45742
45743 2006-12-12  Jim Meyering  <jim@meyering.net>
45744
45745         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45746         Reported by Andreas Schwab <schwab@suse.de>.
45747
45748 2006-12-12  Bruno Haible  <bruno@clisp.org>
45749
45750         Merge these changes.
45751         2006-09-05  Bruno Haible  <bruno@clisp.org>
45752         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45753         iconv_alloc succeeded.
45754         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45755         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45756         test for " && dest " at the end - dest is always != NULL there. Call
45757         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45758         with 2xNULL arguments, also to flush the state storage. Handle the
45759         IRIX iconv behaviour. Realloc the final result, to throw away unused
45760         memory.
45761
45762 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45763
45764         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45765         and fchmodat unconditionally, since glibc 2.4 has them.
45766         Problem reported by Arkadiusz Miskiewicz.
45767
45768 2006-12-10  Bruno Haible  <bruno@clisp.org>
45769
45770         * gnulib-tool (func_import): Show the include files only for those
45771         modules that are copied and specified.
45772         Reported by Karl Berry.
45773
45774 2006-12-08  Jim Meyering  <jim@meyering.net>
45775
45776         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45777         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45778
45779         * build-aux/announce-gen: Add two new options, both optional:
45780         --bootstrap-tools=TOOL_LIST
45781               a comma-separated list of tools, e.g.,
45782               autoconf,automake,bison,gnulib
45783         --gnulib-snapshot-date=DATE
45784               if gnulib is in the bootstrap tool list,
45785               then report this as the snapshot date.
45786               If not specified, use the current date/time.
45787               If you specify a date here, be sure it's UTC.
45788
45789 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45790
45791         * tests/test-argp-2.sh: Fix test to match actual output.
45792         (func_compare): Fix sed script to be portable.
45793
45794 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45795
45796         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45797         workaround for this case.  It is not autoconfigured now; offhand
45798         it's hard to see how to autoconfigure it.
45799
45800 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45801
45802         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45803         a directory that is about to be chowned.  Such a directory's
45804         initial file permissions should permit the owner only and this
45805         should not be changed until after the chown, since the group and
45806         other bits would be incorrect if they granted permission before
45807         the chown.
45808
45809         Fix porting problem for iswctype reported by Georg Schwarz in:
45810         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45811         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45812         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45813         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45814         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45815
45816 2006-12-03  Jim Meyering  <jim@meyering.net>
45817
45818         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45819         p->fts_statp may not yet be defined.
45820         (fts_read): Instead, set it in the caller, once p->fts_statp is
45821         sure to be defined, and corresponds to a top-level directory.
45822         This bug made du -x fail.  Here's the coreutils test case:
45823         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45824         Reported by Mike Frysinger.
45825
45826 2006-12-01  Jim Meyering  <jim@meyering.net>
45827
45828         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45829         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45830         Reported by Simon Josefsson.
45831
45832 2006-11-30  Jim Meyering  <jim@meyering.net>
45833
45834         * m4/warning.m4: Use the all-permissive copyright notice
45835         recommended by RMS (rather than LGPL).
45836         * m4/vararrays.m4: Likewise.
45837         * m4/flexmember.m4: Likewise.
45838
45839 2006-11-29  Bruno Haible  <bruno@clisp.org>
45840
45841         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45842         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
45843         using +=.
45844         Reported by Simon Josefsson <simon@josefsson.org>.
45845
45846 2006-11-28  James Youngman <jay@gnu.org>
45847
45848         * README: Advise users that they might find the bug-gnulib@gnu.org
45849         and autotools-announce@gnu.org mailing lists useful.
45850
45851 2006-11-28  Bruno Haible  <bruno@clisp.org>
45852
45853         * m4/ptrdiff_max.m4: Remove file.
45854
45855 2006-11-21  Bruno Haible  <bruno@clisp.org>
45856
45857         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
45858         _AC_COMPUTE_INT.
45859         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45860         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
45861         _AC_COMPUTE_INT.
45862         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45863         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
45864         _AC_COMPUTE_INT.
45865         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45866
45867 2006-11-28  Jim Meyering  <jim@meyering.net>
45868
45869         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
45870         warning from "gcc -Wshadow" about shadowing the builtin.
45871
45872 2006-11-27  Bruno Haible  <bruno@clisp.org>
45873
45874         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
45875         _AC_COMPUTE_INT.
45876         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45877
45878 2006-11-27  Bruno Haible  <bruno@clisp.org>
45879             Paul Eggert  <eggert@cs.ucla.edu>
45880
45881         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
45882
45883 2006-11-26  Bruno Haible  <bruno@clisp.org>
45884
45885         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45886         noinst_LTLIBRARIES.
45887
45888 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45889             Bruno Haible  <bruno@clisp.org>
45890
45891         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
45892         if compiling with "gcc -ansi".
45893
45894 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45895
45896         Fix some incompatibilities with gcc -ansi -pedantic.
45897         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
45898         if compiling pedantically with GCC, unless it's C99 or later.
45899         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
45900         it mishandles gcc -ansi -pedantic as well.
45901         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
45902         if gcc -pedantic.
45903         * lib/regexec.c (check_node_accept_bytes): Don't use auto
45904         initializers for struct if -pedantic, unless it's C99 or later.
45905
45906 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
45907
45908         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
45909         Don't close an fd more than once. Identical atimes indicate
45910         success, not failure.
45911
45912 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
45913
45914         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
45915
45916 2006-11-23  Jim Meyering  <jim@meyering.net>
45917
45918         * build-aux/announce-gen: New file.  From coreutils.
45919
45920 2006-11-22  Jim Meyering  <jim@meyering.net>
45921
45922         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
45923         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
45924         (fts_read): Use a temporary to narrow the overused st_size member
45925         before using it in a switch statement.  Reported by Matthew Woehlke.
45926
45927         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
45928         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45929
45930 2006-11-20  Bruno Haible  <bruno@clisp.org>
45931
45932         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
45933         changequote instead of pairs of brackets.
45934         Reported by Andreas Schwab <schwab@suse.de>.
45935
45936 2006-11-21  Jim Meyering  <jim@meyering.net>
45937
45938         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
45939         so as to remain compatible with older compilers.
45940         Patch from Michael Deutschmann.
45941
45942 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45943
45944         * MODULES.html.sh (File system functions): Add openat.
45945
45946         * lib/openat.h (rpl_fstatat): New macro, if
45947         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
45948         (fstatat): Define to rpl_fstatat under the same conditions,
45949         unless COMPILING_FSTATAT.
45950         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
45951         seems to have the bug.
45952         * lib/fstatat.c: New file.
45953         * modules/openat (Files): Add it.
45954
45955 2006-11-20  Bruno Haible  <bruno@clisp.org>
45956
45957         * Makefile: New file.
45958
45959 2006-11-20  Jim Meyering  <jim@meyering.net>
45960
45961         The beginnings of syntax-related checks for gnulib.
45962         * lib/Makefile: New file.
45963         * lib/t-idcache: New script.  Ensure that the two halves of
45964         idcache.c stay in sync.
45965
45966         * lib/idcache.c: Adjust comments in user- and group- portions to
45967         be more accurate, and to be consistent with one another.
45968
45969 2006-11-20  Jim Meyering  <jim@meyering.net>
45970
45971         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
45972         continue using the flexible array member (thus, this module performs
45973         half as many malloc calls), with the addition that...
45974         (getgroup, getuser): Consistently record a non-match via an empty
45975         "name" string, and map an empty string match to a NULL return value.
45976         * modules/idcache (Depends-on): Re-add flexmember.
45977
45978         * lib/idcache.c (getuser): Remove all uses of the register keyword.
45979         (getuidbyname, getgroup, getgidbyname): Likewise.
45980
45981         Use cleaner syntax: NULL rather than 0.
45982         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
45983
45984 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45985
45986         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
45987         It mishandled the case where the group was missing.
45988         Problem reported by Greg Schafer.
45989         * modules/idcache: Likewise.
45990
45991 2006-11-18  Jim Meyering  <jim@meyering.net>
45992
45993         * check-module (%exempt_header): Add exception for some
45994         conditionally-included headers.
45995
45996         * modules/i-ring (Depends-on): Add verify.
45997         (License): Change to LGPL.
45998
45999 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46000
46001         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
46002         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
46003         and inttostr.h.  Use snprintf rather than uinttostr, so that
46004         LGPLed code doesn't depend on GPLed.
46005
46006 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46007
46008         * modules/inline (License): Change from GPL to LGPL.
46009
46010 2006-11-17  Jim Meyering  <jim@meyering.net>
46011
46012         * modules/d-type (License): Switch to LGPL.
46013
46014 2006-11-15  Bruno Haible  <bruno@clisp.org>
46015
46016         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
46017
46018 2006-11-15  Eric Blake  <ebb9@byu.net>
46019
46020         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
46021         the module dependency.
46022
46023 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46024             Bruno Haible  <bruno@clisp.org>
46025
46026         * gnulib-tool (func_create_testdir): Add license consistency check.
46027
46028 2006-11-15  Eric Blake  <ebb9@byu.net>
46029
46030         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
46031         random "(cached)" in configure output.
46032
46033 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46034
46035         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
46036         test for conforming inttypes.h is both announced and cached.
46037
46038         * MODULES.html.sh (seen_modules, seen_files): New variables.
46039         (func_module): Rewrite to use a few less gnulib-tool and sed
46040         invocations.  Avoid a couple of quadratic algorithms for ...
46041         (missed_modules, missed_files): ... these, with ...
46042         (func_append, func_tmpdir): ... these new functions, from
46043         gnulib-tool.  Analogously, install traps for cleanup.
46044
46045         * tests/test-gc.c (main): Remove unused variables.
46046         * tests/test-read-file.c: Include stdlib.h, for 'free'.
46047
46048 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
46049
46050         * modules/inttostr (License): Change to LGPL.
46051
46052 2006-11-14  Eric Blake  <ebb9@byu.net>
46053
46054         * modules/tempname (License): Change to LGPL.
46055
46056 2006-11-14  Eric Blake  <ebb9@byu.net>
46057
46058         * doc/functions.texi (Function Portability): *printf functions on
46059         Cygwin now understand all POSIX size specifiers.
46060
46061 2006-11-14  Bruno Haible  <bruno@clisp.org>
46062
46063         * modules/c-ctype (License): Change to LGPL.
46064
46065 2006-11-12  Bruno Haible  <bruno@clisp.org>
46066
46067         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46068         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
46069         for GNOME libraries, for which the include files are installed in
46070         subdirectories of $prefix/include.
46071
46072 2006-11-12  Bruno Haible  <bruno@clisp.org>
46073
46074         * m4/lib-link.m4: Require at least autoconf-2.54.
46075         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
46076         name to underscores for the --with option.
46077
46078 2006-11-13  Bruno Haible  <bruno@clisp.org>
46079
46080         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
46081         the tests directory.
46082         Reported by Ralf Wildenhues.
46083
46084 2006-11-13  Bruno Haible  <bruno@clisp.org>
46085
46086         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
46087         (func_emit_initmacro_end): Undo the override here.
46088         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
46089         Works around the famous automake error in coreutils.
46090
46091 2006-11-13  Eric Blake  <ebb9@byu.net>
46092
46093         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
46094         element, not its node.
46095
46096 2006-11-12  Bruno Haible  <bruno@clisp.org>
46097
46098         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
46099         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
46100
46101 2006-11-12  Bruno Haible  <bruno@clisp.org>
46102
46103         * gnulib-tool: New option --local-symlink.
46104         (func_usage): Document it.
46105         (lsymbolic): New variable.
46106         (func_import, func_create_testdir): If --symlink was not specified,
46107         test whether --local-symlink was specified and the file comes from
46108         the local_gnulib_dir.
46109
46110 2006-11-12  Bruno Haible  <bruno@clisp.org>
46111
46112         * gnulib-tool (func_ln): New function.
46113         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
46114
46115 2006-11-12  Bruno Haible  <bruno@clisp.org>
46116
46117         Finish support for source files in subdirectories.
46118         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
46119         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
46120         AUTOMAKE_OPTIONS.
46121         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
46122
46123 2006-11-12  Bruno Haible  <bruno@clisp.org>
46124
46125         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46126         EXTRA_lib_SOURCES augmentation.
46127         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
46128
46129 2006-11-12  Jim Meyering  <jim@meyering.net>
46130
46131         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
46132         file descriptors.  This also averts a failure on systems with
46133         native openat support when a traversed directory lacks "x" access.
46134         * lib/fts_.h: Include "i-ring.h"
46135         (struct FTS) [fts_fd_ring]: New member.
46136         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
46137         (FCHDIR): Add parentheses.
46138         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
46139         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
46140         When descending, rather than simply closing the previous
46141         fts_cwd_fd value, push that file descriptor onto the ring.
46142         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
46143         (fts_open): Initialize the new fd_ring member.
46144         (fts_close): Clear the ring.
46145         (fts_safe_changedir): When possible, use our new fd_ring to skip
46146         the diropen and fstat and dev/ino comparison that would normally
46147         accompany a virtual `chdir ("..")'.
46148
46149         * modules/fts (Depends-on): Add i-ring.
46150         * modules/i-ring: New module.
46151         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
46152         * m4/i-ring.m4: New file.
46153
46154 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46155
46156         * gnulib-tool (func_create_testdir): Fix replacement of
46157         `build-aux' in configure.ac.  Run autotools in gltests
46158         subdirectory.
46159         (func_create_testdir, func_create_megatestdir, test): There is
46160         no need for '--force' in most autotool invocations in a new
46161         tree.  Actually fail the whole test if any of the tools, or the
46162         configure or make stages fail.
46163
46164         Sync from Automake.
46165         * build-aux/gnupload: Revert last change.  Add pointer to upload
46166         instructions of the GNU Maintenance Instructions.
46167         Suggestion by Karl Berry.
46168
46169 2006-11-10  Jim Meyering  <jim@meyering.net>
46170
46171         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
46172
46173 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46174
46175         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
46176         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
46177         (bind_textdomain_codeset) [! ENABLE_NLS]:
46178         Evaluate all the arguments.  That way, callers get compatible behavior
46179         if the arguments have side effects.  Also, it avoids some GCC
46180         diagnostics in some cases; Joel E. Denny reported problems when Bison
46181         was configured with --enable-gcc-warnigs.
46182
46183 2006-11-10  Jim Meyering  <jim@meyering.net>
46184
46185         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
46186         relevant options in CFLAGS (like -O, -fno-inline) are taken into
46187         account.
46188
46189 2006-11-10  Jim Meyering  <jim@meyering.net>
46190
46191         * modules/inline: New file/module.
46192         * modules/xalloc (Files): Remove m4/inline.m4.
46193         (Depends-on): Add inline, instead.
46194         * modules/oset: Likewise.
46195         * modules/list: Likewise.
46196
46197 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46198
46199         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
46200         Problem reported by Matthew Woehlke.
46201
46202 2006-11-09  Bruno Haible  <bruno@clisp.org>
46203
46204         * lib/tempname.c (gen_tempname): Remove variant that invokes
46205         __gen_tempname.
46206         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
46207         __gen_tempname.
46208
46209 2006-11-08  Bruno Haible  <bruno@clisp.org>
46210
46211         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
46212         to 'yes' instead of 'cross-compiling'.
46213
46214 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
46215
46216         * lib/quotearg.h (quotearg_free): New decl.
46217         * lib/quotearg.c (quotearg_free): New function.
46218         (slot0, nslots, slotvec0, slotvec):
46219         Now file-scope so that quotearg_free can get at them.
46220
46221 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46222
46223         Sync from Automake.
46224         * build-aux/gnupload: Add missing 'gnu' to example URL.
46225         Report by Karl Berry.
46226
46227 2006-11-08  Bruno Haible  <bruno@clisp.org>
46228
46229         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
46230         Suggested by Paul Eggert.
46231
46232 2006-11-08  Jim Meyering  <jim@meyering.net>
46233
46234         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
46235         It's already included if !_LIBC.
46236         (fts_safe_changedir): Add a comment.
46237
46238 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46239
46240         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
46241         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
46242         Matthew Woehlke.
46243
46244         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
46245         definitions up, to avoid colliding with change below.
46246         (static_inline) [HAVE_INLINE]: New macro.
46247         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
46248         Provide extern decls when !HAVE_INLINE.  Do not define unless
46249         static_inline is defined, either by us or by xmalloc.c.  Use
46250         static_inline rather than static inline.
46251         (XCALLOC): Optimize sizeof(T) = 1 case.
46252         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
46253
46254 2006-11-07  Bruno Haible  <bruno@clisp.org>
46255
46256         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
46257         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
46258         AC_C_INLINE.
46259         * modules/xalloc (Files): Add m4/inline.m4.
46260
46261 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46262
46263         * README: Fix typo.
46264         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
46265         (Miscellanous Notes): ...from this.
46266
46267 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46268
46269         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
46270         Mention that offsetof should be used instead of sizeof.
46271         From Bruno Haible.
46272
46273 2006-11-07  Bruno Haible  <bruno@clisp.org>
46274
46275         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
46276
46277 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46278
46279         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46280         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
46281         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46282         (gl_tree_add_before, gl_tree_add_after):
46283         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
46284         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
46285         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46286         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
46287         (gl_linked_add_after, gl_linked_add_at): Likewise.
46288         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
46289         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46290         (gl_tree_add_before, gl_tree_add_after): Likewise.
46291         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
46292         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
46293         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
46294
46295 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46296
46297         * lib/gl_oset.h: Use C comment style, not C++ comment style.
46298
46299 2006-11-06  Bruno Haible  <bruno@clisp.org>
46300
46301         * m4/inline.m4: New file.
46302         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
46303         * modules/list (Files): Add m4/inline.m4.
46304         * modules/oset (Files): Likewise.
46305
46306 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46307
46308         * lib/idcache.c: Include <stddef.h>, for offsetof.
46309         (struct userid.name): Change from char * to a flexible array member.
46310         All uses changed.
46311         * modules/idcache (Depends-on): Add flexmember.
46312
46313         * MODULES.html.sh (Core language properties): New module flexmember.
46314         * modules/flexmember, m4/flexmember.m4: New files.
46315
46316         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
46317         inline functions that are identical with the old xnmalloc_inline,
46318         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
46319         that we can avoid some unnecessary integer multiplications and
46320         divisions in the common case where the element size is known at
46321         compile time.
46322         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
46323         needed.
46324         (xnboundedmalloc): Remove.
46325         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
46326         arguments, for consistency with rest of this header.
46327         (xcharalloc): Rewrite using XNMALLOC.
46328         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
46329         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
46330         versions have been moved to lib/xalloc.h and renamed to be the
46331         non-*_inline versions.
46332         (xmalloc, xrealloc): Implement without reference to the xnmalloc
46333         and xnrealloc functions, since those functions are now inline and
46334         now call us.
46335         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
46336         renaming described above.
46337         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
46338         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
46339         captures the dependency in AC_C_INLINE.
46340
46341         New module canonicalize-lgpl, proposed by Charles Wilson in
46342         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
46343         with a few small changes afterwards.
46344         * MODULES.html.sh (File system functions): New module
46345         canonicalize-lgpl.
46346         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
46347         and canonicalize_file_name.
46348         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
46349         * modules/canonicalize-lgpl: New files.
46350
46351 2006-11-05  Bruno Haible  <bruno@clisp.org>
46352
46353         * gnulib-tool (func_import, func_create_testdir): Create directories
46354         also for files in subdirectories of lib/.
46355
46356 2006-11-05  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
46359         ANSI C compliant.
46360
46361 2006-11-03  Bruno Haible  <bruno@clisp.org>
46362
46363         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46364         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
46365         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
46366         (xnboundedmalloc): New inline function.
46367         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
46368         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
46369         xmalloc.
46370         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
46371         xmalloc.
46372         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
46373         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
46374         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
46375         xmalloc.
46376         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46377         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
46378         xmalloc.
46379         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
46380         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46381         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
46382         xmalloc.
46383         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46384         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
46385         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46386         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
46387         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
46388         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
46389         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
46390
46391 2006-11-03  Bruno Haible  <bruno@clisp.org>
46392
46393         * lib/c-ctype.h [C++]: Define functions without name mangling.
46394         * lib/fwriteerror.h [C++]: Likewise.
46395         * lib/gcd.h [C++]: Likewise.
46396         * lib/linebreak.h [C++]: Likewise.
46397
46398 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
46399
46400         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
46401         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
46402         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
46403         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
46404         Check for functions and headers just once.
46405         Check for declaration of canonicalize_file_name.
46406         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
46407
46408 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46409
46410         * gnulib-tool (func_import): Fix typo in actioncmd.
46411
46412 2006-11-02  Bruno Haible  <bruno@clisp.org>
46413
46414         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
46415         newline sequence in the Makefile.am snippet as a space, like "make"
46416         does.
46417         Reported by Roger Persson <perrog@gmail.com>.
46418
46419 2006-11-01  Bruno Haible  <bruno@clisp.org>
46420
46421         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
46422         already declared in <string.h>.
46423         * lib/strcase.h (strncasecmp): Don't declare it if yes.
46424
46425 2006-11-01  Bruno Haible  <bruno@clisp.org>
46426
46427         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
46428         * lib/strcase.h: Include <string.h>.
46429         (strcasecmp): Define to rpl_strcasecmp here.
46430
46431 2006-11-01  Bruno Haible  <bruno@clisp.org>
46432
46433         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
46434
46435 2006-11-01  Eric Blake  <ebb9@byu.net>
46436
46437         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
46438
46439         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
46440
46441 2006-10-29  Bruno Haible  <bruno@clisp.org>
46442
46443         Make it compile in C++ mode.
46444         * lib/full-write.c (full_rw): Add a cast.
46445
46446 2006-11-01  Bruno Haible  <bruno@clisp.org>
46447
46448         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
46449         be POSIX compliant.
46450         Reported by Roger Persson <perrog@gmail.com>.
46451
46452 2006-11-01  Eric Blake  <ebb9@byu.net>
46453
46454         * lib/getopt_.h: Fix comments.
46455
46456 2006-10-31  Eric Blake  <ebb9@byu.net>
46457
46458         * modules/tmpdir (Depends-on): Add sys_stat.
46459         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
46460         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
46461         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
46462         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
46463         tempname.
46464
46465 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46466
46467         Avoid some C++ diagnostics reported by Bruno Haible.
46468         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
46469         xmalloc.
46470         (quotearg_alloc): Use xcharalloc rather than xmalloc.
46471         (struct slotvec): Move to top level.
46472         (quotearg_n_options): Rewrite to avoid xmalloc.
46473         * lib/xalloc.h (xcharalloc): New function.
46474         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
46475         [defined __cplusplus]: Add function template that provides result
46476         type propagation.  This part of the change is from Bruno Haible.
46477
46478 2006-10-29  Bruno Haible  <bruno@clisp.org>
46479
46480         Make it compile in C++ mode.
46481         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
46482         * lib/strnlen1.c (strnlen1): Cast memchr result.
46483         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
46484         * lib/clean-temp.c (string_equals, string_hash): Add casts.
46485         (create_temp_dir): Rename local variable 'template'.
46486         (compile_csharp_using_sscli): Add cast.
46487         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
46488         * lib/findprog.c (find_in_path): Likewise.
46489         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
46490         * lib/wait-process.c (register_slave_subprocess): Likewise.
46491
46492 2006-10-22  Bruno Haible  <bruno@clisp.org>
46493
46494         * modules/tsearch: New file.
46495         * lib/tsearch.h: New file.
46496         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
46497         * m4/tsearch.m4: New file.
46498         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
46499
46500 2006-10-29  Eric Blake  <ebb9@byu.net>
46501
46502         * lib/arcfour.c: Assume config.h.
46503         * lib/arctwo.c: Likewise.
46504         * lib/base64.c: Likewise.
46505         * lib/check-version.c: Likewise.
46506         * lib/crc.c: Likewise.
46507         * lib/des.c: Likewise.
46508         * lib/gc-gnulib.c: Likewise.
46509         * lib/gc-libgcrypt.c: Likewise.
46510         * lib/gc-pbkdf2-sha1.c: Likewise.
46511         * lib/getaddrinfo.c: Likewise.
46512         * lib/getdelim.c: Likewise.
46513         * lib/getline.c: Likewise.
46514         * lib/hmac-md5.c: Likewise.
46515         * lib/hmac-sha1.c: Likewise.
46516         * lib/iconvme.c: Likewise.
46517         * lib/md2.c: Likewise.
46518         * lib/md4.c: Likewise.
46519         * lib/memxor.c: Likewise.
46520         * lib/read-file.c: Likewise.
46521         * lib/readline.c: Likewise.
46522         * lib/rijndael-alg-fst.c: Likewise.
46523         * lib/rijndael-api-fst.c: Likewise.
46524         * lib/xgetdomainname.c: Likewise.
46525
46526 2006-10-28  Eric Blake  <ebb9@byu.net>
46527
46528         * lib/xstrndup.c: Assume config.h.
46529
46530 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46531
46532         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
46533         stat-macros.h is now for our own macros, whereas stat_h is for
46534         macros in the <sys/stat.h> name space.
46535         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
46536         (STAT_MACROS_H): Remove.
46537         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
46538         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
46539         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
46540         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
46541         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
46542         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
46543         Move these macros to ...
46544         * lib/stat_.h: here.  Don't include stat-macros.h.
46545         * lib/canonicalize.c: Don't include stat-macros.h.
46546         * lib/chown.c: Likewise.
46547         * lib/euidaccess.c: Likewise.
46548         * lib/file-type.c: Likewise.
46549         * lib/filemode.c: Likewise.
46550         * lib/glob.c: Likewise.
46551         * lib/isapipe.c: Likewise.
46552         * lib/lchown.c: Likewise.
46553         * lib/lstat.c: Likewise.
46554         * lib/mkdir-p.c: Likewise.
46555         * lib/rmdir.c: Likewise.
46556         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
46557         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
46558         unless mkdir isn't declared, to speed up 'configure'.
46559         Always create sys/stat.h, since it's unlikely any real sys/stat.h
46560         would define all the S_* symbols.
46561         * modules/canonicalize (Depends-on):
46562         Depend on sys_stat, not stat-macros.
46563         * modules/chown: Likewise.
46564         * modules/euidaccess: Likewise.
46565         * modules/filemode: Likewise.
46566         * modules/file-type: Likewise.
46567         * modules/glob: Likewise.
46568         * modules/isapipe: Likewise.
46569         * modules/lchown: Likewise.
46570         * modules/lstat: Likewise.
46571         * modules/mkancesdirs: Likewise.
46572         * modules/rmdir: Likewise.
46573         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
46574         * modules/modechange: Likewise.
46575         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
46576         (configure.ac): Remove gl_STAT_MACROS.
46577         * modules/sys_stat (Depends-on): Remove stat-macros.
46578
46579 2006-10-27  Bruno Haible  <bruno@clisp.org>
46580
46581         * m4/signed.m4: Remove file.
46582         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
46583         invocation.
46584         * modules/vasnprintf (Files): Remove m4/signed.m4.
46585
46586 2006-10-27  Bruno Haible  <bruno@clisp.org>
46587
46588         Update to GNU gettext 0.16.
46589         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46590         m4/inttypes-h.m4, m4/signed.m4.
46591         * m4/gettext.m4: Update to GNU gettext 0.16.
46592         * m4/intl.m4: New file, from GNU gettext.
46593         * m4/intldir.m4: New file, from GNU gettext.
46594         * config/srclist.txt: Update
46595
46596 2006-10-27  Eric Blake  <ebb9@byu.net>
46597
46598         * MODULES.html.sh: Document tempname.
46599         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46600         dependencies.
46601         (Files): Move lib/tempname.c...
46602         * modules/tempname: ...to this new module.
46603         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46604         (gl_PREREQ_TEMPNAME): Move...
46605         * m4/tempname.m4: ...to this new file.
46606         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46607         * modules/sys_stat (Depends-on): Add stat-macros.
46608         * lib/stat_.h (includes): Pick up stat macros.
46609         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46610         if stat macros are broken.
46611         * lib/tempname.c (includes): No need to include "stat-macros.h".
46612         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46613         (direxists, __path_search) [!_LIBC]: Don't compile these in
46614         gnulib; the tmpdir module covers that.
46615         * lib/tempname.h: New file.
46616
46617 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46618
46619         * COPYING: Explain how gnulib-tool converts licence headers.
46620         Almost all wording by Eric Blake.
46621
46622 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46623
46624         * lib/mbchar.h (is_basic_table): Make read-only.
46625         * lib/mbchar.c (is_basic_table): Likewise.
46626         Reported by John Darrington.
46627
46628 2006-10-25  Bruno Haible  <bruno@clisp.org>
46629
46630         * lib/progname.h (set_program_name): Undefine before defining.
46631
46632 2006-10-25  Bruno Haible  <bruno@clisp.org>
46633
46634         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46635         false for non-gcc C++ compilers.
46636         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46637
46638 2006-10-24  Bruno Haible  <bruno@clisp.org>
46639
46640         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46641         iconv implementations like Irix iconv.
46642
46643 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46644
46645         * modules/vararrays: New file.
46646         * m4/vararrays.m4: New file, taken from diffutils.
46647         * MODULES.html.sh: New module vararrays.
46648
46649 2006-10-24  Karl Berry  <karl@gnu.org>
46650
46651         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46652         Don't call GNU Unix.
46653
46654 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46655
46656         * users.txt: Add Libtool.
46657
46658         Sync from Libtool:
46659
46660         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46661
46662         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46663         to gnulib's policy of including config.h unconditionally.
46664
46665 2006-10-24  Bruno Haible  <bruno@clisp.org>
46666
46667         * modules/wcwidth (Files): Add m4/wint_t.m4.
46668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46669         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46670
46671 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46672
46673         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46674         to pacify GCC with some -W flags enabled.  Problem reported by
46675         Bruno Haible.
46676
46677 2006-10-24  Jim Meyering  <jim@meyering.net>
46678
46679         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46680         Reported by Karl Berry.
46681
46682 2006-10-23  Bruno Haible  <bruno@clisp.org>
46683
46684         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46685
46686 2006-10-24  Bruno Haible  <bruno@clisp.org>
46687
46688         * lib/gl_list.h: Use C comment style, not C++ comment style.
46689
46690 2006-10-23  Eric Blake  <ebb9@byu.net>
46691
46692         * lib/getaddrinfo.c (includes): Add missing include.
46693
46694 2006-10-23  Bruno Haible  <bruno@clisp.org>
46695             Paul Eggert  <eggert@cs.ucla.edu>
46696
46697         Ability to rename obstack_free.
46698         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46699         obstack_free.
46700         (obstack_free): Invoke the __obstack_free macro.
46701         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46702
46703 2006-10-23  Bruno Haible  <bruno@clisp.org>
46704             Paul Eggert  <eggert@cs.ucla.edu>
46705
46706         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46707         __argc, __argv from the declaration. (They are defined as macros on
46708         mingw.)
46709
46710 2006-10-22  Bruno Haible  <bruno@clisp.org>
46711
46712         * doc/gnulib-intro.texi: New file.
46713         * doc/gnulib.texi: Include it.
46714
46715 2006-10-21  Bruno Haible  <bruno@clisp.org>
46716
46717         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46718         "Introduction", "Miscellanous Notes", "Particular Modules".
46719
46720 2006-10-21  Bruno Haible  <bruno@clisp.org>
46721
46722         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46723         Change mostlyclean-local rule to avoid sh syntax error from bash
46724         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46725
46726 2006-10-23  Jim Meyering  <jim@meyering.net>
46727
46728         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46729         in place of snprintf.
46730
46731         * modules/inttostr (Files): Add lib/uinttostr.c.
46732         * lib/uinttostr.c (inttostr): New file/function.
46733         * lib/inttostr.h (uinttostr): Declare.
46734         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46735         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46736         Add uinttostr.
46737         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46738
46739 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46740
46741         * lib/canonicalize.c (ELOOP): Define if not already defined.
46742         Problem reported by Bruno Haible in
46743         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46744
46745 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46746
46747         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46748         Problem reported by Perry Smith and Ville Laurikari.
46749
46750         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46751         uses.
46752
46753 2006-10-19  Bruno Haible  <bruno@clisp.org>
46754
46755         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46756         for mingw.
46757
46758 2006-10-19  Bruno Haible  <bruno@clisp.org>
46759
46760         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46761         Needed for mingw.
46762
46763 2006-10-19  Bruno Haible  <bruno@clisp.org>
46764
46765         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46766
46767 2006-10-19  Bruno Haible  <bruno@clisp.org>
46768
46769         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46770         it.
46771
46772 2006-10-19  Bruno Haible  <bruno@clisp.org>
46773
46774         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46775         invocation.
46776
46777 2006-10-19  Bruno Haible  <bruno@clisp.org>
46778
46779         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46780         mountlist by default.
46781
46782 2006-10-16  Bruno Haible  <bruno@clisp.org>
46783
46784         * lib/c-strstr.c: Include c-strstr.h.
46785
46786 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46787
46788         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46789         in a slash.
46790
46791 2006-10-18  Bruno Haible  <bruno@clisp.org>
46792
46793         * lib/lock.h [C++]: Wrap definitions in extern "C".
46794
46795 2006-10-18  Bruno Haible  <bruno@clisp.org>
46796
46797         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46798         gl_LIBOBJS list.
46799
46800 2006-10-18  Bruno Haible  <bruno@clisp.org>
46801
46802         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46803
46804 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46805
46806         * lib/xstrtol.h: Include gettext.h.
46807         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46808         Problem reported by Eric Blake.
46809         * modules/xstrtol (Depends-on): Add gettext-h.
46810
46811 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46812
46813         * lib/strftime.c (advance): New macro.
46814         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46815         incomplete type, so you can't add 0 to it.  Problem and patch
46816         reported by Eelco Dolstra for dietlibc.
46817
46818 2006-10-18  Jim Meyering  <jim@meyering.net>
46819
46820         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46821         type for a local, and rename it: s/up/user_proc/.
46822
46823 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46824
46825         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46826         READ_UTMP_USER_PROCESS.
46827         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46828
46829 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46830
46831         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46832         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46833
46834 2006-10-17  Eric Blake  <ebb9@byu.net>
46835
46836         * lib/sigprocmask.c (sigprocmask): Fix typo.
46837
46838         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
46839
46840         * modules/clean-temp (Makefile.am): Don't add to make output...
46841         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
46842         config.h.
46843
46844 2006-10-17  Bruno Haible  <bruno@clisp.org>
46845
46846         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
46847         differently if DEFAULT_TEXT_DOMAIN is set.
46848
46849 2006-10-16  Bruno Haible  <bruno@clisp.org>
46850
46851         * lib/clean-temp.c: Include fwriteerror.h.
46852
46853 2006-10-16  Bruno Haible  <bruno@clisp.org>
46854
46855         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
46856
46857 2006-10-16  Bruno Haible  <bruno@clisp.org>
46858
46859         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
46860         * lib/sigprocmask.h: Include <sys/types.h>.
46861         (sigset_t): Use the system's definition if present.
46862
46863 2006-10-17  Eric Blake  <ebb9@byu.net>
46864
46865         * lib/xvasprintf.c (includes): Assume config.h.
46866         * lib/xasprintf.c (includes): Likewise.
46867
46868 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46869
46870         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
46871         at least as wide as intmax_t.
46872
46873 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
46874
46875         (Imported from Automake.)
46876         * build-aux/gnupload: Update to version 1.1 of directive file.
46877
46878 2006-10-16  Eric Blake  <ebb9@byu.net>
46879
46880         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
46881         match Automake 1.10a.
46882
46883 2006-10-14  Bruno Haible  <bruno@clisp.org>
46884
46885         * modules/sigprocmask: New file.
46886         * lib/sigprocmask.h: New file.
46887         * lib/sigprocmask.c: New file.
46888         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
46889         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
46890         request sigprocmask.o.
46891         (gl_PREREQ_SIGPROCMASK): New macro.
46892         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
46893         (Depends-on): Add sigprocmask.
46894         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
46895         gt_SIGNALBLOCKING. Test for 'raise' only once.
46896         * lib/fatal-signal.c: Include sigprocmask.h.
46897         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
46898         unblock_fatal_signals): Define always.
46899         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46900         sigprocmask.
46901
46902 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46903
46904         Sync from Automake.
46905         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
46906         which incorrectly sets the mode of an existing destination
46907         directory.  In some cases the unpatched install-sh could do the
46908         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
46909         system.  We hope this is rare in practice, but it's clearly worth
46910         fixing.  Problem reported by Alex Unleashed in
46911         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
46912         Also, don't bother to check for -m bugs unless we're using -m;
46913         suggested by Stepan Kasal.
46914
46915 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46916
46917         Sync from Automake.
46918         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
46919         `-c' flag, so they appear at the same position as in %FASTDEP%
46920         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
46921         which ignores unknown options only after the first non-option.
46922         Bug report against M4 by Nelson H. F. Beebe.
46923
46924 2006-10-13  Jim Meyering  <jim@meyering.net>
46925
46926         Fix a bug in yesterday's change.
46927         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
46928         p->fts_statp->st_dev would be used uninitialized.
46929         Ensures that we always call fts_stat on the very first entry.
46930         Miklos Szeredi reported that find -xdev stopped working.
46931
46932 2006-10-12  Bruno Haible  <bruno@clisp.org>
46933
46934         * gnulib-tool (func_get_automake_snippet): Append an automatically
46935         computed EXTRA_DIST augmentation.
46936         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
46937         * modules/alloca-opt (Makefile.am): Likewise.
46938         * modules/allocsa (Makefile.am): Likewise.
46939         * modules/arcfour (Makefile.am): Likewise.
46940         * modules/arctwo (Makefile.am): Likewise.
46941         * modules/argmatch (Makefile.am): Likewise.
46942         * modules/argz (Makefile.am): Likewise.
46943         * modules/atexit (Makefile.am): Likewise.
46944         * modules/backupfile (Makefile.am): Likewise.
46945         * modules/byteswap (Makefile.am): Likewise.
46946         * modules/c-strtod (Makefile.am): Likewise.
46947         * modules/c-strtold (Makefile.am): Likewise.
46948         * modules/calloc (Makefile.am): Likewise.
46949         * modules/canon-host (Makefile.am): Likewise.
46950         * modules/canonicalize (Makefile.am): Likewise.
46951         * modules/chdir-long (Makefile.am): Likewise.
46952         * modules/chdir-safer (Makefile.am): Likewise.
46953         * modules/check-version (Makefile.am): Likewise.
46954         * modules/chown (Makefile.am): Likewise.
46955         * modules/cloexec (Makefile.am): Likewise.
46956         * modules/close-stream (Makefile.am): Likewise.
46957         * modules/closeout (Makefile.am): Likewise.
46958         * modules/crc (Makefile.am): Likewise.
46959         * modules/csharpexec (Makefile.am): Likewise.
46960         * modules/cycle-check (Makefile.am): Likewise.
46961         * modules/des (Makefile.am): Likewise.
46962         * modules/dev-ino (Makefile.am): Likewise.
46963         * modules/dirfd (Makefile.am): Likewise.
46964         * modules/dirname (Makefile.am): Likewise.
46965         * modules/dup2 (Makefile.am): Likewise.
46966         * modules/eealloc (Makefile.am): Likewise.
46967         * modules/error (Makefile.am): Likewise.
46968         * modules/euidaccess (Makefile.am): Likewise.
46969         * modules/exclude (Makefile.am): Likewise.
46970         * modules/exitfail (Makefile.am): Likewise.
46971         * modules/fcntl-safer (Makefile.am): Likewise.
46972         * modules/fcntl (Makefile.am): Likewise.
46973         * modules/file-type (Makefile.am): Likewise.
46974         * modules/fileblocks (Makefile.am): Likewise.
46975         * modules/filemode (Makefile.am): Likewise.
46976         * modules/filenamecat (Makefile.am): Likewise.
46977         * modules/fnmatch (Makefile.am): Likewise.
46978         * modules/fopen-safer (Makefile.am): Likewise.
46979         * modules/fpending (Makefile.am): Likewise.
46980         * modules/fprintftime (Makefile.am): Likewise.
46981         * modules/free (Makefile.am): Likewise.
46982         * modules/fsusage (Makefile.am): Likewise.
46983         * modules/ftruncate (Makefile.am): Likewise.
46984         * modules/fts (Makefile.am): Likewise.
46985         * modules/gc-arcfour (Makefile.am): Likewise.
46986         * modules/gc-des (Makefile.am): Likewise.
46987         * modules/gc-hmac-md5 (Makefile.am): Likewise.
46988         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
46989         * modules/gc-md4 (Makefile.am): Likewise.
46990         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
46991         * modules/gc-sha1 (Makefile.am): Likewise.
46992         * modules/gc (Makefile.am): Likewise.
46993         * modules/getaddrinfo (Makefile.am): Likewise.
46994         * modules/getcwd (Makefile.am): Likewise.
46995         * modules/getdelim (Makefile.am): Likewise.
46996         * modules/getdomainname (Makefile.am): Likewise.
46997         * modules/getgroups (Makefile.am): Likewise.
46998         * modules/gethostname (Makefile.am): Likewise.
46999         * modules/gethrxtime (Makefile.am): Likewise.
47000         * modules/getline (Makefile.am): Likewise.
47001         * modules/getloadavg (Makefile.am): Likewise.
47002         * modules/getlogin_r (Makefile.am): Likewise.
47003         * modules/getndelim2 (Makefile.am): Likewise.
47004         * modules/getopt (Makefile.am): Likewise.
47005         * modules/getpagesize (Makefile.am): Likewise.
47006         * modules/getpass-gnu (Makefile.am): Likewise.
47007         * modules/getpass (Makefile.am): Likewise.
47008         * modules/getsubopt (Makefile.am): Likewise.
47009         * modules/gettime (Makefile.am): Likewise.
47010         * modules/gettimeofday (Makefile.am): Likewise.
47011         * modules/getugroups (Makefile.am): Likewise.
47012         * modules/getusershell (Makefile.am): Likewise.
47013         * modules/glob (Makefile.am): Likewise.
47014         * modules/group-member (Makefile.am): Likewise.
47015         * modules/hard-locale (Makefile.am): Likewise.
47016         * modules/hash (Makefile.am): Likewise.
47017         * modules/hmac-md5 (Makefile.am): Likewise.
47018         * modules/hmac-sha1 (Makefile.am): Likewise.
47019         * modules/human (Makefile.am): Likewise.
47020         * modules/idcache (Makefile.am): Likewise.
47021         * modules/imaxabs (Makefile.am): Likewise.
47022         * modules/imaxdiv (Makefile.am): Likewise.
47023         * modules/inet_ntop (Makefile.am): Likewise.
47024         * modules/inet_pton (Makefile.am): Likewise.
47025         * modules/intprops (Makefile.am): Likewise.
47026         * modules/inttostr (Makefile.am): Likewise.
47027         * modules/inttypes (Makefile.am): Likewise.
47028         * modules/isapipe (Makefile.am): Likewise.
47029         * modules/javaversion (Makefile.am): Likewise.
47030         * modules/lchmod (Makefile.am): Likewise.
47031         * modules/lchown (Makefile.am): Likewise.
47032         * modules/localcharset (Makefile.am): Likewise.
47033         * modules/long-options (Makefile.am): Likewise.
47034         * modules/lstat (Makefile.am): Likewise.
47035         * modules/malloc (Makefile.am): Likewise.
47036         * modules/mathl (Makefile.am): Likewise.
47037         * modules/mbchar (Makefile.am): Likewise.
47038         * modules/md2 (Makefile.am): Likewise.
47039         * modules/md4 (Makefile.am): Likewise.
47040         * modules/md5 (Makefile.am): Likewise.
47041         * modules/memcasecmp (Makefile.am): Likewise.
47042         * modules/memchr (Makefile.am): Likewise.
47043         * modules/memcmp (Makefile.am): Likewise.
47044         * modules/memcoll (Makefile.am): Likewise.
47045         * modules/memcpy (Makefile.am): Likewise.
47046         * modules/memmem (Makefile.am): Likewise.
47047         * modules/memmove (Makefile.am): Likewise.
47048         * modules/mempcpy (Makefile.am): Likewise.
47049         * modules/memrchr (Makefile.am): Likewise.
47050         * modules/memset (Makefile.am): Likewise.
47051         * modules/memxor (Makefile.am): Likewise.
47052         * modules/mkancesdirs (Makefile.am): Likewise.
47053         * modules/mkdir-p (Makefile.am): Likewise.
47054         * modules/mkdir (Makefile.am): Likewise.
47055         * modules/mkdtemp (Makefile.am): Likewise.
47056         * modules/mkstemp (Makefile.am): Likewise.
47057         * modules/mktime (Makefile.am): Likewise.
47058         * modules/modechange (Makefile.am): Likewise.
47059         * modules/mountlist (Makefile.am): Likewise.
47060         * modules/nanosleep (Makefile.am): Likewise.
47061         * modules/obstack (Makefile.am): Likewise.
47062         * modules/openat (Makefile.am): Likewise.
47063         * modules/pagealign_alloc (Makefile.am): Likewise.
47064         * modules/pathmax (Makefile.am): Likewise.
47065         * modules/physmem (Makefile.am): Likewise.
47066         * modules/poll (Makefile.am): Likewise.
47067         * modules/posixtm (Makefile.am): Likewise.
47068         * modules/posixver (Makefile.am): Likewise.
47069         * modules/putenv (Makefile.am): Likewise.
47070         * modules/quote (Makefile.am): Likewise.
47071         * modules/quotearg (Makefile.am): Likewise.
47072         * modules/raise (Makefile.am): Likewise.
47073         * modules/read-file (Makefile.am): Likewise.
47074         * modules/readline (Makefile.am): Likewise.
47075         * modules/readlink (Makefile.am): Likewise.
47076         * modules/readtokens (Makefile.am): Likewise.
47077         * modules/readutmp (Makefile.am): Likewise.
47078         * modules/realloc (Makefile.am): Likewise.
47079         * modules/regex (Makefile.am): Likewise.
47080         * modules/rename-dest-slash (Makefile.am): Likewise.
47081         * modules/rename (Makefile.am): Likewise.
47082         * modules/rijndael (Makefile.am): Likewise.
47083         * modules/rmdir (Makefile.am): Likewise.
47084         * modules/rpmatch (Makefile.am): Likewise.
47085         * modules/safe-read (Makefile.am): Likewise.
47086         * modules/safe-write (Makefile.am): Likewise.
47087         * modules/same-inode (Makefile.am): Likewise.
47088         * modules/same (Makefile.am): Likewise.
47089         * modules/save-cwd (Makefile.am): Likewise.
47090         * modules/savedir (Makefile.am): Likewise.
47091         * modules/setenv (Makefile.am): Likewise.
47092         * modules/settime (Makefile.am): Likewise.
47093         * modules/sha1 (Makefile.am): Likewise.
47094         * modules/sig2str (Makefile.am): Likewise.
47095         * modules/snprintf (Makefile.am): Likewise.
47096         * modules/stat-macros (Makefile.am): Likewise.
47097         * modules/stat-time (Makefile.am): Likewise.
47098         * modules/stdbool (Makefile.am): Likewise.
47099         * modules/stdint (Makefile.am): Likewise.
47100         * modules/stdlib-safer (Makefile.am): Likewise.
47101         * modules/stpcpy (Makefile.am): Likewise.
47102         * modules/stpncpy (Makefile.am): Likewise.
47103         * modules/strcase (Makefile.am): Likewise.
47104         * modules/strcasestr (Makefile.am): Likewise.
47105         * modules/strchrnul (Makefile.am): Likewise.
47106         * modules/strcspn (Makefile.am): Likewise.
47107         * modules/strdup (Makefile.am): Likewise.
47108         * modules/strerror (Makefile.am): Likewise.
47109         * modules/strftime (Makefile.am): Likewise.
47110         * modules/strndup (Makefile.am): Likewise.
47111         * modules/strnlen (Makefile.am): Likewise.
47112         * modules/strpbrk (Makefile.am): Likewise.
47113         * modules/strsep (Makefile.am): Likewise.
47114         * modules/strstr (Makefile.am): Likewise.
47115         * modules/strtod (Makefile.am): Likewise.
47116         * modules/strtoimax (Makefile.am): Likewise.
47117         * modules/strtok_r (Makefile.am): Likewise.
47118         * modules/strtol (Makefile.am): Likewise.
47119         * modules/strtoll (Makefile.am): Likewise.
47120         * modules/strtoul (Makefile.am): Likewise.
47121         * modules/strtoull (Makefile.am): Likewise.
47122         * modules/strtoumax (Makefile.am): Likewise.
47123         * modules/strverscmp (Makefile.am): Likewise.
47124         * modules/sys_socket (Makefile.am): Likewise.
47125         * modules/sys_stat (Makefile.am): Likewise.
47126         * modules/sysexits (Makefile.am): Likewise.
47127         * modules/time_r (Makefile.am): Likewise.
47128         * modules/timegm (Makefile.am): Likewise.
47129         * modules/timespec (Makefile.am): Likewise.
47130         * modules/tmpfile-safer (Makefile.am): Likewise.
47131         * modules/trim (Makefile.am): Likewise.
47132         * modules/unistd-safer (Makefile.am): Likewise.
47133         * modules/unlinkdir (Makefile.am): Likewise.
47134         * modules/unlocked-io (Makefile.am): Likewise.
47135         * modules/userspec (Makefile.am): Likewise.
47136         * modules/utime (Makefile.am): Likewise.
47137         * modules/utimecmp (Makefile.am): Likewise.
47138         * modules/utimens (Makefile.am): Likewise.
47139         * modules/vasnprintf (Makefile.am): Likewise.
47140         * modules/vasprintf (Makefile.am): Likewise.
47141         * modules/vsnprintf (Makefile.am): Likewise.
47142         * modules/xalloc (Makefile.am): Likewise.
47143         * modules/xgetcwd (Makefile.am): Likewise.
47144         * modules/xnanosleep (Makefile.am): Likewise.
47145         * modules/xreadlink (Makefile.am): Likewise.
47146         * modules/xstrtod (Makefile.am): Likewise.
47147         * modules/xstrtol (Makefile.am): Likewise.
47148         * modules/xstrtold (Makefile.am): Likewise.
47149         * modules/yesno (Makefile.am): Likewise.
47150         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
47151
47152 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47153
47154         * modules/error (Makefile.am): Distribute files through
47155         EXTRA_DIST, not lib_SOURCES.
47156
47157 2006-10-12  Eric Blake  <ebb9@byu.net>
47158
47159         * modules/error (Makefile.am): Distribute files in /lib.
47160         * modules/obstack (Makefile.am): Likewise.
47161
47162 2006-10-12  Bruno Haible  <bruno@clisp.org>
47163
47164         * modules/acl (Makefile.am): Distribute all files in lib/ through
47165         EXTRA_DIST.
47166         * modules/arcfour (Makefile.am): Likewise.
47167         * modules/arctwo (Makefile.am): Likewise.
47168         * modules/argmatch (Makefile.am): Likewise.
47169         * modules/argz (Makefile.am): Likewise.
47170         * modules/atexit (Makefile.am): Likewise.
47171         * modules/backupfile (Makefile.am): Likewise.
47172         * modules/c-strtod (Makefile.am): Likewise.
47173         * modules/c-strtold (Makefile.am): Likewise.
47174         * modules/calloc (Makefile.am): Likewise.
47175         * modules/canon-host (Makefile.am): Likewise.
47176         * modules/canonicalize (Makefile.am): Likewise.
47177         * modules/chdir-long (Makefile.am): Likewise.
47178         * modules/chdir-safer (Makefile.am): Likewise.
47179         * modules/check-version (Makefile.am): Likewise.
47180         * modules/chown (Makefile.am): Likewise.
47181         * modules/cloexec (Makefile.am): Likewise.
47182         * modules/close-stream (Makefile.am): Likewise.
47183         * modules/closeout (Makefile.am): Likewise.
47184         * modules/crc (Makefile.am): Likewise.
47185         * modules/cycle-check (Makefile.am): Likewise.
47186         * modules/des (Makefile.am): Likewise.
47187         * modules/dirfd (Makefile.am): Likewise.
47188         * modules/dirname (Makefile.am): Likewise.
47189         * modules/dup2 (Makefile.am): Likewise.
47190         * modules/euidaccess (Makefile.am): Likewise.
47191         * modules/exclude (Makefile.am): Likewise.
47192         * modules/exitfail (Makefile.am): Likewise.
47193         * modules/fcntl-safer (Makefile.am): Likewise.
47194         * modules/file-type (Makefile.am): Likewise.
47195         * modules/fileblocks (Makefile.am): Likewise.
47196         * modules/filemode (Makefile.am): Likewise.
47197         * modules/filenamecat (Makefile.am): Likewise.
47198         * modules/fnmatch (Makefile.am): Likewise.
47199         * modules/fopen-safer (Makefile.am): Likewise.
47200         * modules/fpending (Makefile.am): Likewise.
47201         * modules/fprintftime (Makefile.am): Likewise.
47202         * modules/free (Makefile.am): Likewise.
47203         * modules/fsusage (Makefile.am): Likewise.
47204         * modules/ftruncate (Makefile.am): Likewise.
47205         * modules/fts (Makefile.am): Likewise.
47206         * modules/gc (Makefile.am): Likewise.
47207         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47208         * modules/getaddrinfo (Makefile.am): Likewise.
47209         * modules/getcwd (Makefile.am): Likewise.
47210         * modules/getdelim (Makefile.am): Likewise.
47211         * modules/getdomainname (Makefile.am): Likewise.
47212         * modules/getgroups (Makefile.am): Likewise.
47213         * modules/gethostname (Makefile.am): Likewise.
47214         * modules/gethrxtime (Makefile.am): Likewise.
47215         * modules/getline (Makefile.am): Likewise.
47216         * modules/getloadavg (Makefile.am): Likewise.
47217         * modules/getlogin_r (Makefile.am): Likewise.
47218         * modules/getopt (Makefile.am): Likewise.
47219         * modules/getpass (Makefile.am): Likewise.
47220         * modules/getpass-gnu (Makefile.am): Likewise.
47221         * modules/getsubopt (Makefile.am): Likewise.
47222         * modules/gettime (Makefile.am): Likewise.
47223         * modules/gettimeofday (Makefile.am): Likewise.
47224         * modules/getugroups (Makefile.am): Likewise.
47225         * modules/getusershell (Makefile.am): Likewise.
47226         * modules/glob (Makefile.am): Likewise.
47227         * modules/group-member (Makefile.am): Likewise.
47228         * modules/hard-locale (Makefile.am): Likewise.
47229         * modules/hash (Makefile.am): Likewise.
47230         * modules/hmac-md5 (Makefile.am): Likewise.
47231         * modules/hmac-sha1 (Makefile.am): Likewise.
47232         * modules/human (Makefile.am): Likewise.
47233         * modules/idcache (Makefile.am): Likewise.
47234         * modules/imaxabs (Makefile.am): Likewise.
47235         * modules/imaxdiv (Makefile.am): Likewise.
47236         * modules/inet_ntop (Makefile.am): Likewise.
47237         * modules/inet_pton (Makefile.am): Likewise.
47238         * modules/inttostr (Makefile.am): Likewise.
47239         * modules/isapipe (Makefile.am): Likewise.
47240         * modules/lchown (Makefile.am): Likewise.
47241         * modules/long-options (Makefile.am): Likewise.
47242         * modules/lstat (Makefile.am): Likewise.
47243         * modules/malloc (Makefile.am): Likewise.
47244         * modules/mathl (Makefile.am): Likewise.
47245         * modules/mbchar (Makefile.am): Likewise.
47246         * modules/md2 (Makefile.am): Likewise.
47247         * modules/md4 (Makefile.am): Likewise.
47248         * modules/md5 (Makefile.am): Likewise.
47249         * modules/memcasecmp (Makefile.am): Likewise.
47250         * modules/memchr (Makefile.am): Likewise.
47251         * modules/memcmp (Makefile.am): Likewise.
47252         * modules/memcoll (Makefile.am): Likewise.
47253         * modules/memcpy (Makefile.am): Likewise.
47254         * modules/memmem (Makefile.am): Likewise.
47255         * modules/memmove (Makefile.am): Likewise.
47256         * modules/mempcpy (Makefile.am): Likewise.
47257         * modules/memrchr (Makefile.am): Likewise.
47258         * modules/memset (Makefile.am): Likewise.
47259         * modules/memxor (Makefile.am): Likewise.
47260         * modules/mkancesdirs (Makefile.am): Likewise.
47261         * modules/mkdir (Makefile.am): Likewise.
47262         * modules/mkdir-p (Makefile.am): Likewise.
47263         * modules/mkdtemp (Makefile.am): Likewise.
47264         * modules/mkstemp (Makefile.am): Likewise.
47265         * modules/mktime (Makefile.am): Likewise.
47266         * modules/modechange (Makefile.am): Likewise.
47267         * modules/mountlist (Makefile.am): Likewise.
47268         * modules/nanosleep (Makefile.am): Likewise.
47269         * modules/openat (Makefile.am): Likewise.
47270         * modules/pagealign_alloc (Makefile.am): Likewise.
47271         * modules/physmem (Makefile.am): Likewise.
47272         * modules/poll (Makefile.am): Likewise.
47273         * modules/posixtm (Makefile.am): Likewise.
47274         * modules/posixver (Makefile.am): Likewise.
47275         * modules/putenv (Makefile.am): Likewise.
47276         * modules/quote (Makefile.am): Likewise.
47277         * modules/quotearg (Makefile.am): Likewise.
47278         * modules/raise (Makefile.am): Likewise.
47279         * modules/read-file (Makefile.am): Likewise.
47280         * modules/readline (Makefile.am): Likewise.
47281         * modules/readlink (Makefile.am): Likewise.
47282         * modules/readtokens (Makefile.am): Likewise.
47283         * modules/readutmp (Makefile.am): Likewise.
47284         * modules/realloc (Makefile.am): Likewise.
47285         * modules/regex (Makefile.am): Likewise.
47286         * modules/rename (Makefile.am): Likewise.
47287         * modules/rename-dest-slash (Makefile.am): Likewise.
47288         * modules/rijndael (Makefile.am): Likewise.
47289         * modules/rmdir (Makefile.am): Likewise.
47290         * modules/rpmatch (Makefile.am): Likewise.
47291         * modules/safe-read (Makefile.am): Likewise.
47292         * modules/safe-write (Makefile.am): Likewise.
47293         * modules/same (Makefile.am): Likewise.
47294         * modules/save-cwd (Makefile.am): Likewise.
47295         * modules/savedir (Makefile.am): Likewise.
47296         * modules/setenv (Makefile.am): Likewise.
47297         * modules/settime (Makefile.am): Likewise.
47298         * modules/sha1 (Makefile.am): Likewise.
47299         * modules/sig2str (Makefile.am): Likewise.
47300         * modules/snprintf (Makefile.am): Likewise.
47301         * modules/stdlib-safer (Makefile.am): Likewise.
47302         * modules/stpcpy (Makefile.am): Likewise.
47303         * modules/stpncpy (Makefile.am): Likewise.
47304         * modules/strcase (Makefile.am): Likewise.
47305         * modules/strcasestr (Makefile.am): Likewise.
47306         * modules/strchrnul (Makefile.am): Likewise.
47307         * modules/strcspn (Makefile.am): Likewise.
47308         * modules/strdup (Makefile.am): Likewise.
47309         * modules/strerror (Makefile.am): Likewise.
47310         * modules/strftime (Makefile.am): Likewise.
47311         * modules/strndup (Makefile.am): Likewise.
47312         * modules/strnlen (Makefile.am): Likewise.
47313         * modules/strpbrk (Makefile.am): Likewise.
47314         * modules/strsep (Makefile.am): Likewise.
47315         * modules/strstr (Makefile.am): Likewise.
47316         * modules/strtod (Makefile.am): Likewise.
47317         * modules/strtoimax (Makefile.am): Likewise.
47318         * modules/strtok_r (Makefile.am): Likewise.
47319         * modules/strtol (Makefile.am): Likewise.
47320         * modules/strtoll (Makefile.am): Likewise.
47321         * modules/strtoul (Makefile.am): Likewise.
47322         * modules/strtoull (Makefile.am): Likewise.
47323         * modules/strtoumax (Makefile.am): Likewise.
47324         * modules/strverscmp (Makefile.am): Likewise.
47325         * modules/time_r (Makefile.am): Likewise.
47326         * modules/timegm (Makefile.am): Likewise.
47327         * modules/tmpfile-safer (Makefile.am): Likewise.
47328         * modules/unistd-safer (Makefile.am): Likewise.
47329         * modules/unlinkdir (Makefile.am): Likewise.
47330         * modules/userspec (Makefile.am): Likewise.
47331         * modules/utime (Makefile.am): Likewise.
47332         * modules/utimecmp (Makefile.am): Likewise.
47333         * modules/utimens (Makefile.am): Likewise.
47334         * modules/vasnprintf (Makefile.am): Likewise.
47335         * modules/vasprintf (Makefile.am): Likewise.
47336         * modules/vsnprintf (Makefile.am): Likewise.
47337         * modules/xalloc (Makefile.am): Likewise.
47338         * modules/xgetcwd (Makefile.am): Likewise.
47339         * modules/xnanosleep (Makefile.am): Likewise.
47340         * modules/xreadlink (Makefile.am): Likewise.
47341         * modules/xstrtod (Makefile.am): Likewise.
47342         * modules/xstrtol (Makefile.am): Likewise.
47343         * modules/xstrtold (Makefile.am): Likewise.
47344         * modules/yesno (Makefile.am): Likewise.
47345
47346 2006-10-12  Jim Meyering  <jim@meyering.net>
47347
47348         * m4/getloadavg.m4: Revert the change below.
47349
47350         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
47351         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
47352         fail with a symlink, which is what coreutils' ./bootstrap now
47353         creates by default.
47354
47355 2006-10-12  Bruno Haible  <bruno@clisp.org>
47356
47357         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
47358         mingw.
47359         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
47360         MSVC and mingw explicitly.
47361
47362 2006-10-11  Simon Josefsson  <jas@extundo.com>
47363             Bruno Haible  <bruno@clisp.org>
47364
47365         Add support for multiple gnulib-tool invocations in the scope of a
47366         single configure.ac file.
47367         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
47368         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
47369         with the same contents as the _LIBADD variable.
47370         (func_emit_initmacro_start, func_emit_initmacro_end,
47371         func_emit_initmacro_done): New functions.
47372         (func_import, func_create_testdir): Invoke them. Allow the identifiers
47373         gl_LIBOBJS and gl_LTLIBOBJS.
47374
47375 2006-10-11  Bruno Haible  <bruno@clisp.org>
47376
47377         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
47378         (func_create_testdir): Don't create po/Makefile.am, don't invoke
47379         autoreconf. Instead, invoke autopoint explicitly but move back the
47380         *.m4 files from gnulib.
47381
47382 2006-10-11  Bruno Haible  <bruno@clisp.org>
47383
47384         * gnulib-tool (func_usage): Make module names after --create-testdir
47385         optional.
47386         (func_create_testdir): If no module was specified, use nearly all
47387         modules.
47388
47389 2006-10-12  Jim Meyering  <jim@meyering.net>
47390
47391         Big performance improvement for fts-based tools that use FTS_NOSTAT.
47392         Avoid spurious inode-mismatch problems on non-POSIX file systems.
47393         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
47394         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
47395         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
47396         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
47397         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
47398         (fts_set_stat_required): New function.
47399         (fts_open): Defer the calls to fts_stat, if possible or requested.
47400         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
47401         into fts_stat itself.
47402         (fts_read): Perform any required (deferred) fts_stat call.
47403         (fts_build): Likewise, for the directory we're about to open and read.
47404         In the readdir loop, carefully decide whether each entry will require
47405         an eventual call to fts_stat, using dirent.d_type info if available.
47406         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
47407         a command line argument into this function.  Update all callers.
47408         Map a return value of FTS_DOT to FTS_D for a command line argument.
47409         * modules/fts (Depends-on): Add d-type.  Alphabetize.
47410         Thanks to Miklos Szeredi for his tenacity and for the initial
47411         bug report about "find" failing on a FUSE-based file system.
47412
47413         * lib/fts.c (fts_open): Use consistent indentation.
47414
47415 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47416
47417         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
47418         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
47419         reported by Jim Meyering.  All uses of cache variables renamed
47420         to match Autoconf's.
47421         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
47422         the other one.
47423
47424         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47425         Fix misspelling in diagnostic.
47426
47427 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47428
47429         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
47430         defined.  Problem reported by Matthew Woehlke.
47431
47432         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
47433         Add support for Tandem NonStop R series.
47434         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
47435         Use new macro.
47436
47437         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
47438         (has_trailing_slash): Omit size arg; all callers changed.
47439         Omit 'inline', since it doesn't help performance and we'd
47440         need to configure it.
47441         Don't count //, ///, etc. as having a trailing slash.
47442         As a side effect, this removes a C99ism reported by Matthew Woehlke.
47443         (rpl_rename_dest_slash): On failure, use rename's errno rather
47444         than (in some cases) an incorrect or junk errno.
47445         Simplify code by removing need to compute length; this does
47446         cause it to make two passes instead of one over the file name,
47447         but it's worth it.
47448
47449         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
47450         change, since Autoconf's version may no longer be appropriate now
47451         that we are using CVS Autoconf's version.  Add support for Tandem.
47452
47453 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47454             Bruno Haible  <bruno@clisp.org>
47455
47456         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
47457         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
47458         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
47459         gl_AC_TYPE_LONG_LONG.
47460
47461         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
47462         instead of HAVE_LONG_LONG.
47463         * lib/printf-args.c (printf_fetchargs): Likewise.
47464         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47465         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47466         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
47467         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
47468         gl_AC_TYPE_LONG_LONG.
47469
47470 2006-10-11  Bruno Haible  <bruno@clisp.org>
47471
47472         * m4/longlong.m4: Add comments.
47473         * m4/ulonglong.m4: Likewise.
47474
47475 2006-10-10  Bruno Haible  <bruno@clisp.org>
47476
47477         Make it possible to #define stpcpy, strdup to aliases.
47478         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
47479         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
47480
47481 2006-10-10  Bruno Haible  <bruno@clisp.org>
47482
47483         Make it possible to #define gcd to an alias.
47484         * lib/gcd.c: Include config.h.
47485
47486 2006-10-10  Bruno Haible  <bruno@clisp.org>
47487
47488         Make it possible to #define c_isascii to an alias.
47489         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
47490         defined. Undefine the macros before defining them, to avoid gcc
47491         warnings.
47492         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
47493         define NO_C_CTYPE_MACROS early.
47494
47495 2006-10-10  Bruno Haible  <bruno@clisp.org>
47496
47497         Make it possible to #define set_program_name to an alias.
47498         * lib/progname.c: Don't undefine set_program_name; instead, undefine
47499         ENABLE_RELOCATABLE early.
47500
47501 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47502
47503         Port to Tandem NSK OSS, which has 64-bit signed int but at most
47504         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
47505         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
47506         More generally, don't assume that 64-bit signed int is available
47507         if unsigned int is, and vice versa.
47508         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
47509         unsigned symbols, not on their signed counterparts.
47510         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
47511         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
47512         (UINT64_C, UINTMAX_C):
47513         Likewise.
47514         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
47515         unsigned counterparts.
47516         (Have_long_long, Unsigned): New macros.
47517         (Int): Renamed from INT.
47518         (strtoimax): Use the new macros.
47519         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
47520         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
47521         * modules/inttypes (inttypes.h): Substitute
47522         HAVE_UNSIGNED_LONG_LONG_INT.
47523         * modules/stdint (stdint.h): Likewise.
47524         (Files): Add m4/ulonglong.m4.
47525
47526 2006-10-10  Bruno Haible  <bruno@clisp.org>
47527
47528         Fix a gcc -Wshadow warning.
47529         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
47530         to 'bucket'.
47531         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47532         gl_linked_indexof_from_to): Likewise.
47533         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
47534         Likewise.
47535         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
47536         Likewise.
47537         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
47538         Reported by Eric Blake.
47539
47540 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
47541
47542         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
47543         for NetBSD.  Problem reported by Bruno Haible.
47544
47545 2006-10-09  Jim Meyering  <jim@meyering.net>
47546
47547         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
47548         Patch from Bruno Haible.
47549
47550 2006-10-09  Jim Meyering  <jim@meyering.net>
47551
47552         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
47553         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
47554         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
47555
47556 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47557
47558         Don't include <config.h> twice; this doesn't work in some cases,
47559         e.g., when config.h has "#define intmax_t long long int" and
47560         we include <config.h>, <inttypes.h>, <config.h> in that order.
47561         Problem reported by Matthew Woehlke in:
47562         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
47563         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
47564         * lib/fts-cycle.c: Don't include config.h.
47565         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
47566         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
47567         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
47568         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
47569         inttypes.h.
47570         * lib/xstrtoumax.c: Likewise.
47571         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47572         __strtol and the like, so that this module is more like its siblings.
47573         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
47574         Remove; no longer needed now that we assume gnulib inttypes.h.
47575
47576 2006-10-08  Bruno Haible  <bruno@clisp.org>
47577
47578         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
47579         option.
47580
47581 2006-10-07  Jim Meyering  <jim@meyering.net>
47582
47583         * modules/inttypes (inttypes.h): Revert what seems to have been
47584         an inadvertent part of today's change: use "|", not "/" in the
47585         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47586
47587 2006-10-07  Bruno Haible  <bruno@clisp.org>
47588
47589         * modules/sublist: New file.
47590
47591 2006-10-07  Bruno Haible  <bruno@clisp.org>
47592
47593         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47594         * modules/argz (argz.h): Likewise.
47595         * modules/arpa_inet (arpa/inet.h): Likewise.
47596         * modules/byteswap (byteswap.h): Likewise.
47597         * modules/configmake (configmake.h): Likewise.
47598         * modules/fcntl (fcntl.h): Likewise.
47599         * modules/fnmatch (fnmatch.h): Likewise.
47600         * modules/getopt (getopt.h): Likewise.
47601         * modules/glob (glob.h): Likewise.
47602         * modules/inttypes (inttypes.h): Likewise.
47603         * modules/netinet_in (netinet/in.h): Likewise.
47604         * modules/poll (poll.h): Likewise.
47605         * modules/stdbool (stdbool.h): Likewise.
47606         * modules/stdint (stdint.h): Likewise.
47607         * modules/sys_select (sys/select.h): Likewise.
47608         * modules/sys_socket (sys/socket.h): Likewise.
47609         * modules/sys_stat (sys/stat.h): Likewise.
47610         * modules/sysexits (sysexits.h): Likewise.
47611         * modules/unistd (unistd.h): Likewise.
47612         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47613         Add a "DO NOT EDIT" comment to the generated file.
47614         (func_import): Likewise for gnulib-comp.m4.
47615
47616 2006-10-07  Bruno Haible  <bruno@clisp.org>
47617
47618         * lib/gl_sublist.h: New file.
47619         * lib/gl_sublist.c: New file.
47620
47621 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47622
47623         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47624         name (relative to the original working directory) and the file
47625         name component (relative to the temporary working directory).  All
47626         callers changed.
47627         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47628         * lib/mkdir-p.c (make_dir_parents): Likewise.
47629         * lib/mkdir-p.h (make_dir_parents): Likewise.
47630
47631 2006-10-06  Eric Blake  <ebb9@byu.net>
47632
47633         Define several macros for use by the clean-temp module.
47634         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47635         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47636         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47637
47638         * lib/clean-temp.h (close_stream_temp): New declaration.
47639         * lib/clean-temp.c (includes): Pull in headers according to what
47640         other modules are in use.
47641         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47642
47643 2006-10-06  Bruno Haible  <bruno@clisp.org>
47644
47645         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47646         instead of fopen, fwriteerror.
47647
47648 2006-10-06  Bruno Haible  <bruno@clisp.org>
47649
47650         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47651         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47652         int.
47653         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47654         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47655         Return an error indicator.
47656         Suggested by Eric Blake.
47657
47658 2006-10-06  Bruno Haible  <bruno@clisp.org>
47659
47660         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47661         Reported by Eric Blake.
47662
47663 2006-10-06  Bruno Haible  <bruno@clisp.org>
47664
47665         * modules/closeout (Description): Mention stderr too.
47666
47667 2006-10-06  Bruno Haible  <bruno@clisp.org>
47668         and Paul Eggert  <eggert@cs.ucla.edu>
47669
47670         * lib/closeout.c (close_stdout): Also close stderr.
47671         * lib/closeout.h: Update comment.
47672
47673 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47674
47675         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47676         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47677         * lib/dirchownmod.c: Include lchown.h.
47678         * lib/lchown.c: Don't include files that lchown.h now includes.
47679         Don't declare chown, since lchown.h now does that.
47680         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47681         (lchown): Define to rpl_chown if lchown is declared but
47682         does not exist.  Declare using a prototype if lchown is not
47683         declared.  Add a copyright notice.
47684         * lib/mkstemp.h: Include <unistd.h>.
47685         * lib/openat.c: Include lchown.h.
47686
47687         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47688         we now test for that separately.
47689         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47690         rather than O_NOFOLLOW, when testing whether it's possible to
47691         avoid a race condition reliably.
47692         * lib/savewd.c (savewd_chdir): Likewise.
47693
47694         Remove macros that are no longer needed now that stdint.h is
47695         reliable.
47696         * lib/fsusage.c (UINTMAX_MAX): Remove.
47697         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47698         * lib/utimecmp.c (SIZE_MAX): Remove.
47699
47700         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47701
47702         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47703         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47704         O_NOATIME works.
47705
47706 2006-10-05  Bruno Haible  <bruno@clisp.org>
47707
47708         * lib/gl_list.h (gl_sortedlist_search_from_to,
47709         gl_sortedlist_indexof_from_to): New declarations.
47710         (gl_list_implementation): New fields sortedlist_search_from_to,
47711         sortedlist_indexof_from_to.
47712         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47713         inline functions.
47714         * lib/gl_list.c (gl_sortedlist_search_from_to,
47715         gl_sortedlist_indexof_from_to): New functions.
47716         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47717         function.
47718         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47719         (gl_array_sortedlist_search_from_to): New function.
47720         (gl_array_list_implementation): Update.
47721         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47722         function.
47723         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47724         (gl_carray_sortedlist_search_from_to): New function.
47725         (gl_carray_list_implementation): Update.
47726         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47727         gl_linked_sortedlist_indexof_from_to): New functions.
47728         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47729         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47730         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47731         gl_tree_sortedlist_indexof_from_to): New functions.
47732         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47733         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47734         Update.
47735         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47736         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47737         Update.
47738
47739 2006-10-05  Bruno Haible  <bruno@clisp.org>
47740
47741         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47742         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47743         (struct gl_list_implementation): Add fields search_from_to,
47744         indexof_from_to. Remove fields search, indexof.
47745         (gl_list_search): Use the search_from_to method.
47746         (gl_list_search_from, gl_list_search_from_to): New functions.
47747         (gl_list_indexof): Use the indexof_from_to method.
47748         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47749         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
47750         (gl_list_search_from, gl_list_search_from_to): New functions.
47751         (gl_list_indexof): Use the indexof_from_to method.
47752         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47753         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47754         gl_array_indexof. Add start_index, end_index arguments.
47755         (gl_array_search_from_to): Renamed from gl_array_search. Add
47756         start_index, end_index arguments.
47757         (gl_array_remove, gl_array_list_implementation): Update.
47758         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47759         gl_carray_indexof. Add start_index, end_index arguments.
47760         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47761         start_index, end_index arguments.
47762         (gl_carray_remove, gl_carray_list_implementation): Update.
47763         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47764         gl_linked_search. Add start_index, end_index arguments.
47765         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47766         start_index, end_index arguments.
47767         (gl_linked_remove): Update.
47768         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47769         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47770         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47771         field to 'size_t'.
47772         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47773         gl_tree_search. Add start_index, end_index arguments.
47774         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47775         start_index, end_index arguments.
47776         (gl_tree_remove): Update.
47777         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47778         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47779         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47780         function.
47781         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47782         gl_tree_search. Add start_index, end_index arguments.
47783         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47784         start_index, end_index arguments.
47785         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47786         Update.
47787         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47788
47789 2006-10-05  Bruno Haible  <bruno@clisp.org>
47790
47791         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47792
47793         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47794         fwriteerror_temp): New declarations.
47795         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47796         (descriptors): New variable.
47797         (cleanup): First, close the descriptors.
47798         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47799         fclose_temp, fwriteerror_temp): New functions.
47800
47801 2006-10-04  Jim Meyering  <jim@meyering.net>
47802
47803         * lib/fts.c (fts_open): Tiny comment change.
47804
47805 2006-10-04  Bruno Haible  <bruno@clisp.org>
47806
47807         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47808         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47809         gl_LOCK_BODY.
47810         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47811         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47812         gl_LOCK_EARLY_BODY.
47813         (gl_LOCK): Require gl_LOCK_BODY.
47814
47815 2006-10-04  Bruno Haible  <bruno@clisp.org>
47816
47817         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47818         (gl_oset_search_atleast): New declaration.
47819         (struct gl_oset_implementation): Add field 'search_atleast'.
47820         (gl_oset_search_atleast): New inline function.
47821         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47822         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47823         (gl_array_oset_implementation): Update.
47824         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47825         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47826         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47827
47828 2006-10-04  Bruno Haible  <bruno@clisp.org>
47829
47830         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47831
47832 2006-10-03  Bruno Haible  <bruno@clisp.org>
47833
47834         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
47835         from gl_avltreehash_list_implementation.
47836
47837 2006-10-03  Bruno Haible  <bruno@clisp.org>
47838
47839         * lib/gl_oset.c (gl_oset_add): Fix return type.
47840
47841 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
47842
47843         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
47844
47845 2006-10-02  Eric Blake  <ebb9@byu.net>
47846
47847         * modules/strnlen (Depends-on): Add extensions.
47848
47849 2006-10-02  Eric Blake  <ebb9@byu.net>
47850
47851         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
47852         definition in 2.60+.
47853
47854 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
47855
47856         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
47857         checks.
47858
47859 2006-10-02  Bruno Haible  <bruno@clisp.org>
47860
47861         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
47862         to the AUTOMAKE_OPTIONS.
47863         Reported by Jim Meyering.
47864
47865 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47866
47867         Work around bug in Solaris 10 /proc file system:
47868         /proc/self/fd/NNN/.. isn't the parent directory of
47869         the directory whose file descriptor is NNN.  This needs to
47870         be worked around at run time, not compile time, since a
47871         program might be built on Solaris 8, where things work, and
47872         run on Solaris 10.
47873         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
47874         to use the following interface instead:
47875         (OPENAT_BUFFER_SIZE): New macro.
47876         (openat_proc_name): New function.
47877         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
47878         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
47879         Likewise.
47880         * lib/openat-proc.c: New file.
47881         * modules/openat (Files): Add lib/openat-proc.c.
47882         (Depends-on): Add same-inode, stdbool.
47883         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
47884
47885 2006-09-29  Bruno Haible  <bruno@clisp.org>
47886
47887         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
47888         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
47889         argument. Set stdout_closed before testing for ferror, not after.
47890         (fwriteerror, fwriteerror_no_ebadf): New functions.
47891
47892 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47893
47894         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
47895
47896 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
47897
47898         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
47899         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
47900
47901 2006-09-28  Jim Meyering  <jim@meyering.net>
47902
47903         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
47904         Include <unistd.h>.
47905
47906 2006-09-28  Bruno Haible  <bruno@clisp.org>
47907
47908         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
47909         * modules/linkedhash-list (Depends-on): Likewise.
47910         * modules/rbtreehash-list (Depends-on): Likewise.
47911
47912 2006-09-28  Bruno Haible  <bruno@clisp.org>
47913
47914         * lib/strndup.h: Simplify the redefinition of strndup.
47915         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
47916         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
47917
47918 2006-09-28  Bruno Haible  <bruno@clisp.org>
47919
47920         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
47921         * lib/gl_linkedhash_list.c: Likewise.
47922         * lib/gl_rbtreehash_list.c: Likewise.
47923
47924 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47925
47926         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
47927         getaddrinfo.
47928
47929         * lib/__fpending.h: Don't include <stdio_ext.h> unless
47930         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
47931         it causes <stdio_ext.h> to cause a compile-time error.
47932         Problem reported by Nelson H. F. Beebe.
47933         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
47934         of HAVE_DECL___PENDING.
47935
47936         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
47937         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
47938         declaration.
47939
47940 2006-09-27  Jim Meyering  <jim@meyering.net>
47941
47942         This file could end up with a definition for a function
47943         named __strndup, rather than rpl_strndup on a system with
47944         incomplete weak_alias support.
47945         * lib/strndup.c (strndup): Rename from __strndup.
47946         Remove #defines that used to map __strndup to strndup.
47947         Don't use K&R prototypes.
47948         Remove LIBC-related code, since this file is not sync'd with glibc.
47949         * lib/strndup.h: Revamp, accordingly.
47950         * m4/strndup.m4: Modernize.
47951
47952 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47953
47954         * modules/savewd (Depends-on): Add 'raise'.
47955         * lib/savewd.c: Include <signal.h>, for 'raise'.
47956
47957 2006-09-26  Jim Meyering  <jim@meyering.net>
47958
47959         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
47960         when we detect Darwin 8.7.0's acl_get_file bug.
47961         Rearrange to perform the new (below) run-test while $LIBS
47962         contains any acl-related library.  Set USE_ACL at the end.
47963         (gl_ACL_GET_FILE): New function.
47964
47965 2006-09-26  Eric Blake  <ebb9@byu.net>
47966
47967         * lib/verror.c: Include <config.h> unconditionally.
47968
47969 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
47970
47971         * modules/clock-time (Maintainer): Add self.
47972         * modules/getlogin_r (Depends-on): Add extensions.
47973
47974 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47975
47976         * modules/clock-time: New module.
47977         * modules/nanosleep (Depends-on): Add clock-time.
47978         * modules/gethrxtime (Depends-on): Likewise.
47979         * modules/gettime (Depends-on): Likewise.
47980         * modules/settime (Depends-on): Likewise.
47981
47982         * modules/fts-lgpl: Depend on openat.
47983         * modules/mkancesdirs: Depend on savewd.
47984         * modules/mkdir-p: Likewise.
47985
47986 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47987
47988         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
47989
47990         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
47991         `gl_have_arbitrary_file_name_length_limit' to
47992         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
47993         actually works between configure runs.
47994
47995 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47996             Bruno Haible  <bruno@clisp.org>
47997
47998         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
47999
48000 2006-09-25  Jim Meyering  <jim@meyering.net>
48001
48002         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
48003         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
48004
48005 2006-09-25  Eric Blake  <ebb9@byu.net>
48006
48007         * gnulib-tool (func_import, func_create_testdir): Fix typos in
48008         exec's in 2006-09-18 patch when shuffling fds.
48009
48010 2006-09-25  Bruno Haible  <bruno@clisp.org>
48011
48012         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
48013         Reported by Jim Meyering.
48014
48015 2006-09-24  Jim Meyering  <jim@meyering.net>
48016
48017         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
48018         compare a pointer against a literal "0".  That caused failures with
48019         at least HP-UX's hpcc.
48020
48021 2006-09-22  Simon Josefsson  <jas@extundo.com>
48022
48023         * modules/gc-sha1:
48024         * modules/gc-md4:
48025         * modules/gc-hmac-sha1:
48026         * modules/gc-hmac-md5:
48027         * modules/gc-des:
48028         * modules/gc-arcfour: Distribute more files.
48029
48030 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48031
48032         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
48033         (gl_linked_iterator_from_to): Initialize struct completely.
48034         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
48035         (gl_tree_iterator_from_to): Likewise
48036         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
48037         * lib/gl_array_list.c [lint] (gl_array_iterator)
48038         (gl_array_iterator_from_to): Likewise.
48039         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
48040         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
48041         (gl_carray_iterator_from_to): Likewise.
48042
48043         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
48044         * lib/md4.c (md4_process_block): Remove unused variable.
48045         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
48046         parentheses for clarity.
48047
48048 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48049
48050         * modules/bison-i18n (Depends-on): Add gettext.
48051
48052 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48053
48054         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
48055         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
48056         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
48057         also add missing comma that caused broken test.
48058         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
48059         stdlib.h, for `abort'.
48060         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
48061         variables.
48062         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
48063         include unistd.h if present, for `rmdir'.
48064         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
48065         variables.
48066         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
48067         in the process include standard headers for prototypes.
48068         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
48069         gets declared on GNU/Linux.
48070         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
48071         unistd.h, for `rmdir'.
48072         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
48073
48074         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
48075         always true.
48076         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
48077
48078         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
48079
48080 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48081
48082         * gnulib-tool (func_version): Create output all at once.  This
48083         may help avoid triggering unnecessary SIGPIPEs, and at any
48084         rate it doesn't hurt.
48085
48086 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48087             Bruno Haible  <bruno@clisp.org>
48088
48089         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
48090         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48091         * m4/signed.m4 (bh_C_SIGNED): Likewise.
48092
48093         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
48094         (gl_FUNC_VASPRINTF): Invoke it.
48095
48096 2006-09-22  Bruno Haible  <bruno@clisp.org>
48097
48098         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
48099         getloadavg.c as first argument.
48100
48101 2006-09-22  Bruno Haible  <bruno@clisp.org>
48102
48103         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
48104         at the beginning of the gl_INIT macro.
48105         * modules/getloadavg (configure.ac): Pass $gl_source_base to
48106         gl_GETLOADAVG.
48107
48108 2006-09-22  Bruno Haible  <bruno@clisp.org>
48109
48110         * gnulib-tool (func_create_megatestdir): Don't include the config-h
48111         module.
48112         Suggested by Ralf Wildenhues.
48113
48114 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48115
48116         Import this patch from libc:
48117
48118         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
48119
48120         * lib/regex_internal.c (re_string_reconstruct): Handle
48121         offset < pstr->valid_raw_len && pstr->offsets_needed case.
48122         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
48123         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
48124         re_string_context_at.
48125
48126         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
48127         now requires it.
48128         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
48129         gl_REGEX now does it for us.
48130         (gl_REGEX): Add test taken from
48131         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
48132
48133         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
48134         Check that large offsets work.  Modernize Autoconf usages.
48135         Prefer "yes" to mean a good thing rather than a bad.
48136         Don't put "#define mkstemp" in config.h, as this might interfere
48137         with standard system headers that "#define mkstemp mkstemp64".
48138
48139         * modules/mkstemp (Depends-on): Add extensions, so that
48140         mkstemp is visible on some platforms.
48141         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
48142         (Include): Change to "mkstemp.h" from <stdlib.h>.
48143         (Files): Add mkstemp.h.
48144
48145         * lib/mkstemp.h: New file, since some standard headers
48146         #define mkstemp.
48147         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
48148         Include "mkstemp.h".
48149         Make the _LIBC code resemble glibc original more,
48150         e.g., use K&R style.
48151         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
48152         (mkstemp): Remove, since mkstemp.h does this for us.
48153         * lib/stdlib--.h: Include mkstemp.h.
48154
48155         Import this patch from libc:
48156
48157         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48158
48159         * lib/tempname.c (__gen_tempname): Change attempts_min
48160         into a macro.  Use preprocessor to decide how to initialize
48161         attempts [Coverity CID 67].
48162
48163 2006-09-20  Bruno Haible  <bruno@clisp.org>
48164
48165         * lib/mkdtemp.c: Import from libc.
48166         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48167                 * sysdeps/posix/tempname.c (__gen_tempname): Change
48168                 attempts_min into a macro.  Use preprocessor to decide how to
48169                 initialize attempts [Coverity CID 67].
48170         2001-11-27  Paul Eggert  <eggert@twinsun.com>
48171                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
48172                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
48173
48174 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48175
48176         * gnulib-tool (func_exit): New function, to allow to pass the
48177         exit status portably through the trap.  Use everywhere.
48178         (--help, --version): Signal a write error.
48179         (trap): catch SIGPIPE, for write errors.
48180         Exit at the end of the trap, with the correct exit status.
48181
48182 2006-09-19  Karl Berry  <karl@gnu.org>
48183
48184         * doc/gnulib.texi: note about the license texinfo files.
48185
48186 2006-09-19  Eric Blake  <ebb9@byu.net>
48187
48188         * gnulib-tool: Avoid space-tab.
48189
48190 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48191
48192         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
48193         that prevented coreutils 6.1 from building.  Problem reported
48194         by Petter Reinholdtsen.
48195
48196 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48197
48198         * gnulib-tool (avoidlist): Fix typo that broke options like
48199         --avoid=lock that are used by coreutils bootstrap.
48200
48201 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
48202
48203         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
48204         more systematically.
48205
48206 2006-09-18  Jim Meyering  <jim@meyering.net>
48207
48208         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
48209
48210 2006-09-18  Bruno Haible  <bruno@clisp.org>
48211
48212         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
48213
48214 2006-09-18  Bruno Haible  <bruno@clisp.org>
48215
48216         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
48217         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
48218         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
48219         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
48220         * m4/gettext.m4: Require autoconf >= 2.52.
48221         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
48222         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
48223         of gl_cv_header_inttypes_h.
48224
48225 2006-09-18  Bruno Haible  <bruno@clisp.org>
48226
48227         * lib/javaversion.c: Include configmake.h.
48228
48229 2006-09-18  Bruno Haible  <bruno@clisp.org>
48230
48231         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
48232         avoid that the while loops be executed in a subshell.
48233
48234 2006-09-18  Bruno Haible  <bruno@clisp.org>
48235
48236         * MODULES.html.sh (func_module): Break long lines.
48237         Suggested by Bruce Korb <bkorb@gnu.org>.
48238
48239 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48240
48241         Speed up by a factor of 1.12.
48242         * gnulib-tool (nl): New variable.
48243         (func_import): Rewrite include directive extraction to only read each
48244         directive once.
48245
48246 2006-09-17  Bruno Haible  <bruno@clisp.org>
48247
48248         * modules/javaversion (Makefile.am): Remove DEFS setting.
48249         (Depends-on): Add configmake, for PKGDATADIR definition.
48250
48251 2006-09-17  Bruno Haible  <bruno@clisp.org>
48252
48253         * gnulib-tool (func_create_testdir): Rewrite all files at once.
48254
48255 2006-09-17  Bruno Haible  <bruno@clisp.org>
48256
48257         * gnulib-tool (func_append): New function, stolen from libtool.m4.
48258         (func_modules_transitive_closure, func_modules_add_dummy,
48259         func_modules_to_filelist, func_import, func_create_testdir,
48260         func_create_megatestdir, ...): Use it wherever possible.
48261         Suggested by Ralf Wildenhues.
48262
48263 2006-09-16  Karl Berry  <karl@gnu.org>
48264
48265         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
48266         to avoid sectioning errors.
48267         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
48268         [ifinfo]: blank line after @center-ed titles.
48269         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
48270         Spell FSF address consistently with others.
48271         (These changes approved by rms.)
48272
48273 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48274
48275         Speed up by a factor of 1.61.
48276         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
48277         already checked module names again.
48278
48279 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48280
48281         Speed up by a factor of 1.13.
48282         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
48283         for new_files, and the input to func_add_or_update.
48284
48285 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48286
48287         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
48288         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
48289
48290 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48291
48292         * modules/mkancesdirs (Depends-on): Add fcntl.
48293         * modules/savewd: New file.
48294         * MODULES.html.sh (File system functions): Add savewd.
48295
48296         * modules/configmake (Makefile.am): Add support for the
48297         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
48298
48299 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48300
48301         * m4/savewd.m4: New file.
48302
48303 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48304
48305         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
48306         (dirchownmod): New arg FD.  All callers changed.
48307         Use FD rather than opening the directory ourself, as opening is
48308         now the caller's responsibility.
48309         * lib/dirchownmod.h: Likewise.
48310         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
48311         hosts that require <sys/types.h> before <sys/stat.h>.  Include
48312         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
48313         (test_dir): Remove.
48314         (mkancesdirs): Return length of prefix of FILE that has already
48315         been made, or -2 if there is a child doing the work.  Redo
48316         algorithm so that it is O(N) rather than O(N**2).  Optimize away
48317         ".", and treat ".." specially since it might stray back into
48318         already-created areas.  Use a subprocess if necessary.  New arg
48319         WD; all users changed.  MAKE_DIR function should now return 1
48320         if it creates a directory that is not readable.  Return -2 if
48321         a child process is spun off.
48322         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
48323         Adjust signature to match code.
48324         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
48325         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
48326         all users changed.
48327         * lib/savewd.c, lib/savewd.h: New files.
48328
48329 2006-09-15  Jim Meyering  <jim@meyering.net>
48330
48331         * modules/rename-dest-slash: New module.
48332         * MODULES.html.sh (posix_compat): Add it here.
48333
48334         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
48335
48336 2006-09-15  Jim Meyering  <jim@meyering.net>
48337
48338         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
48339         file.
48340
48341         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
48342
48343 2006-09-15  Jim Meyering  <jim@meyering.net>
48344
48345         * lib/rename-dest-slash.c (has_trailing_slash): Use
48346         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
48347         (rpl_rename_dest_slash): Perform the cheaper trailing slash
48348         test before testing whether SRC is a directory.
48349         Suggestions from Bruno Haible.
48350
48351         Avoid a warning about an unused variable.
48352         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
48353         into the #ifdef block where it's used.
48354
48355         * lib/rename-dest-slash.c: New file.
48356
48357 2006-09-14  Bruno Haible  <bruno@clisp.org>
48358
48359         * lib/allocsa.c: Include <config.h> unconditionally.
48360         * lib/asnprintf.c: Likewise.
48361         * lib/asprintf.c: Likewise.
48362         * lib/c-strcasecmp.c: Likewise.
48363         * lib/c-strcasestr.c: Likewise.
48364         * lib/c-strncasecmp.c: Likewise.
48365         * lib/c-strstr.c: Likewise.
48366         * lib/classpath.c: Likewise.
48367         * lib/clean-temp.c: Likewise.
48368         * lib/concatpath.c: Likewise.
48369         * lib/copy-file.c: Likewise.
48370         * lib/csharpcomp.c: Likewise.
48371         * lib/csharpexec.c: Likewise.
48372         * lib/execute.c: Likewise.
48373         * lib/fatal-signal.c: Likewise.
48374         * lib/findprog.c: Likewise.
48375         * lib/fwriteerror.c: Likewise.
48376         * lib/gl_array_list.c: Likewise.
48377         * lib/gl_array_oset.c: Likewise.
48378         * lib/gl_avltree_list.c: Likewise.
48379         * lib/gl_avltree_oset.c: Likewise.
48380         * lib/gl_avltreehash_list.c: Likewise.
48381         * lib/gl_carray_list.c: Likewise.
48382         * lib/gl_linked_list.c: Likewise.
48383         * lib/gl_linkedhash_list.c: Likewise.
48384         * lib/gl_list.c: Likewise.
48385         * lib/gl_oset.c: Likewise.
48386         * lib/gl_rbtree_list.c: Likewise.
48387         * lib/gl_rbtree_oset.c: Likewise.
48388         * lib/gl_rbtreehash_list.c: Likewise.
48389         * lib/imaxabs.c: Likewise.
48390         * lib/imaxdiv.c: Likewise.
48391         * lib/javacomp.c: Likewise.
48392         * lib/javaexec.c: Likewise.
48393         * lib/javaversion.c: Likewise.
48394         * lib/linebreak.c: Likewise.
48395         * lib/localcharset.c: Likewise.
48396         * lib/lock.c: Likewise.
48397         * lib/mbchar.c: Likewise.
48398         * lib/mbswidth.c: Likewise.
48399         * lib/mkdtemp.c: Likewise.
48400         * lib/pipe.c: Likewise.
48401         * lib/printf-args.c: Likewise.
48402         * lib/printf-parse.c: Likewise.
48403         * lib/progname.c: Likewise.
48404         * lib/progreloc.c: Likewise.
48405         * lib/readlink.c: Likewise.
48406         * lib/sh-quote.c: Likewise.
48407         * lib/stpcpy.c: Likewise.
48408         * lib/stpncpy.c: Likewise.
48409         * lib/strcasecmp.c: Likewise.
48410         * lib/strcasestr.c: Likewise.
48411         * lib/strcspn.c: Likewise.
48412         * lib/striconv.c: Likewise.
48413         * lib/strncasecmp.c: Likewise.
48414         * lib/strnlen1.c: Likewise.
48415         * lib/strstr.c: Likewise.
48416         * lib/strtok_r.c: Likewise.
48417         * lib/tls.c: Likewise.
48418         * lib/tmpdir.c: Likewise.
48419         * lib/unicodeio.c: Likewise.
48420         * lib/unsetenv.c: Likewise.
48421         * lib/vasnprintf.c: Likewise.
48422         * lib/vasprintf.c: Likewise.
48423         * lib/wait-process.c: Likewise.
48424         * lib/xallocsa.c: Likewise.
48425         * lib/xsetenv.c: Likewise.
48426         * lib/xstriconv.c: Likewise.
48427
48428 2006-09-13  Simon Josefsson  <jas@extundo.com>
48429
48430         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
48431         that internally, suggested by Ralf Wildenhues
48432         <Ralf.Wildenhues@gmx.de>.
48433
48434 2006-09-13  Simon Josefsson  <jas@extundo.com>
48435
48436         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
48437         @LIBOBJS@.
48438         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48439
48440 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48441
48442         * lib/_fpending.c: Include <config.h> unconditionally, since we no
48443         longer worry about uses that don't define HAVE_CONFIG_H.
48444         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
48445         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
48446         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
48447         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
48448         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
48449         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
48450         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
48451         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
48452         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
48453         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
48454         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
48455         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
48456         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
48457         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
48458         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
48459         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
48460         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
48461         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
48462         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
48463         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
48464         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
48465         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
48466         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
48467         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
48468         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
48469         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
48470         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
48471         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
48472         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
48473         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
48474         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
48475         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
48476         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
48477         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
48478         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
48479         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
48480         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
48481         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
48482         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
48483         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
48484         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
48485         Likewise.
48486
48487 2006-09-13  Eric Blake  <ebb9@byu.net>
48488
48489         * lib/getopt.c: Fix typo in last commit.
48490
48491 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48492
48493         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
48494         dgettext.
48495
48496 2006-09-12  Jim Meyering  <jim@meyering.net>
48497
48498         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
48499         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
48500         Reported by Nelson H. F. Beebe.
48501
48502 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48503
48504         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
48505         program_invocation_name and program_invocation_short_name are
48506         initialized.
48507         * lib/argp-namefrob.h: Move declarations of program_invocation_name
48508         and program_invocation_short_name to argp.h, so they are visible
48509         to user programs.
48510         * lib/argp.h: Likewise
48511
48512 2006-09-10  Bruno Haible  <bruno@clisp.org>
48513
48514         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48515         m4/inttypes_h.m4, m4/uintmax_t.m4.
48516
48517 2006-09-10  Bruno Haible  <bruno@clisp.org>
48518
48519         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
48520         gl_AC_TYPE_UINTMAX_T.
48521
48522 2006-09-10  Bruno Haible  <bruno@clisp.org>
48523
48524         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
48525
48526 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48527
48528         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
48529         convention.  Text proposed by Bruno Haible.
48530         (struct argp_option): Document the use of N_() wrappers.
48531
48532         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
48533         '\v', and translate the two parts separately, instead of feeding
48534         the whole string to gettext.  This allows to exclude
48535         '\v' from the strings visible to the translator by writing doc
48536         strings as N_("..") "\v" N_("..").
48537
48538 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
48539
48540         * config/srclist.txt: Undo latest change; the bug was fixed.
48541
48542 2006-09-09  Bruno Haible  <bruno@clisp.org>
48543
48544         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
48545         assignments if building a library without libtool.
48546         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
48547         in func_emit_lib_Makefile_am.
48548         (func_import): When building a static library libfoo.a, arrange to
48549         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
48550         (func_create_testdir): Likewise.
48551         * modules/gc (configure.ac, Makefile.am): If building statically,
48552         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
48553         * modules/iconvme (configure.ac, Makefile.am): Likewise.
48554         * modules/striconv (configure.ac, Makefile.am): Likewise.
48555         Based on a suggestion by Ralf Wildenhues.
48556
48557 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48558
48559         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48560         Check for unistd.h too, since Autoconf doesn't assume POSIX.
48561         Also:
48562
48563         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48564         Add year_2050_test to catch glibc bug 2821
48565         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48566
48567         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48568         Prefer #ifdef to #if.
48569
48570         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
48571         Return from 'main' instead of calling 'exit'.
48572
48573 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48574
48575         * lib/mktime.c (guess_time_tm): Fix bug where mktime
48576         returned the maximum time_t value rather than (time_t) -1.
48577         Problem originally reported by William Bardwell
48578         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48579
48580         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48581         Moved to here ...
48582         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48583         ... from here.
48584
48585 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48586
48587         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
48588         2821 is fixed.
48589
48590 2006-09-08  Jim Meyering  <jim@meyering.net>
48591
48592         Don't make generated files read-only.  That would bother too many
48593         people.  However, do retain the ability to work when targets are
48594         read-only: remove the destination and temporary files before writing
48595         them (when generated via sed or echo), or by using the -f option for
48596         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48597         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48598         * modules/byteswap, modules/configmake, modules/fcntl:
48599         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48600         * modules/localcharset, modules/netinet_in, modules/poll:
48601         * modules/stdbool, modules/stdint, modules/sys_select:
48602         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48603
48604 2006-09-08  Jim Meyering  <jim@meyering.net>
48605
48606         Avoid new build failure on FreeBSD 6.0.
48607         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48608         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48609         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48610
48611 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48612
48613         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48614
48615 2006-09-07  Jim Meyering  <jim@meyering.net>
48616
48617         Fix global typo in last change: use chmod u-w, not chmod u-x.
48618         Spotted by Paul Eggert and Bruce Korb.
48619         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48620         * modules/byteswap, modules/configmake, modules/fcntl:
48621         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48622         * modules/localcharset, modules/netinet_in, modules/poll:
48623         * modules/stdbool, modules/stdint, modules/sys_select:
48624         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48625
48626 2006-09-06  Jim Meyering  <jim@meyering.net>
48627
48628         Make generated files be read-only.
48629         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48630         Ensure that each generated file is now read-only.
48631         * modules/argz: Likewise.
48632         * modules/arpa_inet: Likewise.
48633         * modules/byteswap: Likewise.
48634         * modules/configmake: Likewise.
48635         * modules/fcntl: Likewise.
48636         * modules/fnmatch: Likewise.
48637         * modules/getopt: Likewise.
48638         * modules/glob: Likewise.
48639         * modules/inttypes: Likewise.
48640         * modules/netinet_in: Likewise.
48641         * modules/poll: Likewise.
48642         * modules/stdbool: Likewise.
48643         * modules/stdint: Likewise.
48644         * modules/sys_select: Likewise.
48645         * modules/sys_socket: Likewise.
48646         * modules/sys_stat: Likewise.
48647         * modules/sysexits: Likewise.
48648         * modules/localcharset: Same as above, but continue using temporary
48649         file named "t-$@" (why different?) rather than the "$@-t" used
48650         everywhere else.
48651
48652         * modules/sysexits (Makefile.am): Replace literal occurrences
48653         of "sysexit.h" more readable, and more consistent, "$@".
48654
48655 2006-09-06  Bruno Haible  <bruno@clisp.org>
48656
48657         * modules/striconv: New file.
48658         * modules/xstriconv: New file.
48659         * MODULES.html.sh (Internationalization functions): Add striconv,
48660         xstriconv.
48661
48662 2006-09-06  Bruno Haible  <bruno@clisp.org>
48663
48664         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48665         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48666         not using libtool correctly.
48667
48668 2006-09-06  Bruno Haible  <bruno@clisp.org>
48669
48670         * lib/striconv.h: New file.
48671         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48672         iconvstring.c.
48673         * lib/xstriconv.h: New file.
48674         * lib/xstriconv.c: New file.
48675
48676 2006-09-06  Bruno Haible  <bruno@clisp.org>
48677
48678         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48679         lib_..._LDFLAGS.
48680
48681 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48682
48683         * lib/argz_.h: Sync from Libtool.
48684
48685         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48686                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48687
48688         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48689
48690 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48691
48692         * modules/trim: New file.
48693
48694 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48695
48696         * lib/trim.h: New file.
48697         * lib/trim.c: New file.
48698
48699 2006-09-05  Bruno Haible  <bruno@clisp.org>
48700
48701         * MODULES.html.sh (String handling): Add trim.
48702
48703 2006-09-04  Karl Berry  <karl@gnu.org>
48704
48705         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48706         until next release.
48707
48708 2006-09-03  Bruno Haible  <bruno@clisp.org>
48709
48710         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48711         correctly.
48712
48713 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48714
48715         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48716         not gl_GETLOADAVG.  Omit unneeded semicolons.
48717         Problems reported by Ralf Wildenhues in
48718         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48719         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48720         at the end, which is the usual gnulib style.
48721
48722         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48723         of doing all the work ourselves.
48724         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48725         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48726
48727 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48728
48729         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48730         Problem reported by Ralf Wildenhues in
48731         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48732
48733         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48734         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48735
48736 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48737
48738         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48739         yesterday's patch by changing test -n to test -z.
48740
48741 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48742
48743         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48744         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48745         the former is now obsolescent.
48746
48747         * modules/chdir-long (Depends-on): Add fcntl.
48748
48749 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48750
48751         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48752         obsolescent, and programs should use gnulib instead.
48753         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48754         but with prefixes changed.
48755
48756 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48757
48758         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48759         or stdbool.h, because they might not exist while configuring.
48760
48761         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48762         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48763         does that for us.
48764         (O_DIRECTORY): Remove.
48765
48766 2006-08-31  Eric Blake  <ebb9@byu.net>
48767
48768         * gnulib-tool: Don't let emacs change spaces to TAB.
48769
48770 2006-08-31  Bruno Haible  <bruno@clisp.org>
48771
48772         * gnulib-tool: When calling func_import more than once, do it in a
48773         subshell.
48774         Reported by Eric Blake <ebb9@byu.net>.
48775
48776 2006-08-31  Bruno Haible  <bruno@clisp.org>
48777
48778         * gnulib-tool (nl): Remove variable.
48779         (sed_transform_lib_file): Use more robust test for config-h module.
48780         (func_import): Fix typo in 2006-08-25 patch.
48781
48782 2006-08-31  Bruno Haible  <bruno@clisp.org>
48783
48784         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48785         specified, augment Makefile.am variables instead of assigning them.
48786
48787 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48788
48789         Work around a bug in both the Linux and SunOS 64-bit kernels:
48790         nanosleep mishandles sleeps for longer than 2**31 seconds.
48791         Problem reported by Frank v Waveren in
48792         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48793         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48794         Check for nanosleep bug.
48795         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48796
48797 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48798
48799         Work around a bug in both the Linux and SunOS 64-bit kernels:
48800         nanosleep mishandles sleeps for longer than 2**31 seconds.
48801         Problem reported by Frank v Waveren in
48802         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48803         * lib/nanosleep.c (BILLION): New constant.
48804         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48805         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48806         implementation.
48807
48808 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48809
48810         * modules/nanosleep (Depends-on): Add gettime.
48811
48812 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48813         and Simon Josefsson  <jas@extundo.com>
48814         and Oskar Liljeblad  <oskar@osk.mine.nu>
48815
48816         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48817         * gnulib-tool (func_import): New license type 'unmodifiable license
48818         text'.
48819         * modules/fdl: Use it.  Longer description.
48820         * module/gpl, module/lgpl: New files.
48821
48822 2006-08-30  Jim Meyering  <jim@meyering.net>
48823
48824         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48825         shadowing the parameter.
48826
48827 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48828
48829         Sync from Libtool:
48830
48831         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48832
48833         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
48834         sharing with gnulib.  Report by Eric Blake.
48835
48836 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48837
48838         * modules/isapipe: New file.
48839         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
48840
48841 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48842
48843         * modules/configmake (Makefile.am): Add a comment, and omit
48844         the CONFIGMAKE_ prefix from generated macro names.  Suggested
48845         by Bruno Haible.
48846
48847 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48848
48849         * m4/isapipe.m4: New file.
48850
48851 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48852
48853         * lib/isapipe.c, lib/isapipe.h: New files.
48854
48855 2006-08-29  Jim Meyering  <jim@meyering.net>
48856
48857         * modules/configmake (Makefile.am): Make configmake.h depend on
48858         Makefile.  Otherwise, a stale configmake.h could hang around.
48859
48860 2006-08-29  Eric Blake  <ebb9@byu.net>
48861
48862         * lib/error.c (error_at_line, print_errno_message): Match libc, after
48863         resolution of upstream bug 3044.
48864
48865 2006-08-29  Bruno Haible  <bruno@clisp.org>
48866
48867         * modules/localcharset (Depends-on): Add configmake.
48868         (Makefile.am): Remove setting of LIBDIR through DEFS.
48869
48870 2006-08-29  Bruno Haible  <bruno@clisp.org>
48871
48872         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
48873         defined.
48874
48875 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48876
48877         * modules/fcntl: New file.
48878         * modules/chdir-safer (Depends-on): Add fcntl.
48879         * modules/fts: Likewise.
48880         * modules/mkdir-p: Likewise.
48881
48882         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
48883         This undoes the most recent change, since we're now addressing the
48884         problem in a different way.
48885
48886         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
48887         into output, since the output might be called Makefile.am even
48888         if $makefile_name is something different.
48889         (func_import): Use $makefile_am rather than
48890         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
48891         empty.
48892
48893         * modules/inttypes (Files): Add m4/inttypes-h.m4.
48894
48895 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48896
48897         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
48898         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
48899         recent change to stdint.m4, since we're now addressing the problem in a
48900         different way.
48901
48902 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48903
48904         * m4/fcntl_h.m4: New file.
48905
48906 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48907
48908         * lib/fcntl_.h: New file.
48909         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
48910         the fcntl module.
48911         * lib/dirchownmod.c: Likewise.
48912         * lib/fts.c: Likewise.
48913
48914         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
48915         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
48916         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
48917         just before including <inttypes.h>, to avoid circular inclusion.
48918
48919 2006-08-28  Jim Meyering  <jim@meyering.net>
48920
48921         * doc/visibility.texi: Actually read and correct the grammar of the
48922         sentence affected by yesterday's change.
48923
48924 2006-08-28  Eric Blake  <ebb9@byu.net>
48925
48926         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
48927         needs wrapper.
48928
48929 2006-08-28  Eric Blake  <ebb9@byu.net>
48930
48931         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
48932
48933 2006-08-28  Eric Blake  <ebb9@byu.net>
48934
48935         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
48936
48937 2006-08-28  Bruno Haible  <bruno@clisp.org>
48938
48939         * modules/c-strstr: New file, from GNU gettext.
48940         * MODULES.html.sh (String handling): Add c-strstr.
48941
48942 2006-08-28  Bruno Haible  <bruno@clisp.org>
48943
48944         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
48945         macros.
48946         Reported by Eric Blake.
48947
48948 2006-08-28  Bruno Haible  <bruno@clisp.org>
48949
48950         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
48951         (VASNPRINTF): Return a string of length > INT_MAX without failing.
48952         * lib/vasprintf.c: Include errno.h, limits.h.
48953         (EOVERFLOW): New fallback definition.
48954         (vasprintf): Test here whether the string length is > INT_MAX.
48955         * lib/vsnprintf.c: Include errno.h, limits.h.
48956         (EOVERFLOW): New fallback definition.
48957         (vsnprintf): Fix bug when generated string was too long for the buffer.
48958         Test here whether the string length is > INT_MAX.
48959
48960 2006-08-28  Bruno Haible  <bruno@clisp.org>
48961
48962         * lib/inttypes_.h (SCNX*): Remove definitions.
48963         Reported by Eric Blake.
48964
48965 2006-08-28  Bruno Haible  <bruno@clisp.org>
48966
48967         * lib/c-strstr.h: New file, from GNU gettext.
48968         * lib/c-strstr.c: New file, from GNU gettext.
48969
48970 2006-08-28  Bruno Haible  <bruno@clisp.org>
48971
48972         * gnulib-tool: Reorder some statements.
48973
48974 2006-08-28  Bruno Haible  <bruno@clisp.org>
48975
48976         * gnulib-tool: New option --makefile-name.
48977         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
48978         $makefile_name.
48979         (func_import): Write $makefile_name to the cache file, and read it from
48980         there unless explicitly specified. Use $makefile_name as file name
48981         instead of Makefile.am. Adjust the recommendations accordingly.
48982
48983 2006-08-28  Bruno Haible  <bruno@clisp.org>
48984
48985         * gnulib-tool (func_verify_module): Check against misapplying patch.
48986
48987 2006-08-28  Bruno Haible  <bruno@clisp.org>
48988
48989         * gnulib-tool (func_relativize, func_relconcat): New functions.
48990         Give an error if --local-dir is given with --update.
48991         Remove trailing slashes from $local_gnulib_dir.
48992         (func_import): Store the relativized $local_gnulib_dir in
48993         gnulib-cache.m4, and read it from there if not specified explicitly.
48994
48995 2006-08-28  Bruno Haible  <bruno@clisp.org>
48996
48997         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
48998         is the current directory. Respect also $local_gnulib_dir.
48999
49000 2006-08-28  Bruno Haible  <bruno@clisp.org>
49001             Simon Josefsson  <jas@extundo.com>
49002
49003         BeOS portability.
49004         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
49005
49006 2006-08-27  Jim Meyering  <jim@meyering.net>
49007
49008         * doc/visibility.texi: Remove duplicate word: "pointer".
49009
49010 2006-08-26  Bruno Haible  <bruno@clisp.org>
49011
49012         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
49013         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
49014         (Makefile.am): Create inttypes.h from inttypes_.h.
49015         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
49016
49017         * modules/imaxabs: New file.
49018
49019         * modules/imaxdiv: New file.
49020
49021 2006-08-26  Bruno Haible  <bruno@clisp.org>
49022
49023         * m4/inttypes.m4: New file.
49024         * m4/_inttypes_h.m4: Remove file.
49025         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
49026         PRI_MACROS_BROKEN.
49027         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
49028
49029         * m4/imaxabs.m4: New file.
49030
49031         * m4/imaxdiv.m4: New file.
49032
49033 2006-08-26  Bruno Haible  <bruno@clisp.org>
49034
49035         * lib/inttypes_.h: New file.
49036         * lib/inttypes.h: Remove file.
49037         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
49038
49039         * lib/imaxabs.c: New file.
49040
49041         * lib/imaxdiv.c: New file.
49042
49043 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49044
49045         New config-h module, so that "make" output needn't be cluttered
49046         by -DHAVE_CONFIG_H.
49047         * MODULES.html.sh (Support for building libraries and executables):
49048         Add config-h.
49049         * modules/config-h: New file.
49050         * gnulib-tool (nl, sed_transform_lib_file): New vars.
49051         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
49052         the config-h module is used.
49053
49054         New configmake module, so that "make" output needn't be cluttered
49055         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
49056         * MODULES.html.sh (Support for building libraries and executables):
49057         Add configmake.
49058         * modules/configmake: New file.
49059
49060 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49061
49062         * m4/config-h.m4: New file.
49063
49064 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49065
49066         * config/srclist.txt: Add elisp-comp.
49067
49068 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49069
49070         * MODULES.html.sh (Support for building libraries and executables):
49071         Add elisp-comp.
49072         * build-aux/elisp-comp: New file.
49073         * modules/elisp-comp: New file.
49074
49075 2006-08-24  Bruno Haible  <bruno@clisp.org>
49076
49077         * gnulib-tool (func_create_testdir): Use non-default values of
49078         sourcebase and m4base.
49079
49080 2006-08-24  Bruno Haible  <bruno@clisp.org>
49081
49082         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
49083         HTML structure.
49084
49085 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49086
49087         * modules/openat (Depends-on): Add lchown.
49088
49089 2006-08-23  Bruno Haible  <bruno@clisp.org>
49090
49091         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
49092         of gl_LOCK_EARLY instead of gl_LOCK.
49093
49094 2006-08-23  Bruno Haible  <bruno@clisp.org>
49095
49096         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
49097         on OSF/1 to no.
49098         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
49099
49100 2006-08-23  Bruno Haible  <bruno@clisp.org>
49101
49102         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
49103         as unusable.
49104
49105         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
49106         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
49107         (gl_LOCK): New macro.
49108
49109 2006-08-22  Simon Josefsson  <jas@extundo.com>
49110
49111         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
49112         to md5 module.
49113
49114 2006-08-22  Simon Josefsson  <jas@extundo.com>
49115
49116         * MODULES.html.sh: Add "Support for maintaining and release
49117         projects".
49118
49119         * build-aux/gnupload: New file, from coreutils.
49120
49121 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49122
49123         Avoid the need for AC_LIBSOURCES in m4 macros.
49124         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
49125         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
49126         * modules/check-version (EXTRA_DIST): Add check-version.h.
49127         * modules/crc (EXTRA_DIST): Add crc.h.
49128         * modules/des (EXTRA_DIST): Add des.h.
49129         * modules/gc (EXTRA_DIST): Add gc.h.
49130         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
49131         * modules/getline (EXTRA_DIST): Add getline.h.
49132         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
49133         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
49134         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
49135         * modules/md2 (EXTRA_DIST): Add md2.h.
49136         * modules/md4 (EXTRA_DIST): Add md4.h.
49137         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
49138         * modules/read-file (EXTRA_DIST): Add read-file.h.
49139         * modules/readline (EXTRA_DIST): Add readline.h.
49140         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
49141         rijndael-api-fst.h.
49142
49143 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49144
49145         * m4/rijndael.m4 (gl_ARCFOUR):
49146         * m4/arctwo.m4 (gl_ARCTWO):
49147         * m4/check-version.m4 (gl_CHECK_VERSION):
49148         * m4/crc.m4 (gl_CRC):
49149         * m4/des.m4 (gl_DES):
49150         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
49151         * m4/gc.m4 (gl_GC):
49152         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
49153         * m4/getline.m4 (gl_FUNC_GETLINE):
49154         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
49155         * m4/hmac-md5.m4 (gl_HMAC_MD5):
49156         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
49157         * m4/md2.m4 (gl_MD2):
49158         * m4/md4.m4 (gl_MD4):
49159         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
49160         * m4/read-file.m4 (gl_FUNC_READ_FILE):
49161         * m4/readline.m4 (gl_FUNC_READLINE):
49162         * m4/rijndael.m4 (gl_RIJNDAEL):
49163         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49164         to get the necessary .h files and whatnot.
49165
49166 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49167
49168         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
49169         gnulib rather than the other way around.
49170         * config/srclistvars.sh (COREUTILS): Remove.
49171
49172 2006-08-22  Jim Meyering  <jim@meyering.net>
49173
49174         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
49175
49176         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
49177
49178 2006-08-22  Eric Blake  <ebb9@byu.net>
49179
49180         * modules/regexprops-generic: New file.
49181         * MODULES.html.sh (Support for building documentation): List it.
49182
49183 2006-08-22  Eric Blake  <ebb9@byu.net>
49184
49185         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
49186         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49187         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
49188         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49189
49190 2006-08-22  Bruno Haible  <bruno@clisp.org>
49191
49192         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
49193         and lib_LTLIBRARIES like the other lib_* variables.
49194
49195 2006-08-22  Bruno Haible  <bruno@clisp.org>
49196
49197         * build-aux/x-to-1.in: New file, from GNU gettext.
49198
49199 2006-08-22  Bruno Haible  <bruno@clisp.org>
49200
49201         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
49202         <utmpx.h> exists.
49203
49204 2006-08-22  Bruno Haible  <bruno@clisp.org>
49205
49206         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
49207         <utmpx.h> exists.
49208
49209 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49210
49211         BeOS portability.
49212         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
49213         exist.
49214         Problem reported by Bruno Haible.
49215
49216 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49217
49218         Avoid the need for AC_LIBSOURCES in m4 macros.
49219         * modules/acl (EXTRA_DIST): Add acl.h.
49220         * modules/argmatch (Files): Add m4/argmatch.m4.
49221         (configure.ac): Add gl_ARGMATCH.
49222         (EXTRA_DIST): Renamed from lib_SOURCES, for
49223         consistency with the other modules.  Remove argmatch.c.
49224         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
49225         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
49226         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
49227         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
49228         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
49229         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
49230         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
49231         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
49232         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
49233         * modules/closeout (EXTRA_DIST): Add closeout.h.
49234         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
49235         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
49236         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
49237         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
49238         dirname.h; remove basename.c and stripslash.c.
49239         * modules/exclude (EXTRA_DIST): Add exclude.h.
49240         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
49241         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
49242         * modules/file-type (EXTRA_DIST): Add file-type.h.
49243         * modules/filemode (EXTRA_DIST): Add filemode.h.
49244         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
49245         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49246         * modules/fpending (EXTRA_DIST): Add __fpending.h.
49247         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
49248         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
49249         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
49250         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
49251         * modules/getdate (EXTRA_DIST): Add getdate.c.
49252         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
49253         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
49254         * modules/getpass (EXTRA_DIST): Add getpass.h.
49255         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
49256         * modules/group-member (EXTRA_DIST): Add group-member.h.
49257         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
49258         * modules/hash (EXTRA_DIST): Add hash.h.
49259         * modules/human (EXTRA_DIST): Add human.h.
49260         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
49261         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
49262         * modules/lchown (EXTRA_DIST): Add lchown.h.
49263         * modules/long-options (EXTRA_DIST): Add long-options.h.
49264         * modules/lstat (EXTRA_DIST): Add lstat.h.
49265         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
49266         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
49267         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
49268         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
49269         * modules/memxor (EXTRA_DIST): Add memxor.h.
49270         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
49271         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
49272         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
49273         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
49274         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
49275         * modules/physmem (EXTRA_DIST): Add physmem.h.
49276         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
49277         * modules/posixver (EXTRA_DIST): Add posixver.h.
49278         * modules/quote (EXTRA_DIST): Add quote.h.
49279         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
49280         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
49281         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
49282         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
49283         regex_internal.h regexec.c.
49284         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
49285         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
49286         * modules/same (EXTRA_DIST): Add same.h.
49287         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
49288         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
49289         * modules/savedir (EXTRA_DIST): Add savedir.h.
49290         * modules/sha1 (EXTRA_DIST): Add sha1.h.
49291         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
49292         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
49293         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
49294         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
49295         * modules/strdup (EXTRA_DIST): Add strdup.h.
49296         * modules/strftime (EXTRA_DIST): Add strftime.h.
49297         * modules/strndup (EXTRA_DIST): Add strndup.h.
49298         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
49299         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
49300         * modules/time_r (EXTRA_DIST): Add time_r.h.
49301         * modules/timespec (EXTRA_DIST): Add timespec.h.
49302         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49303         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
49304         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
49305         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
49306         * modules/userspec (EXTRA_DIST): Add userspec.h.
49307         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
49308         * modules/utimens (EXTRA_DIST): Add utimens.h.
49309         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
49310         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
49311         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
49312         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
49313         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
49314         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
49315         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
49316         * modules/yesno (EXTRA_DIST): Add yesno.h.
49317
49318 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49319
49320         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
49321
49322         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
49323         * m4/dev-ino.m4, same-inode.m4: Remove.
49324
49325         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
49326         * m4/acl.m4 (AC_FUNC_ACL):
49327         * m4/backupfile.m4 (gl_BACKUPFILE):
49328         * m4/c-strtod.m4 (gl_C99_STRTOLD):
49329         * m4/canon-host.m4 (gl_CANON_HOST):
49330         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49331         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
49332         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
49333         * m4/cloexec.m4 (gl_CLOEXEC):
49334         * m4/close-stream.m4 (gl_CLOSE_STREAM):
49335         * m4/closeout.m4 (gl_CLOSEOUT):
49336         * m4/dirfd.m4 (gl_FUNC_DIRFD):
49337         * m4/dirname.m4 (gl_DIRNAME):
49338         * m4/exclude.m4 (gl_EXCLUDE):
49339         * m4/exitfail.m4 (gl_EXITFAIL):
49340         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
49341         * m4/file-type.m4 (gl_FILE_TYPE):
49342         * m4/filemode.m4 (gl_FILEMODE):
49343         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
49344         * m4/fpending.m4 (gl_FUNC_FPENDING):
49345         * m4/fprintftime.m4 (gl_FPRINTFTIME):
49346         * m4/fts.m4 (gl_FUNC_FTS):
49347         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
49348         * m4/getdate.m4 (gl_GETDATE):
49349         * m4/gethrxtime.m4 (gl_GETHRXTIME):
49350         * m4/getpagesize.m4 (gl_GETPAGESIZE):
49351         * m4/getpass.m4 (gl_FUNC_GETPASS):
49352         * m4/gettime.m4 (gl_GETTIME):
49353         * m4/getugroups.m4 (gl_GETUGROUPS):
49354         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
49355         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
49356         * m4/hard-locale.m4 (gl_HARD_LOCALE):
49357         * m4/hash.m4 (gl_HASH):
49358         * m4/idcache.m4 (gl_IDCACHE):
49359         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
49360         * m4/lchown.m4 (gl_FUNC_LCHOWN):
49361         * m4/long-options.m4 (gl_LONG_OPTIONS):
49362         * m4/lstat.m4 (gl_FUNC_LSTAT):
49363         * m4/md5.m4 (gl_MD5):
49364         * m4/memcasecmp.m4 (gl_MEMCASECMP):
49365         * m4/memcoll.m4 (gl_MEMCOLL):
49366         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
49367         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
49368         * m4/memxor.m4 (gl_MEMXOR):
49369         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
49370         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
49371         * m4/modechange.m4 (gl_MODECHANGE):
49372         * m4/mountlist.m4 (gl_MOUNTLIST):
49373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49374         * m4/openat.m4 (gl_FUNC_OPENAT):
49375         * m4/pathmax.m4 (gl_PATHMAX):
49376         * m4/physmem.m4 (gl_PHYSMEM):
49377         * m4/posixtm.m4 (gl_POSIXTM):
49378         * m4/posixver.m4 (gl_POSIXVER):
49379         * m4/quote.m4 (gl_QUOTE):
49380         * m4/quotearg.m4 (gl_QUOTEARG):
49381         * m4/readtokens.m4 (gl_READTOKENS):
49382         * m4/readutmp.m4 (gl_READUTMP):
49383         * m4/regex.m4 (gl_REGEX):
49384         * m4/safe-read.m4 (gl_SAFE_READ):
49385         * m4/safe-write.m4 (gl_SAFE_WRITE):
49386         * m4/same.m4 (gl_SAME):
49387         * m4/save-cwd.m4 (gl_SAVE_CWD):
49388         * m4/savedir.m4 (gl_SAVEDIR):
49389         * m4/settime.m4 (gl_SETTIME):
49390         * m4/sha1.m4 (gl_SHA1):
49391         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
49392         * m4/stat-macros.m4 (gl_STAT_MACROS):
49393         * m4/stat-time.m4 (gl_STAT_TIME):
49394         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
49395         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
49396         * m4/strdup.m4 (gl_FUNC_STRDUP):
49397         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
49398         * m4/strndup.m4 (gl_FUNC_STRNDUP):
49399         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
49400         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
49401         * m4/time_r.m4 (gl_TIME_R):
49402         * m4/timespec.m4 (gl_TIMESPEC):
49403         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
49404         * m4/unlinkdir.m4 (gl_UNLINKDIR):
49405         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
49406         * m4/userspec.m4 (gl_USERSPEC):
49407         * m4/utimecmp.m4 (gl_UTIMECMP):
49408         * m4/utimens.m4 (gl_UTIMENS):
49409         * m4/xalloc.m4 (gl_XALLOC):
49410         * m4/xgetcwd.m4 (gl_XGETCWD):
49411         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
49412         * m4/xreadlink.m4 (gl_XREADLINK):
49413         * m4/xstrtod.m4 (gl_XSTRTOD):
49414         * m4/yesno.m4 (gl_YESNO):
49415         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49416         to get the necessary .h files and whatnot.
49417
49418 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
49419             Bruno Haible  <bruno@clisp.org>
49420
49421         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
49422         /bin/sh understanding of '!' conditional negation.
49423
49424 2006-08-21  Jim Meyering  <jim@meyering.net>
49425
49426         * modules/openat (Depends-on): Really alphabetize.
49427
49428         * modules/acl (Depends-on): Add error and quote.
49429
49430         * check-module (find_included_lib_files): Add at-func.c to the
49431         ok-to-include-more-than-once white list.
49432
49433         * modules/openat (Depends-on): Add lstat.  Alphabetize.
49434
49435 2006-08-21  Bruno Haible  <bruno@clisp.org>
49436
49437         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49438         Emit a pkgdata_DATA variable only if some snippets add contents to it.
49439         Reported by Martin Lambers <marlam@marlam.de>.
49440
49441 2006-08-21  Bruno Haible  <bruno@clisp.org>
49442
49443         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
49444         specify an installation location, don't emit a noinst_LIBRARIES or
49445         noinst_LTLIBRARIES assignment.
49446
49447 2006-08-21  Bruno Haible  <bruno@clisp.org>
49448
49449         BeOS portability.
49450         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
49451         BeOS has mbrtowc() but no <wctype.h>.
49452
49453 2006-08-21  Bruno Haible  <bruno@clisp.org>
49454
49455         BeOS portability.
49456         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
49457         exist.
49458
49459 2006-08-21  Bruno Haible  <bruno@clisp.org>
49460
49461         BeOS portability.
49462         * lib/mbchar.h: Include <wctype.h> only if it exists.
49463
49464 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49465
49466         Remove files that are no longer needed by their respective modules.
49467         * m4/obstack.m4: Remove.
49468         * m4/strerror_r.m4: Remove.
49469         * m4/uint32_t.m4: Remove.
49470         * m4/uintptr_t.m4: Remove.
49471         * m4/ullong_max.m4: Remove.
49472         * m4/xstrtoimax.m4: Remove.
49473         * m4/xstrtoumax.m4: Remove.
49474
49475         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
49476         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
49477         dependencies now capture this.
49478
49479         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
49480         Do not use AC_LIBSOURCES, since gnulib modules now do this.
49481         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
49482         * m4/human.m4 (gl_HUMAN): Likewise.
49483         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
49484         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
49485
49486         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
49487
49488         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
49489         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
49490         stdint.
49491         * m4/human.m4 (gl_HUMAN): Likewise.
49492         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
49493         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
49494         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49495         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49496         * m4/xstrtol (gl_XSTRTOL): Likewise.
49497
49498         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
49499         AC_TYPE_LONG_LONG_INT.
49500         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49501         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
49502         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
49503         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49504
49505         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
49506         on stdbool.
49507
49508         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
49509         (gl_PREREQ_XSTRTOUL): Remove.
49510
49511         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
49512
49513         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
49514         mode.
49515
49516 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49517
49518         Add and change modules to make it easier for coreutils to use
49519         gnulib-tool.
49520         * modules/backupfile (Files): Remove m4/d-ino.m4.
49521         (Depends-on): Add d-ino.
49522         * modules/cycle-check (Depends-on): Add stdint.
49523         (lib_SOURCES): Add cycle-check.h.
49524         * modules/d-ino: New module.
49525         * modules/d-type: New module.
49526         * modules/error (Files): Remove m4/strerror_r.m4.
49527         * modules/filemode (Files): Add m4/st_dm_mode.m4.
49528         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49529         m4/inttypes_h.m4, m4/uintmax_t.m4.
49530         (Depends-on): Add stdint.
49531         (lib_SOURCES): Add fsusage.h.
49532         * modules/getcwd (Files): Remove d-ino.m4.
49533         (Depends-on): Add d-ino.
49534         * modules/getndelim2 (Depends-on): Add stdint.
49535         * modules/glob (Files): Remove m4/d-type.m4.
49536         (Depends-on): Add d-type.
49537         * modules/host-os: New module.
49538         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
49539         m4/inttypes_h.m4, m4/uintmax_t.m4.
49540         * Depends-on: Add stdint.
49541         (lib_SOURCES): Add human.h.
49542         * modules/inttostr (Files): Remove m4/intmax_t.m4,
49543         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
49544         m4/uintmax_t.m4, m4/ulonglong.m4.
49545         (Depends-on): Add stdint.
49546         (EXTRA_DIST): Add inttostr.h.
49547         * modules/lchmod: New module.
49548         * modules/link-follow: New module.
49549         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
49550         (Depends-on): Add lchmod.
49551         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
49552         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
49553         (Depends-on): Add stdint.
49554         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
49555         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
49556         (Depends-on): Add stdint.
49557         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
49558         * modules/perl: New module.
49559         * modules/regex (Depends-on): Add stdint.
49560         * modules/rmdir-errno: New module.
49561         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49562         m4/intmax_t.m4.
49563         (Depends-on): Add stdint.
49564         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49565         m4/uintmax_t.m4.
49566         (Depends-on): Add stdint.
49567         * modules/unlink-busy: New module.
49568         * modules/utimecmp (Depends-on): Add stdint.
49569         * modules/uptime: New module.
49570         * modules/winsz-ioctl: New module.
49571         * modules/winsz-termios: New module.
49572         * modules/xnanosleep (Depends-on): Add nanosleep.
49573         * modules/ullong_max: Remove.
49574         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
49575         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
49576         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
49577         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
49578         (Depends-on): Add inttypes.
49579         (lib_SOURCES): Add xstrtol.h.
49580         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
49581         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
49582         * MODULES.html.sh: Move 'assert' into the assert section.
49583         Move 'dummy' into the linking section.
49584         Remove ullong_max.
49585         Add section for compatibility checks for POSIX:2001 functions,
49586         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
49587         winsz-ioctl, and winsz-termios into it.
49588         Add lchmod.
49589         Add top-level Misc section and put host-os, perl, and uptime
49590         into it.
49591
49592 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49593
49594         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49595         now assume the stdint module.  Do not include inttypes.h.
49596         * lib/fsusage.h: Likewise.
49597         * lib/getndelim2.c: Likewise.
49598         * lib/human.h: Likewise.
49599         * lib/inttostr.h: Likewise.
49600         * lib/obstack.c: Likewise.
49601         * lib/regex_internal.h: Likewise.
49602         * lib/tempname.c: Likewise.
49603         * lib/utimecmp.c: Likewise.
49604         * lib/xstrtol.h: Likewise.
49605
49606         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49607
49608         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49609         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49610         * lib/xtime.h: Likewise.
49611
49612 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49613
49614         * modules/openat (Files): Add lib/fchmodat.c.
49615         Fixes problem reported by Jay Youngman.
49616
49617 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49618
49619         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49620         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49621
49622 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49623             Bruno Haible  <bruno@clisp.org>
49624
49625         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49626         and is a script that invokes bison. Tighten the code. Add comments.
49627
49628 2006-08-18  Jim Meyering  <jim@meyering.net>
49629
49630         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49631         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49632         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49633         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49634
49635 2006-08-18  Bruno Haible  <bruno@clisp.org>
49636
49637         * modules/bison-i18n: New file.
49638         * MODULES.html.sh (Internationalization functions): Add it.
49639
49640 2006-08-18  Bruno Haible  <bruno@clisp.org>
49641
49642         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49643         sys/statvfs.h. When getmntinfo was found, check its declaration and
49644         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49645
49646 2006-08-18  Bruno Haible  <bruno@clisp.org>
49647
49648         * m4/bison-i18n.m4: New file, from bison.
49649
49650 2006-08-18  Bruno Haible  <bruno@clisp.org>
49651
49652         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49653         (ME_DUMMY): Treat "kernfs" as a dummy.
49654         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49655
49656 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49657
49658         Update from coreutils.
49659
49660         2006-08-15  Jim Meyering  <jim@meyering.net>
49661
49662         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49663
49664         2006-01-17  Jim Meyering  <jim@meyering.net>
49665
49666         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49667
49668         2006-01-11  Jim Meyering  <jim@meyering.net>
49669
49670         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49671         Check for the lchmod function.
49672
49673 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49674
49675         Update from coreutils.
49676
49677         * lib/__fpending.h: Add copyright notice.
49678         * lib/fprintftime.h: Likewise.
49679         * lib/savedir.c: Use (C) in copyright notice.
49680         * lib/savedir.h: Likewise.
49681
49682         2006-08-15  Jim Meyering  <jim@meyering.net>
49683
49684         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49685         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49686         in support of the EXPECTED_ERRNO macro.
49687         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49688         definitions.  Instead, define the appropriate symbols and include
49689         "at-func.c".
49690         * lib/mkdirat.c (mkdirat): Likewise.
49691         * lib/fchmodat.c (fchmodat): Likewise.
49692         (ENOSYS): Remove definition.
49693         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49694         it.  Don't include "unistd--.h" -- it wasn't ever used.
49695
49696         2006-01-17  Jim Meyering  <jim@meyering.net>
49697
49698         Rewrite fts.c not to change the current working directory,
49699         by using openat, fstatat, fdopendir, etc..
49700
49701         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49702         (HAVE_OPENAT_SUPPORT): Define.
49703         [_LIBC] (fchdir): Don't undef or define; no longer used.
49704         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49705         Now, this `function' always succeeds, and consumes its file descriptor
49706         parameter -- so callers must not close such FDs.  Update callers.
49707         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49708         (diropen): Add parameter, SP.  Adjust all callers.
49709         Implement using diropen_fd, rather than open.
49710         (fts_open): Initialize new member, fts_cwd_fd.
49711         Remove fts_rft-setting code.
49712         (fts_close): Close fts_cwd_fd, if necessary.
49713         (__opendir2): Define in terms of opendir or opendirat,
49714         depending on whether the FST_NOCHDIR flag is set.
49715         (fts_build): Since fts_safe_changedir consumes its FD, and since
49716         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49717         and close the dup'd file descriptor upon failure.
49718         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49719         (fts_safe_changedir): Tweak semantics to reflect that this function
49720         now calls cwd_advance_fd and hence consumes its FD argument.
49721         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49722         [struct FTS] (fts_rft): Remove now-unused member.
49723         [struct FTS] (fts_cycle.state): Improve comment.
49724
49725         * lib/openat.c (openat_needs_fchdir): New function.
49726         * lib/openat.h (openat_needs_fchdir): Declare it.
49727
49728 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49729
49730         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49731         Problem and fix reported by Pádraig Brady in
49732         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49733
49734 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49735
49736         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49737
49738 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49739
49740         * lib/memcoll.c (memcoll): Optimize for the common case where the
49741         arguments are bytewise equal.
49742
49743 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49744
49745         * doc/regexprops-generic.texi: Add a copyright notice.
49746
49747 2006-08-15  Bruno Haible  <bruno@clisp.org>
49748
49749         * modules/tmpdir (License): Change to LGPL.
49750
49751 2006-08-15  Bruno Haible  <bruno@clisp.org>
49752
49753         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49754         module.
49755
49756 2006-08-14  Simon Josefsson  <jas@extundo.com>
49757
49758         * config/srclist.txt: Add gnupload.
49759
49760 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49761
49762         Change copyright notice from LGPL 2 to GPL 2, since that's the
49763         standard form used in the gnulib repository.
49764         * tests/test-lock.c: Likewise.
49765         * tests/test-stdint.c: Likewise.
49766         * tests/test-tls.c: Likewise.
49767
49768         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49769         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49770         Add copyright notice.
49771
49772         * check-module: Add copyright notice.  Output a copyright
49773         notice if "--version" is specified.
49774         * modules/COPYING: New file.
49775         * tests/test-getaddrinfo.c: Add copyright notice.
49776         * tests/test-verify.c: Likewise.
49777
49778 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49779
49780         Change copyright notice from LGPL 2 to GPL 2, since that's the
49781         standard form used in the gnulib repository.
49782         * lib/lock.c: LGPL -> GPL.
49783         * lib/lock.h: Likewise.
49784         * lib/strnlen1.c: Likewise.
49785         * lib/strnlen1.h: Likewise.
49786         * lib/tls.c: Likewise.
49787         * lib/tls.h: Likewise.
49788         * lib/tmpdir.c: Likewise.
49789
49790         * lib/TODO: Remove; this belongs only in coreutils.
49791
49792 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49793
49794         Add copyright notices to long-enough files that lack them, since
49795         otherwise the files aren't clearly free.  Use the same notice that
49796         getdate.texi already uses.
49797         * doc/alloca-opt.texi: Add copyright notice.
49798         * doc/alloca.texi: Likewise.
49799         * doc/ctime.texi: Likewise.
49800         * doc/functions.texi: Likewise.
49801         * doc/gcd.texi: Likewise.
49802         * doc/gnulib-tool.texi: Likewise.
49803         * doc/inet_ntoa.texi: Likewise.
49804         * doc/visibility.texi: Likewise.
49805
49806         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49807         * doc/quote.texi: Add copyright notice.
49808
49809         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49810         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49811         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49812         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49813         is now obsolete, and give a pointer to the Sun list.
49814         Add copyright notice.
49815
49816 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49817
49818         * config/srclistvars.sh: Add copyright notice.
49819
49820 2006-08-14  Eric Blake  <ebb9@byu.net>
49821
49822         Import the following change from libc:
49823
49824         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49825
49826         Upstream bug 2997.
49827         * lib/misc/error.c: Add space between program name and message if file
49828         name is missing.
49829
49830 2006-08-12  Karl Berry  <karl@gnu.org>
49831
49832         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49833         remove, these originate in gnulib now.
49834
49835 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49836
49837         * doc/Makefile (standards.info standards.html standards.dvi):
49838         Also depend on make-stds.texi.
49839
49840 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49841
49842         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
49843         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
49844
49845         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
49846         in wchar_t.  Problem reported by Eric Blake.
49847
49848         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
49849         LEN is smaller than SIZE.  Suggested by Bruno Haible.
49850         Also, help the compiler to keep LEN in a register.
49851
49852 2006-08-11  Eric Blake  <ebb9@byu.net>
49853
49854         * users.txt: Sort.  Add tar.
49855
49856 2006-08-11  Bruno Haible  <bruno@clisp.org>
49857
49858         * users.txt: New file.
49859
49860 2006-08-11  Bruno Haible  <bruno@clisp.org>
49861
49862         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
49863         before <wchar.h>. Needed for OSF/1 and BSD/OS.
49864
49865 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49866
49867         * modules/snprintf (Depends-on): Remove minmax.
49868         (Maintainer): Add self and Bruno.
49869
49870 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49871
49872         * lib/.cppi-disable: Add snprintf.h, socket_.h.
49873         * lib/snprintf.c: Include <errno.h> and <limits.h>.
49874         (EOVERFLOW): Define if the system does not.
49875         Do not include "minmax.h"; it wasn't used.
49876         (snprintf): Don't assume size_t promotes to an unsigned type.
49877         Fix bug when generated string was too long for the buffer: the
49878         buffer's contents are supposed to be the initial prefix of the
49879         output.  Don't assume vasnprintf returns EOVERFLOW if the size
49880         exceeds INT_MAX; do the check ourselves.
49881
49882         Import the following changes from libc:
49883
49884         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
49885
49886         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
49887         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
49888         set wc to the byte which couldn't be converted.
49889         (re_string_reconstruct): Don't clear valid_raw_len before calling
49890         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
49891         tip_context using re_string_context_at.
49892
49893         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
49894
49895         * lib/posix/regex.h: g++ still cannot handled [restrict].
49896
49897         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
49898
49899         * lib/posix/regex.h: Remove special handling for VMS.
49900
49901 2006-08-10  Jim Meyering  <jim@meyering.net>
49902
49903         * modules/same-inode: New module.
49904         * modules/dev-ino: New module.
49905         * modules/cycle-check: Depend on these modules, rather than simply
49906         including their .h files.
49907         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
49908         required via m4/cycle-check.m4.
49909         * modules/same: Depend on new same-inode module, rather than
49910         including same-inode.h.
49911         * modules/chdir-safer: New file.
49912
49913         * modules/chown (Depends-on): Add stat-macros.
49914
49915 2006-08-10  Jim Meyering  <jim@meyering.net>
49916
49917         * m4/cycle-check.m4: New file.
49918         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
49919         * m4/dev-ino.m4, m4/same-inode.m4: New files.
49920
49921 2006-08-10  Eric Blake  <ebb9@byu.net>
49922
49923         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
49924         in from original proposal.
49925
49926 2006-08-10  Eric Blake  <ebb9@byu.net>
49927         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49928
49929         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
49930         namespace.
49931
49932 2006-08-10  Bruno Haible  <bruno@clisp.org>
49933
49934         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
49935         as well.
49936
49937 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49938
49939         Sync from coreutils.
49940
49941         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
49942
49943         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
49944         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
49945
49946 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49947
49948         * modules/restrict: Remove; no longer needed now that we assume
49949         Autoconf 2.59 or later.
49950         * MODULES.html.sh: Remove 'restrict'.
49951         * modules/argp (Depends-on): Remove 'restrict'.
49952         * modules/base64 (Depends-on): Likewise.
49953         * modules/gc (Depends-on): Likewise.
49954         * modules/getaddrinfo (Depends-on): Likewise.
49955         * modules/glob (Depends-on): Likewise.
49956         * modules/inet_ntop (Depends-on): Likewise.
49957         * modules/inet_pton (Depends-on): Likewise.
49958         * modules/memxor (Depends-on): Likewise.
49959         * modules/regex (Depends-on): Likewise.
49960         * modules/strtok_r (Depends-on): Likewise.
49961         * modules/time_r (Depends-on): Likewise.
49962
49963 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49964
49965         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
49966         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
49967         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49968         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
49969         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
49970         * m4/memxor.m4 (gl_MEMXOR): Likewise.
49971         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
49972         gl_C_RESTRICT replaced by AC_C_RESTRICT.
49973
49974         Merge from coreutils.
49975         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
49976         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
49977         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49978         * m4/time_r.m4 (gl_TIME_R): Likewise.
49979
49980 2006-08-09  Karl Berry  <karl@gnu.org>
49981
49982         * config/srclist.txt: no more gettext-tools, per Bruno.
49983
49984 2006-08-08  Eric Blake  <ebb9@byu.net>
49985
49986         * modules/verror: New module.
49987         * MODULES.html.sh: Document it.
49988
49989 2006-08-08  Eric Blake  <ebb9@byu.net>
49990
49991         * lib/verror.h, lib/verror.c: New files.
49992
49993 2006-08-08  Eric Blake  <ebb9@byu.net>
49994
49995         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
49996         verror_at_line output complies with GNU Coding Standards even when
49997         file is NULL.
49998
49999 2006-08-07  Bruno Haible  <bruno@clisp.org>
50000
50001         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
50002         versions of AIX.
50003         Reported by Ralf Wildenhues.
50004
50005 2006-08-07  Bruno Haible  <bruno@clisp.org>
50006
50007         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
50008         in an AC_DEFUN. Needed so that the autoconf snippets can use
50009         AC_REQUIRE.
50010
50011 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50012
50013         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50014         Initialize pkgdata_DATA.
50015         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
50016         overriding it.
50017
50018 2006-08-06  Eric Blake  <ebb9@byu.net>
50019
50020         * lib/error.h: Fold in some upstream changes from glibc.
50021         * lib/error.c: Likewise.
50022
50023 2006-08-04  Bruno Haible  <bruno@clisp.org>
50024
50025         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50026         Make the mostlyclean-local rule depend on mostlyclean-generic.
50027         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
50028
50029 2006-07-31  Bruno Haible  <bruno@clisp.org>
50030
50031         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
50032         <stdlib.h>, <string.h>.
50033
50034 2006-07-30  Bruno Haible  <bruno@clisp.org>
50035
50036         * modules/readlink (License): Change to LGPL.
50037
50038 2006-07-30  Bruno Haible  <bruno@clisp.org>
50039
50040         * modules/javaversion (Makefile.am): Distribute javaversion.java and
50041         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
50042         set PKGDATADIR to point to it.
50043
50044 2006-07-30  Bruno Haible  <bruno@clisp.org>
50045
50046         * modules/csharpexec (configure.ac): Comment out macro invocation.
50047         * modules/javaexec (configure.ac): Likewise.
50048         * modules/javacomp-script (configure.ac): Likewise.
50049
50050         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
50051
50052 2006-07-30  Bruno Haible  <bruno@clisp.org>
50053
50054         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
50055         linked-list.
50056
50057 2006-07-30  Bruno Haible  <bruno@clisp.org>
50058
50059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
50060
50061 2006-07-30  Bruno Haible  <bruno@clisp.org>
50062
50063         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50064         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
50065         get removed.
50066
50067 2006-07-29  Bruno Haible  <bruno@clisp.org>
50068
50069         Make it possible for gnulib-tool to work with locally modified or
50070         augmented gnulib repositories.
50071         * gnulib-tool (func_usage): Document --local-dir option.
50072         (local_gnulib_dir): New variable.
50073         Handle --local-dir option.
50074         (func_lookup_file): New function.
50075         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
50076         (func_get_description, func_get_filelist, func_get_description,
50077         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
50078         func_get_automake_snippet, func_get_include_directive,
50079         func_get_license, func_get_maintainer): Use func_lookup_file.
50080         (func_import, func_create_testdir): Use func_lookup_file.
50081
50082 2006-07-29  Bruno Haible  <bruno@clisp.org>
50083
50084         * modules/setenv (Depends-on): Add unistd.
50085
50086 2006-07-29  Bruno Haible  <bruno@clisp.org>
50087
50088         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
50089
50090 2006-07-29  Bruno Haible  <bruno@clisp.org>
50091
50092         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
50093
50094 2006-07-29  Bruno Haible  <bruno@clisp.org>
50095
50096         * gnulib-tool (import, update): If there is no Makefile.am, look at
50097         aclocal.m4, instead of bailing out.
50098
50099 2006-07-29  Bruno Haible  <bruno@clisp.org>
50100
50101         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
50102         Categorize the options by when they are useful.
50103
50104 2006-07-29  Bruno Haible  <bruno@clisp.org>
50105
50106         * gnulib-tool (func_usage): Document option --no-libtool.
50107         Handle option --no-libtool.
50108         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
50109         for changed semantics of $libtool variable.
50110         (func_import): Likewise. If libtool is not used, show this through
50111         an option --no-libtool.
50112         (func_create_testdir): Update.
50113
50114 2006-07-29  Bruno Haible  <bruno@clisp.org>
50115
50116         * gnulib-tool (func_import): Extend error message about missing
50117         --doc-base.
50118
50119 2006-07-29  Bruno Haible  <bruno@clisp.org>
50120
50121         * gnulib-tool (func_import): Don't create the $docbase directory if
50122         there is no file to store there.
50123
50124 2006-07-29  Bruno Haible  <bruno@clisp.org>
50125
50126         * gnulib-tool (autoconf_minversion): If a --dir option is given and
50127         relevant, look for configure.ac there, not in the current directory.
50128         Also use a simple search for AC_PREREQ, not "autoconf --trace".
50129
50130 2006-07-29  Bruno Haible  <bruno@clisp.org>
50131
50132         * gnulib-tool (SORT): New variable.
50133         (func_usage): Undocument --assume-autoconf option.
50134         Remove --assume-autoconf option handling.
50135         (autoconf_minversion): Determine from the contents of configure.ac.
50136         (func_import): Remove autoconf_minversion handling.
50137         Suggested by Eric Blake.
50138
50139 2006-07-29  Bruno Haible  <bruno@clisp.org>
50140
50141         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
50142
50143 2006-07-29  Bruno Haible  <bruno@clisp.org>
50144
50145         * config/srclist.txt (*setenv.[ch]): Remove rules.
50146
50147 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50148
50149         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
50150
50151 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50152
50153         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
50154         arpa/inet.h.
50155
50156 2006-07-28  Simon Josefsson  <jas@extundo.com>
50157
50158         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
50159         * modules/inet_pton (Depends-on): Likewise.
50160
50161 2006-07-28  Simon Josefsson  <jas@extundo.com>
50162
50163         * m4/netinet_in_h.m4: New file.
50164
50165 2006-07-28  Simon Josefsson  <jas@extundo.com>
50166
50167         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
50168         #include's.
50169
50170 2006-07-28  Simon Josefsson  <jas@extundo.com>
50171
50172         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
50173         #include's.
50174
50175 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
50176
50177         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
50178         setgid on directories only if they set these bits.
50179         * lib/modechange.h: Remove obsolete comment about masks.
50180
50181 2006-07-28  Eric Blake  <ebb9@byu.net>
50182
50183         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
50184         macro expansion.
50185
50186 2006-07-28  Bruno Haible  <bruno@clisp.org>
50187
50188         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
50189
50190 2006-07-28  Bruno Haible  <bruno@clisp.org>
50191
50192         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
50193
50194 2006-07-28  Bruno Haible  <bruno@clisp.org>
50195
50196         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50197         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50198         Define fallbacks.
50199         Avoids link error on FreeBSD 4.x.
50200         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50201
50202         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
50203         encoding.
50204         * lib/mbswidth.c (iswcntrl): Likewise.
50205
50206 2006-07-27  Bruno Haible  <bruno@clisp.org>
50207
50208         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
50209         test.
50210
50211 2006-07-27  Bruno Haible  <bruno@clisp.org>
50212
50213         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
50214         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
50215         defined.
50216
50217 2006-07-26  Eric Blake  <ebb9@byu.net>
50218
50219         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
50220
50221 2006-07-26  Eric Blake  <ebb9@byu.net>
50222
50223         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
50224         like mingw that lack mkstemp.
50225         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
50226         avoid compilation warning on mingw.
50227
50228 2006-07-26  Bruno Haible  <bruno@clisp.org>
50229
50230         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
50231         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
50232         INT_FAST*_MIN, INTPTR_MIN.
50233
50234 2006-07-25  Bruno Haible  <bruno@clisp.org>
50235
50236         * modules/version-etc (Depends-on): Add stdarg.
50237
50238 2006-07-25  Bruno Haible  <bruno@clisp.org>
50239
50240         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
50241         complex commands.
50242
50243 2006-07-25  Bruno Haible  <bruno@clisp.org>
50244
50245         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
50246         defined in <stdarg.h> or config.h.
50247
50248 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50249
50250         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
50251         (gl_STDIO_SAFER): Remove.
50252
50253 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50254
50255         * MODULES.html.sh (File stream based Input/Output):
50256         Add fopen-safer, tmpfile-safer; remove stdio-safer.
50257         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
50258         * modules/fopen-safer, modules/tmpfile-safer: New files.
50259         * modules/stdio-safer: Remove.
50260
50261 2006-07-24  Bruno Haible  <bruno@clisp.org>
50262
50263         * modules/tmpdir: New file.
50264         * MODULES.html.sh (File system functions): Add it.
50265
50266 2006-07-24  Bruno Haible  <bruno@clisp.org>
50267
50268         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
50269         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
50270
50271 2006-07-24  Bruno Haible  <bruno@clisp.org>
50272
50273         * modules/clean-temp: New file.
50274
50275 2006-07-24  Bruno Haible  <bruno@clisp.org>
50276
50277         * m4/tmpdir.m4: New file, from GNU gettext.
50278
50279 2006-07-24  Bruno Haible  <bruno@clisp.org>
50280
50281         * lib/tmpdir.h: New file, from GNU gettext.
50282         * lib/tmpdir.c: New file, from GNU gettext.
50283
50284 2006-07-24  Bruno Haible  <bruno@clisp.org>
50285
50286         * lib/clean-temp.h: New file, from GNU gettext.
50287         * lib/clean-temp.c: New file, from GNU gettext.
50288
50289 2006-07-23  Eric Blake  <ebb9@byu.net>
50290
50291         * modules/stdio-safer (Files): Add tmpfile-safer.c.
50292         (Depends-on): Add binary-io.
50293
50294 2006-07-23  Eric Blake  <ebb9@byu.net>
50295
50296         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
50297
50298 2006-07-23  Eric Blake  <ebb9@byu.net>
50299
50300         * lib/tmpfile-safer.c: New file.
50301         * lib/stdio-safer.h (fopen_safer): Add prototype.
50302         * lib/stdio--.h (tmpfile): Make safer.
50303
50304 2006-07-23  Bruno Haible  <bruno@clisp.org>
50305
50306         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
50307         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
50308         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
50309         gl_linked_remove_at): Use it.
50310
50311 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50312         and Simon Josefsson <jas@extundo.com>
50313
50314         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
50315
50316         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
50317
50318 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50319
50320         * modules/close-stream: New file.
50321         * modules/closeout (Description): Make it clear that it exits
50322         with a diagnostic on error.
50323         (Depends-on): Add close-stream.  Remove fpending, stdbool.
50324         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
50325
50326 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50327
50328         * m4/close-stream.m4: New file.
50329
50330 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50331
50332         * lib/close-stream.c, lib/close-stream.h: New files.
50333
50334 2006-07-22  Bruno Haible  <bruno@clisp.org>
50335
50336         Merge from GNU gettext 0.15.
50337
50338         2006-05-01  Bruno Haible  <bruno@clisp.org>
50339
50340                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
50341
50342         2006-07-22  Bruno Haible  <bruno@clisp.org>
50343
50344                 * modules/javaversion: New file.
50345                 * MODULES.html.sh (Java): Add javaversion.
50346
50347         2006-03-12  Bruno Haible  <bruno@clisp.org>
50348
50349                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
50350
50351         2005-12-04  Bruno Haible  <bruno@clisp.org>
50352
50353                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
50354                 (untested).
50355
50356         2006-06-21  Bruno Haible  <bruno@clisp.org>
50357
50358                 Avoid warnings from recent versions of mcs.
50359                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
50360                 -o, -L, -r any more. Use options documented since mcs-1.0
50361                 instead. Similarly for -g.
50362
50363         2005-12-04  Bruno Haible  <bruno@clisp.org>
50364
50365                 * build-aux/csharpcomp.sh.in: Suffix for resources is
50366                 .resources, not .resource.
50367
50368         2005-07-09  Bruno Haible  <bruno@clisp.org>
50369
50370                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
50371                 add a .dll suffix.
50372                 Reported by Mark Junker <mjscod@gmx.de>.
50373
50374         2006-07-22  Bruno Haible  <bruno@clisp.org>
50375
50376                 * modules/gettext: Upgrade to gettext-0.15.
50377                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
50378                 m4/visibility.m4.
50379                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
50380
50381 2006-07-22  Bruno Haible  <bruno@clisp.org>
50382
50383         Merge from GNU gettext 0.15.
50384
50385         2006-03-25  Bruno Haible  <bruno@clisp.org>
50386
50387                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
50388
50389         2006-07-21  Bruno Haible  <bruno@clisp.org>
50390
50391                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
50392                 "1.1".
50393
50394         2006-05-09  Bruno Haible  <bruno@clisp.org>
50395
50396                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
50397                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
50398                 for the conftestver execution.
50399
50400         2006-05-01  Bruno Haible  <bruno@clisp.org>
50401
50402                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
50403                 optional target-version argument. Verify that the compiler
50404                 groks source of the specified source-version, or add -source
50405                 option as necessary. Verify that the compiler produces
50406                 bytecode in the specified target-version, or add -target and
50407                 -source options as necessary. Make the result of the test
50408                 available as variable CONF_JAVAC. Also log error output in
50409                 config.log.
50410
50411         2006-03-11  Bruno Haible  <bruno@clisp.org>
50412
50413                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
50414
50415         2006-05-09  Bruno Haible  <bruno@clisp.org>
50416
50417                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
50418                 CLASSPATH_SEPARATOR to a semicolon.
50419
50420         2006-03-12  Bruno Haible  <bruno@clisp.org>
50421
50422                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
50423                 available as variable CONF_JAVA, for subsequent autoconf
50424                 tests. Also log error output in config.log.
50425
50426         2006-07-19  Bruno Haible  <bruno@clisp.org>
50427
50428                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
50429                 that getline works on glibc2 systems. Needed to avoid trouble
50430                 in relocatable.c.
50431                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
50432
50433         2005-12-04  Bruno Haible  <bruno@clisp.org>
50434
50435                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
50436                 launcher (untested).
50437
50438         2005-12-04  Bruno Haible  <bruno@clisp.org>
50439
50440                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
50441
50442         2006-07-22  Bruno Haible  <bruno@clisp.org>
50443
50444                 * gettext.m4: Update from GNU gettext-0.15.
50445                 * nls.m4: Likewise.
50446                 * po.m4: Likewise.
50447                 * inttypes-pri.m4: Likewise.
50448                 * inttypes-h.m4: Renamed from inttypes.m4.
50449                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
50450
50451 2006-07-22  Bruno Haible  <bruno@clisp.org>
50452
50453         Merge from GNU gettext 0.15.
50454
50455         2005-07-05  Bruno Haible  <bruno@clisp.org>
50456
50457                 * printf-args.c (printf_fetchargs): Work around broken
50458                 definition of wint_t on mingw.
50459
50460         2005-02-12  Bruno Haible  <bruno@clisp.org>
50461
50462                 * xallocsa.h: Add extern "C" for C++.
50463
50464         2006-05-17  Bruno Haible  <bruno@clisp.org>
50465
50466                 Cygwin portability.
50467                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
50468
50469         2006-04-30  Bruno Haible  <bruno@clisp.org>
50470
50471                 * progreloc.c: Include <mach-o/dyld.h> if available.
50472                 (find_executable): Use _NSGetExecutablePath when possible.
50473
50474         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50475
50476                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
50477                 function.
50478
50479         2005-12-29  Bruno Haible  <bruno@clisp.org>
50480
50481                 * progreloc.c (set_program_name_and_installdir): Fix
50482                 compilation error.
50483
50484         2005-12-04  Bruno Haible  <bruno@clisp.org>
50485
50486                 Cygwin portability.
50487                 * progreloc.c: Include <windows.h> also on Cygwin.
50488                 (find_executable): Add support for Cygwin.
50489                 (set_program_name_and_installdir): Handle also platforms with
50490                 nonempty EXEEXT.
50491
50492         2006-07-11  Bruno Haible  <bruno@clisp.org>
50493
50494                 * javacomp.c: Fix a comment.
50495                 Reported by Jim Meyering.
50496
50497         2006-04-30  Bruno Haible  <bruno@clisp.org>
50498
50499                 * javacomp.h (compile_java_class): Add source_version,
50500                 target_version arguments.
50501                 * javacomp.c: Rewritten to choose only a compiler that
50502                 respects the specified source_version and target_version.
50503
50504         2006-06-27  Bruno Haible  <bruno@clisp.org>
50505
50506                 Assume correct S_ISDIR macro.
50507                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
50508
50509         2006-07-22  Bruno Haible  <bruno@clisp.org>
50510
50511                 * javaversion.h: New file, from GNU gettext.
50512                 * javaversion.c: New file, from GNU gettext.
50513                 * javaversion.java: New file, from GNU gettext.
50514                 * javaversion.class: New file, from GNU gettext.
50515
50516         2006-05-17  Bruno Haible  <bruno@clisp.org>
50517
50518                 Cygwin portability.
50519                 * javaexec.c (execute_java_class): Test for jview program
50520                 also on Cygwin.
50521
50522         2006-04-09  Bruno Haible  <bruno@clisp.org>
50523
50524                 * fatal-signal.c: Don't include string.h.
50525                 (at_fatal_signal): Use a copying loop instead of memcpy.
50526
50527         2005-12-04  Bruno Haible  <bruno@clisp.org>
50528
50529                 * csharpexec.c: Add support for 'clix' launcher (untested).
50530                 (execute_csharp_using_sscli): New function.
50531                 (execute_csharp_program): Call it.
50532
50533         2006-06-21  Bruno Haible  <bruno@clisp.org>
50534
50535                 Avoid warnings from recent versions of mcs.
50536                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
50537                 -o, -L, -r any more. Use options documented since mcs-1.0
50538                 instead. Similarly for -g.
50539
50540         2005-07-09  Bruno Haible  <bruno@clisp.org>
50541
50542                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
50543                 add a .dll suffix.
50544                 Reported by Mark Junker <mjscod@gmx.de>.
50545
50546         2006-06-17  Bruno Haible  <bruno@clisp.org>
50547
50548                 * config.charset: Update for NetBSD 3.0.
50549
50550         2006-05-17  Bruno Haible  <bruno@clisp.org>
50551
50552                 Cygwin portability.
50553                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
50554
50555         2006-05-16  Bruno Haible  <bruno@clisp.org>
50556
50557                 * localcharset.c [CYGWIN]: Include <windows.h>.
50558                 (get_charset_aliases): For Cygwin, return the same CPxxx
50559                 aliases list as under WIN32.
50560                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
50561                 the environment variables. Fall back to GetACP().
50562
50563         2006-04-05  Bruno Haible  <bruno@clisp.org>
50564
50565                 * config.charset: Update Juan Manuel Guerrero's address.
50566
50567         2005-02-12  Bruno Haible  <bruno@clisp.org>
50568
50569                 * allocsa.h: Add extern "C" for C++.
50570
50571         2005-02-10  Bruno Haible  <bruno@clisp.org>
50572
50573                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
50574                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
50575
50576         2006-07-22  Bruno Haible  <bruno@clisp.org>
50577
50578                 * gettext.h: Update to GNU gettext-0.15.
50579
50580 2006-07-22  Bruno Haible  <bruno@clisp.org>
50581
50582         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
50583         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
50584         lib-prefix.m4, longdouble.m4, ssize_t.m4.
50585
50586 2006-07-21  Eric Blake  <ebb9@byu.net>
50587
50588         * modules/stdlib-safer: New file.
50589         * MODULES.html.sh (File stream based Input/Output): Add
50590         stdlib-safer.
50591
50592 2006-07-21  Eric Blake  <ebb9@byu.net>
50593
50594         * lib/stdlib-safer.h: New file from coreutils, required by
50595         stdlib--.h.
50596
50597 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50598
50599         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50600
50601 2006-07-20  Bruno Haible  <bruno@clisp.org>
50602
50603         * gnulib-tool: Recognize new option --assume-autoconf.
50604         (autoconf_minversion): New variable.
50605         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50606
50607 2006-07-20  Bruno Haible  <bruno@clisp.org>
50608
50609         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50610
50611 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50612
50613         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50614         Reindent and repaginate.
50615
50616 2006-07-19  Derek Price  <derek@ximbiot.com>
50617
50618         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50619         Correct grammar.
50620
50621 2006-07-17  Bruno Haible  <bruno@clisp.org>
50622
50623         * modules/list: New file.
50624         * modules/array-list: New file.
50625         * modules/carray-list, modules/carray-list-tests: New files.
50626         * modules/linked-list, modules/linked-list-tests: New files.
50627         * modules/avltree-list, modules/avltree-list-tests: New files.
50628         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50629         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50630         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50631         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50632         * modules/oset: New file.
50633         * modules/array-oset: New file.
50634         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50635         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50636         * tests/test-carray_list.c: New file.
50637         * tests/test-linked_list.c: New file.
50638         * tests/test-avltree_list.c: New file.
50639         * tests/test-rbtree_list.c: New file.
50640         * tests/test-linkedhash_list.c: New file.
50641         * tests/test-avltreehash_list.c: New file.
50642         * tests/test-rbtreehash_list.c: New file.
50643         * tests/test-avltree_oset.c: New file.
50644         * tests/test-rbtree_oset.c: New file.
50645         * MODULES.html.sh (Container data structures): New section.
50646
50647 2006-07-17  Bruno Haible  <bruno@clisp.org>
50648
50649         * m4/gl_list.m4: New file.
50650
50651 2006-07-17  Bruno Haible  <bruno@clisp.org>
50652
50653         * lib/gl_list.h: New file.
50654         * lib/gl_list.c: New file.
50655         * lib/gl_array_list.h: New file.
50656         * lib/gl_array_list.c: New file.
50657         * lib/gl_carray_list.h: New file.
50658         * lib/gl_carray_list.c: New file.
50659         * lib/gl_linked_list.h: New file.
50660         * lib/gl_linked_list.c: New file.
50661         * lib/gl_anylinked_list1.h: New file.
50662         * lib/gl_anylinked_list2.h: New file.
50663         * lib/gl_avltree_list.h: New file.
50664         * lib/gl_avltree_list.c: New file.
50665         * lib/gl_anyavltree_list1.h: New file.
50666         * lib/gl_anyavltree_list2.h: New file.
50667         * lib/gl_rbtree_list.h: New file.
50668         * lib/gl_rbtree_list.c: New file.
50669         * lib/gl_anyrbtree_list1.h: New file.
50670         * lib/gl_anyrbtree_list2.h: New file.
50671         * lib/gl_anytree_list1.h: New file.
50672         * lib/gl_anytree_list2.h: New file.
50673         * lib/gl_linkedhash_list.h: New file.
50674         * lib/gl_linkedhash_list.c: New file.
50675         * lib/gl_anyhash_list1.h: New file.
50676         * lib/gl_anyhash_list2.h: New file.
50677         * lib/gl_avltreehash_list.h: New file.
50678         * lib/gl_avltreehash_list.c: New file.
50679         * lib/gl_rbtreehash_list.h: New file.
50680         * lib/gl_rbtreehash_list.c: New file.
50681         * lib/gl_anytreehash_list1.h: New file.
50682         * lib/gl_anytreehash_list2.h: New file.
50683
50684         * lib/gl_oset.h: New file.
50685         * lib/gl_oset.c: New file.
50686         * lib/gl_array_oset.h: New file.
50687         * lib/gl_array_oset.c: New file.
50688         * lib/gl_avltree_oset.h: New file.
50689         * lib/gl_avltree_oset.c: New file.
50690         * lib/gl_rbtree_oset.h: New file.
50691         * lib/gl_rbtree_oset.c: New file.
50692         * lib/gl_anytree_oset.h: New file.
50693
50694 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50695
50696         * m4/mkancesdirs.m4: New file.
50697         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50698         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50699         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50700         it.
50701
50702 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50703
50704         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50705         * lib/mkancesdirs.h: New files.
50706         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50707         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50708         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50709         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50710         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50711         callers changed.  Revamp internals significantly, by not
50712         attempting to create directories that are temporarily more
50713         permissive than the final results.  Do not attempt to use
50714         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50715         This removes some race conditions, fixes some bugs, and simplifies
50716         things.  Use new dirchownmod function to do owner and mode changes.
50717         * lib/mkdir-p.h: Likewise.
50718         * lib/modechange.c (octal_to_mode): New function.
50719         (struct mode_change): New member mentioned.
50720         (make_node_op_equals): New arg mentioned.  All callers changed.
50721         (mode_compile): Keep track of which mode bits the user has explicitly
50722         mentioned.
50723         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50724         New arg PMODE_BITS, to keep track of which mode bits the user
50725         mentioned; it treats S_ISUID and S_ISGID speciall.
50726         All callers changed.
50727         * lib/modechange.h: Likewise.
50728
50729 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50730
50731         * MODULES.html.sh: Add mkancestors.
50732         * modules/mkancesdirs: New module.
50733         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50734         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50735         The chdir-safer and afs files are now orphans; I'll remove them
50736         unless someone speaks up.
50737         Add lib/dirchownmod.c, lib/dirchownmod.h.
50738         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50739         Add lchown, mkancesdirs.
50740         (Maintainer): Add self.
50741
50742 2006-07-15  Karl Berry  <karl@gnu.org>
50743
50744         * gnulib-tool: help message wording/arrangement.
50745
50746 2006-07-14  Simon Josefsson  <jas@extundo.com>
50747
50748         * doc/gnulib.texi (Libtool and Windows): New section.
50749
50750 2006-07-12  Simon Josefsson  <jas@extundo.com>
50751
50752         * modules/gendocs (License): Fix license, approved by Karl.
50753
50754 2006-07-12  Eric Blake  <ebb9@byu.net>
50755
50756         * MODULES.html.sh: Add gendocs.
50757
50758 2006-07-11  Eric Blake  <ebb9@byu.net>
50759
50760         * modules/fdl: New module, to install doc/fdl.texi.
50761         * MODULES.html.sh: Add new section for documentation modules.
50762         * gnulib-tool: Avoid space-tab.
50763         (--doc-base): New option, to manage files from doc.
50764
50765 2006-07-11  Eric Blake  <ebb9@byu.net>
50766
50767         * m4/absolute-header.m4: Fix comments to match recent change.
50768
50769 2006-07-11  Eric Blake  <ebb9@byu.net>
50770
50771         * gnulib-tool: List --doc-base before --tests-base.
50772
50773 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50774
50775         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50776
50777 2006-07-11  Bruno Haible  <bruno@clisp.org>
50778
50779         * README: Mention where to put documentation.
50780
50781 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50782
50783         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50784
50785 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50786
50787         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50788         to stdint.m4.
50789
50790 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50791
50792         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50793         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50794         "no/such/file/stdint.h" when there is no such file, so that
50795         the resulting C code can be parsed by dodgy compilers.
50796         Problems reported by Bob Proulx.
50797
50798 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50799
50800         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50801         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50802         macros into the GNU _D_EXACT_NAMLEN.
50803         * lib/savedir.c:  Likewise.
50804         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50805
50806 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50807         and Paul Eggert  <eggert@cs.ucla.edu>
50808
50809         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50810         * m4/savedir.m4:
50811         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50812         macros into the GNU _D_EXACT_NAMLEN.
50813
50814 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50815
50816         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50817         around the absolute name, to work around a problem with the HP-UX
50818         11.23 native C compiler, reported by Bob Proulx.
50819
50820 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50821
50822         * doc/maintain.texi, make-stds.texi: Sync from
50823         <http://savannah.gnu.org/projects/gnustandards>.
50824
50825 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50826
50827         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50828
50829 2006-07-09  Jim Meyering  <jim@meyering.net>
50830
50831         * m4/glob.m4: Remove a doubled word in a comment.
50832
50833 2006-07-09  Jim Meyering  <jim@meyering.net>
50834
50835         * lib/argp-pv.c: Remove a doubled word in a comment.
50836         * lib/check-version.c (check_version): Likewise.
50837         * lib/javacomp.c (compile_java_class): Likewise.
50838
50839 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50840
50841         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
50842         for the benefit of people using Autoconf 2.60.  If you want to
50843         support older Autoconf versions you can copy m4/onceonly_2_57.m4
50844         (or m4/onceonly.m4, if pre-2.57) manually.
50845
50846 2006-07-08  Jim Meyering  <jim@meyering.net>
50847
50848         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
50849         comment.
50850         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
50851         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
50852         comment.
50853
50854 2006-07-08  Jim Meyering  <jim@meyering.net>
50855
50856         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
50857
50858 2006-07-07  Simon Josefsson  <jas@extundo.com>
50859
50860         * tests/test-crc.c: Change expected crc value, the test vector
50861         were probably computed using the old broken crc.c?
50862
50863 2006-07-06  Simon Josefsson  <jas@extundo.com>
50864
50865         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
50866         now the canonical place for the M4 file).
50867
50868         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
50869         from the sys_socket dependency now.
50870
50871         * modules/inet_pton (Files): Ditto.
50872
50873         * modules/inet_ntop (Files): Ditto.
50874
50875 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50876
50877         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
50878         not gl_PREREQ_GETUSERSHELL.
50879
50880 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50881
50882         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
50883         with only one argument, for Autoconf 2.60.
50884         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
50885         expand to nothing, so add a shell command to avoid syntax error.
50886         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50887
50888 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50889
50890         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
50891
50892 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50893
50894         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
50895         no longer needed.  Check for isblank decl.
50896         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
50897         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
50898         of existence.
50899
50900 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50901
50902         * lib/getloadavg.c: Use __VMS, not VMS.
50903         * lib/getopt.c: Likewise.
50904         * lib/getpagesize.h: Likewise.
50905         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
50906         and probably does not work.
50907
50908 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50909
50910         * lib/.cppi-disable: Add wcwidth.
50911         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
50912         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
50913         (ISGRAPH): Remove.  All uses changed to isgraph.
50914         (FOLD) [!defined _LIBC]: Remove special case.
50915         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
50916         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
50917         HAVE_ISBLANK.
50918         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
50919         case.
50920
50921 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50922
50923         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
50924         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
50925         brackets.  Other minor changes to suppress some compiler
50926         warnings.
50927
50928 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50929         and Paul Eggert  <eggert@cs.ucla.edu>
50930
50931         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
50932         of invoking obsolescent AC_HEADER_DIRENT macro.
50933         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
50934         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
50935         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
50936         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
50937         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
50938         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50939         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
50940         * m4/readdir.m4: Remove; no longer needed.
50941
50942 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50943         and Paul Eggert  <eggert@cs.ucla.edu>
50944
50945         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
50946         Don't worry about this obsolete case any more.
50947         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
50948         directories.
50949         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
50950         worry about this obsolete case any more.
50951         * lib/fts.c: Likewise.
50952         * lib/getcwd.c: Likewise.
50953         * lib/glob.h: Likewise.
50954         * lib/savedir.c: Likewise.
50955
50956 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50957
50958         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
50959         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
50960         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
50961         needed.
50962         All uses removed.
50963         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50964         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50965         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
50966         needed.
50967         * m4/getdate.m4 (gl_GETDATE): Likewise.
50968         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50969         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50970         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50971         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50972         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50973         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50974         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
50975         needed.
50976
50977 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50978
50979         * lib/memcasecmp.c: Include <limits.h>.
50980         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
50981         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
50982         Don't assume isdigit succeeds only on '0' through '9'.
50983
50984 2006-07-05  Eric Blake  <ebb9@byu.net>
50985
50986         * modules/getaddrinfo (Depends-on): Add snprintf.
50987
50988 2006-07-05  Eric Blake  <ebb9@byu.net>
50989
50990         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
50991         to avoid 'header present but could not be compiled' on cygwin.
50992
50993 2006-07-05  Eric Blake  <ebb9@byu.net>
50994
50995         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
50996         missing from netdb.h.
50997         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
50998
50999 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51000
51001         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
51002         no longer needed.
51003         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
51004         * m4/getdate.m4 (gl_GETDATE): Likewise.
51005         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51006         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51007         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51008         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51009         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51010
51011 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51012
51013         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
51014         All uses of is_space replaced by isspace.
51015         * lib/exit.h: Don't talk about STDC_HEADERS.
51016         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
51017         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
51018         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
51019         replaced by isprint etc.
51020         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
51021         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51022         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
51023         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
51024         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
51025         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51026
51027 2006-07-05  Bruno Haible  <bruno@clisp.org>
51028
51029         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
51030         the function exists, before testing against AIX.
51031         Reported by Martin Lambers <marlam@marlam.de>.
51032
51033 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51034
51035         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
51036         From Mark D. Baushke.
51037
51038 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51039
51040         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
51041         to the absolute name, not just one, to bypass Sun C 5.8's
51042         "warning: #include of /usr/include/... may be non-portable".
51043
51044 2006-07-04  Eric Blake  <ebb9@byu.net>
51045
51046         * modules/dirname-tests: New test module.
51047         * tests/test-dirname.c: New file, replacing dirname.c
51048         TEST_DIRNAME section that was recently deleted.
51049
51050 2006-07-04  Bruno Haible  <bruno@clisp.org>
51051
51052         Assume ANSI C header files and <ctype.h> functions.
51053         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
51054         (mbsnwidth): Use isprint, iscntrl instead.
51055
51056 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51057
51058         Merge from coreutils.
51059         * MODULES.html.sh: Add xstrtold.
51060         * modules/xstrtold: New file.
51061         * modules/cycle-check (Files): Add lib/same-inode.h.
51062         * modules/dirname (Files): Add m4/double-slash-root.m4.
51063         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
51064         * modules/mkdir-p (Files): Add lib/same-inode.h.
51065         * modules/same (Files): Add lib/same-inode.h.
51066
51067 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51068
51069         * m4/absolute-header.m4: Renamed from full-header-path.m4.
51070         This is to keep the terminology clean; POSIX talks about
51071         "absolute pathnames", not "full pathnames", but the GNU
51072         Coding Standards say to use "path" for something else;
51073         so use "absolute" to keep both sides happy.
51074         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
51075         Set gl_absolute_header, not gl_full_header_path.
51076         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
51077         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
51078         All uses changed.
51079
51080         Merge from coreutils.
51081
51082         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51083
51084         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
51085         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
51086         want to require the building of c-strtod.o.
51087         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
51088         needs -lm directly.
51089         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
51090
51091         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51092
51093         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
51094         --as-needed option if available.  Problem reported by Albert Chin in
51095         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
51096         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
51097         cc merely issues a bunch of annoying warnings for --as-needed
51098         (this problem was reported by Bob Proulx).  Also, try linking with
51099         -lm to detect a bug in binutils 2.16 (this problem was reported
51100         by Ralf Wildenhues).
51101
51102         2006-06-18  Jim Meyering  <jim@meyering.net>
51103
51104         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
51105         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
51106         macro.
51107         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
51108         also check for glibc-2.4's abort-inducing bug.
51109
51110         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
51111         Low-probability clean-up should be to use rmdir to get rid of
51112         the just-created directory, not unlink.
51113
51114         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
51115         configure fail, and request a bug report to inform us about it.
51116         Add a comment that, barring reports to the contrary, in 2007 we'll
51117         assume ftruncate is universally available.
51118
51119         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51120
51121         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
51122
51123         2006-03-12  Jim Meyering  <jim@meyering.net>
51124
51125         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
51126         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
51127         * m4/same.m4 (gl_SAME): Likewise.
51128         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
51129
51130         2006-03-11  Eric Blake  <ebb9@byu.net>
51131
51132         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
51133         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
51134         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
51135         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
51136
51137 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51138
51139         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
51140         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
51141         reported by Mark D. Baushke, one in
51142         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
51143
51144         Merge from coreutils.
51145
51146         * lib/.cppi-disable: Add stdint_.h.
51147         * lib/.cvsignore: Add stdint.h.
51148
51149         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51150
51151         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
51152         both double and long double versions.
51153         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
51154         * lib/xstrtold.c: New file.
51155         * lib/xstrtod.h (xstrtold): New decl.
51156
51157         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51158
51159         * lib/filemode.c (setst): Remove.
51160         (strmode): Rewrite to avoid setst.  This makes the code shorter,
51161         (arguably) clearer, and the generated code is a bit smaller on my
51162         Debian GNU/Linux stable x86 host.
51163
51164         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51165
51166         * lib/filemode.c: Include "filemode.h" first, to test the interface.
51167         Assume that filemode.h includes sys/types.h and sys/stat.h.
51168         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
51169         (ftypelet): Reorder to put common cases first, for efficiency.
51170         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
51171         to do 'M'.
51172         (strmode): Renamed from mode_string, and now stores 12 bytes instead
51173         of 10, for compatibility with FreeBSD.  All callers changed.
51174         (filemodestring): Now stores 12 bytes instead of 10, and sets file
51175         types that can't be deduced solely from st_mode.  First arg is now a
51176         const pointer.
51177         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
51178         (strmode): Renamed from mode_string.
51179         (filemodestring): New decl.
51180         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
51181         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
51182         needed.
51183         (S_ISPORT, S_ISWHT): New macros, if not already defined.
51184
51185         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51186
51187         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
51188         fsusage.h now does that.  Include fsusage.h first, to test interface.
51189         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
51190         at most one method (the old code could have generated decls that
51191         didn't conform to C89, not that this was ever exercised).
51192         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
51193
51194         2006-03-19  Jim Meyering  <jim@meyering.net>
51195
51196         Work even in a chroot where d_ino values for entries in "/"
51197         don't match the stat.st_ino values for the same names.
51198         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
51199         number, iterate through all entries again, using lstat instead.
51200         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
51201         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
51202
51203         * lib/getcwd.c (__getcwd): Clarify a comment.
51204         Use memcpy in place of a call to strcpy.
51205
51206         2006-03-12  Jim Meyering  <jim@meyering.net>
51207
51208         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
51209         matches that of the current directory (which we're about to chdir ".."
51210         out of), then save the dev-ino of the parent, instead.
51211
51212         * lib/same-inode.h (SAME_INODE): New file/macro.
51213         * lib/chdir-safer.c (SAME_INODE): Remove definition.
51214         Include "same-inode.h", instead.
51215         * lib/same.c: Likewise.
51216         * lib/cycle-check.h: Include "same-inode.h".
51217         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
51218         * lib/cycle-check.c (SAME_INODE): Remove definition.
51219         * lib/root-dev-ino.h: Include "same-inode.h".
51220
51221         2006-03-11  Eric Blake  <ebb9@byu.net>
51222
51223         * lib/same.c (same_name): s/base_name/last_component/
51224         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
51225         * lib/filenamecat.c (file_name_concat): Likewise.
51226
51227         2006-03-11  Eric Blake  <ebb9@byu.net>,
51228                     Paul Eggert  <eggert@cs.ucla.edu>
51229
51230         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
51231         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
51232         drive prefix.
51233         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
51234         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
51235         (last_component): New method.
51236         * lib/dirname.c (dir_len): Determine when drive letters need a
51237         subsequent slash.  Preserve // when it is special.
51238         (dir_name): Don't append dot when drive letter is absolute.
51239         [TEST_DIRNAME]: Move into a full-blown gnulib test.
51240         * lib/basename.c (base_name): New semantics - malloc the result.
51241         Preserve // when it is special.  Preserve relative files that look
51242         like drive letters.
51243         (base_len): Preserve // when it is special.
51244         (last_component): New method, similar to old base_name semantics.
51245         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
51246         base_name.  Strip redundant slashes from ///.
51247
51248 2006-07-03  Jim Meyering  <jim@meyering.net>
51249
51250         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
51251         macro is used before the first cycle_check call.
51252
51253 2006-07-03  Eric Blake  <ebb9@byu.net>
51254
51255         * modules/dirname (Depends-on): Add xstrndup.
51256
51257 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51258
51259         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
51260         test cases, so that config.log is a bit easier to follow.
51261
51262 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51263
51264         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
51265         both are 64 bits, since this seems to be the tradition, and this
51266         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
51267         we ever run into a host that prefers long long to long in this
51268         case, we'll need another configure-time test.  Problem reported by
51269         Jim Meyering.
51270
51271 2006-07-02  Eric Blake  <ebb9@byu.net>
51272
51273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
51274
51275 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51276
51277         * modules/inttypes (Depends-on): No longer depends on stdint.
51278         * modules/stdint (Description): Say more about assumptions.
51279         Say that the fast types might differ.  Say macros are used.
51280         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
51281         (Makefile.am): Revise list of substituted symbols to match
51282         new stdint.m4.
51283         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
51284         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
51285         * tests/test-stdint.c (verify_same_types)
51286         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
51287         the code conforms to C99/C89.
51288         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
51289         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
51290
51291 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51292
51293         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
51294         but fix a bug, by requiring at least 64 bits.
51295         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51296         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
51297         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
51298         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
51299
51300         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
51301         changes.  Make 2.59 a prerequisite.  Check and substitute for
51302         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
51303         inttypes.h.  Do not use special include files; just use the
51304         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
51305         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
51306         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
51307         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
51308         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
51309         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
51310         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
51311         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
51312         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
51313         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
51314         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
51315         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
51316         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
51317         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
51318         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
51319         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
51320         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
51321         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
51322         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
51323         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
51324         WINT_MAX.  Check for C99 conformance more strictly, by detecting
51325         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
51326         not check for things that C99 does not require, e.g., int8_t.  If
51327         a test isn't needed unless <stdint.h> isn't working, and is
51328         unlikely to be needed for any other reason, then don't do it
51329         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
51330         size_t, since we assume C89 freestanding at least.  Do not check
51331         for sig_atomic_t, wchar_t, or wint_t, since the code now does
51332         the right thing even if the types are not defined.  Instead use:
51333         (gl_STDINT_TYPE_PROPERTIES): New macro.
51334         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
51335         testing whether <sys/types.h> clashes, as Autoconf does this for
51336         us now.  All uses removed.
51337         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
51338         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
51339         (gl_CHECK_TYPE_SAME):
51340         Remove; no longer needed.
51341         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
51342         exists, since we'll return 0 anyway in that case.
51343         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
51344
51345 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51346
51347         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
51348         possible collision with system files.
51349         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
51350         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
51351         WCHAR_MIN and WCHAR_MAX in this case.
51352         (<stddef.h>): Do not include; no longer needed.
51353         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
51354         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
51355         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
51356         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
51357         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
51358         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
51359         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
51360         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
51361         !defined(__c99))]: Include in this case too, since it's harmless
51362         now.
51363         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
51364         dangerous to do so.
51365         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
51366         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
51367         (_STDINT_MIN, _STDINT_MAX): New macros.
51368         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
51369         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
51370         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
51371         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
51372         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
51373         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
51374         macros, not typedefs; this simplifies things quite a bit.
51375         Use long int for all types narrower than int64_t.
51376         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
51377         Define in terms of long long int or int64_t or long int,
51378         not int64_t or int32_t.  This saves some compile-time testing.
51379         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
51380         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
51381         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
51382         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
51383         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
51384         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
51385         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
51386         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
51387         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
51388         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
51389         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51390         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51391         undef any previous version and define our own version, for
51392         simplicity and consistency with the new macros for types.
51393         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51394         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51395         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
51396         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
51397         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
51398         @WINT_T_SUFFIX@ to keep things simple here.
51399         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
51400         Simplify by assuming typical 8/16/32/64 host, since we're
51401         already doing that elsewhere anyway.
51402         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
51403         and assume long long int is 64 bits if available.  This
51404         speeds up 'configure'.
51405
51406 2006-07-01  Eric Blake  <ebb9@byu.net>
51407
51408         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
51409         Reported by Andreas Buening.
51410
51411 2006-07-01  Eric Blake  <ebb9@byu.net>
51412
51413         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
51414
51415 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51416
51417         * lib/getaddrinfo.c: fixed typo
51418
51419 2006-06-29  Jim Meyering  <jim@meyering.net>
51420
51421         * modules/strftime (Maintainer): Add my name, since with the
51422         FPRINTFTIME changes strftime.c has forked from glibc.
51423
51424 2006-06-29  Eric Blake  <ebb9@byu.net>
51425
51426         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
51427
51428 2006-06-29  Eric Blake  <ebb9@byu.net>
51429
51430         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
51431
51432 2006-06-29  Eric Blake  <ebb9@byu.net>
51433
51434         * lib/stat_.h: New file.
51435
51436 2006-06-29  Eric Blake  <ebb9@byu.net>
51437
51438         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
51439         unused static function.
51440
51441 2006-06-29  Eric Blake  <ebb9@byu.net>
51442
51443         * doc/functions.texi (Function Portability): Document missing lstat
51444         on mingw.
51445
51446 2006-06-29  Eric Blake  <ebb9@byu.net>
51447
51448         * MODULES.html.sh: Add sys_stat.
51449         * modules/sys_stat: New module.
51450         * modules/mkstemp (Depends-on): Add sys_stat.
51451
51452 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51453
51454         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
51455
51456 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51457
51458         * m4/c-bs-a.m4: Removed.
51459
51460 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51461
51462         * lib/strftime.c: Assume strftime() exists.
51463
51464 2006-06-29  Derek Price  <derek@ximbiot.com>
51465
51466         * modules/c-bs-a: Removed - \a is C89.
51467         * MODULES.html.sh: Remove c-bs-a.
51468
51469 2006-06-29  Bruno Haible  <bruno@clisp.org>
51470
51471         * modules/wcwidth (License): Change to LGPL.
51472
51473 2006-06-28  Simon Josefsson  <jas@extundo.com>
51474
51475         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
51476         on _WIN32.
51477
51478         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
51479         getnameinfo.
51480
51481 2006-06-28  Simon Josefsson  <jas@extundo.com>
51482
51483         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
51484
51485 2006-06-28  Simon Josefsson  <jas@extundo.com>
51486
51487         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
51488         functions there.  It will succeed on Windows XP, but on Windows
51489         2000 and (presumably) earlier, it will fail, and use the internal
51490         re-implementation.
51491         (use_win32_p): New function.
51492         (getaddrinfo): Use strtoul on servname, to support numeric ports.
51493         Support AI_NUMERICSERV to disable getservbyname.
51494         (getnameinfo): New function, only supports
51495         NI_NUMERICHOST|NI_NUMERICSERV for now.
51496
51497         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
51498         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
51499         getnameinfo.
51500
51501 2006-06-28  Eric Blake  <ebb9@byu.net>
51502
51503         * modules/wcwidth: New file.
51504         * modules/mbchar (Depends-on): Add wcwidth.
51505         * modules/mbswidth (Depends-on): Add wcwidth.
51506         * MODULES.html.sh: Add wcwidth.
51507
51508 2006-06-28  Eric Blake  <ebb9@byu.net>
51509
51510         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
51511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
51512
51513 2006-06-28  Eric Blake  <ebb9@byu.net>
51514
51515         * lib/xvasprintf.h: Fix comments.
51516
51517 2006-06-28  Eric Blake  <ebb9@byu.net>
51518
51519         * lib/mbchar.h (wcwidth): Include wcwidth.h.
51520         * lib/mbswidth.c (wcwidth): Move from here...
51521         * lib/wcwidth.h: ...to this new file.
51522
51523 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51524
51525         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
51526
51527         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
51528         it's obsolete.
51529         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
51530
51531 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51532
51533         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
51534         Autoconf 2.60 says this stuff was obsolete.
51535
51536 2006-06-28  Bruno Haible  <bruno@clisp.org>
51537
51538         * modules/wcwidth (Files): Add m4/wchar_t.m4.
51539
51540 2006-06-28  Bruno Haible  <bruno@clisp.org>
51541
51542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
51543         gt_TYPE_WCHAR_T.
51544
51545 2006-06-28  Bruno Haible  <bruno@clisp.org>
51546
51547         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
51548         declaration for wcwidth.
51549         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
51550
51551 2006-06-28  Bruno Haible  <bruno@clisp.org>
51552
51553         * lib/mkdtemp.c [MINGW]: Include <io.h>.
51554         (mkdir): Define using _mkdir.
51555
51556 2006-06-28  Bruno Haible  <bruno@clisp.org>
51557
51558         * lib/getaddrinfo.h: Fix POSIX URL.
51559         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
51560         _WIN32.
51561         (use_win32_p): Make static.
51562         (getaddrinfo): Reject service name if it is empty or does not consist
51563         solely of decimal digits, or if its value is > 65535.
51564         (getnameinfo): Remove useless casts.
51565
51566 2006-06-27  Simon Josefsson  <jas@extundo.com>
51567
51568         * modules/sys_select: New file, suggested by Bruno Haible, Paul
51569         Eggert and Martin Lambers.
51570
51571 2006-06-27  Simon Josefsson  <jas@extundo.com>
51572
51573         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
51574         Eggert and Martin Lambers.
51575
51576 2006-06-27  Bruno Haible  <bruno@clisp.org>
51577
51578         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
51579         result to 0, not to empty.
51580         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
51581
51582 2006-06-27  Bruno Haible  <bruno@clisp.org>
51583
51584         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
51585
51586 2006-06-26  Simon Josefsson  <jas@extundo.com>
51587
51588         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
51589         present.
51590
51591 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51592
51593         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51594         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51595         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51596
51597 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51598
51599         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51600
51601 2006-06-26  Bruno Haible  <bruno@clisp.org>
51602
51603         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51604
51605 2006-06-26  Bruno Haible  <bruno@clisp.org>
51606
51607         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51608
51609 2006-06-26  Bruno Haible  <bruno@clisp.org>
51610
51611         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51612         SGI C compiler in pre-C99 mode.
51613         Suggested by Mark D. Baushke and Larry Jones.
51614
51615 2006-06-26  Bruno Haible  <bruno@clisp.org>
51616
51617         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51618         WCHAR_MAX.
51619         Reported by Mark D. Baushke and Larry Jones.
51620
51621 2006-06-26  Bruno Haible  <bruno@clisp.org>
51622
51623         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51624         in pre-C99 mode.
51625         Suggested by Mark D. Baushke and Larry Jones.
51626
51627 2006-06-23  Simon Josefsson  <jas@extundo.com>
51628             Bruno Haible  <bruno@clisp.org>
51629
51630         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51631         Emit mostlyclean-local rule.
51632         (func_emit_tests_Makefile_am): Likewise.
51633         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51634
51635 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51636
51637         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51638
51639 2006-06-23  Bruno Haible  <bruno@clisp.org>
51640
51641         * tests/test-stdint.c: Update to match ISO C 99 Technical
51642         Corrigendum 1.
51643
51644 2006-06-23  Bruno Haible  <bruno@clisp.org>
51645
51646         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51647
51648 2006-06-23  Bruno Haible  <bruno@clisp.org>
51649
51650         * lib/stdint_.h: Treat IRIX like OpenBSD.
51651
51652 2006-06-23  Bruno Haible  <bruno@clisp.org>
51653
51654         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51655         ISO C 99 Technical Corrigendum 1.
51656
51657 2006-06-22  Simon Josefsson  <jas@extundo.com>
51658
51659         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51660         MinGW.
51661
51662 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51663
51664         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51665         needed.  Some compiler complained about some of them.  Problem reported
51666         by Larry Jones in
51667         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51668
51669 2006-06-21  Simon Josefsson  <jas@extundo.com>
51670
51671         * tests/test-getaddrinfo.c: New file.
51672
51673         * modules/getaddrinfo-tests: New file.
51674
51675         * MODULES.html.sh: Add inet_pton.
51676
51677         * modules/inet_pton: New file.
51678
51679 2006-06-21  Simon Josefsson  <jas@extundo.com>
51680
51681         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51682         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51683         of using the (limited) gnulib implementation on Windows XP.
51684
51685         * m4/inet_pton.m4: New file.
51686
51687 2006-06-21  Simon Josefsson  <jas@extundo.com>
51688
51689         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51690         variable.
51691
51692         * lib/socket_.h: Don't define WINVER.
51693
51694         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51695         slightly modified to work in gnulib.
51696
51697 2006-06-21  Simon Josefsson  <jas@extundo.com>
51698
51699         * doc/gnulib.texi (Windows sockets): Add.
51700
51701 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51702
51703         * lib/read-file.c (fread_file): Start with buffer allocation of
51704         0 bytes rather than 1 byte; this simplifies the code.
51705         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51706         code to free buffer and save/restore errno.
51707         (internal_read_file): Remove unused local.
51708
51709 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51710
51711         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51712         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51713         Problem reported by Denis Excoffier in
51714         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51715
51716 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51717
51718         * modules/sys_socket, modules/socklen: Include sys/types since
51719         FreeBSD 4.x's sys/socket.h needs it.
51720
51721 2006-06-19  Simon Josefsson  <jas@extundo.com>
51722
51723         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51724
51725 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51726
51727         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51728
51729 2006-06-19  Bruno Haible  <bruno@clisp.org>
51730
51731         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51732         and FULL_PATH_INTTYPES_H in angle brackets.
51733         Reported by Mark D. Baushke <mdb@gnu.org>.
51734
51735 2006-06-17  Eric Blake  <ebb9@byu.net>
51736
51737         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51738         errno.
51739
51740 2006-06-17  Bruno Haible  <bruno@clisp.org>
51741
51742         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51743         <sys/inttypes.h>.
51744
51745 2006-06-17  Bruno Haible  <bruno@clisp.org>
51746
51747         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51748         whether errno is declared. Assume <errno.h> declares errno.
51749
51750 2006-06-17  Bruno Haible  <bruno@clisp.org>
51751
51752         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51753
51754 2006-06-17  Bruno Haible  <bruno@clisp.org>
51755
51756         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51757         problem on Solaris 2.5.1.
51758
51759 2006-06-16  Eric Blake  <ebb9@byu.net>
51760
51761         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51762         * lib/unicodeio.c [!defined errno]: Likewise.
51763         * lib/strtol.c [!defined errno]: Likewise.
51764         * lib/strtod.c [!defined errno]: Likewise.
51765
51766 2006-06-15  Eric Blake  <ebb9@byu.net>
51767
51768         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51769
51770 2006-06-15  Eric Blake  <ebb9@byu.net>
51771
51772         * config/srclist.txt (ssize_t.m4): Lose sync.
51773
51774 2006-06-15  Bruno Haible  <bruno@clisp.org>
51775
51776         * modules/stdint (Files): Include m4/full-header-path.m4,
51777         m4/size_max.m4, m4/wchar_t.m4.
51778         (Makefile.am): Many more substitutions.
51779         * modules/stdint-tests: New file.
51780         * tests/test-stdint.c: New file.
51781
51782 2006-06-15  Bruno Haible  <bruno@clisp.org>
51783
51784         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51785         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51786         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51787         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51788         gl_CHECK_TYPE_SAME): New macros.
51789
51790 2006-06-15  Bruno Haible  <bruno@clisp.org>
51791
51792         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51793
51794 2006-06-15  Bruno Haible  <bruno@clisp.org>
51795
51796         * lib/stdint_.h: Rewritten to be fully auto-configured.
51797         Fixes bug on HP-UX/IA64.
51798
51799 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51800
51801         * lib/getdate.y (__attribute__): Don't define if already defined.
51802         Problem reported by Larry Jones.
51803         * lib/utimens.c (__attribute__): Likewise.
51804
51805 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51806
51807         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51808         reported by Andreas Schwab.
51809
51810 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51811             Bruno Haible  <bruno@clisp.org>
51812
51813         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51814         check for the declaration of strnlen and a run test that exposes the
51815         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51816         rpl_strndup.
51817
51818 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51819             Bruno Haible  <bruno@clisp.org>
51820
51821         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51822
51823 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51824
51825         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51826         compile test, for Tru64 4.0D.
51827
51828 2006-05-28  Karl Berry  <karl@gnu.org>
51829
51830         * config/srclist.txt (printf-args.c): lose sync.
51831
51832 2006-05-26  Martin Lambers  <marlam@marlam.de>
51833
51834         * lib/getpass.c: Updates the test for the native W32 API, and adds
51835         missing includes, thus fixing compilation warnings.
51836
51837 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51838
51839         * lib/exclude.c (exclude_fnmatch): New function.
51840         (excluded_file_name): Call exclude_fnmatch.
51841         * lib/exclude.h (excluded_file_name): New prototype
51842
51843 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
51844
51845         * lib/tempname.c (small_open, large_open): New macros.
51846         (__open, __open64) [!_LIBC]: Remove.
51847         (__gen_tempname): Use small_open and large_open instead of __open
51848         and __open64.  This fixes a portability bug on HP-UX 11.11i
51849         reported by Simon Wing-Tang in
51850         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
51851
51852 2006-05-24  Bruno Haible  <bruno@clisp.org>
51853
51854         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
51855         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
51856         Reported by Thorsten Maerz <torte@netztorte.de> via
51857         Aaron Stone <aaron@serendipity.cx>.
51858
51859 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51860
51861         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
51862         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
51863         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
51864         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
51865         not really conditional on the cache.
51866         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
51867
51868 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51869
51870         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
51871         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
51872         (my_usleep): Don't mishandle maximum value.
51873
51874 2006-05-19  Jim Meyering  <jim@meyering.net>
51875
51876         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
51877
51878 2006-05-17  Bruno Haible  <bruno@clisp.org>
51879
51880         Cygwin portability.
51881         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
51882
51883 2006-05-17  Bruno Haible  <bruno@clisp.org>
51884
51885         * lib/stdint_.h: Fix recognition of Cygwin.
51886
51887 2006-05-15  Bruno Haible  <bruno@clisp.org>
51888
51889         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
51890         on libtool patch by Ralf Wildenhues.
51891
51892 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51893
51894         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
51895         test for C99 conformance; (bool) 0.5 is an integer constant
51896         expression, but (bool) -0.5 is not.  Problem reported by Fedor
51897         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
51898
51899 2006-05-11  Simon Josefsson  <jas@extundo.com>
51900
51901         * m4/xvasprintf.m4: Fix obvious typo.
51902
51903 2006-05-11  Jim Meyering  <jim@meyering.net>
51904
51905         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
51906         James Lemley.
51907
51908 2006-05-10  Simon Josefsson  <jas@extundo.com>
51909
51910         * lib/md4.c: Typo fix, update copyright years.
51911         (K1, K2): Don't use L because it turn computations into 64-bit on
51912         64-bit platforms.
51913
51914 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
51915
51916         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
51917         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
51918         unwanted sign propagation, e.g., on hosts with 64-bit int.
51919         There still are some problems with reeelly weird theoretical hosts
51920         (e.g., 33-bit int) but it's not worth worrying about now.
51921         * lib/sha1.c (rol): Likewise.
51922         (K1, K2, K3, K4): Remove unnecessary L suffix.
51923
51924 2006-05-10  Bruno Haible  <bruno@clisp.org>
51925
51926         * lib/des.c: Cast to avoid warnings.
51927
51928 2006-05-09  Bruno Haible  <bruno@clisp.org>
51929
51930         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
51931         (Depends-on): Depend also on xsize, stdarg.
51932         (configure.ac): Add gl_XVASPRINTF.
51933
51934 2006-05-09  Bruno Haible  <bruno@clisp.org>
51935
51936         * m4/xvasprintf.m4: New file.
51937
51938 2006-05-09  Bruno Haible  <bruno@clisp.org>
51939
51940         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
51941         (EOVERFLOW): Define fallback value.
51942         (xstrcat): New function.
51943         (xvasprintf): Recognize the special case of a string concatenation.
51944
51945 2006-05-08  Eric Blake  <ebb9@byu.net>
51946
51947         * gnulib-tool (func_version): Base copyright year on CVS date.
51948         (func_emit_copyright_notice): New function.
51949         (func_emit_lib_Makefile_am): Use it.
51950         (func_emit_tests_Makefile_am): Likewise.
51951         (func_import): Likewise.
51952
51953 2006-05-08  Bruno Haible  <bruno@clisp.org>
51954
51955         * modules/stdarg: New file.
51956         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
51957
51958 2006-05-08  Bruno Haible  <bruno@clisp.org>
51959
51960         * m4/stdarg.m4: New file, from GNU gettext.
51961
51962 2006-05-08  Bruno Haible  <bruno@clisp.org>
51963
51964         * config/srclist.txt (build-aux/config.rpath): different from latest
51965         release.
51966
51967 2006-05-08  Bruno Haible  <bruno@clisp.org>
51968
51969         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
51970
51971 2006-05-05  Jim Meyering  <jim@meyering.net>
51972
51973         * m4/warning.m4: New file, derived from bison's file by the same name.
51974
51975 2006-05-03  Bruno Haible  <bruno@clisp.org>
51976
51977         * lib/stdint_.h: Shorter URL.
51978         * lib/inttypes.h: Likewise.
51979
51980 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51981
51982         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
51983
51984 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51985
51986         * lib/verify.h: Document the internals better.  Most of this change
51987         was written by Bruno Haible.
51988
51989 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51990
51991         * doc/verify.texi: New file, partly based on a proposal by
51992         Bruno Haible.
51993
51994 2006-05-02  Bruno Haible  <bruno@clisp.org>
51995
51996         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
51997         test from here...
51998         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
51999
52000 2006-04-29  Bruno Haible  <bruno@clisp.org>
52001
52002         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
52003         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
52004
52005 2006-04-29  Bruno Haible  <bruno@clisp.org>
52006
52007         * gnulib-tool: Make --update option actually work.
52008
52009 2006-04-29  Bruno Haible  <bruno@clisp.org>
52010
52011         * doc/gcd.texi: New file.
52012         * doc/gnulib.texi: Include it.
52013
52014 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52015
52016         * lib/getdate.y (get_date): When adding relative date, start with the
52017         initial time, not with the result of the first mktime call.
52018
52019 2006-04-25  Bruno Haible  <bruno@clisp.org>
52020
52021         * gnulib-tool (func_import): Output the include directives in three
52022         blocks, sorted separately.
52023         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52024
52025 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52026
52027         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
52028         to define main with arguments, for C++.  Reported by Eric Blake.
52029         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52030         Prefer 'int main ()' to 'int main (void)', for C++.
52031         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
52032         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
52033         for 'main', for C99 and C++.
52034
52035 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52036
52037         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
52038         Don't assume that exit status -1 is valid.
52039         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52040         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52041         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
52042         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
52043         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
52044         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
52045         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
52046         functions can be used without declaring them, or that you can
52047         exit with status -1.
52048         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
52049
52050 2006-04-24  Karl Berry  <karl@gnu.org>
52051
52052         * config/srclist.txt (longdouble.m4): sync lost.
52053
52054 2006-04-24  Eric Blake  <ebb9@byu.net>
52055
52056         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
52057
52058 2006-04-24  Bruno Haible  <bruno@clisp.org>
52059
52060         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
52061         poll() implementation in AIX.
52062         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52063
52064 2006-04-24  Bruno Haible  <bruno@clisp.org>
52065
52066         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
52067         assigned exactly once.
52068
52069 2006-04-23  Claudio Fontana  <claudio@gnu.org>
52070             Bruno Haible  <bruno@clisp.org>
52071
52072         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
52073         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
52074         for AM_CPPFLAGS.
52075
52076 2006-04-23  Bruno Haible  <bruno@clisp.org>
52077
52078         * modules/copy-file: Depend on unistd.
52079         * modules/execute: Likewise.
52080         * modules/fatal-signal: Likewise.
52081         * modules/findprog: Likewise.
52082         * modules/mkdtemp : Likewise.
52083         * modules/pipe: Likewise.
52084         * modules/wait-process: Likewise.
52085
52086 2006-04-23  Bruno Haible  <bruno@clisp.org>
52087
52088         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
52089         condition was already detected.
52090         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52091
52092 2006-04-23  Bruno Haible  <bruno@clisp.org>
52093
52094         * lib/copy-file.c: Include <unistd.h> unconditionally.
52095         * lib/execute.c: Likewise.
52096         * lib/fatal-signal.c: Likewise.
52097         * lib/findprog.c: Likewise.
52098         * lib/mkdtemp.c: Likewise.
52099         * lib/pipe.h: Likewise.
52100         * lib/pipe.c: Likewise.
52101         * lib/wait-process.h: Likewise.
52102
52103 2006-04-23  Bruno Haible  <bruno@clisp.org>
52104
52105         * gnulib-tool (func_usage): Fix --import description. Document
52106         --update.
52107         (func_import): Create temporary file in a temporary directory, if
52108         --dry-run is specified. Silence errors from 'grep' when there are no
52109         m4 files in $m4dir.
52110         (func_create_testdir): Silence errors from 'grep' when there are no
52111         m4 files in $m4dir.
52112         Reported by Karl Berry <karl@freefriends.org>.
52113
52114 2006-04-20  Bruno Haible  <bruno@clisp.org>
52115
52116         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
52117         one argument, so that the code will be portable to Autoconf 2.60.
52118         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
52119         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52120         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
52121
52122 2006-04-19  Derek Price  <derek@ximbiot.com>
52123             Eric Blake  <ebb9@byu.net>
52124
52125         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
52126         rather than "/full/path.h".  Update comment to match.  Shorten &
52127         generalize m4_translit call via AS_TR_CPP.
52128
52129 2006-04-19  Derek Price  <derek@ximbiot.com>
52130             Eric Blake  <ebb9@byu.net>
52131
52132         * lib/inttypes.h: Correct grammar in comment.
52133
52134 2006-04-18  Derek Price  <derek@ximbiot.com>
52135             Paul Eggert  <eggert@cs.ucla.edu>
52136
52137         * modules/inttypes: New file.
52138         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
52139
52140 2006-04-18  Derek Price  <derek@ximbiot.com>
52141             Paul Eggert  <eggert@cs.ucla.edu>
52142
52143         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
52144         New files.
52145
52146 2006-04-18  Derek Price  <derek@ximbiot.com>
52147             Paul Eggert  <eggert@cs.ucla.edu>
52148
52149         * lib/inttypes.h: New file.
52150         * lib/strtoimax.c: Assume <inttypes.h>.
52151
52152 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
52153
52154         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
52155         isn't mounted.  Problem reported by Kir Kolyshkin.
52156
52157 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52158
52159         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
52160         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
52161         Derek R. Price.
52162         * lib/regex.h (RE_DUP_MAX): Update comment to match current
52163         implementation.
52164
52165 2006-04-12  Eric Blake  <ebb9@byu.net>
52166
52167         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
52168         is now done automatically by the corresponding Autoconf macro.
52169
52170 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
52171
52172         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
52173         time_r.h.
52174
52175 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52176
52177         Merge regex changes from libc, removing some of our
52178         POSIX-conformance changes that were rejected and redoing them in a
52179         less-intrusive way.
52180
52181         * lib/regcomp.c (re_compile_internal, init_dfa):
52182         Length arg is now size_t, not Idx.  All uses changed.
52183         (peek_token): Forward decl now says internal_function.
52184         (__re_error_msgid, __re_error_msgid_idx):
52185         Now static rather than extern with attribute_hidden.
52186         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
52187         For some reason libc prefers K&R style defns for external functions.
52188         (regerror) [!defined _LIBC]: Likewise.
52189         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
52190         (seek_collating_symbol_entry, lookup_collation_sequence_value):
52191         (build_range_exp, build_collating_symbol):
52192         Use K&R-style defn.
52193         (re_compile_fastmap): Use '\0' to memset, not 0.
52194         (utf8_sb_map): Make the calculations more obvious.
52195         (init_dfa, parse_bracket_exp, build_charclass_op):
52196         Call calloc and cast result, as glibc does.
52197         (init_word_char, fetch_token, peek_token, peek_token_bracket):
52198         (build_range_exp, build_collating_symbol):
52199         Now internal functions.
52200
52201         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
52202
52203         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
52204         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
52205         Don't depend on VMS; depend on __VMS instead, for POSIX
52206         namespace cleanness.
52207         (regoff_t): Define to ssize_t, not long int.
52208
52209         Remove the REG_ macros named below.  Instead, make the old names
52210         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
52211         __USE_GNU_REGEX.
52212         (REG_BACKSLASH_ESCAPE_IN_LISTS):
52213         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
52214         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
52215         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
52216         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
52217         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
52218         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
52219         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
52220         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
52221         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
52222         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
52223         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
52224         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
52225         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
52226         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
52227         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
52228         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
52229         (REG_NREGS):
52230         Remove.  All uses replaced by the old RE_* names.
52231         (RE_BACKSLASH_ESCAPE_IN_LISTS):
52232         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
52233         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
52234         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
52235         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
52236         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
52237         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
52238         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
52239         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
52240         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
52241         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
52242         Don't bother having these macros be independent of each others'
52243         values, since they no longer exist in the POSIX name space.
52244
52245         Rename the following member names back to their old names,
52246         unless !__USE_GNU_REGEX.  All uses changed back.
52247         (buffer): Renamed from re_buffer.
52248         (allocated): Renamed from re_allocated.
52249         (used): Renamed from re_used.
52250         (syntax): Renamed from re_syntax.
52251         (fastmap): Renamed from re_fastmap.
52252         (translate): Renamed from re_translate.
52253         (can_be_null): Renamed from re_can_be_null.
52254         (regs_allocated): Renamed from re_regs_allocated.
52255         (fastmap_accurate): Renamed from re_fastmap_accurate.
52256         (no_sub): Renamed from re_no_sub.
52257         (not_bol): Renamed from re_not_bol.
52258         (not_eol): Renamed from re_not_eol.
52259         (newline_anchor): Renamed from re_newline_anchor.
52260         (num_regs): Renamed from rm_num_regs.
52261         (start): Renamed from rm_start.
52262         (end): Renamed from rm_end.
52263
52264         (free_state): Move up a bit.
52265
52266         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
52267         #define to be empty.
52268         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
52269         when that is what is intended.
52270         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
52271         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
52272         (MAX): New macro.
52273         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
52274         All uses changed back to re_malloc, etc.  It's now the caller's
52275         responsibility to check for overflow; all callers changed.
52276         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
52277         (re_x2nrealloc): Remove.
52278         (free_state): Remove decl.
52279
52280         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
52281         (re_set_registers, re_exec):
52282         Use K&R-style defn.
52283
52284         2006-01-31  Roland McGrath  <roland@redhat.com>
52285
52286         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
52287         Reported by Mike Frysinger <vapier@gentoo.org>.
52288
52289         2006-01-15  Andreas Jaeger  <aj@suse.de>
52290
52291         [BZ #1950]
52292         * lib/regex_internal.c (re_string_reconstruct): Adjust for
52293         build_wcs_upper_buffer change.
52294         (build_wcs_upper_buffer): Change return type.
52295
52296         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
52297
52298         * lib/regex_internal.h: Include <stdint.h> if available.
52299
52300         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
52301
52302         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
52303
52304         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52305
52306         * lib/regcomp.c: Adjust for changed secondary hash function.
52307
52308         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
52309
52310         * lib/regex.h: Pretty printing.
52311         Clean up namespace a bit.
52312
52313         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
52314
52315         * lib/regexec.c (update_cur_sifted_state, check_arrival,
52316         check_arrival_add_next_nodes): Avoid using uninitialized variable.
52317
52318         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52319                     Ulrich Drepper  <drepper@redhat.com>
52320
52321         [BZ #1302]
52322         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
52323         changed.
52324         (bitset_word_t): Renamed from bitset_word.  All uses changed.
52325
52326         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
52327
52328         [BZ #281]
52329         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
52330         * lib/regcomp.c: Remove unnecessary uses of
52331         unsigned RE_TRANSLATE_TYPE.
52332         * lib/regex_internal.h: Likewise.
52333         * lib/regex_internal.c: Likewise.
52334         * lib/regexec.c: Likewise.
52335         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
52336
52337         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
52338
52339         * lib/regexec.c (find_recover_state): Remove unnecessary
52340         initialization.
52341         (transit_state_bkref): Make DFA a const pointer.
52342         (get_subexp): Likewise.
52343         (check_arrival): Likewise.
52344         (update_cur_sifted_state): Likewise.
52345         (re_search_internal): Likewise.
52346         (prune_impossible_nodes): Likewise.
52347         (acquire_init_state_context): Likewise.
52348         (proceed_next_node): Likewise.
52349         (set_regs): Likewise.
52350         (free_fail_stack_return): Likewise.
52351         (check_arrival_expand_ecl): Mark DFA parameter as const.
52352         (check_arrival_expand_ecl_sub): Likewise.
52353         (check_subexp_limits): Likewise.
52354         (sub_epsilon_src_nodes):  Likewise.
52355         (add_epsilon_src_nodes):  Likewise.
52356         (merge_state_array): Likewise.
52357         (update_regs): Likewise.
52358         (build_trtable): Likewise.
52359         (sift_states_backward): Mark MCTX parameter as const.
52360         (build_sifted_states): Likewise.
52361         (update_cur_sifted_state): Likewise.
52362         (sift_states_mkref): Likewise.
52363         (check_arrival_expand_ecl): Mark eclosure as const.
52364         (check_dst_limits_calc_pos_1): Likewise.
52365         * lib/regex_internal.h (re_match_context_t): Make dfa a const
52366         pointer.
52367
52368         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
52369
52370         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
52371         (transit_state_sb): Likewise.
52372         (transit_state_mb): Likewise.
52373         (sift_states_iter_mb): Likewise.
52374         (check_arrival_add_next_nodes): Likewise.
52375         (check_node_accept_bytes): Change first parameter to pointer-to-const.
52376         [_LIBC] (re_search_2_stub): Use mempcpy.
52377
52378         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
52379         mbrtowc for very simple UTF-8 case.
52380
52381         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
52382         a pointer-to-const.
52383         (re_acquire_state_context): Likewise.
52384         * lib/regex_internal.h: Adjust prototypes.
52385
52386         * lib/regex.c: Prevent using C++ compilers.
52387
52388         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
52389         (re_acquire_state_context): Likewise.
52390
52391 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52392
52393         * modules/regex (Depends-on): Add ssize_t.
52394
52395 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52396
52397         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
52398         translation table.
52399
52400 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52401
52402         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
52403
52404 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
52405             Bruno Haible  <bruno@clisp.org>
52406
52407         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
52408         <sys/types.h> and <inttypes.h>.
52409
52410 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52411
52412         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
52413         `__error_t_defined', so argp.h will not typedef the former.
52414
52415 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
52416
52417         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
52418         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
52419         glibc names.  Even if glibc is changed to conform to POSIX, the
52420         traditional names will be available anyway, since regex depends on
52421         the extensions module.  Also, fix a longstanding typo in the
52422         implementation of Spencer ERE test #75 from grep 2.3.  Problems
52423         reported by Emanuele Giaquinta.  Also, change sense of cached
52424         variable, so that the message makes sense.
52425
52426 2006-03-24  Simon Josefsson  <jas@extundo.com>
52427
52428         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
52429         including some doc fixes.
52430         (base64_encode_alloc): Fix +1 bug on allocation failures.
52431
52432 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52433
52434         * lib/base64.c (base64_encode): Do not read past end of array with
52435         unsanitized input on systems with CHAR_BIT > 8.
52436
52437 2006-03-24  Eric Blake  <ebb9@byu.net>
52438
52439         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
52440
52441 2006-03-22  Karl Berry  <karl@gnu.org>
52442
52443         * config/srclist.txt (*setenv.[ch]): get from coreutils.
52444         * config/srclistvars.sh (COREUTILS): new var.
52445
52446 2006-03-17  Jim Meyering  <jim@meyering.net>
52447
52448         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
52449         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
52450
52451 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52452
52453         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
52454         no longer needs it.  Instead, check that regoff_t is as least
52455         as wide as ptrdiff_t.
52456
52457         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
52458         so that our regex.h stays compatible with the installed regex.
52459         This is helpful for installers who configure --without-included-regex.
52460         Problem reported by Emanuele Giaquinta.
52461
52462 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52463
52464         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
52465         Typedef to long int, not to off_, as POSIX will likely change
52466         in that direction.
52467
52468 2006-03-15  Eric Blake  <ebb9@byu.net>
52469
52470         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
52471
52472 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52473
52474         * lib/argp-help.c (validate_uparams): Fix typo
52475         * lib/argp-parse.c (argp_default_options): Consistently begin help
52476         messages with a lowercase letter.
52477
52478 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
52479
52480         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
52481         overrun buffers and shouldn't be used (much as gets shouldn't be
52482         used).
52483         * lib/time_r.c (asctime_r, ctime_r): Likewise.
52484
52485 2006-03-08  Simon Josefsson  <jas@extundo.com>
52486
52487         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
52488         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52489
52490 2006-03-08  Simon Josefsson  <jas@extundo.com>
52491
52492         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
52493         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52494
52495 2006-03-08  Simon Josefsson  <jas@extundo.com>
52496
52497         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
52498         signal that configure disabled the device.
52499
52500 2006-03-08  Simon Josefsson  <jas@extundo.com>
52501
52502         * build-aux/maint.mk: Fix refresh-po, to handle no translated
52503         languages.
52504
52505 2006-03-07  Simon Josefsson  <jas@extundo.com>
52506
52507         * modules/getopt (Depends-on): Add unistd.
52508
52509         * modules/unistd: New file.
52510
52511 2006-03-07  Simon Josefsson  <jas@extundo.com>
52512
52513         * modules/gc-random: New file.
52514
52515 2006-03-07  Simon Josefsson  <jas@extundo.com>
52516
52517         * m4/unistd_h.m4: New file.
52518
52519 2006-03-07  Simon Josefsson  <jas@extundo.com>
52520
52521         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
52522         test to be side-effect free by storing the result in the cache
52523         variable gl_cv_lib_readline, and moving the assignment of
52524         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
52525         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52526
52527 2006-03-07  Simon Josefsson  <jas@extundo.com>
52528
52529         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
52530         error on missing devices (the functions will return an error).
52531
52532         * m4/gc.m4: Move random stuff to gc-random.m4
52533
52534 2006-03-07  Simon Josefsson  <jas@extundo.com>
52535
52536         * lib/unistd_.h: New file.
52537
52538 2006-03-07  Simon Josefsson  <jas@extundo.com>
52539
52540         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
52541
52542 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52543
52544         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
52545         Problem reported by Juan Manuel Guerrero.
52546
52547 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52548
52549         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
52550         the unistd module.
52551         * lib/getlogin_r.c: Likewise.
52552         * lib/getlogin_r.h: Likewise.
52553         * lib/glob.c: Likewise.
52554         * lib/pagealign_alloc.c: Likewise.
52555         * lib/unistd_.h: Remove; no longer needed.
52556
52557 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52558
52559         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52560         Add unistd.
52561         * modules/c-stack (Depends-on): Add unistd.
52562         * modules/getlogin_r: Likewise.
52563         * modules/glob: Likewise.
52564         * modules/pagealign_alloc: Likewise.
52565         * modules/unistd (Files): Remove lib/unistd_.h.
52566         (EXTRA_DIST): Remove.
52567         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
52568         need unistd_.h.
52569         (MOSTLYCLEANFILES): Remove unistd.h-t.
52570
52571 2006-03-03  Simon Josefsson  <jas@extundo.com>
52572
52573         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
52574
52575 2006-03-03  Simon Josefsson  <jas@extundo.com>
52576
52577         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
52578         libidn and bison.
52579
52580 2006-03-03  Simon Josefsson  <jas@extundo.com>
52581
52582         * build-aux/maint.mk: Add indent target.
52583
52584 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
52585
52586         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
52587         our replacement poll.h in any case, to avoid a differing
52588         declaration from a system header.  Seen on AIX.
52589
52590 2006-03-01  Simon Josefsson  <jas@extundo.com>
52591
52592         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52593         <kasal@ucw.cz>.
52594
52595 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52596
52597         * modules/gettime (Depends-on): Add extensions module.
52598         * modules/nanosleep (Depends-on): Likewise.
52599         * modules/settime (Depends-on): Likewise.
52600
52601 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52602
52603         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52604         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52605         pedantically.
52606         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52607         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52608
52609         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52610         not "==".  Reported by Ralf Wildenhues.
52611
52612 2006-03-01  Karl Berry  <karl@gnu.org>
52613
52614         * doc/Copyright/request-*: new files, synced from gnuorg.
52615
52616 2006-03-01  Karl Berry  <karl@gnu.org>
52617
52618         * config/srclist.txt (Copyright/*): new entries.
52619
52620 2006-02-28  Simon Josefsson  <jas@extundo.com>
52621
52622         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52623
52624 2006-02-27  Simon Josefsson  <jas@extundo.com>
52625
52626         * lib/base64.h: Indent #define's.  From Jim Meyering
52627         <jim@meyering.net>.
52628
52629 2006-02-27  Jim Meyering  <jim@meyering.net>
52630
52631         Revert the change of 2006-02-24, so these files can continue
52632         to be sync'd from gettext.
52633         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52634         of `config.h'.
52635
52636 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52637
52638         * modules/intprops: New file.
52639         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52640         Add intprops.
52641         * modules/getloadavg (Files): Remove lib/intprops.h.
52642         (Depends-on): Add intprops.
52643         * modules/human: Likewise.
52644         * modules/inttostr: Likewise.
52645         * modules/openat: Likewise.
52646         * modules/sig2str: Likewise.
52647         * modules/userspec: Likewise.
52648         * modules/utimecmp: Likewise.
52649         * modules/xnanosleep: Likewise.
52650         * modules/xstrtol: Likewise.
52651
52652 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52653
52654         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52655         * modules/lock-tests (TESTS): Use $(EXEEXT).
52656         * modules/tls-tests: Likewise.
52657         * modules/argp-tests: Likewise.
52658         (check_PROGRAMS): New var, replacing...
52659         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52660
52661 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52662
52663         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52664         `config.h'.
52665
52666 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52667
52668         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52669
52670 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52671
52672         Sync from coreutils.
52673         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52674         gl_CHDIR_SAFER.
52675
52676 2006-02-22  Jim Meyering  <jim@meyering.net>
52677
52678         Sync from coreutils.
52679         * m4/chdir-safer.m4: New file.
52680
52681 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52682
52683         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52684         AT_FDCWD exceeds INT_MAX.
52685         * lib/openat.h (AT_FDCWD): Likewise.
52686
52687 2006-02-17  Eric Blake  <address@hidden>
52688
52689         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52690
52691 2006-02-16  Simon Josefsson  <jas@extundo.com>
52692
52693         * modules/getaddrinfo (Depends-on): Add sys_socket.
52694
52695 2006-02-15  Simon Josefsson  <jas@extundo.com>
52696
52697         * build-aux/maint.mk: Add dsyntax-check rule.
52698
52699 2006-02-15  Eric Blake  <ebb9@byu.net>
52700
52701         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52702         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52703         'present but cannot compile' warnings on cygwin.
52704         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52705         use ws2tcpip.h if sys/socket.h works.
52706         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52707         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52708
52709 2006-02-14  Simon Josefsson  <jas@extundo.com>
52710
52711         * modules/maintainer-makefile (Files): Rename.
52712
52713         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52714         and (the local) Makefile.cfg to maint-cfg.mk.
52715
52716         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52717         to the latter.
52718
52719         * modules/maintainer-makefile: New module.
52720
52721         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52722         severaly stripped to make it possible to build it up from scratch
52723         with reliable tests.
52724
52725         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52726         fixes to permit overriding the default actions when configure and
52727         makefile are not available.
52728
52729 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52730
52731         Sync from coreutils.
52732         * modules/lstat (Depends-on): Don't depend on xalloc.
52733         (License): Change from GPL to LGPL, since this is now simply a
52734         replacement for a libc function.
52735
52736 2006-02-14  Jim Meyering  <jim@meyering.net>
52737
52738         Sync from coreutils.
52739
52740         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52741         failure on deficient systems, and simplify gnulib lgpl dependencies.
52742         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52743         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52744
52745         * lib/xalloc-die.c: Remove unused definition of N_.
52746
52747 2006-02-14  Jim Meyering  <jim@meyering.net>
52748
52749         Sync from coreutils.
52750         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52751         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52752         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52753         double-quote uses of that variable, to accommodate the rare case in
52754         which getmntent is available in none of the libraries checked.  This
52755         happens at least on FreeBSD 5.0.
52756
52757 2006-02-13  Simon Josefsson  <jas@extundo.com>
52758
52759         * gnulib-tool (Usage): Fix --import, from
52760         karl@freefriends.org (Karl Berry).
52761
52762 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52763
52764         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52765
52766 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52767
52768         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52769         "autoupdate" on 2005-12-12.
52770
52771 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52772
52773         * modules/closeout (Depends-on): Remove atexit.
52774
52775 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52776
52777         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52778         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52779
52780 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52781
52782         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52783         __EXTENSIONS__ if this causes compilation to fail.  Problem
52784         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52785         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52786
52787 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52788
52789         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52790         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52791         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52792         All uses changed.
52793
52794 2006-01-26  Simon Josefsson  <jas@extundo.com>
52795
52796         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52797         prototype is visible on mingw32.
52798
52799         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52800         for mingw32.
52801
52802         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52803         mingw32).
52804
52805 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52806
52807         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52808         attempt to open for write; this always fails, at least on POSIX
52809         hosts.  This reinstates the 2006-01-09 change, which was
52810         inadvertently removed.
52811
52812 2006-01-26  Bruno Haible  <bruno@clisp.org>
52813
52814         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52815         Reported by Paul Eggert.
52816
52817 2006-01-26  Bruno Haible  <bruno@clisp.org>
52818             Paul Eggert  <eggert@cs.ucla.edu>
52819
52820         * lib/stdbool_.h (_Bool)
52821         [(! (defined __cplusplus || defined __BEOS__)
52822           && !defined __GNUC__
52823           && !(defined __HP_cc || defined __xlc__
52824                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52825                || defined __sgi))]:
52826         #define to signed char in these cases too; this simplifies
52827         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52828         etc., separately) and makes it more conservative.
52829
52830 2006-01-25  Simon Josefsson  <jas@extundo.com>
52831
52832         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52833         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
52834         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
52835
52836 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52837
52838         * lib/argp-namefrob.h: Bugfix. Remove stray #
52839
52840 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52841
52842         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
52843         so that we test the test.
52844         Check for yet another HP-UX cc bug involving *bool |= bool.
52845
52846 2006-01-25  Karl Berry  <karl@gnu.org>
52847
52848         * config/srclist.txt (vasnprintf.c): sync lost.
52849
52850 2006-01-25  Jim Meyering  <jim@meyering.net>
52851
52852         Sync from the stable (b5) branch of coreutils:
52853
52854         * lib/fts.c (fts_children): Don't let close() clobber errno from
52855         failed fchdir().
52856
52857         * lib/fts.c (fts_stat): When following a symlink-to-directory,
52858         don't necessarily interpret stat-fails+lstat-succeeds as indicating
52859         a dangling symlink.  That can also happen at least for ELOOP.
52860         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
52861         FYI, this bug predates the inclusion of fts.c in coreutils.
52862
52863         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
52864         in their own block, so pre-c99 compilers don't object.
52865
52866         Avoid the double-free (first in fts_read, second in fts_close) that
52867         would occur when an `active' directory is made inaccessible (e.g.,
52868         via chmod a-x) during a traversal.
52869         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52870         before returning.  Reproduce this failure by
52871         mkdir -p a/b; cd a; chmod a-x . b
52872         Reported by Stavros Passas.
52873
52874 2006-01-25  Jim Meyering  <jim@meyering.net>
52875
52876         * lib/fileblocks.c: Remove more useless parentheses.
52877         * lib/readutmp.h: Likewise.
52878
52879 2006-01-25  Bruno Haible  <bruno@clisp.org>
52880
52881         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
52882         warnings.
52883         Reported by Paul Eggert.
52884
52885 2006-01-25  Bruno Haible  <bruno@clisp.org>
52886
52887         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
52888         rid of a trap command. For Solaris sh.
52889         Reported by Mark D. Baushke <mdb@gnu.org>.
52890
52891 2006-01-24  Simon Josefsson  <jas@extundo.com>
52892
52893         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
52894         Bruno.
52895
52896 2006-01-24  Karl Berry  <karl@gnu.org>
52897
52898         * config/srclist.txt (argp-namefrob.h): sync lost.
52899
52900 2006-01-24  Jim Meyering  <jim@meyering.net>
52901
52902         * modules/openat (Files): Add lib/intprops.h.
52903         From Mark D. Baushke.
52904
52905 2006-01-24  Jim Meyering  <jim@meyering.net>
52906
52907         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
52908         Reported by Mark D. Baushke.
52909
52910 2006-01-24  Jim Meyering  <jim@meyering.net>
52911
52912         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
52913
52914 2006-01-24  Bruno Haible  <bruno@clisp.org>
52915
52916         * modules/strnlen (Maintainer): Change from glibc to all.
52917
52918 2006-01-24  Bruno Haible  <bruno@clisp.org>
52919
52920         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
52921         Patch by Paul Eggert.
52922
52923 2006-01-24  Bruno Haible  <bruno@clisp.org>
52924
52925         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
52926         already has it.
52927         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
52928         2005-11-26.
52929
52930         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
52931         'signed char' to avoid problems with the built-in _Bool type.
52932         Reported by Paul Eggert on 2005-11-26.
52933
52934 2006-01-24  Bruno Haible  <bruno@clisp.org>
52935
52936         * gnulib-tool (func_import): Avoid constructing complicated sed
52937         expressions inside backquote.
52938         Report and solution by Mark D. Baushke <mdb@gnu.org>.
52939
52940 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
52941
52942         These changes imported from libc.
52943         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
52944         test and two separate function calls.
52945         * lib/strndup.c (__strndup): Add libc_hidden_def.
52946
52947 2006-01-23  Simon Josefsson  <jas@extundo.com>
52948
52949         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
52950         Remove the test_*_SOURCES variable: automake infers it by default.
52951         * modules/tls-tests: Likewise.
52952
52953 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52954
52955         Work around porting bugs reported by Dieter in
52956         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
52957         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
52958         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
52959         Include "getopt.h" first, to check interface.
52960         (getenv): Declare only if defined HAVE_DECL_GETENV &&
52961         !HAVE_DECL_GETENV.
52962         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
52963         (__strndup): Revert to K&R-style function dfns, the glibc style.
52964         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
52965         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
52966         Include strnlen.h first, to get prototype properly.
52967         (strnlen): Renamed from __strnlen.
52968         Remove weak alias.
52969
52970 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52971
52972         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
52973
52974 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52975
52976         * config/srclist.txt: Adjust to reflect glibc reorganization.
52977         This affects only comments.
52978
52979 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52980
52981          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
52982          Reported by Bruce Korb <bkorb@gnu.org>.
52983
52984 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52985
52986         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
52987         to pacify gcc -Wswitch-default.
52988
52989 2006-01-22  Bruno Haible  <bruno@clisp.org>
52990
52991         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
52992         temporary buffer for sprintf, take into account the precision also
52993         for 'd', 'i', 'u', 'o', 'x', 'X'.
52994
52995 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52996
52997         * modules/argp-tests: New module
52998         * tests/test-argp.c: New file
52999         * tests/test-argp-2.sh: New file
53000
53001 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53002
53003         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
53004         (__argp_base_name): Removed
53005         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
53006         typo.
53007         (__argp_base_name): Provide macro definition or extern declaration
53008         depending on the configuration
53009
53010 2006-01-20  Simon Josefsson  <jas@extundo.com>
53011
53012         * modules/inet_ntop (Depends-on): Depend on sys_socket.
53013
53014 2006-01-20  Simon Josefsson  <jas@extundo.com>
53015
53016         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
53017
53018 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53019
53020         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
53021         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
53022         Suggested by Bruno Haible.
53023
53024 2006-01-20  Karl Berry  <karl@gnu.org>
53025
53026         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
53027         until changes propagate, I guess.
53028
53029 2006-01-19  Simon Josefsson  <jas@extundo.com>
53030
53031         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
53032
53033 2006-01-19  Simon Josefsson  <jas@extundo.com>
53034
53035         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
53036
53037 2006-01-19  Simon Josefsson  <jas@extundo.com>
53038
53039         * gnulib-tool: Set check_PROGRAMS.
53040
53041         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53042         modules/des-tests, modules/gc-arcfour-tests,
53043         modules/gc-arctwo-tests, modules/gc-des-tests,
53044         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53045         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53046         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53047         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53048         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53049         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
53050         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
53051         test_*_SOURCES.
53052
53053 2006-01-18  Simon Josefsson  <jas@extundo.com>
53054
53055         * modules/socklen (Depends-on): Depend on sys_socket.
53056
53057 2006-01-18  Simon Josefsson  <jas@extundo.com>
53058
53059         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53060         modules/des-tests, modules/gc-arcfour-tests,
53061         modules/gc-arctwo-tests, modules/gc-des-tests,
53062         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53063         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53064         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53065         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53066         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53067         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
53068         $(EXEEXT) to automake TESTS variable, for mingw32.
53069
53070 2006-01-17  Simon Josefsson  <jas@extundo.com>
53071
53072         * modules/socklen (Include): Need sys/socket.h.
53073
53074 2006-01-17  Bruno Haible  <bruno@clisp.org>
53075
53076         * modules/ssize_t (Include): Add <sys/types.h>.
53077
53078 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
53079
53080         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
53081         it's not portable and it doesn't work with cross-compiles.
53082         Problem reported by Bruno Haible.  Fix missing-$ typo in
53083         'test "gl_cv_ignore_unused_libraries" ...' that prevented
53084         -zignore from being used with Sun's C compiler.
53085
53086 2006-01-12  Simon Josefsson  <jas@extundo.com>
53087
53088         * lib/base64.c: Fix warning, reported by Bruno Haible
53089         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
53090
53091 2006-01-12  Bruno Haible  <bruno@clisp.org>
53092
53093         * modules/ldd: New file.
53094         * build-aux/ldd.sh.in: New file.
53095         * MODULES.html.sh (Support for building libraries and executables): Add
53096         ldd.
53097
53098 2006-01-12  Bruno Haible  <bruno@clisp.org>
53099
53100         * m4/ldd.m4: New file.
53101
53102 2006-01-12  Bruno Haible  <bruno@clisp.org>
53103
53104         * gnulib-tool (func_import, func_create_testdir): Don't go into an
53105         endless loop while replacing $auxdir with build-aux.
53106
53107 2006-01-11  Simon Josefsson  <jas@extundo.com>
53108
53109         * lib/stdint_.h (SIZE_MAX): Add missing (.
53110
53111 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
53112
53113         Sync from coreutils.
53114         * lib/md5.c: Fix commentary typos.
53115         (alignof, UNALIGNED_P): No need for a GCC-specific version.
53116         * lib/md5.h (__attribute__): Remove; unused.
53117         * lib/sha1.c: Fix commentary to match md5 better.
53118         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
53119         so that we don't need to worry about alignment.  All uses changed.
53120         This merges the 2005-10-28 md5 change into sha1.
53121
53122 2006-01-11  Jim Meyering  <jim@meyering.net>
53123
53124         Sync from coreutils.
53125         * lib/md5.c (OP): Fix spacing.
53126
53127 2006-01-11  Bruno Haible  <bruno@clisp.org>
53128
53129         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53130         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
53131         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
53132
53133 2006-01-11  Bruno Haible  <bruno@clisp.org>
53134
53135         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53136         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
53137         the "early" section as well.
53138
53139 2006-01-11  Bruno Haible  <bruno@clisp.org>
53140
53141         Avoid "ar: no archive members specified" error on MacOS X.
53142         * gnulib-tool (func_modules_add_dummy): New function.
53143         (func_import, func_create_testdir): Invoke it.
53144
53145 2006-01-11  Bruno Haible  <bruno@clisp.org>
53146
53147         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
53148         with $auxdir in AC_CONFIG_FILES statements.
53149
53150 2006-01-11  Bruno Haible  <bruno@clisp.org>
53151
53152         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53153         Initialize also noinst_HEADERS to empty.
53154
53155 2006-01-11  Bruno Haible  <bruno@clisp.org>
53156
53157         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
53158         variables.
53159         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
53160         autoreconf.
53161
53162 2006-01-11  Bruno Haible  <bruno@clisp.org>
53163
53164         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
53165         overridable by the user.
53166         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53167
53168 2006-01-10  Simon Josefsson  <jas@extundo.com>
53169
53170         * modules/sys_socket: New file.
53171
53172 2006-01-10  Simon Josefsson  <jas@extundo.com>
53173
53174         * m4/sys_socket_h.m4: New file.
53175
53176 2006-01-10  Simon Josefsson  <jas@extundo.com>
53177
53178         * lib/socket_.h: New file.
53179
53180 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53181
53182         * modules/readutmp (Maintainer): Add myself.
53183
53184 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53185
53186         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
53187         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
53188         People who are still concerned with buggy memcmp implementations
53189         can invoke gl_FUNC_MEMCMP themselves.
53190
53191 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53192
53193         * lib/regex_internal.h (BITSET_WORD_BITS):
53194         Work around a bug in 64-bit PGC (before version 6.1-2), where the
53195         preprocessor mishandles large unsigned values as if they were signed.
53196         Problem reported by Claudio Fontana in
53197         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
53198
53199 2006-01-10  Jim Meyering  <jim@meyering.net>
53200
53201         Avoid the double-free (first in fts_read, second in fts_close) that
53202         would occur when an `active' directory is made inaccessible (e.g.,
53203         via chmod a-x) during a traversal.
53204         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53205         before returning.  Reproduce this failure by
53206         mkdir -p a/b; cd a; chmod a-x . b
53207         Reported by Stavros Passas.
53208
53209         Sync from coreutils.
53210         * lib/sha1.c: Tweak grammar in a comment.
53211
53212 2006-01-10  Jim Meyering  <jim@meyering.net>
53213
53214         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
53215         Patch by Joerg Sonnenberger.
53216
53217 2006-01-10  Bruno Haible  <bruno@clisp.org>
53218
53219         * modules/readutmp: Depend on module free.
53220         * modules/strtok_r: Depend on module restrict.
53221
53222 2006-01-10  Bruno Haible  <bruno@clisp.org>
53223
53224         * modules/gettext (configure.ac): Add an invocation of
53225         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
53226
53227 2006-01-10  Bruno Haible  <bruno@clisp.org>
53228
53229         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
53230         Reported by Werner Lemberg <wl@gnu.org>.
53231
53232 2006-01-10  Bruno Haible  <bruno@clisp.org>
53233
53234         * lib/localcharset.c: Update from GNU gettext.
53235
53236 2006-01-10  Bruno Haible  <bruno@clisp.org>
53237
53238         * lib/argp.h (__const): Remove macro. Use const instead.
53239         * lib/argp-fmtstream.h (__const): Likewise.
53240         * lib/glob_.h (__const): Remove macro.
53241         * lib/glob-libc.h: Use const instead of __const.
53242
53243 2006-01-10  Bruno Haible  <bruno@clisp.org>
53244
53245         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
53246         variable.
53247         Needed to avoid an automake error regarding the 'gettext' module.
53248
53249 2006-01-09  Simon Josefsson  <jas@extundo.com>
53250
53251         * modules/inet_ntop (Depends-on): Add restrict.
53252
53253 2006-01-09  Simon Josefsson  <jas@extundo.com>
53254
53255         * modules/gc-rijndael-tests (License): Put under LGPL.
53256
53257         * modules/gc-des-tests (License): Likewise.
53258
53259         * modules/gc-arcfour-tests (License): Likewise.
53260
53261         * modules/gc-arctwo-tests (License): Likewise.
53262
53263         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
53264
53265         * modules/gc-hmac-sha1-tests (Files): Likewise.
53266
53267         * modules/gc-hmac-md5-tests (License): Likewise.
53268
53269         * modules/gc-sha1-tests (License): Likewise.
53270
53271         * modules/gc-md5-tests (License): Likewise.
53272
53273         * modules/gc-md4-tests (License): Likewise.
53274
53275         * modules/gc-md2-tests (License): Likewise.
53276
53277         * modules/gc-tests (License): Likewise.
53278
53279         * modules/des-tests (License): Likewise.
53280
53281         * modules/md4-tests (License): Likewise.
53282
53283         * modules/md2-tests (License): Likewise.
53284
53285 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53286
53287         Sync from coreutils:
53288
53289         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
53290         * modules/lib-ignore: New file.
53291         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
53292         chdir-safer.m4, lchmod.m4.
53293         * modules/openat: Add mkdirat.c, openat-priv.h.
53294
53295 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53296
53297         Sync from coreutils.
53298         * m4/lib-ignore.m4: New file.
53299         * m4/lchmod.m4: New file.
53300
53301 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53302
53303         Sync from coreutils.
53304         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
53305         for write access: POSIX says that must fail.
53306         * lib/fts.c (diropen): Likewise.
53307         * lib/save-cwd.c (save_cwd): Likewise.
53308         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
53309         well, for minor improvements on hosts that lack O_DIRECTORY.
53310         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
53311         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
53312         Fall back on chown if open failed with EACCES.
53313
53314         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
53315         Report an error at compile-time if only a 1-second nominal clock
53316         resolution is found.
53317
53318         * lib/lchmod.h: New file.
53319         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
53320         (make_dir_parents): Use lchown rather than chown, and
53321         lchmod rather than chmod.
53322
53323         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
53324         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
53325         "proc" reported by n0dalus.
53326
53327         * lib/mountlist.c: Include <limits.h>.
53328         (dev_from_mount_options)
53329         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
53330         New function.  It no longer assumes "dev=" has the System V meaning
53331         on Linux (since it doesn't).  It also parses "dev=" more carefully.
53332         (read_file_system_list)
53333         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
53334         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
53335         dev= in that case.
53336
53337         * lib/posixtm.h (PDS_PRE_2000): New macro.
53338         * lib/posixtm.c (year): Arg is now syntax_bits rather than
53339         allow_century.  All usages changed.  Reject dates outside the range
53340         1969-1999 if PDS_PRE_2000 is used.
53341
53342 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53343
53344         Sync from coreutils.
53345         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
53346         (Time of day items): Mention the possibility of leap seconds.
53347         Problem reported by Dr. David Alan Gilbert.
53348
53349 2006-01-09  Jim Meyering  <jim@meyering.net>
53350
53351         Sync from coreutils.
53352
53353         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
53354
53355         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
53356
53357         * lib/modechange.c (mode_compile): Reject an invalid mode string
53358         that starts with an octal digit.  From Andreas Gruenbacher.
53359
53360         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
53361         and dup to open_safer and dup_safer, respectively.
53362         (openat_permissive): Fix typo in comment.
53363
53364         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
53365         "gettext.h"; either no longer needed or are guaranteed by openat.h.
53366         (_): Remove; no longer needed.
53367         (openat): Renamed from rpl_openat; no need for rpl_openat
53368         since openat.h renames openat for us.
53369         Replace most of the body with a call to openat_permissive,
53370         to avoid duplicate code.
53371         Port to (probably hypothetical) environments were mode_t is
53372         wider than int.
53373         (openat_permissive): Require mode arg, so that we can check
53374         types better.  Put it just after flags.  Change cwd failure
53375         indicator from pointer-to-bool to pointer-to-errno-value.
53376         All callers changed.
53377         Invoke openat_save_fail and/or openat_restore_fail if
53378         cwd_errno is null, so that openat can call us.
53379         (openat_permissive, fdopendir, fstatat, unlinkat):
53380         Simplify errno handling to avoid some duplicate code,
53381         as it's OK to set errno on success.
53382         * lib/openat.h: Revamp code so that function macros depend on
53383         __OPENAT_PREFIX only, not also on AT_FDCWD.
53384         (openat_ro): Remove.  Caller changed to use openat_permissive.
53385         (openat_permissive): Now a macro, if not a function.
53386         (openat_restore_fail, openat_save_fail): Now always functions,
53387         since mkdirat needs them even if __OPENAT_PREFIX is defined.
53388
53389         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
53390         and openat.c.
53391         * lib/mkdirat.c: Include openat-priv.h.
53392         Remove definitions of macros defined therein.
53393         * lib/openat.c: Likewise.
53394
53395         * lib/mkdirat.c (mkdirat): New file and function.
53396         * lib/openat.h (mkdirat): Declare.
53397
53398         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
53399
53400         * lib/openat.h (openat_permissive): Declare.
53401         (openat_ro): Define.
53402
53403         * lib/openat.c (EXPECTED_ERRNO): New macro.
53404         (openat_permissive): New function -- used in remove.c rewrite.
53405         (all functions): Set errno just before returning, only if there
53406         was an actual failure.
53407         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
53408
53409         Emulate openat-family functions using Linux's procfs, if possible.
53410         Idea and some code based on Ulrich Drepper's glibc changes.
53411
53412         * lib/openat.c: (BUILD_PROC_NAME): New macro.
53413         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
53414         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
53415         before falling back on save_cwd and restore_cwd.
53416         (fdopendir, fstatat, unlinkat): Likewise.
53417
53418         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
53419         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
53420
53421         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
53422         as second argument to va_arg.  Otherwise, some versions of gcc
53423         warn that `if this code is reached, the program will abort'.
53424
53425 2006-01-09  Jim Meyering  <jim@meyering.net>
53426
53427         Sync from coreutils.
53428         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
53429         Require openat-priv.h.
53430
53431 2006-01-09  Bruno Haible  <bruno@clisp.org>
53432
53433         * modules/strnlen (Include): Use strnlen.h.
53434
53435 2006-01-09  Bruno Haible  <bruno@clisp.org>
53436
53437         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
53438
53439 2006-01-09  Bruno Haible  <bruno@clisp.org>
53440
53441         * lib/sysexit_.h (EX_OK): New macro.
53442         Suggested by Martin Lambers <marlam@marlam.de>.
53443
53444 2006-01-09  Bruno Haible  <bruno@clisp.org>
53445
53446         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
53447         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
53448
53449 2006-01-09  Bruno Haible  <bruno@clisp.org>
53450
53451         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
53452         numbers.
53453
53454 2006-01-09  Bruno Haible  <bruno@clisp.org>
53455
53456         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
53457         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
53458         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
53459         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
53460
53461 2006-01-09  Bruno Haible  <bruno@clisp.org>
53462
53463         * build-aux/javacomp.sh.in: New file, moved from lib/.
53464         * modules/javacomp-script (Files): Update.
53465         (configure.ac): Add AC_CONFIG_FILES invocation.
53466         (EXTRA_DIST): Remove variable.
53467
53468         * build-aux/javaexec.sh.in: New file, moved from lib/.
53469         * modules/javaexec (Files): Update.
53470         (configure.ac): Add AC_CONFIG_FILES invocation.
53471         (EXTRA_DIST): Remove javaexec.sh.in.
53472
53473         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
53474         * modules/csharpcomp-script (Files): Update.
53475         (configure.ac): Add AC_CONFIG_FILES invocation.
53476         (EXTRA_DIST): Remove variable.
53477
53478         * build-aux/csharpexec.sh.in: New file, moved from lib/.
53479         * modules/csharpexec (Files): Update.
53480         (configure.ac): Add AC_CONFIG_FILES invocation.
53481         (EXTRA_DIST): Remove csharpexec.sh.in.
53482
53483 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53484
53485         Sync from coreutils.
53486
53487         Add POSIX ACL support
53488         * lib/acl.h (copy_acl, set_acl): Add declarations.
53489         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
53490         systems other than Linux.
53491         (chmod_or_fchmod): New function: use fchmod when possible,
53492         and chmod otherwise.
53493         (file_has_acl): Add a POSIX ACL implementation, with a
53494         Linux-specific subcase.
53495         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
53496         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
53497         acls are unsupported.
53498         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
53499         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
53500         are unsupported.
53501
53502 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53503
53504         Sync from coreutils.
53505         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
53506
53507 2006-01-07  Bruno Haible  <bruno@clisp.org>
53508
53509         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
53510         gl_EARLY.
53511
53512 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53513
53514         * lib/strftime.c (tzname): Don't declare if it is already #defined.
53515         Problem reported for Mingw by Mark Junker.
53516
53517 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53518
53519         * README: Gnulib normally doesn't generate a tarball.
53520
53521 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53522
53523         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
53524         long int, not int, for nanosecond counts, so that people who are
53525         used to POSIX struct timespec won't be surprised.  Reported by Jim
53526         Meyering.
53527
53528 2005-12-28  Bruno Haible  <bruno@clisp.org>
53529
53530         * build-aux/config.rpath: Update from GNU gettext.
53531
53532 2005-12-16  Jim Meyering  <jim@meyering.net>
53533
53534         * modules/fprintftime: New module.
53535         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
53536
53537 2005-12-16  Jim Meyering  <jim@meyering.net>
53538
53539         * m4/fprintftime.m4: New file.
53540
53541 2005-12-16  Jim Meyering  <jim@meyering.net>
53542
53543         * lib/fprintftime.c, lib/fprintftime.h: New files.
53544
53545 2005-12-15  Simon Josefsson  <jas@extundo.com>
53546
53547         * modules/socklen (configure.ac): Fix M4 macro name, to align with
53548         new m4/socklen.m4.
53549
53550 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53551
53552         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
53553         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
53554
53555 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53556
53557         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
53558         * lib/argp-help.c (fill_in_uparams): Check if the constructed
53559         struct uparams is valid. Fall back to the default values if it is
53560         not.
53561
53562 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53563
53564         * modules/argp (Files): Add argp-pin.c
53565         (Depends-on): dirname
53566         (lib_SOURCES): Add argp-pin.c
53567
53568 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53569
53570         * m4/argp.m4:  Check if program_invocation_name and
53571         program_invocation_short_name are declared and define appropriate
53572         macros if they are not.
53573
53574 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53575
53576         * lib/argp-help.c (__argp_base_name): New function
53577         (__argp_short_program_name): Rewrite using __argp_base_name
53578         * lib/argp-namefrob.h: Define program_invocation_name and
53579         program_invocation_short_name if requested
53580         (__argp_base_name): Add prototype
53581         * lib/argp-parse.c (argp_def): Use gettext wrappers
53582         (argp_default_parser): Use __argp_base_name
53583         * lib/argp-pin.c: New file. Defines program_invocation_name and
53584         program_invocation_short_name on systems that lack them.
53585
53586 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53587
53588         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
53589         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53590         porting problem reported by Georg Schwarz in
53591         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53592
53593 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53594
53595         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): 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-05  Bruno Haible  <bruno@clisp.org>
53601
53602         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53603         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53604         Reported by Mark Junker <mjscod@gmx.de>.
53605
53606 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53607
53608         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53609         Use implementation from Albert Chin, with some
53610         comments/corrections by Stepan Kasal and myself.
53611
53612 2005-12-02  Bruno Haible  <bruno@clisp.org>
53613
53614         * gnulib-tool (func_import): Accept GPLed build tool modules when
53615         --lgpl is given.
53616         * modules/csharpcomp-script: New file.
53617         * modules/csharpcomp: Depend on it.
53618         * modules/javacomp-script: New file.
53619         * modules/javacomp: Depend on it.
53620         Suggested by Simon Josefsson.
53621
53622 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53623
53624         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53625         statement, to work around an HP-UX 10.20 compiler bug reported by
53626         Peter O'Gorman.
53627
53628 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53629
53630         * modules/savedir (Depends-on): Add openat.
53631
53632 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53633
53634         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53635         (uintmax_t) [defined uintmax_t]: Do not declare.
53636         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53637         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53638         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53639         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53640         sake of portability to weird hosts that C allows (though we don't
53641         know of any practical examples).
53642
53643         * lib/savedir.h (fdsavedir): New decl.
53644         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53645         contains most of the former guts of savedir.
53646         (savedir): Use savedirstream.
53647         Include "openat.h".
53648
53649 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53650
53651         * modules/obstack (Files): Add m4/ulonglong.m4.
53652         Problem reported by Davide Angelocola.
53653
53654 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53655
53656         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53657         coreutils no longer futzes with rounding modes.
53658
53659 2005-11-14  Jim Meyering  <jim@meyering.net>
53660
53661         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53662         replacement of mkstemp.
53663
53664 2005-11-10  Simon Josefsson  <jas@extundo.com>
53665
53666         * lib/readline.c: Remove EOL.
53667
53668 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53669
53670         * modules/gethrxtime (Depends-on): Add gettime.
53671
53672 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53673
53674         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53675         or gettimeofday; no longer needed.
53676
53677 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53678
53679         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53680         time business.
53681         (gethrxtime) [! (HAVE_NANOUPTIME
53682         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53683         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53684         our own approximation.
53685
53686 2005-11-08  Eric Blake  <ebb9@byu.net>
53687
53688         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53689
53690 2005-11-08  Eric Blake  <ebb9@byu.net>
53691
53692         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53693
53694 2005-11-04  Bruno Haible  <bruno@clisp.org>
53695
53696         * gnulib-tool: Implement --update mode.
53697
53698 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53699
53700         Fix porting problem reported by Theodoros V. Kalamatianos.
53701         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53702         Don't assume that futimes failing means we must fail.
53703
53704 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53705
53706         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53707         variables to suggest the intended function of the PATH_MAX check.
53708
53709 2005-10-30  Kean Johnston  <jkj@sco.com>
53710
53711         Trivial changes to support SCO systems.
53712         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53713         as PATH_MAX.
53714         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53715         where __ptr is null when no I/O is pending.
53716
53717 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53718
53719         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53720         leave errno alone.  Problem reported by Dmitry V. Levin.
53721
53722 2005-10-28  Simon Josefsson  <jas@extundo.com>
53723
53724         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53725         Test more.
53726
53727         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53728
53729         * modules/md2, modules/md2-tests: New files.
53730
53731 2005-10-28  Simon Josefsson  <jas@extundo.com>
53732
53733         * m4/inet_ntop.m4: More tests.
53734
53735         * m4/gc-md2.m4, md2.m4: New file.
53736
53737 2005-10-28  Simon Josefsson  <jas@extundo.com>
53738
53739         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53740         "restrict" keywords, as per POSIX.  Protect the function
53741         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53742         Don't use K&R prototypes.  Check the sprintf return values.
53743         Re-define EAFNOSUPPORT if not present.  Indent.
53744
53745         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53746         suggested by Bruno Haible <bruno@clisp.org>.
53747
53748         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53749
53750         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53751
53752         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53753         libgcrypt).
53754
53755         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53756
53757         * lib/md2.h, lib/md2.c: New files.
53758
53759 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53760
53761         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53762         errno alone.  Problem reported by Frederic Jolliton.
53763
53764 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53765
53766         * modules/verify (License): Change from GPL to LGPL.  This is a
53767         tiny module and there are apparently near-equivalents that are
53768         under the BSD license.
53769
53770 2005-10-24  Simon Josefsson  <jas@extundo.com>
53771
53772         * modules/sha1: Relicense to LGPL.
53773
53774 2005-10-24  Simon Josefsson  <jas@extundo.com>
53775
53776         * lib/md4.h: Shrink buffer size, now that we changed the type.
53777
53778 2005-10-23  Simon Josefsson  <jas@extundo.com>
53779
53780         * gnulib-tool (func_import): Fix --tests-base.
53781
53782 2005-10-22  Simon Josefsson  <jas@extundo.com>
53783
53784         * modules/arcfour (Depends-on): Need stdint.
53785
53786 2005-10-22  Simon Josefsson  <jas@extundo.com>
53787
53788         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53789         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53790
53791 2005-10-22  Simon Josefsson  <jas@extundo.com>
53792
53793         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53794         suggested by Bruno Haible <bruno@clisp.org>.
53795
53796 2005-10-22  Simon Josefsson  <jas@extundo.com>
53797
53798         * lib/crc.h: Include stddef.h, for size_t.
53799
53800 2005-10-22  Simon Josefsson  <jas@extundo.com>
53801
53802         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53803         arcfour_context struct (simplify test vector testing in GNU
53804         Shishi).
53805
53806 2005-10-21  Simon Josefsson  <jas@extundo.com>
53807
53808         * modules/des, modules/des-tests: New files.
53809
53810         * modules/gc-des, modules/gc-des-tests: New files.
53811
53812         * tests/test-des.c, tests/test-gc-des.c: New file.
53813
53814 2005-10-21  Simon Josefsson  <jas@extundo.com>
53815
53816         * modules/arctwo, modules/arctwo-tests: New files.
53817
53818         * tests/test-arctwo.c: New file.
53819
53820         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53821
53822         * tests/test-gc-arctwo.c: New file.
53823
53824 2005-10-21  Simon Josefsson  <jas@extundo.com>
53825
53826         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53827         Bruno Haible <bruno@clisp.org>.
53828
53829         * m4/gc-des.m4: New file.
53830
53831 2005-10-21  Simon Josefsson  <jas@extundo.com>
53832
53833         * m4/arctwo.m4: New file.
53834
53835         * m4/gc-arctwo.m4: New file.
53836
53837 2005-10-21  Simon Josefsson  <jas@extundo.com>
53838
53839         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
53840         block.
53841
53842 2005-10-21  Simon Josefsson  <jas@extundo.com>
53843
53844         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
53845         <bruno@clisp.org>.
53846
53847         * lib/hmac-sha1.c (hmac_sha1): Likewise.
53848
53849         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
53850         Bruno Haible <bruno@clisp.org>.
53851
53852         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
53853         <bruno@clisp.org>.
53854
53855 2005-10-21  Simon Josefsson  <jas@extundo.com>
53856
53857         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
53858
53859 2005-10-21  Simon Josefsson  <jas@extundo.com>
53860
53861         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
53862
53863 2005-10-21  Simon Josefsson  <jas@extundo.com>
53864
53865         * lib/des.h, lib/des.c: New files.
53866
53867         * lib/gc-gnulib.c: Support DES.c
53868
53869 2005-10-21  Simon Josefsson  <jas@extundo.com>
53870
53871         * lib/arctwo.h, lib/arctwo.c: New files.
53872
53873         * lib/gc-gnulib.c: Support ARCTWO.
53874
53875 2005-10-21  Simon Josefsson  <jas@extundo.com>
53876
53877         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
53878         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53879
53880 2005-10-21  Simon Josefsson  <jas@extundo.com>
53881
53882         * gnulib-tool (func_import, func_create_testdir): Define automake
53883         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
53884         Makefile.am snippet),
53885         suggested by Bruno Haible <bruno@clisp.org>.
53886
53887         * modules/gc (Makefile.am): Use it.
53888
53889 2005-10-21  Bruno Haible  <bruno@clisp.org>
53890
53891         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
53892         patch.
53893
53894 2005-10-19  Simon Josefsson  <jas@extundo.com>
53895
53896         * tests/test-gc-rijndael.c: New file.
53897
53898         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
53899
53900 2005-10-19  Simon Josefsson  <jas@extundo.com>
53901
53902         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
53903         interface too.
53904
53905 2005-10-19  Simon Josefsson  <jas@extundo.com>
53906
53907         * tests/test-gc-arcfour.c: New file.
53908
53909         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
53910
53911 2005-10-19  Simon Josefsson  <jas@extundo.com>
53912
53913         * modules/gc-md4, modules/gc-md4-tests: New file.
53914
53915         * tests/test-gc-md4.c: New file.
53916
53917 2005-10-19  Simon Josefsson  <jas@extundo.com>
53918
53919         * m4/gc-md4.m4: New file.
53920
53921 2005-10-19  Simon Josefsson  <jas@extundo.com>
53922
53923         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
53924         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
53925         <kasal@ucw.cz>.
53926
53927 2005-10-19  Simon Josefsson  <jas@extundo.com>
53928
53929         * m4/gc-arcfour.m4: New file.
53930
53931         * m4/gc-rijndael.m4: New file.
53932
53933 2005-10-19  Simon Josefsson  <jas@extundo.com>
53934
53935         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
53936
53937 2005-10-19  Simon Josefsson  <jas@extundo.com>
53938
53939         * lib/gc-gnulib.c: Support ARCFOUR.
53940
53941 2005-10-19  Simon Josefsson  <jas@extundo.com>
53942
53943         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
53944         support.
53945
53946         * lib/gc.h: Add ECB enum type.
53947
53948         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
53949
53950 2005-10-18  Simon Josefsson  <jas@extundo.com>
53951
53952         * tests/test-md5.c: New file.
53953
53954         * modules/md5-tests: New file.
53955
53956 2005-10-18  Simon Josefsson  <jas@extundo.com>
53957
53958         * tests/test-md4.c: New file.
53959
53960         * modules/md4, modules/md4-tests: New files.
53961
53962 2005-10-18  Simon Josefsson  <jas@extundo.com>
53963
53964         * m4/md4.m4: New file.
53965
53966 2005-10-18  Simon Josefsson  <jas@extundo.com>
53967
53968         * lib/md4.h, lib/md4.c: New files, based on md5.?.
53969
53970 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
53971
53972         * gnulib-tool (func_create_testdir): Omit the second check whether
53973         BUILT_SOURCES in nonempty.
53974
53975 2005-10-17  Simon Josefsson  <jas@extundo.com>
53976
53977         * tests/test-rijndael.c: New file.
53978
53979 2005-10-17  Simon Josefsson  <jas@extundo.com>
53980
53981         * modules/sha1: Depend on stdint instead of md5.
53982
53983         * modules/md5: Depend on stdint, remove uint32_t.
53984
53985 2005-10-17  Simon Josefsson  <jas@extundo.com>
53986
53987         * modules/gc-sha1-tests: New file.
53988
53989         * tests/test-gc-sha1.c: New file.
53990
53991 2005-10-17  Simon Josefsson  <jas@extundo.com>
53992
53993         * m4/md5.m4: Remove call to uint32_t.m4.
53994
53995 2005-10-17  Simon Josefsson  <jas@extundo.com>
53996
53997         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
53998
53999         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
54000         md5.h.
54001
54002         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
54003
54004         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
54005
54006 2005-10-17  Simon Josefsson  <jas@extundo.com>
54007
54008         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
54009
54010 2005-10-17  Simon Josefsson  <jas@extundo.com>
54011
54012         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
54013
54014 2005-10-17  Simon Josefsson  <jas@extundo.com>
54015
54016         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
54017
54018         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
54019
54020 2005-10-17  Bruno Haible  <bruno@clisp.org>
54021
54022         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
54023         that it can also be used in a test.
54024
54025 2005-10-16  Bruno Haible  <bruno@clisp.org>
54026
54027         * gnulib-tool (func_emit_tests_Makefile_am): Also define
54028         TESTS_ENVIRONMENT, so that individual tests can augment it.
54029
54030         * gnulib-tool (func_create_testdir): Use an intermediate target for
54031         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
54032         macros, like $(ALLOCA_H), which cannot be passed through the command
54033         line.
54034
54035 2005-10-15  Simon Josefsson  <jas@extundo.com>
54036
54037         * modules/rijndael-tests: New file.
54038
54039         * modules/rijndael: New file.
54040
54041 2005-10-15  Simon Josefsson  <jas@extundo.com>
54042
54043         * m4/rijndael.m4: New file.
54044
54045 2005-10-15  Simon Josefsson  <jas@extundo.com>
54046
54047         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
54048
54049         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
54050
54051 2005-10-14  Simon Josefsson  <jas@extundo.com>
54052
54053         * tests/test-arcfour.c: New file.
54054
54055         * modules/arcfour, modules/arcfour-tests: New files.
54056
54057 2005-10-14  Simon Josefsson  <jas@extundo.com>
54058
54059         * m4/arcfour.m4: New file.
54060
54061 2005-10-14  Simon Josefsson  <jas@extundo.com>
54062
54063         * lib/arcfour.h, lib/arcfour.c: New files.
54064
54065 2005-10-14  Roland McGrath  <roland@redhat.com>
54066
54067         Import from libc.  [BZ #1331]
54068         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
54069         macro argument.
54070         Reported by Matej Vela <vela@debian.org>.
54071
54072 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54073
54074         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
54075         include <wchar.h>; no longer needed.
54076
54077 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54078
54079         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
54080
54081 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
54082         and  Ulrich Drepper  <drepper@redhat.com>
54083
54084         Import from libc.
54085         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
54086         instead of inline stream orientation test and two separate
54087         function calls.  Pay no attention to USE_IN_LIBIO.
54088
54089 2005-10-13  Simon Josefsson  <jas@extundo.com>
54090
54091         * modules/gc-hmac-md5-tests: New file.
54092
54093         * tests/test-gc-hmac-sha1.c: New file.
54094
54095         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
54096
54097         * modules/gc-hmac-md5-tests: New file.
54098
54099         * tests/test-gc-md5.c: New file.
54100
54101         * modules/gc-md5-tests: New file.
54102
54103 2005-10-13  Simon Josefsson  <jas@extundo.com>
54104
54105         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
54106         Move memory allocation outside of loop.
54107
54108 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
54109
54110         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
54111         intermediate directory is in a read-only file system.  Problem
54112         reported by Eric Blake.
54113
54114 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
54115
54116         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
54117
54118 2005-10-12  Simon Josefsson  <jas@extundo.com>
54119
54120         * tests/test-hmac-sha1.c: New file.
54121
54122         * modules/hmac-sha1-tests: New file.
54123
54124         * modules/hmac-sha1: New file.
54125
54126 2005-10-12  Simon Josefsson  <jas@extundo.com>
54127
54128         * modules/gc-sha1: New file.
54129
54130 2005-10-12  Simon Josefsson  <jas@extundo.com>
54131
54132         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
54133
54134         * tests/test-gc-pbkdf2-sha1.c: New file.
54135
54136 2005-10-12  Simon Josefsson  <jas@extundo.com>
54137
54138         * modules/gc-md5, modules/gc-hmac-md5: New files.
54139
54140         * modules/gc (Files): Remove md5, memxor and hmac files.
54141
54142 2005-10-12  Simon Josefsson  <jas@extundo.com>
54143
54144         * m4/gc-pbkdf2-sha1.m4: New file.
54145
54146         * m4/gc-hmac-sha1.m4: New file.
54147
54148         * m4/gc-sha1: New file.
54149
54150         * m4/hmac-sha1.m4: New file.
54151
54152 2005-10-12  Simon Josefsson  <jas@extundo.com>
54153
54154         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
54155
54156         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
54157
54158 2005-10-12  Simon Josefsson  <jas@extundo.com>
54159
54160         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
54161         suggested by Bruno Haible <bruno@clisp.org>.
54162
54163 2005-10-12  Simon Josefsson  <jas@extundo.com>
54164
54165         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
54166
54167 2005-10-12  Simon Josefsson  <jas@extundo.com>
54168
54169         * lib/gc-pbkdf2-sha1.c: New file.
54170
54171         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
54172
54173 2005-10-12  Simon Josefsson  <jas@extundo.com>
54174
54175         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
54176
54177         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
54178
54179 2005-10-12  Simon Josefsson  <jas@extundo.com>
54180
54181         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
54182         GC_USE_HMAC_MD5, respectively.
54183
54184         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
54185         (gc_md5): Fix typo.
54186
54187         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
54188
54189         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
54190
54191         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
54192
54193 2005-10-12  Bruno Haible  <bruno@clisp.org>
54194
54195         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
54196         Reported by Stepan Kasal <kasal@ucw.cz>.
54197
54198 2005-10-11  Simon Josefsson  <jas@extundo.com>
54199
54200         * tests/test-crc.c: New file.
54201
54202         * modules/crc, modules/crc-tests: New files.
54203
54204 2005-10-11  Simon Josefsson  <jas@extundo.com>
54205
54206         * m4/crc.m4: New file.
54207
54208 2005-10-11  Simon Josefsson  <jas@extundo.com>
54209
54210         * lib/gc.h: Add gc_hash and gc_hash_buffer.
54211
54212         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
54213
54214         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
54215
54216 2005-10-11  Simon Josefsson  <jas@extundo.com>
54217
54218         * lib/crc.h, lib/crc.c: New files.
54219
54220         * lib/gc.h (gc_hash_buffer): Add doc.
54221
54222 2005-10-11  Bruno Haible  <bruno@clisp.org>
54223
54224         * modules/c-strcasestr: New file.
54225         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
54226
54227 2005-10-11  Bruno Haible  <bruno@clisp.org>
54228
54229         * modules/c-strcase: New file.
54230         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
54231
54232 2005-10-11  Bruno Haible  <bruno@clisp.org>
54233
54234         * lib/strcasecmp.c: Include limits.h.
54235         (strcasecmp): Avoid integer overflow on exotic platforms.
54236         * lib/strncasecmp.c: Include limits.h.
54237         (strncasecmp): Avoid integer overflow on exotic platforms.
54238         Reported by Paul Eggert.
54239
54240 2005-10-11  Bruno Haible  <bruno@clisp.org>
54241
54242         * lib/c-strcasestr.h: New file, from GNU gettext.
54243         * lib/c-strcasestr.c: New file, from GNU gettext.
54244
54245 2005-10-11  Bruno Haible  <bruno@clisp.org>
54246
54247         * lib/c-strcase.h: New file, from GNU gettext.
54248         * lib/c-strcasecmp.c: New file, from GNU gettext.
54249         * lib/c-strncasecmp.c: New file, from GNU gettext.
54250
54251 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54252
54253         * modules/mempcpy (License): GPL -> LGPL.
54254         * modules/strchrnul (License): Likewise.
54255         * modules/sysexits (License): Likewise.
54256
54257 2005-10-08  Simon Josefsson  <jas@extundo.com>
54258
54259         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
54260
54261 2005-10-07  Simon Josefsson  <jas@extundo.com>
54262
54263         * m4/memxor.m4: Remove gl_C_RESTRICT call.
54264
54265 2005-10-06  Simon Josefsson  <jas@extundo.com>
54266
54267         * tests/test-hmac-md5.c: New file.
54268
54269         * modules/hmac-md5-tests: New file.
54270
54271         * modules/hmac-md5: New file.
54272
54273 2005-10-06  Simon Josefsson  <jas@extundo.com>
54274
54275         * m4/hmac-md5.m4: New file.
54276
54277         * m4/memxor.m4: Require gl_C_RESTRICT.
54278
54279 2005-10-06  Simon Josefsson  <jas@extundo.com>
54280
54281         * lib/memxor.c (memxor): Avoid casts and warnings.
54282
54283 2005-10-06  Simon Josefsson  <jas@extundo.com>
54284
54285         * lib/hmac-md5.c: New file.
54286
54287         * lib/hmac.h: New file.
54288
54289 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54290
54291         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
54292         promotes to int, not unsigned int, to catch the AIX 5.3
54293         compiler bug.
54294
54295 2005-10-05  Simon Josefsson  <jas@extundo.com>
54296
54297         * modules/memxor: New file.
54298
54299         * modules/iconv (Files): Move config.rpath to havelib, it is used
54300         there.
54301
54302         * modules/havelib (Files): Add config.rpath.
54303
54304 2005-10-05  Simon Josefsson  <jas@extundo.com>
54305
54306         * m4/memxor.m4: New file.
54307
54308 2005-10-05  Simon Josefsson  <jas@extundo.com>
54309
54310         * lib/memxor.c (memxor): Fix compiler error.
54311
54312         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
54313         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
54314
54315         * lib/memxor.h, lib/memxor.c: New files.
54316
54317         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
54318         we assume all systems have it, suggested by Jim Meyering
54319         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
54320         any systems lack sys/socket.h; mingw32 is known to lack it, but we
54321         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
54322         same reasons.
54323
54324 2005-10-05  Simon Josefsson  <jas@extundo.com>
54325
54326         * config/srclist.txt: Add glibc bug 1423 for md5.h.
54327
54328 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54329
54330         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
54331         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
54332         needed, since the source code now assumes these .h files.
54333
54334 2005-10-05  Derek Price  <derek@ximbiot.com>
54335
54336         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
54337
54338 2005-10-05  Bruno Haible  <bruno@clisp.org>
54339
54340         * modules/stdint (License): Change to LGPL.
54341
54342 2005-10-04  Simon Josefsson  <jas@extundo.com>
54343
54344         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
54345         D. Baushke" <mdb@gnu.org>.
54346
54347 2005-10-04  Bruno Haible  <bruno@clisp.org>
54348
54349         * lib/verify.h (verify_true): Provide alternative definition for C++.
54350
54351 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
54352
54353         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
54354         (SSIZE_MAX): New macro, if not already defined.
54355         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
54356         than 2 GiB.
54357
54358 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54359
54360         Sync from coreutils.
54361         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
54362         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
54363         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
54364         ULLONG_MAX doesn't work with 2.7.2.1.
54365
54366 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54367
54368         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
54369         From Ben Pfaff.
54370
54371         * modules/exclude (Depends-on): Depend on verify.
54372         * modules/strtoimax (Depends-on): Likewise.
54373         * modules/utimecmp (Depends-on): Likewise.
54374
54375 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54376
54377         * lib/exclude.c: Include verify.h.
54378         (verify): Remove.  All callers changed to use verify.h's version.
54379         * lib/strtoimax.c: Likewise.
54380         * lib/utimecmp.c: Likewis.e
54381
54382         Sync from coreutils.
54383         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
54384         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
54385         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
54386         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
54387         bother returning ENOSYS if settimeofday or stime fails; just let
54388         them return whatever errno they want to return.
54389         * lib/utimens.c: Include unistd.h, for dup2.
54390         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
54391         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
54392
54393 2005-10-02  Jim Meyering  <jim@meyering.net>
54394
54395         Sync from coreutils.
54396         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
54397         from glibc-2.2.5 that fails for read-only files.
54398
54399 2005-10-02  Jim Meyering  <jim@meyering.net>
54400
54401         Sync from coreutils.
54402         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
54403         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
54404         `#if HAVE_CONFIG_H'.
54405         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
54406         Remove AT_FDCWD test.
54407         Do not consume the fd unless successful.
54408         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
54409         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
54410         block, so that we don't even try to compile it if settimeofday is
54411         available.  This works around a compilation failure on OSF1 V5.1,
54412         due to stime requiring a `long int*' while tv_sec is `int'.
54413
54414 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
54415
54416         Sync from coreutils.
54417         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
54418         against `yes', rather than just testing for nonempty.
54419
54420 2005-10-01  Simon Josefsson  <jas@extundo.com>
54421
54422         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
54423         and Darwin.
54424
54425         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
54426         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
54427         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
54428         freeaddrinfo and gai_strerror are declared by the POSIX headers.
54429         Check if struct addrinfo is declared.
54430
54431 2005-10-01  Simon Josefsson  <jas@extundo.com>
54432
54433         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
54434         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
54435         AI_* and EAI_* definitions.  Protect function declarations.
54436
54437 2005-10-01  Jim Meyering  <jim@meyering.net>
54438
54439         Sync from coreutils.
54440
54441         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
54442         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
54443         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
54444         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54445         in the inet and nsl libraries.  Required on Solaris 5.7.
54446
54447 2005-10-01  Jim Meyering  <jim@meyering.net>
54448
54449         Sync from coreutils.
54450         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54451         in the inet and nsl libraries.  Required on Solaris 5.7.
54452
54453 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
54454
54455         * lib/getdelim.c (getdelim): Remove unused variables.
54456
54457 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54458
54459         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
54460         so that the code works even with ancient cpp.  Portability problem
54461         with GCC 2.7.2.1 reported by Thomas M.Ott.
54462
54463 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54464
54465         * modules/regex (Depends-on): Add strcase.
54466
54467         * modules/gethostname (Licence): Change from GPL to LGPL, since
54468         gethostname.c is a trivial implementation of a standard library
54469         function.
54470         * modules/poll (License): Change from GPL to LGPL, since it's
54471         derived from LGPL code.
54472
54473 2005-09-27  Jim Meyering  <jim@meyering.net>
54474
54475         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
54476         HAVE_CONFIG_H.
54477
54478         * lib/intprops.h (signed_type_or_expr__): Define.
54479         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
54480         for unsigned types.
54481
54482 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54483
54484         * lib/verify.h (verify_expr): Remove, replacing with:
54485         (verify_true): New macro that returns true instead of void.
54486         (verify_type__): Remove.
54487         (verify): Use verify_true rather than verify_type__.
54488
54489 2005-09-26  Bruno Haible  <bruno@clisp.org>
54490
54491         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
54492         is necessary.
54493         (lib_SOURCES): Remove mbchar.c.
54494         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
54495         (Files): Add m4/mbrtowc.m4.
54496         * modules/mbiter: Likewise.
54497         * modules/mbuiter: Likewise.
54498
54499 2005-09-26  Bruno Haible  <bruno@clisp.org>
54500
54501         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
54502         compile mbchar.c if they are not both present.
54503         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
54504         * m4/mbiter.m4 (gl_MBITER): Likewise.
54505         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
54506         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
54507         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
54508
54509 2005-09-25  Jim Meyering  <jim@meyering.net>
54510
54511         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
54512         also uses socklen_t.
54513
54514 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
54515
54516         * lib/utimens.c (ENOSYS): Define if not already defined.
54517         (futimens): Support having a null PATH if the file descriptor
54518         is nonnegative.
54519
54520         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
54521         Remove.
54522         (__attribute): Define to empty unless GCC 3.1 or later.
54523         This works around a core dump on OpenBSD 3.4, which has GCC
54524         2.95.3, which dumps core when given __attribute__(()).  It also
54525         simplifies other tests, since we really don't want to bother with
54526         worrying about which ancient version of GCC supported what.
54527         Original problem reported by Yoann Vandoorselaere, with part of
54528         the fix suggested by Derek Price.
54529
54530 2005-09-24  Jim Meyering  <jim@meyering.net>
54531
54532         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
54533         so we can once again use a positive bitfield width of 1 -- now we
54534         don't have to explain why we were using a bitfield width of 2.
54535
54536 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54537
54538         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
54539         and similarly for the other external symbols.  Problem reported
54540         by James Gallager.
54541
54542         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
54543         bug reported by Jim Meyering.
54544
54545         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
54546         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
54547         not needed, since socklen is a prerequisite module.
54548
54549 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54550
54551         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
54552         Problem reported by Eric Blake.
54553         (getaddrinfo): Initialize se so that it's not garbage.
54554         Redo internal storage allocation so that it doesn't make unportable
54555         assumptions about alignment.
54556         Fix a memory leak.
54557
54558         * lib/utimens.c (futimens): Use futimesat if available.
54559         Prefer it to futimes since it doesn't have the futimes bug.
54560
54561         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
54562         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
54563         Instead, declare a function that returns a pointer to an array,
54564         and use verify_type__ to declare the size of the array.
54565         Problem and germ of a solution reported by Bruno Haible.
54566         (verify_type__): Use 2, not 1, for bitfield size, to avoid
54567         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
54568
54569 2005-09-23  Jim Meyering  <jim@meyering.net>
54570
54571         Sync from coreutils.
54572         Correct build failure (socklen_t not defined) on at least
54573         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
54574         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
54575
54576 2005-09-23  Jim Meyering  <jim@meyering.net>
54577
54578         * modules/getaddrinfo (Depends-on): Add socklen.
54579
54580 2005-09-23  Bruno Haible  <bruno@clisp.org>
54581
54582         * tests/test-verify.c: New file.
54583
54584 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54585
54586         Sync from coreutils.
54587
54588         * modules/argmatch (Depends-on): Add verify.
54589         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54590         unistd-safer.
54591         * modules/save-cwd (Depends-on): Likewise.
54592
54593         * modules/openat (Files): Add lib/openat-die.c.
54594         (Depends-on): Remove error, exitfail.
54595         Add dirname.
54596
54597         * modules/verify: New file.
54598         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54599         with "verify" module.
54600
54601 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54602
54603         Sync from coreutils.
54604
54605         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54606         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54607         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54608         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54609         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54610         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54611         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54612         Don't bother checking for string.h, stdlib.h, unistd.h.
54613         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54614         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54615         module's job.
54616         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54617         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54618
54619         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54620         (gl_GETDATE): Use it.
54621
54622         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54623
54624 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54625
54626         Sync from coreutils.
54627
54628         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54629         stat-time.h.
54630         * lib/argmatch.h: Include verify.h
54631         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54632         (ARGMATCH_ASSERT): Remove; unused.
54633         * lib/canonicalize.c: Assume STDC_HEADERS.
54634         * lib/exclude.c: Include "strcase.h".
54635         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54636         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54637         and stdio-safer.h.
54638         (getusershell): Call fopen, not fopen_safer.
54639         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54640         Do not include unistd-safer.h.
54641         (save_cwd): Don't call fd_safer; no longer needed
54642         now that we include fcntl--.h.
54643
54644         * lib/getdate.y (relative_time): New type.
54645         (RELATIVE_TIME_0): New constant.
54646         (parser_control): Use relative_time instead of doing it ourselves.
54647         (%union): Add new relative_time rel member.
54648         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54649         Now typeless.
54650         (relunit, relunit_snumber): Now of type rel.
54651         (zone, rel, relunit, get_date): Adjust to above changes.
54652
54653         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54654         Do not include unistd-safer.h.
54655         (getloadavg): Don't call fd_safer; no longer needed
54656         now that we include fcntl--.h.
54657
54658         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54659         (make_dir_parents): Treat ENOSYS like EEXIST.
54660
54661         Improve quality of diagnostics on restore_cwd failure.
54662         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54663         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54664         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54665         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54666         each time through the loop.  Do not diagnose restore_cwd failure;
54667         that is the caller's job (and perhaps the caller does not care).
54668
54669         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54670         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54671         If the file already exists but is not a directory, don't bother
54672         to try to make its parents.
54673         Close potential file descriptor leak if we can't chdir("/") (!).
54674         Don't always return true if chdir($PWD) fails; return true only
54675         if the requested action was done successfully (except for the
54676         chdir($PWD)).
54677         Don't log final directory unless we actually made it.
54678         Refactor to avoid duplicate code to fix up permissions.
54679         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54680
54681         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54682         to make it a bit faster and (I hope) clearer.
54683         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54684         Fix bug in formats like %2N.
54685
54686         * lib/verify.h: New file.
54687
54688 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54689
54690         Sync from coreutils.
54691         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54692
54693 2005-09-22  Jim Meyering  <jim@meyering.net>
54694
54695         Sync from coreutils.
54696
54697         * m4/lstat.m4 (gl_FUNC_LSTAT):
54698         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54699         Remove obsolete comment.
54700         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54701         * m4/xstrtod.m4: Likewise.
54702
54703         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54704
54705 2005-09-22  Jim Meyering  <jim@meyering.net>
54706
54707         Sync from coreutils.
54708
54709         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54710
54711         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54712         the .tm_year member, since otherwise gcc-4.0 would now warn about
54713         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54714
54715         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54716         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54717
54718         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54719         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54720         when run in a time zone for which daylight savings time is in effect
54721         for the starting date.
54722
54723         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54724         stop us from restricting permissions of just-created absolute-named
54725         directories.
54726         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54727         to restore initial working directory.
54728         * lib/mkdir-p.c (make_dir_parents): New parameter:
54729         different_working_dir, to tell caller if/when we change the working
54730         directory and are unable to return to the initial one.
54731         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54732         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54733         `return false'.  This fixes a bug introduced on 2004-07-30.
54734
54735         * lib/openat.c (fdopendir): Be sure to close the supplied
54736         file descriptor before returning.  This makes our replacement
54737         implementation a little closer to Solaris's, where fdopendir
54738         ties the file descriptor to the returned DIR* pointer.
54739         * lib/openat.c (unlinkat): New function.
54740         * lib/openat.h (unlinkat): Add prototype.
54741         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54742         (openat_restore_fail): Rename from openat_restore_die.
54743         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54744
54745         Provide an alternative to exiting immediately upon save_cwd or
54746         restore_cwd failure.  Now, an application can arrange e.g.,
54747         to perform a longjump in that case.
54748         * lib/openat.c: Include dirname.h.
54749         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54750         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54751         and openat_restore_die rather than calling error directly.
54752         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54753
54754         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54755         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54756         define.
54757
54758         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54759         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54760                             int utc, int nanoseconds);
54761         Background:
54762         date should not have to allocate a megabyte of virtual memory to
54763         handle a format argument like +%1048575T.  When implemented with
54764         strftime, it must allocate such a buffer, use strftime to fill it
54765         in, print it, then free it.
54766         With fprintftime, it simply prints everything and exits.
54767         With no need for memory allocation, that's one fewer way to fail.
54768         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54769         optional field width, not before, so we accept %9:z, not %:9z.
54770         (my_strftime): Be sure to use L_('x') for literals.
54771
54772         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54773         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54774         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54775         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54776         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54777         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54778         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54779         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54780         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54781         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54782         * lib/xgethostname.c, lib/xreadlink.c:
54783         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54784
54785         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54786         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54787         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54788         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54789         and don't include <sys/file.h>).
54790
54791 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54792
54793         Sync from coreutils.
54794
54795         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54796         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54797         [!LDAV_DONE]: Avoid unused variable warning.
54798
54799 2005-09-21  Bruno Haible  <bruno@clisp.org>
54800
54801         * lib/unicodeio.h (unicode_to_mb): New declaration.
54802
54803 2005-09-20  Derek Price  <derek@ximbiot.com>
54804
54805         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54806         getaddrinfo.h.
54807
54808 2005-09-20  Bruno Haible  <bruno@clisp.org>
54809
54810         * gnulib-tool: Remove trailing slashes from the values specified for
54811         --source-base, --m4-base, --tests-base, --aux-dir.
54812         Suggested by Simon Josefsson <jas@extundo.com>.
54813
54814 2005-09-20  Bruno Haible  <bruno@clisp.org>
54815
54816         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54817         func_modules_to_filelist, func_import, func_create_testdir): Make all
54818         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54819         change when gnulib-tool is invoked in a different locale.
54820
54821 2005-09-19  Simon Josefsson  <jas@extundo.com>
54822
54823         * m4/socklen.m4: Fix typo.
54824
54825 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54826
54827         Use a consistent style for including <config.h>.
54828         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54829         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54830         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54831         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54832         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54833         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
54834         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
54835         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
54836         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
54837         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
54838         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
54839         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
54840         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
54841         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
54842         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
54843         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
54844         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
54845         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
54846         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
54847         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
54848         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
54849         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
54850         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
54851         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
54852         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
54853         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
54854         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
54855         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
54856         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
54857         lib/xstrtoumax.c, lib/yesno.c:
54858         Standardize inclusion of config.h.
54859         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
54860         lib/inttostr.h:  Removed inclusion of config.h from header files.
54861         * lib/inttostr.c:  Adjusted in-tree users.
54862         * lib/timespec.h: Remove superfluous warning to include config.h.
54863         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
54864         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
54865         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
54866         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
54867         config.h with HAVE_CONFIG_H.
54868
54869 2005-09-19  Jim Meyering  <jim@meyering.net>
54870
54871         * modules/pathmax (License): Change to LGPL.
54872
54873 2005-09-19  Derek Price  <derek@ximbiot.com>
54874
54875         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
54876
54877 2005-09-19  Bruno Haible  <bruno@clisp.org>
54878
54879         * gnulib-tool (import): Provide default for --tests-base.
54880
54881 2005-09-19  Bruno Haible  <bruno@clisp.org>
54882
54883         * doc/quote.texi: New file, extracted from gnulib.texi.
54884         * doc/ctime.texi: New file, extracted from gnulib.texi.
54885         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
54886         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
54887         * doc/gnulib.texi: Include them.
54888
54889 2005-09-18  Bruno Haible  <bruno@clisp.org>
54890
54891         Portability fix.
54892         * gnulib-tool (func_readlink): New function.
54893         (func_ln_if_changed): Use it.
54894
54895 2005-09-18  Bruno Haible  <bruno@clisp.org>
54896
54897         * gnulib-tool: Support --with-tests also with --import.
54898         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
54899         (func_import): Use variables $testsbase and $inctests. Emit a
54900         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
54901         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
54902         SUBDIRS += $testsdir.
54903         (func_create_testdir): Update.
54904
54905 2005-09-18  Bruno Haible  <bruno@clisp.org>
54906
54907         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
54908         instead of $dry_run.
54909         (func_cp_if_changed, func_mv_if_changed): Remove functions.
54910         (func_ln_if_changed): Don't handle dry-run here.
54911         (func_import): In dry-run mode, detect more precisely which actions
54912         would be performed, and don't use "...ing" verbs.
54913
54914 2005-09-18  Bruno Haible  <bruno@clisp.org>
54915
54916         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
54917         (func_import): Use join on two temporary files instead of three nested
54918         loops, in order to determine which files are new or old.
54919
54920 2005-09-18  Bruno Haible  <bruno@clisp.org>
54921
54922         * gnulib-tool (func_import): Comment out code that spits out the
54923         new files with --dry-run.
54924
54925 2005-09-18  Bruno Haible  <bruno@clisp.org>
54926
54927         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
54928
54929 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54930
54931         * lib/stat-time.h: New file.
54932         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
54933         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
54934         in a different way.
54935         (timespec_cmp): New function.
54936         * lib/utimecmp.c: Include stat-time.h.
54937         (SYSCALL_RESOLUTION): Depend on whether various struct stat
54938         members exist, not on the obsolescent ST_MTIM_NSEC.
54939         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
54940
54941 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54942
54943         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
54944
54945 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54946
54947         * MODULES.html.sh (File system functions): Add stat-time.
54948         * modules/stat-time: New file.
54949         * modules/timespec (Files): Remove m4/st_mtim.m4; this
54950         is now done in a different way, by the stat-time module.
54951         * modules/utimecmp (Depends-on): Add stat-time.
54952
54953 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54954
54955         * m4/st_mtim.m4: Remove.  Superseded by...
54956         * m4/stat-time.m4: New file.
54957         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
54958         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
54959
54960 2005-09-15  Derek Price  <derek@ximbiot.com>
54961
54962         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
54963
54964 2005-09-15  Derek Price  <derek@ximbiot.com>
54965
54966         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
54967         * lib/regex_internal.c: Ditto, using this...
54968         (__GNUC_PREREQ): ...new macro.
54969         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
54970         using...
54971         (__GNUC_PREREQ): ...this new macro.
54972
54973         * lib/strstr.h: Include string.h. Define strstr as a macro here.
54974
54975 2005-09-15  Derek Price  <derek@ximbiot.com>
54976             Paul Eggert  <eggert@cs.ucla.edu>
54977
54978         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
54979         changes, consolidating in...
54980         * lib/regex_internal.h: ...this file.
54981
54982 2005-09-13  Jim Meyering  <jim@meyering.net>
54983
54984         * lib/canon-host.c: Filter through gnu indent and reword comments
54985         slightly.
54986         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
54987
54988 2005-09-13  Derek Price  <derek@ximbiot.com>
54989
54990         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
54991         failure.
54992         Reported by Jim Meyering  <jim@meyering.net>.
54993
54994 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54995
54996         * lib/base64.c: Typo.
54997         (base64_encode): Put b64str in initialized data section.
54998
54999 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
55000
55001         Merge glibc and coreutils changes into gnulib, plus a few
55002         extra fixes.
55003         * lib/md5.c: Use #error rather than a string.
55004         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
55005         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
55006         (__attribute__): Define to empty for non recent-GCC.
55007         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
55008         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
55009         Renamed from their non-__ counterparts, with new macros replacing
55010         them if not _LIBC.  Add __THROW attribute.
55011         (rol): Remove.
55012         (struct md5_ctx): Align buffer if using GCC.
55013         * lib/sha1.h (struct sha1_ctx): Likewise.
55014         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
55015         The old name was backwards.
55016         (NOTSWAP): Remove; not used.
55017         (rol): New macro, moved here from md5.h.
55018         (sha1_process_block): Remove a FIXME that doesn't make sense.
55019
55020 2005-09-12  Derek Price  <derek@ximbiot.com>
55021
55022         Return usable errors from canon-host.
55023         * lib/canon-host.h: New file.
55024         * lib/canon-host.c (canon_host): Wrap...
55025         (canon_host_r): ...this new function, which now relies exclusively on
55026         getaddrinfo.
55027         (ch_strerror): New function.
55028         (last_cherror): New global.
55029         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
55030         interface.
55031         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
55032         void *.
55033         (freeaddrinfo): Free ai->ai_canonname when set.
55034
55035 2005-09-12  Derek Price  <derek@ximbiot.com>
55036
55037         Make canon-host require getaddrinfo.
55038         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
55039         AC_LIBSOURCE canon-host.h.  Call...
55040         (gl_PREREQ_CANON_HOST): ...this new function, which requires
55041         gl_GETADDRINFO.
55042         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
55043
55044 2005-09-12  Derek Price  <derek@ximbiot.com>
55045
55046         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
55047         LGPL.
55048         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
55049
55050 2005-09-12  Derek Price  <derek@ximbiot.com>
55051
55052         * lib/gai_strerror.c: Include config.h when available.  Include
55053         getaddrinfo.h before other headers to test interface.
55054         Reported by Larry Jones <lawrence.jones@ugs.com>.
55055
55056 2005-09-12  Derek Price  <derek@ximbiot.com>
55057             Paul Eggert  <eggert@cs.ucla.edu>
55058
55059         * modules/glob (Files): Add glob-libc.h.
55060
55061 2005-09-12  Derek Price  <derek@ximbiot.com>
55062             Paul Eggert  <eggert@cs.ucla.edu>
55063
55064         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
55065         glob_.h, glob-libc.h.
55066         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
55067
55068 2005-09-12  Derek Price  <derek@ximbiot.com>
55069             Paul Eggert  <eggert@cs.ucla.edu>
55070
55071         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
55072         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
55073         protecting things that should be done only in gnulib contexts.
55074         * lib/glob_.h: New file, containing only the glob things needed for
55075         gnulib.
55076         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
55077         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
55078         (glob, globfree, glob_pattern_p): Now defined simply in terms of
55079         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
55080         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
55081         and to respect the namespace rules better.
55082
55083 2005-09-08  Simon Josefsson  <jas@extundo.com>
55084
55085         * modules/socklen: New file.
55086
55087 2005-09-08  Simon Josefsson  <jas@extundo.com>
55088
55089         * m4/socklen.m4: New file.
55090
55091 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55092
55093         * modules/utimens (Files): Add m4/utimbuf.m4, since
55094         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
55095         Reported by Sergey Poznyakoff.
55096
55097 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55098
55099         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
55100         definitions, since that's the preferred style in glibc.
55101         Fix a minor spacing issue, and update copyright notice to match
55102         glibc's.
55103
55104 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55105
55106         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
55107
55108 2005-09-06  Simon Josefsson  <jas@extundo.com>
55109
55110         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
55111         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
55112
55113 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55114
55115         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
55116         warning.
55117
55118 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55119
55120         * config/srclist.txt: Add glibc bug 1302.
55121
55122 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
55123
55124         Change bitset word type from unsigned int to unsigned long int,
55125         as this has better performance on typical 64-bit hosts.
55126         Port bitset code to hosts with unusual word sizes.
55127         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
55128         (build_collating_symbol):
55129         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
55130         argument is a bitset.  This is merely a style issue, but it makes
55131         it clearer that an entire array is expected.
55132         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
55133         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
55134         Port to the case where bitset_word is not the same as unsigned int.
55135         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55136         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
55137         Likewise.
55138         * lib/regexec.c (check_dst_limits_calc_pos_1,
55139         check_subexp_matching_top):
55140         (build_trtable, group_nodes_into_DFAstates):
55141         Likewise.
55142         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
55143         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
55144         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
55145         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
55146         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
55147         * lib/regcomp.c (optimize_subexps, lower_subexp):
55148         Work even if bitset_word has holes in its bitwise representation.
55149         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
55150         * lib/regexec.c (check_dst_limits_calc_pos_1,
55151         check_subexp_matching_top):
55152         Likewise.
55153         * lib/regex_internal.c (re_string_reconstruct):
55154         Don't assume UCHAR_MAX == 255.
55155         * lib/regex_internal.h (bitset_set_all): Likewise.
55156         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
55157         All uses changed.
55158         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
55159         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
55160         All uses changed.
55161         (BITSET_WORD_MAX): New macro.
55162         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
55163         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
55164         (bitset_empty, bitset_copy):
55165         Prefer sizeof (bitset) to multiplying it out ourselves.
55166         (bitset_not_merge): Remove; unused.
55167         (bitset_contain): Return bool, not unsigned int with one bit on.
55168         All callers changed.
55169         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
55170         alignment than re_node_set; do this by defining a new internal
55171         type struct dests_alloc and using it to allocate memory.
55172
55173 2005-09-05  Bruno Haible  <bruno@clisp.org>
55174
55175         * gnulib-tool (func_import): Fix comparison in handling of symbolic
55176         links.
55177
55178 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
55179
55180         * modules/size_max (Makefile.am): Add size_max.h
55181
55182 2005-09-04  Derek Price  <derek@ximbiot.com>
55183
55184         * gnulib-tool (func_import): Fix reversed $symbolic logic.
55185
55186 2005-09-03  Simon Josefsson  <jas@extundo.com>
55187
55188         * gnulib-tool: Fix typo.
55189
55190 2005-09-03  Simon Josefsson  <jas@extundo.com>
55191
55192         * config/srclist.txt: Add glibc bug 1293.
55193
55194 2005-09-03  Derek Price  <derek@ximbiot.com>
55195
55196         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
55197         From Larry Jones <lawrence.jones@ugs.com>.
55198
55199 2005-09-02  Simon Josefsson  <jas@extundo.com>
55200
55201         * modules/socklen: New file.
55202
55203 2005-09-02  Simon Josefsson  <jas@extundo.com>
55204
55205         * modules/havelib: New module.
55206
55207         * modules/gettext, modules/iconv, modules/lock, modules/readline:
55208         Use havelib.
55209
55210 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55211
55212         Check for arithmetic overflow when calculating sizes, to prevent
55213         some buffer-overflow issues.  These patches are conservative, in the
55214         sense that when I couldn't determine whether an overflow was possible,
55215         I inserted a run-time check.
55216         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
55217         macros.
55218         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
55219         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
55220         (re_xnrealloc, re_x2nrealloc): New inline functions.
55221         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
55222         parse_bracket_exp):
55223         (build_equiv_class, build_charclass): Check for arithmetic overflow
55224         in size expression calculations.
55225         * lib/regex_internal.c (re_string_realloc_buffers):
55226         (build_wcs_upper_buffer, re_node_set_add_intersect):
55227         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
55228         (re_dfa_add_node, register_state): Likewise.
55229         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
55230         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
55231         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
55232         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
55233
55234 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55235
55236         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55237         m4/ulonglong.m4.  Problem reported by Martin Lambers.
55238
55239 2005-09-02  Bruno Haible  <bruno@clisp.org>
55240
55241         Support for lib vs. lib64 distinction on biarch platforms.
55242         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
55243         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
55244         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
55245
55246 2005-09-02  Bruno Haible  <bruno@clisp.org>
55247
55248         * gnulib-tool (import): In the other first-use case, provide defaults
55249         as well.
55250
55251 2005-09-02  Bruno Haible  <bruno@clisp.org>
55252
55253         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
55254         patches not yet found in the latest gettext release.
55255
55256 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55257
55258         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
55259         to avoid a collision with bits/local_lim.h in glibc.
55260         All uses changed.  Problem reported by Dmitry V. Levin in
55261         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
55262
55263         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
55264         bugs in int versus size_t comparisons.
55265         (re_string_context_at): Fix bug where the code assumed that
55266         Idx is signed.
55267
55268         Use bool where appropriate.
55269         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
55270         All callers changed.
55271         (calc_eclosure_iter): Likewise, for ROOT arg.
55272         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
55273         (build_charclass_op): Likewise, for NON_MATCH arg.
55274         * lib/regex_internal.c (re_string_allocate, re_string_construct):
55275         (re_string_construct_common): Likewise, for ICASE arg.
55276         * lib/regexec.c (re_search_2_stub, re_search_stub):
55277         Likewise, for RET_LEN arg.
55278         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
55279         (set_regs): Likewise, for FL_BACKTRACK arg.
55280         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
55281         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
55282         (calc_eclosure_iter, parse_bracket_exp):
55283         Use bool for internal variables that are booleans.
55284         * lib/regexec.c (re_search_internal, check_matching,
55285         proceed_next_node):
55286         (set_regs, build_sifted_states, sift_states_bkref):
55287         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
55288         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55289         (find_collation_sequence_value):
55290         Likewise.
55291         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
55292         (re_node_set_compare):
55293         Return bool, not int. All callers changed.
55294         * lib/regexec.c (check_halt_node_context, check_dst_limits):
55295         (build_trtable, check_node_accept): Likewise.
55296         * lib/regex_internal.h: Include stdbool.h.
55297
55298         Fix bugs uncovered when converting to bool.
55299         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
55300         failure instead of charging ahead blindly.
55301         * lib/regex_internal.c (register_state): Likewise.
55302         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
55303         for freeing internal storage.
55304         (group_nodes_into_DFA_states): Use unsigned int, not int, for
55305         bitset pieces used as boolean, to avoid undefined behavior
55306         on hosts that do int overflow checking.
55307
55308 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55309
55310         * config/srclist.txt: Add glibc bugs 1285-1287.
55311
55312 2005-09-01  Jim Meyering  <jim@meyering.net>
55313
55314         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
55315         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
55316         Require gl_STAT_MACROS, too.
55317
55318 2005-09-01  Bruno Haible  <bruno@clisp.org>
55319
55320         * gnulib-tool (import): In the first-use case, provide defaults.
55321
55322 2005-09-01  Bruno Haible  <bruno@clisp.org>
55323
55324         * gnulib-tool (func_import): Remove the .tmp files.
55325
55326 2005-09-01  Bruno Haible  <bruno@clisp.org>
55327
55328         * gnulib-tool (func_import): Fix handling of symbolic links.
55329
55330 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55331
55332         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
55333         old glibc regex code mishandles strings longer than 2**31 bytes.
55334         This patch fixes this when the regex code is used in gnulib
55335         (i.e., outside glibc).
55336
55337         This patch should not affect the use of the regex code inside
55338         glibc.  No doubt this problem also needs to be handled for glibc
55339         as well, but the result will be an incompatible change to the
55340         glibc ABI, and the old ABI will have to be supported too.  That
55341         can be the the subject for another patch.
55342
55343         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
55344         governing whether the rest of this patch is active.  By default,
55345         the macro is disabled and the patch has no effect.
55346         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
55347         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
55348         (struct re_pattern_buffer, re_search, re_search_2, re_match):
55349         (re_match_2, re_set_registers): Use the new types.
55350         * lib/regex_internal.h (Idx, re_hashval_t): New types.
55351         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
55352         New macros.
55353         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
55354         (re_string_context_at, bin_tree_t, re_dfastate_t):
55355         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
55356         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
55357         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
55358         (re_string_char_size_at, re_string_wchar_at):
55359         (re_string_elem_size_at):
55360         Use the new types and macros to port to 64-bit hosts.
55361         Use unsigned types for internal values, so that the code
55362         mostly works even for arrays larger than SSIZE_MAX.
55363         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
55364         (search_duplicated_node, calc_eclosure_iter, fetch_number):
55365         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
55366         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
55367         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
55368         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
55369         (calc_inveclosure, parse_dup_op, build_range_exp):
55370         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
55371         (fetch_number, create_token_tree, mark_opt_subexp):
55372         Likewise.
55373         * lib/regex_internal.c (re_string_construct_common,
55374         create_ci_newstate):
55375         (create_cd_newstate, re_string_allocate, re_string_construct):
55376         (re_string_realloc_buffers, build_wcs_upper_buffer):
55377         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55378         (re_string_reconstruct, re_string_peek_byte_case):
55379         (re_string_fetch_byte_case, re_string_context_at):
55380         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55381         (re_node_set_init_copy, re_node_set_add_intersect):
55382         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55383         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55384         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55385         (re_acquire_state, re_acquire_state_context, register_state):
55386         Likewise.
55387         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
55388         search_cur_bkref_entry):
55389         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
55390         (re_search_internal, re_search_2_stub, re_search_stub)
55391         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
55392         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
55393         (update_cur_sifted_state, check_dst_limits):
55394         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55395         (check_subexp_limits, sift_states_bkref, merge_state_array):
55396         (check_subexp_matching_top, get_subexp, get_subexp_sub):
55397         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
55398         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55399         (expand_bkref_cache, check_node_accept_bytes):
55400         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
55401         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
55402         (acquire_init_state_context, check_halt_node_context):
55403         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
55404         (sift_states_backward, clean_state_log_if_needed):
55405         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
55406         (find_recover_state, transit_state_sb, transit_state_mb):
55407         (transit_state_bkref, build_trtable, match_ctx_clean):
55408         Likewise.
55409         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
55410         to work around an assumption that REG_MISSING is negative.
55411
55412         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
55413         (seek_collating_symbol_entry) [defined _LIBC]:
55414         (lookup_collation_sequence_value) [defined _LIBC]:
55415         (build_range_exp, build_collating_symbol) [defined _LIBC]:
55416         Use prototypes rather than old-style function definitions.
55417         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
55418         (transit_state_sb) [0]:
55419         (find_collation_sequence_value) [defined _LIBC]: Likewise.
55420
55421         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
55422         rm_eo.
55423
55424         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
55425         (optimize_subexps, lower_subexp):
55426         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
55427         since the signed shift might overflow.  Use 1u<<31 instead.
55428         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55429         Likewise.
55430         * lib/regexec.c (check_dst_limits_calc_pos_1,
55431         check_subexp_matching_top): Likewise.
55432
55433         * lib/regcomp.c (optimize_subexps, lower_subexp):
55434         Use CHAR_BIT rather than 8, for clarity.
55435         * lib/regexec.c (check_dst_limits_calc_pos_1):
55436         (check_subexp_matching_top): Likewise.
55437         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
55438         have to worry about portability issues when shifting it left.
55439         Remove no-longer-needed test for table_size > 0.
55440         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
55441         in a word, as the resulting behavior is undefined.
55442         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
55443         in one case, a <= should have been an <, and in another case the
55444         whole test was missing.
55445         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
55446         the standard name CHAR_BIT.
55447         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
55448         this is not true on one's complement and signed-magnitude hosts.
55449
55450         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
55451         next_last_offset.
55452         (struct re_dfa_t): Remove unused member states_alloc.
55453         * lib/regcomp.c (init_dfa): Don't initialize unused members.
55454
55455 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55456
55457         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
55458         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
55459         and large-file glibc and in 32-bit large-file Solaris.
55460
55461 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55462
55463         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
55464         lengths fit in regoff_t; this isn't true if regoff_t is the same
55465         width as size_t.
55466         * lib/regex.c (re_search_internal): 5th arg is LAST_START
55467         (= START + RANGE) instead of RANGE.  This avoids overflow
55468         problems when regoff_t is the same width as size_t.
55469         All callers changed.
55470         (re_search_2_stub): Check for overflow when adding the
55471         sizes of the two strings.
55472         (re_search_stub): Check for overflow when adding START
55473         to RANGE; if it occurs, substitute the extreme value.
55474
55475 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55476
55477         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
55478
55479 2005-08-31  Jim Meyering  <jim@meyering.net>
55480
55481         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
55482         a pointer-to-const.
55483         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
55484         (register_state): Likewise.
55485         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
55486         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55487         (group_nodes_into_DFAstates): Likewise.
55488
55489 2005-08-31  Jim Meyering  <jim@meyering.net>
55490
55491         * check-module: Add a FIXME comment.
55492
55493 2005-08-31  Eric Blake  <ebb9@byu.net>
55494
55495         * modules/unistd-safer (Files): Add unistd--.h.
55496         * modules/stdio-safer (Files): Add stdio--.h.
55497
55498 2005-08-31  Derek Price  <derek@ximbiot.com>
55499
55500         * lib/getdelim.c (getdelim): Return EOF on EOF.
55501         Reported by Larry Jones <lawrence.jones@ugs.com>.
55502
55503 2005-08-31  Bruno Haible  <bruno@clisp.org>
55504
55505         Avoid unnecessary diffs in the generated lib/Makefile.am.
55506         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
55507         the generated files.
55508         (func_import): Don't set cmd.
55509
55510 2005-08-31  Bruno Haible  <bruno@clisp.org>
55511
55512         * lib/strstr.c: Include <stddef.h>, for NULL.
55513         * lib/strcasestr.c: Likewise.
55514         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55515
55516 2005-08-31  Bruno Haible  <bruno@clisp.org>
55517
55518         * gnulib-tool: New option --macro-prefix.
55519         (func_import): Use macro_prefix.
55520         (import): Handle option --macro-prefix.
55521
55522 2005-08-31  Bruno Haible  <bruno@clisp.org>
55523
55524         * gnulib-tool (import): Rename most ac_* variables to cached_*.
55525         Also use new variables cached_lgpl, cached_libtool.
55526
55527 2005-08-31  Bruno Haible  <bruno@clisp.org>
55528
55529         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
55530         always instantiating them.
55531
55532 2005-08-31  Bruno Haible  <bruno@clisp.org>
55533
55534         * gnulib-tool (func_import): Read the previous cached settings
55535         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
55536         earlier added by gnulib but are now dropped. Warn when a gnulib file
55537         overwrites a non-gnulib file.
55538
55539 2005-08-31  Bruno Haible  <bruno@clisp.org>
55540
55541         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
55542         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
55543         projects that don't keep autogenerated files in CVS. Put into
55544         actioncmd only the specified modules, not the transitive closure.
55545
55546 2005-08-31  Bruno Haible  <bruno@clisp.org>
55547
55548         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
55549         Create directories that shall be filled.
55550         (import): Don't look for gl_* macros in configure.ac. Recurse across
55551         all directories containing a gnulib-cache.m4 files, if meaningful.
55552
55553 2005-08-31  Bruno Haible  <bruno@clisp.org>
55554
55555         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
55556         (import): Set seen_libtool when we see gl_LIBTOOL.
55557
55558 2005-08-31  Bruno Haible  <bruno@clisp.org>
55559
55560         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
55561         declaration macro definitions from generated gnulib.m4.
55562
55563 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
55564
55565         * lib/iconvme.h: Add prototype for iconv_alloc.
55566
55567 2005-08-29  Simon Josefsson  <jas@extundo.com>
55568
55569         * lib/iconvme.c: Fix errno.
55570
55571 2005-08-29  Bruno Haible  <bruno@clisp.org>
55572
55573         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
55574         that it works when the directory contains spaces.
55575
55576 2005-08-29  Bruno Haible  <bruno@clisp.org>
55577
55578         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
55579
55580 2005-08-29  Bruno Haible  <bruno@clisp.org>
55581
55582         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
55583         Emit more advice.
55584
55585 2005-08-29  Bruno Haible  <bruno@clisp.org>
55586         and Stepan Kasal  <kasal@ucw.cz>
55587
55588         * check-module: If more parameters are given, check each of them
55589         separately; add more exceptions, as noted by Jim Meyering.
55590         (check_module): New procedure.
55591         (%exempt_header): Now contains all exceptions.
55592
55593 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55594
55595         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55596
55597 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55598
55599         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55600
55601 2005-08-28  Bruno Haible  <bruno@clisp.org>
55602
55603         * m4/gnulib-tool.m4: New file.
55604
55605 2005-08-27  Jim Meyering  <jim@meyering.net>
55606
55607         * modules/unistd-safer (Files): Add pipe-safer.c.
55608         * modules/fcntl-safer (Files): Add creat-safer.c.
55609
55610 2005-08-27  Jim Meyering  <jim@meyering.net>
55611
55612         * m4/stdlib-safer.m4: New file.  From coreutils.
55613         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55614         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55615         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55616         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55617         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55618
55619 2005-08-27  Jim Meyering  <jim@meyering.net>
55620
55621         * lib/fopen-safer.c: Merge minor changes from coreutils.
55622         * lib/dup-safer.c: Likewise.
55623         * lib/fd-safer.c: Likewise.
55624
55625         Merge from coreutils.
55626         * lib/stdio--.h: New file.
55627         * lib/stdlib--.h: New file.
55628         * lib/mkstemp-safer.c: New file.
55629
55630         GNU tar needs these.
55631         * lib/pipe-safer.c: New file.
55632         * lib/creat-safer.c: New file.
55633         * lib/fcntl--.h (creat): Define to creat_safer.
55634         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55635         * lib/unistd--.h (pipe): Define to pipe_safer.
55636         * lib/unistd-safer.h: Declare pipe_safer.
55637
55638 2005-08-26  Simon Josefsson  <jas@extundo.com>
55639
55640         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55641         Haible <bruno@clisp.org>.
55642
55643 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55644
55645         * lib/regex_internal.h: Remove all references to
55646         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55647         or better.
55648         (bitset_not, bitset_merge, bitset_not_merge):
55649         (bitset_mask, re_string_allocate, re_string_construct):
55650         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55651         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55652         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55653         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55654         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55655         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55656         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55657         (re_acquire_state_context):
55658         Remove unnecessary forward decls.
55659         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55660         Put __attribute at function definition,
55661         now that the function decl has been removed.
55662         * lib/regex_internal.c (re_string_peek_byte_case):
55663         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55664         Likewise.
55665
55666 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55667
55668         * m4/regex.m4: Add AC_PREREQ(2.50).
55669         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55670
55671 2005-08-25  Simon Josefsson  <jas@extundo.com>
55672
55673         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55674         __fsetlocking.
55675
55676 2005-08-25  Simon Josefsson  <jas@extundo.com>
55677
55678         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55679         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55680         GLIBC specific code.
55681
55682 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55683
55684         Make regex safe for g++.  This fixes one real bug (an "err"
55685         that should have been "*err").  g++ problem reported by
55686         Sam Steingold.
55687         * lib/regex_internal.h (re_calloc): New macro, consistent with
55688         re_malloc etc.  All callers of calloc changed to use re_calloc.
55689         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55690         not int.  All callers changed.
55691         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55692         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55693         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55694         (find_recover_state): Change "err" to "*err"; this fixes what
55695         appears to be a real bug.
55696         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55697         versus int.
55698
55699 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55700
55701         * modules/regex (Depends-on): Add malloc, since the code
55702         assumes that !malloc(0) means failure.
55703
55704 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55705
55706         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55707
55708         alloca modernization/simplification for regex.
55709         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55710         needs to be at the start of the file, and can be moved into
55711         regex_internal.h and simplified.
55712         * lib/regex_internal.h: Include <alloca.h>.
55713         (__libc_use_alloca) [!defined _LIBC]: New macro.
55714         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55715         now works outside glibc.
55716
55717 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55718
55719         * config/srclist.txt: Add glibc bugs 1241, 1245.
55720
55721 2005-08-25  Jim Meyering  <jim@meyering.net>
55722
55723         * lib/open-safer.c: Include <config.h>.
55724         Otherwise, we'd lose LARGEFILE support in any file using
55725         e.g. "fcntl--.h"
55726
55727 2005-08-25  Bruno Haible  <bruno@clisp.org>
55728
55729         * m4/minmax.m4: Require autoconf 2.52.
55730         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55731         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55732         alternatives of translit over the alphabet.
55733         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55734
55735 2005-08-24  Simon Josefsson  <jas@extundo.com>
55736
55737         * tests/test-getpass.c: New file.
55738
55739 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55740
55741         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55742         for GNU regex features.
55743
55744 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55745
55746         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55747         * lib/regex.h (regerror): Likewise.
55748
55749         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55750         requires this.  (The code never needed it.)
55751
55752         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55753         All uses of recently-renamed identifiers changed to use the new,
55754         POSIX-compliant names.  The code will build and run just fine
55755         without these changes, but it's better to eat our own dog food
55756         and use the standard-conforming names.
55757
55758         * lib/regex.h: Fix a multitude of POSIX name space violations.
55759         These changes have an effect only for programs that define
55760         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55761         do not change anything for programs compiled in the normal way.
55762         Also, there is no effect on the ABI.
55763
55764         (_REGEX_SOURCE): New macro.
55765         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55766         defined and _GNU_SOURCE is not; this fixes a name space violation.
55767
55768         Rename the following macros to obey POSIX requirements.
55769         The old names are still visible as macros if _REGEX_SOURCE is defined.
55770         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55771         RE_BACKSLASH_ESCAPE_IN_LISTS.
55772         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55773         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55774         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55775         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55776         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55777         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55778         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55779         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55780         (REG_INTERVALS): renamed from RE_INTERVALS.
55781         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55782         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55783         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55784         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55785         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55786         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55787         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55788         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55789         RE_UNMATCHED_RIGHT_PAREN_ORD.
55790         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55791         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55792         (REG_DEBUG): renamed from RE_DEBUG.
55793         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55794         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55795         unusual, since we can't clash with the POSIX REG_ICASE.
55796         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55797         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55798         (REG_NO_SUB): renamed from RE_NO_SUB.
55799         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55800         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55801         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55802         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55803         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55804         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55805         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55806         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55807         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55808         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55809         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55810         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55811         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55812         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55813         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55814         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55815         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55816         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55817         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55818         (REG_FIXED): Renamed from REGS_FIXED.
55819         (REG_NREGS): Renamed from RE_NREGS.
55820
55821         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55822         of other REG_* macros, since POSIX says the user is allowed to
55823         #undef these macros selectively.
55824
55825         (reg_errcode_t): Update comment stating what other tables need
55826         to be consistent.
55827
55828         Rename the following enum values to obey POSIX requirements.
55829         The old names are still visible as macros.
55830         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55831         is not defined, since GNU is supposed to be a superset of POSIX as
55832         much as possible, and since we want reg_errcode_t to be a signed
55833         type for implementation consistency.
55834         (_REG_NOERROR): Renamed from REG_NOERROR.
55835         (_REG_NOMATCH): Renamed from REG_NOMATCH.
55836         (_REG_BADPAT): Renamed from REG_BADPAT.
55837         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
55838         (_REG_ECTYPE): Renamed from REG_ECTYPE.
55839         (_REG_EESCAPE): Renamed from REG_EESCAPE.
55840         (_REG_ESUBREG): Renamed from REG_ESUBREG.
55841         (_REG_EBRACK): Renamed from REG_EBRACK.
55842         (_REG_EPAREN): Renamed from REG_EPAREN.
55843         (_REG_EBRACE): Renamed from REG_EBRACE.
55844         (_REG_BADBR): Renamed from REG_BADBR.
55845         (_REG_ERANGE): Renamed from REG_ERANGE.
55846         (_REG_ESPACE): Renamed from REG_ESPACE.
55847         (_REG_BADRPT): Renamed from REG_BADRPT.
55848         (_REG_EEND): Renamed from REG_EEND.
55849         (_REG_ESIZE): Renamed from REG_ESIZE.
55850         (_REG_ERPAREN): Renamed from REG_ERPAREN.
55851         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
55852         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
55853         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
55854         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
55855
55856         (_REG_RE_NAME, _REG_RM_NAME): New macros.
55857         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
55858         changed.  But support the old name if the new one is not defined
55859         and if _REGEX_SOURCE.
55860
55861         Change the following member names in struct re_pattern_buffer.
55862         The old names are still supported if !_REGEX_SOURCE.
55863         The new names are always supported, regardless of _REGEX_SOURCE.
55864         (re_buffer): Renamed from buffer.
55865         (re_allocated): Renamed from allocated.
55866         (re_used): Renamed from used.
55867         (re_syntax): Renamed from syntax.
55868         (re_fastmap): Renamed from fastmap.
55869         (re_translate): Renamed from translate.
55870         (re_can_be_null): Renamed from can_be_null.
55871         (re_regs_allocated): Renamed from regs_allocated.
55872         (re_fastmap_accurate): Renamed from fastmap_accurate.
55873         (re_no_sub): Renamed from no_sub.
55874         (re_not_bol): Renamed from not_bol.
55875         (re_not_eol): Renamed from not_eol.
55876         (re_newline_anchor): Renamed from newline_anchor.
55877
55878         Change the following member names in struct re_registers.
55879         The old names are still supported if !_REGEX_SOURCE.
55880         The new names are always supported, regardless of _REGEX_SOURCE.
55881         (rm_num_regs): Renamed from num_regs.
55882         (rm_start): Renamed from start.
55883         (rm_end): Renamed from end.
55884
55885         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
55886         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
55887         Prepend __ to parameter names.
55888
55889         Undo yesterday's changes.
55890
55891 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55892
55893         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
55894         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
55895         lib/regex.c.
55896
55897 2005-08-24  Jim Meyering  <jim@meyering.net>
55898
55899         Sync from coreutils.
55900         * m4/fcntl-safer.m4: New file.
55901
55902         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
55903         and object files for this module.
55904
55905 2005-08-24  Jim Meyering  <jim@meyering.net>
55906
55907         Sync from coreutils.
55908         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
55909
55910 2005-08-24  Jim Meyering  <jim@meyering.net>
55911
55912         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
55913         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
55914
55915 2005-08-24  Jim Meyering  <jim@meyering.net>
55916
55917         * modules/fcntl-safer: New module.
55918         * modules/fts (Depends-on): Add fcntl-safer.
55919         * MODULES.html.sh (File descriptor based Input/Output):
55920         Add fcntl-safer.
55921
55922 2005-08-24  Bruno Haible  <bruno@clisp.org>
55923
55924         Support for unit test modules.
55925         * modules/README: Mention tests modules.
55926         * modules/TEMPLATE-TESTS: New file.
55927         * gnulib-tool: New options --extract-tests-module, --with-tests and
55928         --tests-base (unused for the moment).
55929         (testsbase, inctests): New variables.
55930         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
55931         (func_verify_module): Exclude TEMPLATE-TESTS.
55932         (func_verify_nontests_module, func_verify_tests_module): New functions.
55933         (func_get_dependencies): Add implicit dependency for tests modules.
55934         (func_get_tests_module): New function.
55935         (func_modules_transitive_closure): When --with-tests was specified,
55936         include the unit tests as well, unless explicitly avoided.
55937         (func_emit_lib_Makefile_am): Ignore the tests modules here.
55938         (func_emit_tests_Makefile_am): New function.
55939         (func_create_testdir): When --with-tests was specified, emit a
55940         tests/ directory.
55941         * MODULES.html.sh (Future developments): Update.
55942
55943 2005-08-24  Bruno Haible  <bruno@clisp.org>
55944
55945         * modules/tls-tests: New file.
55946         * tests/test-tls.c: New file, from GNU gettext.
55947
55948 2005-08-24  Bruno Haible  <bruno@clisp.org>
55949
55950         * modules/lock-tests: New file.
55951         * tests/test-lock.c: New file, from GNU gettext.
55952
55953 2005-08-24  Bruno Haible  <bruno@clisp.org>
55954
55955         * lib/lock.h: Add multiple inclusion guard.
55956         * lib/tls.h: Add multiple inclusion guard.
55957
55958 2005-08-24  Bruno Haible  <bruno@clisp.org>
55959
55960         * gnulib-tool: Add support for the --aux-dir option to
55961         --create-testdir, --create-megatestdir, --test, --megatest.
55962         (func_create_testdir, func_create_megatestdir): Optionally emit a
55963         AC_CONFIG_AUX_DIR directive.
55964         (create-testdir, create-megatestdir, test, megatest): Provide a
55965         default value for $auxdir.
55966
55967 2005-08-24  Bruno Haible  <bruno@clisp.org>
55968
55969         * gnulib-tool (import): Use compound statement instead of subshell
55970         where possible.
55971
55972 2005-08-24  Bruno Haible  <bruno@clisp.org>
55973
55974         * gnulib-tool (import): Change --aux-dir default to "build-aux".
55975
55976 2005-08-24  Bruno Haible  <bruno@clisp.org>
55977
55978         * gnulib-tool (func_version): Update.
55979
55980 2005-08-24  Bruno Haible  <bruno@clisp.org>
55981
55982         * gnulib-tool (func_import, func_create_testdir,
55983         func_create_megatestdir): Quote all autoconf macro arguments.
55984
55985 2005-08-24  Bruno Haible  <bruno@clisp.org>
55986
55987         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
55988         option --force, because --force causes the aclocal.m4 of each
55989         subdirectory to be newer than the corresponding config.h.in.
55990
55991 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55992
55993         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
55994         All contents moved to gl_REGEX.
55995         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
55996         assume that it does.
55997
55998 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55999
56000         * lib/regex.h (REG_NOSYS)
56001         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
56002         Define, since POSIX requires it as of 2001.
56003         (_REG_ENOSYS)
56004         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
56005         New private symbol, used to keep the enum signed in all cases.
56006         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
56007         Youngman in
56008         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
56009
56010         * lib/regex_internal.c (re_string_skip_chars, register_state):
56011         (calc_state_hash):
56012         Remove forward decls; no longer needed now that we use prototypes.
56013         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
56014         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
56015         (clean_state_log_if_needed): Likewise.
56016
56017 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56018
56019         * config/srclist.txt: Add glibc bugs 1231-1233.
56020
56021 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56022
56023         Fix problems reported by Sam Steingold in
56024         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
56025         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
56026         assumed that reg_errcode_t is a signed type, which is not
56027         necessarily true if _XOPEN_SOURCE is not defined.
56028         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
56029         since some compilers warn about it otherwise.
56030
56031 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56032
56033         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
56034         (init_word_char, create_initial_state, duplicate_node_closure):
56035         (fetch_token, peek_token_bracket, build_range_exp):
56036         (build_collating_symbol): Remove forward decls; no longer needed
56037         now that we use prototypes.
56038
56039         * lib/regcomp.c:
56040         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
56041         (re_compile_fastmap_iter, regcomp, regerror, regfree):
56042         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
56043         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
56044         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
56045         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
56046         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
56047         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
56048         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
56049         (build_range_exp, build_collating_symbol, parse_bracket_exp):
56050         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
56051         (build_charclass, build_charclass_op, fetch_number, create_tree):
56052         (create_token_tree, mark_opt_subexp, duplicate_tree):
56053         Use prototypes rather than old-style definitions.
56054
56055         * lib/regex_internal.c:
56056         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
56057         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
56058         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56059         (re_string_reconstruct, re_string_peek_byte_case):
56060         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
56061         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56062         (re_node_set_init_copy, re_node_set_add_intersect):
56063         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56064         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56065         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56066         (re_acquire_state, re_acquire_state_context, register_state):
56067         (create_ci_newstate, create_cd_newstate, free_state):
56068         Likewise.
56069         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
56070         re_search_2):
56071         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
56072         (re_search_internal, prune_impossible_nodes):
56073         (acquire_init_state_context, check_matching, static):
56074         (check_halt_node_context, check_halt_state_context, proceed_next_node):
56075         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
56076         (update_regs, sift_states_backward, build_sifted_states):
56077         (clean_state_log_if_needed, merge_state_array):
56078         (update_cur_sifted_state, add_epsilon_src_nodes):
56079         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
56080         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
56081         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
56082         (find_recover_state, check_subexp_matching_top, transit_state_mb):
56083         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
56084         (check_arrival, check_arrival_add_next_nodes):
56085         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56086         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56087         (check_node_accept_bytes, check_node_accept, extend_buffers):
56088         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
56089         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
56090         (sift_ctx_init):
56091         Likewise.
56092
56093         * lib/regex_internal.h:
56094         (re_string_allocate, re_string_construct, re_string_reconstruct):
56095         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
56096         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
56097         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
56098         (re_string_context_at, re_string_peek_byte_case):
56099         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
56100         is defined, since we now use prototypes always.
56101
56102         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
56103         C89 or better.  All uses removed.
56104
56105 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56106
56107         * config/srclist.txt: Add glibc bugs 1220-1227.
56108
56109 2005-08-20  Jim Meyering  <jim@meyering.net>
56110
56111         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
56112         of unused local, dfa.
56113
56114 2005-08-20  Bruno Haible  <bruno@clisp.org>
56115
56116         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
56117
56118 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56119
56120         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
56121         (re_node_set_insert_last, re_dfa_add_node):
56122         Rename local variables to avoid GCC shadowing warnings.
56123
56124 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56125
56126         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
56127         [defined lint]: Suppress bogus uninitialized-variable warnings.
56128
56129         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
56130         and let the caller return REG_ESPACE if out of space.  This
56131         removes an uninitialied-variable warning with GCC 4.0.1, and also
56132         avoids taking the address of a local variable.  All callers
56133         changed.
56134
56135 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56136
56137         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
56138         $LIBCSRC/posix/regexec.c.
56139         Add glibc bug 1217 for regcomp.c.
56140
56141 2005-08-19  Jim Meyering  <jim@meyering.net>
56142
56143         * lib/regexec.c (proceed_next_node): Redo local variables to
56144         avoid GCC shadowing warnings.
56145
56146 2005-08-18  Bruno Haible  <bruno@clisp.org>
56147
56148         * lib/strstr.c (strstr): Fix return value in multibyte case.
56149         * lib/strcasestr.c (strcasestr): Likewise.
56150
56151 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56152
56153         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
56154
56155 2005-08-17  Jim Meyering  <jim@meyering.net>
56156
56157         Make the %s format (seconds since the epoch) work for a negative
56158         number and when used with a zero-padded field width, e.g. %015s.
56159
56160         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
56161         label so that it precedes the code to set `digits'.  Otherwise,
56162         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
56163         print `00-22'.  Now, it prints `-0022', as it should.
56164
56165 2005-08-17  Bruno Haible  <bruno@clisp.org>
56166
56167         * modules/strstr (Files): Add m4/mbrtowc.m4.
56168         (Depends-on): Add mbuiter.
56169
56170 2005-08-17  Bruno Haible  <bruno@clisp.org>
56171
56172         * modules/strcasestr: New file.
56173         * MODULES.html.sh (String handling, based on ANSI C 89): Add
56174         strcasestr.
56175
56176 2005-08-17  Bruno Haible  <bruno@clisp.org>
56177
56178         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
56179
56180 2005-08-17  Bruno Haible  <bruno@clisp.org>
56181
56182         * modules/mbuiter: New file.
56183         * MODULES.html.sh (Extended multibyte and wide character utilities):
56184         Add mbuiter.
56185
56186 2005-08-17  Bruno Haible  <bruno@clisp.org>
56187
56188         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
56189         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
56190
56191 2005-08-17  Bruno Haible  <bruno@clisp.org>
56192
56193         * m4/strcasestr.m4: New file.
56194
56195 2005-08-17  Bruno Haible  <bruno@clisp.org>
56196
56197         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
56198         * lib/strstr.c: Completely rewritten, with multibyte locale support.
56199
56200 2005-08-17  Bruno Haible  <bruno@clisp.org>
56201
56202         * lib/strcasestr.h: New file.
56203         * lib/strcasestr.c: New file.
56204
56205 2005-08-17  Bruno Haible  <bruno@clisp.org>
56206
56207         * lib/strcasecmp.c: Use mbuiter.h.
56208
56209 2005-08-17  Bruno Haible  <bruno@clisp.org>
56210
56211         * lib/mbuiter.h: New file.
56212
56213 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56214
56215         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
56216         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
56217         and gl_GETOPT are both invoked via different paths (as happens
56218         with GNU tar CVS because it uses both argp and getopt), the former
56219         wins.
56220
56221 2005-08-16  Bruno Haible  <bruno@clisp.org>
56222
56223         * modules/tls: New file.
56224         * MODULES.html.sh (Multithreading): Add tls.
56225
56226 2005-08-16  Bruno Haible  <bruno@clisp.org>
56227
56228         * modules/strnlen1: New file.
56229         * MODULES.html.sh (String handling): Add strnlen1.
56230
56231 2005-08-16  Bruno Haible  <bruno@clisp.org>
56232
56233         * modules/strcase (Files): Add m4/mbrtowc.m4.
56234         (Depends-on): Add strnlen1, mbchar.
56235
56236 2005-08-16  Bruno Haible  <bruno@clisp.org>
56237
56238         * modules/mbiter: New file.
56239         * MODULES.html.sh (Extended multibyte and wide character utilities):
56240         Add mbiter.
56241
56242 2005-08-16  Bruno Haible  <bruno@clisp.org>
56243
56244         * modules/mbfile: New file.
56245         * MODULES.html.sh (Extended multibyte and wide character utilities):
56246         Add mbfile.
56247
56248 2005-08-16  Bruno Haible  <bruno@clisp.org>
56249
56250         * modules/mbchar: New file.
56251         * MODULES.html.sh (Extended multibyte and wide character utilities):
56252         New section.
56253
56254 2005-08-16  Bruno Haible  <bruno@clisp.org>
56255
56256         * m4/tls.m4: New file, from GNU gettext.
56257
56258 2005-08-16  Bruno Haible  <bruno@clisp.org>
56259
56260         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
56261         always.
56262         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
56263
56264 2005-08-16  Bruno Haible  <bruno@clisp.org>
56265
56266         * m4/mbiter.m4: New file.
56267
56268 2005-08-16  Bruno Haible  <bruno@clisp.org>
56269
56270         * m4/mbfile.m4: New file.
56271
56272 2005-08-16  Bruno Haible  <bruno@clisp.org>
56273
56274         * m4/mbchar.m4: New file.
56275
56276 2005-08-16  Bruno Haible  <bruno@clisp.org>
56277
56278         * lib/tls.h: New file, from GNU gettext.
56279         * lib/tls.c: New file, from GNU gettext.
56280
56281 2005-08-16  Bruno Haible  <bruno@clisp.org>
56282
56283         * lib/strnlen1.h: New file.
56284         * lib/strnlen1.c: New file.
56285
56286 2005-08-16  Bruno Haible  <bruno@clisp.org>
56287
56288         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
56289         (mbi_init): Update.
56290         (mbi_avail, mbi_advance): Let the iteration end before the terminating
56291         NUL byte, not after it.
56292
56293 2005-08-16  Bruno Haible  <bruno@clisp.org>
56294
56295         * lib/strcase.h (strcasecmp): Add note in comments.
56296         * lib/strncasecmp.c: Use code from strcasecmp.c.
56297         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
56298         (strcasecmp): Work correctly in multibyte locales.
56299
56300 2005-08-16  Bruno Haible  <bruno@clisp.org>
56301
56302         * lib/mbiter.h: New file.
56303
56304 2005-08-16  Bruno Haible  <bruno@clisp.org>
56305
56306         * lib/mbfile.h: New file.
56307
56308 2005-08-16  Bruno Haible  <bruno@clisp.org>
56309
56310         * lib/mbchar.h: New file.
56311         * lib/mbchar.c: New file.
56312
56313 2005-08-16  Bruno Haible  <bruno@clisp.org>
56314
56315         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
56316         the valid ones. Makes the comparison operations transitive:
56317         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
56318         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
56319
56320 2005-08-15  Simon Josefsson  <jas@extundo.com>
56321
56322         * modules/ssize_t (License): Change to 'unlimited'.
56323
56324         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
56325
56326 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56327
56328         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
56329         Add comments for each pending glibc patch.
56330
56331 2005-08-15  Bruno Haible  <bruno@clisp.org>
56332
56333         * lib/regex.h (__restrict_arr): Don't define to __restrict if
56334         __cplusplus is defined.
56335
56336 2005-08-14  Jim Meyering  <jim@meyering.net>
56337
56338         Sync from coreutils.
56339
56340         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
56341         Use the hash-table-based cycle-detection code not just when
56342         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
56343         Reported by James Youngman in
56344         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
56345         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
56346         FTS_TIGHT_CYCLE_CHECK.
56347         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
56348         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
56349         once again.
56350         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
56351         * lib/fts.c (fd_safer): Remove decl.
56352         Include fcntl--.h rather than unistd-safer.h
56353         (fts_safe_changedir): Don't call fd_safer; no longer needed
56354         now that we include fcntl--.h.
56355
56356 2005-08-12  Simon Josefsson  <jas@extundo.com>
56357
56358         * modules/getndelim2: Use ssize_t module.
56359         * modules/getnline: Likewise.
56360         * modules/safe-read: Likewise.
56361         * modules/xreadlink: Likewise.
56362
56363         * modules/ssize_t: New file.
56364
56365 2005-08-12  Simon Josefsson  <jas@extundo.com>
56366
56367         * m4/readline.m4: Look for termcap, curses or ncurses if required.
56368
56369 2005-08-12  Simon Josefsson  <jas@extundo.com>
56370
56371         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56372         ssize_t.
56373
56374 2005-08-12  Simon Josefsson  <jas@extundo.com>
56375
56376         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
56377         readline, getdelim and check_version.
56378         (Support for systems lacking ISO C 99: Sizes of integer types):
56379         Add size_max.
56380
56381 2005-08-12  Bruno Haible  <bruno@clisp.org>
56382
56383         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
56384
56385 2005-08-11  Simon Josefsson  <jas@extundo.com>
56386
56387         * modules/readline: New file.
56388
56389         * modules/strnlen (Files): Add strnlen.h.
56390
56391 2005-08-11  Simon Josefsson  <jas@extundo.com>
56392
56393         * m4/readline.m4: New file.
56394
56395 2005-08-11  Simon Josefsson  <jas@extundo.com>
56396
56397         * lib/readline.h, readline.c: New file.
56398
56399 2005-08-11  Simon Josefsson  <jas@extundo.com>
56400
56401         * doc/gnulib.texi (Initial import, Finishing touches): Mention
56402         gl_AVOID.
56403
56404 2005-08-11  Bruno Haible  <bruno@clisp.org>
56405
56406         * lib/strnlen.h (strnlen): Change parameter name to match comment.
56407
56408 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
56409
56410         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
56411
56412 2005-08-10  Simon Josefsson  <jas@extundo.com>
56413
56414         * tests/test-iconvme.c: New file.
56415
56416 2005-08-10  Simon Josefsson  <jas@extundo.com>
56417
56418         * m4/strnlen.m4: New file.
56419
56420         * m4/strndup.m4: Don't check for strnlen declaration, done in
56421         strnlen.m4.
56422
56423 2005-08-10  Simon Josefsson  <jas@extundo.com>
56424
56425         * lib/strndup.c: Use strnlen.h.
56426
56427         * lib/strnlen.h: New file.
56428
56429 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56430
56431         * README: Typos.
56432
56433 2005-08-02  Simon Josefsson  <jas@extundo.com>
56434
56435         * modules/readline: New file.
56436
56437 2005-08-02  Simon Josefsson  <jas@extundo.com>
56438
56439         * modules/getdelim: New file.
56440
56441         * modules/getline: Rewrite, don't use getndelim2.
56442
56443 2005-08-02  Simon Josefsson  <jas@extundo.com>
56444
56445         * m4/getline.m4: Separate out getdelim stuff into separate module.
56446
56447         * m4/getdelim.m4: New file.
56448
56449 2005-08-02  Simon Josefsson  <jas@extundo.com>
56450
56451         * lib/getline.h, getline.c: Rewrite.
56452
56453         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
56454
56455 2005-07-31  Bruno Haible  <bruno@clisp.org>
56456
56457         * lib/lock.h (gl_lock_initializer): New macro.
56458         (gl_lock_define_initialized): Use it.
56459         (gl_rwlock_initializer): New macro.
56460         (gl_rwlock_define_initialized): Use it.
56461         (gl_recursive_lock_initializer): New macro.
56462         (gl_recursive_lock_define_initialized): Use it.
56463
56464 2005-07-30  Karl Berry  <karl@gnu.org>
56465
56466         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
56467         Report from Ben Pfaff, regarding getopt.
56468
56469 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
56470
56471         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
56472         normal way.
56473         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
56474         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
56475         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
56476         (gl_GETOPT): Use the new macros.  Most of the implementation
56477         is moved to the new macros.  This is for programs like Emacs
56478         that don't want all the functionality of gl_GETOPT.
56479
56480 2005-07-26  Bruno Haible  <bruno@clisp.org>
56481
56482         * m4/lock.m4: Update from GNU gettext.
56483
56484 2005-07-26  Bruno Haible  <bruno@clisp.org>
56485
56486         * lib/lock.h: Update from GNU gettext.
56487         * lib/lock.c: Update from GNU gettext.
56488
56489 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
56490
56491         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
56492         obsolescent AC_TRY_RUN.  Include the default includes files, for
56493         'exit'.
56494
56495 2005-07-24  Bruno Haible  <bruno@clisp.org>
56496
56497         * modules/visibility: New file.
56498         * MODULES.html.sh (Misc): Add visibility.
56499
56500 2005-07-24  Bruno Haible  <bruno@clisp.org>
56501
56502         * m4/visibility.m4: New file.
56503
56504 2005-07-24  Bruno Haible  <bruno@clisp.org>
56505
56506         * doc/visibility.texi: New file.
56507
56508 2005-07-22  Bruno Haible  <bruno@clisp.org>
56509
56510         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
56511         $(ALLOCA_H), redundant through BUILT_SOURCES.
56512         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
56513         redundant through BUILT_SOURCES.
56514         * modules/byteswap (Makefile.am): Remove explicit dependency on
56515         $(BYTESWAP_H), redundant through BUILT_SOURCES.
56516         * modules/fnmatch (Makefile.am): Remove explicit dependency on
56517         $(FNMATCH_H), redundant through BUILT_SOURCES.
56518         * modules/getopt (Makefile.am): Remove explicit dependency on
56519         $(GETOPT_H), redundant through BUILT_SOURCES.
56520         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
56521         redundant through BUILT_SOURCES.
56522         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
56523         redundant through BUILT_SOURCES.
56524         * modules/stdbool (Makefile.am): Remove explicit dependency on
56525         $(STDBOOL_H), redundant through BUILT_SOURCES.
56526         * modules/stdint (Makefile.am): Remove explicit dependency on
56527         $(STDINT_H), redundant through BUILT_SOURCES.
56528         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
56529         Remove explicit dependency on $(SYSEXITS_H).
56530         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
56531
56532 2005-07-18  Simon Josefsson  <jas@extundo.com>
56533
56534         * lib/check-version.c (check_version): Accept identical versions too.
56535
56536 2005-07-18  Bruno Haible  <bruno@clisp.org>
56537
56538         * modules/lock: New file.
56539         * MODULES.html.sh (Multithreading): New section.
56540
56541 2005-07-18  Bruno Haible  <bruno@clisp.org>
56542
56543         * m4/lock.m4: New file, from GNU gettext.
56544
56545 2005-07-18  Bruno Haible  <bruno@clisp.org>
56546
56547         * lib/lock.h: New file, from GNU gettext.
56548         * lib/lock.c: New file, from GNU gettext.
56549
56550 2005-07-18  Bruno Haible  <bruno@clisp.org>
56551
56552         * lib/lock.h (gl_once_t): New type.
56553         (gl_once_define, gl_once): New macros.
56554         * lib/lock.c (fresh_once): New variable.
56555         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
56556         functions.
56557
56558 2005-07-16  Simon Josefsson  <jas@extundo.com>
56559
56560         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
56561         workaround, suggested by Bruno.
56562
56563 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56564
56565         * modules/xalloc (Depends-on): Add xalloc-die.
56566         * modules/xvasprintf (Depends-on): Add xalloc-die.
56567
56568 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56569
56570         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
56571         with a minor change.
56572
56573 2005-07-15  Bruno Haible  <bruno@clisp.org>
56574
56575         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
56576         When using lib/poll.c, define poll as rpl_poll.
56577
56578 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
56579
56580         * modules/argp (Depends-on): Remove unlocked-io.
56581
56582 2005-07-14  Derek Price  <derek@ximbiot.com>
56583
56584         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
56585         for glob symlink bug.
56586
56587 2005-07-14  Bruno Haible  <bruno@clisp.org>
56588
56589         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56590         Instead, test for *_unlocked function declarations directly.
56591
56592 2005-07-11  Simon Josefsson  <jas@extundo.com>
56593
56594         * modules/size_max: New file.
56595
56596         * modules/xsize: Depend on size_max module for size_max.m4.
56597
56598 2005-07-11  Simon Josefsson  <jas@extundo.com>
56599
56600         * lib/size_max.h: New file.
56601
56602 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56603
56604         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56605         copyright symbol and the year.
56606         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56607         (version_etc_va): Use parameterized copyright notice.
56608         Reword to conform to the current GNU coding standards.
56609
56610 2005-07-11  Karl Berry  <karl@gnu.org>
56611
56612         * doc/gnulib.texi (Quoting): new node.
56613         (Initial import): more info, from Patrice.
56614
56615 2005-07-11  Bruno Haible  <bruno@clisp.org>
56616
56617         * gnulib-tool (func_usage): Document option --avoid.
56618         (Command line options): Handle --avoid.
56619         (func_acceptable): New function.
56620         (func_modules_transitive_closure): Use it.
56621
56622 2005-07-11  Bruno Haible  <bruno@clisp.org>
56623
56624         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56625         Reported by Jim Meyering.
56626
56627 2005-07-10  Bruno Haible  <bruno@clisp.org>
56628
56629         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56630         Needed when size_t is smaller than 'unsigned int'.
56631         Reported by Paul Eggert.
56632
56633 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56634
56635         * modules/argp (Depends-on): Add unlocked-io
56636
56637 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56638
56639         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56640         block of defines.
56641
56642 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56643
56644         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56645         fix now.
56646
56647 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56648         and Paul Eggert  <eggert@cs.ucla.edu>
56649
56650         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56651         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56652
56653 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56654
56655         * modules/regex (Files): Add lib/regex_internal.c,
56656         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56657         (Depends-on): Add extensions.
56658         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56659
56660 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56661
56662         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56663         pathconf.
56664         * m4/same.m4 (gl_SAME): Likewise.
56665         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56666
56667         * m4/regex.m4: Adjust to new libc regex implementation.
56668         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56669         all the .c and .h parts of (the new) regex.
56670         Quote the m4 stuff better.
56671         Check for RE_ICASE bug of old gnulib.
56672         Check for REG_STARTEND of recent libc.
56673         Rename local variables from jm_* to gl_*.
56674         Quote operand of "test -f".
56675         Say "recent enough" version of libc, not "version 2".
56676         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56677         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56678         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56679         Remove check for btowc, isascii.
56680         Require AM_LANGINFO_CODESET.
56681
56682 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56683
56684         * lib/regex.c, regex.h: Sync from libc.
56685         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56686         * lib/regexec.c:
56687         New files, synced from libc, except that regex_internal.h
56688         currently has a small porting fix.
56689
56690 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56691
56692         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56693         regex_internal.c, regexec.c.
56694         Add regex_internal.h too, but as a comment, since the libc version
56695         is currently broken in gnulib mode.
56696
56697 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56698
56699         Support programs like Emacs that use gnulib but not gettext.
56700         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56701         * modules/gettext-h: New file.
56702         * modules/gettext (Files): Remove lib/gettext.h.
56703         (Depends-on): Add gettext-h.
56704         (Makefile.am): Remove lib_SOURCES.
56705         * modules/argmatch, modules/c-stack, modules/closeout:
56706         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56707         * modules/execute, modules/file-type, modules/getaddrinfo:
56708         * modules/getopt, modules/human, modules/javacomp:
56709         * modules/javaexec, modules/mkdir-p, modules/obstack:
56710         * modules/openat, modules/pagealign_alloc, modules/pipe:
56711         * modules/quotearg, modules/regex, modules/rpmatch:
56712         * modules/unicodeio, modules/userspec, modules/version-etc:
56713         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56714         * modules/xsetenv:
56715         Depend on gettext-h, not gettext.
56716
56717 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56718
56719         * gnulib-tool (func_import): Add support for 'public domain' license.
56720         * modules/alloca, modules/atexit, modules/memmove:
56721         Now public domain, not GPL.
56722         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56723         * modules/realloc, modules/strerror, modules/strtod:
56724         Now LGPL, not GPL.
56725
56726 2005-07-05  Bruno Haible  <bruno@clisp.org>
56727
56728         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56729         autoconf CVS. Needed for mingw.
56730
56731 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56732
56733         Remove the dependency of the strftime module on the tzset module.
56734         * modules/strftime (Depends-on): Remove dependency on tzset.
56735
56736 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56737
56738         Remove the dependency of the strftime module on the tzset module.
56739         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56740         gl_FUNC_TZSET_CLOBBER.
56741
56742 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56743
56744         Remove the dependency of the strftime module on the tzset module.
56745         * lib/strftime.c (my_strftime)
56746         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56747         Copy the input structure, to work around some of the bug with
56748         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56749         Solaris releases, you should also use the tzset module, but we won't
56750         require it as a dependency any more since we don't want LGPLed code
56751         to depend on GPLed code.
56752
56753 2005-07-02  Jim Meyering  <jim@meyering.net>
56754
56755         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56756         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56757         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56758         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56759
56760 2005-07-02  Jim Meyering  <jim@meyering.net>
56761
56762         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56763
56764 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56765
56766         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56767         declares only 'struct timespec;' (!).
56768
56769 2005-07-01  Jim Meyering  <jim@meyering.net>
56770
56771         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56772         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56773         * lib/save-cwd.c, tempname.c:
56774         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56775         and don't include <sys/file.h>).
56776
56777 2005-06-29  Jim Meyering  <jim@meyering.net>
56778
56779         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56780         type name.  Use the variable name instead.
56781         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56782         Likewise.
56783
56784 2005-06-28  Simon Josefsson  <jas@extundo.com>
56785
56786         * modules/check-version (Files): Add check-version.m4.
56787
56788 2005-06-28  Simon Josefsson  <jas@extundo.com>
56789
56790         * m4/check-version.m4: New file, suggested by Jim Meyering
56791         <jim@meyering.net>.
56792
56793 2005-06-28  Simon Josefsson  <jas@extundo.com>
56794
56795         * lib/check-version.h, lib/check-version.c: New files.
56796
56797 2005-06-28  Simon Josefsson  <jas@extundo.com>
56798
56799         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56800         collision with global variable.  Better indentation.  Don't
56801         increment buffer pointer beyond buffer end.  Based on comments
56802         from Paul Eggert <eggert@cs.ucla.edu>.
56803
56804         * lib/base64.h: Indent.
56805
56806 2005-06-28  Simon Josefsson  <jas@extundo.com>
56807
56808         * doc/gnulib.texi (Library version handling): New section.
56809
56810 2005-06-28  Jim Meyering  <jim@meyering.net>
56811
56812         * check-module (find_included_lib_files): Hard-code another
56813         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56814         but modules/fts-lgpl (correctly) does not list those files.
56815
56816         * modules/canonicalize (Files): Add lib/pathmax.h.
56817
56818 2005-06-25  Simon Josefsson  <jas@extundo.com>
56819
56820         * modules/check-version: New file.
56821
56822 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56823
56824         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56825         initializer of struct addrinfo, as an indication that we don't
56826         care how many members the structure has.
56827
56828 2005-06-24  Derek Price  <derek@ximbiot.com>
56829         and Bruno Haible  <bruno@clisp.org>
56830
56831         Remove stat module & update lstat.
56832         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56833         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56834         * m4/stat.m4: Remove this file.
56835
56836 2005-06-24  Derek Price  <derek@ximbiot.com>
56837         and Bruno Haible  <bruno@clisp.org>
56838
56839         Remove stat module & update lstat.
56840         * lib/stat.c: Remove this file...
56841         (slash_aware_lstat): ...moving this content and its support...
56842         * lib/lstat.c (rpl_lstat): ...into here.
56843         * lib/lstat.h: New file.
56844
56845 2005-06-24  Derek Price  <derek@ximbiot.com>
56846         and Bruno Haible  <bruno@clisp.org>
56847
56848         Remove stat module & update lstat.
56849         * config/srclist.txt (libc sources): Remove stat.
56850
56851 2005-06-24  Derek Price  <derek@ximbiot.com>
56852         and Bruno Haible  <bruno@clisp.org>
56853
56854         Remove stat module & update lstat.
56855         * MODULES.html.sh (stat): Remove.
56856         * MODULES.html: Regenerated.
56857         * modules/lstat (Description): Correct function name.
56858         (Files): Add "lstat.h".
56859         (Depends-on): Remove stat, add xalloc, stat-macros.
56860         * modules/stat: Remove this file.
56861         (Include): Add "lstat.h", remove <sys/stat.h>.
56862
56863 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56864
56865         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
56866         (ranged_convert): Don't save conversion in a temporary struct.
56867         This causes a warning with GCC 4.0.0, and anyway in the typical
56868         case it's not worth the extra 100 bytes or so of code.
56869         (ranged_convert, __mktime_internal): When calling a function via a
56870         pointer P, use P () rather than (*P) (), as we now assume C89 or
56871         better.
56872
56873 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56874
56875         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
56876         "who -r" failed to give output.  Problem reported by Tim Waugh.
56877
56878         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
56879         (xcalloc): Use it to avoid needless tests.
56880         Problem reported by Jim Meyering.
56881
56882 2005-06-20  Derek Price  <derek@ximbiot.com>
56883
56884         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
56885         unnecessary for Autoconfs > 2.59c.
56886
56887 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56888
56889         * lib/argp.h (__option_is_short): Check upper limit of
56890         __key. Isprint() requires its argument to have the value
56891         of an unsigned char or EOF.
56892
56893 2005-06-16  Jim Meyering  <jim@meyering.net>
56894
56895         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
56896         when either N or S is zero.
56897
56898 2005-06-16  Derek Price  <derek@ximbiot.com>
56899
56900         * m4/bison.m4: Declare YACC & YFLAGS precious.
56901
56902 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
56903
56904         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
56905         multibyte string or pattern, fall back on unibyte matching.
56906         Problem reported by James Youngman.
56907
56908 2005-06-08  Bruno Haible  <bruno@clisp.org>
56909
56910         * modules/csharpcomp: New file.
56911         * MODULES.html.sh (C#): Add csharpcomp.
56912
56913 2005-06-08  Bruno Haible  <bruno@clisp.org>
56914
56915         * m4/csharpcomp.m4: New file, from GNU gettext.
56916
56917 2005-06-08  Bruno Haible  <bruno@clisp.org>
56918
56919         * lib/csharpcomp.h: New file, from GNU gettext.
56920         * lib/csharpcomp.c: New file, from GNU gettext.
56921         * lib/csharpcomp.sh.in: New file, from GNU gettext.
56922
56923 2005-06-08  Bruno Haible  <bruno@clisp.org>
56924
56925         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
56926         warning on mingw.
56927
56928 2005-06-07  Derek Price  <derek@ximbiot.com>
56929
56930         Sync from CVS.
56931         * lib/glob_.h: Indent nested #ifdef.
56932
56933 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56934
56935         Sync from coreutils.
56936         Use "file name" when talking about file names, instead of "filename"
56937         or "path", as per the GNU coding standards.
56938         * lib/mkdir-p.c: Renamed from makepath.c.
56939         (make_dir_parents): Renamed from make_path.  All callers changed.
56940         * lib/mkdir-p.h: Likewise.  All includers changed.
56941         * lib/filenamecat.c: Renamed from path-concat.c.
56942         (file_name_concat): Renamed from path_concat.  All callers changed.
56943         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
56944         * lib/filenamecat.h: Likewise.  All includers changed.
56945         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
56946         in comments or local variable names.
56947         * lib/basename.c: Likewise.
56948         * lib/canonicalize.c, canonicalize.h: Likewise.
56949         * lib/dirname.c, dirname.h: Likewise.
56950         * lib/euidaccess.c: Likewise.
56951         * lib/exclude.c: Likewise
56952         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
56953         * lib/fsusage.c, fsuage.h: Likewise.
56954         * lib/fts.c, fts_.h: Likewise.
56955         * lib/getcwd.c: Likewise.
56956         * lib/getloadavg.c: Likewise.
56957         * lib/mkstemp.c: Likewise.
56958         * lib/mountlist.c, mountlist.h: Likewise.
56959         * lib/openat.c, openat.h: Likewise.
56960         * lib/readlink-stub.c: Likewise.
56961         * lib/readutmp.c, readutmp.h: Likewise.
56962         * lib/rename.c: Likewise.
56963         * lib/rmdir.c: Likewise.
56964         * lib/same.c: Likewise.
56965         * lib/savedir.c: Likewise.
56966         * lib/stripslash.c: Likewise.
56967         * lib/tempname.c: Likewise.
56968         * lib/xreadlink.c: Likewise.
56969         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
56970         All uses changed.
56971         * lib/exclude.h: Likewise.
56972
56973         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
56974         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56975         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
56976         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56977         * lib/pathmax.h: Include <limits.h> unconditionally, since other
56978         files have been getting away with it for years (MORE/BSD 4.3
56979         is extinct now).
56980         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
56981         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56982
56983         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
56984         Define to 256, not 255, as per modern POSIX.
56985
56986 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56987
56988         Sync from coreutils.
56989         Use "file name" when talking about file names, instead of "filename"
56990         or "path", as per the GNU coding standards.
56991         * MODULES.html.sh: mkdir-p renamed from makepath.
56992         filenamecat renamed from path-concat.
56993         * modules/filenamecat: Renamed from modules/path-concat.
56994         (Files): filenamecat.h and filenamecat.c renamed from
56995         path-concat.h and path-concat.c.
56996         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
56997         (Include): filenamecat.h, not path-concat.h.
56998         * modules/mkdir-p: Renamed from modules/makepath.
56999         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
57000         makepath.c.
57001         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
57002         (Include): mkdir-p.h, not makepath.h.
57003
57004 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57005
57006         Sync from coreutils.
57007         * m4/mkdir-p.m4: Renamed from makepath.m4.
57008         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
57009         Rename files from makepath.c to mkdir-p.c, and from
57010         makepath.h to mkdir-p.h.
57011         * m4/filenamecat.m4: Renamed from path-concat.m4.
57012         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
57013         Rename files from path-concat.c to filenamecat.c,
57014         and from path-concat.h to filenamecat.h.
57015         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
57016         "file name" in local variables or comments.
57017         * m4/rename.m4: Likewise.
57018
57019 2005-06-01  Bruno Haible  <bruno@clisp.org>
57020
57021         * modules/csharpexec: New file.
57022         * MODULES.html.sh (C#): New section.
57023
57024 2005-06-01  Bruno Haible  <bruno@clisp.org>
57025
57026         * m4/csharp.m4: New file, from GNU gettext.
57027         * m4/csharpexec.m4: New file, from GNU gettext.
57028
57029 2005-06-01  Bruno Haible  <bruno@clisp.org>
57030
57031         * lib/csharpexec.h: New file, from GNU gettext.
57032         * lib/csharpexec.c: New file, from GNU gettext.
57033         * lib/csharpexec.sh.in: New file, from GNU gettext.
57034
57035 2005-05-31  Derek Price  <derek@ximbiot.com>
57036             Paul Eggert  <eggert@cs.ucla.edu>
57037
57038         Sync from cvs.
57039         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57040
57041 2005-05-31  Derek Price  <derek@ximbiot.com>
57042             Paul Eggert  <eggert@cs.ucla.edu>
57043
57044         Sync from cvs.
57045         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57046
57047 2005-05-29  Derek Price  <derek@ximbiot.com>
57048
57049         * config/srclist.txt (glob_.h, glob.c): Add these files.
57050
57051 2005-05-29  Derek Price  <derek@ximbiot.com>
57052
57053         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
57054         * modules/glob: New file.
57055         * modules/getlogin_r: Add link to POSIX spec in description.
57056
57057 2005-05-29  Derek Price  <derek@ximbiot.com>
57058             Paul Eggert  <eggert@cs.ucla.edu>
57059
57060         * m4/glob.m4: New file.
57061
57062 2005-05-29  Derek Price  <derek@ximbiot.com>
57063             Paul Eggert  <eggert@cs.ucla.edu>
57064
57065         * lib/glob_.h, lib/glob.c: New files.
57066
57067 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57068
57069         * modules/fts (Files): Remove m4/inttypes-pri.m4.
57070         * modules/fts-lgpl (Depends-on): Remove gettext.
57071
57072 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57073
57074         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
57075         and don't require gt_INTTYPES_PRI.
57076
57077 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57078
57079         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
57080
57081         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
57082         the configuration hassle isn't worth it.
57083         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
57084         (LONGEST_MODIFIER, PRIuMAX): Remove.
57085
57086 2005-05-27  Bruno Haible  <bruno@clisp.org>
57087
57088         * lib/getlogin_r.h: Remove second include of <stddef.h>.
57089
57090 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
57091
57092         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
57093         _POSIX_PTHREAD_SEMANTICS for Solaris.
57094
57095 2005-05-25  Derek Price  <derek@ximbiot.com>
57096
57097         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
57098
57099 2005-05-25  Derek Price  <derek@ximbiot.com>
57100             Paul Eggert  <eggert@cs.ucla.edu>
57101
57102         * modules/getlogin_r, m4/getlogin_r.m4: New files.
57103         * lib/getlogin_r.c, getlogin_r.h: New files.
57104
57105 2005-05-25  Bruno Haible  <bruno@clisp.org>
57106             Derek Price  <derek@ximbiot.com>
57107
57108         * lib/getlogin_r.h: Simplify API documentation.
57109
57110 2005-05-23  Derek Price  <derek@ximbiot.com>
57111
57112         * modules/minmax (Files): Add m4/minmax.m4.
57113         (configure.ac): Add gl_MINMAX.
57114
57115 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57116
57117         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
57118         so that unistd-safer.h (GPL'ed code) need not be included.
57119
57120 2005-05-22  Bruno Haible  <bruno@clisp.org>
57121
57122         * m4/minmax.m4: New file.
57123         Based on a patch by Derek Price <derek@ximbiot.com>.
57124
57125 2005-05-22  Bruno Haible  <bruno@clisp.org>
57126
57127         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
57128         (INT64_MIN): Fix definition.
57129         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
57130
57131         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
57132         NEED_SIGNED_INT_TYPES.
57133
57134         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
57135         HAVE_SYSTEM_INTTYPES.
57136
57137 2005-05-22  Bruno Haible  <bruno@clisp.org>
57138
57139         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
57140         Also include <sys/param.h> if it defines MIN, MAX.
57141         Based on a patch by Derek Price <derek@ximbiot.com>.
57142
57143 2005-05-21  Jim Meyering  <jim@meyering.net>
57144
57145         * modules/fts (Files): Add m4/inttypes-pri.m4.
57146         (Depends-on): Add lstat and remove gettext.  Alphabetize.
57147
57148 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57149
57150         New fts module.
57151         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
57152         (setup_dir, free_dir): New functions.
57153         (enter_dir, leave_dir): Define trivial
57154         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
57155         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
57156         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
57157         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
57158         Move to fts-cycle.c.
57159         (fts_open): Use setup_dir.
57160         (fts_close): Use free_dir.
57161         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
57162         This adds a label and some gotos, but the alternatives were messier.
57163         Check for memory allocation failure when entering a dir.
57164         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
57165         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
57166         (FTS): New member fts_cycle, that is a union that contains the
57167         old active_dir_ht and cycle_state.  All uses changed to mention
57168         fts_cycle.ht and fts_cycle.state.
57169         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
57170         fts.c, with the following changes:
57171         (setup_dir, free_dir): New functions.
57172         (enter_dir): Now returns bool.  Return true if successful, false
57173         if memory exhausted.  All callers changed.
57174         Do not bother partly cleaning up on
57175         memory allocation failure; that is free_dir's job.
57176         However, free ad if hash_insert fails, to avoid memory leak.
57177         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
57178         fts->fts_options to see which union member to use.
57179
57180 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57181
57182         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
57183         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
57184
57185 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57186
57187         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
57188
57189 2005-05-20  Jim Meyering  <jim@meyering.net>
57190
57191         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
57192         Now a macro, to pacify GCC.
57193
57194 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57195
57196         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
57197         of -1.
57198
57199 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57200
57201         * lib/chown.c (rpl_chown): Return -1 on failure.
57202
57203 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57204
57205         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
57206         Don't check for stddef.h.
57207         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
57208         don't use its results.
57209         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
57210         since we include them unconditionally.  Don't require
57211         AM_STDBOOL_H, since stdbool is a prerequisite.
57212         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
57213         since we assume C89 or better.
57214         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
57215         as we don't use their results.
57216         Don't check for fchdir, memmove, memset, strrchr, as we use
57217         them unconditionally.
57218         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
57219         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
57220
57221 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57222
57223         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
57224         Include <stddef.h> unconditionally, since we assume C89 now.
57225         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
57226         * lib/fts.c: Include fts_.h first, to check interface.
57227         Do not include intprops.h; no longer needed.
57228         Include cycle-check.h and hash.h, since fts_.h no longer does.
57229         Remove unnecessary casts of closedir to void.
57230         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
57231         decide whether to decrement nlinks.
57232         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
57233         (FTS): Use struct hash_table * instead of Hash_table, so that
57234         we no longer need to include hash.h here.
57235
57236 2005-05-18  Jim Meyering  <jim@meyering.net>
57237
57238         * modules/dirfd (License): Change to LGPL.  Most of the code
57239         is already in the public domain.
57240
57241 2005-05-18  Jim Meyering  <jim@meyering.net>
57242
57243         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
57244         Reported by Yoann Vandoorselaere.
57245
57246 2005-05-17  Jim Meyering  <jim@meyering.net>
57247
57248         * m4/fts.m4: New file, from coreutils.
57249
57250 2005-05-17  Jim Meyering  <jim@meyering.net>
57251
57252         * lib/fts.c, lib/fts_.h: New files, from coreutils.
57253
57254 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57255
57256         Sync from coreutils.
57257         * m4/unlinkdir.m4: New file.
57258
57259 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57260
57261         Sync from coreutils.
57262         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
57263         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
57264         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
57265         White space changes only.
57266         * lib/makepath.c (make_path): Port to hosts where leading "//" is
57267         special.
57268         * lib/yesno.c: Include getline.h, not ctype.h.
57269         (yesno): Don't remove leading white space; POSIX doesn't allow it.
57270         Use getline to remove arbitrary restriction on response length.
57271
57272 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57273
57274         * config/srclist-update: Spell out "Street" in FSF postal
57275         mail address; this is the style the FSF seems to prefer.
57276
57277         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
57278         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
57279         this updates FSF postal mail address.
57280
57281         Sync from coreutils.
57282         * modules/unlinkdir: New file.
57283         * modules/yesno (Depends-on): Add getline.
57284         * MODULES.html.sh (File system functions): Add unlinkdir.
57285
57286 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57287
57288         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
57289         lib/strsep.h:
57290         Change the initial comment to refer to GPL, not LGPL.
57291         gnulib-tool will change it to LGPL as needed.
57292
57293         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
57294         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
57295         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
57296         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
57297         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
57298         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
57299         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
57300         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
57301         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
57302         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
57303         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
57304         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
57305         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
57306         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
57307         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
57308         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
57309         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
57310         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
57311         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
57312         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
57313         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
57314         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
57315         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
57316         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
57317         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
57318         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
57319         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
57320         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
57321         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
57322         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
57323         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
57324         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
57325         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
57326         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
57327         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
57328         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
57329         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
57330         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
57331         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
57332         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
57333         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
57334         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
57335         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
57336         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
57337         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
57338         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
57339         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
57340         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
57341         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
57342         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
57343         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
57344         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
57345         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
57346         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
57347         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
57348         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
57349         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
57350         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
57351         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
57352         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
57353         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
57354         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
57355         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
57356         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
57357         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
57358         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
57359         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
57360         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
57361         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
57362         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
57363         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
57364         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
57365         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
57366         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
57367         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
57368         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
57369         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
57370         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
57371         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
57372         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
57373         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
57374         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
57375         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
57376         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
57377         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
57378         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
57379         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
57380         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
57381         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
57382         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
57383         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
57384         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
57385         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
57386         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
57387         lib/yesno.c, lib/yesno.h:
57388         Update FSF postal mail address.
57389
57390 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57391
57392         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
57393         tests/test-memmem.c, tests/test-stpncpy.c:
57394         Update FSF postal mail address.
57395
57396 2005-05-13  Bruno Haible  <bruno@clisp.org>
57397
57398         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
57399         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
57400         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
57401         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
57402         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
57403         Add support for 64-bit integers in the MSVC compiler.
57404
57405 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57406
57407         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
57408
57409 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
57410
57411         * gnulib-tool (func_import): Sort and uniquify recommended includes.
57412
57413 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
57414
57415         * doc/getdate.texi (General date syntax): Don't say that date
57416         date --iso-8601=ns generates acceptable dates; it doesn't yet.
57417         Problem reported by Nic Ferrier.
57418
57419 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57420
57421         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
57422         specified in ai_socktype. Fix invalid ai_protocol
57423         check. ai_protocol is usually set to 0 or depending on
57424         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
57425         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
57426         ai_socktype / ai_protocol in the returned addrinfo structure.
57427
57428 2005-05-10  Simon Josefsson  <jas@extundo.com>
57429
57430         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
57431         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57432
57433 2005-05-10  Karl Berry  <karl@gnu.org>
57434
57435         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
57436         (from http://www.gnu.org/licenses).
57437         * doc/COPYING.LIB: also rename to COPYING.LESSER.
57438         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
57439         fdl.texi suffices.
57440
57441 2005-05-10  Karl Berry  <karl@gnu.org>
57442
57443         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
57444         (COPYING.DOC): remove.
57445
57446         * config/srclist-update: new FSF address.
57447
57448 2005-05-10  Derek Price  <derek@ximbiot.com>
57449
57450         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
57451         possible.
57452
57453 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57454             Bruno Haible  <bruno@clisp.org>
57455
57456         * modules/inet_ntop: New file.
57457         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57458         inet_ntop.
57459
57460 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57461             Bruno Haible  <bruno@clisp.org>
57462
57463         * m4/inet_ntop.m4: New file.
57464
57465 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57466             Bruno Haible  <bruno@clisp.org>
57467
57468         * lib/inet_ntop.h: New file.
57469         * lib/inet_ntop.c: New file, from glibc with modifications.
57470
57471 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
57472
57473         * modules/time_r (License): Change to LGPL.
57474         * modules/extensions (License): Change to LGPL.  Actually,
57475         the license is more permissive than that, but currently gnulib-tool
57476         doesn't know how to handle more-permissive licenses.
57477
57478         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
57479         Problem reported by Dave Love.
57480
57481 2005-05-08  Jim Meyering  <jim@meyering.net>
57482
57483         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
57484         blank.
57485
57486 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57487
57488         * modules/argmatch (Depends-on): Add stdbool.
57489         * modules/backupfile (Depends-on): Likewise.
57490         * modules/chdir-long (Depends-on): Likewise.
57491         * modules/closeout (Depends-on): Likewise.
57492         * modules/cycle-check (Depends-on): Likewise.
57493         * modules/dirname (Depends-on): Likewise.
57494         * modules/fnmatch (Depends-on): Likewise.
57495         * modules/fsusage (Depends-on): Likewise.
57496         * modules/fwriteerror (Depends-on): Likewise.
57497         * modules/getcwd (Depends-on): Likewise.
57498         * modules/getloadavg (Depends-on): Likewise.
57499         * modules/hard-locale (Depends-on): Likewise.
57500         * modules/makepath (Depends-on): Likewise.
57501         * modules/mountlist (Depends-on): Likewise.
57502         * modules/nanosleep (Depends-on): Likewise.
57503         * modules/posixtm (Depends-on): Likewise.
57504         * modules/quotearg (Depends-on): Likewise.
57505         * modules/readtokens (Depends-on): Likewise.
57506         * modules/readtokens0 (Depends-on): Likewise.
57507         * modules/readutmp (Depends-on): Likewise.
57508         * modules/save-cwd (Depends-on): Likewise.
57509         * modules/strftime (Depends-on): Likewise.
57510         * modules/userspec (Depends-on): Likewise.
57511         * modules/utimecmp (Depends-on): Likewise.
57512         * modules/xgetcwd (Depends-on): Likewise.
57513         * modules/xnanosleep (Depends-on): Likewise.
57514         * modules/xstrtod (Depends-on): Likewise.
57515         * modules/yesno (Depends-on): Likewise.
57516
57517 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57518
57519         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
57520         needless checks.
57521
57522 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57523
57524         Merge from coreutils.  Among other things,
57525         add bulletproofing for cases where stdin, stdout, or stderr are closed.
57526         * lib/fd-safer.c: New file.
57527         * lib/fcntl-safer.h, open-safer.c: Remove.
57528         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
57529         * lib/dup-safer.c: Include unistd-safer.h first.
57530         Don't include errno.h.
57531         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
57532         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
57533         * lib/file-type.c: Rely on file-type.h change.
57534         * lib/getloadavg.c: Include unistd-safer.h.
57535         (getloadavg): Use safer open.
57536         * lib/getusershell.c: Include "stdio-safer.h".
57537         (getusershell): Use safer fopen.
57538         * lib/long-options.c (long_options): Use NULL rather than 0.
57539         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
57540         'free'.
57541         * lib/modechange.c: Likewise.
57542         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
57543         (MODE_DONE): New constant.
57544         (struct mode_change): Remove 'next' member.
57545         (make_node_op_equals): New function; like the old one of the
57546         same name, except it allocates an array.
57547         (mode_compile, mode_create_from_ref): Use it.
57548         (mode_compile): Allocate result as an array, not a linked list.
57549         Parse octal string ourself, so that we catch mistakes like "+0".
57550         (mode_adjust): Arg is an array, not a linked list.
57551         * lib/modechange.c: Include stat-macros.h, xalloc.h.
57552         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
57553         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
57554         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
57555         Remove.  This is now stat-macros.h's job.
57556         (talloc): Remove.  All callers replaced by xalloc, so that
57557         our invokers don't have to worry about reporting memory failures.
57558         (make_node_op_equals): Remove.
57559         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57560         New constants.
57561         (struct mode_change): Moved here from modechange.h.
57562         (mode_append_entry): Remove.
57563         (mode_compile): Remove MASKED_OPS arg, since it encouraged
57564         apps to have incorrect behavior.  Use simpler algorithm for head
57565         and tail.  Don't futz with umask; that's now the job of mode_adjust.
57566         Detect more invalid usages rather than having somewhat-random behavior.
57567         Don't insert an "a=" action, as that leads to incorrect behavior.
57568         (mode_compile, mode_create_from_ref): Return NULL on error instead
57569         of an enum, since now there's only one way to have an error.  All
57570         callers changed.
57571         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
57572         at the correct time.  Simplify calculation of "+u" and its ilk.
57573         Don't mishandle "+X".
57574         (mode_free): Remove "register" and localize decls.
57575         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57576         (struct mode_change): Move to modechange.c; callers don't
57577         need to see this stuff.
57578         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
57579         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
57580         (mode_change, mode_adjust): Reflect the new signatures noted above.
57581         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
57582         that might redefine system include files.
57583         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
57584         (my_usleep): Use NULL rather than (void *) 0.
57585         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
57586         Use siginterrupt to specify that system calls should be interrupted.
57587         (rpl_nanosleep): Move initialization of suspended closer to call of
57588         my_usleep.
57589         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57590         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57591         (desirable_utmp_entry): New function.
57592         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57593         using x2nrealloc, to simplify logic.
57594         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57595         size calculation.  Do not assume utmp file is a regular file.
57596         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57597         (READ_UTMP_CHECK_PIDS): New constant.
57598         * lib/save-cwd.c: Include unistd-safer.h.
57599         (save_cwd): Use fd_safer.
57600         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57601         [!_LIBC] Include "stat-macros.h" instead.
57602         * lib/unistd-safer.h (fd_safer): New decl.
57603
57604 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57605
57606         * modules/getloadavg (Depends-on): Add unistd-safer.
57607         * modules/getusershell (Depends-on): Add stdio-safer.
57608         * modules/lstat (Depends-on): Remove xalloc.
57609         * modules/mkstemp (Depends-on): Add stat-macros.
57610         * modules/modechange (Depends-on): Remove xstrtol.
57611         Add stat-macros, xalloc.
57612         * modules/save-cwd (Depends-on): Add unistd-safer.
57613         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57614         * modules/unistd-safer (Files): Add lib/fd-safer.c
57615         (Makefile.am): Remove lib_SOURCES.
57616
57617         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57618         Remove fcntl-safer; unistd-safer supersedes it.
57619
57620 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57621
57622         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57623         AC_HEADER_STAT.
57624         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57625         (gl_PREREQ_CHOWN): Remove.
57626         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57627         it.  Don't require AC_HEADER_STAT.
57628         (gl_PREREQ_LSTAT): Remove.
57629         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57630         Don't require AC_HEADER_STAT.
57631         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57632         (gl_PREREQ_RMDIR): Remove.
57633         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57634         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57635         the stat-macros module a prerequisite.
57636         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57637         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57638         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57639         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57640         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57641         variable names.
57642         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57643         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57644         variable prefixes.
57645         * m4/fcntl-safer.m4: Remove.
57646         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57647         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57648         Invoke gl_PREREQ_FD_SAFER.
57649         (gl_PREREQ_FD_SAFER): New macro.
57650         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57651         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57652         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57653         Remove duplicate call to AC_LIBOBJ(readutmp).
57654         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57655
57656         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57657         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57658
57659 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57660
57661         * MODULES.html.sh (Misc): Add byteswap.
57662
57663 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57664
57665         * modules/getcwd (Depends-on): Add extensions.
57666         * modules/openat (Depends-on): Likewise.
57667
57668 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57669
57670         * modules/byteswap: New file.
57671
57672 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57673
57674         * m4/byteswap.m4: New file.
57675
57676 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57677
57678         * lib/byteswap_.h: New file.
57679
57680 2005-04-25  Karl Berry  <karl@gnu.org>
57681
57682         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57683
57684 2005-04-25  Albert Chin  <china@thewrittenword.com>
57685
57686         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57687         Toolkit C bug.
57688
57689 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57690
57691         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57692         (func_ln_if_changed) Remove forcibly for no error message
57693         in case file does not exist.
57694
57695 2005-04-19  Simon Josefsson  <jas@extundo.com>
57696
57697         * gnulib-tool (Options): Make --symlink mean --symbolic.
57698
57699 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57700
57701         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57702
57703 2005-04-16  Simon Josefsson  <jas@extundo.com>
57704
57705         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57706
57707 2005-04-15  Simon Josefsson  <jas@extundo.com>
57708
57709         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57710
57711 2005-04-15  Simon Josefsson  <jas@extundo.com>
57712
57713         * gnulib-tool: Rename --symlink to --symbolic.
57714
57715 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57716
57717         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57718         symbolic links to files instead of copying/moving.  Add --aux-dir,
57719         specifying directory relative --dir where auxiliary build tools
57720         are placed.
57721
57722 2005-04-14  Bruno Haible  <bruno@clisp.org>
57723
57724         * modules/allocsa (License): Change to LGPL.
57725         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57726
57727 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57728
57729         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57730         that "UTC +1 second" continues to work.  Problem reported
57731         by Dmitry V. Levin.
57732         (relunit_snumber): New rule.
57733         (relunit): Use it.
57734
57735 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57736
57737         * lib/getdate.y (universal_time_zone_table): New constant.
57738         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57739         universal_time_zone_table.
57740         (lookup_zone): Prefer universal_time_zone_table to
57741         local_time_zone_table, so that "GMT" time stamps are allowed in
57742         London during the summer.  Problem reported by Ian Abbott.
57743
57744 2005-04-12  Jim Meyering  <jim@meyering.net>
57745
57746         * lib/human.c (humblock): Set *options even when returning due to
57747         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57748         warning from gcc-4.
57749
57750 2005-04-09  Jim Meyering  <jim@meyering.net>
57751
57752         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57753         -Wuninitialized: initialize tm0.tm_year.
57754
57755 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57756
57757         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57758         count, since there's no maximum.  All uses changed.
57759         Add member dsts_seen.
57760         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57761         not being INT_MAX.
57762         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57763         Use pc_rels_seen to decide whther a date is absolute.
57764
57765         * lib/getdate.y (number): Don't overwrite year.
57766         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57767         check.
57768
57769 2005-04-02  Simon Josefsson  <jas@extundo.com>
57770
57771         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57772         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57773
57774 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57775
57776         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57777         where no absolute path name can be longer than PATH_MAX.
57778
57779 2005-03-27  Jim Meyering  <jim@meyering.net>
57780
57781         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57782
57783 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57784
57785         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57786         "one's complement" -> "ones' complement" in comment, as per Knuth.
57787         "value of type" -> "type or expression" in comment.
57788         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57789
57790 2005-03-26  Jim Meyering  <jim@meyering.net>
57791
57792         Comment nits.
57793         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57794         Correct typos: s/or/of/.
57795
57796 2005-03-26  Jim Meyering  <jim@meyering.net>
57797
57798         * modules/check-include-files: Move to ../ and rename to...
57799         * check-module: ...this.
57800
57801 2005-03-25  Jim Meyering  <jim@meyering.net>
57802
57803         * modules/xvasprintf (Files): Add xalloc.h.
57804
57805 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57806
57807         * modules/gettext (Files): config/config.rpath ->
57808         build-aux/config.rpath
57809         * modules/iconv (Files): Likewise.
57810         Problem reported by Oskar Liljeblad.
57811
57812 2005-03-23  Jim Meyering  <jim@meyering.net>
57813
57814         * modules/check-include-files: New script to check for
57815         missing dependencies, multiple includes, etc.
57816
57817         * modules/c-strtold (Depends-on): Add xalloc.
57818         * modules/c-strtod (Depends-on): Add xalloc.
57819         * modules/hash (Depends-on): Add xalloc.
57820         (Files): Remove lib/xalloc.h.
57821
57822         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57823         * modules/userspec (Files): Add lib/inttostr.h.
57824
57825 2005-03-23  Jim Meyering  <jim@meyering.net>
57826
57827         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57828
57829 2005-03-22  Jim Meyering  <jim@meyering.net>
57830
57831         * modules/stat-macros: New module.
57832         * modules/canonicalize, modules/euidaccess, modules/file-type,
57833         * modules/filemode, modules/lchown, modules/makepath,
57834         * modules/rmdir, modules/stat: Depend on new stat-macros module
57835         rather than listing lib/stat-macros.h manually.
57836         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
57837
57838 2005-03-22  Jim Meyering  <jim@meyering.net>
57839
57840         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
57841
57842 2005-03-22  Bruno Haible  <bruno@clisp.org>
57843
57844         * config/srclist.txt: Replace target directory 'config' with
57845         'build-aux'.
57846         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
57847         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
57848         ../build-aux/.
57849
57850 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
57851
57852         * modules/chdir-long (Depends-on): Add mempcpy.
57853
57854         * modules/acl, modules/backupfile, modules/c-strtod,
57855         modules/c-strtold, modules/canon-host, modules/canonicalize,
57856         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
57857         modules/exclude, modules/exitfail, modules/file-type,
57858         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
57859         modules/getdate, modules/getline, modules/getpagesize,
57860         modules/getpass, modules/getugroups, modules/group-member,
57861         modules/hard-locale, modules/hash, modules/human, modules/idcache,
57862         modules/inttostr, modules/long-options, modules/makepath,
57863         modules/md5, modules/memcasecmp, modules/memcoll,
57864         modules/modechange, modules/mountlist, modules/path-concat,
57865         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
57866         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
57867         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
57868         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
57869         modules/strftime, modules/strndup, modules/strverscmp,
57870         modules/timespec, modules/unlocked-io, modules/userspec,
57871         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
57872         modules/yesno:
57873         Remove lib_SOURCES line from Makefile.am section, as this is now
57874         done automatically by the corresponding Autoconf macro.
57875
57876 2005-03-21  Jim Meyering  <jim@meyering.net>
57877
57878         Changes imported from coreutils.
57879
57880         * lib/cycle-check.c: Don't include xalloc.h.
57881
57882         * lib/path-concat.c: Don't include assert.h.
57883         (path_concat): Remove assertion that would have triggered
57884         for ABASE starting with more than one slash.
57885         Reported by Andreas Schwab.
57886
57887         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
57888         properly when ABASE is an absolute file name.
57889         Correct the description of this function.
57890         Include <assert.h>.
57891         Add an assertion and a test driver.
57892         This fixes a bug introduced on 2004-07-02.
57893         Andreas Schwab reported the resulting failure of cp --parents:
57894         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
57895
57896 2005-03-21  Jim Meyering  <jim@meyering.net>
57897
57898         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
57899         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
57900
57901 2005-03-21  Jim Meyering  <jim@meyering.net>
57902         and  Paul Eggert  <eggert@cs.ucla.edu>
57903
57904         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
57905         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
57906         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
57907         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
57908         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
57909         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
57910         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
57911         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
57912         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
57913         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
57914         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
57915         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
57916         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
57917         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
57918         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
57919         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
57920         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
57921         for these modules.
57922
57923 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
57924
57925         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
57926         (which shouldn't happen), generate nothing instead of returning 0
57927         immediately, so that nstrftime (NULL, ...) doesn't return 0.
57928
57929 2005-03-16  Bruno Haible  <bruno@clisp.org>
57930
57931         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
57932         HAVE_LONGLONG_64BIT.
57933
57934 2005-03-16  Bruno Haible  <bruno@clisp.org>
57935
57936         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
57937         HAVE_LONGLONG_64BIT.
57938
57939 2005-03-16  Bruno Haible  <bruno@clisp.org>
57940
57941         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
57942         HAVE_LONGLONG_64BIT.
57943
57944 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57945
57946         * lib/strftime.c (my_strftime): Prepend space to format so that we can
57947         reliably distinguish strftime failure from empty output on POSIX
57948         hosts.
57949
57950 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57951
57952         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
57953         (iconv_string): Don't guess a size-zero buffer, as that might cause
57954         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
57955         result would be 'too large', where 'too large' is (heuristically)
57956         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
57957         overflow concerns.  This will prevent some unwanted malloc failures
57958         when the inputs are very large.
57959
57960 2005-03-15  Karl Berry  <karl@gnu.org>
57961
57962         * config/srclist.txt (config.rpath): from gettext.
57963         * config/config.rpath: update.
57964
57965 2005-03-15  Bruno Haible  <bruno@clisp.org>
57966
57967         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
57968         to 'negate'.
57969
57970         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
57971         variable.
57972
57973         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
57974         results.
57975
57976 2005-03-14  Simon Josefsson  <jas@extundo.com>
57977
57978         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
57979         <fx@gnu.org>.
57980
57981 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
57982
57983         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
57984         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
57985         intprops.h.
57986         * lib/strtol.c: Likewise.
57987
57988 2005-03-14  Jim Meyering  <jim@meyering.net>
57989
57990         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
57991         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
57992         to be nonzero so that we (and caller) can detect the difference
57993         between a valid zero-length expansion and an error return, even
57994         when the underlying strftime fails before writing anything into
57995         that location.
57996
57997 2005-03-14  Bruno Haible  <bruno@clisp.org>
57998
57999         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
58000         Update from GNU gettext 0.14.3.
58001
58002 2005-03-10  Jim Meyering  <jim@meyering.net>
58003
58004         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
58005
58006 2005-03-10  Jim Meyering  <jim@meyering.net>
58007
58008         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
58009         so that this module works on systems without fchdir.
58010
58011 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
58012
58013         Factor int-properties macros into a single file, except for
58014         glibc-related files.
58015         * lib/intprops.h: New file.
58016         * lib/getloadavg.c: Include it instead of limits.h.
58017         (INT_STRLEN_BOUND): Remove.
58018         * lib/human.c: Include intprops.h.
58019         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
58020         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
58021         302/1000.
58022         * lib/inttostr.h: Include intprops.h instead of limits.h.
58023         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
58024         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
58025         for consistency with intprops.h.
58026         (time_t_is_integer, twos_complement_arithmetic): Use them.
58027         * lib/sig2str.h: Include <signal.h>, intprops.h.
58028         (INT_STRLEN_BOUND): Remove.
58029         * lib/strftime.c (TYPE_SIGNED): Remove.
58030         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
58031         * lib/strtol.c: Adjust comments to match intprops.h.
58032         * lib/userspec.c: Include intprops.h.
58033         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
58034         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
58035         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
58036         instead of rolling our own expressions.
58037         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
58038
58039         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
58040         instead of int.
58041         (my_strftime): Do not mishandle years close to INT_MAX, by doing
58042         the right thing even if adding 1900 would overflow.  Similarly
58043         for tm_mon + 1 and tm_yday + 1.
58044         Make %Y always equivalent to %C%y, and similarly for %G and %g.
58045         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
58046         (DO_SIGNED_NUMBER): New macro.
58047         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
58048
58049 2005-03-07  Bruno Haible  <bruno@clisp.org>
58050
58051         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
58052
58053 2005-03-07  Bruno Haible  <bruno@clisp.org>
58054
58055         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
58056
58057 2005-03-04  Derek R. Price  <derek@ximbiot.com>
58058
58059         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
58060         (func_import): Only replace files via --import when they have actually
58061         changed.
58062
58063 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58064
58065         * m4/mmap-anon.m4: New file.
58066         * m4/pagealign_alloc.m4: New file.
58067
58068 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58069             Bruno Haible  <bruno@clisp.org>
58070
58071         * modules/pagealign_alloc: New file.
58072         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
58073
58074 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58075             Bruno Haible  <bruno@clisp.org>
58076
58077         * lib/pagealign_alloc.h: New file.
58078         * lib/pagealign_alloc.c: New file.
58079
58080 2005-03-03  Bruno Haible  <bruno@clisp.org>
58081
58082         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
58083         Use an all-permissive copyright notice, recommended by RMS.
58084
58085 2005-03-02  Bruno Haible  <bruno@clisp.org>
58086
58087         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
58088         of AIX, the replacement has to be done only after <string.h> is
58089         included, therefore not in config.h. stpncpy.h does the replacement,
58090         and stpncpy.c uses it.
58091
58092 2005-03-02  Bruno Haible  <bruno@clisp.org>
58093
58094         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
58095         stpncpy.c uses it.
58096
58097 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58098
58099         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
58100         The workaround isn't strictly needed for POSIX conformance, and
58101         it's too much of a pain to configure and maintain.  We'll ask
58102         people to fix their kernels instead.
58103         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
58104         (NANOSLEEP_BUG_WORKAROUND): Remove.
58105         (xnanosleep): Remove the workaround.
58106
58107 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58108
58109         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
58110         Reported by Derek Price.
58111         (Include): Add "timespec.h".
58112
58113         * modules/xnanosleep (Depends-on): Remove gethrxtime.
58114
58115 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58116
58117         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
58118         to detect nanosleep bug.
58119
58120 2005-03-01  Bruno Haible  <bruno@clisp.org>
58121
58122         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
58123
58124 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58125
58126         * modules/gethrxtime: New file.
58127         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
58128         (Depends-on): Add gethrxtime.
58129         (configure.ac): Add gl_XNANOSLEEP.
58130         (Makefile.am): Remove lib_SOURCES line.
58131
58132 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58133
58134         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
58135         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
58136
58137 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58138
58139         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
58140         * lib/timespec.h (gettime): Return void, since it always
58141         succeeds now.  All uses changed.
58142         * lib/gettime.c (gettime) Likewise.
58143         [HAVE_NANOTIME]: Prefer nanotime.
58144         Assume gettimeofday succeeds, as POSIX requires.
58145         Assime time () succeeds, since other code already does.
58146         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
58147         (timespec_subtract): Remove.
58148         (NANOSLEEP_BUG_WORKAROUND): New constant.
58149         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
58150         things considerably.  Use it only on GNU/Linux hosts, since the
58151         workaround shouldn't be needed elsewhere.
58152
58153 2005-02-24  Bruno Haible  <bruno@clisp.org>
58154
58155         * modules/gettext (Files): Add m4/glibc2.m4.
58156
58157 2005-02-24  Bruno Haible  <bruno@clisp.org>
58158
58159         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
58160         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
58161         * m4/progtest.m4:
58162         Update from GNU gettext 0.14.2.
58163         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
58164
58165 2005-02-24  Bruno Haible  <bruno@clisp.org>
58166
58167         * lib/localcharset.c: Update from GNU gettext 0.14.2.
58168         * lib/config.charset: Update from GNU gettext 0.14.2.
58169
58170 2005-02-24  Bruno Haible  <bruno@clisp.org>
58171
58172         * lib/gettext.h: Update from GNU gettext 0.14.2.
58173
58174 2005-02-23  Simon Josefsson  <jas@extundo.com>
58175
58176         * m4/iconvme.m4: New file.
58177
58178 2005-02-23  Jim Meyering  <jim@meyering.net>
58179
58180         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
58181         change.
58182         Thanks to Bruno Haible for catching it.
58183
58184 2005-02-22  Simon Josefsson  <jas@extundo.com>
58185
58186         * modules/iconvme: New file.
58187
58188         * MODULES.html.sh: Add iconvme.
58189
58190 2005-02-22  Simon Josefsson  <jas@extundo.com>
58191
58192         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
58193
58194 2005-02-22  Simon Josefsson  <jas@extundo.com>
58195
58196         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
58197
58198 2005-02-22  Jim Meyering  <jim@meyering.net>
58199
58200         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
58201         s/ifndef/ifdef/.
58202
58203 2005-02-20  Neil Conway  <neilc@samurai.com>
58204
58205         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
58206         returned by OSX/Darwin if the specified buffer is not large
58207         enough for the hostname.
58208
58209 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58210
58211         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
58212         pass it to _help, otherwise the latter coredumps trying to
58213         dereference state.root_argp.
58214
58215 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58216
58217         * modules/chdir-long (Depends-on): Add memrchr.
58218         * modules/memrchr (Files): Add lib/memrchr.h.
58219         (Include): "memrchr.h".
58220
58221 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58222
58223         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
58224
58225 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58226
58227         * lib/memrchr.h: New file.
58228         * lib/chdir-long.c: Include it.
58229         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
58230         Don't bother including stddef.h.
58231
58232 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58233
58234         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
58235         inclusion.
58236         Include <sys/types.h>, for dev_t.
58237         (ME_DUMMY, ME_REMOTE): Move from here....
58238         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
58239         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
58240         Dmitry V. Levin.
58241         Include mountlist.h first, to test the interface.
58242
58243 2005-01-29  Bruno Haible  <bruno@clisp.org>
58244
58245         * lib/progname.c (program_name): Initialize.
58246         Needed when linking statically on MacOS X.
58247
58248 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58249
58250         Sync from coreutils.
58251         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
58252         (Depends-on): Add c-strtod.
58253         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
58254
58255 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58256
58257         Sync from coreutils.
58258         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
58259
58260         Remove files that are specific to coreutils.
58261         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
58262
58263 2005-01-28  Bruno Haible  <bruno@clisp.org>
58264
58265         * modules/javacomp: New file.
58266         * MODULES.html.sh (Java): Add javacomp.
58267
58268 2005-01-28  Bruno Haible  <bruno@clisp.org>
58269
58270         * m4/javacomp.m4: New file, from GNU gettext.
58271
58272 2005-01-28  Bruno Haible  <bruno@clisp.org>
58273
58274         * lib/javacomp.sh.in: New file, from GNU gettext.
58275         * lib/javacomp.h: New file, from GNU gettext.
58276         * lib/javacomp.c: New file, from GNU gettext.
58277
58278 2005-01-26  Simon Josefsson  <jas@extundo.com>
58279
58280         * lib/gai_strerror.c: Use GPL in header.
58281
58282 2005-01-26  Bruno Haible  <bruno@clisp.org>
58283
58284         * modules/javaexec: New file.
58285         * MODULES.html.sh (Java): Add javaexec.
58286
58287 2005-01-26  Bruno Haible  <bruno@clisp.org>
58288
58289         * m4/javaexec.m4: New file, from GNU gettext.
58290
58291 2005-01-26  Bruno Haible  <bruno@clisp.org>
58292
58293         * lib/javaexec.sh.in: New file, from GNU gettext.
58294         * lib/javaexec.h: New file, from GNU gettext.
58295         * lib/javaexec.c: New file, from GNU gettext.
58296
58297 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58298
58299         * modules/lchown (Depends-on): Remove lchown.h
58300
58301 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58302
58303         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
58304         must be defined if the header file was not found, in order
58305         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
58306
58307 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58308
58309         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
58310         initializers for struct pentry_state.
58311         (__argp_error): Check return value of __asprintf
58312         (__argp_failure): Translate error message
58313
58314         * lib/argp-parse.c: Removed braces around the expansion of N_()
58315
58316 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58317
58318         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
58319         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
58320         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
58321         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
58322         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
58323         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
58324         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
58325         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
58326         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
58327         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
58328         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
58329         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
58330         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
58331         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
58332         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
58333         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
58334         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
58335         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
58336         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
58337         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
58338         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
58339         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
58340         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
58341         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
58342         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
58343         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
58344         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
58345         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
58346         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
58347         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
58348         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
58349         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
58350         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
58351         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
58352         xstrtol.m4, xstrtoumax.m4, yesno.m4:
58353         Use an all-permissive copyright notice, recommended by RMS.
58354
58355 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
58356
58357         * modules/chdir-long (Depends-on): Remove mempcpy.
58358
58359 2005-01-21  Jim Meyering  <jim@meyering.net>
58360
58361         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
58362         same value as for Solaris 9.
58363
58364         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
58365         component length.  This included changing the parameter to be
58366         of type `char *' rather than `char const *'.
58367         * lib/chdir-long.h (chdir_long): Update prototype.
58368
58369         * lib/openat.c (fdopendir, fstatat): New functions.
58370         * lib/openat.h: Include headers required for use of DIR and struct
58371         stat.
58372         [AT_SYMLINK_NOFOLLOW]: Define.
58373         (fdopendir, fstatat): Add prototypes.
58374
58375 2005-01-21  Bruno Haible  <bruno@clisp.org>
58376
58377         * modules/classpath: New file.
58378         * MODULES.html.sh (Java): Add classpath.
58379
58380 2005-01-21  Bruno Haible  <bruno@clisp.org>
58381
58382         * lib/classpath.h: New file, from GNU gettext.
58383         * lib/classpath.c: New file, from GNU gettext.
58384
58385 2005-01-20  Simon Josefsson  <jas@extundo.com>
58386
58387         * modules/version-etc-fsf: New file.
58388
58389 2005-01-20  Simon Josefsson  <jas@extundo.com>
58390
58391         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
58392         * lib/version-etc.c: Remove version_etc_copyright.
58393         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
58394         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
58395
58396 2005-01-20  Simon Josefsson  <jas@extundo.com>
58397
58398         * lib/base64.h (isbase64): Add.
58399
58400         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
58401         using a unsigned prototype, don't inline.
58402         (base64_decode): Use it.
58403
58404 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58405
58406         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
58407         it.
58408
58409 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58410
58411         * lib/save-cwd.c (save_cwd): Remove code to support the case
58412         where fchdir is missing or flaky.
58413
58414 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58415
58416         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
58417
58418 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58419
58420         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
58421         AC_LIBSOURCES now does this.
58422         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
58423         with new ullong_max module.
58424
58425 2005-01-19  Bruno Haible  <bruno@clisp.org>
58426
58427         * modules/sh-quote: New file.
58428         * MODULES.html.sh (Executing programs): Add sh-quote.
58429
58430 2005-01-19  Bruno Haible  <bruno@clisp.org>
58431
58432         * lib/sh-quote.h: New file, from GNU gettext.
58433         * lib/sh-quote.c: New file, from GNU gettext.
58434
58435 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58436
58437         Merge from coreutils.
58438         * m4/ullong_max.m4: New file.
58439         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
58440         (gl_MACROS): Assume localeconv exists.
58441
58442 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58443
58444         Merge changes from coreutils, as described below in several
58445         changelogs dated today.
58446
58447         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
58448         (O_DIRECTORY): Remove; not needed here, since "." must be
58449         a directory.  All uses removed.
58450         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
58451         universal on Suns, and we also need to test for IRIX.
58452         Revamp code to use 'if' rather than '#if'.
58453         Avoid unnecessary comparison of cwd->desc to 0.
58454
58455         * lib/utimens.c (futimens): Robustify the previous patch, by checking
58456         for known valid error numbers rather than observed invalid ones.
58457
58458 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58459
58460         * modules/ullong_max: New file.
58461
58462         * modules/chdir-long, modules/openat: New files.
58463         * modules/save-cwd (Depends-on): Depend on chdir-long.
58464         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
58465
58466 2005-01-18  Jim Meyering  <jim@meyering.net>
58467
58468         Merge from coreutils.
58469         * m4/chdir-long.m4, m4/openat.m4: New files.
58470         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
58471         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
58472         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
58473         is sane and DOES follow symlinks.  Besides, testing 20 different
58474         systems found no broken chown implementations.
58475         Prompted by a change in rsync's copy of this macro.
58476         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
58477
58478         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
58479
58480         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
58481         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
58482         NULL-means-set-to-current-time semantics.
58483         Remove temporary file immediately, rather than waiting
58484         for configure's at-exit trap code to do it.
58485
58486 2005-01-18  Jim Meyering  <jim@meyering.net>
58487
58488         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58489
58490         * lib/utimens.c (futimens): Account for the fact that futimes
58491         can also fail with errno == ENOSYS or errno == ENOENT.
58492         Patch from Dmitry V. Levin.
58493
58494         Change the name of the robust chdir function from chdir to chdir_long.
58495         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
58496         (restore_cwd): Use chdir_long, not chdir.
58497         * lib/chdir-long.c: Renamed from chdir.c.
58498         * lib/chdir-long.h: Renamed from chdir.h.
58499         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
58500         Hurd.
58501
58502 2005-01-18  Bruno Haible  <bruno@clisp.org>
58503
58504         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
58505         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
58506         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
58507         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
58508         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
58509         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
58510         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
58511         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
58512         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
58513         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
58514         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
58515         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
58516         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
58517         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
58518         Use an all-permissive copyright notice, recommended by RMS.
58519
58520 2005-01-18  Bob Proulx  <bob@proulx.com>
58521
58522         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
58523         simplify offsetof() macro construct to avoid compile failure with
58524         native HP-UX 11.0 ANSI C compiler.
58525
58526 2005-01-17  Bruno Haible  <bruno@clisp.org>
58527
58528         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
58529         redundant because stpncpy.m4 takes care of it.
58530
58531 2005-01-17  Bruno Haible  <bruno@clisp.org>
58532
58533         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
58534
58535 2005-01-17  Bruno Haible  <bruno@clisp.org>
58536
58537         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
58538         used.
58539
58540 2005-01-17  Bruno Haible  <bruno@clisp.org>
58541
58542         * lib/fwriteerror.h (fwriteerror): Change specification to include
58543         fclose.
58544         * lib/fwriteerror.c: Include <stdbool.h>.
58545         (fwriteerror): At the end, close the file stream. Record whether
58546         stdout was already closed.
58547
58548 2005-01-17  Bruno Haible  <bruno@clisp.org>
58549
58550         * lib/execute.c (environ): Declare if needed.
58551         * lib/pipe.c (environ): Likewise.
58552         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
58553
58554 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58555
58556         * modules/argp: Depend on vsnprintf
58557
58558 2005-01-10  Jim Meyering  <jim@meyering.net>
58559
58560         * modules/closeout (Depends-on): Add atexit.
58561
58562 2005-01-06  Bruno Haible  <bruno@clisp.org>
58563
58564         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
58565
58566 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58567
58568         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
58569         definitions to be after all include files, to avoid collisions.
58570         Problem reported by Bob Proulx.
58571
58572 2005-01-04  Jim Meyering  <jim@meyering.net>
58573
58574         Changes imported from coreutils.
58575         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
58576         as the mkstemp template, use a temporary directory and an
58577         8.3-friendly template to avoid trouble on systems like DJGPP.
58578         Reported by Juan M. Guerrero via Stepan Kasal.
58579         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
58580         close. Remove the temporary directory right away, rather than waiting
58581         for configure's at-exit trap code to do it.
58582         Suggestion from Stepan Kasal.
58583
58584 2005-01-01  Simon Josefsson  <jas@extundo.com>
58585
58586         * gnulib-tool: Print #include directives when --import'ing.
58587
58588 2004-12-28  Simon Josefsson  <jas@extundo.com>
58589
58590         * tests/test-base64.c: Include required header files.  Remove
58591         unused variables.
58592
58593 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58594
58595         * modules/error (Depends-on): Remove gettext.
58596
58597 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58598
58599         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58600         not needed.  This removes a dependency on the gettext module.
58601         [defined _LIBC]: Do not include <libintl.h>; not needed.
58602
58603 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58604
58605         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58606         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58607
58608 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58609
58610         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58611         HAVE_DECL_STRTOLD.
58612
58613 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58614
58615         * modules/getdate (Depends-on): Remove alloca-opt.
58616
58617 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58618
58619         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58620
58621 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58622
58623         * lib/argp-parse.c: Include <stddef.h>.
58624         (alignof, alignto): New macros.
58625         (parser_init): Don't assume that void * is aligned sufficiently
58626         for struct option.
58627
58628         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58629         need to extend the stack.
58630         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58631         large.
58632
58633 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58634
58635         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58636
58637 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58638
58639         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58640         (2004-10-24) change.  Apparently this was a false alarm.
58641
58642         * modules/getdate: Depend on alloca-opt, not alloca.
58643
58644 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58645
58646         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58647         Remove now-obsolete comment about AIX.
58648         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58649         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58650         (YYMAXDEPTH): New macro.
58651
58652 2004-12-18  Simon Josefsson  <jas@extundo.com>
58653
58654         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58655
58656 2004-12-18  Bruno Haible  <bruno@clisp.org>
58657
58658         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58659
58660 2004-12-18  Bruno Haible  <bruno@clisp.org>
58661
58662         * lib/fatal-signal.c (fatal_signals): Make non-const.
58663         (init_fatal_signals): New function.
58664         (uninstall_handlers, install_handlers): Ignore signals that were set to
58665         SIG_IGN.
58666         (at_fatal_signal): Call init_fatal_signals.
58667         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58668         SIG_IGN.
58669         Reported by Paul Eggert.
58670
58671 2004-12-18  Bruno Haible  <bruno@clisp.org>
58672
58673         * doc/alloca.texi: New file.
58674         * doc/alloca-opt.texi: New file.
58675
58676 2004-12-17  Jim Meyering  <jim@meyering.net>
58677
58678         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58679         Otherwise, install-sh could exit with improper exit status when
58680         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58681
58682 2004-12-16  Simon Josefsson  <jas@extundo.com>
58683
58684         * tests/test-base64.c: Add license.
58685
58686 2004-12-15  Stepan Kasal  <address@hidden>
58687
58688         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58689
58690 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58691
58692         * modules/getcwd (Files): Add m4/d-ino.m4.
58693         Suggested by Mark D. Baushke.
58694
58695 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58696
58697         * lib/getdate.y (textint): New member "negative".
58698         (time_zone_hhmm): New function.
58699         Expect 14 shift-reduce conflicts, not 13.
58700         (o_colon_minutes): New rule.
58701         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58702         (yylex): Set the "negative" member of signed numbers.
58703
58704 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58705
58706         * doc/getdate.texi (Time of day items, Time zone items):
58707         Describe new formats +00:00, UTC+00:00.
58708
58709 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58710
58711         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58712         spurious "-l"s.  Problem reported by Stepan Kasal.
58713
58714 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58715
58716         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58717         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58718
58719 2004-12-04  Simon Josefsson  <jas@extundo.com>
58720
58721         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58722         Vandoorselaere <yoann@prelude-ids.org>.
58723
58724 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58725
58726         Changes imported from coreutils.
58727         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58728         exist.
58729         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58730
58731 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58732
58733         Changes imported from coreutils.
58734         * lib/hard-locale.c: Assume <locale.h> exists.
58735         Include "strdup.h".
58736         (GLIBC_VERSION): New macro.
58737         (hard_locale): Assume setlocale exists.
58738         Rewrite to avoid #ifdef.
58739         Use strdup rather than malloc + strcpy.
58740         * lib/human.c: Assume <locale.h> exists.
58741         (human_readable): Assume localeconv exists.
58742
58743 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58744
58745         * modules/hard-locale (Depends-on): Add strdup.
58746
58747 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58748
58749         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58750         convert T2, not T.  (Imported from libc.)
58751
58752 2004-11-30  Simon Josefsson  <jas@extundo.com>
58753
58754         * modules/restrict (License): Change to LGPL.
58755
58756 2004-11-30  Simon Josefsson  <jas@extundo.com>
58757
58758         * m4/restrict.m4: Add copyright and copying conditions.
58759
58760 2004-11-30  Simon Josefsson  <jas@extundo.com>
58761
58762         * m4/base64.m4: New file.
58763
58764 2004-11-30  Simon Josefsson  <jas@extundo.com>
58765
58766         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58767         base64.
58768
58769         * tests/test-base64.c: New file.
58770
58771         * modules/base64: New file.
58772
58773 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58774
58775         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58776         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58777
58778         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58779
58780 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58781
58782         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58783         (__getcwd.c): Don't restore errno; glibc doesn't.
58784         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58785         first, falling back to our code only if its results look suspicious.
58786         Ensure that the resulting buffer is only as large as necessary.
58787
58788         * lib/readutmp.c: Include readutmp.h first.
58789         Include <errno.h>, since readutmp.h no longer does that.
58790         * lib/readutmp.h: Don't include <errno.h>,
58791         <sys/param.h>, <time.h>; not needed to establish interface.
58792         (errno): Remove decl.
58793         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58794         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58795         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58796
58797 2004-11-28  Simon Josefsson  <jas@extundo.com>
58798
58799         * lib/base64.h, base64.c: New file.
58800
58801 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58802
58803         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58804
58805 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58806
58807         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58808         (Depends-on): Remove pathmax, same.  Add mempcpy.
58809         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58810         (Makefile.am): Append getcwd.h to lib_SOURCES.
58811         (Include): Add getcwd.h.
58812         (Maintainer): Change from Jim Meyering to "all, glibc",
58813         since getdate now uses intended-for-glibc code.
58814         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58815         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58816
58817 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58818
58819         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58820         HP's ANSI C compiler.
58821         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58822         Declaring int functions causes warnings on some modern systems and
58823         shouldn't be needed to compile on ancient ones.
58824         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58825         defined.
58826
58827         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58828         with the following changes.
58829         (__set_errno): Parenthesize properly.
58830         Include <stdbool.h>.
58831         (MIN, MAX, MATCHING_INO): New macros.
58832         (__getcwd): Define with prototype, not K&R form.
58833         Use heuristics to allocate default buffer on stack if possible.
58834         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
58835         behavior, and to avoid the PATH_MAX limit when computing
58836         ../../../../...
58837         Use MATCHING_INO to compare inode number to file.
58838         Check for arithmetic overflow in size calculations.
58839         Fix bug in reallocation of dot array that caused getcwd to fail
58840         on directories nested deeper than 75.
58841         Be more careful about saving errno on error.
58842         Do not use realloc; use only free+malloc, as this is a bit
58843         more flexible and avoids a needless copy operation.
58844         Do not inspect st_dev and st_ino for symbolic links; POSIX
58845         doesn't specify the latter.
58846         Check for closedir errors.
58847         Avoid needless casts.
58848         Use "#ifdef weak_alias" around weak_alias, to be like other
58849         glibc code.
58850         The following changes to getcwd.c have effect only when used in
58851         gnulib; they have no effect inside glibc proper.
58852         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
58853         as alloca isn't used.
58854         (alloca, __alloca): Likewise.
58855         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
58856         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58857         unconditionally, as gnulib assumes C89 or better.
58858         Do not include <sys/param.h>.
58859         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
58860         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
58861         better.
58862         (NULL) [!defined NULL]: Remove; we assume C89 or better.
58863         Include <dirent.h> in a way that is compatible with modern Autoconf.
58864         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
58865         New macros, if not already defined.
58866         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
58867         Use "_LIBC", not "defined _LIBC", for consistency.
58868         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
58869         a mempcpy module.
58870         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
58871         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
58872         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
58873         credit only to Jim Meyering and adjust the copyright dates.
58874         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
58875         <stdlib.h>, <unistd.h>, "pathmax.h".
58876         Instead, include "xgetcwd.h" (first) and "getcwd.h".
58877         (INITIAL_BUFFER_SIZE): Remove.
58878         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
58879
58880 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58881
58882         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
58883         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
58884         Use the _ONCE methods, for efficiency.
58885         Check for fcntl.h.  In test program, include <errno.h>
58886         and <fcntl.h> if available.  Remove old K&R cruft from
58887         test program.  Check for common errors in GNU/Linux,
58888         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
58889         don't do AC_LIBOBJ, as that's getcwd.m4's job.
58890         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
58891         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
58892         name accordingly.
58893         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
58894         accommodate new getcwd.c.
58895         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
58896         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
58897         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
58898         that's all we need now.
58899
58900 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58901
58902         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
58903         argp-parse.c depends on getopt internals, that means we should
58904         always use our getopt, to be on the safe side.
58905         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
58906         order not to spoil the result of an eventual previous invocation
58907         of gl_GETOPT_SUBSTITUTE.
58908
58909 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58910
58911         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
58912         redefinition warnings. To avoid them, include the defines
58913         in `#if !defined __need_getopt ... #endif'. The only place
58914         where __getopt_argv_const is used is in definitions
58915         of getopt_long and getopt_long_only below, which are as well
58916         protected by `#ifndef __need_getopt'.
58917         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
58918         __need_getopt after including <stdio.h> and <unistd.h> These
58919         headers might have defined it.
58920
58921 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58922
58923         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
58924
58925 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58926
58927         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
58928         (futimens): New function, which uses futimes if available.
58929         (futimens, utimens): Support timespec==NULL, with same semantics
58930         as utime and utimens.
58931         * lib/utimens.h (futimens): New decl.
58932
58933 2004-11-23  Jim Meyering  <jim@meyering.net>
58934
58935         * lib/getopt_.h: Remove trailing blanks.
58936
58937 2004-11-23  Jim Meyering  <jim@meyering.net>
58938
58939         * lib/__fpending.c: Add comment.
58940
58941 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
58942
58943         * modules/canonicalize (Depends-on): Add xreadlink.
58944         Problem reported by James Youngman.
58945
58946 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58947
58948         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
58949         New macros.
58950         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
58951         optopt): Use them instead of invoking ## directly; otherwise, the
58952         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
58953
58954 2004-11-19  Bruno Haible  <bruno@clisp.org>
58955
58956         * lib/strtok_r.c: Move comments from here...
58957         * lib/strtok_r.h: ... to here.
58958
58959 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58960
58961         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
58962         implementations that mishandle size_t overflow.
58963
58964 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58965
58966         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
58967         might fail.  Problem reported by Yoann Vandoorselaere.
58968         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
58969         implementations that mishandle size_t overflow.
58970
58971 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58972
58973         * modules/canon-host (Depends-on): Add strdup.
58974
58975 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58976
58977         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
58978
58979 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58980
58981         * lib/canon-host.c: Include "strdup.h".
58982         (canon_host): Use getaddrinfo if available, so that IPv6 works.
58983         Use strdup instead of malloc/strcpy to duplicate strings.
58984
58985         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
58986         (human_space_before_unit): New constant.
58987         * lib/human.c (human_readable): Support it.
58988
58989         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
58990         (xgetcwd): Set errno correctly when failing.
58991         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
58992         the failure is actually due to a PATH_MAX problem.
58993
58994         Further getopt changes to make it more likely that glibc will
58995         buy the changes back.
58996         * lib/getopt.c (POSIXLY_CORRECT): New constant.
58997         (getopt): Use it, so to preserve glibc semantic
58998         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
58999         when compiling for libc.
59000         * lib/getopt_.h (__getopt_argv_const): Bring it back.
59001         (getopt_long, getopt_long_only): Use it.
59002
59003         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59004         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
59005         (getopt): Argv is now char * const *, as per standard.
59006         (_getopt_internal_r, _getopt_internal): Argv is now char **,
59007         not char *__getopt_argv_const *.
59008         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59009         _getopt_long_only_r): Likewise.
59010         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
59011         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59012         _getopt_long_r, _getopt_long_only_r): Likewise.
59013         * lib/getopt_.h (__getopt_argv_const): Remove.
59014         (getopt): Argv is now char * const *, as per standard.
59015
59016         * lib/getdate.y (tORDINAL): New token.
59017         (day, relunit): Allow it for relative times.
59018         (relative_time_table): Use tORDINAL for ordinals.
59019
59020 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59021
59022         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
59023         Document that "second" isn't allowed as an ordinal number.
59024
59025 2004-11-16  Jim Meyering  <jim@meyering.net>
59026
59027         * modules/closeout (Depends-on): Add fpending.
59028
59029 2004-11-15  Jim Meyering  <jim@meyering.net>
59030
59031         * lib/closeout.c: Include "__fpending.h" once again.
59032         Include <stdbool.h>.
59033         (close_stdout): Don't fail just because stdout was closed initially,
59034         since some programs don't write to stdout in the normal course of
59035         operation (other than --version and --help), and we don't want this
59036         function to make e.g. `touch file >&-' fail.
59037         But do fail if it was closed and someone has tried to write to it.
59038         E.g., `printf foo >&-' must fail.
59039
59040 2004-11-13  Jim Meyering  <jim@meyering.net>
59041
59042         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
59043
59044 2004-11-12  Simon Josefsson  <jas@extundo.com>
59045
59046         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
59047         small doc fix is still pending.
59048
59049 2004-11-11  Simon Josefsson  <jas@extundo.com>
59050
59051         * modules/strtok_r: New file.
59052
59053         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59054         strtok_r.
59055
59056 2004-11-11  Simon Josefsson  <jas@extundo.com>
59057
59058         * m4/strtok_r.m4: New file.
59059
59060         * m4/getopt.m4: Replace opterr.
59061
59062 2004-11-11  Simon Josefsson  <jas@extundo.com>
59063
59064         * lib/strtok_r.h, strtok_r.c: New file.
59065
59066 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59067
59068         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
59069         of replacing opterr, getopt, etc.  This should handle the
59070         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
59071
59072 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59073
59074         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
59075         we can stop lying to compilers about the constness of argv when we
59076         are compiled outside glibc.
59077         (getopt, getopt_long, getopt_long_only): Use it.
59078         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59079         _getopt_internal, getopt): Likewise.
59080         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59081         _getopt_long_only_r): Likewise.
59082         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59083         _getopt_long_r, _getopt_long_only_r): Likewise.
59084
59085         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
59086         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
59087         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
59088         the other external symbols.
59089         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
59090         declaration, since the above renaming now works around collisions.
59091
59092 2004-11-11  Jim Meyering  <jim@meyering.net>
59093
59094         * lib/linebreak.c: Remove trailing blanks.
59095         * lib/alloca_.h: Likewise.
59096         * lib/acosl.c: Likewise.
59097         * lib/euidaccess.c: Likewise.
59098         * lib/allocsa.h: Likewise.
59099
59100 2004-11-10  Simon Josefsson  <jas@extundo.com>
59101
59102         * m4/getaddrinfo.m4: New file.
59103
59104 2004-11-10  Simon Josefsson  <jas@extundo.com>
59105
59106         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
59107
59108 2004-11-10  Simon Josefsson  <jas@extundo.com>
59109
59110         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59111         getaddrinfo.
59112
59113         * modules/getaddrinfo: New file.
59114
59115 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59116
59117         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
59118
59119 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59120
59121         * lib/mktime.c (SHR): New macro, which is a portable
59122         substitute for >> that should work even on Crays.
59123         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
59124         Problem reported by Mark D. Baushke in
59125         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
59126         * lib/getdate.y (SHR): Likewise.
59127         (tm_diff): Use it.
59128         * lib/strftime.c (SHR): Likewise.
59129         (tm_diff): Use it.
59130         * lib/quotearg.c (struct quoting_options): Use unsigned int for
59131         quote_these_too, so that right shifts are well defined.  All uses
59132         changed.
59133
59134 2004-11-10  Jim Meyering  <jim@meyering.net>
59135
59136         Ensure that no close failure goes unreported.
59137         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
59138         return early when it seems there's nothing to flush.
59139         Don't include __fpending.h.
59140
59141 2004-11-10  Jim Meyering  <jim@meyering.net>
59142
59143         * modules/closeout (Depends-on): Remove fpending.
59144
59145 2004-11-10  Jim Meyering  <jim@meyering.net>
59146
59147         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
59148
59149 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59150
59151         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
59152         gl_FUNC_STRFTIME.
59153         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
59154         and AC_REQUIRE when possible, to avoid duplicate checks.
59155         Check for <wchar.h>.
59156
59157 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59158
59159         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
59160
59161 2004-11-09  Bruno Haible  <bruno@clisp.org>
59162
59163         * m4/sockpfaf.m4: New file.
59164
59165 2004-11-05  Bruno Haible  <bruno@clisp.org>
59166
59167         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
59168         Reported by Mark D. Baushke <mdb@cvshome.org>.
59169
59170 2004-11-04  Bruno Haible  <bruno@clisp.org>
59171
59172         2004-09-11  Bruno Haible  <bruno@clisp.org>
59173                 * allocsa.valgrind: New file.
59174         2004-02-06  Bruno Haible  <bruno@clisp.org>
59175                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
59176                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
59177                 Reported by Christopher Seip <chris.seip@hp.com>.
59178
59179 2004-11-04  Bruno Haible  <bruno@clisp.org>
59180
59181         * modules/allocsa (Files): Add lib/allocsa.valgrind.
59182         (Makefile.am): Distribute it.
59183
59184 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59185
59186         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
59187         with errno == ERANGE if the buffer is too small.
59188         Problem reported by Mark D. Baushke.
59189
59190 2004-11-03  Albert Chin  <china@thewrittenword.com>
59191             Paul Eggert  <eggert@cs.ucla.edu>
59192
59193         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
59194         equivalent, substitute $ac_type for equivalent type rather than
59195         blindly using uint32_t *always* which won't work if uint32_t is not
59196         available.  Define _UINT32_T to work around typedef of uint32_t if
59197         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
59198         2.5.1.
59199
59200 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59201
59202         * m4/jm-macros.m4: Sync from coreutils.
59203         (gl_MACROS): Check for mbrlen, for pathchk.
59204         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
59205
59206 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59207
59208         * lib/xreadlink.c (MAXSIZE): New macro.
59209         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
59210         size does not exceed MAXSIZE.  Avoid cast.
59211         As suggested by Mark D. Baushke in
59212         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
59213         if readlink fails with buffer size just under MAXSIZE, try again
59214         with MAXSIZE.
59215
59216 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59217
59218         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
59219
59220 2004-11-02  Derek R. Price  <derek@ximbiot.com>
59221         and  Paul Eggert  <eggert@cs.ucla.edu>
59222
59223         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
59224         (get_date): Overparenthesize to avoid GCC warning.
59225
59226 2004-11-02  Bruno Haible  <bruno@clisp.org>
59227
59228         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
59229         returns void.
59230
59231 2004-11-02  Bruno Haible  <bruno@clisp.org>
59232
59233         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
59234         function returns void.
59235
59236 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59237
59238         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
59239         fflush_unlocked, flockfile, funlockfile, funlockfile,
59240         fputs_unlocked, putc_unlocked.
59241
59242 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59243
59244         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59245         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
59246         already declared.
59247
59248 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59249
59250         * modules/getdate (Files): Add doc/getdate.texi.
59251         (Depends-on): Add setenv, xalloc.
59252
59253 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59254
59255         * lib/getdate.y: Add support for TZ="foo" within a date string.
59256         Fix some bugs near time_t boundaries.  Reject dates with
59257         out-of-range components, e.g., "Sept 31".
59258         Include <stdlib.h>, "setenv.h", "xalloc.h".
59259         (ISDIGIT_LOCALE): Remove; unused.
59260         Note that the TZ and time functions used here are not reentrant.
59261         (mktime_ok, get_tz): New functions.
59262         (TZBUFSIZE): New constant.
59263         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
59264         This requires that we sometimes generate our own TZ="XXX..." setting.
59265
59266 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59267
59268         * doc/getdate.texi: New file, from coreutils with modifications for
59269         the new TZ parsing.
59270
59271 2004-10-27  Derek R. Price  <derek@ximbiot.com>
59272
59273         * lib/mktime.c (not_equal_tm): Remove redundant check.
59274
59275 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59276
59277         * modules/regex (lib_SOURCES): Add regex.c.
59278         Reported by James Youngman in
59279         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
59280
59281 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59282
59283         * lib/getdate.y: Use Bison 1.875 features, and some minor
59284         code cleanups.  This change does not affect semantics.
59285         Don't include <stdlib.h>; no longer needed.
59286         Don't include unlocked-io.h; only the "#if TEST" code uses
59287         stdio, and performance isn't crucial there.
59288         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
59289         Bison 1.875 features as described below.
59290         All uses of "PC." replaced by "pc->".
59291         (YYSTYPE): Add a forward declaration.
59292         (yylex, yyerror): Use full prototypes in forward decls.
59293         Use "%pure-parser" rather than obsolescent "%pure_parser".
59294         Use %parse-param and %lex-param instead of obsolescent
59295         YYPARSE_PARAM and YYLEX_PARAM.
59296         (meridian_table, month_and_day_table, time_units_table,
59297         relative_time_table, time_zone_table, military_table,
59298         lookup_zone, lookup_word, get_date):
59299         Use NULL instead of 0 where appropriate.
59300         (to_hour): Avoid abort (), to avoid a dependency on
59301         stdlib.h.
59302         (yyerror, yylex): Now accepts parser_control * arg.
59303         (main) [TEST]: Use '\0' rather than 0 for char.
59304
59305 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59306
59307         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
59308
59309 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59310
59311         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
59312         It's now the caller's responsibility to handle the case where
59313         !HAVE_GETPAGESIZE && !defined getpagesize.
59314
59315         * lib/mktime.c (leapyear): Arg is long int, not int.
59316
59317 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
59318
59319         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
59320
59321 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59322
59323         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
59324         missing.  Problem reported by James Youngman.
59325
59326 2004-10-16  Simon Josefsson  <jas@extundo.com>
59327
59328         * gnulib-tool: Fix comments.  Fix parse problem.
59329         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
59330
59331 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
59332
59333         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
59334         implementation of getopt_long.  Problem reported by Alexander Taler in:
59335         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
59336
59337 2004-10-15  Bruno Haible  <bruno@clisp.org>
59338
59339         * gnulib-tool: Untabify. Initialize supplied_libname.
59340         (func_usage): More homogenous output.
59341         (func_modules_transitive_closure, func_modules_to_filelist,
59342         func_emit_lib_Makefile_am): New functions.
59343         (func_import): New function, extracted from big case statement. Use
59344         func_get_license, func_modules_transitive_closure,
59345         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
59346         opt_lgpl. Don't use test -a, as it's not portable.
59347         (func_create_testdir): Use func_modules_transitive_closure,
59348         func_modules_to_filelist, func_emit_lib_Makefile_am.
59349
59350 2004-10-15  Bruno Haible  <bruno@clisp.org>
59351
59352         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
59353
59354 2004-10-15  Bruno Haible  <bruno@clisp.org>
59355
59356         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
59357         the portions belonging to each module.
59358         Suggested by Derek Robert Price <derek@ximbiot.com>.
59359
59360 2004-10-12  Simon Josefsson  <jas@extundo.com>
59361
59362         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59363         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
59364         to real functions.
59365
59366 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59367
59368         * modules/vsnprintf: New file.
59369
59370 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59371
59372         * m4/vsnprintf.m4: New file.
59373
59374 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59375
59376         * lib/vsnprintf.h: New file.
59377         * lib/vsnprintf.c: New file.
59378
59379 2004-10-11  Bruno Haible  <bruno@clisp.org>
59380
59381         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
59382         vsnprintf.
59383
59384 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59385
59386         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
59387
59388 2004-10-07  Bruno Haible  <bruno@clisp.org>
59389
59390         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
59391         fits into the provided buffer.
59392
59393 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59394
59395         * lib/diacrit.c, diacrit.h: Add GPL notice.
59396
59397         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
59398         notice.
59399         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
59400         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
59401         This avoids a potential constant-folding bug.
59402
59403 2004-10-05  Bruno Haible  <bruno@clisp.org>
59404
59405         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
59406         for the declaration of strsep.
59407
59408 2004-10-05  Bruno Haible  <bruno@clisp.org>
59409
59410         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
59411
59412 2004-10-04  Simon Josefsson  <jas@extundo.com>
59413
59414         * modules/memmem: New file.
59415         * tests/test-memmem.c: New file.
59416         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
59417
59418 2004-10-04  Simon Josefsson  <jas@extundo.com>
59419
59420         * m4/memmem.m4: New file.
59421
59422 2004-10-04  Simon Josefsson  <jas@extundo.com>
59423
59424         * lib/memmem.h: New file.
59425         * lib/memmem.c: New file, taken from glibc.
59426
59427 2004-10-04  Simon Josefsson  <jas@extundo.com>
59428
59429         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
59430         '#ifdef USE_UNLOCKED_IO'.
59431
59432 2004-10-04  Simon Josefsson  <jas@extundo.com>
59433
59434         * config/srclist.txt: Add memmem from glibc.
59435
59436 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59437
59438         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
59439
59440         * modules/argmatch, modules/argp, modules/closeout, modules/error,
59441         modules/exclude, modules/getdate, modules/getline,
59442         modules/getndelim2, modules/getpass, modules/getpass-gnu,
59443         modules/getusershell, modules/linebuffer, modules/md5,
59444         modules/mountlist, modules/posixtm, modules/readtokens,
59445         modules/readutmp, modules/regex, modules/sha1,
59446         modules/version-etc, modules/yesno:
59447         Remove dependency on unlocked-io.
59448
59449 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59450
59451         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
59452
59453         * m4/unlocked-io.m4: Add copyright notice.
59454         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
59455
59456 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59457
59458         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
59459         * lib/xmalloc.c (xmemdup): Likewise.
59460         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
59461         XFREE): Remove these long-obsolescent macros.
59462         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
59463         * lib/xstrdup.c: Remove.
59464
59465         * lib/regex.c (re_comp): Cast gettext return value to char *,
59466         Problem reported by Martin Neitzel via Mark D. Baushke.
59467
59468 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59469
59470         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
59471         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
59472         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
59473         regex.c, sha1.c, version-etc.c, yesno.c:
59474         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
59475         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
59476         the includer's responsibility.
59477
59478         Sync from coreutils.
59479
59480         * lib/modechange.c (mode_compile): Don't decrement a pointer that
59481         points to the start of a string, as the C Standard says the
59482         resulting behavior is undefined.
59483
59484         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
59485         simple -> simple_backups, numbered_existing ->
59486         numbered_existing_backups, numbered -> numbered_backups
59487         to avoid shadowing problems.  All uses changed.
59488         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
59489         * lib/backupfile.c (check_extension, numbered_backup):
59490         Rename locals to avoid shadowing 'basename'.
59491         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
59492         once.
59493
59494         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
59495         * lib/.cvsignore: Add getopt.h.
59496
59497 2004-10-04  Bruno Haible  <bruno@clisp.org>
59498
59499         * modules/README: New file.
59500         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
59501         not a module.
59502
59503 2004-10-02  Jim Meyering  <jim@meyering.net>
59504
59505         * lib/dirfd.h, getpagesize.h: Add copyright notice.
59506
59507 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59508
59509         * modules/strsep: New file.
59510
59511 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59512
59513         * m4/strsep.m4: New file.
59514
59515 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59516
59517         * lib/strsep.h: New file.
59518         * lib/strsep.c: New file.
59519
59520 2004-10-01  Simon Josefsson  <jas@extundo.com>
59521
59522         * lib/snprintf.c (snprintf): Handle size==0.
59523
59524 2004-10-01  Simon Josefsson  <jas@extundo.com>
59525             Bruno Haible  <bruno@clisp.org>
59526
59527         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
59528         (snprintf): Declare 'args'.
59529
59530 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
59531
59532         * lib/snprintf.c: Remove comments as to why each header is needed.
59533
59534 2004-10-01  Bruno Haible  <bruno@clisp.org>
59535
59536         * MODULES.html.sh: Add strsep.
59537
59538 2004-09-30  Simon Josefsson  <jas@extundo.com>
59539
59540         * modules/snprintf: New file.
59541
59542 2004-09-30  Simon Josefsson  <jas@extundo.com>
59543
59544         * m4/snprintf.m4: New file.
59545
59546 2004-09-30  Simon Josefsson  <jas@extundo.com>
59547
59548         * lib/snprintf.h, lib/snprintf.c: New files.
59549
59550 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59551
59552         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
59553         (hol_entry_help): Never translate an empty string.
59554         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
59555         * lib/argp.h (OPTION_NO_TRANS): New option.
59556
59557 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59558
59559         * modules/argp (Maintainer): Replace Simon Josefsson
59560         by Sergey Poznyakoff.
59561
59562 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59563
59564         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
59565         changes merged back into glibc.
59566
59567 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59568
59569         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
59570
59571 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59572
59573         * lib/xvasprintf.c: Include xalloc.h.
59574         (xvasprintf): Use xalloc_die, not xmalloc_die.
59575
59576 2004-09-29  Bruno Haible  <bruno@clisp.org>
59577
59578         * modules/alloca-opt: New file, derived from modules/alloca.
59579         * modules/allocsa: Depend on alloca-opt instead of alloca.
59580         * modules/setenv: Likewise.
59581         * modules/vasnprintf: Likewise.
59582         * MODULES.html.sh: Add alloca-opt.
59583
59584 2004-09-28  Simon Josefsson  <jas@extundo.com>
59585
59586         * gnulib-tool: New parameter --lgpl, to asseert that modules are
59587         LGPL, and to replace license template from GPL to LGPL.
59588
59589 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59590
59591         * modules/dummy: Change license to LGPL.
59592
59593 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59594
59595         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59596
59597 2004-09-24  Simon Josefsson  <jas@extundo.com>
59598
59599         * modules/minmax (License): Change from GPL to LGPL.
59600
59601 2004-09-23  Simon Josefsson  <jas@extundo.com>
59602
59603         * gnulib-tool (--import): Typo.
59604
59605 2004-09-23  Simon Josefsson  <jas@extundo.com>
59606
59607         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59608
59609 2004-09-22  Bruno Haible  <bruno@clisp.org>
59610
59611         * modules/*: Add 'License' field.
59612         * gnulib-tool: Accept --extract-license option.
59613         (func_get_license): New function.
59614
59615 2004-09-21  Bruno Haible  <bruno@clisp.org>
59616
59617         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59618         Reported by Simon Josefsson.
59619
59620 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59623         gl_AC_TYPE_LONG_LONG.
59624
59625 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59626
59627         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59628
59629 2004-09-18  Simon Josefsson  <jas@extundo.com>
59630         and  Paul Eggert  <eggert@cs.ucla.edu>
59631
59632         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59633         calls with autoreconf.  Define GL_LIB.
59634
59635 2004-09-14  Karl Berry  <karl@gnu.org>
59636
59637         * config/srclist.txt: unsync setenv.c, sigh.
59638
59639 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59640
59641         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59642         Problem reported by Bruno Haible in:
59643         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59644
59645 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59646
59647         * config/srclist.txt: Comment out argp-pvh.c.
59648
59649 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59650
59651         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59652         in case some system header has #define'd it.  Problem reported by
59653         Soeren D. Schulze in
59654         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59655
59656 2004-09-09  Karl Berry  <karl@gnu.org>
59657
59658         * regex.[ch]: delete from the root.  These were supposed to be
59659                 synced with emacs cvs, but this has not happened for about
59660                 a year, and anyway nothing else uses emacs regex.[ch].
59661                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59662                 lib/regex[.ch] is untouched.
59663
59664 2004-09-09  Bruno Haible  <bruno@clisp.org>
59665
59666         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59667
59668 2004-09-09  Bruno Haible  <bruno@clisp.org>
59669
59670         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59671         modifications.
59672         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59673
59674 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59675
59676         * modules/xvasprintf: New file.
59677         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59678
59679 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59680
59681         * lib/xvasprintf.h: New file.
59682         * lib/xvasprintf.c: New file.
59683         * lib/xasprintf.c: New file.
59684
59685 2004-09-08  Bruno Haible  <bruno@clisp.org>
59686
59687         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59688
59689 2004-09-08  Bruno Haible  <bruno@clisp.org>
59690
59691         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59692         length is > INT_MAX.
59693         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59694         more.
59695
59696 2004-09-08  Bruno Haible  <bruno@clisp.org>
59697
59698         * lib/stdint_.h: New file, taken from GNU clisp.
59699
59700 2004-09-08  Bruno Haible  <bruno@clisp.org>
59701             Oskar Liljeblad  <oskar@osk.mine.nu>
59702
59703         * modules/stdint: New file.
59704         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59705
59706 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59707
59708         Import from coreutils.
59709         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59710         strings on unbounded length.  alloca's performance benefits aren't
59711         that important here.
59712         (V_STRDUP): Remove.
59713         (parse_with_separator): New function, with most of the internals
59714         of the old parse_user_spec.  Allow user to omit both user and group,
59715         for compatibility with FreeBSD.
59716         Clone only the user name, not the entire spec.
59717         Do not set *uid, *gid unless entirely successful.
59718         Avoid memory leak in some failing cases.
59719         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59720         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59721         (parse_user_spec): Rewrite to use parse_with_separator.
59722
59723 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59724
59725         * modules/userspec: Don't depend on alloca.
59726
59727 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59728
59729         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59730
59731 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59732
59733         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59734         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59735         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59736
59737 2004-08-16  Simon Josefsson  <jas@extundo.com>
59738
59739         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59740         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59741         Add --dry-run for --import.
59742         Let user provided command line parameters override configure.ac
59743         settings.
59744
59745 2004-08-12  Simon Josefsson  <jas@extundo.com>
59746
59747         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59748         as discussed with Paul Eggert in threads rooted at
59749         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59750         and
59751         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59752         Before, the test was empty, and relied on ELIDE_CODE in source
59753         code.)
59754         (gl_PREREQ_GETOPT): New macro.
59755         (gl_GETOPT): Use them.
59756
59757 2004-08-12  Simon Josefsson  <jas@extundo.com>
59758
59759         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59760         * lib/getopt_.h: Renamed from getopt.h.
59761
59762 2004-08-12  Simon Josefsson  <jas@extundo.com>
59763
59764         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59765         Change default library name from libfoo to libgnu.
59766         Now, if you have a configure.ac that says:
59767                 gl_SOURCE_BASE(gl)
59768                 gl_M4_BASE(gl/m4)
59769                 gl_MODULES(error getopt etcetera)
59770                 gl_INIT
59771         you can import all you need by running:
59772                 ../gnulib/gnulib-tool --import
59773
59774         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59775         (Makefile.am): Rewrite, use logic from argz.
59776         (Include): Use <getopt.h> instead of "getopt.h".
59777
59778 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59779
59780         * modules/argp (Files): Add m4/unlocked-io.m4.
59781         (Depends-on): Add extensions.
59782
59783 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59784
59785         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59786         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59787         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59788         Check for program_invocation_name, program_invocation_short_name,
59789         flockfile, funlockfile, features.h, _getopt_long_only_r.
59790
59791 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59792
59793         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59794         its complicated substitute.
59795         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59796         and program_invocation_name.
59797         (__argp_basename) [!_LIBC]: Remove; the only use was
59798         replaced by its body.
59799         (__argp_short_program_name): Change condition from
59800         !defined __argp_short_program_name to
59801         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59802         to match argp-namefrob.h.
59803         (__argp_failure): Don't assume strerror_r returns char *.
59804         * lib/argp-parse.c (N_): Define unconditionally.
59805         (argp_default_options): Fill out initializers with 0 to avoid
59806         gcc warnings.
59807
59808 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59809
59810         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59811         getopt1.c.
59812
59813 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59814
59815         Merge from coreutils.
59816
59817         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59818
59819         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59820         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59821
59822 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59823
59824         Merge from coreutils.
59825
59826         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59827         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59828         for Reliant Unix 5.43.
59829
59830         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59831         (union fooround): Use uintmax_t, not long int.
59832         The rest is a merge from libc:
59833         [defined _LIBC]: Include <shlib-compat.h>.
59834         (_obstack) [defined _LIBC]: Remove after 2.3.4.
59835
59836         * lib/settime.c (settime): Recode to avoid warning with
59837         Sun Forte C 6U2.
59838
59839         * lib/strverscmp.c: Convert to UTF-8.
59840
59841 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59842
59843         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59844         m4/uintmax_t.m4.
59845
59846 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59847
59848         * modules/xalloc-die: New file.
59849         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
59850
59851         * modules/md5 (Files): Add m4/uint32_t.m4.
59852         * modules/sha1: Renamed from modules/sha.
59853         (Files):
59854         Rename lib/sha.h to lib/sha1.h.
59855         Rename lib/sha.c to lib/sha1.c.
59856         Rename m4/sha.m4 to m4/sha1.m4.
59857         (lib_SOURCES): Likewise.
59858         (configure.ac): Rename gl_SHA to gl_SHA1.
59859         (Include): sha.h -> sha1.h.
59860
59861 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59862
59863         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
59864         * m4/sha1.m4: Renamed from sha.m4.
59865         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
59866
59867 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59868
59869         * lib/obstack.h (obstack_empty_p):
59870         Don't assume that chunk->contents is suitably aligned.
59871         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
59872         Likewise. Problem reported by Benno in
59873         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
59874
59875         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
59876         readable.  This could be improved further but it'd take some work.
59877
59878 2004-08-08  Simon Josefsson  <jas@extundo.com>
59879
59880         * modules/xgethostname (Depends-on): Remove exit and error (not
59881         used).
59882
59883         * modules/getpass-gnu: Add getpass.h.
59884         (Depends-on): Add stdbool.
59885         * modules/getpass: Add getpass.h.
59886
59887 2004-08-08  Simon Josefsson  <jas@extundo.com>
59888
59889         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
59890         Check getpass declaration.
59891
59892 2004-08-08  Simon Josefsson  <jas@extundo.com>
59893
59894         * lib/xgethostname.c: Don't include error.h (not used).
59895
59896         * lib/getpass.h: Add.
59897         * lib/getpass.c: Include getpass.h first.
59898
59899 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
59900
59901         * lib/xalloc-die.c: New file.
59902         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
59903         All uses removed.
59904         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
59905         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
59906         xalloc-die.c.
59907         (_, N_, xalloc_die): Move to xalloc-die.c.
59908         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
59909         so that we needn't mess with xalloc_msg_memory_exhausted.
59910
59911         * lib/sha1.h: Renamed from sha.h.
59912         (SHA1_H): Renamed from _SHA_H.
59913         (sha1_ctx): Renamed from sha_ctx.
59914         (sha1_init_ctx): Renamed from sha_init_ctx.
59915         (sha1_process_block): Renamed from sha_process_block.
59916         (sha1_process_bytes): Renamed from sha_process_bytes.
59917         (sha1_finish_ctx): Renamed from sha_finish_ctx.
59918         (sha1_read_ctx): Renamed from sha_read_ctx.
59919         (sha1_stream): Renamed from sha_stream.
59920         (sha1_buffer): Renamed from sha_buffer.
59921         * lib/sha1.c: Likewise; renamed from sha.c.
59922         Do not include <sys/types.h>.
59923         Include <stddef.h> rather than <stdlib.h>.
59924
59925 2004-08-08  Bruno Haible  <bruno@clisp.org>
59926
59927         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
59928         FILESYSTEM_PREFIX_LEN.
59929         * lib/progreloc.c: Likewise.
59930         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
59931
59932 2004-08-06  Simon Josefsson  <jas@extundo.com>
59933
59934         * modules/progname (Depends-on): Don't depend on stdbool.
59935
59936 2004-08-06  Simon Josefsson  <jas@extundo.com>
59937
59938         * modules/getsubopt: New file.
59939         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59940         getsubopt.
59941
59942 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59943
59944         More merge from coreutils.
59945
59946         * m4/utimens.m4, m4/utimecmp.m4: New files.
59947         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
59948         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
59949         prereq.m4, sha.m4: Import changes from coreutils.
59950
59951 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59952
59953         More merge from coreutils.
59954         * modules/raise, modules/readtokens0, modules/utimens:
59955         * modules/utimecmp, module/xnanosleep: New files.
59956         * modules/strftime: Add lib/strftime.h.
59957         Change include from <time.h> to "strftime.h".
59958         * modules/yesno: Add lib/yesno.h.
59959         * modules/backupfile: Remove lib/addext.c.
59960         * modules/euidaccess: Add stat-macros.h.
59961         * modules/canonicalize, modules/euidaccess,
59962         modules/filemode, modules/lchown, modules/makepath,
59963         modules/rmdir, modules/stat: Likewise.
59964
59965 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59966
59967         Merge from tar.
59968         * lib/argp-help.c (make_hol, hol_append): Don't assume that
59969         SIZE_MAX is a valid preprocessor constant.
59970         (__argp_basename): Change from "#ifndef _LIBC"
59971         to "#ifndef __argp_short_program_name", so that
59972         we don't compile these functions for tar.
59973
59974         More merges from coreutils.
59975         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
59976         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
59977         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
59978         * lib/addext.c: Remove; no longer needed.
59979         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
59980         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
59981         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
59982         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
59983         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
59984         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
59985         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
59986         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
59987         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
59988         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59989         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
59990         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
59991         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
59992         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
59993         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
59994         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
59995         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
59996         Import changes from coreutils.
59997
59998 2004-08-05  Simon Josefsson  <jas@extundo.com>
59999
60000         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
60001
60002 2004-08-05  Simon Josefsson  <jas@extundo.com>
60003
60004         * m4/getsubopt.m4: New file.
60005
60006 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60007
60008         Merge from coreutils.
60009
60010         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
60011         * m4/getcwd-path-max.m4: New files.
60012
60013         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
60014         FILESYSTEM_PREFIX_LEN ->
60015         FILE_SYSTEM_PREFIX_LEN.
60016         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
60017         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
60018         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
60019         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
60020
60021         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
60022         prerequisite modules now handle the DOS stuff.
60023         Don't check for unistd.h.
60024
60025 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60026
60027         Merge from coreutils.
60028
60029         * lib/.gdb-history: Remove; this doesn't belong here.
60030
60031         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
60032         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
60033         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
60034         * lib/getcwd.c: New files.
60035
60036         * lib/dirname.h: Include <stdbool.h>.
60037         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
60038         for consistency with POSIX terminology.  All uses changed.
60039         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
60040         (strip_trailing_slashes): Use bool for booleans.
60041         * lib/stripslash.c (strip_trailing_slashes): Likewise.
60042
60043         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
60044         sometimes returns a positive errno value even when it succeeds.
60045         (print_errno_message) [!LIBC]: Fall back on strerror if
60046         __strerror_r fails.
60047
60048         * lib/path-concat.c (mempcpy): Don't define if a system header defines
60049         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
60050         (longest_relative_suffix): New function.
60051         (path_concat): Use it.  Assume first argument is not NULL.
60052         Port to DOS.  Omit redundant separators.
60053         Report an error instead of returning NULL.
60054         Use mempcpy instead of memcpy.
60055         (xpath_concat): Remove: not declared or used.
60056
60057         * lib/same.h: Include <stdbool.h>
60058         (same_name): Return bool, not int.
60059         * lib/same.c (same_name): Likewise.
60060         (errno): Don't declare; we assume C89 or better now.
60061
60062         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
60063         if not already defined.
60064
60065         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
60066         * lib/dup-safer.c (errno): Likewise.
60067
60068 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60069
60070         Merge from coreutils.
60071         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
60072         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
60073         * modules/path-concat: Don't depend on strdup.
60074
60075 2004-08-03  Simon Josefsson  <jas@extundo.com>
60076
60077         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
60078         * lib/progname.h: Don't include stdbool.h.
60079
60080 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60081
60082         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
60083         * MODULES.html.sh (func_all_modules): Remove fatal.
60084
60085 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60086
60087         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
60088
60089 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60090
60091         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
60092         working.
60093
60094 2004-08-02  Simon Josefsson  <jas@extundo.com>
60095
60096         * lib/getsubopt.h: New file, with comments from Bruno Haible.
60097         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
60098         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
60099
60100 2004-08-01  Simon Josefsson  <jas@extundo.com>
60101
60102         * lib/xgetdomainname.c: Include stdlib.h, for free().
60103
60104 2004-07-19  Bruno Haible  <bruno@clisp.org>
60105
60106         * MODULES.html.sh (func_all_modules): Add dummy.
60107
60108 2004-07-16  Simon Josefsson  <jas@extundo.com>
60109
60110         * modules/dummy: New file.
60111
60112 2004-07-16  Simon Josefsson  <jas@extundo.com>
60113
60114         * lib/dummy.c: New file.
60115
60116 2004-07-16  Bruno Haible  <bruno@clisp.org>
60117
60118         * lib/backupfile.h: Add extern "C" for C++.
60119         * lib/closeout.h: Likewise.
60120         * lib/copy-file.h: Likewise.
60121         * lib/findprog.h: Likewise.
60122         * lib/full-write.h: Likewise.
60123         * lib/pathname.h: Likewise.
60124         * lib/progname.h: Likewise.
60125         * lib/stpcpy.h: Likewise.
60126         * lib/stpncpy.h: Likewise.
60127         * lib/strcase.h: Likewise.
60128         * lib/strstr.h: Likewise.
60129         * lib/xalloc.h: Likewise.
60130
60131         * lib/mbswidth.h: Add extern "C" for C++.
60132         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
60133
60134 2004-07-13  Robert Millan  <robertmh@gnu.org>
60135
60136         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
60137
60138 2004-07-09  Simon Josefsson  <jas@extundo.com>
60139
60140         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
60141         failed without this.)
60142
60143 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60144
60145         * modules/chown (Files): Add lib/fchown-stub.c, since
60146         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
60147
60148 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60149
60150         * lib/fchown-stub.c: New file.
60151
60152 2004-06-24  Jim Meyering  <jim@meyering.net>
60153
60154         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
60155
60156 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60157
60158         * modules/argz: Omit "#include".
60159
60160         * MODULES.html.sh (func_all_modules): Add calloc, to match
60161         2004-06-01 addition of calloc module.
60162
60163 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60164
60165         * m4/argz.m4: New file, which is autoupdated from libtool.
60166
60167 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60168
60169         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
60170         libtool.
60171
60172 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60173
60174         * config/srclist-update: Don't insist on "USA." before the
60175         close-comment, as libtool omits the period and puts the */ on a
60176         separate line.
60177         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
60178         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
60179
60180 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
60181
60182         * modules/argz: New file.
60183         * MODULES.html.sh (func_all_modules): Add argz.
60184
60185 2004-06-12  Jim Meyering  <jim@meyering.net>
60186         and  Paul Eggert  <eggert@cs.ucla.edu>
60187
60188         * modules/hash (Files): Add lib/xalloc.h.
60189         * modules/pipe (Depends-on): Add wait-process.
60190         * modules/stat (Depends-on): Add xalloc.
60191         * modules/userspec (Files): Add lib/userspec.h.
60192         * modules/xstrto
60193
60194         Upgrade from gettext-0.13.
60195         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
60196         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
60197         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
60198
60199 2004-06-10  Jim Meyering  <jim@meyering.net>
60200
60201         * lib/calloc.c: New file.
60202
60203 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60204
60205         * lib/getdate.y (yylex): Allow space between sign and number.
60206         Problem reported by Dan Jacobson.
60207
60208 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60209
60210         Merge from coreutils CVS.
60211
60212         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
60213         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
60214         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
60215         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
60216         xstrtol.m4: Fix copyright date and/or serial number.
60217
60218         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
60219         See if we need an fchown replacement.
60220         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
60221         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
60222         and use the replacement function if we detect either defect.
60223
60224         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
60225         gl_UTIMECMP.
60226
60227 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60228         and  Jim Meyering  <jim@meyering.net>
60229
60230         Merge from coreutils CVS.
60231
60232         * lib/stat-macros.h: New file, with contents from file-type.h
60233         and coreutils' system.h.
60234         * lib/file-type.c: Include "stat-macros.h".
60235         * lib/file-type.h (file_type): Move all macro definitions to new file,
60236         stat-macros.h.
60237
60238         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
60239         Wrap old code with this conditional.
60240         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
60241         function that does not dereference symlinks.
60242         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
60243
60244         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
60245         dependency problems.
60246         (xreadlink): Accept new arg SIZE, for efficiency.
60247         All decls and uses changed.
60248         * lib/xreadlink.h: Include <stddef.h>, for size_t.
60249
60250         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
60251         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
60252
60253         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
60254         sysexits.h.
60255
60256 2004-06-01  Jim Meyering  <jim@meyering.net>
60257
60258         * m4/calloc.m4: New file.
60259
60260 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
60261
60262         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
60263         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
60264         Also, fix a typo in a diagnostic.
60265
60266 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60267
60268         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
60269         or AC_FUNC_REALLOC.
60270
60271 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60272
60273         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
60274         macros to be defined.
60275         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
60276         the allocator returns NULL because the requested size is zero.
60277
60278 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60279
60280         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
60281         var.  Add comment explaining why libc still defines it.  This
60282         merges the following patch from glibc:
60283         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
60284
60285 2004-05-20  Andreas Schwab  <schwab@suse.de>
60286
60287         * m4/free.m4: Replace free if it not known to work, not the other
60288         way round.
60289
60290 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60291
60292         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
60293         present in glibc since revision 1.1 of this file.
60294         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
60295         obstack_alignment_mask, obstack_alloc, obstack_base,
60296         obstack_blank, obstack_blank_fast, obstack_chunk_size,
60297         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
60298         obstack_grow0, obstack_init, obstack_int_grow,
60299         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
60300         obstack_next_free, obstack_object_size, obstack_ptr_grow,
60301         obstack_ptr_grow_fast, obstack_room): Remove declarations of
60302         nonexistent functions.
60303
60304 2004-05-18  Karl Berry  <karl@gnu.org>
60305
60306         * config/srclist.txt: break link for vasnprintf.c.
60307
60308 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60309
60310         Port obstack to the AS/400, where pointers are 16 bytes wide and
60311         you cannot cast an integer to a valid pointer.  This patch is
60312         currently waiting to be integrated into glibc; see
60313         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
60314
60315         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
60316         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
60317         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
60318         (struct obstack): temp member is now a union of a pointer and
60319         an integer, instead of an integer.  All integer uses changed.
60320         This does not affect the physical layout of struct obstack,
60321         except on hosts (like the AS/400) where the size or alignment of
60322         void * is greater than that of ptrdiff_t.
60323         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
60324         __STDC__)]: Store temporary in pointer member of union, not
60325         integer member.
60326         * lib/obstack.c: Include <stddef.h>, for offsetof.
60327         (struct fooalign): Remove; it doesn't need a name.
60328         (union fooround): Change double to long double, and add void *.
60329         (DEFAULT_ALIGNMENT): Use offsetof to compute.
60330         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
60331         not a macro.  Hence the values are always int; so remove all
60332         casts-to-int in uses.
60333
60334 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60335
60336         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
60337         we can get this patch merged into glibc.
60338
60339 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60340             Paul Eggert  <eggert@cs.ucla.edu>
60341
60342         * m4/argp: Depend on alloca.
60343
60344 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60345             Paul Eggert  <eggert@cs.ucla.edu>
60346
60347         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
60348         freecoding.
60349
60350 2004-05-17  Bruno Haible  <bruno@clisp.org>
60351
60352         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
60353         precision that consists of a '.' followed by an empty digit string.
60354         Patch by Tor Lillqvist <tml@iki.fi>.
60355
60356 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60357
60358         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
60359         for backward compatibility with older code.  We need our own
60360         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
60361         it under some other name, and our alloca.h will define it.
60362
60363 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60364             Derek Price  <derek@ximbiot.com>
60365
60366         * lib/alloca.c: Include <alloca.h>, to get our interface.
60367         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
60368         include <alloca.h> first.  Use C89 prototype for alloca; this
60369         requires including <stddef.h> for size_t.  Use extern "C" if C++.
60370         Use #elif for simplicity, since we can assume C89 now.
60371         Don't try to source the system alloca.h since it will not be found
60372         and to prevent recursively including its replacement.
60373         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
60374         * lib/regex.c: Likewise.
60375
60376 2004-05-16  Derek Price  <derek@ximbiot.com>
60377             Paul Eggert  <eggert@cs.ucla.edu>
60378
60379         getline cleanup.  This changes the getndelim2 API: both order of
60380         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
60381         no delimiter).
60382
60383         * lib/getline.c: Don't include stddef.h or stdio.h, since our
60384         interface does that.
60385         (getline): Always use getdelim, so that we don't have two
60386         copies of this code.
60387         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
60388         if available.
60389         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
60390         (GETNDELIM2_MAXIMUM): New macro.
60391         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
60392         instead of the old practice of delim2==0.  All callers changed.
60393         Return -1 on overflow, instead of returning junk.
60394         Do not set *linesize unless allocation succeeds.
60395         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
60396         that we include sys/types.h.
60397         * lib/getnline.h: Likewise.
60398         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
60399         (getndelim2): Reorder arguments.
60400         * lib/getnline.c (getnline, getndelim):
60401         Don't discard the NMAX argument.
60402         (getnline): Invoke getndelim, to avoid code duplication.
60403         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
60404         of (size_t) -1 by callers of the getnline family.
60405
60406 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60407
60408         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
60409         Check for gettimeofday.
60410         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
60411         Check for settimeofday, stime.
60412
60413 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60414
60415         * lib/nanosleep.c (suspended): Change its type from int to
60416         sig_atomic_t volatile.
60417         (first_call): Make it private to rpl_nanosleep, and have it
60418         be zero initially as that's a bit faster.
60419         (my_usleep): Round up fractional times instead of truncating them,
60420         as this is the usual meaning for 'sleep'.
60421
60422         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
60423         doesn't work.
60424         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
60425         (ENOSYS): Define if not defined.
60426         (settime): Fall back on stime if it exists and settimeofday fails.
60427         But don't bother with fallbacks if a method fails with errno == EPERM.
60428
60429 2004-05-11  Jim Meyering  <jim@meyering.net>
60430
60431         Prior to this change, the save_cwd caller required read access to the
60432         current directory on most systems (ones with the fchdir function).
60433
60434         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
60435         fails, try write-only, and finally, resort to using xgetcwd.
60436
60437 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60438
60439         * lib/obstack.c, obstack.h: Import changes from libc.
60440
60441 2004-04-28  Bruno Haible  <bruno@clisp.org>
60442
60443         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
60444         also implicitly appends .exe to executables.
60445         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
60446         accepts Windows pathnames.
60447         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60448         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60449         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60450         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60451         Reported by Derek Robert Price <derek@ximbiot.com>.
60452
60453 2004-04-21  Karl Berry  <karl@gnu.org>
60454
60455         * config/srclist.txt (localcharset.c): break sync.
60456
60457 2004-04-20  Paul Eggert  <eggert@twinsun.com>
60458
60459         * m4/host-os.m4: Add a copyright notice.
60460
60461 2004-04-20  Jim Meyering  <jim@meyering.net>
60462
60463         Change UTILS_ to gl_ in AC_DEFINE'd names.
60464         Change utils_- and jm_-prefixed variables, too.
60465         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
60466         UTILS_FUNC_MKDIR_TRAILING_SLASH.
60467         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
60468
60469         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
60470         Don't emit trailing blanks.
60471         Also rename jm_-prefixed variables to have gl_ prefix.
60472
60473         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
60474         Also rename jm_-prefixed variables to have gl_ prefix.
60475
60476         * m4/jm-macros.m4: Reflect the renamings.
60477         * m4/prereq.m4: Likewise.
60478
60479 2004-04-20  Jim Meyering  <jim@meyering.net>
60480
60481         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
60482         memory.
60483
60484 2004-04-20  Jim Meyering  <jim@meyering.net>
60485             Bruno Haible  <bruno@clisp.org>
60486
60487         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
60488         memory when realloc fails.
60489
60490 2004-04-19  Jim Meyering  <jim@meyering.net>
60491
60492         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
60493         now that readutmp.c may call `free (0)'.
60494
60495 2004-04-19  Bruno Haible  <bruno@clisp.org>
60496
60497         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
60498         * m4/inttypes_h.m4: Likewise.
60499         * m4/stdint_h.m4: Likewise.
60500         * m4/intmax_t.m4: Likewise.
60501         * m4/uintmax_t.m4: Likewise.
60502
60503 2004-04-18  Jim Meyering  <jim@meyering.net>
60504
60505         * m4/prereq.m4: Don't forbid jm_ prefix.
60506
60507         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
60508         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
60509         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
60510         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
60511         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
60512         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
60513         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
60514         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
60515         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
60516         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
60517         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
60518         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
60519         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
60520         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
60521         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
60522         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
60523         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
60524         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
60525         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
60526
60527 2004-04-18  Jim Meyering  <jim@meyering.net>
60528
60529         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
60530         failure, don't leak memory and do call END_UTMP_ENT.
60531
60532 2004-04-16  Jim Meyering  <jim@meyering.net>
60533
60534         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
60535         coreutils' stat program.
60536         (gl_PREREQ): Don't require jm_PREREQ_STAT.
60537
60538 2004-04-11  Paul Eggert  <eggert@twinsun.com>
60539
60540         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
60541         C89.
60542         (CHAR_BIT): Remove, since we assume C89.
60543         Include <stdint.h> if available, as per current Autoconf CVS advice.
60544
60545 2004-03-31  Jim Meyering  <jim@meyering.net>
60546
60547         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
60548         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
60549         * m4/xalloc.m4: Likewise.
60550
60551 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60552
60553         Merge from coreutils.
60554
60555         * m4/inttostr.m4: New file.
60556         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
60557         Require AM_STDBOOL_H and gl_TIMESPEC instead.
60558         Require gl_CLOCK_TIME.
60559         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
60560
60561 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60562
60563         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
60564         not bool, to be more consistent with Unix conventions.
60565         Suggested by Bruno Haible.
60566
60567         Merge from coreutils.
60568
60569         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
60570         * lib/umaxtostr.c: New files.
60571
60572         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
60573         the usual <time.h> dance.
60574         (get_date): Change signature to support fractional time stamps.
60575         All callers changed.
60576         * lib/getdate.y: Include "getdate.h" first, as we can now
60577         assume C89 and don't need to worry about 'const'.
60578         Similarly, include "unlocked-io.h" near start, not in middle.
60579         Include <limits.h>.
60580         (textint.value): Use long int rather than int.
60581         (textint.digits): Use size_t rather than int.
60582         (BILLION, LOG10_BILLION): New constants.
60583         (parser_control): New member rel_ns.  Members day_ordinal,
60584         time_zone, month, day, hour, minutes, rel_year, rel_month,
60585         rel_day, rel_hour, rel_minutes, rel_seconds
60586         are now long int, not int.  Member seconds is now struct timespec,
60587         not int.  New member timespec_seen.  Members dates_seen, days_seen,
60588         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
60589         not int.
60590         (%union.intval): Now long int, not int.
60591         New member timespec.
60592         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60593         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60594         (spec): Now is a timespec or an item list.
60595         (timespec, items): New nonterminals.
60596         (time, rel, relunit, number, get_date):
60597         Add support for fractional seconds.
60598         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60599         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60600         (to_hour): First arg is now long int, not int.
60601         (to_year): Returns long int, not int.
60602         Don't treat year -70 like 70.
60603         (tm_diff): Returns long int, not int.
60604         (lookup_word): Use bool instead of int when appropriate.
60605         (yylex): Use size_t for count, not int.
60606         Detect overflow when parsing large integer constants.
60607         Add support for fractions.
60608         (get_date): Make pointers 'const' if possible.
60609         Use more-portable code to detect integer overflow.
60610         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60611         Don't use ctime; it's not reliable if the year has >4 digits.
60612
60613         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60614         This is for compatibility with BSD.
60615
60616         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60617         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60618         From coreutils' system.h.
60619
60620         * lib/userspec.c: Don't include "posixver.h".
60621         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60622         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60623         compatible extension.  Simplify code by removing a boolean int
60624         that was always nonzero if a string was nonnull.
60625
60626 2004-03-30  Jim Meyering  <jim@meyering.net>
60627
60628         Merge from coreutils.
60629
60630         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60631         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60632         on some systems one must include <grp.h> before it.
60633         Reported by Christian Krackowizer.
60634
60635 2004-03-30  Jim Meyering  <jim@meyering.net>
60636
60637         Merge from coreutils.
60638
60639         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60640
60641         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60642         an empty input stream.
60643
60644         * lib/readtokens.c: Include <stdbool.h>.
60645         (readtoken): Use `size_t' rather than int/long.
60646         All callers adjusted.
60647         Use `bool' rather than `int' where appropriate.
60648         Use memset rather than an explicit loop.
60649         Use x2nrealloc rather than xrealloc.
60650         Allow the use of `\0' as a delimiter.
60651         (readtokens): Likewise.
60652         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60653
60654 2004-03-30  Jim Meyering  <jim@meyering.net>
60655
60656         * m4/realloc.m4: Remove file, since now it does no more than
60657         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60658         the `configure.ac' section of module/realloc.
60659         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60660
60661 2004-03-30  Bruno Haible  <bruno@clisp.org>
60662
60663         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60664         nonnull.
60665
60666 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60667
60668         Merge changes to getloadavg.c from coreutils and Emacs.
60669
60670         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60671         Define to an expression, not to the empty string.
60672         Include cloexec.h and xalloc.h.
60673         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60674         Use set_cloexec_flag rather than rolling our own.
60675         * lib/cloexec.c, lib/cloexec.h: New files.
60676
60677 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60678
60679         * m4/cloexec.m4: New file.
60680
60681 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60682
60683         * lib/getopt.h: Sync with libc CVS.
60684
60685 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60686             Bruno Haible  <bruno@clisp.org>
60687
60688         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60689         mbswidth.
60690
60691 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60692             Bruno Haible  <bruno@clisp.org>
60693
60694         * lib/mbswidth.h: Include <wchar.h> only if
60695         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60696         <wchar.h>.
60697         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60698
60699 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60700
60701         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60702         Sync with libc CVS.
60703         * lib/getopt_int.h: New file, also synced from libc.
60704
60705 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60706
60707         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60708         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60709         Bring back getopt.c, getopt.h, getopt1.c.
60710
60711 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60712
60713         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60714         All uses changed.  Check for sa_sigaction member; this fixes
60715         a bug first reported by Jason Andrade in
60716         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60717
60718 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60719
60720         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60721         '#if' expressions.  Unlike the code it replaces, it does not
60722         depend on (defined _SC_PAGESIZE).  However, it does depend on
60723         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60724         first reported by Jason Andrade in
60725         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60726
60727 2004-02-25  Simon Josefsson  <jas@extundo.com>
60728
60729         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60730
60731 2004-02-25  Simon Josefsson  <jas@extundo.com>
60732
60733         * lib/strdup.h: New file.
60734         * lib/strdup.c: Include it.
60735         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60736         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60737
60738 2004-02-23  Karl Berry  <karl@gnu.org>
60739
60740         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60741         (from fencepost.gnu.org:/gd/gnuorg).
60742
60743 2004-02-23  Karl Berry  <karl@gnu.org>
60744
60745         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60746         * config/srclist.txt: add maintain/standards documents.
60747
60748 2004-02-18  Bruno Haible  <bruno@clisp.org>
60749
60750         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60751         Reported by Derek Robert Price <derek@ximbiot.com>.
60752
60753 2004-02-16  Karl Berry  <karl@gnu.org>
60754
60755         * config/mkinstalldirs, install-sh: update from automake.
60756
60757 2004-02-06  Karl Berry  <karl@gnu.org>
60758
60759         * m4/po.m4: update from gettext 0.14.1.
60760
60761 2004-02-06  Karl Berry  <karl@gnu.org>
60762
60763         * lib/config.charset: update from gettext 0.14.1.
60764
60765 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60766
60767         Add comments and code, prompted by suggestions from Bruno Haible
60768         for sh-quote.
60769         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60770         describing the enum quoting_style values.
60771         * lib/quotearg.c (quotearg_alloc): New function.
60772         (quotearg_buffer_restyled): Treat lone { and } as special.
60773         Treat = as special.  Work around bug with older shells
60774         that "see" a '\' that is really the 2nd byte of a multibyte char.
60775         Quote empty string with shell_quoting_style.
60776
60777 2004-02-03  Bruno Haible  <bruno@clisp.org>
60778
60779         * m4/pipe.m4: New file, from GNU gettext.
60780
60781 2004-02-03  Bruno Haible  <bruno@clisp.org>
60782
60783         * lib/pipe.h: New file, from GNU gettext.
60784         * lib/pipe.c: New file, from GNU gettext.
60785
60786 2004-01-27  Bruno Haible  <bruno@clisp.org>
60787
60788         * m4/execute.m4: New file, from GNU gettext.
60789
60790 2004-01-27  Bruno Haible  <bruno@clisp.org>
60791
60792         * lib/execute.h: New file, from GNU gettext.
60793         * lib/execute.c: New file, from GNU gettext.
60794         * lib/w32spawn.h: New file, from GNU gettext.
60795
60796 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60797
60798         Merge from diffutils.
60799
60800         * lib/file-type.c (file_type): Add typed memory objects.
60801         * lib/file-type.h (S_TYPEISTMO): New macro.
60802
60803         * lib/c-stack.h (c_stack_action): Remove argv argument.
60804         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60805         (die): Don't calculate message unless segv_action returns.
60806         (get_stack_location, min_address_from_argv, max_address_from_argv,
60807         volatile stack_base, volatile_stack_size): Remove.
60808         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60809         that every segmentation violation is a stack overflow.  (Ouch!)
60810         See Debian bug 136249 (still outstanding) for more info about why
60811         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60812
60813 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60814
60815         Exit-status fix from coreutils.
60816
60817         Use exit_failure consistently in place of EXIT_FAILURE,
60818         so that program exit statuses are consistent on failure.
60819
60820         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60821         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60822         * lib/argmatch.h: Comment fix to match the above.
60823         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60824         Now a macro referring to exit_failure, instead of a separate
60825         variable.  Include "exitfail.h" to get it.
60826         * lib/xstrtol.h: Include "exitfail.h".
60827         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60828
60829         * lib/long-options.c (parse_long_options): Use prototype
60830         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60831         for clarity.
60832
60833 2004-01-21  Jim Meyering  <jim@meyering.net>
60834
60835         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
60836         so as not to conflict with a different-sized __mktime_internal
60837         function in GNU libc.
60838         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
60839         Problem building statically-linked `ls' reported by Michael Brunnbauer.
60840
60841 2004-01-20  Karl Berry  <karl@gnu.org>
60842
60843         * config/config.guess: update from config.
60844
60845         * config/srclistvars.sh: GNUWWWLICENSES for karl.
60846
60847 2004-01-20  Bruno Haible  <bruno@clisp.org>
60848
60849         Safer stack allocation.
60850         * lib/setenv.c: Include allocsa.h.
60851         (alloca): Remove fallback definition.
60852         (freea): Remove macro.
60853         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
60854         instead of freea.
60855
60856 2004-01-20  Bruno Haible  <bruno@clisp.org>
60857
60858         * m4/eealloc.m4: New file, from GNU gettext.
60859
60860 2004-01-20  Bruno Haible  <bruno@clisp.org>
60861
60862         * m4/allocsa.m4: New file, from GNU gettext.
60863
60864 2004-01-20  Bruno Haible  <bruno@clisp.org>
60865
60866         * lib/xallocsa.h: New file, from GNU gettext.
60867         * lib/xallocsa.c: New file, from GNU gettext.
60868
60869 2004-01-20  Bruno Haible  <bruno@clisp.org>
60870
60871         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
60872
60873 2004-01-20  Bruno Haible  <bruno@clisp.org>
60874
60875         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
60876         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
60877         specially.
60878
60879 2004-01-20  Bruno Haible  <bruno@clisp.org>
60880
60881         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
60882         patch.
60883
60884 2004-01-20  Bruno Haible  <bruno@clisp.org>
60885
60886         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
60887
60888 2004-01-20  Bruno Haible  <bruno@clisp.org>
60889
60890         * lib/eealloc.h: New file.
60891
60892 2004-01-20  Bruno Haible  <bruno@clisp.org>
60893
60894         * lib/binary-io.h: Avoid warnings on Cygwin.
60895
60896 2004-01-20  Bruno Haible  <bruno@clisp.org>
60897
60898         * lib/allocsa.h: New file, from GNU gettext.
60899         * lib/allocsa.c: New file, from GNU gettext.
60900
60901 2004-01-18  Karl Berry  <karl@gnu.org>
60902
60903         * doc/gpl.texi, doc/lgpl.texi: new files.
60904
60905 2004-01-18  Karl Berry  <karl@gnu.org>
60906
60907         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
60908         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
60909
60910 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60911
60912         Merge from coreutils.
60913
60914         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
60915         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
60916         (gl_DEFAULT_POSIX2_VERSION): Move
60917         the documentation from 'configure' into 'config.hin',
60918         so that 'configure --help' isn't burdened by it and
60919         we don't have to worry about its formatting there.
60920         Reword the documentation so that it's more succinct
60921         and can be run together into a single paragraph.
60922         * m4/same.m4 (gl_SAME): Check for pathconf.
60923
60924 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60925
60926         Merge from coreutils.
60927
60928         * lib/posixver.c: Include posixver.h.
60929
60930         * lib/same.c: Include <stdbool.h>, <limits.h>.
60931         (_POSIX_NAME_MAX): Define if not defined.
60932         (MIN): New macro.
60933         (same_name): If file names are silently truncated, report
60934         that the file names are the same if they are the same after
60935         the silent truncation.
60936
60937         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
60938         conversion function.
60939         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
60940         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
60941         longer needed.
60942
60943 2004-01-15  Jim Meyering  <jim@meyering.net>
60944
60945         Merge from coreutils.
60946
60947         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
60948         if no library is required.
60949         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
60950         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
60951         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
60952         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
60953         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
60954         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
60955         value, $ac_cv_search_crypt, if it's "none required".
60956         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
60957         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
60958         not gl_FUNC_GETLOADAVG.
60959         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
60960         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
60961
60962 2004-01-15  Jim Meyering  <jim@meyering.net>
60963
60964         Merge from coreutils.
60965
60966         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
60967         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
60968         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
60969
60970         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
60971         optional configure-time default.
60972
60973         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60974
60975         * lib/xreadlink.c (xreadlink): Correct outdated comment.
60976
60977 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
60978
60979         Merge from coreutils.
60980
60981         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
60982         value, $ac_cv_search_nanosleep, if it's "none required".
60983
60984 2004-01-14  Paul Eggert  <eggert@twinsun.com>
60985
60986         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
60987         with like-named macro in fnmatch.c.
60988         (EXT): Use an internal constant instead.
60989
60990         Merge fnmatch patches from glibc.
60991         * lib/fnmatch.c (mbsinit): Remove define.
60992         Add libc_hidden_ver (__fnmatch, fnmatch).
60993         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
60994         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
60995
60996 2004-01-14  Karl Berry  <karl@gnu.org>
60997
60998         * config/install-sh: update from automake.
60999
61000 2004-01-13  Karl Berry  <karl@gnu.org>
61001
61002         * config/install-sh: update from automake.
61003
61004 2004-01-09  Karl Berry  <karl@gnu.org>
61005
61006         * config/install-sh: update from automake.
61007
61008 2004-01-05  Karl Berry  <karl@gnu.org>
61009
61010         * config/config.{sub,guess}: update from config.
61011
61012 2003-12-31  Karl Berry  <karl@gnu.org>
61013
61014         * config/depcomp: update from automake.
61015
61016 2003-12-14  Karl Berry  <karl@gnu.org>
61017
61018         * lib/config.charset: update from gettext-runtime.
61019
61020 2003-12-03  Paul Eggert  <eggert@twinsun.com>
61021
61022         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
61023         Bug reported by Alfred M. Szmidt.
61024
61025 2003-12-03  Bruno Haible  <bruno@clisp.org>
61026
61027         * m4/gettext.m4: Upgrade from gettext-0.13.
61028         * m4/po.m4: Upgrade from gettext-0.13.
61029         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
61030         * m4/intmax.m4: New file, from gettext-0.13.
61031         * m4/printf-posix.m4: New file, from gettext-0.13.
61032
61033 2003-11-29  Karl Berry  <karl@gnu.org>
61034
61035         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
61036
61037 2003-11-25  Paul Eggert  <eggert@twinsun.com>
61038             Bruno Haible  <bruno@clisp.org>
61039
61040         * lib/printf-parse.h: Don't include sys/types.h.
61041         (ARG_NONE): New macro.
61042         (char_directive): Change type of *arg_index fields to size_t.
61043         * lib/printf-parse.c: Don't include sys/types.h.
61044         (SSIZE_MAX): Remove macro.
61045         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
61046         Remove unnecessary overflow check.
61047         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
61048         fields.
61049
61050 2003-11-25  Bruno Haible  <bruno@clisp.org>
61051
61052         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
61053
61054 2003-11-25  Bruno Haible  <bruno@clisp.org>
61055
61056         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
61057         gt_TYPE_SSIZE_T.
61058
61059 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61060
61061         * modules/alloca: Remove dependency on xalloc.
61062
61063 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61064
61065         * lib/alloca.c: Remove dependency on xalloc module.
61066         (xalloc_die): Remove.
61067         (memory_full) [!defined emacs]: New macro.
61068         [!defined emacs]: Don't include xalloc.h.
61069         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
61070         address arithmetic overflows.  Change datatypes a bit to avoid
61071         unnecessary casts.
61072
61073 2003-11-22  Jim Meyering  <jim@meyering.net>
61074
61075         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
61076         s/size/size_t/.
61077
61078 2003-11-21  Karl Berry  <karl@gnu.org>
61079
61080         * config/config.{sub,guess}: update from config.
61081
61082 2003-11-18  Karl Berry  <karl@gnu.org>
61083
61084         * config/config.{sub,guess}: update from config.
61085
61086         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
61087
61088 2003-11-17  Paul Eggert  <eggert@twinsun.com>
61089
61090         * README: Mention that S+T cannot overflow if S is the size of
61091         an existing object and T is sufficiently small.
61092
61093 2003-11-17  Jim Meyering  <jim@meyering.net>
61094
61095         On systems without utime and without a utimes function capable of
61096         dealing with a NULL struct utimbuf* argument, this utime replacement
61097         could -- in unusual circumstances -- leak a file descriptor.
61098         * lib/utime.c: Include <unistd.h> and <errno.h>.
61099         (utime_null): Be sure to close `fd' and to preserve errno.
61100         Reported by Geoff Collyer via Arnold Robbins.
61101
61102 2003-11-17  Bruno Haible  <bruno@clisp.org>
61103
61104         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
61105         (Depends-on): Add xsize.
61106
61107 2003-11-17  Bruno Haible  <bruno@clisp.org>
61108
61109         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
61110
61111 2003-11-17  Bruno Haible  <bruno@clisp.org>
61112
61113         * lib/vasnprintf.c (alloca): Remove fallback definition.
61114         (freea): Remove definition.
61115         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
61116         Reported by Paul Eggert.
61117
61118 2003-11-16  Paul Eggert  <eggert@twinsun.com>
61119             Bruno Haible  <bruno@clisp.org>
61120
61121         Protect against address arithmetic overflow.
61122         * lib/printf-args.h: Include stddef.h.
61123         (arguments): Change type of field 'count' to size_t.
61124         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
61125         'unsigned int' where appropriate.
61126         * lib/printf-parse.h: Include sys/types.h.
61127         (char_directive): Change type of *arg_index fields to ssize_t.
61128         (char_directives): Change type of fields 'count', max_*_length to
61129         size_t.
61130         * lib/printf-parse.c: Include sys/types.h and xsize.h.
61131         (SSIZE_MAX): Define fallback value.
61132         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
61133         instead of 'int' where appropriate. Check a_allocated, d_allocated
61134         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
61135         * lib/vasnprintf.c: Include xsize.h.
61136         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
61137         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
61138         overflow. Avoid wraparound when converting a width or precision from
61139         decimal to binary.
61140
61141 2003-11-16  Bruno Haible  <bruno@clisp.org>
61142
61143         Update from GNU gettext.
61144         * lib/printf-parse.c: Generalize to it can be compiled for wide
61145         strings.
61146         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
61147         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
61148         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
61149         SNPRINTF): New macros.
61150         Don't include <alloca.h> if the file is used inside libintl.
61151         (local_wcslen): New function, for Solaris 2.5.1.
61152         (VASNPRINTF): Use it instead of wcslen.
61153
61154 2003-11-16  Bruno Haible  <bruno@clisp.org>
61155
61156         * lib/xsize.h (xmax): New function.
61157         (xsum, xsum3, xsum4): Declare as "pure" functions.
61158
61159 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61160
61161         * modules/xalloc (Files): Undo latest change, since xalloc.h
61162         no longer needs SIZE_MAX or PTRDIFF_MAX.
61163
61164 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61165
61166         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
61167         gl_PTRDIFF_MAX.
61168
61169 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61170
61171         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
61172         "return", to pacify some unknown compiler.  Problem reported
61173         by Joerg Schilling.
61174
61175 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61176
61177         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
61178         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
61179         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
61180         heuristic is just as accurate as far as we know, and it removes a
61181         dependency on size_max.m4 and ptrdiff_max.m4.
61182
61183 2003-11-11  Bruno Haible  <bruno@clisp.org>
61184
61185         * modules/xsize (Files): Add m4/size_max.m4.
61186         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
61187
61188 2003-11-11  Bruno Haible  <bruno@clisp.org>
61189
61190         * m4/size_max.m4: New file.
61191         * m4/ptrdiff_max.m4: New file.
61192         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
61193         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
61194         (gl_XALLOC): Invoke it.
61195
61196 2003-11-11  Bruno Haible  <bruno@clisp.org>
61197
61198         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
61199         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
61200         defined.
61201
61202 2003-11-10  Paul Eggert  <eggert@twinsun.com>
61203
61204         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
61205         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
61206         rejected some allocations of exactly SIZE_MAX - 2 bytes.
61207         From Bruno Haible.
61208         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
61209         not (size_t) -1, since it's defined here.
61210
61211 2003-11-09  Karl Berry  <karl@gnu.org>
61212
61213         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
61214
61215 2003-11-06  Paul Eggert  <eggert@twinsun.com>
61216
61217         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
61218         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
61219         Reject sizes of exactly SIZE_MAX bytes.
61220         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
61221         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
61222
61223 2003-11-05  Bruno Haible  <bruno@clisp.org>
61224
61225         * lib/xsize.h: Include limits.h, to avoid a possible collision with
61226         SIZE_MAX defined in <limits.h> on Solaris.
61227
61228 2003-11-04  Jim Meyering  <jim@meyering.net>
61229
61230         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
61231         variable names, rather than @VAR@.
61232         * modules/poll: Likewise.
61233
61234 2003-11-04  Bruno Haible  <bruno@clisp.org>
61235
61236         * modules/xsize: New file.
61237         * modules/linebreak: Depend on xsize.
61238         * MODULES.html.sh (func_all_modules): Add xsize.
61239
61240 2003-11-04  Bruno Haible  <bruno@clisp.org>
61241
61242         * m4/xsize.m4: New file.
61243
61244 2003-11-04  Bruno Haible  <bruno@clisp.org>
61245
61246         * lib/xsize.h: New file.
61247         * lib/linebreak.c: Include xsize.h.
61248         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
61249         argument for overflow.
61250         Suggested by Paul Eggert.
61251
61252 2003-11-03  Karl Berry  <karl@gnu.org>
61253
61254         * config/config.{guess,sub}: update from config.
61255
61256 2003-11-03  Jim Meyering  <jim@meyering.net>
61257
61258         * modules/userspec (lib_SOURCES): Add userspec.h.
61259         (Include): Add "userspec.h".
61260         Improve description.
61261
61262 2003-11-03  Jim Meyering  <jim@meyering.net>
61263
61264         * lib/userspec.c: Include "userspec.h".
61265         * lib/userspec.h: New file.
61266
61267 2003-11-03  Bruno Haible  <bruno@clisp.org>
61268
61269         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
61270
61271 2003-11-03  Bruno Haible  <bruno@clisp.org>
61272
61273         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
61274         available, to avoid (extremely rare) race condition.
61275         Suggested by Paul Eggert.
61276
61277 2003-11-02  Karl Berry  <karl@gnu.org>
61278
61279         * config/srclist.txt (vasprintf.c): sync broken, sigh.
61280
61281 2003-10-31  Paul Eggert  <eggert@twinsun.com>
61282
61283         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
61284         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
61285         (read_filesystem_list): Set and use me_type_malloced.
61286         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
61287         whatever the type happens to be), for brevity and consistency.
61288         Check for size calculation overflow on Alphas running OSF/1.
61289
61290 2003-10-31  Jim Meyering  <jim@meyering.net>
61291
61292         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
61293
61294         * lib/linebuffer.c: Include <string.h> for declaration of memset.
61295
61296 2003-10-30  Paul Eggert  <eggert@twinsun.com>
61297             Bruno Haible  <bruno@clisp.org>
61298
61299         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
61300         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
61301
61302 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61303
61304         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
61305         netbsd*-gnu*.  Suggested by Robert Millan.
61306
61307 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61308
61309         * modules/group-member: Depend on stdbool.
61310
61311 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61312
61313         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
61314
61315 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61316
61317         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
61318         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
61319         after the 'gnu' in these cases.  This fixes some bugs in the
61320         previous change, and is based on suggestions by Robert Millan.
61321
61322 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61323
61324         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
61325         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
61326         no longer needed.
61327         * lib/quotearg.c (quotearg_n_options): Use it.
61328         * lib/group-member.c: Include <stdbool.h>.
61329         (free_group_info): Arg is now const *; don't free arg.
61330         (get_group_info): Now returns bool and accepts struct group_info *,
61331         rather than returning a malloc'ed struct group_info *.
61332         All uses changed.  Check for overflow in internal size calculation.
61333
61334         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
61335         rather than xmalloc/xrealloc.
61336         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
61337         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
61338         conformance bug: the old code used a pointer after freeing the
61339         storage that it addressed.
61340         * lib/hash.c (hash_initialize): Simplify the code by using
61341         xalloc_oversized rather than doing it by hand.
61342         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
61343         the buffer preserved.  Use free and xmalloc instead.
61344         * lib/quotearg.c (quotearg_n_options): Likewise.
61345         Use a simpler test for size overflow.  Don't use xalloc_oversized
61346         because unsigned int might be wider than size_t (!); this suggests
61347         that we should switch from unsigned int to size_t for slot numbers.
61348
61349 2003-10-28  Paul Eggert  <eggert@twinsun.com>
61350
61351         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
61352         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
61353         NetBSD kernels.  Requested by Richard Stallman.
61354
61355 2003-10-27  Paul Eggert  <eggert@twinsun.com>
61356
61357         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
61358         to allocate the returned structure.  Do not allocate a subarray,
61359         as x2nrealloc will do that.
61360         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
61361         instead of xnrealloc.
61362         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
61363
61364 2003-10-27  Bruno Haible  <bruno@clisp.org>
61365
61366         * lib/stdbool_.h: Better support for BeOS.
61367
61368 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61369
61370         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
61371         now uses inline.
61372
61373 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61374
61375         * lib/xalloc.h (xalloc_oversized): New static inline function, for
61376         callers that want to do their own size-overflow checking.  Include
61377         <stdbool.h>, since xalloc_oversized returns bool.
61378         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
61379         to use xalloc_oversized.
61380
61381         Add two functions x2realloc, x2nrealloc, for programs that grow
61382         arrays dynamically by doubling their sizes.
61383         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
61384         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
61385         New functions.
61386
61387         Port to C99 semantics for 'inline' of external functions.
61388         Bug reported by Bruno Haible.
61389         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
61390         with the old contents of xnmalloc.
61391         (xnmalloc, xmalloc): Use it.
61392         (xnrealloc_inline): New static inline function,
61393         with the old contents of xnrealloc.
61394         (xnrealloc, xrealloc): Use it.
61395
61396         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
61397         that.
61398
61399 2003-10-26  Karl Berry  <karl@gnu.org>
61400
61401         * config/srclist.txt (COPYING.DOC): no longer available from
61402         /gd/gnuorg; don't know where the ultimate source is.
61403
61404 2003-10-25  Paul Eggert  <eggert@twinsun.com>
61405
61406         Fix several address-calculation bugs in the hash modules,
61407         plus some minor code cleanup.
61408
61409         * lib/hash.h: Include <stdbool.h>, for bool.
61410         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
61411         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
61412         hash_get_n_entries, hash_get_max_bucket_length,
61413         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
61414         hash_rehash): Use size_t rather than unsigned.
61415         * lib/hash.c (struct hash_table, hash_get_n_buckets,
61416         hash_get_n_buckets_used, hash_get_n_entries,
61417         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
61418         hash_get_entries, hash_do_for_each, hash_string, is_prime,
61419         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
61420         Likewise.
61421         (SIZE_MAX): Define if not defined.
61422         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
61423         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
61424         hash_print):
61425         Use const * when possible.
61426         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
61427         (check_tuning): Fix bug: if tuning parameters were very close to
61428         0 or 1, rounding errors could have caused subscript violations.
61429         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
61430         (hash_initialize): Add 'fail:' label
61431         to free table and return NULL, and use it to simplify code.
61432         Use calloc rather than clearing the storage ourself.
61433         (hash_initialize, hash_rehash): Check for arithmetic overflow in
61434         buffer size calculations.
61435         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
61436         Include <stddef.h>, for size_t.
61437         * lib/hash-pjw.c (hash_pjw): Likewise.
61438         Switch to method described by Bruno Haible.
61439         Include <limits.h>, for CHAR_BIT.
61440         (SIZE_BITS): New macro.
61441
61442 2003-10-23  Paul Eggert  <eggert@twinsun.com>
61443
61444         * m4/getline.m4 (AM_FUNC_GETLINE):
61445         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
61446         hosts.  Problem reported by Derek Robert Price in
61447         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
61448         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
61449         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
61450
61451 2003-10-21  Paul Eggert  <eggert@twinsun.com>
61452
61453         * lib/getndelim2.c (getndelim2): When size calculation overflows,
61454         ceiling the allocation at NMAX bytes rather than silently
61455         discarding input bytes before NMAX is reached.  This makes
61456         a difference only if NMAX exceeds SIZE_MAX / 2.
61457
61458         * lib/obstack.c: Merge from glibc.
61459         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
61460         Add libc_hidden_def (_obstack_newchunk).
61461         (_obstack_free) [! defined _LIBC]: Remove.
61462         [defined _LIBC]: Make a strong alias from obstack_free, rather than
61463         a clone of the function body.
61464         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
61465         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
61466
61467         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
61468         glibc.
61469         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
61470         arg to memcpy.
61471
61472         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
61473         (obstack_ptr_grow_fast, obstack_int_grow_fast):
61474         Don't use lvalue casts, as GCC plans to remove support for them
61475         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
61476         was also present in the non-GCC version, indicating that this
61477         code had always been buggy and had never been widely used.
61478         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
61479         Use the fast variant of each macro, rather than copying the
61480         definiens of the fast variant; that way, we'll be more likely to
61481         catch future bugs in the fast variants.
61482
61483 2003-10-20  Bruno Haible  <bruno@clisp.org>
61484
61485         * modules/wait-process: New file.
61486         * MODULES.html.sh (func_all_modules): Add wait-process.
61487
61488 2003-10-20  Bruno Haible  <bruno@clisp.org>
61489
61490         * m4/wait-process.m4: New file.
61491
61492 2003-10-20  Bruno Haible  <bruno@clisp.org>
61493
61494         * lib/wait-process.h: New file, from GNU gettext.
61495         * lib/wait-process.c: New file, from GNU gettext.
61496
61497 2003-10-19  Jim Meyering  <jim@meyering.net>
61498
61499         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
61500         HPUX 10.20.
61501
61502 2003-10-18  Karl Berry  <karl@gnu.org>
61503
61504         * config/config.guess: update from config.
61505
61506 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61507
61508         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
61509         (getgroups): First arg is int, not size_t.
61510         Don't let 'free' mangle errno.
61511
61512 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61513
61514         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
61515
61516 2003-10-16  Karl Berry  <karl@gnu.org>
61517
61518         * config/config.{guess,sub}: update from config.
61519
61520 2003-10-16  Jim Meyering  <jim@meyering.net>
61521
61522         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
61523         memcpy.
61524
61525 2003-10-15  Paul Eggert  <eggert@twinsun.com>
61526
61527         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
61528         (SIZE_MAX): Remove.
61529         (new_exclude, add_exclude_file): Initial size no longer needs to
61530         be a power of 2.
61531         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
61532         our own address arithmetic overflow checking.
61533
61534         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
61535         (fnmatch): Do not alloca more than 2000 wide characters;
61536         instead, use malloc for large buffers.
61537         Check for address arithmetic overflow, and return -1
61538         with errno set to ENOMEM in that case.
61539         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
61540         (NEW_PATTERN): Do not alloca more than 8000 bytes;
61541         instead, return -1.  Check for address arithmetic overflow.
61542
61543 2003-10-14  Paul Eggert  <eggert@twinsun.com>
61544
61545         Handle invalid suffixes and overflow independently, so that
61546         callers can treat them independently as needed.  Fix some bugs in
61547         suffix handling, e.g., "100k@" was not diagnosed as an invalid
61548         suffix for a human-readable blocksize.  The major caller-visible
61549         change is the addition of a new
61550         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
61551         that both overflow and suffix chars were found.
61552
61553         * lib/human.c (humblock): Don't check separately for invalid suffix
61554         char; that is xstrtoumax's job (now that its bug is fixed).
61555         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
61556         INTMAX_MAX]: New macros.
61557         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
61558         TYPE_MAXIMUM): New macros.
61559         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
61560         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
61561         if overflow occurs, as it's what __strtol does and it's more useful
61562         in practice.
61563         (__xstrtol): If __strtol reports some error other than ERANGE,
61564         reflect it to the caller as LONGINT_INVALID.  If it reports
61565         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
61566         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
61567         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
61568         value.
61569         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
61570         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
61571         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
61572         [defined UINTMAX_MAX]: New macros.
61573
61574 2003-10-14  Bruno Haible  <bruno@clisp.org>
61575
61576         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
61577
61578 2003-10-14  Bruno Haible  <bruno@clisp.org>
61579
61580         * m4/sig_atomic_t: New file, from GNU gettext.
61581         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
61582
61583 2003-10-14  Bruno Haible  <bruno@clisp.org>
61584
61585         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
61586         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
61587         Also use volatile where needed.
61588
61589 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61590
61591         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61592         Change maintainer from Bruno Haible to 'all'.
61593
61594 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61595
61596         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61597
61598 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61599
61600         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61601         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61602         and define in terms of the other primitives.
61603         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61604         (SIZE_MAX): Define if not already defined.
61605         (array_size_overflow): New function.
61606         (xalloc_die): Abort instead of exiting if 'error' returns.
61607         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61608         (xmalloc, xrealloc): Use them.
61609         (xcalloc): Check for address arithmetic overflow.
61610         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61611         a bit faster than strcpy.
61612
61613 2003-10-10  Simon Josefsson  <jas@extundo.com>
61614
61615         * modules/argp (Depends-on): Add restrict and strcase.
61616
61617 2003-10-10  Simon Josefsson  <jas@extundo.com>
61618
61619         * m4/argp.m4: Add AC_C_INLINE.
61620
61621 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61622
61623         Merge getpass from libc, plus a few fixes.
61624
61625         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61626         Include <stdbool.h>.
61627         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61628         __fsetlocking to empty.
61629         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61630         do include <bits/libc-lock.h>.
61631         Do not include <fcntl.h>; not needed.
61632         [_LIBC]: Include <wchar.h>.
61633         (NOTCANCEL_MODE): New macro.
61634         (flockfile, funlockfile) [_LIBC]: New macros.
61635         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61636         [!_LIBC]: New macros.
61637         (call_fclose): New function.
61638         (getpass): Use it.  Save tty stream separately; this simplifies the
61639         code and makes it more reliable if stdin happens to equal stdout.
61640         Invoke __fsetlocking on tty.
61641         Handle thread cancellation if needed.
61642         Namespace cleanup (use __tcgetattr, __getline).
61643         Use bool for Booleans.
61644         [USE_IN_LIBIO]: Handle wide streams.
61645         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61646         stream might go where.
61647
61648         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61649         doesn't have to include <stdio.h> before us.
61650         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61651         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61652         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61653         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61654         if not declared, so that we can use getpass.c code from libc without
61655         rewriting it.
61656         (flockfile, ftrylockfile, funlockfile): New macros.
61657
61658 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61659
61660         * modules/getpass: Depend on stdbool.
61661
61662 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61663
61664         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61665
61666 2003-10-07  Karl Berry  <karl@gnu.org>
61667
61668         * config/config.{guess,sub}: update from config.
61669
61670 2003-10-06  Jim Meyering  <jim@meyering.net>
61671             Bruno Haible  <bruno@clisp.org>
61672
61673         This lets translators provide better translations for the
61674         "Written by ..." part of --version output.
61675         * lib/version-etc.h: Include stdarg.h.
61676         (version_etc_copyright): Declare as readonly.
61677         (version_etc): Make this function variadic with a NULL-terminated list
61678         of author name strings.
61679         (version_etc_va): New declaration.
61680         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61681         (version_etc_copyright): Declare as readonly.
61682         (version_etc_va): New function. Provide a different translatable string
61683         for each possible number of authors < 10. Abbreviate when there are 10
61684         authors or more.
61685         (version_etc): Make this function variadic. Call version_etc_va.
61686         Suggestion from Gary V. Vaughan.
61687
61688         * lib/long-options.h (parse_long_options): Change prototype: the
61689         authors string is moved to the end and becomes variadic.
61690         * lib/long-options.c: Include stdarg.h.
61691         (parse_long_options): Make this function variadic, too.
61692         Call version_etc_va, not version_etc.
61693
61694 2003-10-06  Bruno Haible  <bruno@clisp.org>
61695
61696         * modules/version-etc-2: Remove file.
61697         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61698
61699 2003-10-06  Bruno Haible  <bruno@clisp.org>
61700
61701         * modules/fatal-signal: New file.
61702         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61703
61704 2003-10-06  Bruno Haible  <bruno@clisp.org>
61705
61706         * m4/fatal-signal.m4: New file.
61707         * m4/signalblocking.m4: New file, from GNU gettext.
61708
61709 2003-10-06  Bruno Haible  <bruno@clisp.org>
61710
61711         * lib/version-etc-2.h: Remove file.
61712         * lib/version-etc-2.c: Remove file.
61713
61714 2003-10-06  Bruno Haible  <bruno@clisp.org>
61715
61716         * lib/fatal-signal.h: New file, from GNU gettext.
61717         * lib/fatal-signal.c: New file, from GNU gettext.
61718
61719 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61720
61721         * README: Rework advice for preventing empty .o files.
61722         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61723         not <sys/types.h>.
61724
61725 2003-10-04  Karl Berry  <karl@gnu.org>
61726
61727         * lib/argp*: update from libc.
61728
61729 2003-10-04  Karl Berry  <karl@gnu.org>
61730
61731         * config/config.{guess,sub}: update from config.
61732
61733 2003-10-02  Bruno Haible  <bruno@clisp.org>
61734
61735         * modules/lchown (Include): Add lchown.h.
61736         * modules/time_r (Include): Use "..." syntax.
61737         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61738
61739 2003-10-01  Simon Josefsson  <jas@extundo.com>
61740
61741         * MODULES.html.sh (func_all_modules): Move gethostname from section
61742         'based on' to section 'lacking' POSIX:2001.
61743
61744 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61745
61746         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61747         to output mode on the same stream.
61748
61749 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61750
61751         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61752         Fix arg typo in previous patch.
61753
61754 2003-09-28  Jim Meyering  <jim@meyering.net>
61755
61756         * lib/error.c: Correct cpp indentation.
61757
61758 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61759
61760         * modules/free: New file.
61761
61762 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61763
61764         * m4/free.m4: New file.
61765
61766 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61767
61768         * lib/minmax.h (MIN, MAX)
61769         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61770         Omit the special code that used __typeof__, since we worry that
61771         it could be more trouble than it's worth.  See:
61772         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61773         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61774
61775         * lib/free.c: New file.
61776
61777 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61778
61779         Trivial fixes to Makefile.am parts of module listings.
61780         * modules/strstr: Append strstr.h to lib_SOURCES.
61781         * modules/strcase: Likewise, for strcase.h.
61782
61783 2003-09-27  Karl Berry  <karl@gnu.org>
61784
61785         * config/mkinstalldirs: update from automake.
61786
61787 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61788
61789         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61790         (error_tail): Do not loop, reallocating temporary buffer, since
61791         the output cannot contain more wide characters than the input
61792         contains bytes, the size must be big enough already.  This avoids
61793         one potential size overflow calculation.  Check for size overflow
61794         when calculating temporary buffer size.  Free temporary buffer
61795         when done, if it was allocated with malloc; this plugs a memory
61796         leak.  Remove casts from void * to pointers, that are no longer
61797         needed now that we're assuming C89 or better.
61798
61799         Merge error changes from glibc.
61800
61801         * lib/error.c, error.h: Update copyright notice header to match glibc.
61802         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61803         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61804         Disable cancellation while printing error.
61805         * lib/error.h: Prepend __ to parameter names.
61806
61807 2003-09-26  Jim Meyering  <jim@meyering.net>
61808
61809         * lib/error.c (error_tail): Move some declarations
61810         into inner scope where the local variables are used.
61811
61812 2003-09-26  Bruno Haible  <bruno@clisp.org>
61813
61814         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61815         stpncpy().
61816         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61817
61818 2003-09-26  Bruno Haible  <bruno@clisp.org>
61819
61820         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61821         (stpncpy): Define as alias for gnu_stpncpy.
61822         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61823
61824 2003-09-25  Simon Josefsson  <jas@extundo.com>
61825
61826         * lib/xgetdomainname.h: New file.
61827         * lib/xgetdomainname.c: New file.
61828
61829 2003-09-25  Simon Josefsson  <jas@extundo.com>
61830             Bruno Haible  <bruno@clisp.org>
61831
61832         * modules/getdomainname: New file.
61833         * modules/xgetdomainname: New file.
61834         * MODULES.html.sh (func_all_modules): Add getdomainname,
61835         xgetdomainname.
61836
61837 2003-09-25  Simon Josefsson  <jas@extundo.com>
61838             Bruno Haible  <bruno@clisp.org>
61839
61840         * m4/getdomainname.m4: New file.
61841
61842 2003-09-25  Simon Josefsson  <jas@extundo.com>
61843             Bruno Haible  <bruno@clisp.org>
61844
61845         * lib/getdomainname.h: New file.
61846         * lib/getdomainname.c: New file.
61847
61848 2003-09-25  Karl Berry  <karl@gnu.org>
61849
61850         * lib/argp-fmtstream.c, argp-help.c: update from libc.
61851
61852 2003-09-25  Karl Berry  <karl@gnu.org>
61853
61854         * config/install-sh: update from automake.
61855
61856 2003-09-25  Bruno Haible  <bruno@clisp.org>
61857
61858         * modules/version-etc-2: New file, from modules/version-etc with
61859         modifications.
61860         * MODULES.html.sh (func_all_modules): Add version-etc-2.
61861
61862 2003-09-25  Bruno Haible  <bruno@clisp.org>
61863
61864         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
61865         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
61866
61867 2003-09-24  Simon Josefsson  <jas@extundo.com>
61868
61869         * modules/xgethostname: Add xgethostname.h.
61870
61871 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61872
61873         * lib/linebuffer.c (freebuffer): Don't free the argument, just
61874         the buffer associated with the argument.  Bug reported by
61875         Simon Josefsson.
61876
61877 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61878
61879         * README: Document assumptions that 'int' is at least 32 bits
61880         wide, that integer arithmetic is 2's complement without overflow,
61881         that there are no holes in integer values, that adding sizes of
61882         two nonoverlapping objects can't overflow, and that all-bits-zero
61883         yields scalar zero.  Fix spelling and capitalization typos.
61884
61885 2003-09-19  Karl Berry  <karl@gnu.org>
61886
61887         * lib/argp.h: update from libc.
61888
61889 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61890
61891         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
61892         to avoid spurious warnings like "AC_RUN_IFELSE was called before
61893         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
61894
61895 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61896
61897         * gnulib-tool: Use "test -h", not "test -L", for portability
61898         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
61899         (tags_regexp): Remove, since \| doesn't conform to POSIX.
61900         (sed_extract_prog): Issue s commands one-by-one, rather than
61901         using \| in one s command.
61902
61903 2003-09-16  Paul Eggert  <eggert@twinsun.com>
61904
61905         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
61906         input error, instead of returning NULL the next time we are called
61907         (and therefore losing track of errno).
61908
61909 2003-09-16  Bruno Haible  <bruno@clisp.org>
61910
61911         * gnulib-tool (func_create_testdir): Warn about duplicated
61912         dependencies.
61913
61914 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61915
61916         * modules/argmatch, modules/fatal, modules/obstack,
61917         modules/xalloc, modules/xgethostname: Sort dependencies by
61918         importance, not alphabetically.
61919
61920 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61921
61922         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
61923         fails, so that the caller gets the proper errno.
61924
61925         * lib/readutmp.c (read_utmp): Likewise.
61926         Check for fstat error.  Close stream and free storage
61927         when failing.
61928
61929 2003-09-14  Karl Berry  <karl@gnu.org>
61930
61931         * config/srclist.txt (strdup.c): disable for c89 changes.
61932
61933 2003-09-14  Jim Meyering  <jim@meyering.net>
61934
61935         * lib/getloadavg.c: Correct cpp indentation.
61936         * lib/strdup.c: Likewise.
61937         * lib/vasnprintf.c: Likewise.
61938
61939 2003-09-14  Bruno Haible  <bruno@clisp.org>
61940
61941         * modules/fwriteerror: New file.
61942         * MODULES.html.sh (func_all_modules): Add fwriteerror.
61943
61944 2003-09-14  Bruno Haible  <bruno@clisp.org>
61945
61946         * lib/fwriteerror.h: New file.
61947         * lib/fwriteerror.c: New file.
61948
61949 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61950
61951         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
61952         modules/xgethostname, modules/xalloc: Depend on exit.
61953
61954 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61955
61956         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
61957
61958         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
61959         and AC_MINIX, too, so that their extensions are available.
61960
61961         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
61962         This macro has been superseded by gl_BACKUPFILE.
61963
61964         More patches to assume C89 or better.
61965
61966         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
61967
61968         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
61969         unconditionally.
61970         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
61971         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
61972         Include <string.h>, <stdlib.h> unconditionally.
61973         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
61974         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
61975         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
61976         headers or for string.h.
61977         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
61978         or strtoul.
61979
61980         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
61981         headers.
61982         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
61983         * m4/userspec.m4 (gl_USERSPEC): Likewise.
61984         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
61985         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
61986         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61987         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
61988         memcpy, memset.
61989         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
61990         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
61991         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
61992         strtol.
61993         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
61994         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
61995         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
61996         strtoul.
61997
61998 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61999
62000         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
62001         * lib/obstack.c [!defined _LIBC]: Likewise.
62002         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
62003         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
62004         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
62005
62006         More changes to assume C89 or better.
62007
62008         * lib/error.c (error_tail): Assume vprintf.
62009
62010         * lib/argmatch.c (getenv): Remove decl.
62011         * lib/progreloc.c (get_full_program_name): Define via prototype.
62012         * lib/setenv.c (clearenv): Likewise.
62013         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
62014         needed.
62015         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
62016         (malloc, memcpy): Remove decls.
62017         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
62018         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
62019         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62020         (memcpy): Remove macro.
62021         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
62022         (__P): Remove.  All uses removed.
62023         (PTR): Remove.  All uses changed to void *.
62024         (CHAR_BIT, NULL): Remove.
62025         (spaces, zeros, memset_space, memset_zero)
62026         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
62027         Remove.
62028         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
62029         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
62030         Define with prototype.
62031         Remove now-unnecessary prototype decl.
62032         (extra_args_spec): Assume ANSI C.  All uses changed.
62033         (extra_args_spec_iso): Remove.
62034         (my_strftime, emacs_strftimeu): Define via prototype.
62035         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
62036         unconditionally.
62037         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
62038         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
62039         (strtoul, strtol): Remove decls.
62040         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
62041         LONG_MAX): Remove.
62042         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62043         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
62044         (LOCALE_PARAM_PROTO): New macro.
62045         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
62046         (INTERNAL (strtol), strtol): Define with a prototype.
62047         (PARAMS): Remove.  All uses removed.
62048         * lib/tempname.c: Include <string.h> unconditionally.
62049         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
62050         * lib/xgethostname.c (main): Define with a prototype.
62051         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
62052         Include <stdlib.h> unconditionally.
62053         (calloc, malloc, realloc, free): Remove decls.
62054         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
62055         Include <stdlib.h> unconditionally.  Sort include file names.
62056         (strtod): Remove.
62057         (xstrtod): Define with a prototype.
62058         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
62059         (strtol, strtoul): Remove decls.
62060
62061 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62062
62063         More patches to assume C89 or better.
62064         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
62065         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
62066         string.h, memchr, STDC_HEADERS.
62067
62068 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62069
62070         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
62071         Include <stdlib.h>, <string.h> unconditionally.
62072         Remove now-unnecessary cast to char *.
62073         * lib/strnlen.c: Include <string.h> unconditionally.
62074         * lib/yesno.c (yesno): Define with a prototype.
62075
62076 2003-09-11  Bruno Haible  <bruno@clisp.org>
62077
62078         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
62079
62080 2003-09-10  Jim Meyering  <jim@meyering.net>
62081
62082         * lib/error.c: Correct indentation of cpp directives.
62083
62084 2003-09-10  Bruno Haible  <bruno@clisp.org>
62085
62086         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
62087         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
62088         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
62089         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
62090         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
62091         <stdlib.h> and <string.h> checks.
62092         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
62093         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
62094
62095 2003-09-10  Bruno Haible  <bruno@clisp.org>
62096
62097         * lib/strcspn.c: Include <string.h> unconditionally.
62098         * lib/strpbrk.c: Include <string.h> unconditionally.
62099         * lib/strstr.c: Include <string.h> unconditionally.
62100         * lib/unicodeio.c: Include <string.h> unconditionally.
62101         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
62102         * lib/unsetenv.c: Likewise.
62103         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
62104         * lib/yesno.c: Include <stdlib.h> unconditionally.
62105         (rpmatch): Add prototype.
62106
62107 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62108
62109         More patches to assume C89 or better.
62110         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
62111         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
62112         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
62113         or for string.h.
62114         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
62115         stdlib.h.
62116         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
62117         C headers.
62118         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
62119         string.h.
62120         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
62121         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
62122         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
62123         or for string.h.
62124         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
62125         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
62126         C headers.
62127         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
62128         memcpy.
62129         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
62130         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
62131         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
62132         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
62133         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
62134         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
62135         string.h, free.
62136         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
62137         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
62138         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
62139         C headers, or for string.h.
62140         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
62141         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
62142         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
62143         headers, memory.h, stdlib.h, string.h, strings.h.
62144         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
62145         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
62146         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
62147         strchr.
62148         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
62149         headers, memory.h, string.h.
62150         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
62151         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
62152         free.
62153         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
62154         headers.
62155         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
62156         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
62157         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
62158         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
62159         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
62160
62161 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62162
62163         More K&R removal.
62164
62165         * lib/acosl.c (main): Use a prototype.
62166         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
62167         tanl.c: Likewise.
62168
62169         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
62170
62171         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
62172         (getopt, etopt_long, getopt_long_only, _getopt_internal)
62173         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
62174         with a prototype.
62175         * lib/getopt.c (const): Remove macro.
62176         Include <string.h> unconditionally.
62177         (my_index): Remove; all uses changed to strchr.
62178         (strlen): Remove decl.
62179         (exchange): Remove forward decl; no longer needed.
62180         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
62181         Define with prototype.
62182         * lib/getopt1.c (const): Remove macro.
62183         (getopt_long, getopt_long_only, main): Define with prototype.
62184
62185         * lib/getugroups.c: Include <string.h> unconditionally.
62186
62187         * lib/getusershell.c: Include <stdlib.h> unconditionally.
62188         (getusershell, setusershell, endusershell, readname, main):
62189         Define with prototypes.
62190
62191         * lib/group-member.c: Include group-member.h first.
62192         Include <stdlib.h> unconditionally.
62193
62194         * lib/hard-locale.c: Include hard-locale.h first.
62195         Include <stdlib.h>, <string.h> unconditionally.
62196
62197         * lib/hash.c (free, malloc): Remove decls.
62198         Include <stdlib.h> unconditionally.
62199
62200         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
62201         (getenv): Do not declare.
62202
62203         * lib/idcache.c: Include <string.h> unconditionally.
62204
62205         * lib/long-options.c: Include long-options.h first, to test interface.
62206         Include <stdlib.h> unconditionally.
62207
62208         * lib/makepath.c: Include makepath.h first, to test interface.
62209         Include <stdlib.h> and <string.h> unconditionally.
62210
62211         * lib/linebuffer.c: Include <stdlib.h>.
62212         (free): Remove decl.
62213
62214         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
62215         stddef.h. rpl_malloc returns void *, not char *.
62216         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
62217         prototype.
62218
62219         * lib/md5.h: Include <limits.h> unconditionally.
62220         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
62221         (__P): Remove; all uses removed.
62222         * lib/md5.c: Include "md5.h" first.
62223         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
62224         md5_buffer, md5_process_bytes, md5_process_block):
62225         Define with prototypes.
62226         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
62227         * lib/sha.c: Include "sha.h" first.
62228         Include <stdlib.h>, <string.h> unconditionally.
62229
62230         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
62231         * lib/memcmp.c (__ptr_t): Likewise.
62232         * lib/memrchr.c (__ptr_t): Likewise.
62233         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
62234         Include <string.h> unconditionally.
62235         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
62236         * lib/memchr.c: Include <stdlib.h> unconditionally.
62237         * lib/memchr.c (LONG_MAX): Remove.
62238         * lib/memrchr.c (LONG_MAX): Likewise.
62239         * lib/memchr.c (__memchr): Define via a prototype.
62240         * lib/memrchr.c (__memrchr): Likewise.
62241         * lib/memcmp.c (__P): Remove, and remove all uses.
62242         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
62243         Remove forward decls; no longer needed.
62244         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
62245         Use types required by C89 in prototype.
62246
62247         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
62248         * lib/savedir.c: Likewise.
62249         * lib/mkdir.c (free): Remove decl.
62250         * lib/rmdir.c (rmdir): Define with a prototype.
62251         * lib/savedir.c: Include savedir.h first, to test interface.
62252
62253         * lib/mktime.c (STDC_HEADERS): Remove.
62254         Include <stdlib.h>, <string.h> unconditionally.
62255
62256         * lib/modechange.c: Include <stdlib.h> unconditionally.
62257         (malloc): Remove decl.
62258
62259         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
62260         (free): Remove decl.
62261
62262         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
62263         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
62264         (This type really should be intptr_t, but that's a C99ism.)
62265         (_obstack_memcpy): Remove: all uses changed to memcpy.
62266         Include <string.h> unconditionally.
62267         (struct obstack): Assume __STDC__ for types of members
62268         chunkfun, freefun, extra_arg.
62269         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
62270         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
62271         obstack_begin, obstack_specify_allocation,
62272         obstack_specify_allocation_with_arg, obstack_chunkfun,
62273         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
62274         Remove unprototyped decls and the macros that use them.
62275         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
62276         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
62277         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
62278         (defined __STDC__ && __STDC__)]:
62279         Remove nonprototyped code.
62280         Include <stdlib.h> unconditionally.
62281         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
62282         _obstack_allocated_p, _obstack_free, obstack_free,
62283         _obstack_memory_used, print_and_abort):
62284         Define using prototypes.
62285         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
62286         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
62287         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
62288         obstack_next_free, obstack_object_size, obstack_room) [0]:
62289         Remove unused, unprototyped code.
62290
62291         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
62292
62293         * lib/physmem.c (physmem_total, physmem_available, main): Define
62294         with prototypes.
62295
62296         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
62297         (main): Define with a prototype.
62298
62299         * lib/posixver.c (getenv): Remove decl.
62300
62301         * lib/putenv.c (malloc): Returns void *, not char *.
62302         Include <string.h> unconditionally.
62303         (strchr, memcpy, NULL): Do not define.
62304
62305         * lib/readtokens.c: Include readtokens.h first, to test interface.
62306         Include <stdlib.h>, <string.h> unconditionally.
62307         (init_tokenbuffer): Define with a prototype.
62308
62309         * lib/regex.c (PARAMS): Remove.  All uses removed.
62310         All uses of _RE_ARGS removed, too.
62311         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62312         unconditionally.
62313         (bzero): Assume memset exists.
62314         (memcmp, memcpy, NULL): Remove.
62315         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
62316         char, or assignments to local vars of type signed char.
62317         (init_syntax_once, PREFIX(extract_number_and_incr),
62318         PREFIX(print_partial_compiled_pattern),
62319         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
62320         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
62321         PREFIX(regex_grow_registers), PREFIX(regex_compile),
62322         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
62323         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
62324         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
62325         wcs_compile_range, byte_compile_range, truncate_wchar,
62326         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
62327         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
62328         count_mbs_length, wcs_re_match_2_internal,
62329         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
62330         PREFIX(alt_match_null_string_p),
62331         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
62332         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
62333         regfree, PREFIX(extract_number)): Define with prototype.  Remove
62334         now-unnecessary declaration, if any.
62335         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
62336         regcomp, regexec):
62337         Remove now-unnecessary casts among pointer types.
62338         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
62339
62340         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
62341         (free): Remove decl.
62342
62343         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
62344
62345         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
62346         (free): Remove decl.
62347
62348         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
62349         * lib/xgetcwd.c: Likewise.
62350
62351         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
62352         (free): Remove decl.
62353
62354         * lib/strchrnul.c (strchrnul): Define with a prototype.
62355         Fix bug: c_in was not converted to char before searching.
62356
62357         The following changes are not K&R related:
62358
62359         * lib/group-member.h: Include <sys/types.h>, so that this file is
62360         self-contained.
62361         * lib/makepath.h: Likewise.
62362
62363         * lib/getusershell.c (readname, default_index, line_size, readname):
62364         Use size_t, not int, for sizes.
62365         (readname): If the size overflows, report an error instead of
62366         looping forever.
62367
62368 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62369
62370         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
62371         libc.
62372
62373 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62374
62375         * README: New section: portability guidelines.
62376
62377 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62378
62379         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
62380         C89 spec.
62381
62382 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62383
62384         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
62385
62386 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62387
62388         Assume C89 or better; remove K&R cruft.
62389         A few of these changes were first proposed by Derek Robert Price
62390         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
62391
62392         * lib/addext.c: Include <string.h> unconditionally.
62393         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
62394         Don't declare getenv or malloc.
62395
62396         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
62397         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
62398         (NULL): Remove.
62399         (find_stack_direction, alloca): Use prototypes.
62400
62401         * lib/atexit.c (atexit): Define using a prototype.
62402
62403         * lib/basename.c, dirname.c, stripslash.c:
62404         Include <string.h> unconditionally.
62405
62406         * lib/bcopy.c: Include <stddef.h>.
62407         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
62408
62409         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
62410
62411         * lib/error.h (error, error_at_line, error_print_progname)
62412         [! (defined (__STDC__) && __STDC__)]: Remove decls.
62413         * lib/error.c: Include error.h first, to check interface.
62414         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62415         (VA_START): Remove; all uses changeed to va_start.
62416         (exit, strerror): Remove decls.
62417         (error_print_progname): Prototype uncondionally.
62418         Don't include <errno.h>; no longer needed.
62419         (private_strerror): Remove.
62420         (error_tail): Always define.
62421         (error, error_at_line): Assume C89 or better; always use prototypes.
62422         * lib/fatal.c: Include "fatal.h" first, to test interface.
62423         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62424         (VA_START): Remove; all uses changed to va_start.
62425         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
62426         this case.
62427         (exit): Remove decl.
62428         (fatal): Prototype unconditionally.  Assume va_start works.
62429         Abort at end, to pacify gcc.
62430
62431         * lib/euidaccess.c (main): Define with a prototype.
62432
62433         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
62434
62435         * lib/exitfail.c: Include <stdlib.h> unconditionally.
62436
62437         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
62438         prototypes.
62439         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
62440         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
62441         (getenv): Remove decl.
62442         (fnmatch): Define using a prototype.
62443         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
62444         (FCT): Define using a prototype.
62445
62446         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
62447
62448         * lib/gethostname.c: Include <stddef.h>.
62449         (gethostname): Define with prototype.  Length is size_t, not int.
62450
62451 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62452
62453         Assume C89 or better; remove K&R cruft.
62454         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
62455         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
62456         string.h, getenv, malloc.
62457         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
62458         headers.
62459         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
62460         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
62461         do not check for strerror.
62462         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
62463         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
62464         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
62465         do not check for doprnt or vprintf.
62466         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
62467         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
62468
62469 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62470
62471         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
62472         getversion.c should have been removed then, but was accidentally
62473         preserved.
62474
62475         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
62476         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
62477
62478 2003-09-08  Karl Berry  <karl@gnu.org>
62479
62480         * config/config.sub, config.guess, srclistvars.sh: update from savannah
62481                 config, forget about prep.
62482
62483         * config/depcomp, missing: update from automake.
62484
62485 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62486
62487         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
62488         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62489
62490 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62491
62492         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
62493         copy_tm_result.  Bug reported by Simon Josefsson in
62494         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62495
62496 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62497
62498         * m4/time_r.m4: New file.
62499         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
62500         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
62501         is. Check for timegm declaration.
62502         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
62503         Do not check for gmtime_r.
62504         Replace mktime if __mktime_internal does not exist and if mktime
62505         hasn't been replaced already.
62506
62507 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62508
62509         * lib/time_r.c, lib/time_r.h: New files.
62510
62511         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
62512         __localtime_r.
62513         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
62514         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
62515
62516         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
62517         __gmtime_r.
62518         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
62519         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
62520         Include <time_r.h>.
62521
62522         * lib/timegm.c: Switch to glibc implementation, with the following
62523         changes:
62524         [defined HAVE_CONFIG_H]: Include <config.h>.
62525         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
62526         (__mktime_internal) [!defined _LIBC]: New decl.
62527         (__gmtime_r) [!defined _LIBC]: New macro and function.
62528         (timegm): Use a prototype, since gnulib assumes C89.
62529         Do not bother declaring tmp to be const, as it's not really usefu.
62530         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
62531         (timegm): Declare only if HAVE_DECL_TIMEGM.
62532
62533 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62534
62535         * MODULES.html.sh (func_all_modules): Add time_r.
62536         * modules/time_r: New file.
62537         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
62538         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
62539
62540 2003-09-03  Paul Eggert  <eggert@twinsun.com>
62541
62542         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
62543         Bug reported by Lute Kamstra in
62544         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
62545
62546         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
62547         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
62548         course with correspondingly smaller numbers for tomorrow and
62549         yesterday.  From Tadayoshi Funaba.  Originally installed into
62550         sh-utils on 1999-08-07, but the patch got lost (I guess during the
62551         coreutils merge?).
62552
62553 2003-08-31  Simon Josefsson  <jas@extundo.com>
62554
62555         * modules/timegm: New file.
62556         * MODULES.html.sh (func_all_modules): Add timegm.
62557
62558 2003-08-31  Simon Josefsson  <jas@extundo.com>
62559
62560         * m4/timegm.m4: New file.
62561
62562 2003-08-31  Simon Josefsson  <jas@extundo.com>
62563
62564         * lib/timegm.h: New file.
62565         * lib/timegm.c: New file.  Based on
62566         wget-1.8.2/src/http.c:mktime_from_utc.
62567
62568 2003-08-31  Karl Berry  <karl@gnu.org>
62569
62570         * lib/argp.h: update from libc.
62571
62572 2003-08-28  Bruno Haible  <bruno@clisp.org>
62573
62574         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
62575         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
62576         followed by '#define fnmatch fnmatch_posix' gives an error.
62577
62578 2003-08-28  Bruno Haible  <bruno@clisp.org>
62579
62580         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
62581         warning on QNX, which defines O_BINARY to 000000.
62582
62583 2003-08-27  Jim Meyering  <jim@meyering.net>
62584
62585         * m4/mkstemp.m4: Require that the system mkstemp be able to create
62586         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
62587         would fail after 32.  Reported by Danny Levinson.  Details here:
62588         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
62589
62590 2003-08-24  Bruno Haible  <bruno@clisp.org>
62591
62592         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62593         MSVC7 <stdio.h> is included later.
62594
62595 2003-08-22  Simon Josefsson  <jas@extundo.com>
62596
62597         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62598
62599 2003-08-20  Karl Berry  <karl@gnu.org>
62600
62601         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62602
62603 2003-08-20  Bruno Haible  <bruno@clisp.org>
62604
62605         * modules/progname: New file.
62606         * MODULES.html.sh (func_all_modules): Add progname.
62607
62608 2003-08-20  Bruno Haible  <bruno@clisp.org>
62609
62610         * lib/progname.h: New file, from GNU gettext.
62611         * lib/progname.c: New file, from GNU gettext.
62612         * lib/progreloc.c: New file, from GNU gettext.
62613
62614 2003-08-19  Jim Meyering  <jim@meyering.net>
62615
62616         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62617         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62618
62619 2003-08-19  Bruno Haible  <bruno@clisp.org>
62620
62621         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62622         more.
62623
62624 2003-08-19  Bruno Haible  <bruno@clisp.org>
62625
62626         * lib/xstrdup.c: Assume <string.h> exists.
62627
62628 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62629
62630         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62631         in makefile rules.
62632
62633 2003-08-18  Jim Meyering  <jim@meyering.net>
62634
62635         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62636         * m4/lib-ld.m4: Likewise.
62637
62638 2003-08-18  Jim Meyering  <jim@meyering.net>
62639
62640         * lib/setenv.h: Indent nested cpp directive.
62641         * lib/vasnprintf.c: Remove trailing blanks.
62642
62643 2003-08-17  Simon Josefsson  <jas@extundo.com>
62644
62645         * modules/xstrndup: New file.
62646         * MODULES.html.sh (func_all_modules): Add xstrndup.
62647
62648 2003-08-17  Simon Josefsson  <jas@extundo.com>
62649
62650         * modules/argp: Fix autoconf macro name. Add more dependencies.
62651
62652 2003-08-17  Simon Josefsson  <jas@extundo.com>
62653
62654         * m4/xstrndup.m4: New file.
62655
62656 2003-08-17  Simon Josefsson  <jas@extundo.com>
62657
62658         * m4/argp.m4: New file.
62659
62660 2003-08-17  Simon Josefsson  <jas@extundo.com>
62661             Bruno Haible  <bruno@clisp.org>
62662
62663         * lib/xstrndup.h: New file.
62664         * lib/xstrndup.c: New file.
62665
62666 2003-08-17  Bruno Haible  <bruno@clisp.org>
62667
62668         * modules/strndup (Files, Include): Add lib/strndup.h.
62669
62670 2003-08-17  Bruno Haible  <bruno@clisp.org>
62671
62672         * modules/euidaccess (Files): Add lib/euidaccess.h.
62673
62674 2003-08-17  Bruno Haible  <bruno@clisp.org>
62675
62676         * lib/strndup.h: New file.
62677
62678 2003-08-17  Bruno Haible  <bruno@clisp.org>
62679
62680         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62681         like AC_GNU_SOURCE.
62682         * modules/extensions (configure.ac): Comment out the invocation of
62683         gl_USE_SYSTEM_EXTENSIONS.
62684
62685 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62686
62687         Merges from coreutils, etc.
62688         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62689         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62690         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62691         fixing a typo.
62692         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62693         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62694
62695 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62696
62697         Document merge from coreutils.
62698         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62699         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62700         * modules/utime: Add m4/utimes-null.m4.
62701
62702 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62703
62704         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62705         space, undoing this 2003-08-12 change:
62706         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62707
62708 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62709
62710         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62711         strtoul.c from libc, undoing this 2003-08-12 change:
62712         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62713
62714 2003-08-16  Jim Meyering  <jim@meyering.net>
62715
62716         Merges from coreutils.
62717         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62718         prefix.  Adjust cache variables similarly.  Create 500 rather than
62719         just 300 files, to exercise bug on Darwin6.5, too.
62720         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62721         $missing_dir.
62722         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62723         AM_SYS_POSIX_TERMIOS.
62724         Reported by mkc@mathdogs.com.
62725         Also change use of $am_cv_sys_posix_termios
62726         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62727         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62728         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62729         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62730         in /proc/mounts until it finds one with matching device number.  This
62731         is unnecessary when the FILE argument *is* a mount point.  No stat call
62732         is necessary in that case.  So, disable the statvfs-testing code on
62733         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62734         as RedHat bug# 84846.
62735         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62736         to 1MB, so as not to render systems with no stack size limit (e.g.,
62737         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62738         Include <unistd.h>.  On some systems,
62739         it is required for the definition of _SC_PAGESIZE.
62740
62741 2003-08-16  Jim Meyering  <jim@meyering.net>
62742
62743         Merge from coreutils.
62744         * lib/xstrtoimax.c: #else #if -> #elif.
62745         * lib/xstrtoumax.c: Likewise.
62746
62747 2003-08-16  Jim Meyering  <jim@meyering.net>
62748
62749         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62750         * m4/utimes.m4: Removed.
62751         * m4/utimes-null.m4: Renamed from utimes.m4.
62752
62753         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62754         to 1MB, so as not to render systems with no stack size limit (e.g.,
62755         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62756         Include <unistd.h>.  On some systems,
62757         it is required for the definition of _SC_PAGESIZE.
62758
62759 2003-08-16  Jim Meyering  <jim@meyering.net>
62760         and Paul Eggert  <eggert@cs.ucla.edu>
62761
62762         Merges from coreutils, etc.
62763
62764         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62765         using the latest version from cvs.  This avoids problems with #line
62766         directives using a vendor (Sun) compiler.
62767         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62768         Don't set GETGROUPS_LIB here; now it's
62769         done via getgroups.m4's wrapper function.
62770         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62771         rather than just in sh-util/configure.in, so that the
62772         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62773         same.
62774         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62775         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62776         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62777         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62778         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62779         Remove code that is now done by the newly-required macros.
62780         Append $(EXEEXT) to DF_PROG.
62781         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62782         Do not invoke or require the following here,
62783         since prereq.m4 or some gnulib .m4 now does this for us:
62784         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62785         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62786         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62787         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62788         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62789         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62790         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62791         AC_FUNC_OBSTACK.
62792         Do not replace the following functions, as this is now the job
62793         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62794         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62795         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62796         atexit getpass, strdup, getpagesize.
62797         Replace 'raise'.
62798         Do not check for the following functions, as this is now the job
62799         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62800         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62801         setregid.
62802         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62803         Check for sys/sysctl.h.
62804         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62805         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62806         of checking for ssize_t ourselves.
62807
62808         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62809         Require every macro that gnulib/modules/* suggests for us.
62810         (jm_PREREQ_ADDEXT): New macro.
62811         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62812         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62813
62814         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62815         (gl_PHYSMEM): Use it.
62816         Also check for `table' function.
62817         Check for new headers and functions.
62818         Add check for sys/sysmp.h.
62819         With suggestions from Kaveh Ghazi.
62820         Ignore headers that are present but cannot be compiled.  This
62821         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62822         C 5.4.
62823
62824 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62825
62826         Document merge from coreutils.
62827         * modules/userspec: Depend on posixver.
62828         * modules/strftime: Depend on tzset.
62829
62830 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62831
62832         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62833         rather than tab, after '#' in shell-script copyright notices.
62834         Suggested by Bruno Haible.
62835
62836 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62837
62838         * config/srclist-update: Use three spaces, rather than tab, after '#'
62839         in shell-script copyright notices.  Suggested by Bruno Haible.
62840         Remove unnecessary parenthesization in regular expression.
62841
62842 2003-08-15  Jim Meyering  <jim@meyering.net>
62843
62844         Merge from coreutils.
62845         * lib/xgethostname.c: Include <stdlib.h>.
62846         (xghostname): Don't exit for anything other than memory-related
62847         failure; just return NULL.
62848         * lib/userspec.c: Include "posixver.h".
62849         (parse_user_spec): Accept `.' as a separator only
62850         in pre-POSIX-200112 mode.
62851         * lib/strtoimax.c: Use #elif rather than #else #if.
62852         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
62853         Remove function, now that we can rely on a working tzset function.
62854         [!_LIBC]: Ensure that the required autoconf test has been run.
62855         [!defined _NL_CURRENT && HAVE_STRFTIME]:
62856         Use underlying_strftime for %r.
62857         * lib/sha.c: Merge in some clean-up and optimization changes from
62858         glibc.
62859         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
62860         Ensure that it is a multiple of 64.
62861         Rearrange loop exit tests so as to avoid performing an
62862         additional fread after encountering an error or EOF.
62863         * lib/realloc.c: Update copyright date.
62864
62865 2003-08-15  Jim Meyering  <jim@meyering.net>
62866         and Paul Eggert  <eggert@twinsun.com>
62867
62868         Merge from coreutils.
62869         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
62870         member but strut utmpx does not.  Needed for AIX 4.3.3.
62871         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
62872
62873 2003-08-15  Jim Meyering  <jim@meyering.net>
62874         and Paul Eggert  <eggert@cs.ucla.edu>
62875
62876         Merges from coreutils, etc.
62877         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
62878         Require gl_FUNC_TZSET_CLOBBER.
62879         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
62880         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
62881         members.
62882
62883 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62884
62885         Help the merge from coreutils.
62886         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
62887         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
62888         * m4/tzset.m4: Use it too.
62889
62890 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62891
62892         * modules/tzset: New file.
62893
62894 2003-08-14  Jim Meyering  <jim@meyering.net>
62895
62896         Merges from coreutils.
62897         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
62898         variable names, rather than @FNMATCH_H@.
62899         * modules/alloca: Likewise for $(ALLOCA_H).
62900
62901         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
62902         the three copies of the literal target, `fnmatch.h'.
62903         * modules/alloca (alloca.h): Likewise.
62904
62905 2003-08-14  Jim Meyering  <jim@meyering.net>
62906
62907         Merge from coreutils.
62908         * m4/tzset.m4: New file.
62909         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
62910         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
62911         otherwise, AIX 5.1 systems would end up using the latter.
62912         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
62913         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
62914         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
62915         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
62916
62917 2003-08-14  Jim Meyering  <jim@meyering.net>
62918
62919         Merge from coreutils.
62920         * lib/obstack.h: Whitespace changes.
62921         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
62922         and xcalloc return values.
62923         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
62924         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
62925         hang on OSF/1 5.1 for DIR on both local and remote file systems.
62926         Reported by (and fix confirmed by) Nelson H. F. Beebe.
62927         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62928         error from mntctl.
62929         Use mntctl's return value to drive the entry-processing loop, since
62930         we can't rely on the value of the vmt_length member in the last
62931         entry.  On some systems doing so could result in exhausting
62932         virtual memory.  Based in part on a patch from Mike Jetzer.
62933
62934 2003-08-14  Jim Meyering  <jim@meyering.net>
62935         and Paul Eggert  <eggert@twinsun.com>
62936
62937         Merges from coreutils, plus other fixes.
62938         * lib/physmem.c: Merge in portability changes from gcc/libiberty
62939         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
62940         for credits and details.  Thanks to Kaveh Ghazi for helping
62941         to keep these files in sync.
62942         (ARRAY_SIZE): Define it.
62943         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
62944         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
62945         (memcasecmp): Don't assume size_t fits in unsigned int.
62946         Remove casts and duplicate code.
62947         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
62948         (memcpy): Remove definition.
62949         Merge in some clean-up and optimization changes from glibc.
62950         [BLOCKSIZE]: Move definition to top of file.
62951         Ensure that it is a multiple of 64.
62952         Rearrange loop exit tests so as to avoid performing an
62953         additional fread after encountering an error or EOF.
62954         * lib/md5.h (md5_uintptr): Define.
62955         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
62956         return to the initial working directory.  Preserve errno
62957         for caller.
62958         * lib/idcache.c: Include "xalloc.h".
62959         (xmalloc, xrealloc): Remove decls.
62960         (getuser): Remove casts no longer required in C89.
62961         * lib/human.c: Include stdio.h, for sprintf.
62962         * lib/group-member.c: Include "xalloc.h".
62963         (xmalloc, xrealloc): Remove decls.
62964         (get_group_info): Remove casts no longer required in C89.
62965         * lib/getusershell.c (readname): Remove casts no longer required in
62966         C89.
62967         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
62968         * lib/getline.c: Whitespace fix, from coreutils.
62969
62970 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62971
62972         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
62973         Check for isascii.
62974
62975         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62976         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62977         Undo previous (whitespace-only) change.
62978
62979 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62980
62981         * lib/exclude.c: Include <ctype.h>
62982         (IN_CTYPE_DOMAIN): New macro.
62983         (is_space): New fn.
62984         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
62985         and empty lines.
62986
62987         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62988         Undo previous (whitespace-only) change.
62989
62990 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62991
62992         * config/srclist-update: Change update back to the old behavior,
62993         leaving whitespace alone.  Use one 'sed' command rather than a
62994         pipeline.
62995         (fixlicense): Now a variable, not a function.
62996         (remove_trailing_blanks): Remove.
62997         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
62998         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
62999         Undo previous (whitespace-only) change.
63000
63001 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63002
63003         Merge from coreutils.
63004         * modules/euidaccess: Add lib_SOURCES, include for new
63005         file euidaccess.h
63006
63007 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63008
63009         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63010         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63011         Normalize leading white space and remove trailing white space.
63012
63013         Merge from coreutils
63014         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
63015
63016         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
63017         0.12.1.  These files are now being upgraded automatically by
63018         ../config/srclist-update.
63019
63020 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63021
63022         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63023         Normalize leading white space and remove trailing white space.
63024         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
63025         notice, as per ../config/srclist-update.
63026
63027         Merge from coreutils.
63028         * lib/euidaccess.h: New file.
63029         * lib/euidaccess.c: Include it.
63030         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
63031         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
63032         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
63033
63034 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63035
63036         * config/srclist-update: Add copyright notice.
63037         (remove_id_lines, remove_trailing_blanks): New constants.
63038         (fixfile): Use them to normalize spacing a bit in copied files.
63039         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63040         Normalize leading white space and remove trailing white space.
63041
63042         * config/texinfo.tex: Sync with texinfo.
63043
63044         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
63045         strtoul.c from libc, to merge coreutils whitespace changes.
63046
63047         * config/srclist.txt: Get the following m4 files from gettext:
63048         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
63049         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
63050         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
63051         wint_t.m4.
63052
63053 2003-08-12  Karl Berry  <karl@gnu.org>
63054
63055         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
63056         been made.
63057
63058 2003-08-11  Paul Eggert  <eggert@twinsun.com>
63059
63060         * modules/gnu-source, m4/gnu-source.m4:
63061         Remove; we're assuming Autoconf 2.54 or later now.
63062         Suggested by Bruno Haible.
63063         * MODULES.html.sh (func_all_modules): Remove gnu-source.
63064
63065 2003-08-11  Bruno Haible  <bruno@clisp.org>
63066
63067         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
63068
63069 2003-08-11  Bruno Haible  <bruno@clisp.org>
63070
63071         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
63072         (vasnprintf): Use it instead of wcslen.
63073
63074 2003-08-11  Bruno Haible  <bruno@clisp.org>
63075
63076         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
63077         value to ensure that _Bool promotes to int. Use #define for _Bool when
63078         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
63079
63080 2003-08-10  Karl Berry  <karl@gnu.org>
63081
63082         * lib/regex.h: update from libc (whitespace fix).
63083
63084 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63085
63086         Merge some files from coreutils.  These changes were
63087         originally made by Jim Meyering.
63088         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
63089         many older Unixes require this.
63090         * lib/alloca.c (alloca): Remove cast to argument of free;
63091         no longer needed in C89.
63092         * lib/alloca_.h, regex.h: Fix white space to match
63093         what GNU indent does.
63094
63095 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63096
63097         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
63098         apparently Emacs's Unicode mode got confused before my 2003-08-05
63099         checkin.
63100
63101 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63102
63103         * m4/extensions.m4: New file.
63104         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
63105         Require gl_USE_SYSTEM_EXTENSIONS.
63106         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
63107         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
63108
63109 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63110
63111         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
63112         * modules/extensions, modules/gnu-source: New files.
63113         * modules/timespec, modules/unlocked-io: Depend on extensions.
63114
63115 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63116
63117         * modules/restrict: New file.
63118         * MODULES.html.sh (func_all_modules): Add restrict.
63119         * modules/regex: Depend on restrict.
63120
63121 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63122
63123         * m4/restrict.m4: New file.
63124         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
63125
63126 2003-08-07  Bruno Haible  <bruno@clisp.org>
63127
63128         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
63129         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
63130
63131 2003-08-07  Bruno Haible  <bruno@clisp.org>
63132
63133         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
63134         makes the module 'getndelim2' compatible with the module 'getline'.
63135
63136 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63137
63138         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
63139         byte with "\201" to avoid glitches when editing that source file
63140         with multi-gnome-terminal.
63141
63142 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63143
63144         * lib/bumpalloc.h: Remove.
63145
63146 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63147
63148         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
63149         * modules/bumpalloc: Remove.
63150
63151 2003-08-04  Paul Eggert  <eggert@twinsun.com>
63152
63153         * lib/getloadavg.c: Change copyright notice and spacing to conform to
63154         GNU coding style.
63155
63156         Merge from coreutils.
63157         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
63158         1. From glibc.
63159         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
63160         from Karl Berry, implemented by Jim Meyering.
63161         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
63162         from Dmitry V. Levin.
63163         Remove anachronistic cast of xrealloc.
63164         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
63165         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
63166         type. Otherwise, it wouldn't compile with at least /bin/cc on
63167         ymp-cray-unicos9.0.2.X.
63168         Combine two mostly-identical uses of alloca into one.
63169         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
63170
63171 2003-08-04  Dave Love  <d.love@dl.ac.uk>
63172
63173         [From Emacs.]
63174
63175         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
63176         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
63177         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
63178         obsolete NLIST_NAME_UNION.
63179         [__GNU__]: Undef BSD and FSCALE.
63180         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
63181
63182 2003-08-03  Paul Eggert  <eggert@twinsun.com>
63183
63184         * lib/stdbool_.h (_Bool): Make it signed char, instead of
63185         an enum type, so that it's guaranteed to promote to int.  See:
63186         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
63187
63188 2003-08-03  Karl Berry  <karl@gnu.org>
63189
63190         * config/depcomp: update from automake.
63191
63192 2003-07-31  Paul Eggert  <eggert@twinsun.com>
63193
63194         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
63195         (strerror): Don't assume that a printable int fits in 14 bytes.
63196
63197 2003-07-31  Bruno Haible  <bruno@clisp.org>
63198
63199         * modules/getpass-gnu: New file.
63200         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
63201
63202 2003-07-31  Bruno Haible  <bruno@clisp.org>
63203
63204         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
63205
63206 2003-07-24  Karl Berry  <karl@gnu.org>
63207
63208         * config/missing: update from automake.
63209
63210 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
63211             Bruno Haible  <bruno@clisp.org>
63212
63213         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
63214         * lib/getline.c (getline, getdelim): Likewise.
63215         Remove _GNU_SOURCE define; now it's defined in config.h through
63216         m4/getline.m4.
63217
63218 2003-07-23  Karl Berry  <karl@gnu.org>
63219
63220         * config/config.sub: update from prep.
63221
63222 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63223
63224         * modules/xalloc (Depends-on): Add exitfail.
63225         * modules/xmemcoll: Likewise.
63226
63227 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63228
63229         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
63230         over-parenthesization in macros.
63231
63232         Sync with coreutils.
63233
63234         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
63235         required by C99.
63236
63237         Use `exit_failure' for xalloc and xmemcoll instead of their own
63238         private exit-failure variables.
63239         * lib/xalloc.h (xalloc_exit_failure): Remove.
63240         * lib/xmalloc.c: Likewise.  Include exitfail.h.
63241         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
63242         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
63243         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
63244         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
63245
63246 2003-07-20  Jim Meyering  <jim@meyering.net>
63247
63248         * modules/closeout (Depends-on): Add exitfail.
63249         Suggestion from Bruno Haible.
63250
63251 2003-07-19  Karl Berry  <karl@gnu.org>
63252
63253         * config/config.sub: update from prep.
63254
63255 2003-07-18  Paul Eggert  <eggert@twinsun.com>
63256
63257         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
63258         Remove.
63259         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
63260         to test that it can stand by itself.  Include "exitfail.h".
63261         Clients should set exit_failure instead.
63262         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
63263
63264 2003-07-18  Bruno Haible  <bruno@clisp.org>
63265
63266         * modules/getndelim2: New file.
63267         * modules/getline: Share files with module getndelim2.
63268         * modules/getnline: Depend on getndelim2 instead of sharing files with
63269         it. Add getnline.c to lib_SOURCES.
63270         * MODULES.html.sh (func_all_modules): Add getndelim2.
63271
63272 2003-07-18  Bruno Haible  <bruno@clisp.org>
63273
63274         * m4/getndelim2.m4: New file.
63275         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
63276         invoke gl_PREREQ_GETNDELIM2.
63277         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
63278         gl_PREREQ_GETNDELIM2.
63279         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
63280         gl_GETNDELIM2.
63281
63282 2003-07-18  Bruno Haible  <bruno@clisp.org>
63283
63284         * lib/getndelim2.h: New file.
63285         * lib/getndelim2.c: Make into a module of its own. Include config.h,
63286         getndelim2.h.
63287         (getndelim2): Make non-static. Change return type to ssize_t.
63288         * lib/getline.h: Change argument names.
63289         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
63290         * lib/getnline.c: Include getndelim2.h.
63291
63292 2003-07-18  Andreas Schwab  <schwab@suse.de>
63293
63294         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
63295
63296 2003-07-17  Karl Berry  <karl@gnu.org>
63297
63298         * config/config.sub: update from prep.
63299
63300 2003-07-17  Bruno Haible  <bruno@clisp.org>
63301
63302         * modules/getnline: New file.
63303         * modules/getline: Add lib/getndelim2.c to source file list.
63304         * MODULES.html.sh (func_all_modules): Add getnline.
63305
63306 2003-07-17  Bruno Haible  <bruno@clisp.org>
63307
63308         * m4/getnline.m4: New file.
63309
63310 2003-07-17  Bruno Haible  <bruno@clisp.org>
63311
63312         * m4/Makefile.am.in: Remove file.
63313         * m4/Makefile.am: Remove file.
63314         * m4/Makefile.in: Remove file.
63315
63316 2003-07-17  Bruno Haible  <bruno@clisp.org>
63317
63318         * lib/getnline.h: New file.
63319         * lib/getnline.c: New file.
63320         * lib/getndelim2.c: New file, extracted from getline.c.
63321         (getndelim2): Renamed from getdelim2, with added nmax argument.
63322         * lib/getline.c: Include getndelim2.c.
63323         (getdelim2): Moved out to getndelim2.c.
63324         (getline, getdelim): Update.
63325
63326 2003-07-17  Bruno Haible  <bruno@clisp.org>
63327
63328         * lib/Makefile.am: Remove file.
63329         * lib/Makefile.in: Remove file.
63330
63331 2003-07-17  Bruno Haible  <bruno@clisp.org>
63332
63333         * configure.in: Remove file.
63334         * Makefile.in: Remove file.
63335
63336 2003-07-17  Bruno Haible  <bruno@clisp.org>
63337
63338         * MODULES.html.sh: Put the </BODY> right before </HTML>.
63339
63340 2003-07-16  Karl Berry  <karl@gnu.org>
63341
63342         * config/srclist-update: was running fixlicense twice, which caused
63343                 texinfo.tex to be nullified for some reason.  Simplify,
63344                 $gplsrc is no longer needed as far as I can see?
63345
63346 2003-07-16  Jim Meyering  <jim@meyering.net>
63347
63348         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
63349
63350 2003-07-15  Paul Eggert  <eggert@twinsun.com>
63351
63352         * config/srclist.txt: Get the following files from gettext-runtime/intl
63353         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
63354         ref-del.sin.  From Bruno Haible.
63355         * config/srclist-update (fixfile): Change grep pattern again, since the
63356         previous fix didn't work (there was another trailing $).  Use
63357         '[$]' to escape the $s.
63358
63359 2003-07-15  Karl Berry  <karl@gnu.org>
63360
63361         * lib/vasnprintf.c: update from gettext.
63362
63363 2003-07-15  Karl Berry  <karl@gnu.org>
63364
63365         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
63366         gets expanded when surrounded by '$'.
63367
63368 2003-07-15  Jim Meyering  <jim@meyering.net>
63369
63370         * modules/save-cwd: Don't depend on error.  From Derek Price.
63371
63372 2003-07-15  Jim Meyering  <jim@meyering.net>
63373
63374         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
63375
63376 2003-07-14  Simon Josefsson  <jas@extundo.com>
63377
63378         * modules/mempcpy: New file.
63379         * MODULES.html.sh (func_all_modules): Add mempcpy.
63380
63381 2003-07-14  Simon Josefsson  <jas@extundo.com>
63382
63383         * m4/mempcpy.m4: New file.
63384
63385 2003-07-14  Simon Josefsson  <jas@extundo.com>
63386
63387         * lib/mempcpy.h: New file.
63388         * lib/mempcpy.c: New file.
63389
63390 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63391
63392         * modules/getdate, modules/posixtm: Depend on mktime.
63393
63394 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63395
63396         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
63397         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
63398         unicodeio.c, unicodeio.h, unlocked-io.h:
63399         Switch from LGPL to GPL.
63400
63401 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63402
63403         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
63404         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
63405         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
63406         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
63407         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
63408         updated automatically by ../config/srclist-update.  This changes
63409         their license from LPGL to GPL.
63410
63411 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63412
63413         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
63414         assumed to refer to the root of the most recent stable gettext version.
63415         * config/srclistvars.sh: Add defaults for eggert.
63416         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
63417         Match "This program" as well as "The program".  This is needed
63418         for gettext.
63419
63420 2003-07-14  Jim Meyering  <jim@meyering.net>
63421
63422         Don't emit diagnostics.  Let callers do that.
63423         * lib/save-cwd.c: Don't include "error.h".
63424         (save_cwd): Don't call error.  Ensure that errno is valid
63425         when returning nonzero.
63426
63427         * lib/save-cwd.h (restore_cwd): Update prototype.
63428         * lib/save-cwd.c (restore_cwd): Remove two parameters.
63429         Simplify.  Don't call error upon failure.  Let callers do that.
63430         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
63431         when auditing is enabled.  But don't bother updating the #if.
63432
63433 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
63434
63435         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
63436         it breaks C++ compilation.
63437         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
63438
63439 2003-07-10  Simon Josefsson  <jas@extundo.com>
63440
63441         * modules/strchrnul (Makefile.am): Add strchrnul.h.
63442
63443 2003-07-10  Jim Meyering  <jim@meyering.net>
63444
63445         * m4/clock_time.m4: Remove trailing blank.
63446         * m4/intmax_t.m4: Likewise.
63447
63448 2003-07-10  Jim Meyering  <jim@meyering.net>
63449
63450         * lib/vasnprintf.c: Remove trailing blanks.
63451         Make cpp indentation consistent.
63452
63453 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63454
63455         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
63456         posixver.c, strftime.c, strnlen.c, strverscmp.c:
63457         Switch from LGPL to GPL.
63458
63459 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63460
63461         * config/srclist.txt: Sort sublists.  Add
63462         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
63463         that differ from gnulib for one reason or another; we'd like this list
63464         to be smaller but for now let's document what we have.
63465
63466 2003-07-08  Paul Eggert  <eggert@twinsun.com>
63467
63468         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
63469         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
63470         and sweeter "eval x=$x".
63471         * config/srclist.txt: Get lib/argp* from glibc.
63472
63473 2003-07-07  Paul Eggert  <eggert@twinsun.com>
63474
63475         * lib/mktime.c: Fix some boundary cases and remove need for floating
63476         point.
63477
63478         Issue a compile-time diagnostic if time_t is floating point, or if
63479         two's complement arithmetic is not in effect, or if arithmetic
63480         right shift does not propagate the sign.  These assumptions were
63481         all in the original code but they weren't checked.
63482
63483         (TIME_T_MIDPOINT, verify): New macros.
63484         (__isleap): Remove; it has integer overflow problems.
63485         (leapyear): New function, without those problems.
63486         (ydhms_tm_diff): Remove; splitting into two parts.
63487         (ydhms_diff): New function, containing the arithmetic part of
63488         the old ydhms_tm_diff function.  Issue a compile-time
63489         diagnostic if we are not using C99 integer division.
63490         Avoid casts when possible.
63491         (guess_time_tm): New function, containing the checking part of
63492         the old ydhms_tm_diff function.  Return the new value, rather than
63493         the difference between it and the old.  Accept a new argument T
63494         so that *T specifies the old value.  Check for overflow in the result.
63495
63496         (__mktime_internal): Use a time_t offset, not a long int offset.
63497         This undoes the 2003-06-04 change, which is no longer needed now
63498         that we have better overflow checking.
63499         (localtime_offset): Likewise.
63500
63501         (__mktime_internal): Avoid harmful overflow on hosts where time_t
63502         and long are 64-bit but int is only 32-bit.
63503         (ydhms_diff): Use long int to store year1 and yday1.
63504         Issue a compile-time diagnostic if long int is not wide enough.
63505
63506         (__mktime_internal): Use long int to store adjusted year and yday.
63507         Use plain C rather than preprocessor commands, if that doesn't
63508         affect efficiency.
63509         Check for overflow (and try to repair) after each probe
63510         rather than checking only at the very end.  This avoids some bugs
63511         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
63512         does not equal GMT offset at maximum time).
63513         Use integer to check for overflow rather than floating point; this
63514         is more portable to non-IEEE hosts, and is a tad faster.
63515         When we detect that we are oscillating between two values,
63516         don't check whether tm_isdst has the requested value, since
63517         we already know the answer.  When tm_isdst has the wrong value,
63518         use a different heuristic to find the right one, based on the
63519         extreme values actually observed in practice in tz2003a,
63520         rather than the (overly optimistic) "previous 3 calendar quarters".
63521
63522         (not_equal_tm, print_tm, check_result): Use "const T" rather than
63523         "T const" to accommodate glibc style.
63524         (check_result): Use less-confusing report format.  "long" -> "long int.
63525         (main): Likewise.
63526         Don't loop if the iteration overflows time_t.
63527         Allow a negative step in the iteration.
63528
63529 2003-07-06  Karl Berry  <karl@gnu.org>
63530
63531         * config/depcomp: update from automake.
63532         * config/config.sub: update from prep.
63533
63534 2003-07-03  Karl Berry  <karl@gnu.org>
63535
63536         * config/config.guess: update from prep.
63537
63538 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63539
63540         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
63541         xreadlink.c now includes it unconditionally.
63542
63543 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63544
63545         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
63546         having it depend on HAVE_SYS_TYPES_H.
63547
63548 2003-07-01  Bruno Haible  <bruno@clisp.org>
63549
63550         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
63551         <sys/types.h> should be sufficient.
63552         Reported by Paul Eggert.
63553
63554 2003-06-26  Karl Berry  <karl@gnu.org>
63555
63556         * config/depcomp: update from automake.
63557
63558 2003-06-26  Bruno Haible  <bruno@clisp.org>
63559
63560         * modules/human: Depend on module stdbool.
63561
63562 2003-06-25  Bruno Haible  <bruno@clisp.org>
63563
63564         * modules/readlink: New file.
63565         * modules/xreadlink: Depend on it.
63566         * MODULES.html.sh (func_all_modules): Add readlink.
63567
63568 2003-06-25  Bruno Haible  <bruno@clisp.org>
63569
63570         * m4/readlink.m4: New file.
63571
63572 2003-06-25  Bruno Haible  <bruno@clisp.org>
63573
63574         * lib/readlink.c: New file.
63575
63576 2003-06-22  Karl Berry  <karl@gnu.org>
63577
63578         * config/srclist.txt: update mkinstalldirs from automake.
63579         * config/mkinstalldirs: update.
63580
63581 2003-06-22  Bruno Haible  <bruno@clisp.org>
63582
63583         Portability to mingw32.
63584         * m4/ssize_t.m4: New file, from GNU gettext.
63585         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
63586         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
63587
63588 2003-06-22  Bruno Haible  <bruno@clisp.org>
63589
63590         * modules/safe-read: Add m4/ssize_t.m4.
63591         * modules/xreadlink: Add m4/ssize_t.m4.
63592
63593 2003-06-20  Bruno Haible  <bruno@clisp.org>
63594
63595         Assume C89, so PARAMS isn't needed.
63596         * lib/unicodeio.h (PARAMS): Remove.
63597         * lib/unicodeio.c: Don't use PARAMS.
63598
63599 2003-06-18  Karl Berry  <karl@gnu.org>
63600
63601         * config/config.{guess,sub}: update from prep.
63602
63603 2003-06-18  Jim Meyering  <jim@meyering.net>
63604
63605         Merge changes from coreutils.
63606         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63607         Remove explicit declarations of xmalloc and realloc.
63608         Include xalloc.h.
63609         (read_utmp): Remove anachronistic cast of xmalloc.
63610
63611 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63612
63613         Assume C89, so PARAMS isn't needed.
63614         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63615         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63616         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63617         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63618         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63619         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63620         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63621         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63622         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63623         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63624         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63625         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63626         no longer needed. Anyway, config.h should always be included before any
63627         other file.
63628
63629 2003-06-11  Simon Josefsson  <jas@extundo.com>
63630
63631         * modules/sysexits: New file.
63632         * MODULES.html.sh (func_all_modules): Add sysexits.
63633
63634 2003-06-11  Simon Josefsson  <jas@extundo.com>
63635
63636         * lib/sysexit_.h: New file.
63637
63638 2003-06-11  Derek Price  <derek@ximbiot.com>
63639
63640         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63641         necessary.
63642
63643 2003-06-11  Bruno Haible  <bruno@clisp.org>
63644
63645         * m4/sysexits.m4: New file.
63646
63647 2003-06-10  Simon Josefsson  <jas@extundo.com>
63648
63649         * lib/argp.h: New file, from glibc.
63650         * lib/argp-ba.c: New file, from glibc.
63651         * lib/argp-eexst.c: New file, from glibc.
63652         * lib/argp-fmtstream.c: New file, from glibc.
63653         * lib/argp-fmtstream.h: New file, from glibc.
63654         * lib/argp-fs-xinl.c: New file, from glibc.
63655         * lib/argp-help.c: New file, from glibc.
63656         * lib/argp-namefrob.h: New file, from glibc.
63657         * lib/argp-parse.c: New file, from glibc.
63658         * lib/argp-pv.c: New file, from glibc.
63659         * lib/argp-pvh.c: New file, from glibc.
63660         * lib/argp-xinl.c: New file, from glibc.
63661
63662 2003-06-10  Simon Josefsson  <jas@extundo.com>
63663
63664         * modules/strchrnul: New file.
63665
63666 2003-06-10  Simon Josefsson  <jas@extundo.com>
63667
63668         * modules/argp: New file.
63669
63670 2003-06-10  Simon Josefsson  <jas@extundo.com>
63671
63672         * m4/strchrnul.m4: New file.
63673
63674 2003-06-10  Simon Josefsson  <jas@extundo.com>
63675
63676         * lib/strchrnul.h: New file.
63677         * lib/strchrnul.c: New file.
63678
63679 2003-06-10  Bruno Haible  <bruno@clisp.org>
63680
63681         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63682
63683 2003-06-07  Karl Berry  <karl@gnu.org>
63684
63685         * config/config.{guess,sub}: update from prep.
63686
63687 2003-06-07  Jim Meyering  <jim@meyering.net>
63688
63689         * modules/strtod: Use $(...) notation, not @...@ for
63690         AC_REPLACE'd variables.
63691         * modules/localcharset: Likewise.
63692
63693 2003-06-07  Jim Meyering  <jim@meyering.net>
63694
63695         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63696         in place of my name in the copyright comment.
63697         Remove definition and uses of __P.
63698
63699         From coreutils.
63700         * lib/stat.c: Don't declare xmalloc explicitly.
63701         Instead, include "xalloc.h".
63702         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63703         xrealloc, and xcalloc return values.
63704         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63705         Improve comment.
63706         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63707
63708 2003-06-07  Bruno Haible  <bruno@clisp.org>
63709
63710         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63711         avoid AC_CONFIG_LINKS.
63712         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63713         fnmatch.h, to avoid AC_CONFIG_LINKS.
63714         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63715
63716 2003-06-07  Bruno Haible  <bruno@clisp.org>
63717
63718         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63719         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63720         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63721         directory.
63722         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63723         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63724         directory.
63725
63726 2003-06-06  Jim Meyering  <jim@meyering.net>
63727
63728         Merge from coreutils.
63729         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63730         Consolidate declarations and initializations of *_base* locals.
63731
63732         Merge from coreutils.
63733         This avoids a core dump on systems without GNU putenv,
63734         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63735         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63736         (unsetenv): New static function, from GNU libc.
63737         (rpl_putenv): Use it.
63738
63739         * lib/modechange.c: Remove trailing blanks.
63740
63741         Merge from coreutils.
63742         * lib/fsusage.c: Remove declaration of statfs.
63743         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63744
63745         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63746
63747 2003-06-06  Jim Meyering  <jim@meyering.net>
63748
63749         * lib/stdbool_.h: Renamed from stdbool.h.in.
63750
63751 2003-06-06  Jim Meyering  <jim@meyering.net>
63752             Bruno Haible  <bruno@clisp.org>
63753
63754         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63755         Adjust Makefile.am snippet not to redirect directly to target.
63756         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63757
63758 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63759
63760         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63761         mismatch, look in future quarters as well as past.  This fixes a
63762         bug when processing fall-backwards gaps immediately after a long
63763         period of daylight-saving time.
63764
63765         * lib/mktime.c: Assume freestanding C89 or better.
63766         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63767         (__P): Remove; not used.
63768         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63769         (mktime, not_equal_tm, print_tm, check_result,
63770         main): Use prototypes.  Use const * where appropriate.
63771         (main): Fix typo in testing code that uncovered by above changes.
63772         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63773
63774 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63775
63776         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63777         locale.h, localeconv.  This merges changes from coreutils.
63778
63779         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63780         It can be removed after the next Autoconf is released.
63781         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63782         needed.
63783
63784 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63785
63786         * lib/mktime.c: Fix Debian bug 177940
63787         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63788         (localtime_offset): Now long int, not time_t, because we want it
63789         to be guaranteed to be signed.  All uses changed.
63790         (__mktime_internal): If overflow would occur when adding offset,
63791         don't add it.
63792
63793         Merge 'human' changes from coreutils.  Rewrite to support
63794         locale-specific notations like thousands separators.
63795         * lib/human.c: Simplify authorship notice.
63796         Include human.h immediately after config.h.
63797         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63798         <limits.h>: Do not include, since human.h does.
63799         (SIZE_MAX, UINTMAX_MAX): New macros.
63800         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63801         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63802         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63803         (power_letter): Renamed from suffixes.
63804         (generate_suffix_backwards): Remove.
63805         (adjust_value): Now takes int style (because of human.h changes)
63806         and long double value (for greater precision on some platforms).
63807         (group_number): New function.
63808         (human_readable): Use it.  Use integer options, not enum.
63809         Put the options before the sizes in the arg list.
63810         Support all the new options.
63811         The old human_readable function has been removed;
63812         use inttostr.h instead.
63813         (human_readable, default_block_size, humblock):
63814         Use uintmax_t, not int, for block sizes.
63815         (human_readable_inexact, block_size_types): Remove.
63816         (block_size_opts): New constant.
63817         (human_options): Renamed from human_block_size, with new signature
63818         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63819         * lib/human.h: Add copyright and authorship notice.
63820         Include <limits.h> and <stdbool.h> unconditionally.
63821         (PARAMS): Remove.  All uses removed.
63822         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63823         (enum human_inexact_style): Remove tag; now a nameless enum.
63824         (human_floor, human_ceiling, human_round_to_even): Now have
63825         values 2, 0, 1 rather than -1, 1, 0.
63826         (human_group_digits, human_suppress_point_zero, human_autoscale,
63827         human_base_1024, human_SI, human_B): New constants.
63828         (human_readable_inexact, human_block_size): Remove.
63829         (human_readable): Size args are now uintmax_t, not int.
63830         (human_options): New decl.
63831
63832         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63833         unnecessary now that we assume C89 or better.  This change
63834         imported from coreutils.
63835
63836         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63837         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
63838         in the 2003-05-30 sync from glibc.
63839
63840         .h files should stand alone, but we shouldn't include <sys/types.h>
63841         if we can get away with just <stddef.h>.
63842
63843         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
63844         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
63845         rather than <sys/types.h>, as we merely need size_t.
63846         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
63847         to get size_t.
63848         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
63849         Include <stdio.h>, to get FILE.
63850         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
63851         memcasecmp.h has included <stddef.h> and all we need is size_t.
63852         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
63853         our interface, instead of including <sys/types.h>
63854
63855 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63856
63857         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
63858         now, as glibc mktime is buggy on non-glibc systems.
63859
63860 2003-06-03  Karl Berry  <karl@gnu.org>
63861
63862         * config/config.sub: update from prep.
63863
63864 2003-06-02  Paul Eggert  <eggert@twinsun.com>
63865
63866         [from coreutils]
63867         Fix some minor time-related bugs with POSIX time arguments.
63868         Some valid time stamps were being rejected (notably -1, and
63869         time stamps before 1900 on 64-bit hosts).  And some invalid
63870         time stamps were being accepted, e.g. September 31.
63871
63872         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
63873         that we can return (time_t) -1 successfully.
63874         * lib/posixtm.c: Likewise.
63875         [HAVE_STDBOOL_H]: Include <stdbool.h>.
63876         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
63877         (t): Remove static var.
63878         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
63879         of static var.  All uses changed.
63880         (year): Do not reject years before 1900; they can occur with
63881         64-bit time_t.
63882         (posix_time_parse): Do not check for out-of-range components;
63883         that is now the caller's responsibility, since our checks were
63884         only approximations.
63885         (posixtime): Use mktime to check for out-of-range components,
63886         since it knows them exactly.
63887         If mktime returns (time_t) -1, check whether an error actually occurred
63888         by invoking localtime on -1.
63889         (main) [TEST_POSIXTIME]: Check for input data errors, and report
63890         posixtime failures better.
63891         Improve the test data (in comments only).
63892
63893 2003-06-02  Karl Berry  <karl@gnu.org>
63894
63895         * config/mkinstalldirs (version): new variable.
63896         (--version): new option.
63897         (usage): improve message.
63898
63899 2003-05-30  Karl Berry  <karl@gnu.org>
63900
63901         * lib/mktime.c: update from libc.
63902
63903 2003-05-30  Bruno Haible  <bruno@clisp.org>
63904
63905         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
63906         * config/config.rpath: Upgrade to gettext-0.12.1.
63907
63908 2003-05-30  Bruno Haible  <bruno@clisp.org>
63909
63910         * m4/gettext.m4: Upgrade to gettext-0.12.1.
63911         * m4/nls.m4: New file, from gettext-0.12.1.
63912         * m4/po.m4: New file, from gettext-0.12.1.
63913         * m4/progtest.m4: Upgrade to gettext-0.12.1.
63914
63915 2003-05-30  Bruno Haible  <bruno@clisp.org>
63916
63917         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
63918         * lib/localcharset.h: Likewise.
63919         * lib/localcharset.c: Likewise.
63920
63921 2003-05-29  Karl Berry  <karl@gnu.org>
63922
63923         * config/config.rpath: update from gettext.
63924
63925 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63926
63927         Assume the headers required for C89 freestanding compilers.
63928         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
63929         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
63930         * m4/human.m4 (gl_HUMAN): Likewise.
63931         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
63932         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
63933         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63934         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
63935         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63936         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
63937
63938 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63939
63940         Assume the headers required for C89 freestanding compilers.
63941         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
63942         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
63943         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
63944         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
63945         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
63946         define, since <limits.h> is guaranteed to do that.
63947         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
63948         * lib/exclude.c: Include <stdbool.h> unconditionally.
63949         * lib/tempname.c: Include <stddef.h> unconditionally.
63950         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
63951         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
63952         <stddef.h> does that.
63953         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
63954         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
63955         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
63956         needed.
63957         * lib/xstrtol.c: Likewise.
63958         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
63959         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
63960
63961         * lib/addext.c (addext): Use assignment rather than cast, to avoid
63962         warnings on some platforms.
63963
63964         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63965         arbitrarily.
63966
63967 2003-05-26  Jim Meyering  <jim@meyering.net>
63968
63969         Merge in a change from coreutils:
63970         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
63971         that is guaranteed to be `no'.  Use `no_such_member' to indicate
63972         that condition, rather than `-1' which is slightly misleading.
63973         Change the name of the cache variable to have the gl_ prefix.
63974         Prompted by a patch from Richard Dawe for DJGPP.
63975
63976 2003-05-24  Karl Berry  <karl@gnu.org>
63977
63978         * config/config.guess: update from prep.
63979
63980 2003-05-22  Karl Berry  <karl@gnu.org>
63981
63982         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
63983
63984 2003-05-20  Karl Berry  <karl@gnu.org>
63985
63986         * config/config.guess: update from prep.
63987
63988 2003-05-18  Karl Berry  <karl@gnu.org>
63989
63990         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
63991         might actually be set by the user.
63992
63993         * config/depcomp, install-sh, mdate-sh: update from automake.
63994
63995 2003-05-17  Bruno Haible  <bruno@clisp.org>
63996
63997         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
63998         invalid expansion for AC_EGREP_CPP.
63999         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64000         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64001         Suggested by Akim Demaille <akim@epita.fr> in
64002         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
64003
64004 2003-05-12  Jim Meyering  <jim@meyering.net>
64005
64006         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
64007         the space-padded-by-default conversion specifiers, %e, %k, %l.
64008
64009 2003-05-12  Bruno Haible  <bruno@clisp.org>
64010
64011         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
64012         the string is longer than 4 KB.
64013
64014 2003-05-11  Karl Berry  <karl@gnu.org>
64015
64016         * config/config.{guess,sub}: update from prep.
64017
64018 2003-05-09  Bruno Haible  <bruno@clisp.org>
64019
64020         * modules/error: Add m4/strerror_r.m4 to file list.
64021
64022 2003-05-03  Bruno Haible  <bruno@clisp.org>
64023
64024         Upgrade to Unicode-4.0.
64025         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
64026         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
64027         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
64028         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
64029         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
64030         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
64031         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
64032         Change width of U+E0100..U+E01EF from 1 to 0.
64033
64034 2003-04-25  Jim Meyering  <jim@meyering.net>
64035
64036         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
64037         of type size_t, not int.
64038
64039 2003-04-25  Bruno Haible  <bruno@clisp.org>
64040
64041         * lib/copy-file.c: Include <stddef.h>, for size_t.
64042
64043 2003-04-21  Paul Eggert  <eggert@twinsun.com>
64044
64045         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
64046         code which expansion is under static control.  Patch imported from
64047         Akim Demaille's patch to Bison; see
64048         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
64049
64050 2003-04-14  Bruno Haible  <bruno@clisp.org>
64051
64052         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
64053
64054 2003-04-11  Jim Meyering  <jim@meyering.net>
64055
64056         Merge changes from Coreutils.
64057
64058         2003-03-22  Jim Meyering  <jim@meyering.net>
64059
64060         * lib/strftime.c (widen): Cast alloca return value to proper type.
64061
64062         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
64063
64064         From GNU libc.
64065         * lib/strftime.c (my_strftime): Handle very large width
64066         specifications for numeric values correctly.  Improve checks for
64067         overflow.
64068
64069         2003-01-19  Jim Meyering  <jim@meyering.net>
64070
64071         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
64072         definitions.
64073         (nl_get_alt_digit) [! defined my_strftime]: Define.
64074         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
64075         _nl_get_alt_digit and _nl_get_walt_digit.
64076
64077         * lib/strftime.c (my_strftime): Merge in locale-related changes from
64078         libc. These changes have no effect outside of _LIBC.
64079
64080 2003-04-10  Bruno Haible  <bruno@clisp.org>
64081
64082         * modules/findprog: New file.
64083         * MODULES.html.sh (func_all_modules): Add it.
64084
64085 2003-04-10  Bruno Haible  <bruno@clisp.org>
64086
64087         * m4/findprog.m4: New file.
64088         * m4/eaccess.m4: New file.
64089
64090 2003-04-10  Bruno Haible  <bruno@clisp.org>
64091
64092         * lib/findprog.h: New file, from GNU gettext.
64093         * lib/findprog.c: New file, from GNU gettext.
64094
64095 2003-04-05  Jim Meyering  <jim@meyering.net>
64096
64097         Merge changes from Coreutils.
64098
64099         * lib/exclude.h (PARAMS): Remove definition and uses.
64100         * lib/exclude.c: Remove uses of `PARAMS'.
64101
64102         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
64103         Add test-cases for DOS filenames. Declare program_name.
64104         (main): Set up program_name.  Patch by Rich Dawe.
64105
64106         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64107         error from mntctl.
64108         Use mntctl's return value to drive the entry-processing loop, since
64109         we can't rely on the value of the vmt_length member in the last
64110         entry.  On some systems doing so could result in exhausting
64111         virtual memory.  Based in part on a patch from Mike Jetzer.
64112
64113 2003-04-04  Bruno Haible  <bruno@clisp.org>
64114
64115         * modules/linebreak: New file.
64116         * MODULES.html.sh (func_all_modules): Add it.
64117
64118 2003-04-04  Bruno Haible  <bruno@clisp.org>
64119
64120         * m4/linebreak.m4: New file.
64121
64122 2003-04-04  Bruno Haible  <bruno@clisp.org>
64123
64124         * lib/linebreak.h: New file, from GNU gettext.
64125         * lib/linebreak.c: New file, from GNU gettext with slight
64126         modifications.
64127         * lib/lbrkprop.h: New file, from GNU gettext.
64128
64129 2003-04-03  Bruno Haible  <bruno@clisp.org>
64130
64131         * modules/utf8-ucs4: New file.
64132         * modules/utf16-ucs4: New file.
64133         * modules/ucs4-utf8: New file.
64134         * modules/ucs4-utf16: New file.
64135         * MODULES.html.sh (func_all_modules): Add them.
64136
64137 2003-04-03  Bruno Haible  <bruno@clisp.org>
64138
64139         * m4/utf-ucs4.m4: New file.
64140         * m4/ucs4-utf.m4: New file.
64141
64142 2003-04-03  Bruno Haible  <bruno@clisp.org>
64143
64144         * lib/utf8-ucs4.h: New file, from GNU gettext.
64145         * lib/utf16-ucs4.h: New file, from GNU gettext.
64146         * lib/ucs4-utf8.h: New file, from GNU gettext.
64147         * lib/ucs4-utf16.h: New file, from GNU gettext.
64148
64149 2003-04-02  Bruno Haible  <bruno@clisp.org>
64150
64151         * modules/binary-io: New file.
64152         * MODULES.html.sh (func_all_modules): Add it.
64153
64154 2003-04-02  Bruno Haible  <bruno@clisp.org>
64155
64156         * lib/binary-io.h: New file, from GNU gettext.
64157
64158 2003-04-01  Bruno Haible  <bruno@clisp.org>
64159
64160         * modules/pathname: New file.
64161         * MODULES.html.sh (func_all_modules): Add it.
64162
64163 2003-04-01  Bruno Haible  <bruno@clisp.org>
64164
64165         * lib/pathname.h: New file, from GNU gettext.
64166         * lib/concatpath.c: New file, from GNU gettext.
64167
64168 2003-03-30  Bruno Haible  <bruno@clisp.org>
64169
64170         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
64171
64172 2003-03-30  Bruno Haible  <bruno@clisp.org>
64173
64174         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
64175         function chown() doesn't exist.
64176
64177 2003-03-28  Bruno Haible  <bruno@clisp.org>
64178
64179         * modules/copy-file: New file.
64180         * MODULES.html.sh (func_all_modules): Add it.
64181
64182 2003-03-28  Bruno Haible  <bruno@clisp.org>
64183
64184         * m4/copy-file.m4: New file.
64185
64186 2003-03-28  Bruno Haible  <bruno@clisp.org>
64187
64188         * lib/copy-file.h: New file, from GNU gettext.
64189         * lib/copy-file.c: New file, from GNU gettext.
64190
64191 2003-03-18  Jim Meyering  <jim@meyering.net>
64192
64193         * lib/quote.c (quote_n): Fix typo in comment.
64194
64195 2003-03-18  Bruno Haible  <bruno@clisp.org>
64196
64197         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
64198         checking.
64199         * m4/onceonly_2_57.m4: Likewise.
64200
64201 2003-03-17  Bruno Haible  <bruno@clisp.org>
64202
64203         * m4/onceonly.m4: Require autoconf 2.54 or newer.
64204         (m4_quote): Remove macro.
64205         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
64206
64207 2003-03-14  Jim Meyering  <jim@meyering.net>
64208
64209         Merge changes from Coreutils.
64210         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
64211         to be const, in order to avoid warnings.
64212         (obstack_room): Likewise.
64213         (obstack_empty_p): Likewise.
64214
64215 2003-03-14  Bruno Haible  <bruno@clisp.org>
64216
64217         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
64218         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
64219
64220 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64221
64222         Merge changes from Bison.
64223         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
64224         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
64225         when compiling Bison 1.875's `bitset bset = obstack_alloc
64226         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
64227         * lib/hash.c: Include <stdbool.h> unconditionally.
64228
64229 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64230
64231         * m4/onceonly.m4 (m4_quote): New macro.
64232         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
64233         Quote AC_FOREACH variable-expansions properly.
64234
64235 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64236
64237         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
64238
64239 2003-03-09  Paul Eggert  <eggert@twinsun.com>
64240
64241         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
64242         Reported by Bruce Becker; see:
64243         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
64244
64245 2003-03-03  Paul Eggert  <eggert@twinsun.com>
64246             Bruno Haible  <bruno@clisp.org>
64247
64248         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
64249         Reported by John Hughes, see
64250         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
64251
64252 2003-02-20  Bruno Haible  <bruno@clisp.org>
64253
64254         * MODULES.html.sh (func_all_modules): Add poll.
64255
64256 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64257
64258         * modules/poll: New file.
64259
64260 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64261
64262         * lib/poll_.h: New file.
64263         * lib/poll.c: New file.
64264
64265 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64266
64267         * m4/poll.m4: New file.
64268
64269 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64270
64271         * modules/mathl: New file.
64272
64273 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64274
64275         * lib/mathl.h: New file.
64276         * lib/acosl.c: New file.
64277         * lib/asinl.c: New file.
64278         * lib/atanl.c: New file.
64279         * lib/ceill.c: New file.
64280         * lib/cosl.c: New file.
64281         * lib/expl.c: New file.
64282         * lib/floorl.c: New file.
64283         * lib/frexpl.c: New file.
64284         * lib/ldexpl.c: New file.
64285         * lib/logl.c: New file.
64286         * lib/sincosl.c: New file.
64287         * lib/sinl.c: New file.
64288         * lib/sqrtl.c: New file.
64289         * lib/tanl.c: New file.
64290         * lib/trigl.c: New file.
64291         * lib/trigl.h: New file.
64292
64293 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64294
64295         * m4/mathl.m4: New file.
64296
64297 2003-02-18  Bruno Haible  <bruno@clisp.org>
64298
64299         * MODULES.html.sh (func_all_modules): Add mathl.
64300
64301 2003-02-17  Bruno Haible  <bruno@clisp.org>
64302
64303         * modules/mkdtemp: New module.
64304         * MODULES.html.sh (func_all_modules): Add it.
64305
64306 2003-02-17  Bruno Haible  <bruno@clisp.org>
64307
64308         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
64309
64310 2003-02-17  Bruno Haible  <bruno@clisp.org>
64311
64312         * lib/mkdtemp.h: New file, from GNU gettext.
64313         * lib/mkdtemp.c: New file, from GNU gettext.
64314
64315 2003-02-02  Jim Meyering  <jim@meyering.net>
64316
64317         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
64318         e.g. glibc-2.2.93.
64319
64320 2003-01-31  Bruno Haible  <bruno@clisp.org>
64321
64322         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
64323         'rpl_rename'.
64324         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
64325         'rpl_strnlen'.
64326         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
64327         'rpl_strtod'.
64328         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
64329         'rpl_utime'.
64330
64331 2003-01-31  Bruno Haible  <bruno@clisp.org>
64332
64333         * lib/rename.c: #undef rename before defining rpl_rename.
64334         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
64335
64336 2003-01-30  Bruno Haible  <bruno@clisp.org>
64337
64338         * modules/vasnprintf, modules/vasprintf: New modules.
64339         * MODULES.html.sh (func_all_modules): Add them.
64340
64341 2003-01-30  Bruno Haible  <bruno@clisp.org>
64342
64343         * m4/signed.m4: New file, from GNU gettext.
64344         * m4/longdouble.m4: New file, from GNU gettext.
64345         * m4/wchar_t.m4: New file, from GNU gettext.
64346         * m4/wint_t.m4: New file, from GNU gettext.
64347         * m4/vasnprintf.m4: New file.
64348         * m4/vasprintf.m4: New file.
64349
64350 2003-01-30  Bruno Haible  <bruno@clisp.org>
64351
64352         * lib/printf-args.h: New file, from GNU gettext.
64353         * lib/printf-args.c: New file, from GNU gettext.
64354         * lib/printf-parse.h: New file, from GNU gettext.
64355         * lib/printf-parse.c: New file, from GNU gettext.
64356         * lib/vasnprintf.h: New file, from GNU gettext.
64357         * lib/vasnprintf.c: New file, from GNU gettext.
64358         * lib/asnprintf.c: New file, from GNU gettext.
64359         * lib/vasprintf.h: New file, from GNU gettext with modifications.
64360         * lib/vasprintf.c: New file, from GNU gettext.
64361         * lib/asprintf.c: New file, from GNU gettext.
64362
64363 2003-01-29  Bruno Haible  <bruno@clisp.org>
64364
64365         * modules/stpncpy: New module.
64366         * MODULES.html.sh (func_all_modules): Add it.
64367
64368 2003-01-29  Bruno Haible  <bruno@clisp.org>
64369
64370         * m4/stpncpy.m4: New file.
64371
64372 2003-01-29  Bruno Haible  <bruno@clisp.org>
64373
64374         * lib/stpncpy.h: New file, from GNU gettext with modifications.
64375         * lib/stpncpy.c: New file, from GNU gettext with modifications.
64376
64377 2003-01-28  Bruno Haible  <bruno@clisp.org>
64378
64379         * modules/c-ctype: New module.
64380         * MODULES.html.sh (func_all_modules): Add it.
64381
64382 2003-01-28  Bruno Haible  <bruno@clisp.org>
64383
64384         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
64385         Paul Eggert.
64386         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
64387         Paul Eggert.
64388
64389 2003-01-27  Bruno Haible  <bruno@clisp.org>
64390
64391         * modules/xsetenv: New module.
64392         * MODULES.html.sh (func_all_modules): Add it.
64393
64394 2003-01-27  Bruno Haible  <bruno@clisp.org>
64395
64396         * lib/xsetenv.h: New file, from GNU gettext.
64397         * lib/xsetenv.c: New file, from GNU gettext.
64398
64399 2003-01-23  Jim Meyering  <jim@meyering.net>
64400
64401         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
64402         from working on systems without dirfd (at least Irix and OSF1/Tru64).
64403
64404 2003-01-23  Bruno Haible  <bruno@clisp.org>
64405
64406         * modules/minmax: New module.
64407         * MODULES.html.sh (func_all_modules): Add it.
64408
64409 2003-01-23  Bruno Haible  <bruno@clisp.org>
64410
64411         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
64412         Eggert.
64413
64414 2003-01-22  Bruno Haible  <bruno@clisp.org>
64415
64416         * modules/exit: New module.
64417         * MODULES.html.sh (func_all_modules): Add it.
64418
64419 2003-01-22  Bruno Haible  <bruno@clisp.org>
64420
64421         * lib/exit.h: New file, from GNU gettext.
64422
64423 2003-01-19  Bruno Haible  <bruno@clisp.org>
64424
64425         * gnulib-tool: Recognize option --extract-maintainer.
64426         (func_get_maintainer): New function.
64427         * modules/*: Add Maintainer entry.
64428
64429 2003-01-16  Jim Meyering  <jim@meyering.net>
64430
64431         * m4/regex.m4: The `regex' struct is both input and output.
64432         Initialize it before each use.  Patch by Tim Waugh.
64433
64434 2003-01-16  Bruno Haible  <bruno@clisp.org>
64435
64436         * MODULES.html.sh: Add a table of contents. Add the module name as
64437         leftmost column. Add hyperlinks.
64438
64439 2003-01-15  Bruno Haible  <bruno@clisp.org>
64440
64441         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
64442
64443 2003-01-15  Bruno Haible  <bruno@clisp.org>
64444
64445         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
64446         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
64447         suffix.
64448
64449 2003-01-15  Bruno Haible  <bruno@clisp.org>
64450
64451         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
64452
64453 2003-01-15  Bruno Haible  <bruno@clisp.org>
64454
64455         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
64456         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
64457
64458 2003-01-14  Jim Meyering  <jim@meyering.net>
64459
64460         * lib/same.c (same_name): Tweak a comment.
64461
64462 2003-01-14  Bruno Haible  <bruno@clisp.org>
64463
64464         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
64465         when a string comparison is sufficient.
64466
64467 2003-01-14  Bruno Haible  <bruno@clisp.org>
64468
64469         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
64470         'unsigned int'.
64471
64472 2003-01-14  Bruno Haible  <bruno@clisp.org>
64473
64474         * lib/hash-pjw.c: Add comment about low quality of this function.
64475
64476 2003-01-13  Bruno Haible  <bruno@clisp.org>
64477
64478         * modules/stpcpy: Distribute lib/stpcpy.h.
64479         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
64480
64481 2003-01-13  Bruno Haible  <bruno@clisp.org>
64482
64483         * modules/*: Add a description.
64484         * modules/strpbrk: Fix Makefile.am snippet.
64485         * modules/strtoimax: Fix dependencies.
64486         * modules/strtoumax: Likewise.
64487
64488 2003-01-13  Bruno Haible  <bruno@clisp.org>
64489
64490         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
64491         * modules/alloca (Makefile.am): All object files depend on alloca.h.
64492         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
64493
64494 2003-01-13  Bruno Haible  <bruno@clisp.org>
64495
64496         * gnulib-tool (func_create_testdir): Store config/* files in the main
64497         directory.
64498         * config.rpath: Move to ...
64499         * config/config.rpath: ... here.
64500         * modules/gettext: Contains config/config.rpath, not config.rpath.
64501         * modules/iconv: Likewise.
64502
64503 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64504
64505         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64506         to avoid collisions with libcurses and libreadline.
64507
64508         * m4/getstr.m4: Remove.
64509         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
64510
64511 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64512
64513         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64514         to avoid collisions with libcurses and libreadline.
64515
64516         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
64517         * lib/getstr.h, getstr.c: Remove.
64518         * lib/getline.c: Include "getline.h", to check interface.
64519         Move body of old getstr.c here: this defines MIN_CHUNK and
64520         declares getdelim2, which is renamed from getstr.
64521         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
64522
64523         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
64524         All uses changed.
64525         * lib/linebuffer.h: Likewise.
64526         (readline): Remove backward-compatibility macro.
64527
64528 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64529
64530         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64531         to avoid collisions with libcurses and libreadline.
64532         * getstr: Remove.
64533         * MODULES.html.sh: Remove getstr.
64534         * modules/getline: Depend on unlocked-io, not getstr.
64535
64536 2003-01-12  Jim Meyering  <jim@meyering.net>
64537
64538         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
64539
64540 2003-01-10  Bruno Haible  <bruno@clisp.org>
64541
64542         * modules/alloca: Change Makefile.am requirements. Simplify Include
64543         requirements. Add lib/alloca_.h to file list.
64544
64545 2003-01-10  Bruno Haible  <bruno@clisp.org>
64546
64547         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
64548
64549 2003-01-10  Bruno Haible  <bruno@clisp.org>
64550
64551         * lib/alloca_.h: New file.
64552         * lib/getdate.y: Unconditionally include alloca.h.
64553         * lib/makepath.c: Likewise.
64554         * lib/setenv.c: Likewise.
64555         * lib/userspec.c: Likewise.
64556
64557 2003-01-09  Karl Berry  <karl@gnu.org>
64558
64559         * MODULES.html.sh: include `dirname $0` in PATH, to find
64560         gnulib-tool.
64561
64562 2003-01-09  Bruno Haible  <bruno@clisp.org>
64563
64564         * modules/stdbool: Change configure.ac, Makefile.am requirements.
64565         Simplify Include requirements. Add lib/stdbool.h.in to file list.
64566
64567 2003-01-09  Bruno Haible  <bruno@clisp.org>
64568
64569         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
64570
64571 2003-01-09  Bruno Haible  <bruno@clisp.org>
64572
64573         * lib/stdbool.h.in: New file.
64574
64575 2003-01-09  Bruno Haible  <bruno@clisp.org>
64576
64577         * gnulib-tool (func_all_modules): Ignore files ending in ~.
64578         * MODULES.html.sh: Likewise.
64579
64580 2003-01-08  Jim Meyering  <jim@meyering.net>
64581
64582         * lib/full-write.c: Undefine and define-away `const' after inclusion
64583         of errno.h, not before.  Suggestion from Bruno Haible.
64584
64585 2003-01-08  Bruno Haible  <bruno@clisp.org>
64586
64587         * modules/full-read: Depend on full-write.
64588
64589 2003-01-08  Bruno Haible  <bruno@clisp.org>
64590
64591         * lib/safe-read.c: Include specification header first, to ensure its
64592         selfcontainedness.
64593         * lib/full-write.c: Likewise.
64594
64595 2003-01-07  Jim Meyering  <jim@meyering.net>
64596
64597         * lib/full-write.c: Rework so that it may serve to define full_read,
64598         too.
64599         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64600
64601 2003-01-07  Bruno Haible  <bruno@clisp.org>
64602
64603         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64604         <inttypes.h>.
64605         * lib/xstrtol.h: Likewise.
64606         * lib/xstrtoimax.c: Likewise.
64607         * lib/xstrtoumax.c: Likewise.
64608         * lib/human.h: Likewise.
64609
64610         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64611         on systems that have <inttypes.h> but not <stdint.h>.
64612
64613 2003-01-07  Bruno Haible  <bruno@clisp.org>
64614
64615         * MODULES.html.sh: Add copyright notice.
64616         (missed_files): Omit CVS directory entries.
64617         (func_module): Make it work with sed-3.02.
64618         * MODULES.txt: Remove file.
64619
64620 2003-01-06  Jim Meyering  <jim@meyering.net>
64621
64622         * lib/version-etc.c: Update year in translatable copyright string.
64623
64624 2003-01-03  Karl Berry  <karl@gnu.org>
64625
64626         * config/config.{guess,sub}: update from prep.
64627
64628 2003-01-02  Karl Berry  <karl@gnu.org>
64629
64630         * doc/COPYING.DOC: belatedly updated to 1.2.
64631
64632 2003-01-01  Karl Berry  <karl@gnu.org>
64633
64634         * gnulib-tool (func_verify_module): report module name $module in
64635         error message, not $1.
64636         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64637         be created, only if it doesn't exist.
64638         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64639
64640 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64641
64642         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64643
64644 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64645
64646         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64647         memcmp if strcoll doesn't work.
64648
64649 2002-12-31  Bruno Haible  <bruno@clisp.org>
64650
64651         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64652         nonempty.
64653
64654 2002-12-31  Bruno Haible  <bruno@clisp.org>
64655
64656         * lib/memcoll.c (STRCOLL): New macro.
64657         (memcoll): Use it.
64658
64659 2002-12-31  Bruno Haible  <bruno@clisp.org>
64660
64661         * lib/localcharset.h: New file.
64662         * lib/localcharset.c: Include it.
64663         * lib/unicodeio.c: Likewise.
64664
64665 2002-12-31  Bruno Haible  <bruno@clisp.org>
64666
64667         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64668         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64669
64670 2002-12-31  Bruno Haible  <bruno@clisp.org>
64671
64672         * lib/getline.h: Include <stddef.h>, for size_t.
64673
64674         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64675         * lib/unicodeio.c: Don't include <stddef.h>.
64676
64677 2002-12-31  Bruno Haible  <bruno@clisp.org>
64678
64679         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64680         HAVE_TM_ZONE.
64681
64682 2002-12-24  Karl Berry  <karl@gnu.org>
64683
64684         * config/config.guess: update from prep.
64685
64686 2002-12-24  Bruno Haible  <bruno@clisp.org>
64687
64688         General infrasructure.
64689         * m4/README: Rewritten.
64690         * m4/onceonly.m4: New file.
64691         * m4/onceonly_2_57.m4: New file.
64692
64693         Module atexit.
64694         * m4/atexit.m4: New file.
64695
64696         Module strtod.
64697         * m4/strtod.m4: New file.
64698
64699         Module strtol.
64700         * m4/strtol.m4: New file.
64701
64702         Module strtoul.
64703         * m4/strtoul.m4: New file.
64704
64705         Module memchr.
64706         * m4/memchr.m4: New file.
64707
64708         Module memcmp.
64709         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64710         (jm_FUNC_MEMCMP): Invoke it.
64711
64712         Module memcpy.
64713         * m4/memcpy.m4: New file.
64714
64715         Module memmove.
64716         * m4/memmove.m4: New file.
64717
64718         Module memset.
64719         * m4/memset.m4: New file.
64720
64721         Module strcspn.
64722         * m4/strcspn.m4: New file.
64723
64724         Module strpbrk.
64725         * m4/strpbrk.m4: New file.
64726
64727         Module strstr.
64728         * m4/strstr.m4: New file.
64729
64730         Module strerror.
64731         * m4/strerror.m4: New file.
64732
64733         Module mktime.
64734         * m4/mktime.m4: Renamed from jm-mktime.m4.
64735         (gl_PREREQ_MKTIME): New macro.
64736         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64737
64738         Module malloc.
64739         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64740         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64741         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64742
64743         Module realloc.
64744         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64745         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64746         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64747
64748         Module strftime.
64749         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64750         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64751         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64752         gl_TM_GMTOFF.
64753         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64754
64755         Module xalloc.
64756         * m4/xalloc.m4: New file.
64757
64758         Module alloca.
64759         * m4/alloca.m4: New file.
64760
64761         Module putenv.
64762         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64763         (jm_FUNC_PUTENV): Invoke it.
64764
64765         Module setenv.
64766         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64767         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64768         when invoked twice.
64769         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64770         gt_FUNC_SETENV.
64771
64772         Module memrchr.
64773         * m4/memrchr.m4: New file.
64774
64775         Module stpcpy.
64776         * m4/stpcpy.m4: New file.
64777
64778         Module strcase.
64779         * m4/strcase.m4: New file.
64780
64781         Module strdup.
64782         * m4/strdup.m4: New file.
64783
64784         Module strnlen.
64785         * m4/strnlen.m4: New file.
64786
64787         Module strndup.
64788         * m4/strndup.m4: New file.
64789
64790         Module xstrtod.
64791         * m4/xstrtod.m4: New file.
64792
64793         Module xstrtol.
64794         * m4/xstrtol.m4: New file.
64795
64796         Module getdate.
64797         * m4/getdate.m4: New file.
64798
64799         Module unlocked-io.
64800         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64801         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64802         * m4/jm-glibc-io.m4n: Remove file.
64803
64804         Module long-options.
64805         * m4/long-options.m4: New file.
64806
64807         Module md5.
64808         * m4/md5.m4: New file.
64809
64810         Module sha.
64811         * m4/sha.m4: New file.
64812
64813         Module getstr.
64814         * m4/getstr.m4: New file.
64815
64816         Module getline.
64817         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64818         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64819         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64820         simply getline. Infoke gl_PREREQ_GETLINE.
64821
64822         Module obstack.
64823         * m4/obstack.m4: New file.
64824
64825         Module hash.
64826         * m4/hash.m4: New file.
64827
64828         Module readtokens.
64829         * m4/readtokens.m4: New file.
64830
64831         Module strverscmp.
64832         * m4/strverscmp.m4: New file.
64833
64834         Module stdbool.
64835         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
64836         OSF/1.
64837
64838         Module strtoll.
64839         * m4/strtoll.m4: New file.
64840
64841         Module strtoull.
64842         * m4/strtoull.m4: New file.
64843
64844         Module strtoimax.
64845         * m4/strtoimax.m4: New file.
64846
64847         Module strtoumax.
64848         * m4/strtoumax.m4: New file.
64849
64850         Module xstrtoimax.
64851         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
64852         jm_AC_PREREQ_XSTRTOIMAX.
64853         Moved the strtol prerequisites to strtol.m4.
64854         Moved the strtoll prerequisites to strtoll.m4.
64855         Moved the strtoimax prerequisites to strtoimax.m4.
64856
64857         Module xstrtoumax.
64858         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
64859         jm_AC_PREREQ_XSTRTOUMAX.
64860         Moved the strtoul prerequisites to strtoul.m4.
64861         Moved the strtoull prerequisites to strtoull.m4.
64862         Moved the strtoumax prerequisites to strtoumax.m4.
64863
64864         Module chown.
64865         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
64866         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
64867
64868         Module dup2.
64869         * m4/dup2.m4: New file.
64870
64871         Module ftruncate.
64872         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
64873         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
64874
64875         Module getgroups.
64876         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
64877         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
64878
64879         Module gettimeofday.
64880         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
64881         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
64882         gl_PREREQ_GETTIMEOFDAY.
64883
64884         Module mkdir.
64885         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
64886         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
64887
64888         Module mkstemp.
64889         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
64890         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
64891         jm_AC_TYPE_UINTMAX_T.
64892         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
64893
64894         Module stat.
64895         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
64896         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
64897
64898         Module lstat.
64899         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
64900         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
64901
64902         Module timespec.
64903         * m4/timespec.m4 (gl_TIMESPEC): New macro.
64904         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
64905         * m4/st_mtim.m4: Indentation.
64906
64907         Module nanosleep.
64908         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
64909         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
64910         gl_PREREQ_NANOSLEEP.
64911
64912         Module regex.
64913         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
64914         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
64915         (gl_REGEX): New macro.
64916
64917         Module rename.
64918         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
64919         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
64920
64921         Module rmdir.
64922         * m4/rmdir.m4: New file.
64923
64924         Module utime.
64925         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
64926         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
64927         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
64928
64929         Module dirname.
64930         * m4/dirname.m4: New file.
64931
64932         Module getopt.
64933         * m4/getopt.m4: New file.
64934
64935         Module unistd-safer.
64936         * m4/unistd-safer.m4: New file.
64937
64938         Module fnmatch.
64939         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
64940         declaration.
64941         (gl_PREREQ_FNMATCH_EXTRA): New macro.
64942         (gl_FUNC_FNMATCH_POSIX): New macro.
64943         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
64944         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
64945         simply fnmatch.
64946
64947         Module exclude.
64948         * m4/exclude.m4: New file.
64949
64950         Module human.
64951         * m4/human.m4: New file.
64952
64953         Module acl.
64954         * m4/acl.m4: Nop.
64955
64956         Module backupfile.
64957         * m4/backupfile.m4: New file.
64958         * m4/d-ino.m4: Indentation.
64959
64960         Module fsusage.
64961         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
64962         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
64963         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
64964
64965         Module dirfd.
64966         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
64967         requirements.
64968
64969         Module euidaccess.
64970         * m4/euidaccess.m4: New file.
64971
64972         Module file-type.
64973         * m4/file-type.m4: New file.
64974
64975         Module fileblocks.
64976         * m4/fileblocks.m4: New file.
64977
64978         Module filemode.
64979         * m4/filemode.m4: New file.
64980
64981         Module isdir.
64982         * m4/isdir.m4: New file.
64983
64984         Module lchown.
64985         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
64986         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
64987
64988         Module makepath.
64989         * m4/makepath.m4: New file.
64990
64991         Module modechange.
64992         * m4/modechange.m4: New file.
64993
64994         Module mountlist.
64995         * m4/mountlist.m4: New file.
64996         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
64997         Indentation.
64998
64999         Module path-concat.
65000         * m4/path-concat.m4: New file.
65001
65002         Module pathmax.
65003         * m4/pathmax.m4: New file.
65004
65005         Module same.
65006         * m4/same.m4: New file.
65007
65008         Module save-cwd.
65009         * m4/save-cwd.m4: New file.
65010
65011         Module savedir.
65012         * m4/savedir.m4: New file.
65013
65014         Module xgetcwd.
65015         * m4/xgetcwd.m4: New file.
65016         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
65017
65018         Module xreadlink.
65019         * m4/xreadlink.m4: New file.
65020
65021         Module safe-read.
65022         * m4/safe-read.m4: New file.
65023
65024         Module safe-write.
65025         * m4/safe-write.m4: New file.
65026
65027         Module closeout.
65028         * m4/closeout.m4: New file.
65029
65030         Module stdio-safer.
65031         * m4/stdio-safer.m4: New file.
65032
65033         Module getpass.
65034         * m4/getpass.m4: New file.
65035
65036         Module getugroups.
65037         * m4/getugroups.m4: New file.
65038
65039         Module group-member.
65040         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
65041         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
65042
65043         Module idcache.
65044         * m4/idcache.m4: New file.
65045
65046         Module userspec.
65047         * m4/userspec.m4: New file.
65048
65049         Module gettime.
65050         * m4/clock_time.m4: New file.
65051         * m4/gettime.m4: New file.
65052
65053         Module settime.
65054         * m4/settime.m4: New file.
65055
65056         Module posixtm.
65057         * m4/posixtm.m4: New file.
65058
65059         Module gethostname.
65060         * m4/gethostname.m4: New file.
65061
65062         Module canon-host.
65063         * m4/canon-host.m4: New file.
65064
65065         Module gettext.
65066         * m4/codeset.m4: New file, from gettext-0.11.5.
65067         * m4/gettext.m4: New file, from gettext-0.11.5.
65068         * m4/glibc21.m4: New file, from gettext-0.11.5.
65069         * m4/iconv.m4: New file, from gettext-0.11.5.
65070         * m4/intdiv0.m4: New file, from gettext-0.11.5.
65071         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
65072         * m4/inttypes.m4: New file, from gettext-0.11.5.
65073         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
65074         * m4/isc-posix.m4: New file, from gettext-0.11.5.
65075         * m4/lcmessage.m4: New file, from gettext-0.11.5.
65076         * m4/lib-ld.m4: New file, from gettext-0.11.5.
65077         * m4/lib-link.m4: New file, from gettext-0.11.5.
65078         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
65079         * m4/progtest.m4: New file, from gettext-0.11.5.
65080         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
65081         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
65082         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
65083
65084         Module localcharset.
65085         * m4/localcharset.m4: New file.
65086
65087         Module hard-locale.
65088         * m4/hard-locale.m4: New file.
65089
65090         Module mbswidth.
65091         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
65092         onceonly macros.
65093         * m4/mbrtowc.m4: Add comment.
65094
65095         Module memcasecmp.
65096         * m4/memcasecmp.m4: New file.
65097
65098         Module memcoll.
65099         * m4/memcoll.m4: New file.
65100
65101         Module unicodeio.
65102         * m4/unicodeio.m4: New file.
65103
65104         Module rpmatch.
65105         * m4/rpmatch.m4: New file.
65106
65107         Module yesno.
65108         * m4/yesno.m4: New file.
65109
65110         Module exitfail.
65111         * m4/exitfail.m4: New file.
65112
65113         Module c-stack.
65114         * m4/c-stack.m4 (gl_C_STACK): New macro.
65115         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
65116
65117         Module error.
65118         * m4/error.m4 (gl_ERROR): New macro.
65119         (jm_PREREQ_ERROR): Use onceonly macros.
65120
65121         Module fatal.
65122         * m4/fatal.m4: New file.
65123
65124         Module getloadavg.
65125         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
65126         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
65127
65128         Module getpagesize.
65129         * m4/getpagesize.m4: New file.
65130
65131         Module getusershell.
65132         * m4/getusershell.m4: New file.
65133
65134         Module physmem.
65135         * m4/physmem.m4: New file.
65136
65137         Module posixver.
65138         * m4/posixver.m4: New file.
65139
65140         Module quotearg.
65141         * m4/quotearg.m4: New file.
65142
65143         Module quote.
65144         * m4/quote.m4: New file.
65145
65146         Module readutmp.
65147         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
65148
65149         Module sig2str.
65150         * m4/sig2str.m4: New file.
65151
65152         Other.
65153         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
65154         ulonglong.m4.
65155         * m4/intmax_t.m4: New file.
65156         * m4/d-type.m4: Indentation.
65157         * m4/jm-macros.m4: Update.
65158         * m4/prereq.m4 (jm_PREREQ): Update.
65159         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
65160         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
65161         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
65162         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
65163         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
65164         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
65165         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
65166         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
65167         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
65168         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
65169         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
65170         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
65171         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
65172         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
65173         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
65174         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
65175         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
65176         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
65177         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
65178
65179 2002-12-24  Bruno Haible  <bruno@clisp.org>
65180
65181         * MODULES.txt: Update according to m4/ changes.
65182
65183         Module gettext.
65184         * config.rpath: New file, from gettext-0.11.5.
65185
65186         * modules/*: New module descriptions.
65187         * gnulib-tool: New file.
65188         * MODULES.html.sh: New file.
65189
65190 2002-12-21  Karl Berry  <karl@gnu.org>
65191
65192         * doc/fdl.texi: update to version 1.2.
65193
65194 2002-12-19  Karl Berry  <karl@gnu.org>
65195
65196         * config/config.guess: update from prep.
65197
65198 2002-12-18  Bruno Haible  <bruno@clisp.org>
65199
65200         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
65201         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
65202
65203 2002-12-17  Bruno Haible  <bruno@clisp.org>
65204
65205         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
65206         stdlib.h, string.h.
65207
65208 2002-12-17  Bruno Haible  <bruno@clisp.org>
65209
65210         * lib/canon-host.c (strdup): Remove unused declaration.
65211
65212         * lib/fsusage.c: Include full_read.h.
65213         (get_fs_usage): Use full_read instead of safe_read.
65214
65215         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
65216
65217 2002-12-12  Karl Berry  <karl@gnu.org>
65218
65219         * config/config.guess: update from prep.
65220
65221 2002-12-11  Bruno Haible  <bruno@clisp.org>
65222
65223         * m4/setenv.m4: New file, from gettext-0.11.5.
65224
65225 2002-12-11  Bruno Haible  <bruno@clisp.org>
65226
65227         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
65228         not unsetenv().
65229         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
65230         modifications:
65231
65232         2002-12-11  Bruno Haible  <bruno@clisp.org>
65233
65234                 * setenv.c (alloca): Fall back to malloc.
65235                 (freea): New macro.
65236                 (setenv): Use freea() to free memory allocated with alloca().
65237
65238         2002-11-13  Bruno Haible  <bruno@clisp.org>
65239
65240                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
65241                 function declarations.
65242                 * unsetenv.c (unsetenv): Likewise.
65243
65244         2002-03-04  Bruno Haible  <bruno@clisp.org>
65245
65246                 Portability to AIX 4.3.3.
65247                 * unsetenv.c: New file, extracted from setenv.c.
65248                 * setenv.c: Move the unsetenv() function to unsetenv.c.
65249
65250         2001-12-20  Bruno Haible  <bruno@clisp.org>
65251
65252                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
65253                 use malloc instead. For SunOS 4.
65254
65255         2001-12-11  Bruno Haible  <bruno@clisp.org>
65256
65257                 * setenv.c: Declare alloca.
65258                 (compar_fn_t): New typedef.
65259                 (KNOWN_VALUE, STORE_VALUE): Use it.
65260
65261         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
65262         setenv.h.
65263
65264 2002-12-10  Paul Eggert  <eggert@twinsun.com>
65265
65266         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
65267         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
65268         Choose values that are less likely to collide with system fnmatch
65269         options.
65270         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
65271         defined (e.g., a pure POSIX system).
65272         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
65273         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
65274
65275 2002-12-06  Paul Eggert  <eggert@twinsun.com>
65276
65277         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
65278         a pain in practice to deal with generated m4 files.  This change
65279         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
65280
65281         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
65282         and jm-glibc-io.m4, as they are no longer a special case.
65283         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
65284         kludge and the auto-generation stuff.  Check only whether the
65285         functions are declared, not whether they exist, since older hosts
65286         that don't declare the functions can't use the optimization anyway.
65287
65288 2002-12-06  Jim Meyering  <jim@meyering.net>
65289
65290         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
65291
65292         Merge in changes from libc's misc/error.c, in preparation
65293         for the merge of gnulib's changes back into libc.
65294
65295         * lib/error.c (_): Define only if not already defined.
65296         Move definition to follow all #include directives.
65297         Include unlocked-io.h only if !_LIBC.
65298         [_LIBC]: Include <libio/libioP.h>.
65299         [USE_IN_LIBIO]: Include <libio/iolibio.h>
65300         (fflush): Tweak definition to use INTUSE.
65301         (putc): Define.
65302
65303 2002-12-05  Paul Eggert  <eggert@twinsun.com>
65304
65305         * lib/alloca.c [defined emacs]: Include "lisp.h".
65306         (xalloc_die) [defined emacs]: New macro.
65307         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
65308         [! defined emacs]: Include <xalloc.h>.
65309         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
65310         (pointer): Typedef to POINTER_TYPE *.
65311         (malloc): Remove decl; we now always use xmalloc.
65312         (alloca): Use old-style definition, since Emacs needs this.
65313         Check for arithmetic overflow when computing combined size.
65314
65315 2002-12-04  Paul Eggert  <eggert@twinsun.com>
65316
65317         Do not generate unlocked-io.h automatically, since it's easier to
65318         maintain it by hand.
65319
65320         * lib/unlocked-io.h: New file, from GNU diffutils,
65321         but with proper copyright notice and attribution.
65322         * lib/gen-uio: Remove.
65323         * lib/Makefile.am: Add copyright notice.
65324         (libfetish_a_SOURCES): Add unlocked-io.h.
65325         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
65326         (DISTCLEANFILES, io_functions): Remove macros.
65327         (EXTRA_DIST): Remove gen_uio.
65328         (unlocked-io.h): Remove rule.
65329
65330 2002-12-04  Jim Meyering  <jim@meyering.net>
65331
65332         Reflect the fact that stat.c and lstat.c are no longer generated.
65333         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
65334         (DISTCLEANFILES): Likewise.
65335         (EXTRA_DIST): Likewise.
65336         (all_local): Don't depend on stat.c or lstat.c.
65337         (stat.c, lstat.c): Remove rules.
65338         (EXTRA_DIST): Remove xstat.in.
65339
65340         * lib/xstat.in: Remove file.  Contents moved into stat.c.
65341         * lib/stat.c: New file.  Contents mostly from xstat.in.
65342         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
65343         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
65344
65345         * lib/safe-read.c: Rework so that it may serve to define safe_write,
65346         too.
65347         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
65348
65349 2002-12-03  Jim Meyering  <jim@meyering.net>
65350
65351         * lib/safe-read.c, safe-write.c: Change variable names and comments,
65352         but not semantics, to minimize the differences between these two files.
65353         (safe_read): Change comment to mention SAFE_READ_ERROR.
65354
65355         * lib/safe-read.c (IS_EINTR): Define.
65356         (safe_read): Use IS_EINTR in place of in-function cpp directives.
65357
65358 2002-12-02  Jim Meyering  <jim@meyering.net>
65359
65360         * lib/safe-read.c (EINTR): Define.
65361         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
65362         (INT_MAX): Provide fallback.
65363         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
65364
65365         * lib/safe-read.h (SAFE_READ_ERROR): Define.
65366
65367 2002-12-02  Bruno Haible  <bruno@clisp.org>
65368
65369         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
65370         Define, taken from safe-read.c.
65371         (INT_MAX): Provide fallback.
65372         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
65373         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
65374
65375         * lib/safe-read.c (EINTR): Remove definition.
65376         (safe_read): Don't use EINTR if it is absent.
65377
65378 2002-12-01  Jim Meyering  <jim@meyering.net>
65379
65380         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
65381         zero.
65382         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
65383
65384 2002-11-27  Paul Eggert  <eggert@twinsun.com>
65385
65386         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
65387         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
65388         with `if (! (value < limit)) abort ();', for readability.
65389
65390 2002-11-26  Karl Berry  <karl@gnu.org>
65391
65392         * lib/strdup.c: copy from libc again, with jim's ok.
65393         * lib/.cppi-disable: re-add strdup.c
65394
65395 2002-11-25  Karl Berry  <karl@gnu.org>
65396
65397         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
65398         instead of "strtol.c".
65399
65400 2002-11-25  Karl Berry  <karl@gnu.org>
65401
65402         * config/install-sh: update from automake for variable quoting, $0 in
65403         error msgs, etc.
65404
65405         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
65406         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
65407         entry.
65408
65409 2002-11-25  Jim Meyering  <jim@meyering.net>
65410
65411         * lib/mktime.c: Sync from libc, now that it has the latest fix.
65412
65413 2002-11-24  Karl Berry  <karl@gnu.org>
65414
65415         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
65416         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
65417
65418 2002-11-24  Jim Meyering  <jim@meyering.net>
65419
65420         Update from coreutils:
65421
65422         * lib/mktime.c: Merge in changes from libc.
65423
65424         Avoid a link-time failure on some Linux systems.
65425         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
65426         (otherwise).
65427         (__mon_yday): Declare with the STATIC attribute.
65428         (__mktime_internal): Likewise.
65429         Based on a report from Greg Schafer.
65430
65431 2002-11-23  Jim Meyering  <jim@meyering.net>
65432
65433         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
65434         Use `unsigned', not `int', as type of index.
65435
65436         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
65437
65438         * lib/fsusage.c: Remove unneeded parentheses around operands of
65439         `defined'.
65440
65441 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65442
65443         * lib/quotearg.h: Allow multiple inclusion by surrounding with
65444         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
65445         so that we can be included first.
65446         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
65447         * lib/quotearg.c: Include quotearg.h immediately after config.h.
65448         No need to include stddef.h or sys/types.h any more.
65449         Surround local include files with "", not "<>".
65450         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
65451         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
65452         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
65453         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
65454         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
65455         (ISPRINT): Remove; no longer needed now that we assume C89.
65456
65457         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
65458         Preserve errno.
65459
65460         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
65461         quotearg_char): Use SIZE_MAX rather than
65462         (size_t) -1 when we are talking about "infinity".
65463
65464         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
65465
65466 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65467
65468         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
65469         hint that one should use `if (! x) abort ();' rather than `assert
65470         (x);', and anyway it's one less thing to worry about configuring.
65471         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
65472         hash_rehash, hash_insert): Use abort rather than assert.
65473
65474 2002-11-22  Bruno Haible  <bruno@clisp.org>
65475
65476         * lib/safe-read.h: Assume C89. Add comments.
65477         (safe_read): Change return type to size_t.
65478         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
65479         byte counts > SSIZE_MAX correctly.
65480         * lib/safe-write.h: New file.
65481         * lib/safe-write.c: New file.
65482         * lib/full-read.h: New file.
65483         * lib/full-read.c: New file.
65484         * lib/full-write.h: Assume C89. Add comments.
65485         * lib/full-write.c: Include safe-write.h.
65486         (full_write): Rewritten to use safe_write.
65487         Suggested by Jim Meyering and Paul Eggert.
65488
65489 2002-11-21  Jim Meyering  <jim@meyering.net>
65490
65491         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
65492
65493         Merge in changes from the coreutils.
65494
65495         2002-09-25  Paul Eggert  <eggert@twinsun.com>
65496         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
65497         <stdint.h>.
65498         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
65499         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
65500         int.  Work more efficiently if X is the same width as uintmax_t.
65501         Do not compare X to -1, to avoid bogus compiler warning.
65502         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
65503         Don't assume that f_frsize and f_bsize are the same type.
65504
65505         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
65506         warning on FreeBSD.
65507
65508         * lib/makepath.c (make_path): Restore umask *before* creating the final
65509         component.
65510         (make_path): Minor reformatting.
65511
65512         * lib/xmalloc.c: Adjust to work with new autoconf macros,
65513         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
65514         HAVE_MALLOC/HAVE_REALLOC.
65515
65516         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
65517         dummy ones.  At least on GNU/Linux systems, `auto' means something
65518         else.
65519         From Michael Stone.
65520
65521 2002-11-21  Bruno Haible  <bruno@clisp.org>
65522
65523         Remove case insensitive option matching.
65524         * lib/argmatch.h (argcasematch): Remove declaration.
65525         (ARGCASEMATCH): Remove macro.
65526         (__xargmatch_internal): Remove case_sensitive argument.
65527         (XARGMATCH): Update.
65528         (XARGCASEMATCH): Remove macro.
65529         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
65530         case_sensitive argument.
65531         (argcasematch): Remove function.
65532         (__xargmatch_internal): Remove case_sensitive argument.
65533         (main): Use XARGMATCH instead of XARGCASEMATCH.
65534
65535         * lib/xmalloc.c: Change compile-time error message. Add comment about
65536         required autoconf version.
65537
65538 2002-11-20  Paul Eggert  <eggert@twinsun.com>
65539
65540         Merge argmatch cleanups from Bison.  Assume C89.
65541
65542         * lib/argmatch.c: Include config.h here, not in argmatch.h.
65543         Include stdlib.h, for EXIT_FAILURE.
65544         Always include <string.h>, since we assume C89.
65545         (EXIT_FAILURE): Remove pre-C89 bug workaround.
65546         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
65547         Include <stddef.h> instead, since it's all we need for size_t.
65548         (PARAMS): Remove.  All uses removed.
65549         (ARRAY_CARDINALITY): Do not bother to #undef.
65550         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
65551         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65552         Remove unnecessary parentheses.
65553         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65554         Insert necessary parentheses.
65555         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
65556         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
65557
65558 2002-11-19  Bruno Haible  <bruno@clisp.org>
65559
65560         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
65561         * lib/mbswidth.h: Include <stddef.h>, for size_t.
65562
65563         * lib/mbswidth.h (PARAMS): Remove macro.
65564         (mbswidth, mbsnwidth): Use ANSI C function declarations.
65565         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
65566
65567         * lib/gcd.h (PARAMS): Remove macro.
65568         (gcd): Use ANSI C function declarations.
65569         * lib/gcd.c (gcd): Likewise.
65570
65571 2002-11-15  Bruno Haible  <bruno@clisp.org>
65572
65573         * lib/strcspn.c: Include <stddef.h>.
65574         (strcspn): Use ANSI C function declaration. Change return type to
65575         size_t. Use NULL.
65576         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
65577         (strpbrk): Use NULL.
65578         * lib/strpbrk.h (PARAMS): Remove macro.
65579         (strpbrk): Use ANSI C function declaration.
65580         * lib/strstr.c: Don't include <sys/types.h>.
65581         * lib/strstr.h (PARAMS): Remove macro.
65582         (strstr): Use ANSI C function declarations.
65583
65584 2002-11-14  Karl Berry  <karl@gnu.org>
65585
65586         * config/mkinstalldirs: `do' on separate line, instead of
65587         `for var; do'.
65588
65589 2002-11-06  Bruno Haible  <bruno@clisp.org>
65590
65591         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65592         * lib/gcd.c (gcd): Likewise.
65593
65594 2002-11-05  Bruno Haible  <bruno@clisp.org>
65595
65596         * lib/gcd.h: New file, from gettext-0.11.5.
65597         * lib/gcd.c: New file, from gettext-0.11.5.
65598
65599 2002-11-05  Bruno Haible  <bruno@clisp.org>
65600
65601         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65602         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65603         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65604         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65605
65606         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65607         <libintl.h>.
65608         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65609         <libintl.h>.
65610
65611         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65612         * lib/human.c: Include gettext.h instead of <libintl.h>.
65613         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65614         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65615         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65616         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65617         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65618         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65619         (textdomain): Remove definition.
65620         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65621
65622         * lib/long-options.c: Remove include of <libintl.h> and definition of
65623         _.
65624         * lib/same.c: Remove include of <libintl.h> and definition of _.
65625
65626 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65627
65628         * lib/config.charset: A few additions for Solaris.
65629
65630 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65631
65632         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65633         * lib/localcharset.c (locale_charset): Declare as extern "C".
65634
65635 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65636
65637         * lib/config.charset: msdos in uk_UA uses CP1125.
65638
65639 2002-11-04  Bruno Haible  <bruno@clisp.org>
65640
65641         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65642         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65643         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65644         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65645         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65646
65647 2002-11-04  Bruno Haible  <bruno@clisp.org>
65648
65649         * lib/localcharset.c (locale_charset): Don't return an empty string.
65650
65651 2002-11-04  Bruno Haible  <bruno@clisp.org>
65652
65653         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65654         aliases.
65655
65656 2002-11-04  Bruno Haible  <bruno@clisp.org>
65657
65658         * lib/config.charset: Update for newest glibc. Add canonical names
65659         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65660
65661 2002-11-04  Bruno Haible  <bruno@clisp.org>
65662
65663         * lib/config.charset: Add support for NetBSD.
65664
65665 2002-11-04  Bruno Haible  <bruno@clisp.org>
65666
65667         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65668
65669 2002-11-01  Bruno Haible  <bruno@clisp.org>
65670
65671         * configure.in: Add AC_CONFIG_AUX_DIR call.
65672         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65673         test/Makefile.
65674         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65675
65676 2002-09-28  Karl Berry  <karl@gnu.org>
65677
65678         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65679         installed automake until the next release, since changes have been
65680         made.
65681
65682 2002-09-25  Karl Berry  <karl@gnu.org>
65683
65684         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65685         * lib/getopt*: copy from libc/posix.
65686         * lib/gettext.h: copy from gettext.
65687         * lib/.cppi-disable: add strdup.c, gettext.h.
65688
65689 2002-09-25  Karl Berry  <karl@gnu.org>
65690
65691         * config/srclist.txt: enable gettext.h check.
65692         * config/config.{guess,sub}: update from prep.
65693         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65694                 from automake 1.6.3.
65695         See srclist*.
65696
65697 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65698
65699         * regex.c (PATFETCH): Remove the translating fetch.
65700         (PATFETCH_RAW): Rename to PATFETCH.
65701         (set_image_of_range): New fun.
65702         (SET_RANGE_TABLE_WORK_AREA): Use it.
65703         (regex_compile): Don't translate the pattern chars so eagerly.
65704         Only do it when inserting an `exactn' bytecode or when handling
65705         a char-range.
65706         (mutually_exclusive_p): Avoid empty statement.
65707
65708 2002-07-06  Jim Meyering  <meyering@lucent.com>
65709
65710         * m4/README: Don't mention Makefile.am.in.
65711         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65712
65713 2002-07-01  Jim Meyering  <meyering@lucent.com>
65714
65715         * lib/c-stack.c: Include sys/time.h.
65716         From Volker Borchert.
65717
65718 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65719
65720         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65721
65722 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65723
65724         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65725         New macro.  Use it uniformly instead of
65726         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65727         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65728         reported by Vin Shelton.
65729
65730 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65731
65732         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65733         Do not assume SA_SIGINFO behavior.
65734         Bug reported by Jim Meyering on NetBSD 1.5.2.
65735
65736 2002-06-22  Jim Meyering  <meyering@lucent.com>
65737
65738         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65739         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65740
65741         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65742         now that configure.ac uses AC_GNU_SOURCE.
65743         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65744         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65745
65746         Update to latest tools.  Suggestions from Paul Eggert.
65747         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65748         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65749         * m4/fnmatch.m4: Likewise.
65750         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65751         to AC_HEADER_STDBOOL
65752
65753 2002-06-22  Jim Meyering  <meyering@lucent.com>
65754
65755         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65756         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65757
65758 2002-06-22  Jim Meyering  <meyering@lucent.com>
65759
65760         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65761
65762         * lib/exitfail.c, exitfail.h: Likewise.
65763         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65764
65765         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65766         of fnmatch.h.
65767         (EXTRA_DIST): Add fnmatch_loop.c.
65768         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65769
65770         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65771         * lib/fnmatch.c: Update from diffutils-2.8.2.
65772         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65773         * lib/fnmatch.h: Remove file.
65774
65775 2002-06-21  Jim Meyering  <meyering@lucent.com>
65776
65777         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65778         * m4/mbrtowc.m4: Likewise.
65779
65780         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65781         * m4/mbswidth.m4: Reflect name change:
65782         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65783         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65784
65785         * m4/lib-link.m4: Update from gettext-0.11.2.
65786         * m4/gettext.m4: Likewise.
65787
65788         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65789         From Alfred M. Szmidt.
65790
65791 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65792
65793         * lib/file-type.h: Report an error if neither S_ISREG nor
65794         S_IFREG is defined, instead of using a test specific to glibc
65795         2.2.  This should be safe, since POSIX requires S_ISREG and
65796         Unix Version 7 had S_IFREG.  We don't need to check for
65797         <sys/types.h> since we don't use any symbols that it defines.
65798
65799 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65800
65801         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65802         $@-t, so that each temporary file name is unique and valid in the first
65803         8 characters, for operation under DOS.
65804
65805 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65806
65807         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65808
65809 2002-06-15  Jim Meyering  <meyering@lucent.com>
65810
65811         Work even with DJGPP 2.03, which lacks support for symlinks.
65812         From Richard Dawe.
65813         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65814         is defined.
65815         * lib/lchown.c (S_ISLNK): Likewise.
65816
65817 2002-06-15  Jim Meyering  <meyering@lucent.com>
65818
65819         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65820         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65821         have been included before this file.
65822
65823 2002-06-14  Jim Meyering  <meyering@lucent.com>
65824
65825         * lib/file-type.h: Use the version from diffutils-2.8.2.
65826         * lib/file-type.c: Likewise.
65827
65828 2002-06-07  Jim Meyering  <meyering@lucent.com>
65829
65830         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65831         They're needed at least for NetBSD 1.5.2.
65832         ($statxfs_includes): Include those same headers.
65833         ($statxfs_includes): Include sys/vfs.h if available.
65834         ($statxfs_includes): Likewise for sys/statvfs.h.
65835         Check for the following members in both structs statfs and statvfs:
65836         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
65837
65838 2002-06-01  Jim Meyering  <meyering@lucent.com>
65839
65840         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
65841         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
65842
65843 2002-05-28  Jim Meyering  <meyering@lucent.com>
65844
65845         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
65846         Reported by Volker Borchert.
65847
65848 2002-05-27  Jim Meyering  <meyering@lucent.com>
65849
65850         Fix a problem seen only on nonconforming systems whereby ls.c's
65851         use of localtime, and then of gettimeofday would cause trouble:
65852         the localtime call used to initialize rpl_gettimeofday's save
65853         mechanism would clobber ls's current local time information so
65854         that in any long listing the first file would always be listed
65855         with date 1970-01-01.  Analysis by Volker Borchert.
65856
65857         * lib/gettimeofday.c (localtime): Undefine.
65858         (rpl_localtime): New function.
65859
65860 2002-05-27  Jim Meyering  <meyering@lucent.com>
65861
65862         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
65863         localtime.
65864
65865         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
65866         use the replacement function; it wouldn't resolve at link time.
65867         Reported by Volker Borchert.
65868
65869 2002-05-22  Jim Meyering  <meyering@lucent.com>
65870
65871         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
65872         file-type.h.
65873         * lib/file-type.h: New file.
65874         * lib/file-type.c (file_type): New file/function.  Extracted from
65875         diffutils.
65876
65877 2002-04-30  Jim Meyering  <meyering@lucent.com>
65878
65879         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
65880
65881 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65882
65883         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
65884
65885 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65886
65887         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
65888         Do not check for alloca.h (no longer used) or stdbool.h (was never
65889         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
65890
65891 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65892
65893         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
65894
65895 2002-04-29  Jim Meyering  <meyering@lucent.com>
65896
65897         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
65898         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
65899         Use AC_FUNC_STRNLEN here instead.
65900
65901         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
65902         With autoconf-2.53a, it's part of AC_PROG_CC.
65903
65904 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65905
65906         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
65907         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
65908
65909 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65910
65911         * lib/sig2str.h, lib/sig2str.c: New files.
65912         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
65913
65914 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65915
65916         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
65917         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
65918         of 127, since 64 is the largest conceivable number for ancient
65919         nonstandard hosts.
65920         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
65921
65922 2002-04-28  Jim Meyering  <meyering@lucent.com>
65923
65924         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
65925
65926 2002-04-24  Jim Meyering  <meyering@lucent.com>
65927
65928         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
65929         (jm_PREREQ): Use it.
65930
65931         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
65932         mach/mach.h fcntl.h.
65933         Check for this function: setlocale.
65934
65935 2002-04-24  Jim Meyering  <meyering@lucent.com>
65936
65937         * lib/gettext.h: New file, from Gettext.
65938         * lib/Makefile.am (INCLUDES): Remove -I../intl.
65939         (libfetish_a_SOURCES): Add gettext.h.
65940
65941 2002-04-16  Jim Meyering  <meyering@lucent.com>
65942
65943         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
65944         ut_pid, ut_id, ut_exit.
65945
65946 2002-04-16  Jim Meyering  <meyering@lucent.com>
65947
65948         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
65949         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
65950         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
65951
65952 2002-04-12  Jim Meyering  <meyering@lucent.com>
65953
65954         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
65955         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
65956         existence of the getmntinfo function.  Needed for Darwin 5.3.
65957
65958         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
65959         This is necessary at least on Darwin 5.3.
65960
65961         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
65962         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
65963         strnlen.o in the library, and that makes some versions of ranlib
65964         object.
65965
65966 2002-04-12  Jim Meyering  <meyering@lucent.com>
65967
65968         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
65969
65970 2002-04-09  Jim Meyering  <meyering@lucent.com>
65971
65972         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
65973         to be more precise.  Rather than saying we're checking whether the
65974         function `works', say what we're testing.
65975         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
65976         Reported by Bruno Haible.
65977
65978 2002-03-10  Jim Meyering  <meyering@lucent.com>
65979
65980         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
65981         Suggestion from Santiago Vila.
65982
65983 2002-03-08  Jim Meyering  <meyering@lucent.com>
65984
65985         * lib/rename.c: Mention that this wrapper is needed also on
65986         mips-dec-ultrix4.4 systems.
65987
65988 2002-03-02  Jim Meyering  <meyering@lucent.com>
65989
65990         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
65991         not HAVE_CLOCK_SETTIME.
65992
65993 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65994
65995         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
65996         Check for clock_settime.
65997
65998 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65999
66000         * lib/nanosleep.h: Rename to....
66001         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
66002
66003         * lib/gettime.c: New file.
66004         * lib/settime.c: New file.
66005         * lib/stime.c: Remove.
66006
66007         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
66008         timespec.h.  Remove nanosleep.h.
66009
66010 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66011
66012         * m4/acl.m4: New file.
66013         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
66014         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
66015
66016 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66017
66018         * lib/acl.c, lib/acl.h: New files.
66019         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
66020
66021 2002-02-24  Jim Meyering  <meyering@lucent.com>
66022
66023         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
66024         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
66025         cause trouble.  Reported by Nelson Beebe.
66026
66027 2002-02-23  Paul Eggert  <eggert@twinsun.com>
66028
66029         * lib/path-concat.c (xpath_concat): Reorder code to pacify
66030         compilers that don't know that xalloc_die never returns.
66031
66032 2002-02-20  Jim Meyering  <meyering@lucent.com>
66033
66034         * lib/getdate.c: Regenerate using bison-1.33.
66035
66036 2002-02-17  Jim Meyering  <meyering@lucent.com>
66037
66038         * config/config.guess (main): Don't use `head -1'; it's no longer
66039         portable. Use `sed 1q' instead.
66040
66041 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
66042
66043         * m4/codeset.m4: Upgrade to gettext-0.11.
66044         * m4/gettext.m4: Upgrade to gettext-0.11.
66045         * m4/glibc21.m4: Upgrade to gettext-0.11.
66046         * m4/iconv.m4: Upgrade to gettext-0.11.
66047         * m4/isc-posix.m4: Upgrade to gettext-0.11.
66048         * m4/lcmessage.m4: Upgrade to gettext-0.11.
66049         * m4/lib-ld.m4: New file, from gettext-0.11.
66050         * m4/lib-link.m4: New file, from gettext-0.11.
66051         * m4/lib-prefix.m4: New file, from gettext-0.11.
66052         * m4/progtest.m4: Upgrade to gettext-0.11.
66053
66054 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66055
66056         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
66057         (jm_PREREQ): Use it.
66058
66059 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66060
66061         * lib/posixver.c, lib/posixver.h: New files.
66062         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66063
66064 2002-02-02  Paul Eggert  <eggert@twinsun.com>
66065             Bruno Haible  <bruno@clisp.org>
66066
66067         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
66068         (fwrite_success_callback): New declaration.
66069         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
66070         print_unicode_char. Call failure callback instead of error.
66071         (fwrite_success_callback): New function.
66072         (exit_failure_callback): New function.
66073         (fallback_failure_callback): New function.
66074         (print_unicode_char): Call unicode_to_mb.
66075
66076 2002-01-26  Jim Meyering  <meyering@lucent.com>
66077
66078         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
66079         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
66080
66081 2002-01-26  Jim Meyering  <meyering@lucent.com>
66082
66083         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
66084
66085 2002-01-22  Paul Eggert  <eggert@twinsun.com>
66086
66087         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
66088
66089 2002-01-22  Jim Meyering  <meyering@lucent.com>
66090
66091         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
66092         Otherwise, some versions of automake would omit the rule that makes
66093         Makefile from Makefile.in.
66094
66095 2002-01-21  Paul Eggert  <eggert@twinsun.com>
66096
66097         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
66098         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66099         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
66100         (memcoll): Set errno to zero if there is no error.
66101
66102         * lib/quotearg.c (quotearg_buffer_restyled):
66103         Fix bug with quoting buffers containing NUL when backslashing escapes.
66104         This bug was exposed by the other changes in this patch.
66105         (quotearg_n_options): New arg ARGSIZE.
66106         All callers changed.
66107         (quoting_options_from_style): New function.
66108         (quotearg_n_style): Use it.
66109         (quotearg_n_style_mem): New function.
66110
66111         * lib/quotearg.h (quotearg_n_style_mem): New function.
66112
66113 2002-01-19  Jim Meyering  <meyering@lucent.com>
66114
66115         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
66116         Remove useless quotes: DF_PROG="df".
66117         * m4/strnlen.m4: New file.
66118
66119 2002-01-16  Paul Eggert  <eggert@twinsun.com>
66120
66121         * lib/backupfile.c (ISDIGIT): Comment fix.
66122         * lib/getdate.y (ISDIGIT): Likewise.
66123         * lib/posixtm.c (ISDIGIT, year): Likewise.
66124         * lib/strverscmp.c (ISDIGIT): Likewise.
66125         * lib/userspec.c (ISDIGIT): Likewise.
66126
66127 2002-01-16  Jim Meyering  <meyering@lucent.com>
66128
66129         * lib/getdate.y: Add three semicolons, each just before a closing
66130         brace. Bison (as of version 1.31) no longer papers over that mistake.
66131
66132 2002-01-05  Jim Meyering  <meyering@lucent.com>
66133
66134         * lib/version-etc.c (version_etc_copyright): Update copyright year.
66135
66136 2001-12-19  Paul Eggert  <eggert@twinsun.com>
66137
66138         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
66139         not silently exit merely because the output buffer happens to
66140         have nothing pending.
66141
66142 2001-12-18  Paul Eggert  <eggert@twinsun.com>
66143
66144         See the big note in ../ChangeLog.
66145         * lib/human.c (suffixes): Prefer K to k for 1024.
66146         (generate_suffix_backwards): New function.
66147         (human_readable_inexact): Use it.
66148         * lib/xstrtol.c (__xstrtol): If there is no number but there
66149         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
66150         Accept 'K' as well as 'k'.
66151
66152 2001-12-15  Jim Meyering  <meyering@lucent.com>
66153
66154         * lib/regex.h (__restrict_arr): Update from libc.
66155
66156         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
66157         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
66158         (STREQ): Define.
66159
66160 2001-12-14  Jim Meyering  <meyering@lucent.com>
66161
66162         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
66163         Suggestion from Bruno Haible.
66164
66165 2001-12-10  Jim Meyering  <meyering@lucent.com>
66166
66167         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
66168         xrealloc, Instead, include "xalloc.h".
66169         (initbuffer): Don't cast xmalloc return value to char*.
66170         (readline): Reword comment.
66171         Don't cast xrealloc return value to char*
66172         Return NULL, not 0.
66173
66174 2001-12-09  Jim Meyering  <meyering@lucent.com>
66175
66176         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
66177         about `signed and unsigned type in conditional expression'.
66178         * lib/posixtm.c (posix_time_parse): Likewise.
66179
66180         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
66181
66182         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
66183         to avoid a pedantic warning.
66184
66185         * lib/getstr.c: Don't include assert.h.
66186         (getstr): Remove warning-evoking assertions.
66187         Return -1 if offset parameter is out of bounds.
66188         Change the type of a local from int to size_t.
66189
66190         * lib/strftime.c (my_strftime_localtime_r): Include this function
66191         definition in the `#if ! HAVE_TM_GMTOFF' block.
66192
66193         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
66194         Include xalloc.h instead.
66195
66196 2001-12-02  Jim Meyering  <meyering@lucent.com>
66197
66198         * lib/tempname.c: Don't declare getenv, thus reverting the change of
66199         2001-11-18.  It's no longer necessary, now that stdlib.h is always
66200         included.
66201
66202         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
66203         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
66204
66205 2001-11-30  Akim Demaille  <akim@epita.fr>
66206
66207         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
66208         before being defined.
66209
66210 2001-11-27  Paul Eggert  <eggert@twinsun.com>
66211
66212         * lib/quotearg.h (quotearg_n, quotearg_n_style):
66213         First arg is int, not unsigned.
66214         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
66215         (SIZE_MAX, UINT_MAX): New macros.
66216         (quotearg_n_options): Abort if N is negative.
66217         Avoid overflow check on hosts where size_t is 64 bits and int
66218         is 32 bits, as overflow is impossible there.
66219         Fix off-by-one typo that caused unnecessary reallocation.
66220
66221 2001-11-27  Jim Meyering  <meyering@lucent.com>
66222
66223         * lib/tempname.c: Merge with version from libc.
66224         * lib/regex.c: Likewise.
66225
66226         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
66227         systems for which STDC_HEADERS is 0, it was not included, resulting in
66228         a warning about an integer-to-pointer conversion problem with getenv.
66229         Reported by Volker Borchert.
66230
66231 2001-11-26  Jim Meyering  <meyering@lucent.com>
66232
66233         * lib/gtod.h: Remove file.
66234         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
66235         * lib/gettimeofday.c: Don't include gtod.h.
66236         (GTOD_init): Remove function.
66237         (rpl_gettimeofday): Do its job here instead, rather than aborting.
66238         Suggestion from Volker Borchert.
66239
66240 2001-11-23  Jim Meyering  <meyering@lucent.com>
66241
66242         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
66243         it.
66244         * lib/hash.c (struct hash_table): Define it here instead.
66245
66246 2001-11-22  Jim Meyering  <meyering@lucent.com>
66247
66248         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
66249
66250 2001-11-20  Jim Meyering  <meyering@lucent.com>
66251
66252         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
66253         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
66254
66255 2001-11-19  Jim Meyering  <meyering@lucent.com>
66256
66257         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
66258         directory.  Use "conftestXXXXXX" as the template.
66259         Suggestion from Paul Eggert.
66260
66261         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
66262         immediately, so the test doesn't mistakenly hit the max-open-files
66263         limit.
66264
66265 2001-11-18  Paul Eggert  <eggert@twinsun.com>
66266
66267         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
66268         (TEMPORARIES): New macro.
66269         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
66270         removes an artificial limitation (e.g. HP-UX 10.20, where
66271         TMP_MAX is 17576).
66272
66273 2001-11-18  Jim Meyering  <meyering@lucent.com>
66274
66275         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
66276
66277 2001-11-18  Jim Meyering  <meyering@lucent.com>
66278
66279         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
66280         on SunOS 4.
66281
66282         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
66283         files will be created before anything else.
66284
66285 2001-11-17  Paul Eggert  <eggert@twinsun.com>
66286
66287         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
66288         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
66289
66290 2001-11-17  Jim Meyering  <meyering@lucent.com>
66291
66292         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
66293         Prompted by a report from Bob Proulx.
66294
66295         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
66296         Instead, require UTILS_FUNC_MKSTEMP.
66297
66298 2001-11-17  Jim Meyering  <meyering@lucent.com>
66299
66300         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
66301         Now, that's done as part of AC_FUNC_STRTOD.
66302
66303 2001-11-17  Jim Meyering  <meyering@lucent.com>
66304
66305         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
66306         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
66307         rather than group writable.  Patch by Juan F. Codagnone.
66308
66309         * lib/readtokens.c: Remove explicit declarations of xmalloc and
66310         xrealloc, Instead, include "xalloc.h".
66311
66312         * lib/mountlist.c: Include unlocked-io.h after all system headers.
66313         Remove explicit declarations of xmalloc, xrealloc,
66314         and xstrdup.  Instead, include "xalloc.h".
66315
66316         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
66317         unlocked-io.h.
66318         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
66319         Likewise.
66320         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
66321
66322         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
66323         Reported by Padraig Brady.
66324
66325         * lib/mkstemp.c: #undef mkstemp.
66326         Include config.h.
66327         (rpl_mkstemp): Rename from mkstemp.
66328         Protoize.
66329
66330 2001-11-16  Jim Meyering  <meyering@lucent.com>
66331
66332         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
66333         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
66334         determine the amount of total physical memory, use pstat_getstatic.
66335         HPUX-11 doesn't define _SC_PHYS_PAGES.
66336         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
66337         If sysconf couldn't be used to determine the amount of available
66338         physical memory, use both pstat_getstatic and pstat_getdynamic.
66339         Based on a patch from Bob Proulx.
66340
66341 2001-11-10  Jim Meyering  <meyering@lucent.com>
66342
66343         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
66344         (jm_PREREQ): Use it.
66345
66346 2001-11-09  Jim Meyering  <meyering@lucent.com>
66347
66348         * m4/jm-macros.m4: Require autoconf-2.52f.
66349         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
66350         Use these AC_-prefixed names, not the AM_-prefixed ones.
66351
66352         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
66353
66354 2001-11-05  Jim Meyering  <meyering@lucent.com>
66355
66356         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
66357
66358 2001-11-04  Jim Meyering  <meyering@lucent.com>
66359
66360         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
66361         $DEFS.
66362
66363 2001-11-03  Jim Meyering  <meyering@lucent.com>
66364
66365         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
66366         of AC_DEFUN.
66367
66368         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
66369         know the name of the variable in the macro definition.
66370
66371 2001-11-03  Jim Meyering  <meyering@lucent.com>
66372
66373         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
66374         in argmatch_to_argument call.
66375
66376         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
66377         argument.
66378
66379         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
66380         e.g., a fault due to an attempt to free a NULL pointer.
66381
66382 2001-11-01  Jim Meyering  <meyering@lucent.com>
66383
66384         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
66385         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
66386
66387 2001-11-01  Jim Meyering  <meyering@lucent.com>
66388
66389         * lib/dirfd.c, lib/dirfd.h: New files.
66390         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
66391
66392         * lib/hash.c (hash_print) [TESTING]: Clean up.
66393
66394 2001-10-22  Paul Eggert  <eggert@twinsun.com>
66395
66396         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
66397         to avoid a warning if -Wall.
66398
66399 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
66400
66401         * README: New file
66402         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
66403         (per RMS's instructions, this is now the canonical source)
66404         * lgpl/, gpl/: New directories.
66405
66406 2001-10-21  Paul Eggert  <eggert@twinsun.com>
66407
66408         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
66409
66410 2001-10-21  Jim Meyering  <meyering@lucent.com>
66411
66412         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
66413         this code would end up calling gettext even in packages built
66414         with --disable-nls.
66415         * lib/getopt.c (_): Likewise.
66416         * lib/regex.c (_): Likewise.
66417
66418 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66419
66420         * m4/error.m4 (jm_PREREQ_ERROR):
66421         Do not invoke AC_CHECK_FUNCS with strerror_r, as
66422         AC_FUNC_STRERROR_R does that.
66423         Check for strerror declaration.
66424
66425         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
66426         are supposed to have them these days.
66427         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
66428         Merge changes from latest Autoconf CVS.
66429         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
66430         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
66431         POSIX decided to standardize on the int flavor of strerror_r.
66432
66433 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66434
66435         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
66436         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
66437         Use strerror_r that is only a macro, even if it is not a function.
66438         (strerror): Check for HAVE_DECL_STRERROR before declaring.
66439         (private_strerror): Use prototypes, not old-style function definition.
66440         (print_errno_message): New function.
66441         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
66442         char*-flavored one.
66443         (error_tail, error, error_at_line): Use it.
66444
66445 2001-10-11  Jim Meyering  <meyering@lucent.com>
66446
66447         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
66448         and quote_n (1, ... to avoid clobbering a buffer.
66449
66450 2001-10-05  Jim Meyering  <meyering@lucent.com>
66451
66452         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
66453         hash-pjw.h.
66454         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
66455         * lib/hash-pjw.h: New file.
66456
66457 2001-09-30  Jim Meyering  <meyering@lucent.com>
66458
66459         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
66460         `struct fsstat' has the `f_fstypename' member.
66461         Use that to define FS_TYPE, which is now used to make
66462         the getfsstat link test tighter.
66463
66464 2001-09-30  Jim Meyering  <meyering@lucent.com>
66465
66466         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
66467         Include <sys/ucred.h>, for Apple Darwin.
66468         Include sys/mount.h and sys/fs_types.h only if available.
66469         (FS_TYPE): Define.
66470         (read_filesystem_list): Use FS_TYPE.
66471
66472 2001-09-29  Paul Eggert  <eggert@twinsun.com>
66473
66474         * lib/exclude.c (excluded_filename): 0 -> false, since it's
66475         a boolean context.
66476
66477 2001-09-29  Jim Meyering  <meyering@lucent.com>
66478
66479         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66480         [one-argument getmntent function]): Include stdio.h before mntent.h.
66481         SunOS 4.1.x needs it for the declaration of `FILE'.
66482         Patch by Volker Borchert.
66483
66484         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66485         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
66486         sys/fs_types.h, and make the link-test for getfsstat guard #include
66487         directives with appropriate #if HAVE_*_H tests so that we can
66488         detect getfsstat on Apple Darwin1.3.7 systems.
66489         Reported by Nelson Beebe.
66490         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
66491
66492 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66493
66494         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66495         #defines strtoimax.  Also treat the other strto* functions
66496         like strtoimax.
66497
66498         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66499         Check for strtoul and strtoumax,
66500         as those declarations are made even in the signed case.
66501         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
66502         Likewise, for strtol and strtoimax.
66503
66504 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66505
66506         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66507         #defines strtoimax.  Also treat the other strto* functions
66508         like strtoimax.
66509
66510         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
66511         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
66512         (strtoimax, strtoumax): Do not declare if already defined as a macro.
66513
66514 2001-09-26  Jim Meyering  <meyering@lucent.com>
66515
66516         Most macros in unlocked-io.h had the wrong number of arguments.
66517         * lib/gen-uio: New script.
66518         (USE_UNLOCKED_IO): Define to 1 if not already defined.
66519         * lib/unlocked-io.hin: Remove file.
66520         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
66521         rather than trying to embed it here.
66522         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
66523         Reported by Padraig Brady.
66524
66525 2001-09-25  Volker Borchert  <bt@teknon.de>
66526
66527         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
66528         `result'.
66529
66530 2001-09-24  Jim Meyering  <meyering@lucent.com>
66531
66532         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
66533
66534 2001-09-23  Jim Meyering  <meyering@lucent.com>
66535
66536         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
66537         instead of the mere test for existence of mntent.h.  The latter
66538         would get a false-positive on AIX 3.4 systems.
66539         In the outer getmntent if-block, don't die if neither of the getmntent
66540         tests succeeds.  Instead, just fall through and continue with the
66541         remaining tests.
66542
66543 2001-09-23  Jim Meyering  <meyering@lucent.com>
66544
66545         * lib/mountlist.c: Remove useless parentheses in #if directives.
66546         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
66547         the deprecated MOUNTED symbol is no longer defined in mntent.h.
66548
66549 2001-09-22  Jim Meyering  <meyering@lucent.com>
66550
66551         * m4/gettext.m4: New file.  From gettext.
66552         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
66553         * m4/progtest.m4: Likewise
66554         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
66555         * m4/glibc21.m4: Likewise.
66556
66557         * m4/libintl.m4: Remove.  No longer used.
66558
66559 2001-09-22  Jim Meyering  <meyering@lucent.com>
66560
66561         * lib/localcharset.c: Update from latest gettext.
66562         * lib/config.charset: Likewise.
66563
66564 2001-09-20  Jim Meyering  <meyering@lucent.com>
66565
66566         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
66567         strtoimax.
66568         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
66569         strtoumax.
66570
66571 2001-09-20  Jim Meyering  <meyering@lucent.com>
66572
66573         * lib/xstrtol.c (strtoimax): Guard declaration with
66574         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
66575         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
66576         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
66577         (strtoumax): Likewise, for completeness (it wasn't necessary).
66578
66579 2001-09-17  Paul Eggert  <eggert@twinsun.com>
66580
66581         * lib/strtoimax.c (HAVE_LONG_LONG):
66582         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
66583         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
66584         to work around bug in IBM C compiler.
66585
66586 2001-09-17  Jim Meyering  <meyering@lucent.com>
66587
66588         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
66589         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66590         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66591         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66592         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66593         whenever the right hand side need not be expanded by the shell.
66594
66595 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66596
66597         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66598         library.  It's not correct, as some older glibcs are buggy.
66599         fnmatch wasn't fixed until glibc 2.2.
66600
66601         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66602         special shell magic here.
66603
66604 2001-09-16  Jim Meyering  <meyering@lucent.com>
66605
66606         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66607         * m4/jm-macros.m4: Require it.
66608
66609 2001-09-16  Jim Meyering  <meyering@lucent.com>
66610
66611         * lib/mkdir.c: New file.
66612
66613 2001-09-15  Jim Meyering  <meyering@lucent.com>
66614
66615         * m4/jm-macros.m4: Check for help2man.
66616
66617 2001-09-11  Jim Meyering  <meyering@lucent.com>
66618
66619         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66620         The body, by Paul Eggert, was moved here from configure.in.
66621         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66622
66623 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66624
66625         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66626         (jm_PREREQ): Use it.
66627
66628 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66629
66630         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66631         Use ssize_t, not int, to store result of readlink.
66632         Check for ssize_t overflow as well as size_t overflow,
66633         as POSIX says the result of readlink is implementation-defined
66634         when ssize_t overflows.
66635         Remove unnecessary cast to char*.
66636         Use free+malloc instead of realloc, as the storage doesn't need
66637         to be preserved and it's clearer and can be more efficient that way.
66638         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66639         * lib/xreadlink.h (xreadlink): Update prototype.
66640
66641 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66642
66643         * lib/xgetcwd.c: Revert some of the previous change; intead,
66644         fix the HAVE_GETCWD_NULL code to behave more like the
66645         !HAVE_GETCWD_NULL code used to.
66646
66647         Include "xalloc.h".
66648         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66649         invoke xalloc_die.
66650
66651 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66652
66653         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66654         sys/param.h, as pathmax.h includes them.
66655
66656 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66657
66658         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66659         (jm_PREREQ_XGETCWD): New macro.
66660
66661         * m4/getcwd.m4: New file.
66662
66663 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66664
66665         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66666         like the HAVE_GETCWD_NULL code.
66667         Include pathmax.h if not HAVE_GETCWD.
66668         Do not include xalloc.h.
66669         (INITIAL_BUFFER_SIZE): New symbol.
66670         Do not use xmalloc / xrealloc, since the caller is responsible for
66671         handling errors.  Preserve errno around `free' during failure.
66672         Do not overrun buffer when using getwd.
66673
66674 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66675
66676         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66677         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66678         getcwd (NULL, 0).
66679
66680 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66681
66682         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66683         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66684         spotted by Jim Meyering.
66685
66686 2001-09-03  Jim Meyering  <meyering@lucent.com>
66687
66688         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66689         failure.
66690
66691 2001-09-02  Jim Meyering  <meyering@lucent.com>
66692
66693         * lib/error.c: Update from GNU libc.
66694
66695 2001-09-01  Jim Meyering  <meyering@lucent.com>
66696
66697         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66698         Used by df.
66699
66700 2001-09-01  Jim Meyering  <meyering@lucent.com>
66701
66702         * lib/xreadlink.c: New file.
66703         * lib/xreadlink.h: New file.
66704         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66705         xreadlink.h.
66706
66707         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66708         doesn't conflict with sparc Solaris 7's definition in
66709         /usr/include/sys/int_types.h.
66710
66711         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66712         files.
66713         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66714         and strncasecmp as r-values.  Unixware didn't have declarations.
66715
66716 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66717
66718         * lib/xstrtol.h: Add copyright notice.
66719         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66720         LONGINT_INVALID_SUFFIX_CHAR.
66721
66722 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66723
66724         * lib/xstrtol.c (strtoimax): New decl.
66725
66726 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66727
66728         * lib/xgetcwd.c: Don't include pathmax.h.
66729         Include stdlib.h and unistd.h if available.
66730         Include xalloc.h.
66731         (xmalloc, xstrdup, free): Remove decls.
66732         (xgetcwd): Don't assume sizes fit in unsigned.
66733         Check for overflow when computing sizes.
66734         Simplify reallocation code.
66735
66736 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66737
66738         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66739         a directory's st_size can have an arbitrary value, so the old
66740         usage could waste an arbitrary amount of memory.  All uses
66741         changed.
66742         * lib/savedir.h: Update prototype.
66743
66744 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66745
66746         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66747
66748         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66749         old strtoimax.c.
66750
66751         Also, make the following further changes to make this file's
66752         configuration more similar to that of strtol.c:
66753         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66754         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66755         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66756         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66757         changed to signed values.
66758
66759         And make the following changes as well:
66760         Fix copyright notice, as 1999 was missing.
66761         (verify): New macro.
66762         (strtoimax): Check sizes at compile-time, not run-time.
66763         Prefer strtol to strtoll if both work.
66764         (main): Remove; it was not that useful and was a pain to maintain.
66765
66766         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66767
66768 2001-08-31  Jim Meyering  <meyering@lucent.com>
66769
66770         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66771         Use an initial, malloc'd, buffer of length 128 rather than
66772         a statically allocated one of length 1024.
66773
66774 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66775
66776         Simplify code, partly by assuming autoconf 2.52 semantics.
66777
66778         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66779
66780         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66781         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66782         All uses removed.
66783         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66784         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66785         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66786         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66787         jm_AC_HEADER_INTTYPES_H.
66788         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66789
66790         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66791
66792         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66793         Quote first arg of AC_DEFUN.
66794         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66795         since they are needed to parse the include file even if we need
66796         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66797         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66798         but with opposite signedness.
66799
66800 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66801
66802         Merge 'exclude' changes from tar 1.13.22.
66803         This fixes one or two unlikely storage allocation overflow bugs,
66804         but doesn't change user-visible behavior otherwise.
66805
66806 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66807
66808         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66809         (jm_PREREQ_EXCLUDE): New macro.
66810
66811 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66812
66813         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66814         tm to be declared.
66815
66816 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66817
66818         * lib/hash.c: Remove '2001' from copyright notice.
66819
66820 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66821
66822         * lib/full-write.h: New file.
66823         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66824         * lib/full-write.c: Correct credits, as cccp.c no longer
66825         exists and anyway it was so heavily changed from the old cccp
66826         code as to be unrecognizable.  Include full-write.h.
66827         (full_write) Return size_t, with short writes meaning failure.
66828         All callers changed.  This fixes a bug with large buffers
66829         on 64-bit hosts.
66830         * lib/utime.c: Include full-write.h.
66831
66832 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66833
66834         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
66835         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
66836         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
66837         Include if available.
66838         (<xalloc.h>): Include
66839         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
66840         (verify): New macro.  Use it to verify that EXCLUDE macros do not
66841         collide with FNM macros.
66842         (struct patopts): New struct.
66843         (struct exclude): Use it, as exclude patterns now come with options.
66844         (new_exclude): Support above changes.
66845         (new_exclude, add_exclude_file):
66846         Initial size must now be a power of two to simplify overflow checking.
66847         (free_exclude, fnmatch_no_wildcards): New function.
66848         (excluded_filename): No longer requires options arg, as the options
66849         are determined by add_exclude.  Now returns bool, not int.
66850         (excluded_filename, add_exclude):
66851         Add support for the fancy new exclusion options.
66852         (add_exclude, add_exclude_file): Now takes int options arg.
66853         Check for arithmetic overflow when computing sizes.
66854         (add_exclude_file): xrealloc might modify errno, so don't
66855         realloc until after errno might be used.
66856
66857         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
66858         New macros.
66859         (free_exclude): New decl.
66860         (add_exclude, add_exclude_file): Now takes int options arg.
66861         (excluded_filename): No longer requires options arg, as the options
66862         are determined by add_exclude.  Now returns bool, not int.
66863
66864 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66865
66866         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
66867
66868 2001-08-27  Jim Meyering  <meyering@lucent.com>
66869
66870         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
66871
66872         * lib/version-etc.c (N_): Remove definition.
66873         Revert most of last change.
66874         Instead, simply don't mark the `Copyright...' string for translation.
66875         Based on advice from Paul Eggert.
66876
66877         * lib/strtoxmax.c: Tweak comment.
66878
66879 2001-08-26  Jim Meyering  <meyering@lucent.com>
66880
66881         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
66882
66883         * m4/xstrtoimax.m4: New file.
66884         * m4/xstrtoumax.m4: Add comments explaining why we
66885         AC_REPLACE_FUNCS(strtol).
66886
66887 2001-08-26  Jim Meyering  <meyering@lucent.com>
66888
66889         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
66890         of copyright with `%s' so translators don't get an untranslated
66891         message in 2002.
66892         (COPYRIGHT_YEAR): Define.
66893         (version_etc): Use fprintf rather than fputs.
66894         Suggestion from Ulrich Drepper.
66895
66896         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
66897
66898         * lib/strtoll.c: New file, from GNU libc.
66899         * lib/xstrtoimax.c: New file.
66900
66901         * lib/xstrtol.h: Add xstrtoimax.
66902         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
66903         * lib/strtoimax.c: New file.  Likewise, but first define
66904         STRTOUXMAX_SIGNED.
66905
66906         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
66907         ...
66908         * lib/strtoxmax.c: ... then renamed to this.
66909
66910 2001-08-18  Paul Eggert  <eggert@twinsun.com>
66911
66912         * m4/inttypes.m4: Add AC_PREREQ(2.13).
66913         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
66914         (jm_AC_TYPE_INTMAX_T): New macro.
66915         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
66916
66917         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
66918
66919         * m4/longlong.m4: Renamed from ulonglong.m4.
66920         * m4/inttypes.m4: Renamed from inttypes_h.m4.
66921         * m4/uintmax_t.m4: Removed.
66922
66923 2001-08-13  Paul Eggert  <eggert@twinsun.com>
66924
66925         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
66926         Port to Solaris 8, where 'sed' requires a space after the 'r'
66927         command, and where sh dislikes "$/".  Clean up the spacing a bit.
66928         Redirect output to $tmp just once.
66929
66930 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
66931
66932         * lib/addext.c (<errno.h>): Include.
66933         (errno): Declare if not defined.
66934         (addext): Work correctly when pathconf returns -1 and leaves
66935         errno alone because there is no limit.  Also, work even if
66936         pathconf returns a value greater than SIZE_MAX.
66937
66938 2001-08-12  Jim Meyering  <meyering@lucent.com>
66939
66940         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
66941         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
66942         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
66943         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
66944         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
66945         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
66946         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
66947         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
66948         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
66949         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
66950         utime.m4, utimes.m4, xstrtoumax.m4:
66951         Quote the first argument in each use of AC_DEFUN.
66952
66953 2001-08-12  Jim Meyering  <meyering@lucent.com>
66954
66955         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
66956         Simply `return getcwd (NULL, 0);'.
66957         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
66958         Use 1300 as initial value for length, not PATH_MAX.
66959
66960         * lib/pathmax.h: Clean up cpp syntax.
66961
66962 2001-08-12  Jim Meyering  <meyering@lucent.com>
66963
66964         * lib/gettimeofday.c: New file.
66965         * lib/gtod.h: New file.
66966         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
66967
66968 2001-08-05  Jim Meyering  <meyering@lucent.com>
66969
66970         * m4/jm-macros.m4: Require autoconf-2.52.
66971
66972 2001-08-04  Jim Meyering  <meyering@lucent.com>
66973
66974         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
66975         stmt, to get in sync with glibc.
66976
66977 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66978
66979         The following changes are from gettext 0.10.39 as maintained by
66980         Bruno Haible.
66981
66982         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
66983         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
66984         with inverted sense.  All uses changed.
66985
66986         * lib/mbswidth.c: Don't include <limits.h>.
66987         Include <stdlib.h> and <string.h> unconditionally.
66988         (iswcntrl, mbsinit, ISCNTRL): New macros.
66989         (mbsnwidth): Use K&R style function declarations.
66990         Don't bother checking for MB_LEN_MAX == 1, since the compiler
66991         can optimize it when MB_CUR_MAX == 1.
66992         The width of control characters is zero, not 1.
66993
66994 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66995
66996         The following changes are from gettext 0.10.39 as maintained by
66997         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
66998
66999         * m4/codeset.m4: Upgrade to serial AM1.
67000         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
67001         all uses changed.  Quote first arg of AC_DEFUN.
67002         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
67003
67004         * m4/iconv.m4: Upgrade to serial AM2.
67005         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
67006         Add --with-libconv-prefix.
67007         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
67008         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
67009         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
67010         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
67011         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
67012
67013         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
67014         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
67015         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
67016         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
67017         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
67018         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
67019         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67020         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
67021         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67022
67023         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
67024         string.h any more.
67025
67026         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
67027         not the default value.
67028
67029         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
67030         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
67031         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
67032         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
67033         Also check for iswcntrl, used for wcwidth fallback.
67034         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
67035         to Autoconf 2.13.
67036
67037 2001-08-03  Jim Meyering  <meyering@lucent.com>
67038
67039         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
67040         as it was in the original.  Reported by Paul Eggert.
67041
67042 2001-07-16  Jim Meyering  <meyering@lucent.com>
67043
67044         * m4/gettimeofday.m4: New file.
67045         Prompted by a report from Bernhard Baehr.
67046
67047 2001-07-15  Jim Meyering  <meyering@lucent.com>
67048
67049         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
67050         stuff. Now it's in ../Makefile.cfg.
67051
67052 2001-07-15  Jim Meyering  <meyering@lucent.com>
67053
67054         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
67055         (BUILT_SOURCES): Add unlocked-io.h.
67056         (io_functions): Define.
67057         (unlocked-io.h): New rule.
67058         (DISTCLEANFILES): Add unlocked-io.h.
67059         (all-local): Depend on unlocked-io.h, to ensure it is created.
67060
67061         * lib/unlocked-io.hin: New file
67062
67063         * lib/regex.c: Update from glibc.
67064
67065 2001-07-05  Jim Meyering  <meyering@lucent.com>
67066
67067         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
67068         recommendation.
67069         (libfetish_a_SOURCES): Put all .h files here instead.
67070         Remove a thus-exposed (better checks in automake) duplicate and
67071         two unnecessary .h files.
67072
67073 2001-07-04  Jim Meyering  <meyering@lucent.com>
67074
67075         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
67076         that generates jm-glibc-io.m4 so that it doesn't trigger any make
67077         distcheck failure.
67078
67079 2001-07-02  Jim Meyering  <meyering@lucent.com>
67080
67081         The following changes were prompted by suggestions from Bruno Haible.
67082
67083         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
67084         is now generated.
67085         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
67086         definition of EXTRA_DIST.
67087         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
67088         ensure that the generated file is created/updated whenever the list
67089         of $(unlocked_functions) is changed.
67090         (jm-glibc-io.m4): New rule.
67091         (unlocked-io.h): New rule -- currently unused.
67092
67093 2001-06-24  Jim Meyering  <meyering@lucent.com>
67094
67095         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
67096         unmatched right bracket, rather than kludging it with an extra,
67097         falsely-matching quote in a comment.  Patch by Akim Demaille.
67098
67099 2001-06-11  Jim Meyering  <meyering@lucent.com>
67100
67101         * lib/regex.c: Update from GNU libc.
67102
67103 2001-05-27  Jim Meyering  <meyering@lucent.com>
67104
67105         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
67106         Check for ut_type in struct utmp.
67107
67108 2001-05-27  Jim Meyering  <meyering@lucent.com>
67109
67110         * lib/readutmp.h (UT_TYPE): Define.
67111
67112 2001-05-24  Jim Meyering  <meyering@lucent.com>
67113
67114         * lib/argmatch.c: Include "quote.h".
67115         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
67116         quote function.  Reported by Göran Uddeborg.
67117
67118 2001-05-22  Jim Meyering  <meyering@lucent.com>
67119
67120         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
67121         now that we use the package-supplied version unconditionally.
67122         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
67123
67124 2001-05-21  Jim Meyering  <meyering@lucent.com>
67125
67126         * m4/regex.m4: Change a couple backticks to single quotes to avoid
67127         shell syntax errors.
67128
67129 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67130
67131         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
67132
67133 2001-05-20  Paul Eggert  <eggert@twinsun.com>
67134
67135         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
67136         Don't bother to check library strftime, since
67137         we'll be using our own my_strftime function anyway.
67138         Define my_strftime instead of strftime.
67139
67140 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
67141
67142         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
67143         which is not yet declared.
67144
67145 2001-05-15  Jim Meyering  <meyering@lucent.com>
67146
67147         * m4/regex.m4: Use proper quoting so brackets appear in the test
67148         program.
67149         Reported by, and with help from, Bruno Haible.
67150
67151 2001-05-13  Jim Meyering  <meyering@lucent.com>
67152
67153         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
67154         undefined.
67155
67156 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67157
67158         dirname code cleanup.  base_name now behaves more compatibly
67159         with POSIX basename when given file names that have trailing
67160         slashes, and similarly for dir_name.  Add new primitives
67161         base_len and dir_len.  Put the directory-name-related decls
67162         into dirname.h.
67163
67164         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
67165         * lib/backupfile.c (base_name): Likewise.
67166         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
67167         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
67168         * lib/makepath.c (strip_trailing_slashes): Likewise.
67169         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
67170         ISSLASH): Likewise.
67171         * lib/rename.c (strip_trailing_slashes): Likewise.
67172         * lib/same.c (base_name): Likewise.
67173         * lib/stripslash.c (ISSLASH): Likewise.
67174
67175         * lib/addext.c: Include <dirname.h> after size_t is defined.
67176         * lib/backupfile.c: Likewise.
67177
67178         * lib/addext.c (addext): Use base_len to trim redundant
67179         trailing slashes instead of doing it ourselves.
67180         But do not trim the last slash if it is not redundant.
67181
67182         * lib/backupfile.c (find_backup_file_name,
67183         max_backup_version): Use base_len instead of rolling it ourselves.
67184         Handle the case of "" and (on DOS) "C:" correctly.
67185
67186         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
67187         needed. Include <string.h>, <dirname.h>.
67188         (base_name): Allow file names ending in slashes, other than names
67189         that are all slashes.  In this case, return the basename followed
67190         by the slashes.  This is more general, and can be used in places
67191         where the original base_name purposely had an assertion failure.
67192         (base_len): New function.
67193
67194         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
67195         Do not include <assert.h>; no longer needed.
67196         Include xalloc.h.
67197         (memrchr): Remove decl.
67198         (dir_name_r): Remove.
67199         (dir_len): Renamed from dirlen.  All callers changed.
67200         Rewrite in terms of base_name, for simplicity and consistency.
67201         (dir_name): Never return NULL.  All callers changed.
67202         Do not include <stdlib.h> in test program; no longer needed.
67203         return 0; is fine for test program.
67204
67205         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
67206         New macros.
67207         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
67208
67209         * lib/path-concat.c (path_concat): Use base_len to compute
67210         base length, not strlen; this means we cannot rely on memcpy
67211         to null-terminate.
67212
67213         * lib/same.c (STREQ): Remove.
67214         (same_name): Handle the case where the basename ends in trailing '/'.
67215
67216         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
67217         a slash was stripped.  Do not strip the last slash after a
67218         file system prefix.
67219
67220 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67221
67222         * lib/Makefile.am (libfetish_a_SOURCES):
67223         Add strftime.c, since we now compile it on all hosts.
67224
67225         * lib/strftime.c (my_strftime):
67226         Define to nstrftime if emacs, but only if my_strftime is not defined.
67227         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
67228         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
67229         Add one more extra argument: a nanoseconds value.
67230         All uses changed.
67231         (ns): New macro.
67232         (my_strftime function): Add %N format.
67233         (emacs_strftimeu): Renamed from emacs_strftime,
67234         with extra ut argument.
67235
67236 2001-05-09  Paul Eggert  <eggert@twinsun.com>
67237
67238         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
67239
67240 2001-04-21  Jim Meyering  <meyering@lucent.com>
67241
67242         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
67243         doesn't interfere.
67244
67245 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67246
67247         * m4/ftruncate.m4: Check for chsize.
67248         Link with ftruncate.o unconditionally if ftruncate is missing.
67249         This was required when cross-compiling to i586-mingw32msvc.
67250
67251 2001-04-08  Jim Meyering  <meyering@lucent.com>
67252
67253         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
67254         recomputed; that's necessary when the offset spans a DST transition.
67255         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
67256
67257 2001-04-02  Jim Meyering  <meyering@lucent.com>
67258
67259         * lib/regex.h, regex.c: Update from GNU libc.
67260
67261 2001-03-24  Jim Meyering  <meyering@lucent.com>
67262
67263         * m4/jm-macros.m4: Require autoconf-2.49d.
67264
67265 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
67266
67267         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
67268
67269 2001-03-19  Paul Eggert  <eggert@twinsun.com>
67270
67271         * lib/version-etc.c (version_etc_copyright): Update to 2001.
67272
67273 2001-03-17  Jim Meyering  <meyering@lucent.com>
67274
67275         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
67276         now that the version in autoconf is equivalent.
67277         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
67278
67279         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
67280         Suggestion from Akim Demaille.
67281
67282         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
67283         (jm_PREREQ_TEMPNAME): New function.
67284
67285 2001-03-16  Paul Eggert  <eggert@twinsun.com>
67286
67287         * lib/tempname.c (uint64_t): Define to uintmax_t if
67288         not defined, and if UINT64_MAX is not defined.
67289         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
67290         Reported by John David Anglin.
67291
67292 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
67293
67294         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
67295         resolve alias if codeset is empty.
67296         * lib/config.charset (BeOS): Use wildcard syntax.
67297
67298 2001-03-13  Jim Meyering  <meyering@lucent.com>
67299
67300         * lib/path-concat.c (path_concat)
67301         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
67302         concatenating e.g., `C:' and `foo'.
67303         From Bruno Haible.
67304
67305 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67306
67307         * lib/localcharset.c (locale_charset): Don't use
67308         setlocale(LC_CTYPE,NULL). Don't return NULL.
67309         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
67310
67311 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67312
67313         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
67314         support for DOS/DJGPP.
67315
67316 2001-03-01  Paul Eggert  <eggert@twinsun.com>
67317
67318         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
67319         lacks mkstemp.  Compile our own tempname.c if we compile our own
67320         mkstemp.c, as mkstemp relies on tempname.
67321
67322 2001-03-01  Jim Meyering  <meyering@lucent.com>
67323
67324         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
67325         AH_VERBATIM really does output its argument verbatim.
67326
67327 2001-02-28  Paul Eggert  <eggert@twinsun.com>
67328
67329         * lib/Makefile.am (libfetish_a_SOURCES):
67330         Add dup-safer.c, fopen-safer.c.
67331         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
67332
67333         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
67334         * lib/unistd-safer.h: New files.
67335
67336 2001-02-25  Paul Eggert  <eggert@twinsun.com>
67337
67338         The mkstemp replacement is taken from glibc 2.2.2, with some
67339         portability fixes for use outside glibc, as follows:
67340
67341         * lib/tempname.c (struct_stat64): New macro.
67342         (direxists, __gen_tempname): Use it.
67343         This avoids a portability problem with Solaris 8.
67344
67345         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
67346         (<stddef.h>, <stdint.h>, <string.h>):
67347         Include only if STDC_HEADERS || _LIBC.
67348         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
67349         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
67350         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
67351         (__set_errno): Define this macro if <errno.h> doesn't.
67352         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
67353         Define these macros if <stdio.h> doesn't.
67354         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
67355         Define these macros if <sys/stat.h>
67356         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
67357         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
67358         __xstat64): Define if not _LIBC.
67359         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
67360         (__gen_tempname): Invoke gettimeofday only if
67361         HAVE_GETTIMEOFDAY || _LIBC;
67362         otherwise, fall back on plain "time".
67363         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
67364
67365         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
67366
67367         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
67368
67369 2001-02-18  Paul Eggert  <eggert@twinsun.com>
67370
67371         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
67372
67373 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67374
67375         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
67376         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
67377         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
67378         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67379
67380 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67381
67382         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
67383         Remove workaround macros for hosts that have mbrtowc but not
67384         mbstate_t, as we now insist on proper declarations for both
67385         before using mbrtowc.
67386
67387 2001-02-17  Jim Meyering  <meyering@lucent.com>
67388
67389         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
67390         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
67391         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
67392         UnixWare 7.1.1.
67393
67394         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
67395         rather than AC_CACHE_VAL.
67396
67397 2001-02-17  Jim Meyering  <meyering@lucent.com>
67398
67399         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
67400         around included file name.
67401
67402         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
67403
67404         * lib/strftime.c: Update from GNU libc (the only changes were to
67405         comments).
67406
67407 2001-02-17  Jim Meyering  <meyering@lucent.com>
67408
67409         * lib/regex.c: Update from libc.
67410
67411 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
67412
67413         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
67414         clash.
67415
67416 2001-02-16  Paul Eggert  <eggert@twinsun.com>
67417
67418         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
67419         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
67420         Reported by Mark Hounschell via Paul Eggert.
67421
67422 2001-02-07  Jim Meyering  <meyering@lucent.com>
67423
67424         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
67425
67426 2001-02-05  Jim Meyering  <meyering@lucent.com>
67427
67428         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
67429         it includes the patch required for `large file' support with at least
67430         HP-UX's 10.20 /bin/cc.
67431
67432 2001-02-03  Jim Meyering  <meyering@lucent.com>
67433
67434         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
67435         AS_IF, now that it works once again (mysteriously).
67436         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67437
67438 2001-01-30  Jim Meyering  <meyering@lucent.com>
67439
67440         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
67441         * m4/chown.m4: Rename conftestchown to conftest.chown.
67442         * m4/rename.m4: s/conftestdir/conftest.d1/ and
67443         s/conftestdir2/conftest.d2/.
67444         * m4/utimes.m4: s/conftestdata/conftest.data/
67445         Inspired by Pavel Roskin's change in autoconf.
67446
67447 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
67448
67449         * lib/config.charset: Update for FreeBSD 4.2.
67450
67451 2001-01-27  Jim Meyering  <meyering@lucent.com>
67452
67453         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
67454         a use of AS_IF.
67455         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67456
67457 2001-01-26  Jim Meyering  <meyering@lucent.com>
67458
67459         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
67460         quotearg.c includes it.
67461
67462 2001-01-26  Jim Meyering  <meyering@lucent.com>
67463
67464         * lib/quotearg.c: Include stddef.h.
67465         * lib/quote.c: Include stddef.h.
67466         Reported by Axel Kittenberger.
67467
67468         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
67469         line in double quotes so that it evokes a better diagnostic.
67470         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
67471         Reported by Axel Kittenberger.
67472
67473 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
67474
67475         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
67476         as if it was a `charset'.
67477
67478 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67479
67480         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
67481         has const.
67482
67483 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67484
67485         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
67486         to avoid a warning.  Add back 'const' to inptr.
67487
67488 2001-01-20  Jim Meyering  <meyering@lucent.com>
67489
67490         Be sure that headers are checked before used in code compiled
67491         for the type checks.
67492         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
67493         In place of that, invoke jm_CHECK_ALL_TYPES.
67494         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
67495         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
67496         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
67497         The check for ssize_t was mistakenly run before the test for unistd.h.
67498
67499         The configure-time check for stdbool.h was missing.
67500         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
67501         (jm_PREREQ_HASH): New function.
67502
67503 2001-01-17  Jim Meyering  <meyering@lucent.com>
67504
67505         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
67506         for autoconf-2.49c.
67507         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
67508
67509 2001-01-16  Jim Meyering  <meyering@lucent.com>
67510
67511         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
67512         From Bruno Haible.
67513
67514 2001-01-14  Jim Meyering  <meyering@lucent.com>
67515
67516         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
67517         foo and bar.  Create conftestdir/ in the script, not in the C code.
67518         Remove directories in the script, not in the C code.
67519         Remove conftestdir{,2} before trying to create the directory.
67520         Make the entire configure script fail if the mkdir fails.
67521
67522 2001-01-14  Jim Meyering  <meyering@lucent.com>
67523
67524         * lib/rename.c: New file.  From Volker Borchert.
67525         Include stdlib.h, string.h or strings.h, and xalloc.h.
67526         Use strip_trailing_slashes rather than open-coding it.
67527
67528 2001-01-03  Paul Eggert  <eggert@twinsun.com>
67529
67530         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
67531
67532 2001-01-03  Jim Meyering  <meyering@lucent.com>
67533
67534         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
67535         of local `inptr' to avoid warning with some system declarations of
67536         iconv.
67537
67538 2001-01-02  Volker Borchert  <bt@teknon.de>
67539
67540         * m4/rename.m4: New file.
67541         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
67542
67543 2001-01-01  Jim Meyering  <meyering@lucent.com>
67544
67545         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
67546         even on systems with utmpx.h.  It's necessary for the declaration of
67547         utmp's ut_user member.  Reported by Andreas Jaeger.
67548
67549         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
67550         available. They are required for the declarations of getgrgid and
67551         getpwuid resp.
67552         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
67553         Reported by Andreas Jaeger.
67554
67555 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
67556
67557         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
67558         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
67559         so `make install' also works in VPATH builds.
67560
67561 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
67562
67563         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
67564         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
67565         can be used in subdirectories.
67566
67567 2000-12-29  Paul Eggert  <eggert@twinsun.com>
67568
67569         * lib/modechange.c: Do not assume that mode_t uses the
67570         traditional octal encoding.  E.g. "chmod 1 FOO" should set
67571         the other-execute bit of FOO even if S_IXOTH != 1.
67572
67573         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
67574         WOTH, XOTH, ALLM): New macros.
67575         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
67576          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
67577         Use them.
67578         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
67579         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
67580         (mode_compile):
67581         No need to use uintmax_t; unsigned long is long enough.
67582         Don't bother to get suffix since we don't use it.
67583
67584 2000-12-26  Jim Meyering  <meyering@lucent.com>
67585
67586         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
67587         better with autoheader.
67588
67589 2000-12-24  Jim Meyering  <meyering@lucent.com>
67590
67591         * lib/hash.c (is_prime): Return explicit boolean values.
67592         (hash_get_first): Return NULL to appease Irix5.6's 89.
67593         Reported by Nelson Beebe.
67594
67595 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67596
67597         * lib/localcharset.c (locale_charset): Add support for Win32.
67598
67599 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67600
67601         * lib/physmem.h, lib/physmem.c: New files.
67602
67603         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67604         (noinst_HEADERS): Add physmem.h.
67605
67606         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67607         't' for compatibility with Solaris 8 sort.
67608
67609 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67610
67611         * lib/config.charset: Add support for BeOS.
67612
67613 2000-12-17  Jim Meyering  <meyering@lucent.com>
67614
67615         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67616         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67617
67618 2000-12-16  Jim Meyering  <meyering@lucent.com>
67619
67620         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67621         N and M) would have treated it like `chown N:N FILE'.
67622
67623         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67624
67625 2000-12-16  Jim Meyering  <meyering@lucent.com>
67626
67627         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67628         SHELLS_FILE to a file name that's useful on djgpp systems.
67629         Include stdlib.h.
67630         (ADDITIONAL_DEFAULT_SHELLS): Define.
67631         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67632         Based mostly on a patch from Prashant TR.
67633
67634 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67635
67636         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67637         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67638         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67639
67640 2000-12-08  Andreas Schwab  <schwab@suse.de>
67641
67642         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67643         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67644
67645 2000-12-07  Jim Meyering  <meyering@lucent.com>
67646
67647         * lib/stripslash.c (ISSLASH): Define.
67648         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67649         `/'.
67650         From Prashant TR.
67651
67652         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67653         (dir_name_r): Declare this function as static.
67654         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67655         manifest itself on a name containing a mix of slashes and
67656         backslashes.
67657         Make this function work with names starting with a DOS-style
67658         drive letter and colon prefix.
67659         (dir_name): Append `.' if necessary.
67660         Based mostly on patches from Prashant TR and Eli Zaretskii.
67661
67662         * lib/dirname.h (dir_name_r): Remove prototype.
67663
67664 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67665
67666         * m4/off_t-format.m4: Remove this file.
67667         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67668
67669 2000-12-06  Jim Meyering  <meyering@lucent.com>
67670
67671         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67672         replacement strtoull, we may well need the replacement strtoul, too.
67673         Check for declarations of strtoul and strtoull.
67674         Check for strtol.  Mainly as a cue to cause automake to include
67675         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67676         Check for limits.h -- strtol.c needs it.
67677
67678 2000-12-05  Jim Meyering  <meyering@lucent.com>
67679
67680         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67681
67682 2000-12-04  Jim Meyering  <meyering@lucent.com>
67683
67684         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67685         Also include memory.h, stdlib.h, unistd.h if appropriate.
67686         Reported by Andreas Jaeger (conflicting declaration of malloc).
67687
67688 2000-12-02  Jim Meyering  <meyering@lucent.com>
67689
67690         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67691         * m4/jm-macros.m4 (jm_MACROS): require it.
67692
67693 2000-12-02  Jim Meyering  <meyering@lucent.com>
67694
67695         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67696
67697 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67698
67699         * lib/memrchr.c: Include <config.h> before any system include file.
67700
67701 2000-11-30  Jim Meyering  <meyering@lucent.com>
67702
67703         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67704
67705 2000-11-30  Jim Meyering  <meyering@lucent.com>
67706
67707         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67708
67709 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67710
67711         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67712
67713 2000-11-26  Jim Meyering  <meyering@lucent.com>
67714
67715         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67716
67717 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67718
67719         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67720         size of (size_t) -1; it's not portable.
67721
67722 2000-11-17  Jim Meyering  <meyering@lucent.com>
67723
67724         * lib/strstr.c: Update from GNU libc.
67725
67726 2000-11-17  Akim Demaille  <akim@epita.fr>
67727
67728         * lib/obstack.h: Formatting changes.
67729         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67730         prevent type checking.
67731         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67732         cast the value to (void *): assigning a `foo *' to a `void *'
67733         variable is valid.
67734         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67735
67736 2000-11-16  Jim Meyering  <meyering@lucent.com>
67737
67738         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67739
67740 2000-11-11  Jim Meyering  <meyering@lucent.com>
67741
67742         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67743
67744 2000-11-10  Jim Meyering  <meyering@lucent.com>
67745
67746         * lib/obstack.h: Update from GNU libc.
67747         * lib/obstack.c: Likewise.
67748
67749 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67750
67751         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67752
67753 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67754
67755         * lib/getusershell.c (setusershell): Use rewind rather than
67756         fseek/fseeko, to avoid configuration hassles with fseeko.
67757         Don't bother opening SHELLS_FILE if shellstream is NULL;
67758         it's not necessary.
67759
67760 2000-11-05  Jim Meyering  <meyering@lucent.com>
67761
67762         * lib/makepath.h (make_dir): Declare.
67763         * lib/makepath.c (make_dir): Remove `static' attribute.
67764         Tweak a comment.
67765
67766 2000-11-04  Jim Meyering  <meyering@lucent.com>
67767
67768         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67769
67770 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67771
67772         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67773         last one in a bucket, advance to the next bucket.
67774
67775 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67776
67777         * lib/fnmatch.c: Do not comment out all the code if we are using
67778         the GNU C library, because in some cases we are replacing buggy
67779         code in the GNU C library itself.
67780
67781 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67782
67783         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67784         (regex_compile): Catch bogus \(\1\).
67785
67786 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67787
67788         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67789         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67790         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67791
67792 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67793
67794         * lib/error.h, getline.h, modechange.h:
67795         Remove "2000" from Copyright line, as the file hasn't been
67796         changed this year other than in the copyright notice.
67797
67798         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67799         was changed this year.
67800
67801 2000-10-29  Jim Meyering  <meyering@lucent.com>
67802
67803         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67804         renaming.
67805         * m4/ls-mntd-fs.m4: Likewise
67806
67807 2000-10-29  Jim Meyering  <meyering@lucent.com>
67808
67809         * lib/xstat.in: Fix grammar in comment.
67810
67811 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67812
67813         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67814         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67815         doesn't define __restrict_arr.
67816
67817 2000-10-28  Jim Meyering  <meyering@lucent.com>
67818
67819         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67820         (jm_PREREQ_MEMCHR): New function.
67821
67822 2000-10-28  Jim Meyering  <meyering@lucent.com>
67823
67824         * lib/memchr.c: Update from libc.
67825         Adjust for portability:
67826         [HAVE_STDLIB_H]: Include stdlib.h.
67827         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67828         Undef __memchr, too.
67829         [!weak_alias]: Define __memchr to memchr.
67830
67831         * lib/regex.c: Update from libc.
67832         * lib/regex.h: Likewise.
67833         * lib/getopt1.c: Likewise.
67834         * lib/memcmp.c: Likewise.
67835
67836         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
67837         Avoid using fseek, when possible -- it's broken by design.
67838         Patch by Ulrich Drepper.
67839
67840 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
67841
67842         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
67843         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
67844         Giving in to popular pressure to shut up the compiler with casts.
67845
67846 2000-10-26  Jim Meyering  <meyering@lucent.com>
67847
67848         * lib/strftime.c: Update from libc.
67849
67850 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
67851
67852         * regex.c: More `unsigned char' -> `re_char' changes.
67853         Also change several `int' into `re_wchar_t'.
67854         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
67855         (PUSH_FAILURE_POINTER): Don't cast any more.
67856         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
67857         We want GCC to complain, since this piece of code makes
67858         re_match non-reentrant, which *should* be fixed.
67859         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
67860         (EXTEND_BUFFER): Use RETALLOC.
67861         (SET_LIST_BIT): Don't cast.
67862         (re_wchar_t): New type.
67863         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
67864         that those two functions will always properly return.
67865         (IMMEDIATE_QUIT_CHECK): Cast to void.
67866         (analyse_first): Use recursion rather than an explicit stack.
67867         (re_compile_fastmap): Can't fail anymore.
67868         (re_search_2): Don't check re_compile_fastmap for failure.
67869         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
67870         Now also sets the new value (passed in a new argument).
67871         (re_match_2_internal): Use it.
67872         Also, use a new var `reg' of type size_t when looping through regs
67873         rather than reuse the inappropriate `mcnt'.
67874
67875 2000-10-25  Jim Meyering  <meyering@lucent.com>
67876
67877         * lib/obstack.c: Update from libc.
67878
67879 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
67880
67881         * regex.c (regex_compile): Change the way of handling a range from
67882         a char less than 256 to a char not less than 256.
67883
67884 2000-10-24  Andrew Innes  <andrewi@gnu.org>
67885
67886         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
67887         NT-Emacs only.
67888         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
67889         so that re_search functions only quit when callers expect them to.
67890
67891 2000-10-23  Jim Meyering  <meyering@lucent.com>
67892
67893         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
67894         wrong.  That set_locale call must not have any side effects.
67895         From Paul Eggert.
67896
67897 2000-10-22  Jim Meyering  <meyering@lucent.com>
67898
67899         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
67900         [CYCLIC]: Remove now-unused definition.
67901
67902         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
67903         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
67904         Suggestion from Ulrich Drepper.
67905
67906 2000-10-21  Jim Meyering  <meyering@lucent.com>
67907
67908         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
67909         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
67910         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
67911
67912 2000-10-21  Jim Meyering  <meyering@lucent.com>
67913
67914         * lib/dirname.c (memrchr): Declare if necessary.
67915         (dir_name): Remove the restriction that there be no
67916         trailing slashes.  Now, this code skips past them, effectively
67917         ignoring them.
67918         [TEST_DIRNAME] (main): New unit tests.
67919
67920         * lib/memrchr.c: New file from GNU libc.
67921         Undef __memrchr, too.
67922         [!weak_alias]: Define __memrchr to memrchr.
67923         Guard weak_alias use with `#ifdef weak_alias'.
67924
67925 2000-10-21  Jim Meyering  <meyering@lucent.com>
67926
67927         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
67928         (dir_name): Use dir_name_r.
67929         * lib/dirname.h (dir_name_r): Declare it.
67930
67931 2000-10-17  Jim Meyering  <meyering@lucent.com>
67932
67933         * lib/quote.h (PARAMS): Define and use.
67934         Reported by Akim Demaille.
67935
67936         * lib/getopt.c: Update from libc.
67937
67938 2000-10-16  Jim Meyering  <meyering@lucent.com>
67939
67940         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
67941         setlocale.
67942         From Jan Fedak.
67943
67944 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
67945
67946         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
67947
67948 2000-09-25  Jim Meyering  <meyering@lucent.com>
67949
67950         * lib/md5.h (rol): Define (from GnuPG).
67951
67952         * lib/sha.c: Give credit (GnuPG) where due.
67953         (M): Use rol rather than open-coding it.
67954         Add a FIXME comment.
67955
67956 2000-09-21  Jim Meyering  <meyering@lucent.com>
67957
67958         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
67959         Reported by Michael Stone.
67960
67961 2000-09-20  Jim Meyering  <meyering@lucent.com>
67962
67963         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
67964         (noinst_HEADERS): Add sha.h.
67965         Based on code from Scott G. Miller and from GnuPG.
67966
67967 2000-09-18  Jim Meyering  <meyering@lucent.com>
67968
67969         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
67970         LIBS. Otherwise, everyone ends up linking with -lelf for some
67971         configurations.
67972         Reported by Mike Stone.
67973
67974 2000-09-15  Jim Meyering  <meyering@lucent.com>
67975
67976         * lib/regex.c: Update from libc.
67977
67978 2000-09-10  Jim Meyering  <meyering@lucent.com>
67979
67980         * lib/getopt.c (_getopt_internal): Update from glibc.
67981
67982 2000-09-09  Jim Meyering  <meyering@lucent.com>
67983
67984         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
67985         think it should be used as a general replacement for isascii.
67986         * lib/fnmatch.c: Likewise.
67987         * lib/mbswidth.c: Likewise
67988         * lib/regex.c: Likewise.
67989
67990         Don't use atoi.
67991         * lib/userspec.c: Include sys/param.h and limits.h.
67992         Include xstrtol.h.
67993         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67994         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
67995         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
67996         UID, GID.  Check range.
67997
67998 2000-09-06  Jim Meyering  <meyering@lucent.com>
67999
68000         * lib/getopt.c (_getopt_internal): Update from glibc.
68001
68002 2000-08-30  Jim Meyering  <meyering@lucent.com>
68003
68004         * lib/strftime.c: Merge in changes from GNU libc.
68005
68006 2000-08-26  Jim Meyering  <meyering@lucent.com>
68007
68008         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
68009         * m4/fpending.m4: New file.
68010
68011 2000-08-26  Jim Meyering  <meyering@lucent.com>
68012
68013         * lib/closeout.c: Include "__fpending.h".
68014         (close_stdout_status): Return right away if there's nothing to flush.
68015
68016         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
68017         * lib/__fpending.c: New file.
68018         * lib/__fpending.h: New file.
68019
68020 2000-08-20  Jim Meyering  <meyering@lucent.com>
68021
68022         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
68023         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
68024         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
68025
68026 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
68027
68028         Improve fileutils installation on systems where running
68029         programs (like install) can't be unlinked.
68030         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
68031         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
68032
68033 2000-08-07  Paul Eggert  <eggert@twinsun.com>
68034
68035         Standardize on "memory exhausted" instead of "Memory exhausted"
68036         or "virtual memory exhausted".
68037         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
68038         "virtual memory exhausted".
68039         * lib/same.c (same_name): Invoke xalloc_die instead of printing
68040         our own message.
68041         * lib/userspec.c (parse_user_spec): Likewise.
68042         * lib/bumpalloc.h: comment fix
68043         * lib/same.c, userspec.c: Include xalloc.h.
68044
68045         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
68046         not char *const and pointing to a constant array.
68047         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
68048         (xrealloc): Comment fix.
68049
68050         * lib/userspec.c (parse_user_spec):
68051         Don't translate a message until just before returning,
68052         to avoid unnecessary translation.
68053
68054 2000-08-07  Jim Meyering  <meyering@lucent.com>
68055
68056         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
68057         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
68058         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
68059         getgroups.c, gethostname.c, getopt.h, group-member.c,
68060         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
68061         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
68062         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
68063         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
68064         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
68065         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
68066         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
68067         yesno.c: Back out Copyright date changes for each file with no change
68068         this year.  This eases coordination with other programs using the same
68069         source code modules.  From Paul Eggert.
68070
68071 2000-08-06  Paul Eggert  <eggert@twinsun.com>
68072
68073         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
68074         not char, for compatibility with glibc 2.1.3 strftime.c.
68075
68076 2000-08-03  Greg McGary  <greg@mcgary.org>
68077
68078         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
68079         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
68080         (EXTEND_BUFFER): Use them.
68081
68082 2000-08-01  Jim Meyering  <meyering@lucent.com>
68083
68084         * lib/dirname.c (ISSLASH): Define.
68085         (BACKSLASH_IS_PATH_SEPARATOR): Define.
68086         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
68087         both `\' and `/' may be use as path separators.
68088         Based on a patch from Prashant TR.
68089
68090 2000-07-31  Paul Eggert  <eggert@twinsun.com>
68091
68092         * lib/quotearg.c (quotearg_n_options): Don't make the initial
68093         slot vector a constant, since it might get modified.
68094
68095 2000-07-31  Jim Meyering  <meyering@lucent.com>
68096
68097         * lib/xmalloc.c: Use `virtual memory exhausted', not
68098         `Memory exhausted'.
68099         * lib/obstack.c (print_and_abort): Likewise.
68100
68101 2000-07-30  Paul Eggert  <eggert@twinsun.com>
68102
68103         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
68104         buffer, so that the caller can always quote one small
68105         component of a "memory exhausted" message in slot 0.
68106         From a suggestion by Jim Meyering.
68107
68108 2000-07-30  Jim Meyering  <meyering@lucent.com>
68109
68110         * lib/makepath.c (make_path): Quote the other instance, too.
68111
68112         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
68113         (STATIC_BUF_SIZE): Define.
68114         (quotearg_n_options): Use only statically allocated storage when
68115         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
68116         than STATIC_BUF_SIZE.
68117
68118 2000-07-29  Jim Meyering  <meyering@lucent.com>
68119
68120         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
68121         * lib/dirname.c (dir_name): Likewise.
68122
68123         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
68124         `/'.
68125
68126         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
68127         (dir_name): Assert that there are no trailing slashes.
68128
68129 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
68130
68131         * lib/mbswidth.h (mbswidth): Add a flags argument.
68132         (mbswidth): New declaration.
68133         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
68134         * lib/mbswidth.c (mbswidth): Add a flags argument.
68135         (mbsnwidth): New function.
68136
68137 2000-07-24  Jim Meyering  <meyering@lucent.com>
68138
68139         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
68140
68141 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68142
68143         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
68144
68145 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68146
68147         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
68148         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
68149         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
68150         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
68151         invoke multibyte primitives.
68152
68153 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68154
68155         * lib/quotearg.c:
68156         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
68157         so that mbstate_t is always defined.
68158
68159         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
68160         be 1 in at least one GCC installation, and this configuration
68161         error is likely to be common.  Ignoring MB_LEN_MAX hurts
68162         performance on hosts that have mbrtowc but have only unibyte
68163         locales, but I assume these hosts are rare.
68164
68165 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68166
68167         * lib/mbswidth.c (_XOPEN_SOURCE):
68168         Don't define; this causes problems on Solaris 7.
68169         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
68170
68171 2000-07-23  Jim Meyering  <meyering@lucent.com>
68172
68173         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
68174         too: getgrgid, getpwuid, getuid.
68175
68176 2000-07-23  Jim Meyering  <meyering@lucent.com>
68177
68178         * lib/basename.c (base_name): Add an assertion.
68179
68180 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
68181
68182         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
68183         shadow its mbsinit function.
68184
68185 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68186
68187         * lib/mbswidth.h: New file.
68188         * lib/mbswidth.c: New file.
68189         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
68190         (noinst_HEADERS): Add mbswidth.h.
68191
68192 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68193
68194         * lib/config.charset: Add support for FreeBSD. Improve support for
68195         HP-UX and IRIX 6.
68196
68197 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
68198
68199         * m4/mbswidth.m4: New file.
68200         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
68201
68202 2000-07-15  Jim Meyering  <meyering@lucent.com>
68203
68204         * lib/makepath.c: Include quote.h.
68205         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
68206         corresponding argument in a `quote (...)' call.
68207         Give better diagnostics.
68208
68209         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
68210         (noinst_HEADERS): Add quote.h.
68211
68212         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
68213         from tar's src/misc.c.
68214         * lib/quote.h: New file.  Prototypes for same.
68215
68216 2000-07-14  Paul Eggert  <eggert@twinsun.com>
68217
68218         From a suggestion by Bruno Haible.
68219         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
68220         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
68221         to decide whether to define the BeOS workaround macro;
68222         this adjusts to the change to AC_MBSTATE_T.
68223
68224 2000-07-14  Jim Meyering  <meyering@lucent.com>
68225
68226         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
68227         jm_AC_TYPE_UINTMAX_T.
68228
68229 2000-07-13  Paul Eggert  <eggert@twinsun.com>
68230
68231         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
68232
68233         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
68234         quotearg_buffer_restyled): Add support for
68235         clocale_quoting_style.  Undo previous change to
68236         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
68237         and "{RIGHT QUOTATION MARK}" msgids.
68238
68239 2000-07-10  Paul Eggert  <eggert@twinsun.com>
68240
68241         From a suggestion by Bruno Haible.
68242         * m4/mbstate_t.m4 (AC_MBSTATE_T):
68243         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
68244         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
68245         and mbstate_t, to a single-part test that simply defines mbstate_t.
68246         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
68247         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
68248
68249 2000-07-10  Jim Meyering  <meyering@lucent.com>
68250
68251         * m4/strerror_r.m4: Mirror the correction made in autoconf.
68252
68253         * m4/gnu-source.m4: Output to confdefs.h directly.
68254         Suggestion from Akim Demaille.
68255
68256 2000-07-09  Paul Eggert  <eggert@twinsun.com>
68257
68258         The old behavior of quoting `like this' doesn't look good with
68259         newer, ISO-style fonts.  See:
68260         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
68261
68262         Instead, quote "like this" by default.  Let the translator
68263         tailor the locale-specific quoting behavior by providing
68264         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
68265
68266         * lib/quotearg.c (N_): New macro.
68267         (gettext_default): New function.
68268         (quotearg_buffer_restyled): Use
68269         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
68270         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
68271
68272 2000-07-09  Jim Meyering  <meyering@lucent.com>
68273
68274         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
68275         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
68276
68277         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
68278         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
68279
68280 2000-07-09  Jim Meyering  <meyering@lucent.com>
68281
68282         * lib/Most files: Update copyright dates to include 2000.
68283
68284 2000-07-08  Jim Meyering  <meyering@lucent.com>
68285
68286         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
68287         if not defined.
68288         (xgethostname): Remove now-unnecessary #ifdef.
68289         Move declaration of `err' into loop where it's used.
68290
68291 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68292         and Bruno Haible  <haible@clisp.cons.org>
68293
68294         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
68295         only if the test for an object-type mbstate_t fails.  This
68296         prevents us from mistakenly reporting that mbstate_t is a
68297         system object type after we "#define mbstate_t int" to work
68298         around its lack.
68299
68300 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68301         and Bruno Haible  <haible@clisp.cons.org>
68302
68303         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
68304
68305 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68306
68307         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
68308         to strerror_r.
68309         Include <ctype.h> for use of isalpha.
68310
68311 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68312
68313         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
68314         by allocating a larger buffer. Test the gethostname return value for
68315         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
68316         returns an error and ENAMETOOLONG isn't defined.
68317
68318 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68319
68320         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
68321         dimension.
68322
68323 2000-07-04  Jim Meyering  <meyering@lucent.com>
68324
68325         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
68326         of the deprecated AC_CHECKING.
68327
68328 2000-07-04  Jim Meyering  <meyering@lucent.com>
68329
68330         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
68331         Reported by Bruno Haible.
68332
68333 2000-07-04  Jim Meyering  <meyering@lucent.com>
68334
68335         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
68336         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
68337         lacks mbrtowc.
68338
68339 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68340
68341         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
68342         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
68343
68344 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68345         and Bruno Haible  <haible@clisp.cons.org>
68346
68347         * lib/quotearg.c (mbrtowc):
68348         Assign to *pwc, and return 1 only if result is nonzero.
68349         (iswprint): Use ISPRINT when substituting our own mbrtowc.
68350
68351 2000-07-03  Jim Meyering  <meyering@lucent.com>
68352
68353         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
68354
68355 2000-07-03  Jim Meyering  <meyering@lucent.com>
68356
68357         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
68358         This is necessary to get a definition of e.g., UTMP_FILE on
68359         HP-UX 10.20.
68360         From Bob Proulx.
68361
68362 2000-07-02  Jim Meyering  <meyering@lucent.com>
68363
68364         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
68365
68366         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
68367         AC_LIBOBJ(function_name).
68368         * m4/chown.m4: Likewise.
68369         * m4/fnmatch.m4: Likewise.
68370         * m4/ftruncate.m4: Likewise.
68371         * m4/getgroups.m4: Likewise.
68372         * m4/getline.m4: Likewise.
68373         * m4/group-member.m4: Likewise.
68374         * m4/jm-macros.m4: Likewise.
68375         * m4/lstat.m4: Likewise.
68376         * m4/malloc.m4: Likewise.
68377         * m4/memcmp.m4: Likewise.
68378         * m4/nanosleep.m4: Likewise.
68379         * m4/putenv.m4: Likewise.
68380         * m4/realloc.m4: Likewise.
68381         * m4/regex.m4: Likewise.
68382         * m4/stat.m4: Likewise.
68383         * m4/strftime.m4: Likewise.
68384
68385 2000-07-02  Jim Meyering  <meyering@lucent.com>
68386
68387         * lib/quotearg.c (mbstate_t): Don't define here.
68388
68389 2000-07-02  Jim Meyering  <meyering@lucent.com>
68390
68391         * lib/nanosleep.c (SIGCONT): Define if not already defined.
68392
68393 2000-07-01  Jim Meyering  <meyering@lucent.com>
68394
68395         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
68396
68397 2000-07-01  Jim Meyering  <meyering@lucent.com>
68398
68399         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
68400         problem.
68401
68402 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68403
68404         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
68405         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
68406
68407 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68408
68409         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
68410         per change in ../m4/ls-mntd-fs.m4.
68411         (read_filesystem_list): Ignore symbolic links.
68412
68413 2000-06-29  Jim Meyering  <meyering@lucent.com>
68414
68415         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
68416         for declaration of strcmp.
68417
68418         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
68419
68420         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
68421         Avoid warning by casting result to `char *' to remove `const'.
68422
68423 2000-06-28  Jim Meyering  <meyering@lucent.com>
68424
68425         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
68426         included by quotearg.c, for which we perform this test.  From
68427         Bruno Haible.
68428
68429 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68430
68431         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
68432         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
68433         <utmpx.h> exists, put readutmp.o into LIBOBJS.
68434
68435 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68436
68437         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
68438
68439 2000-06-26  Paul Eggert  <eggert@twinsun.com>
68440
68441         savedir now sets errno on failure and invokes xmalloc to get memory.
68442         Fix a couple of other minor bugs while we're at it.
68443
68444         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
68445         (NAMLEN): Remove macro.
68446         (malloc, realloc): Remove decls.
68447         (stpcpy): Likewise.
68448         ("xalloc.h"): Include.
68449         (NAME_SIZE_DEFAULT): New macro.
68450         (savedir): Use xmalloc / xrealloc to allocate memory.
68451         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
68452         Skip "" directory entries.
68453         Use strlen to calculate directory entry length, since the old method
68454         is rarely used these days and isn't worth supporting.
68455         Don't use a pointer after freeing it.
68456         Check for integer overflow when calculating allocation size.
68457         Use memcpy to copy entries, instead of stpcpy.
68458         Set errno properly when returning NULL.
68459         Check for readdir error.
68460
68461 2000-06-26  Jim Meyering  <meyering@lucent.com>
68462
68463         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
68464
68465 2000-06-25  Jim Meyering  <meyering@lucent.com>
68466
68467         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
68468         Linux header bug when _XOPEN_SOURCE is defined to 500.
68469
68470 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68471
68472         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
68473         deficiency.
68474
68475 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68476
68477         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
68478         Include xalloc.h.
68479         Don't include <stdlib.h>.  Don't declare malloc, realloc.
68480
68481 2000-06-24  Jim Meyering  <meyering@lucent.com>
68482
68483         * m4/strerror_r.m4: Revive this file -- to try out an experimental
68484         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
68485         for which strerror does return char*, but which lacks a conveniently
68486         accessible declaration of the function.  If the compile-test says
68487         strerror_r doesn't work, then resort to a `run'-test that works on
68488         BeOS and segfaults on DEC Unix.
68489
68490 2000-06-24  Jim Meyering  <meyering@lucent.com>
68491
68492         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
68493
68494 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68495
68496         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
68497         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
68498
68499 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68500
68501         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
68502         (mbrtowc, mbstate_t): Define substitutes if
68503         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
68504         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
68505         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
68506
68507 2000-06-23  Jim Meyering  <meyering@lucent.com>
68508
68509         * m4/afs.m4: Add missing AC_MSG_RESULT.
68510         Reported by Bruno Haible.
68511
68512         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
68513         Suggestion from Bruno Haible.
68514
68515 2000-06-23  Jim Meyering  <meyering@lucent.com>
68516
68517         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
68518
68519 2000-06-21  Jim Meyering  <meyering@lucent.com>
68520
68521         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
68522
68523 2000-06-21  Jim Meyering  <meyering@lucent.com>
68524
68525         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
68526         (noinst_HEADERS): Add getstr.h.
68527
68528         * lib/getline.c (getstr): Move into a separate file.
68529         * lib/getstr.c (getstr): New file, extracted from getline.c, with
68530         the following changes: new parameter, delim2; both delim[12]
68531         parameters have type `int', not `char'.  The latter would lose
68532         with 8-bit delimiters.
68533         * lib/getstr.h: New file.
68534
68535 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68536
68537         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
68538         than 1024, return a memory chunk of least possible size, instead
68539         of size PATH_MAX + 2. In the loop, increment the size proportionally.
68540         Use free/xmalloc instead of xrealloc to avoid copying for very long
68541         paths.
68542
68543 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68544
68545         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
68546         the empty string.
68547
68548 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68549
68550         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
68551         address, not strdup.  Include <stdlib.h> and don't declare free().
68552
68553 2000-06-19  Jim Meyering  <meyering@lucent.com>
68554
68555         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
68556
68557 2000-06-18  Jim Meyering  <meyering@lucent.com>
68558
68559         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
68560
68561         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
68562         `checking whether...' message to be consistent with that of the
68563         lstat test.
68564
68565 2000-06-18  Jim Meyering  <meyering@lucent.com>
68566
68567         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
68568         Besides, these days every porting target provides a mkdir function.
68569
68570         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
68571         needed. (this snippet comes from src/system.h).
68572
68573 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
68574
68575         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
68576
68577 2000-06-15  Paul Eggert  <eggert@twinsun.com>
68578
68579         * lib/human.c (adjust_value): New function.
68580         (human_readable_inexact): Apply rounding style even when
68581         printing approximate values.
68582
68583 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68584
68585         * lib/human.c (human_readable_inexact): Allow an input block
68586         size that is not a multiple of the output block size, and vice versa.
68587         Reported by Piergiorgio Sartor.
68588
68589 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68590
68591         * lib/getdate.y (get_date): Apply relative times after time
68592         zone indicator, not before.  Reported by Todd A. Jacobs.
68593
68594 2000-06-13  Jim Meyering  <meyering@lucent.com>
68595
68596         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68597
68598         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68599
68600 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68601
68602         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68603
68604 2000-06-12  Jim Meyering  <meyering@lucent.com>
68605
68606         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68607         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68608         optional argument.
68609         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68610         the optional argument, `lib'.
68611
68612 2000-06-08  Jim Meyering  <meyering@lucent.com>
68613
68614         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68615
68616 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68617
68618         Rewrite largefile configuration so that we don't need to run
68619         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68620         AC_CANONICAL_HOST in configure.in -- jmm]
68621
68622         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68623         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68624         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68625         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68626         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68627         All uses changed.
68628         Instead of inspecting the output of getconf, try to compile the
68629         test program without and with the macro definition.
68630         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68631         for getconf.  Instead, check for the needed flags by compiling
68632         test programs.
68633
68634 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68635
68636         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68637
68638 2000-06-04  Jim Meyering  <meyering@lucent.com>
68639
68640         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68641         SunOS 4.1.4 for which gid_t is an unsigned type.
68642
68643 2000-06-03  Jim Meyering  <meyering@lucent.com>
68644
68645         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68646         now that autoconf requires that.
68647
68648         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68649         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68650         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68651
68652 2000-06-03  Jim Meyering  <meyering@lucent.com>
68653
68654         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68655
68656 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68657
68658         * m4/glibc21.m4: New file.
68659         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68660
68661 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68662
68663         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68664         newer, don't install charset.alias.
68665         * lib/config.charset: Change the Linux/glibc rules so they become empty
68666         on glibc-2.1 or newer.
68667
68668 2000-06-02  Jim Meyering  <meyering@lucent.com>
68669
68670         * lib/mountlist.c: Back out last change.  Instead, do this...
68671         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68672         me_dummy member using the same `ignore'-testing code.
68673         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68674         fs_type strings.
68675         From Mark D. Roth.
68676
68677 2000-05-29  Jim Meyering  <meyering@lucent.com>
68678
68679         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68680         mounts with the `ignore' attribute.  Based on a patch from
68681         Mark D. Roth.
68682
68683 2000-05-28  Jim Meyering  <meyering@lucent.com>
68684
68685         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68686         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68687         * m4/stat.m4: Likewise.
68688         * m4/lstat.m4: Likewise.
68689         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68690
68691         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68692         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68693
68694 2000-05-26  Jim Meyering  <meyering@lucent.com>
68695
68696         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68697
68698 2000-05-24  Jim Meyering  <meyering@lucent.com>
68699
68700         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68701         autoconf requires that.
68702         * m4/lib-check.m4: Likewise.
68703         * m4/jm-macros.m4: Likewise.
68704         * m4/strftime.m4: Likewise.
68705
68706         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68707         AC_CHECK_DECLS, now that autoconf requires that.
68708
68709 2000-05-22  Jim Meyering  <meyering@lucent.com>
68710
68711         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68712         * m4/lstat.m4: Likewise.
68713
68714 2000-05-22  Jim Meyering  <meyering@lucent.com>
68715
68716         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68717
68718 2000-05-20  Jim Meyering  <meyering@lucent.com>
68719
68720         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68721         (jm_PREREQ): Use it.
68722
68723 2000-05-18  Jim Meyering  <meyering@lucent.com>
68724
68725         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68726         back, too, since it may have been modified by allocate_entry.
68727         (hash_delete): Rewrite to use neither the assignment operator
68728         nor the comma operator in an if-expression.
68729
68730 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68731
68732         * lib/closeout.c:
68733         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68734         Remove; no longer needed.
68735         "quotearg.h": Add include.
68736         (file_name): Do not bother to explicitly initialize to NULL; it's less
68737         efficient on some hosts.
68738         (close_stdout_status): Remove test as to whether stdout was already
68739         closed; it breaks for the case "echo x | sort >&-".
68740         Quote file name colons.
68741         Do not assume that _("write error") lacks format strings.
68742
68743 2000-05-15  Jim Meyering  <meyering@lucent.com>
68744
68745         * lib/version-etc.c (version_etc_copyright): Update the copyright
68746         string used in all --version output.
68747
68748 2000-05-14  Jim Meyering  <meyering@lucent.com>
68749
68750         * lib/closeout.c (close_stdout_set_file_name): New function.
68751         (close_stdout_status): Use new file-scoped global.
68752         Return right away if fstat says the stdout file descriptor is invalid.
68753         * lib/closeout.h (close_stdout_set_file_name): Declare.
68754
68755 2000-05-10  Jim Meyering  <meyering@lucent.com>
68756
68757         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68758         (close_stdout_set_status): New function.
68759         * lib/closeout.h (close_stdout_set_status): Declare.
68760
68761 2000-05-09  Jim Meyering  <meyering@lucent.com>
68762
68763         * m4/gettext.m4: Rename this...
68764         * m4/libintl.m4: ...to this.
68765
68766 2000-05-08  Jim Meyering  <meyering@lucent.com>
68767
68768         * lib/long-options.c: Don't include closeout.h.
68769         (parse_long_options): Don't call close_stdout for --version.
68770
68771 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68772
68773         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68774         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68775         2.1.3 bug.  This avoids a clash when files like regex.c define
68776         _GNU_SOURCE.
68777
68778 2000-05-06  Jim Meyering  <meyering@lucent.com>
68779
68780         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68781         (AC_REPLACE_FUNCS): Add strnlen.
68782
68783         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68784         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68785
68786         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68787         AC_SEARCH_LIBS call for nanosleep.
68788         (LIB_NANOSLEEP): Set and AC_SUBST.
68789
68790 2000-05-06  Jim Meyering  <meyering@lucent.com>
68791
68792         * lib/strnlen.c: Undefine __strnlen and strnlen.
68793         [!weak_alias]: Define __strnlen to strnlen.
68794
68795         * lib/atexit.c: New file, from libiberty.
68796
68797 2000-05-06  Jim Meyering  <meyering@lucent.com>
68798
68799         * lib/closeout.c (close_stdout_status): Also check for errors on the
68800         stderr stream.
68801
68802 2000-05-05  Jim Meyering  <meyering@lucent.com>
68803
68804         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68805         AC_SEARCH_LIBS call for clock_gettime.
68806         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68807
68808         * m4/search-libs.m4: Update from autoconf.
68809
68810         su doesn't work on Solaris 2.6.
68811         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68812         <shadow.h>.  Reported by Dragos Harabor.
68813
68814 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68815
68816         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68817         memcpy instead of xmalloc, xrealloc, path_concat.
68818         (locale_charset): Treat empty environment variables as absent.
68819         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68820
68821 2000-05-04  Jim Meyering  <meyering@lucent.com>
68822
68823         * lib/getopt.c: Update from glibc.
68824         * lib/obstack.c: Likewise.
68825         * lib/obstack.h: Likewise.
68826         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68827         file
68828
68829         * lib/regex.h: Likewise.
68830         * lib/strndup.c: Likewise.
68831         * lib/strnlen.c: New file, from glibc.
68832
68833 2000-05-03  Jim Meyering  <meyering@lucent.com>
68834
68835         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
68836
68837 2000-05-02  Paul Eggert  <eggert@twinsun.com>
68838
68839         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
68840         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
68841         compile-time test, rather than inspecting host and OS, to
68842         decide whether to define _LARGEFILE_SOURCE.
68843
68844 2000-05-01  Jim Meyering  <meyering@lucent.com>
68845
68846         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
68847
68848         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
68849         Based on a patch from Bruno Haible.
68850
68851 2000-05-01  Jim Meyering  <meyering@lucent.com>
68852
68853         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
68854
68855 2000-04-29  Jim Meyering  <meyering@lucent.com>
68856
68857         * lib/path-concat.c: Declare strdup only if it's not defined.
68858         * lib/canon-host.c: Likewise.
68859
68860 2000-04-28  Jim Meyering  <meyering@lucent.com>
68861
68862         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
68863         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
68864         is included first, then limits.h is included by locale.h by libintl.h.
68865         From John David Anglin.
68866
68867 2000-04-25  Jim Meyering  <meyering@lucent.com>
68868
68869         * lib/makepath.c (S_IRWXUGO): Define.
68870         (make_path): Always perform explicit chmod if MODE specifies any
68871         of the `special' permission bits.  Prompted by a bug report against
68872         install from Mate Wierdl and Joost van Baal.
68873
68874 2000-04-18  Jim Meyering  <meyering@lucent.com>
68875
68876         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
68877         (jm_PREREQ): Use it.
68878
68879 2000-04-18  Jim Meyering  <meyering@lucent.com>
68880
68881         * lib/README: New file.
68882
68883         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
68884         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
68885
68886 2000-04-17  Jim Meyering  <meyering@lucent.com>
68887
68888         Get it right :-)
68889         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
68890         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
68891         Suggestion from Akim Demaille.
68892
68893 2000-04-17  Jim Meyering  <meyering@lucent.com>
68894
68895         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
68896         the definition of it to rpl_strftime also defined-away the system's
68897         declaration.
68898
68899 2000-04-15  Jim Meyering  <meyering@lucent.com>
68900
68901         Use `C' to denote so-called `contiguous' files, the same way
68902         that tar does.
68903         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
68904         (ftypelet): Use S_ISCTG.
68905         From Michael Deutschmann.
68906
68907 2000-04-14  Jim Meyering  <meyering@lucent.com>
68908
68909         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
68910         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
68911         clobbered.
68912
68913 2000-04-14  Jim Meyering  <meyering@lucent.com>
68914
68915         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
68916
68917 2000-04-13  Jim Meyering  <meyering@lucent.com>
68918
68919         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
68920         AH_VERBATIM to insert required #ifndef into config.h.in.
68921         Suggestion from Akim Demaille.
68922
68923 2000-04-12  Jim Meyering  <meyering@lucent.com>
68924
68925         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
68926         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
68927         Christian Krackowizer.
68928
68929         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
68930         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
68931         (AC_SYS_LARGEFILE): Require.
68932         (AM_C_PROTOTYPES): Require.
68933
68934 2000-04-08  Jim Meyering  <meyering@lucent.com>
68935
68936         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
68937         names don't conflict.  Reported by Eli Zaretskii.
68938
68939 2000-04-07  Jim Meyering  <meyering@lucent.com>
68940
68941         * lib/putenv.c: Move inclusion of errno.h so it follows that of
68942         sys/types.h, to work around system header problems on AIX 3.2.5.
68943         From Bruno Haible.
68944
68945 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
68946
68947         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
68948         bug.  Deal with the different error behavior of Irix iconv.
68949
68950 2000-04-05  Paul Eggert  <eggert@twinsun.com>
68951
68952         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
68953         IRIX if the installer said otherwise.
68954
68955 2000-04-05  Jim Meyering  <meyering@lucent.com>
68956
68957         Portability tweaks required for ultrix4.3.
68958         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
68959         (jm_CHECK_DECLS): Add getutent to the list of functions.
68960         (_jm_DECL_HEADERS): Add utmpx.h.
68961         From John David Anglin.
68962
68963         * m4/strftime.m4: Back out the 2000-04-02 change.
68964         Instead of that change, simply undefine putenv in the test program.
68965
68966 2000-04-05  Jim Meyering  <meyering@lucent.com>
68967
68968         Portability tweaks required for ultrix4.3.
68969         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
68970         getutent.
68971         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
68972         * lib/canon-host.c: Declare strdup.
68973         * lib/path-concat.c: Likewise.
68974         From John David Anglin.
68975
68976 2000-04-04  Jim Meyering  <meyering@lucent.com>
68977
68978         Be more DOS 8.3-friendly.
68979         * lib/ref-add.sin: Renamed from ref-add.sed.in.
68980         * lib/ref-del.sin: Renamed from ref-del.sed.in.
68981         * lib/Makefile.am: Reflect renaming.
68982         Reported by Eli Zaretskii.
68983
68984         Use a temporary file name that won't clash with `charset.alias'
68985         in the DOS 8.3 name space.
68986         * lib/Makefile.am (charset_tmp): Define.
68987         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
68988         (uninstall-local): Likewise.
68989         Reported by Eli Zaretskii.
68990
68991 2000-04-03  Jim Meyering  <meyering@lucent.com>
68992
68993         * m4/gettext.m4: Fix typo in comment.
68994
68995         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
68996         textutils/configure.in).  Suggestion from Paul Eggert.
68997         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
68998
68999 2000-04-02  Paul Eggert  <eggert@twinsun.com>
69000
69001         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
69002         variable in the shell rather than using putenv, which isn't
69003         portable.  This avoids the configure-time inter-test dependency
69004         on the potentially-renamed putenv function.
69005
69006 2000-03-30  Paul Eggert  <eggert@twinsun.com>
69007
69008         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
69009         before checking struct stat.st_blksize, so that
69010         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
69011
69012 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69013
69014         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
69015         since strftime.c uses HAVE_STRFTIME to decide whether to use
69016         the underlying strftime.
69017
69018 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69019
69020         * lib/time/strftime.c (my_strftime): Make sure we call the system
69021         strftime, not ourselves, when invoking the underlying strftime.
69022
69023 2000-03-24  Jim Meyering  <meyering@lucent.com>
69024
69025         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
69026         (charset_alias): Define.
69027         (install-exec-local): Factor out common code.
69028         (uninstall-local): Split lines longer than 80.
69029         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
69030         (SUFFIXES): Define.
69031         (.sed.in.sed): New rule.  Don't redirect directly to $@.
69032         (CLEANFILES): Add ref-add.sed and ref-del.sed.
69033
69034 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
69035
69036         * lib/config.charset: Output a line containing "Packages using this
69037         file".
69038         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
69039         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
69040         ref-del.sed): New rules.
69041
69042 2000-03-17  Jim Meyering  <meyering@lucent.com>
69043
69044         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
69045         Otherwise, include <strings.h>
69046
69047 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
69048
69049         * lib/unicodeio.c (utf8_wctomb): New function.
69050         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
69051         format instead of in UCS-4 with platform dependent endianness.
69052
69053 2000-03-10  Jim Meyering  <meyering@lucent.com>
69054
69055         * m4/lib-check.m4: Look for getspnam in -lgen, too.
69056         From Marco Franzen.
69057
69058 2000-03-07  Paul Eggert  <eggert@twinsun.com>
69059
69060         * lib/savedir.c (savedir): Work even if directory size is
69061         negative; this can happen with some screwy NFS configurations.
69062
69063 2000-03-06  Jim Meyering  <meyering@lucent.com>
69064
69065         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
69066         if it's NULL (because we ran out of memory).  From Bruno Haible.
69067
69068 2000-03-05  Jim Meyering  <meyering@lucent.com>
69069
69070         * lib/localcharset.c ("path-concat.h"): Include.
69071         (get_charset_aliases): Use path_concat instead of ANSI string
69072         concatenation.
69073
69074         * lib/unicodeio.h (PARAMS): Define.
69075         Use it to guard prototype.
69076
69077 2000-03-04  Jim Meyering  <meyering@lucent.com>
69078
69079         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
69080         for lib/localcharset.c.
69081
69082 2000-03-04  Jim Meyering  <meyering@lucent.com>
69083
69084         * lib/Makefile.am (install-exec-local): Create $(libdir) before
69085         installing into it.
69086         (uninstall-local): Uncomment this rule so `make distcheck' works
69087         once again.
69088
69089         * lib/unicodeio.c (<errno.h>): Include it.
69090         (errno): Declare if not defined.
69091
69092         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
69093
69094         * lib/config.charset: New version, incorporating remarks from a linux
69095         i18n mailing list.  From Bruno Haible.
69096
69097 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
69098
69099         * m4/codeset.m4: New file.
69100         * m4/iconv.m4: New file.
69101         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
69102
69103 2000-03-03  Jim Meyering  <meyering@lucent.com>
69104
69105         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
69106
69107 2000-03-02  Jim Meyering  <meyering@lucent.com>
69108
69109         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
69110         the messages come out on separate lines.
69111
69112         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
69113         rather than jm_CHECK_DECLARATIONS.
69114         * m4/decl.m4: Remove now-unused file.
69115
69116         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
69117         geteuid.
69118
69119 2000-03-02  Jim Meyering  <meyering@lucent.com>
69120
69121         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
69122
69123 2000-03-01  Jim Meyering  <meyering@lucent.com>
69124
69125         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
69126         * lib/unicodeio.c: Likewise.
69127
69128 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
69129
69130         * lib/config.charset: New file.
69131         * lib/localcharset.c: New file.
69132         * lib/unicodeio.h, lib/unicodeio.c: New files.
69133         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
69134         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
69135         (noinst_HEADERS): Add unicodeio.h.
69136         (all-local, install-exec-local, charset.alias): New targets.
69137
69138 2000-02-28  Paul Eggert  <eggert@twinsun.com>
69139
69140         * lib/quotearg.c (ALERT_CHAR): New macro.
69141         (quotearg_buffer_restyled): Use it.
69142
69143 2000-02-27  Jim Meyering  <meyering@lucent.com>
69144
69145         * m4/check-decl.m4: Add getenv to the list.
69146
69147 2000-02-27  Jim Meyering  <meyering@lucent.com>
69148
69149         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
69150         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
69151
69152         * lib/backupfile.c: Guard inclusion of stdlib.h with
69153         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
69154         Declare malloc if needed.
69155
69156         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
69157         `#ifndef HAVE_DECL..'
69158         now that autoconf always defines the HAVE_DECL_ symbols.
69159         * lib/human.c: Likewise.
69160         * lib/same.c: Likewise.
69161         * lib/strtoumax.c: Likewise.
69162
69163         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
69164         declaration check was not run.
69165         * lib/hash.c: Likewise.
69166         * lib/human.c: Likewise.
69167         * lib/same.c: Likewise.
69168         * lib/strtoumax.c: Likewise.
69169
69170         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
69171         `.', then first look up the entire `.'-containing string as a login
69172         name.
69173
69174 2000-02-23  Jim Meyering  <meyering@lucent.com>
69175
69176         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
69177         in place of my hack.
69178
69179 2000-02-18  Paul Eggert  <eggert@twinsun.com>
69180
69181         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
69182         (textint): New typedef.
69183         (parser_control): Member year changed from int to textint.
69184         All uses changed.
69185         (YYSTYPE): Removed; replaced by %union with int and textint members.
69186         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
69187         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
69188         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
69189         (tSNUMBER, tUNUMBER): Now of type <textintval>.
69190         (date, number, to_year): Use width of number in digits, not its value,
69191         to determine whether it's a 2-digit year, or a 2-digit time.
69192         (yylex): Store number of digits of numeric tokens.
69193         Reported by John Kendall.
69194
69195         (parser_control): Changed from struct parser_control to typedef (for
69196         consistency).  All uses changed.
69197
69198         (tID): Removed; not used.
69199         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
69200
69201 2000-02-14  Paul Eggert  <eggert@twinsun.com>
69202
69203         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
69204         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
69205
69206 2000-02-12  Jim Meyering  <meyering@lucent.com>
69207
69208         * lib/userspec.c (ISDIGIT): Define it.
69209         (isdigit): Remove definition.
69210         (is_number): Use ISDIGIT, not isdigit.
69211         <libintl.h>: Include.
69212         (_ and N_): Define.
69213         (parse_user_spec): Mark translatable strings.
69214
69215 2000-02-10  Jim Meyering  <meyering@lucent.com>
69216
69217         With these changes, nanosleep.[ch] are finally enough like the other
69218         lib/* replacement files to compile on a few more losing systems.
69219
69220         * lib/nanosleep.h: Don't include config.h.
69221         Remove prototype from declaration of nanosleep.
69222         (PARAMS): Remove now-unneeded definition.
69223         * lib/nanosleep.c: #undef nanosleep.
69224         (rpl_nanosleep): Rename from nanosleep.
69225
69226 2000-02-10  Jim Meyering  <meyering@lucent.com>
69227
69228         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
69229         gnu_nanosleep to rpl_nanosleep.
69230
69231 2000-02-09  Jim Meyering  <meyering@lucent.com>
69232
69233         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
69234         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
69235
69236 2000-02-08  Akim Demaille  <akim@epita.fr>
69237
69238         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
69239         `[' and `]' and remove uses of `changequote'.
69240         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
69241         (AC_SYS_LARGEFILE): Likewise.
69242         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69243         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
69244         of changequote.
69245         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
69246         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
69247         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
69248         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
69249
69250 2000-02-05  Jim Meyering  <meyering@lucent.com>
69251
69252         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
69253         Remove explicit use of AC_HEADER_TIME.  It is required by
69254         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
69255         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
69256         in autoconf whereby the expansion of the latter ended up preceding
69257         the expansion of its prerequisite, AC_HEADER_TIME.
69258         Reported by Volker Borchert.
69259
69260 2000-02-03  Jim Meyering  <meyering@lucent.com>
69261
69262         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
69263
69264 2000-02-03  Jim Meyering  <meyering@lucent.com>
69265
69266         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
69267         rather than with `#if HAVE_UTMPNAME'.
69268
69269 2000-02-02  Jim Meyering  <meyering@lucent.com>
69270
69271         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
69272         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
69273         Reported by Eli Zaretskii.
69274
69275 2000-02-01  Jim Meyering  <meyering@lucent.com>
69276
69277         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
69278
69279 2000-01-31  Jim Meyering  <meyering@lucent.com>
69280
69281         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
69282         functions.  Add the time.h and sys/time.h headers along with the
69283         AC_REQUIRE'ment of AC_HEADER_TIME.
69284
69285 2000-01-31  Jim Meyering  <meyering@lucent.com>
69286
69287         * lib/nanosleep.h (nanosleep): Guard declaration with
69288         `#if ! HAVE_DECL_NANOSLEEP'.
69289         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
69290         the declaration in that vendor's sys/timers.h.
69291         Reported by Christian Krackowizer.
69292
69293         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
69294         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
69295         (ISPRINT): Likewise.
69296         Reported by Tom Tromey.
69297
69298 2000-01-30  Jim Meyering  <meyering@lucent.com>
69299
69300         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
69301
69302         * m4/prereq.m4 (utmp_includes): Define.
69303         Check for ut_user and ut_name members in both struct utmpx
69304         and struct utmp.
69305
69306 2000-01-30  Jim Meyering  <meyering@lucent.com>
69307
69308         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
69309         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
69310         header files where only utmpx.ut_user is declared.
69311
69312         * lib/readutmp.h (UT_USER): Define.
69313
69314 2000-01-29  Jim Meyering  <meyering@lucent.com>
69315
69316         * m4/lib-check.m4: New file containing library-related checks from
69317         fileutils and sh-utils (textutils had none).
69318
69319 2000-01-28  Jim Meyering  <meyering@lucent.com>
69320
69321         * m4/perl.m4: Change format of warning message to look more like that
69322         from the missing script.  Suggestion from François Pinard.
69323
69324 2000-01-25  Jim Meyering  <meyering@lucent.com>
69325
69326         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
69327         well as time.h in the compile check.
69328         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
69329         Fix typo in cross-compiling case: s/yes/no/.
69330
69331 2000-01-23  Jim Meyering  <meyering@lucent.com>
69332
69333         * m4/jm-macros.m4: Move df-related tests here from
69334         fileutils/configure.in
69335
69336         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
69337         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
69338
69339         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
69340         s/space/ac_fsusage_space/.
69341         (jm_FILE_SYSTEM_USAGE): Take two parameters.
69342
69343         * m4/ftruncate.m4: New file (derived from part of
69344         fileutils/configure.in).
69345         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
69346         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
69347
69348         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
69349         AC_SUBST these here, rather than just in sh-util/configure.in, so
69350         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
69351         all the same.
69352         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
69353         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
69354         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
69355         (AC_SUBST(POW_LIBM)): Likewise.
69356         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
69357
69358 2000-01-23  Jim Meyering  <meyering@lucent.com>
69359
69360         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
69361         obstack.c.
69362
69363 2000-01-22  Jim Meyering  <meyering@lucent.com>
69364
69365         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
69366
69367         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
69368
69369         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
69370         configure.in
69371         (AC_CHECK_HEADERS): Likewise for sh-utils.
69372         (AC_CHECK_HEADERS): Likewise for textutils.
69373         Merge the three lists of headers.
69374
69375         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
69376         from fileutils' configure.in.
69377
69378         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
69379         code. Moved tests into their own function (_jm_DECL_HEADERS) in
69380         check-decl.m4.
69381
69382         * m4/check-decl.m4: Use #if rather than #ifdef.
69383         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
69384         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
69385         (_jm_DECL_HEADERS): Define new function.
69386         (jm_CHECK_DECLARATIONS): Require it.
69387
69388 2000-01-22  Jim Meyering  <meyering@lucent.com>
69389
69390         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
69391         [! HAVE_DECL_STRTOULL]: Declare strtoull.
69392         Required for some AIX systems.  Reported by Christian Krackowizer.
69393         [TESTING] (main): New function.
69394
69395         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
69396         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
69397         letters.
69398
69399         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
69400         iswprint.
69401
69402         * lib/strverscmp.c (ISDIGIT): Define.
69403         (strverscmp): Use ISDIGIT, not isdigit.
69404
69405 2000-01-19  Jim Meyering  <meyering@lucent.com>
69406
69407         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
69408         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
69409         defines `struct timespec' in <sys/time.h>
69410
69411         * m4/c-bs-a.m4: Remove uses of changequote altogether.
69412         Thanks to Akim for explaining.
69413
69414 2000-01-17  Paul Eggert  <eggert@twinsun.com>
69415
69416         * lib/nanosleep.c (nanosleep):
69417         Don't use SA_INTERRUPT to decide whether to call sigaction, as
69418         POSIX.1 doesn't require SA_INTERRUPT and some systems
69419         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
69420         it's been part of POSIX.1 since day 1 (in 1988).
69421
69422 2000-01-17  Jim Meyering  <meyering@lucent.com>
69423
69424         * lib/interlock: Remove unused file.  Reported by François Pinard.
69425
69426 2000-01-16  Paul Eggert  <eggert@twinsun.com>
69427
69428         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
69429         alert, backslash, formfeed, and vertical tab unnecessarily in
69430         shell quoting style.
69431
69432 2000-01-16  Jim Meyering  <meyering@lucent.com>
69433
69434         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
69435         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
69436         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
69437         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
69438
69439 2000-01-16  Jim Meyering  <meyering@lucent.com>
69440
69441         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
69442         because the latter didn't work.
69443
69444 2000-01-15  Jim Meyering  <meyering@lucent.com>
69445
69446         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
69447         (AC_REPLACE_FUNCS): Add memcpy and memset.
69448         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
69449         Add strpbrk.
69450         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
69451
69452 2000-01-12  Jim Meyering  <meyering@lucent.com>
69453
69454         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
69455         (jm_PREREQ): Use it.
69456         (jm_PREREQ_READUTMP): New macro.
69457         (jm_PREREQ): Use it.
69458
69459 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69460
69461         Quote multibyte characters correctly.
69462         * m4/c-bs-a.m4: New file.
69463         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
69464         (jm_PREREQ): Use it.
69465
69466 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69467
69468         * m4/uintmax_t.m4: Port to autoconf 2.13.
69469
69470 2000-01-08  Jim Meyering  <meyering@ascend.com>
69471
69472         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
69473         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
69474
69475 2000-01-04  Jim Meyering  <meyering@ascend.com>
69476
69477         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
69478         jm_STRUCT_DIRENT_D_TYPE.
69479         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
69480         jm_STRUCT_DIRENT_D_INO.
69481         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
69482         jm_STRUCT_UTIMBUF.
69483         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
69484         renamings.
69485         * m4/utime.m4: Likewise.
69486
69487         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
69488         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
69489
69490 2000-01-03  Paul Eggert  <eggert@twinsun.com>
69491
69492         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
69493         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
69494
69495 2000-01-02  Jim Meyering  <meyering@ascend.com>
69496
69497         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
69498         remember if this is necessary.
69499
69500 1999-12-26  Jim Meyering  <meyering@ascend.com>
69501
69502         * m4/jm-macros.m4: Use it here.
69503         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
69504
69505 1999-12-23  Jim Meyering  <meyering@ascend.com>
69506
69507         * m4/jm-macros.m4: Check for clock_gettime (moved from
69508         fileutils/configure.in)
69509         Check for gettimeofday.
69510
69511 1999-12-20  Jim Meyering  <meyering@ascend.com>
69512
69513         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
69514         autoconf-2.14a-1999-12-20.
69515
69516 1999-12-19  Jim Meyering  <meyering@ascend.com>
69517
69518         * m4/lstat-slash.m4: New file.
69519         * m4/jm-macros.m4: Use the new macro:
69520         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69521
69522 1999-12-07  Jim Meyering  <meyering@ascend.com>
69523
69524         * m4/perl.m4: Require that File::Compare be available, too.
69525         Too many systems seem to lack it.
69526
69527         * m4/strftime.m4: Add checks for most of the cpp macros tested in
69528         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
69529
69530 1999-11-18  Paul Eggert  <eggert@twinsun.com>
69531
69532         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
69533         problem with the QNX 4.25 shell, which doesn't propagate exit
69534         status of failed commands inside shell assignments.
69535
69536 1999-11-17  Jim Meyering  <meyering@ascend.com>
69537
69538         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
69539
69540 1999-11-07  Jim Meyering  <meyering@ascend.com>
69541
69542         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
69543
69544 1999-11-06  Jim Meyering  <meyering@ascend.com>
69545
69546         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
69547         * m4/jm-macros.m4 (jm_MACROS): Use it here.
69548
69549 1999-11-05  Jim Meyering  <meyering@ascend.com>
69550
69551         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
69552         configure.in of textutils, fileutils, and sh-utils into this one
69553         (shared between those packages) file.
69554         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
69555         AC_STRUCT_ST_BLKSIZE.
69556
69557 1999-11-03  Jim Meyering  <meyering@ascend.com>
69558
69559         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
69560         of AC_CHECK_TYPE checks includes unistd.h.
69561         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
69562         Suggestion from Akim Demaille.
69563
69564 1999-10-30  Jim Meyering  <meyering@ascend.com>
69565
69566         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
69567         m4-quoted string.
69568         * m4/ls-mntd-fs.m4: Likewise.
69569         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
69570         * m4/jm-winsz1.m4: Likewise.
69571
69572         * m4/const.m4: Remove file, since the fix made it into the experimental
69573         version of autoconf.
69574         * m4/mktime.m4: Likewise.
69575
69576         * m4/check-type.m4: Remove file, now that the latest version of
69577         AC_CHECK_TYPE takes a third arg to specify additional #includes.
69578
69579         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
69580         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
69581         AC_CHECK_TYPE.
69582
69583 1999-10-04  Jim Meyering  <meyering@ascend.com>
69584
69585         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
69586
69587 1999-09-22  Paul Eggert  <eggert@twinsun.com>
69588
69589         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69590         2.95.1 bug with HP-UX 10.20.
69591
69592 1999-09-17  Jim Meyering  <meyering@ascend.com>
69593
69594         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69595         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69596         due to missing strdup (against sh-utils-2.0).
69597
69598 1999-08-29  Jim Meyering  <meyering@ascend.com>
69599
69600         * m4/jm-macros.m4: Require jm_BISON.
69601         * m4/bison.m4: New file.
69602
69603 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69604
69605         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69606         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69607
69608 1999-08-05  Jim Meyering  <meyering@ascend.com>
69609
69610         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69611         to avoid conflicts with `conftest' on 8+3 filesystems.
69612         Suggestion from Eli Zaretskii.
69613
69614 1999-08-04  Jim Meyering  <meyering@ascend.com>
69615
69616         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69617         fileutils and sh-utils (textutils's getline test was inadequate).
69618         (AM_FUNC_GETLINE): Run this test.
69619         (AC_CHECK_FUNCS): Check for getdelim.
69620         Reported by Bob Proulx.
69621
69622 1999-08-02  Jim Meyering  <meyering@ascend.com>
69623
69624         * m4/jm-macros.m4: Add a comment.
69625
69626 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69627
69628         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69629         <inttypes.h> defines strtoumax as a macro (and not as a
69630         function).
69631
69632 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69633
69634         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69635         that we can shift, multiply and divide unsigned long long
69636         values; Ultrix cc can't do it.
69637
69638 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69639
69640         * m4/mktime.m4: New file, which is a preview of what should appear
69641         in the next public autoconf release.
69642
69643 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69644
69645         * m4/lfs.m4: Remove this file.
69646         * m4/largefile.m4: New file.  It contains the old contents of
69647         lfs.m4, except that all names with prefix AC_LFS have been
69648         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69649         compatible with future autoconf versions.  Also, some minor m4
69650         quoting problems have been fixed.
69651
69652 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69653
69654         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69655         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69656         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69657         and simplify the shell code.
69658
69659 1999-08-01  Jim Meyering  <meyering@ascend.com>
69660
69661         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69662         m4.
69663
69664 1999-07-20  Jim Meyering  <meyering@ascend.com>
69665
69666         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69667
69668 1999-07-15  Jim Meyering  <meyering@ascend.com>
69669
69670         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69671
69672 1999-05-22  Jim Meyering  <meyering@ascend.com>
69673
69674         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69675
69676 1999-05-20  Jim Meyering  <meyering@ascend.com>
69677
69678         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69679         Add a colon after each `then' in case $4 is empty.
69680
69681 1999-05-16  Jim Meyering  <meyering@ascend.com>
69682
69683         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69684
69685 1999-05-10  Jim Meyering  <meyering@ascend.com>
69686
69687         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69688
69689         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69690         AC_FUNC_MKTIME.
69691
69692 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69693
69694         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69695
69696 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69697
69698         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69699         not CPPFLAGS, so that linking works correctly in IRIX.
69700
69701 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69702
69703         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69704
69705 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69706
69707         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69708         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69709         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69710         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69711         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69712
69713         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69714
69715 1999-04-20  Jim Meyering  <meyering@ascend.com>
69716
69717         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69718         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69719         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69720
69721 1999-04-18  Jim Meyering  <meyering@ascend.com>
69722
69723         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69724         * m4/jm-macros.m4: Use it.
69725
69726 1999-04-06  Jim Meyering  <meyering@ascend.com>
69727
69728         * m4/strftime.m4: Remove test for %f.
69729
69730 1999-03-29  Jim Meyering  <meyering@ascend.com>
69731
69732         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69733         superset of the AC_TYPE_* checks in the textutils, fileutils,
69734         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69735         AC_TYPE_PID_T.
69736
69737 1999-03-28  Jim Meyering  <meyering@ascend.com>
69738
69739         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69740         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69741         replaced e.g., in the *.sh files of the sh-utils.
69742
69743 1999-03-20  Jim Meyering  <meyering@ascend.com>
69744
69745         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69746         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69747         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69748
69749 1999-03-19  Jim Meyering  <meyering@ascend.com>
69750
69751         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69752
69753 1999-03-12  Jim Meyering  <meyering@ascend.com>
69754
69755         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69756
69757 1999-03-07  Jim Meyering  <meyering@ascend.com>
69758
69759         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69760         declared.
69761
69762 1999-02-17  Jim Meyering  <meyering@ascend.com>
69763
69764         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69765         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69766
69767 1999-02-07  Jim Meyering  <meyering@ascend.com>
69768
69769         * m4/group-member.m4: New file -- extracted from sh-utils'
69770         configure.in.
69771
69772         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69773         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69774
69775 1999-02-06  Jim Meyering  <meyering@ascend.com>
69776
69777         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69778         * m4/fnmatch.m4: Likewise.
69779         * m4/getgroups.m4: Likewise.
69780         * m4/lstat.m4: Likewise.
69781         * m4/malloc.m4: Likewise.
69782         * m4/putenv.m4: Likewise.
69783         * m4/realloc.m4: Likewise.
69784         * m4/regex.m4: Likewise.
69785         * m4/stat.m4: Likewise.
69786         * m4/strftime.m4: Likewise.
69787         Suggestion from Alain Magloire.
69788
69789         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69790         * m4/fnmatch.m4: Likewise.
69791         * m4/getgroups.m4: Likewise.
69792         * m4/getline.m4: Likewise.
69793         * m4/lstat.m4: Likewise.
69794         * m4/malloc.m4: Likewise.
69795         * m4/memcmp.m4: Likewise.
69796         * m4/putenv.m4: Likewise.
69797         * m4/realloc.m4: Likewise.
69798         * m4/regex.m4: Likewise.
69799         * m4/stat.m4: Likewise.
69800         * m4/strftime.m4: Likewise.
69801         Suggestion from Alain Magloire.
69802
69803         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69804         an argument.
69805
69806         * m4/regex.m4: Add a run-time Test for proper operation of
69807         re_compile_pattern.
69808
69809 1999-01-31  Jim Meyering  <meyering@ascend.com>
69810
69811         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69812
69813 1999-01-30  Jim Meyering  <meyering@ascend.com>
69814
69815         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69816
69817         * m4/jm-mktime.m4: Make this a wrapper around the official
69818         AM_FUNC_MKTIME rather than my private copy, now that the official one
69819         is up to date.
69820         * m4/mktime.m4: Remove file.
69821
69822         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69823         * m4/uptime.m4: Likewise.
69824         * m4/uintmax_t.m4: Likewise.
69825
69826 1999-01-28  Jim Meyering  <meyering@ascend.com>
69827
69828         * m4/jm-macros.m4: Use jm_AFS.
69829         * m4/afs.m4: New file (from fileutils' configure.in).
69830
69831         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69832         * m4/chown.m4: Likewise.
69833         * m4/d-ino.m4: Likewise.
69834         * m4/d-type.m4: Likewise.
69835         * m4/fnmatch.m4: Likewise.
69836         * m4/getgroups.m4: Likewise.
69837         * m4/gettext.m4: Likewise.
69838         * m4/jm-mktime.m4: Likewise.
69839         * m4/jm-winsz2.m4: Likewise.
69840         * m4/lcmessage.m4: Likewise.
69841         * m4/ls-mntd-fs.m4: Likewise.
69842         * m4/malloc.m4: Likewise.
69843         * m4/memcmp.m4: Likewise.
69844         * m4/putenv.m4: Likewise.
69845         * m4/realloc.m4: Likewise.
69846         * m4/st_mtim.m4: Likewise.
69847         * m4/strftime.m4: Likewise.
69848
69849 1999-01-16  Jim Meyering  <meyering@ascend.com>
69850
69851         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
69852         (ARGMATCH_DIE_DECL): Define.
69853
69854 1999-01-12  Jim Meyering  <meyering@ascend.com>
69855
69856         * m4/Makefile.am.in: Rewrite to avoid using fmt.
69857         Reported by Lars Hecking.
69858
69859 1999-01-10  Jim Meyering  <meyering@ascend.com>
69860
69861         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
69862         gross kludge.
69863         * m4/inttypes_h.m4: Likewise.
69864         * m4/lstat.m4: Likewise.
69865         * m4/malloc.m4: Likewise.
69866         * m4/readdir.m4: Likewise.
69867         * m4/realloc.m4: Likewise.
69868         * m4/st_dm_mode.m4: Likewise.
69869         * m4/stat.m4: Likewise.
69870         * m4/utimbuf.m4: Likewise.
69871         * m4/utimes.m4: Likewise.
69872
69873         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
69874         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
69875         comments in config.h.in are meaningful.
69876
69877         * m4/jm-macros.m4: Require autoconf-2.13 here.
69878
69879         * m4/regex.m4: By default, don't use the included regex.c on systems
69880         with glibc 2.  Suggestion from Uli Drepper.
69881
69882 1999-01-02  Jim Meyering  <meyering@ascend.com>
69883
69884         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
69885
69886 1998-12-18  Jim Meyering  <meyering@ascend.com>
69887
69888         * m4/Makefile.am.in (Makefile.am): Simplify rule.
69889         Based on a suggestion from Lars Hecking.
69890
69891 1998-11-16  Paul Eggert  <eggert@twinsun.com>
69892
69893         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
69894
69895 1998-11-16  Jim Meyering  <meyering@ascend.com>
69896
69897         * m4/lfs.m4: Double-quote the `uname...` expression.
69898
69899 1998-11-14  Jim Meyering  <meyering@ascend.com>
69900
69901         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
69902         * m4/stat.m4: Likewise.
69903
69904 1998-11-03  Jim Meyering  <meyering@ascend.com>
69905
69906         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
69907         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
69908
69909 1998-10-18  Jim Meyering  <meyering@ascend.com>
69910
69911         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
69912
69913 1998-10-17  Jim Meyering  <meyering@ascend.com>
69914
69915         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
69916         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
69917         calls for those previously hard-coded headers.  Instead, take a new
69918         parameter.
69919         (jm_CHECK_DECLARATIONS): Reflect interface change.
69920         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
69921         (jm_CHECK_DECL_LOCALTIME_R): New macro.
69922
69923         * m4/mktime.m4: Test for spring-forward gap before long-running test.
69924
69925 1998-10-14  Jim Meyering  <meyering@ascend.com>
69926
69927         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
69928         instead of "TZ=America/Vancouver".  From Paul Eggert.
69929
69930 1998-10-11  Jim Meyering  <meyering@ascend.com>
69931
69932         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
69933         This adds a test for a recently added compatibility fix for mktime.c.
69934         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
69935
69936 1998-09-27  Jim Meyering  <meyering@ascend.com>
69937
69938         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
69939
69940         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
69941         ../configure.in, including a change from Gordon Matzigkeit to allow
69942         cross-compiling for the Hurd.
69943
69944         * m4/glibc.m4: New file/macro to test for the GNU C Library
69945         versions 1 and 2.  From Gordon Matzigkeit.
69946         Indent.
69947
69948 1998-09-21  Jim Meyering  <meyering@ascend.com>
69949
69950         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
69951
69952 1998-08-18  Paul Eggert  <eggert@twinsun.com>
69953
69954         Port nanosecond-resolution times to UnixWare 2.1.2 and
69955         pedantic Solaris 2.6.
69956
69957         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
69958         AC_STRUCT_ST_MTIM.
69959         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
69960         Generate name of ns member, instead of just 1 or undef.
69961         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
69962
69963 1998-08-15  Jim Meyering  <meyering@ascend.com>
69964
69965         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
69966         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
69967         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
69968         instead of jm_TYPE_SSIZE_T.
69969
69970 1998-08-12  Jim Meyering  <meyering@ascend.com>
69971
69972         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
69973
69974 1998-08-02  Jim Meyering  <meyering@ascend.com>
69975
69976         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
69977         in acconfig.h manually.
69978
69979 1998-07-31  Paul Eggert  <eggert@twinsun.com>
69980
69981         * m4/st_mtim.m4: New file.
69982
69983 1998-07-28  Jim Meyering  <meyering@ascend.com>
69984
69985         * m4/utimes.m4: Undef stat.
69986
69987 1998-07-25  Jim Meyering  <meyering@ascend.com>
69988
69989         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
69990         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
69991
69992 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
69993
69994         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
69995         uid and gid actually remain unchanged.
69996
69997 1998-07-07  Jim Meyering  <meyering@ascend.com>
69998
69999         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
70000
70001 1998-07-04  Jim Meyering  <meyering@ascend.com>
70002
70003         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
70004         to prove that this macro can be used in packages without regex.c.
70005
70006 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
70007
70008         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
70009         is to be used.
70010
70011 1998-07-03  Jim Meyering  <meyering@ascend.com>
70012
70013         * m4/gettext.m4: Add -lintl if it's found to be necessary.
70014
70015         * m4/gettext.m4: New file -- from gettext-0.10.35.
70016         * m4/lcmessage.m4: Likewise.
70017         * m4/progtest.m4: Likewise.
70018
70019         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
70020         * m4/jm-macros.m4: Require the new macro.
70021
70022 1998-06-29  Jim Meyering  <meyering@ascend.com>
70023
70024         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
70025         for the definition of NGROUPS (used in a system header included
70026         by sys/mount.h).
70027
70028 1998-06-28  Jim Meyering  <meyering@ascend.com>
70029
70030         * m4/ls-mntd-fs.m4: New file.
70031         * m4/fstypename.m4: New file.
70032
70033         * m4/jm-macros.m4: Require the new macro.
70034         * m4/jm-glibc-io.m4: New file.
70035
70036 1998-05-19  Jim Meyering  <meyering@ascend.com>
70037
70038         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
70039         * m4/lchown.m4: New file.
70040
70041         * m4/Makefile.am.in: New file.
70042         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
70043
70044 1998-05-14  Jim Meyering  <meyering@ascend.com>
70045
70046         * m4/Makefile.am (EXTRA_DIST): Add them.
70047         * m4/jm-macros.m4: New file.
70048         * m4/utimbuf.m4: New file.
70049
70050 1998-05-12  Jim Meyering  <meyering@ascend.com>
70051
70052         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
70053
70054 1998-05-11  Jim Meyering  <meyering@ascend.com>
70055
70056         * m4/isc-posix.m4: New file.
70057
70058 1998-05-10  Jim Meyering  <meyering@ascend.com>
70059
70060         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
70061
70062 1998-05-09  Jim Meyering  <meyering@ascend.com>
70063
70064         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
70065         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
70066         with automake.
70067
70068         * m4/ssize_t.m4: New file.
70069         * m4/mktime.m4: Remove file -- the new automake has this now.
70070
70071 1998-04-26  Jim Meyering  <meyering@ascend.com>
70072
70073         * m4/assert.m4: New file.
70074         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
70075
70076 1998-04-05  Jim Meyering  <meyering@ascend.com>
70077
70078         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
70079         (jm_PREREQ): Use it here.
70080
70081 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
70082
70083         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
70084         in acconfig.h.
70085
70086 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
70087
70088         * m4/prereq.m4: New file.
70089         * m4/error.m4: New file.
70090         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
70091
70092 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
70093
70094         * m4/getline.m4: Don't set am_cv_func_working_getline before the
70095         cache-check for the same variable -- that defeated the purpose of
70096         the test; the test program was never run.  This was a problem only
70097         on systems with losing getline functions -- HP-UX 10.20 is one.
70098         Reported by Bjorn Helgaas.
70099
70100 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
70101
70102         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
70103
70104 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
70105
70106         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
70107
70108         * m4/const.m4: New file.  Use an initializer in this declaration
70109         typedef int charset[2]; const charset x;
70110         Reported by Bob Glickstein.
70111
70112 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
70113
70114         * m4/chown.m4: Fix reversed types on -1 args to chown.
70115         From Kaveh Ghazi.
70116
70117 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
70118
70119         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
70120         Add lseek and memchr.
70121
70122         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
70123         T.E.Dickey <dickey@clark.net> said that some older preprocessors
70124         have a 20-character limit on names.
70125
70126 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
70127
70128         * m4/inttypes_h.m4: New file.
70129         * m4/uintmax_t.m4: New file.
70130         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
70131
70132
70133         -----
70134
70135         Local Variables:
70136         coding: utf-8
70137         End:
70138
70139         Copyright (C) 1997-2010 Free Software Foundation, Inc.
70140
70141         Copying and distribution of this file, with or without
70142         modification, are permitted provided the copyright notice
70143         and this notice are preserved.