pthread: add pthread_spin_destroy
[gnulib.git] / ChangeLog
1 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2
3         pthread: add pthread_spin_destroy
4         * lib/pthread.in.h (pthread_spin_destroy): New function.
5
6 2010-09-19  Bruno Haible  <bruno@clisp.org>
7
8         gnulib-tool: Fix --help output.
9         * gnulib-tool (func_usage): Fix help message.
10         Reported by Reuben Thomas <rrt@sc3d.org>.
11
12 2010-09-18  Jim Meyering  <meyering@redhat.com>
13
14         maint.mk: avoid unexpanded \n in two diagnostics
15         * top/maint.mk (sc_prohibit_always_true_header_tests):
16         Don't use a literal \n in a halt=... assignment.  It would not be
17         expanded, and the two \n bytes would appear in the diagnostic output
18         rather than the desired newline.  Use halt=$$(printf ... instead.
19         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20
21 2010-09-18  Bruno Haible  <bruno@clisp.org>
22
23         netinet_in: Doc tweak.
24         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26
27 2010-09-18  Jim Meyering  <meyering@redhat.com>
28
29         init.sh: correct an outdated comment
30         * tests/init.sh (create_exe_shims_):  s/function/alias/
31
32         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
33         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
34         a file named "*.exe" is removed between the glob expansion and the
35         processing of that oddly named file.
36
37 2010-09-17  Eric Blake  <eblake@redhat.com>
38
39         mirbsd: add some more support
40         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
41         in BSD family.
42         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
43         devices as OpenBSD.
44         * m4/host-os.m4 (mirbsd): Add MirBSD.
45
46         tests: fix unportable assumption on sys/wait.h
47         * tests/test-sys_wait.c (main): Relax test.
48         * tests/test-stdlib.c (main): Likewise.
49
50         init.sh: accomodate directory with no .exes
51         * tests/init.sh: Accomodate directory containing only scripts.
52
53         tests: avoid compiler warning
54         * tests/test-stdlib.c (main): Use the variable.
55
56         fdutimens, fdutimensat: update signature, again
57         * lib/utimens.h (gl_futimens): Delete, and move signature...
58         (fdutimens): ...here.
59         (fdutimensat): Rearrange signature.
60         (lutimensat): Rename variable for clarity.
61         * lib/fdutimensat.c (fdutimensat): Update signature.
62         * lib/utimens.c (fdutimens): Likewise.
63         (gl_futimens): Delete.
64         (utimens, lutimens): Update callers.
65         * lib/futimens.c (futimens): Likewise.
66         * tests/test-fdutimensat.c: Likewise.
67         * tests/test-utimens.c: Likewise.
68         * tests/test-futimens.h: Update comment.
69         * NEWS: Mention this.
70         Suggested by Paul Eggert.
71
72 2010-09-17  Bruno Haible  <bruno@clisp.org>
73
74         Take over the maintenance of some older macros from Autoconf.
75         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
76         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
77         GNU Autoconf.
78         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
79         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
80
81 2010-09-17  Eric Blake  <eblake@redhat.com>
82
83         fdutimensat: drop atflag validation
84         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
85         with valid fd, to close a race scenario where futimens is
86         unsupported and FILE was replaced by a symlink.
87         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
88         accordingly.
89         Suggested by Paul Eggert.
90
91 2010-09-16  Bruno Haible  <bruno@clisp.org>
92
93         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
94         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
95
96 2010-09-16  Bruno Haible  <bruno@clisp.org>
97
98         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
99         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
100         login_tty exists.
101         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
102
103 2010-09-16  Bruno Haible  <bruno@clisp.org>
104
105         login_tty: Make the replacement code work on BSD systems.
106         * lib/login_tty.c: Include <sys/ioctl.h>.
107         (login_tty): Use ioctl TIOCSCTTY when available.
108         * modules/login_tty (Depends-on): Add sys_ioctl.
109         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
110
111 2010-09-16  Bruno Haible  <bruno@clisp.org>
112
113         login_tty: Stricter unit test.
114         * modules/login_tty-tests (Depends-on): Add tcgetsid.
115         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
116         and tcgetsid() after login_tty.
117         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
118
119 2010-09-16  Bruno Haible  <bruno@clisp.org>
120
121         New module 'tcgetsid'.
122         * lib/tcgetsid.c: New file.
123         * m4/tcgetsid.m4: New file.
124         * modules/tcgetsid: New file.
125         * modules/termios (Depends-on): Add c++defs, warn-on-use.
126         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
127         GNULIB_TCGETSID, HAVE_TCGETSID.
128         * lib/termios.in.h: Include <sys/types.h>.
129         (tcgetsid): New declaration.
130         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
131         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
132         * doc/posix-functions/tcgetsid.texi: Mention the new module.
133         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
134
135 2010-09-16  Bruno Haible  <bruno@clisp.org>
136
137         Tests for module 'termios'.
138         * modules/termios-c++-tests: New file.
139         * modules/termios-tests: New file.
140         * tests/test-termios-c++.cc: New file.
141         * tests/test-termios.c: New file.
142
143         New module 'termios'.
144         * modules/termios: New file.
145         * lib/termios.in.h: New file.
146         * m4/termios_h.m4: New file.
147         * doc/posix-headers/termios.texi: Mention the new module.
148
149 2010-09-16  Eric Blake  <eblake@redhat.com>
150
151         fdutimensat: add an atflag parameter
152         * lib/fdutimensat.c (fdutimensat): Add new parameter.
153         * lib/utimens.h (fdutimensat): Update prototype.
154         * tests/test-fdutimensat.c: Adjust test to match.
155         * NEWS: Document the change.
156         Suggested by Paul Eggert.
157
158 2010-09-16  Bruno Haible  <bruno@clisp.org>
159
160         Fix typos in comments.
161         * lib/striconveh.h: Fix typo in comment.
162         * lib/login_tty.c (login_tty): Likewise.
163
164 2010-09-15  Bruno Haible  <bruno@clisp.org>
165
166         stdlib: clarify MirBSD WEXITSTATUS bug
167         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
168         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
169
170 2010-09-15  Eric Blake  <eblake@redhat.com>
171
172         stdlib: work around MirBSD WEXITSTATUS bug
173         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
174         * modules/stdlib (Depends-on): Add sys_wait.
175         * tests/test-sys_wait.c (main): Enhance test.
176         * tests/test-stdlib.c (main): Likewise.
177         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
178
179         docs: mention MacOS issue with WEXITSTATUS(constant)
180         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
181         issue.
182         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
183
184         strnlen: add tests
185         * modules/strnlen-tests: New file.
186         * tests/test-strnlen.c: Likewise.
187
188 2010-09-14  Bruno Haible  <bruno@clisp.org>
189
190         unistr/base: Avoid link errors when module 'libunistring' is also used.
191         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
192         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
193         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
194         Declare also when HAVE_LIBUNISTRING is set.
195         Reported by Pádraig Brady <P@draigbrady.com>.
196
197 2010-09-14  Eric Blake  <eblake@redhat.com>
198
199         test-rawmemchr: make more robust
200         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
201         (Depends-on, configure.ac): Add needed prerequisites to use it.
202         * modules/memchr-tests (Files, Depends-on, configure.ac):
203         Likewise, to avoid implicit reliance on memchr module prereqs.
204         * tests/test-memchr.c (main): Ensure proper masking.
205         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
206         reads.
207
208         memchr: detect glibc Alpha bug
209         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
210         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
211         Alpha.
212         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
213         * tests/test-memchr.c (main): Enhance test.
214         Reported by Nelson H. F. Beebe.
215
216 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
217
218         fts, getcwd, glob: audit for dirfd returning -1
219         * lib/fts.c (opendir): Remove #define; no longer used.
220         (opendirat): New arg PDIR_FD.  All callers changed.
221         (fts_build, _opendir2): Use new opendirat to avoid the need for
222         dirfd, or for checking whether dirfd returns a negative value.
223         Don't use opendir; always use openat followed by fdopendir.
224         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
225         it.
226         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
227         returns -1 here.
228         * modules/fts (Depends-on): Remove dirfd.
229         * modules/getcwd (Depends-on): Likewise.
230
231 2010-09-13  Eric Blake  <eblake@redhat.com>
232
233         float: fix broken MirBSD header
234         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
235         * doc/posix-headers/float.texi (float.h): Document it.
236
237 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
238
239         fts: use O_NOFOLLOW to avoid race condition when opening a directory
240         * lib/fts.c (opendirat): New arg extra_flags.
241         (__opendir2): Use it to avoid following symlinks when opening
242         a directory, if symlinks are not supposed to be followed.  See
243         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
244
245         fdopendir: preserve argument fd before returning
246         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
247         (fdopendir_with_dup, fd_clone_opendir): New static functions.
248         (fdopendir): Use them, arranging for FD to be open to the same
249         directory that it was when it started.  (It might be temporarily
250         closed while fdopendir is running, so this not thread- or
251         signal-safe.)  Be careful to do the right thing even when file
252         descriptors are scarce and dup fails with errno == EMFILE.  See
253         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
254
255 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
256
257         regex: Pass the system regex if its only problem is 32-bit regoff_t.
258         * NEWS: Document change.
259         * m4/regex.m4: Disable test for regoff_t size.
260
261 2010-09-13  Jim Meyering  <meyering@redhat.com>
262
263         fts: don't operate on an invalid file descriptor after failed dup
264         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
265         negative file descriptor.
266
267 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
268
269         savedir: add streamsavedir, deprecate fdsavedir
270         * NEWS: Mention deprecation of fdsavedir.
271         * lib/savedir.c (streamsavedir): New extern function, whose name
272         ends in "savedir" to be consistent with the others.  This differs
273         from savedirstream in that it doesn't close its argument.  The
274         next version of GNU tar will use this instead of fdsavedir, to
275         avoid some race conditions and conserve file descriptors.
276         (savedirstream): Reimplement as a wrapper around streamsavedir.
277         (fdsavedir): Add a comment deprecating this function.  As far as
278         I know, only GNU tar used it, and GNU tar doesn't need it any more.
279         * lib/savedir.h (streamsavedir): New decl.
280         (fdsavedir): Add a comment deprecating this.
281
282 2010-09-10  Bruno Haible  <bruno@clisp.org>
283
284         langinfo: Fix last commit.
285         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
286         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
288
289 2010-09-10  Bruno Haible  <bruno@clisp.org>
290
291         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
292         * lib/progreloc.c (O_EXEC): Define fallback.
293
294 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
295
296         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
297         * NEWS: Document recent changes to fcntl-h.
298         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
299         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
300         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
301         Similarly for O_SEARCH; this last was already true, but not documented.
302         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
303         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
304         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
305         Likewise.
306         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
307         is zero, not whether it is defined.
308         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
309         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
310         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
311
312 2010-09-10  Bruno Haible  <bruno@clisp.org>
313
314         langinfo, nl_langinfo: Fix for IRIX 5.3.
315         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
316         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
317         HAVE_LANGINFO_YESEXPR.
318         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
319         HAVE_LANGINFO_YESEXPR.
320         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
321         HAVE_LANGINFO_T_FMT_AMPM is 0.
322         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
323         HAVE_LANGINFO_YESEXPR is 0.
324         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
325         NOEXPR.
326         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
327         * doc/posix-functions/nl_langinfo.texi: Likewise.
328         Reported by Eric Blake.
329
330 2010-09-10  Bruno Haible  <bruno@clisp.org>
331
332         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
333         * doc/glibc-functions/login_tty.texi: Mention the include file problem
334         on FreeBSD 8.0 and OpenBSD 4.6.
335         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
336         * m4/pty_h.m4 (gl_PTY_H): Likewise.
337         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
338         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
339         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
340         ac_includes_default.
341         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
342
343 2010-09-09  Eric Blake  <eblake@redhat.com>
344
345         strsignal: work around NetBSD bug
346         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
347         * lib/string.in.h (includes): Likewise.
348         * doc/posix-functions/strsignal.texi (strsignal): Document the
349         bug.
350         Reported by Nelson H. F. Beebe.
351
352         gnulib-tool: work with NetBSD /bin/sh
353         * gnulib-tool (func_cache_var, func_cache_lookup_module)
354         (func_get_description, func_get_comment, func_get_status)
355         (func_get_notice, func_get_applicability, func_get_filelist)
356         (func_get_dependencies, func_get_autoconf_early_snippet)
357         (func_get_autoconf_snippet, func_get_automake_snippet)
358         (func_get_include_directive, func_get_link_directive)
359         (func_get_license, func_get_maintainer, func_import): Avoid
360         shell syntax errors from parsing syntax extensions.
361
362 2010-09-09  Bruno Haible  <bruno@clisp.org>
363
364         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
365         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
366         a reliable way to determine whether the 'alias' command works.
367
368 2010-09-08  Jim Meyering  <meyering@redhat.com>
369
370         init.sh: penalize a set-x-impaired shell; don't disqualify it
371         * tests/init.sh: Too many shells corrupt application stderr when
372         you set -x, so we can't afford to disqualify them, since at least
373         on Irix-6.5, that would disqualify all bourne shells.
374         Instead, use a two-pass approach.
375         On the first pass, try to find a shell that meets the stricter
376         condition that set -x does not corrupt stderr.
377         If no shell meets the stricter condition, retest each candidate
378         shell, but without that extra condition.  Finally, when
379         VERBOSE=yes is requested and set -x might cause trouble, simply
380         issue a warning and refrain from enabling debug output.
381
382 2010-09-08  Eric Blake  <eblake@redhat.com>
383
384         unsetenv: fix OpenBSD bug
385         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
386         * doc/posix-functions/unsetenv.texi (unsetenv): Update
387         documentation.
388         Reported by Jim Meyering.
389
390         strtod: work around IRIX 6.5 bug
391         * lib/strtod.c (strtod): Reparse number on shorter string if
392         exponent parse was invalid.
393         * tests/test-strtod.c (main): Add check for "0x1p 2".
394         Reported by Tom G. Christensen.
395
396         getopt: optimize previous patch
397         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
398         empty variable.  Speed up awk script.
399         Reported by Paolo Bonzini.
400
401 2010-09-08  Jim Meyering  <meyering@redhat.com>
402
403         test.sh: disqualify shells for which set -x corrupts stderr
404         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
405         and OpenBSD 4.7.  They make it so with "set -x", environment settings
406         appear in stderr output.  For example, this command:
407             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
408         prints "P=1" on those two systems:
409
410 2010-09-08  Bruno Haible  <bruno@clisp.org>
411
412         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
413         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
414         commands, because some shells ignore redirections when there is an
415         error in the command lookup.
416         Reported by Eric Blake.
417
418 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
419
420         * lib/regex.h: Fix a mention of `regex_compile' (should be
421         `re_compile_pattern').
422         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
423         (re_set_registers): Correct name of parameter in comment.
424
425         * doc/regex.texi: Add documentation for missing syntax flags.
426         Remove commented-out documentation of defunct syntax option
427         RE_NO_EMPTY_ALTS.
428         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
429         Add documentation of re_set_registers.
430         Document trick to re-use a pattern buffer by setting fastmap manually.
431         Update documentation of struct re_pattern_buffer per public members.
432         Uncomment documentation of equivalence class operators and
433         collating symbol operators, since they are now implemented,
434         Explain leftmost-longest matching in relation to alternatives.
435         Tidy documentation of substring matching.
436         Remove POSIX documentation, which is done better in
437         glibc, and refer the reader there. Keep BSD API documentation, as
438         that is not readily available elsewhere.
439
440 2010-09-07  Eric Blake  <eblake@redhat.com>
441
442         getopt: handle POSIXLY_CORRECT set but not exported
443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
444         export state of POSIXLY_CORRECT, due to bash set -o posix.
445         Reported by Dustin J. Mitchell.
446
447 2010-09-05  Bruno Haible  <bruno@clisp.org>
448
449         gnulib-tool: Highlight the changed options.
450         * gnulib-tool (func_usage): Display the --import, --add-import,
451         --remove-import explanations in bold font.
452
453 2010-09-06  Karl Berry  <karl@gnu.org>
454
455         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
456
457 2010-09-05  Bruno Haible  <bruno@clisp.org>
458
459         uniwidth/width: Update comment.
460         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
461         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
462
463 2010-09-05  Bruno Haible  <bruno@clisp.org>
464
465         isinf, isnan: Relax license.
466         * modules/isinf (License): Change from GPL to LGPL, with consent from
467         Ben Pfaff.
468         * modules/isnan (License): Likewise.
469         Requested by Ludovic Courtès.
470
471 2010-09-04  Bruno Haible  <bruno@clisp.org>
472
473         gnulib-tool: Help migration from --import to --add-import or --update.
474         * gnulib-tool: Emit a verbose error message when --import is used
475         without any module name.
476
477 2010-09-04  Bruno Haible  <bruno@clisp.org>
478
479         Update doc about gnulib-tool.
480         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
481         'gnulib-tool --update' in more detail.
482         Reported by Eric Blake.
483
484 2010-09-04  Bruno Haible  <bruno@clisp.org>
485
486         gnulib-tool: Change --import. New options --add/remove-import.
487         * gnulib-tool: New options --add-import, --remove-import.
488         (func_usage): Document them.
489         (have_associative): Define always.
490         (func_import): In import mode, don't merge the specified settings with
491         the cached settings. Implement remove-import mode.
492         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
493         Explain when to use them versus --import.
494         (Simple update): Use --add-import instead of --import.
495         * NEWS: Mention the change.
496
497 2010-09-04  Bruno Haible  <bruno@clisp.org>
498
499         * doc/gnulib-tool.texi (Initial import): Update paragraph about
500         separate gnulib.mk.
501
502 2010-09-04  Bruno Haible  <bruno@clisp.org>
503
504         gnulib-tool: Don't talk about CVS any more.
505         * gnulib-tool (func_usage, func_import): Write "version control"
506         instead of CVS.
507
508 2010-09-04  Jim Meyering  <meyering@redhat.com>
509
510         maint.mk: avoid obscure sc_copyright_check failure in coreutils
511         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
512         false positives (whose names may be ill-chosen) when searching
513         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
514         would cause a false-positive.
515
516         avoid coreutils "make distcheck" failure
517         Coreutils tests with an absolute build directory name that contains
518         a space.  Not quoting this directory name caused a failure.
519         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
520         * tests/test-vc-list-files-cvs.sh: Likewise.
521
522 2010-09-04  Bruno Haible  <bruno@clisp.org>
523
524         gnulib-tool: Avoid error when run in a package without Makefile.am.
525         * gnulib-tool: When collecting the m4dirs in a package that does not
526         have a Makefile.am, eliminate those directories that contain no
527         gnulib-cache.m4. Fix expression that counts these directories.
528
529 2010-09-04  Bruno Haible  <bruno@clisp.org>
530
531         update-copyright test: Improve output when perl is missing or too old.
532         * tests/test-update-copyright.sh: Move test of Perl version down after
533         the test whether Perl exists. Provide an explanation relating Perl's
534         error message to Automake's SKIP: message.
535
536 2010-09-04  Bruno Haible  <bruno@clisp.org>
537
538         Don't augment PATH in TESTS_ENVIRONMENT.
539         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
540         set abs_aux_dir instead of augmenting PATH.
541         * modules/vc-list-files-tests (Makefile.am): Likewise.
542         * tests/test-update-copyright.sh: Augment PATH here.
543         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
544         path_prepend_.
545         * tests/test-vc-list-files-git.sh: Likewise.
546
547 2010-09-04  Jim Meyering  <meyering@redhat.com>
548
549         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
550         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
551
552 2010-09-04  Bruno Haible  <bruno@clisp.org>
553
554         strdup: Fix compilation error in C++ mode.
555         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
556         the macro.
557
558 2010-09-04  Bruno Haible  <bruno@clisp.org>
559
560         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
561         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
562         macro into a function.
563         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
564
565 2010-09-04  Bruno Haible  <bruno@clisp.org>
566
567         Set PATH_SEPARATOR the same way autoconf does.
568         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
569         the value of PATH_SEPARATOR the same way autoconf-generated configure
570         scripts do.
571         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
572         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
573
574 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
575
576         Set PATH_SEPARATOR the same way autoconf does.
577         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
578         the same way autoconf-generated configure scripts do.
579         * posix-modules: Likewise.
580
581 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
582
583         hash: fix safe_hasher const typo
584         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
585         const; otherwise, there is a type error later.
586
587 2010-09-02  Jim Meyering  <meyering@redhat.com>
588
589         test-update-copyright.sh: require perl 5.8.0
590         * tests/test-update-copyright.sh: Require 5.8.0,
591         which Tom G. Christensen has confirmed is adequate,
592         while 5.6.1 is not.
593
594 2010-09-02  Eric Blake  <eblake@redhat.com>
595
596         tests: init.sh improvements for re-exec'ing with zsh
597         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
598         -vx through shell re-exec.
599         Reported by Tom G. Christensen.
600
601         wctype: fix typo in previous commit
602         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
603         Reported by Ludovic Courtès.
604
605 2010-09-02  Jim Meyering  <meyering@redhat.com>
606
607         test-update-copyright.sh: skip test if Perl is too old
608         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
609         Reported by Tom G. Christensen.
610
611 2010-09-02  Bruno Haible  <bruno@clisp.org>
612
613         wctype: Avoid compilation error on IRIX 6.5.30.
614         * lib/wctype.in.h (iswblank): Declare with a replacement if
615         REPLACE_ISWBLANK is set.
616         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
617         declared. Set REPLACE_ISWBLANK.
618         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
619         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
620         * doc/posix-headers/wctype.texi: Likewise.
621         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
622
623 2010-09-01  Bruno Haible  <bruno@clisp.org>
624
625         New module 'socketlib'.
626         * modules/socketlib: New file.
627         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
628         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
629         * modules/sockets (Depends-on): Add socketlib.
630         Suggested by Sam Steingold <sds@gnu.org>.
631
632 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
633
634         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
635
636         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
637         when one needs search access to a directory but not read access.
638         On systems where it is available, it works in some cases where
639         O_RDONLY does not, namely on directories that are searchable but
640         not readable, and which need only to be searchable.  If O_SEARCH
641         is not available, fall back to the traditional method of using
642         O_RDONLY.
643
644         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
645         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
646         when opening a directory that needs only to be searchable.
647         * lib/chdir-safer.c (chdir_no_follow): Likewise.
648         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
649         * lib/openat-proc.c (openat_proc_name): Likewise.
650         * lib/openat.c (openat_needs_fchdir): Likewise.
651         * lib/save-cwd.c (save_cwd): Likewise.
652         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
653
654 2010-08-28  Bruno Haible  <bruno@clisp.org>
655
656         New module 'host-cpu-c-abi'.
657         * modules/host-cpu-c-abi: New file.
658         * m4/host-cpu-c-abi.m4: New file, based on part of
659         clisp/src/m4/general.m4.
660         Requested by Sam Steingold <sds@gnu.org>.
661
662 2010-08-31  Eric Blake  <eblake@redhat.com>
663         and Jim Meyering  <meyering@redhat.com>
664
665         hash: factor, and guard against misbehaving hasher function
666         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
667         of table->hasher's return value.  Also protect against a hash value
668         so large that adding it to table->bucket results in a NULL pointer.
669         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
670         Use it in place of open-coded check-and-abort.
671
672 2010-08-30  Bruno Haible  <bruno@clisp.org>
673
674         hash: silence spurious clang warning
675         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
676         Reported by Eric Blake.
677
678 2010-08-30  Eric Blake  <eblake@redhat.com>
679
680         strstr, memmem, strcasestr: avoid leaked shell message
681         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
682         FreeBSD.
683         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
684         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
685
686         tests: silence clang warning
687         * tests/test-malloca.c (do_allocation): Avoid dead store.
688
689 2010-08-29  Bruno Haible  <bruno@clisp.org>
690
691         gettext: Fix recent mistake.
692         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
693
694 2010-08-29  Bruno Haible  <bruno@clisp.org>
695
696         selinux-h: Offer a --without-selinux option.
697         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
698         --without-selinux was specified, skip all tests and define
699         HAVE_SELINUX_SELINUX_H to 0.
700         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
701         set LIB_SELINUX to empty.
702         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
703         gl_LIBSELINUX. If --without-selinux was specified, replace
704         selinux/context.h.
705         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
706
707 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
708             Bruno Haible  <bruno@clisp.org>
709
710         Make the module 'realloc-gnu' work again on AIX and OSF/1.
711         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
712         of HAVE_REALLOC.
713         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
714         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
715         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
716         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
717
718 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
719             Bruno Haible  <bruno@clisp.org>
720
721         Make the module 'calloc-gnu' work again on AIX and OSF/1.
722         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
723         HAVE_CALLOC.
724         * lib/xmalloc.c: Update accordingly.
725         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
726         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
727         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
728
729 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
730             Bruno Haible  <bruno@clisp.org>
731
732         Make the module 'malloc-gnu' work again on AIX and OSF/1.
733         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
734         HAVE_MALLOC.
735         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
736         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
737         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
738
739 2010-08-29  Bruno Haible  <bruno@clisp.org>
740
741         Update modules list.
742         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
743         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
744         (String handling <string.h>): Add astrxfrm.
745         (File system functions): Add readlinkat.
746
747 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
748
749         Tests for module 'realloc-gnu'.
750         * modules/realloc-gnu-tests: New file.
751         * tests/test-realloc-gnu.c: New file.
752
753         Tests for module 'calloc-gnu'.
754         * modules/calloc-gnu-tests: New file.
755         * tests/test-calloc-gnu.c: New file.
756
757         Tests for module 'malloc-gnu'.
758         * modules/malloc-gnu-tests: New file.
759         * tests/test-malloc-gnu.c: New file.
760
761 2010-08-28  Bruno Haible  <bruno@clisp.org>
762
763         Rename module 'realloc' -> 'realloc-gnu'.
764         * modules/realloc-gnu: New file, copied from modules/realloc.
765         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
766         obsolete.
767         * modules/mgetgroups (Depends-on): Update.
768         * doc/posix-functions/realloc.texi: Update.
769         * NEWS: Mention the change.
770
771         Rename module 'calloc' -> 'calloc-gnu'.
772         * modules/calloc-gnu: New file, copied from modules/calloc.
773         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
774         obsolete.
775         * doc/posix-functions/calloc.texi: Update.
776         * NEWS: Mention the change.
777
778         Rename module 'malloc' -> 'malloc-gnu'.
779         * modules/malloc-gnu: New file, copied from modules/malloc.
780         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
781         obsolete.
782         * modules/argp (Depends-on): Update.
783         * modules/regex (Depends-on): Update.
784         * doc/posix-functions/malloc.texi: Update.
785         * NEWS: Mention the change.
786
787 2010-08-28  Eric Blake  <eblake@redhat.com>
788
789         pread, pwrite: add missing dependency
790         * modules/pread (Depends-on): Add extensions.
791         * modules/pwrite (Depends-on): Likewise.
792
793 2010-08-28  Bruno Haible  <bruno@clisp.org>
794
795         unistr/u*-strchr: Fix tests dependencies.
796         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
797         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
798         Reported by Ian Beckwith <ianb@erislabs.net>.
799
800 2010-08-28  Bruno Haible  <bruno@clisp.org>
801
802         read-file: Don't occupy too much unused memory.
803         * lib/read-file.c (fread_file): Shrink the buffer at the end.
804
805 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
806             Eric Blake  <eblake@redhat.com>
807             Bruno Haible  <bruno@clisp.org>
808
809         read-file: Avoid memory reallocations with regular files.
810         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
811         (fread_file): With regular files, use the remaining length as the
812         initial buffer size.  Check against overflow.
813         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
814         sys_stat.
815
816 2010-08-28  Bruno Haible  <bruno@clisp.org>
817
818         ftello: Relax license.
819         * modules/ftello (License): Relax to LGPLv2+.
820         Reported by Eric Blake.
821
822 2010-08-28  Bruno Haible  <bruno@clisp.org>
823
824         Avoid relocwrapper link errors due to gnulib replacement functions.
825         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
826         function.
827         Reported by Ben Pfaff <blp@cs.stanford.edu>.
828
829 2010-08-28  Bruno Haible  <bruno@clisp.org>
830
831         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
832         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
833         defined.
834         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
835         Suggested by Eric Blake.
836
837 2010-08-28  Bruno Haible  <bruno@clisp.org>
838
839         sys_socket, netdb: Ensure socklen_t gets defined.
840         * modules/sys_socket (Depends-on): Add socklen.
841         * modules/netdb (Depends-on): Likewise.
842         * modules/getaddrinfo (Depends-on): Remove socklen.
843         * modules/getsockopt (Depends-on): Likewise.
844         * modules/setsockopt (Depends-on): Likewise.
845         * tests/test-sys_socket.c: Check that socklen_t is defined.
846         * tests/test-netdb.c: Likewise.
847         * m4/socklen.m4: Update comments.
848         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
849
850 2010-08-27  Eric Blake  <eblake@redhat.com>
851
852         login_tty: add missing dependency
853         * modules/login_tty (Depends-on): Add pty.
854
855 2010-08-26  Eric Blake  <eblake@redhat.com>
856
857         lib-symbol-versions: fix m4 quoting
858         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
859         format for AC_LINK_IFELSE.
860
861         glob: fix compile test
862         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
863
864         btowc: fix missing file
865         * modules/btowc (Files): Also ship locale-fr.m4.
866
867         lseek: fix link test
868         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
869         AC_LINK_IFELSE.
870
871         include_next: silence autoconf 2.68 warning
872         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
873         AC_COMPILE_IFELSE as special.
874         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
875         autoconf < 2.68.
876
877         acl: fix compilation test
878         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
879         AC_COMPILE_IFELSE.
880
881 2010-08-26  Bruno Haible  <bruno@clisp.org>
882
883         Modernize AC_TRY_RUN invocations.
884         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
885         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
886         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
887         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
888         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
889         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
890         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
891         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
892         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
893         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
894         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
895         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
896         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
897         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
898         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
899         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
900         gl_MBRLEN_NUL_RETVAL): Likewise.
901         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
902         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
903         Likewise.
904         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
905         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
906         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
907         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
908         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
909         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
910         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
911         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
912         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
913         Likewise.
914         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
915         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
916         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
917         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
918         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
919         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
920         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
921         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
922         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
924
925 2010-08-26  Bruno Haible  <bruno@clisp.org>
926
927         Modernize AC_TRY_LINK invocations.
928         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
929         AC_TRY_LINK.
930         * m4/argp.m4 (gl_ARGP): Likewise.
931         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
932         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
933         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
934         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
935         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
936         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
937         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
938         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
939         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
940         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
941         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
942         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
943         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
944         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
945         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
946         * m4/hostent.m4 (gl_HOSTENT): Likewise.
947         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
948         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
949         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
950         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
951         Likewise.
952         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
953         Likewise.
954         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
955         Likewise.
956         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
957         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
958         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
959         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
960         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
961         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
962         * m4/servent.m4 (gl_SERVENT): Likewise.
963         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
964         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
965         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
966         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
967         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
968         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
969         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
970         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
971         * modules/tsearch-tests (configure.ac): Likewise.
972
973 2010-08-26  Bruno Haible  <bruno@clisp.org>
974
975         Modernize AC_TRY_COMPILE invocations.
976         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
977         AC_TRY_COMPILE.
978         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
979         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
980         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
981         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
982         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
983         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
984         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
985         * m4/lock.m4 (gl_LOCK): Likewise.
986         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
987         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
988         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
989         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
990         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
991         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
992         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
993         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
994         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
995         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
996         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
997         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
998         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
999         extraneous semicolon.
1000
1001 2010-08-26  Jim Meyering  <meyering@redhat.com>
1002
1003         stat-time: relax license LGPL
1004         * modules/stat-time (License): Change from GPL to LGPL,
1005         with consent from all contributors, for use in libguile.
1006         Requested by Ludovic Courtès.
1007
1008 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
1009
1010         poll: return immediately on POLLHUP.
1011         * lib/poll.c (poll): Always set timeout before wait_timeout is
1012         computed.
1013
1014 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1015
1016         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
1017         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
1018         rmdir ("dir/.//"), unlinkat.
1019
1020 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1021
1022         stdbool: avoid spurious failure with modern xlc
1023         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1024
1025 2010-08-24  Bruno Haible  <bruno@clisp.org>
1026
1027         getloadavg: simplify code
1028         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
1029         gl_have_func. Update comments.
1030
1031 2010-08-24  Eric Blake  <eblake@redhat.com>
1032
1033         getloadavg: don't define SVR4 on cygwin
1034         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
1035         only define SVR4 when -lkvm is required.
1036         Reported by Yaakov Selkowitz.
1037
1038 2010-08-24  Bruno Haible  <bruno@clisp.org>
1039
1040         priv-set: fix comment
1041         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
1042
1043 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1044
1045         priv-set: fix comments
1046         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
1047         to match code, as suggested by David Bartley in:
1048         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
1049
1050 2010-08-23  Eric Blake  <eblake@redhat.com>
1051
1052         stdbool: avoid rejecting clang
1053         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1054         * tests/test-stdbool.c: Enable more tests if using the system
1055         <stdbool.h> instead of the gnulib replacement.
1056         (main): Move xlc bug test to a runtime test for all compilers.
1057         Reported by Anders Kaseorg.
1058
1059         argz: fix shell quoting issue
1060         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
1061         Reported by Charles Wilson.
1062
1063 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
1064             Erik Faye-Lund <kusmabite@gmail.com>
1065
1066         poll, select: handle ERROR_BROKEN_PIPE.
1067         * lib/poll.c (win32_compute_revents): Return POLLHUP when
1068         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1069         * lib/select.c (win32_compute_revents): Do not mark a pipe
1070         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1071
1072 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
1073
1074         fts: allow compilation with C++
1075         * lib/fts_.h: Specify extern "C" linkage with C++.
1076
1077 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1078
1079         Fix gnulib-tool sed script de-commentation for AIX sed.
1080         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
1081         sed.
1082
1083 2010-08-17  Eric Blake  <eblake@redhat.com>
1084
1085         test-stddef: test for (some) offsetof bugs
1086         * tests/test-stddef.c: Enhance test to ensure correct type of
1087         offsetof.
1088         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
1089         that we are not fixing at this time.
1090
1091 2010-08-15  Bruno Haible  <bruno@clisp.org>
1092
1093         stpncpy: Allow stpncpy to be defined as a macro.
1094         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
1095         if it's already correctly declared.
1096         * lib/string.in.h (stpncpy): Undefine before redefining.
1097         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
1098
1099 2010-08-14  Bruno Haible  <bruno@clisp.org>
1100
1101         Rename module 'memxfrm' to 'amemxfrm'.
1102         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
1103         (amemxfrm): Renamed from memxfrm.
1104         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
1105         (amemxfrm): Renamed from memxfrm.
1106         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
1107         * NEWS: Mention the change.
1108         * MODULES.html.sh (String handling <string.h>): Update.
1109         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
1110         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
1111         * lib/unicase/u16-casexfrm.c: Likewise.
1112         * lib/unicase/u32-casexfrm.c: Likewise.
1113         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
1114         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
1115         * lib/uninorm/u16-normxfrm.c: Likewise.
1116         * lib/uninorm/u32-normxfrm.c: Likewise.
1117         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
1118         memxfrm.
1119         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
1120         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
1121         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
1122         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
1123         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
1124         Suggested by Paul Eggert.
1125
1126 2010-08-14  Bruno Haible  <bruno@clisp.org>
1127
1128         Tests for module 'astrxfrm'.
1129         * modules/astrxfrm-tests: New file.
1130         * tests/test-astrxfrm.c: New file.
1131
1132         New module 'astrxfrm'.
1133         * lib/astrxfrm.h: New file.
1134         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
1135         * modules/astrxfrm: New file.
1136
1137 2010-08-14  Reuben Thomas <rrt@sc3d.org>
1138
1139         regex: Tweak doc.
1140         * doc/regex.texi (Overview): Don't mention regex.c.
1141         (GNU Regular Expression Compiling): Likewise.
1142         (Match-end-of-line Operator): Mention 'not_eol'.
1143
1144 2010-08-14  Brian Gough  <bjg@gnu.org>
1145             Bruno Haible  <bruno@clisp.org>
1146
1147         git-merge-changelog: add doc relating to use with bzr and hg.
1148         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
1149
1150 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
1151
1152         pthread: fix pthread.h creation for srcdir != builddir
1153         * modules/pthread (Makefile.am): Fix the rule to work also in a
1154         non-srcdir build.
1155
1156 2010-08-13  Karl Berry  <karl@gnu.org>
1157
1158         * doc/regex.texi (Predefined Syntaxes): @smallexample.
1159         * doc/posix-*/*: force line break before @url of POSIX
1160         specifications.
1161         Suggested by Werner Lemberg.
1162
1163 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1164
1165         strtod: fix const diagnostic
1166         * lib/strtod.c (strtod): Don't assign const char * to char *,
1167         as this elicits a warning from GCC when warnings are enabled.
1168
1169 2010-08-10  Pádraig Brady <P@draigbrady.com>
1170         and Eric Blake  <eblake@redhat.com>
1171
1172         copy-acl: ignore ENOTSUP on HP-UX
1173         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
1174         so that it is available for HP-UX.
1175         * lib/copy-acl.c (qcopy_acl): Use it.
1176         Reported by Patrick M. Callahan.
1177
1178 2010-08-10  Eric Blake  <eblake@redhat.com>
1179
1180         open, chown: relax license
1181         * modules/open (License): Change to LGPLv2+, with consent by all
1182         authors, for use in augeas.
1183         * modules/chown (License): Likewise.
1184         * modules/lchown (Likewise): Likewise.
1185         Requested by Adam Stokes.
1186
1187 2010-08-09  Karl Berry  <karl@gnu.org>
1188
1189         * build-aux/ar-lib: new file, import from Automake.
1190         * config/srclist.txt: autocheck for updates.
1191
1192 2010-08-09  Eric Blake  <eblake@redhat.com>
1193
1194         readlinkat: adjust client modules
1195         * modules/areadlinkat (Depends-on): Use readlinkat, not
1196         symlinkat.
1197         * modules/areadlinkat-with-size (Depends-on): Likewise.
1198
1199         mknod: be more vocal about danger of running tests as root
1200         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
1201         root, since that is just asking for problems.
1202         Suggested by Bruno Haible, based on a report by Rainer Tammer.
1203
1204         readlinkat: split into its own module
1205         * modules/symlinkat: Split readlinkat...
1206         * modules/readlinkat: ...into separate module.
1207         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
1208         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
1209         * lib/symlinkat.c (readlinkat): Move...
1210         * lib/readlinkat.c: ...into new file.
1211         * modules/symlinkat-tests: Split readlinkat test...
1212         * modules/readlinkat-tests: ...into separate module.
1213         * tests/test-symlinkat.c: Split...
1214         * tests/test-readlinkat.c: ...into new file.
1215         * NEWS: Document the split.
1216         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1217         * lib/unistd.in.h (readlinkat): Likewise.
1218         Suggested by Bruno Haible.
1219
1220 2010-08-08  Bruno Haible  <bruno@clisp.org>
1221
1222         memxfrm: Speed up.
1223         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
1224         that usually only one call to strxfrm is necessary for each string
1225         part.
1226         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1227
1228 2010-08-07  Karl Berry  <karl@gnu.org>
1229
1230         * doc/posix-headers/limits.texi,
1231         * doc/posix-functions/malloc.texi,
1232         * doc/posix-functions/strsignal.texi: missing @item.
1233         * doc/ld-version-script.texi: spurious leading i.
1234         * doc/regex.texi (Interval Operators): no commas inside @var.
1235
1236 2010-08-01  Bruno Haible  <bruno@clisp.org>
1237
1238         Integrate the regex documentation.
1239         * doc/gnulib.texi: Define 'cn' index.
1240         (Regular expressions): New a chapter that includes regex.texi and
1241         regexprops-generic.texi.
1242         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
1243         syntax.
1244
1245         Whitespace cleanup.
1246         * doc/regex.texi: Remove trailing spaces.
1247
1248         Add regex documentation.
1249         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
1250         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
1251         Written by Kathy A. Hargreaves and Karl Berry.
1252
1253 2010-08-01  Bruno Haible  <bruno@clisp.org>
1254
1255         link: Update documentation.
1256         * doc/posix-functions/link.texi: Update regarding Solaris.
1257
1258 2010-07-31  Bruno Haible  <bruno@clisp.org>
1259
1260         Update modules list.
1261         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
1262         (String handling <string.h>): Add memcmp2, memxfrm.
1263         (Container data structures): Add xlist, xsublist, xoset.
1264         (Core language properties): Add alignof, unused-parameter.
1265         (Process control, Numeric conversion functions <stdlib.h>): Renamed
1266         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
1267         (Unibyte characters <ctype.h>): New section.
1268         (String handling <string.h>): New section.
1269         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
1270         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
1271         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
1272         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
1273         tan, tanh, tanl, y0, y1, yn.
1274         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
1275         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
1276         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
1277         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
1278         unlockpt, vdprintf, vdprintf-posix.
1279         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
1280         (File system functions): Add concat-filename, sys_file, sys_ioctl,
1281         xconcat-filename.
1282         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
1283         getdtablesize, pipe2, pipe2-safer.
1284         (Security): New section.
1285         (Networking functions): Add accept4.
1286         (Signal handling): Add sigpipe.
1287         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
1288         mbmemcasecoll.
1289         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
1290         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
1291         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
1292         pipe-filter-ii.
1293         (Misc): Add argp-version-etc, login_tty, parse-duration.
1294
1295 2010-07-31  Bruno Haible  <bruno@clisp.org>
1296
1297         Improve doc in MODULES.html.
1298         * modules/linkat (Description): Add the word "function".
1299         * modules/mkfifo (Description): Likewise.
1300         * modules/mknod (Description): Likewise.
1301         * modules/remove (Description): Likewise.
1302         * modules/renameat (Description): Likewise.
1303         * modules/stat (Description): Likewise.
1304         * modules/symlink (Description): Likewise.
1305         * modules/unlink (Description): Likewise.
1306
1307 2010-07-31  Bruno Haible  <bruno@clisp.org>
1308
1309         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
1310         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
1311         option --enable/disable-c++ instead of --enable/disable-cxx.
1312         * NEWS: Mention the change.
1313
1314 2010-07-31  Bruno Haible  <bruno@clisp.org>
1315
1316         readlink, areadlink: Relax test a bit.
1317         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
1318         alternative to ENOTDIR.
1319         * tests/test-areadlink.h (test_areadlink): Likewise.
1320         Reported by Rainer Tammer.
1321
1322 2010-07-31  Bruno Haible  <bruno@clisp.org>
1323
1324         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
1325         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
1326         character, perform the search using U_STRCHR.
1327         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
1328         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
1329         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
1330         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
1331         Suggested by Paolo Bonzini.
1332
1333 2010-07-31  Bruno Haible  <bruno@clisp.org>
1334
1335         unistr/u*-strstr: Fix dependencies.
1336         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
1337         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
1338         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
1339
1340 2010-07-31  Bruno Haible  <bruno@clisp.org>
1341
1342         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
1343         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
1344         the beginning of the loop.
1345         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
1346         cases in 'switch' statement.
1347
1348         unistr/u8-strchr: Fix several bugs.
1349         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
1350         the string. When not found, return NULL, not a pointer near the end.
1351
1352         More tests for unistr/u8-strchr.
1353         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
1354         that the function does not read past the first occurrence of the byte
1355         being searched.
1356         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
1357         * tests/unistr/test-u16-strchr.c (main): New function.
1358         * tests/unistr/test-u32-strchr.c (main): New function.
1359
1360 2010-07-31  Bruno Haible  <bruno@clisp.org>
1361
1362         posix-modules: Ignore backup files of documentation files.
1363         * posix-modules: grep only through files named *.texi.
1364
1365 2010-07-31  Bruno Haible  <bruno@clisp.org>
1366
1367         symlinkat: Fix documentation.
1368         * doc/posix-functions/readlinkat.texi: Fix module name.
1369
1370 2010-07-31  Bruno Haible  <bruno@clisp.org>
1371
1372         fchownat: Replace also when chown has the trailing slash bug.
1373         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
1374         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
1375         introduced on 2010-04-10.
1376         Reported by Rainer Tammer.
1377
1378 2010-07-31  Bruno Haible  <bruno@clisp.org>
1379
1380         linkat: Work around AIX 7.1 bug.
1381         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
1382         whether linkat handles trailing slash correctly. If not, replace linkat
1383         and define LINKAT_TRAILING_SLASH_BUG.
1384         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
1385         check whether (fd1,file1) points to a directory if file1 or file2 ends
1386         in a slash. Code taken from lib/link.c.
1387         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
1388         Reported by Rainer Tammer.
1389
1390 2010-07-31  Bruno Haible  <bruno@clisp.org>
1391
1392         Correctly determine whether pow is available in libc on AIX 7 with xlc.
1393         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
1394         This disables an xlc optimization that was causing wrong test results.
1395         Reported by Rainer Tammer.
1396
1397 2010-07-31  Bruno Haible  <bruno@clisp.org>
1398
1399         iconv: Work around AIX 6.1..7.1 bug.
1400         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
1401         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
1402         cross-compiling, guess no on all versions of AIX.
1403         Reported by Rainer Tammer.
1404
1405 2010-07-31  Bruno Haible  <bruno@clisp.org>
1406
1407         readlink: Relax test a bit.
1408         * tests/test-readlink.h (test_readlink): Allow different errno value
1409         when readlink is called with a file name that ends in / and refers to
1410         a file.
1411         Suggested by Eric Blake.
1412         Reported by Rainer Tammer.
1413
1414 2010-07-31  Bruno Haible  <bruno@clisp.org>
1415
1416         copysign: Does not require -lm on glibc systems.
1417         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
1418         gl_COMMON_DOUBLE_MATHFUNC.
1419         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
1420
1421 2010-07-31  Bruno Haible  <bruno@clisp.org>
1422
1423         duplocale: Work around AIX 7.1 bug.
1424         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
1425         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
1426         * lib/duplocale.c (rpl_duplocale): Update comment.
1427         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
1428         Reported by Rainer Tammer.
1429
1430 2010-07-30  Bruno Haible  <bruno@clisp.org>
1431
1432         dirfd: Avoid link error on AIX 7.1.
1433         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
1434         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
1435         exist, set REPLACE_DIRFD.
1436         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
1437         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
1438         * doc/posix-functions/dirfd.texi: Update.
1439         Reported by Rainer Tammer.
1440
1441 2010-07-30  Eric Blake  <eblake@redhat.com>
1442
1443         strtod: next round of AIX fixes
1444         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
1445         exponent.
1446         * tests/test-strtod.c (main): Enhance tests.
1447         * doc/posix-functions/strtod.texi (strtod): Document next bug.
1448         Reported by Rainer Tammer.
1449
1450         futimens: fix configure check
1451         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
1452         Reported by Bruno Haible.
1453
1454 2010-07-30  Bruno Haible  <bruno@clisp.org>
1455
1456         getline: Update regarding AIX.
1457         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
1458         Reported by Rainer Tammer.
1459
1460 2010-07-30  Bruno Haible  <bruno@clisp.org>
1461
1462         wcwidth: Drop replacement on AIX 7.
1463         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
1464         AIX 7.
1465         Reported by Rainer Tammer.
1466
1467 2010-07-30  Bruno Haible  <bruno@clisp.org>
1468
1469         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
1470         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
1471         a 'char *'.
1472         Reported by Rainer Tammer.
1473
1474 2010-07-30  Bruno Haible  <bruno@clisp.org>
1475
1476         unlink: Update regarding AIX.
1477         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
1478         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
1479         Reported by Rainer Tammer.
1480
1481 2010-07-30  Bruno Haible  <bruno@clisp.org>
1482
1483         symlink: Update regarding AIX.
1484         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
1485         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
1486         Reported by Rainer Tammer.
1487
1488 2010-07-30  Bruno Haible  <bruno@clisp.org>
1489
1490         strndup: Update regarding AIX.
1491         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
1492         AIX 7.
1493         Reported by Rainer Tammer.
1494
1495 2010-07-30  Bruno Haible  <bruno@clisp.org>
1496
1497         stat: Update regarding AIX.
1498         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
1499         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
1500         Reported by Rainer Tammer.
1501
1502 2010-07-30  Bruno Haible  <bruno@clisp.org>
1503
1504         truncl: Fix autoconf test.
1505         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
1506         whether truncl works.
1507         Reported by Rainer Tammer.
1508
1509 2010-07-30  Bruno Haible  <bruno@clisp.org>
1510
1511         round: Update regarding AIX.
1512         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
1513         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
1514         Reported by Rainer Tammer.
1515
1516 2010-07-30  Bruno Haible  <bruno@clisp.org>
1517
1518         rename: Update regarding AIX.
1519         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
1520         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
1521         Reported by Rainer Tammer.
1522
1523 2010-07-30  Bruno Haible  <bruno@clisp.org>
1524
1525         printf.m4: Update regarding AIX.
1526         * m4/printf.m4: Update comments regarding AIX.
1527         Reported by Rainer Tammer.
1528
1529 2010-07-30  Bruno Haible  <bruno@clisp.org>
1530
1531         iconv: Update regarding AIX.
1532         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
1533         AIX 7.
1534         Reported by Rainer Tammer.
1535
1536 2010-07-30  Bruno Haible  <bruno@clisp.org>
1537
1538         getopt: Update regarding AIX.
1539         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
1540         no on AIX.
1541         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
1542         Reported by Rainer Tammer.
1543
1544 2010-07-30  Bruno Haible  <bruno@clisp.org>
1545
1546         ldexpl; Update regarding AIX.
1547         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
1548         on AIX 7.
1549         Reported by Rainer Tammer.
1550
1551 2010-07-30  Bruno Haible  <bruno@clisp.org>
1552
1553         frexpl: Update regarding AIX.
1554         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
1555         on AIX 7.
1556         Reported by Rainer Tammer.
1557
1558 2010-07-30  Bruno Haible  <bruno@clisp.org>
1559
1560         open, fopen: Update regarding AIX.
1561         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
1562         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1563         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
1564         * doc/posix-functions/fopen.texi: Likewise.
1565         Reported by Rainer Tammer.
1566
1567 2010-07-30  Bruno Haible  <bruno@clisp.org>
1568
1569         chown: Update doc regarding AIX.
1570         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
1571         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
1572         Reported by Rainer Tammer.
1573
1574 2010-07-30  Eric Blake  <eblake@redhat.com>
1575
1576         strtod: fix bug in replacement function on AIX
1577         * lib/strtod.c (strtod): Special case broken "0x" parse in
1578         underlying strtod.
1579         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
1580         * doc/posix-functions/strtod.texi (strtod): Likewise.
1581         Reported by Rainer Tammer.
1582
1583 2010-07-30  Bruno Haible  <bruno@clisp.org>
1584
1585         mbrlen: Fix cross-compilation guess for AIX.
1586         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1587         guess. Leftover from 2008-12-22.
1588
1589 2010-07-30  Bruno Haible  <bruno@clisp.org>
1590
1591         mbrtowc: Fix cross-compilation guess for AIX.
1592         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1593         guess. Leftover from 2008-12-21.
1594
1595 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1596
1597         init.sh: work around trap limitation of some shells
1598         * tests/init.sh (setup_): Move exit trap outside of shell function.
1599
1600 2010-07-29  Eric Blake  <eblake@redhat.com>
1601
1602         strtod: aid debugging
1603         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1604         understanding why strtod is rejected.
1605
1606 2010-07-28  Bruno Haible  <bruno@clisp.org>
1607
1608         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1609         * lib/unistr/u8-chr.c: Include <string.h>.
1610         * tests/unistr/test-u8-chr.c: Likewise.
1611         * tests/unistr/test-u16-chr.c: Likewise.
1612         * tests/unistr/test-u32-chr.c: Likewise.
1613         * tests/unistr/test-u8-strchr.c: Likewise.
1614         * tests/unistr/test-u16-strchr.c: Likewise.
1615         * tests/unistr/test-u32-strchr.c: Likewise.
1616         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1617         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1618         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1619         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1620
1621 2010-07-28  Bruno Haible  <bruno@clisp.org>
1622
1623         Use spaces for indentation, not tabs.
1624         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1625
1626 2010-07-27  Bruno Haible  <bruno@clisp.org>
1627
1628         mbspcasecmp: Fix function specification.
1629         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1630         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1631         Reported by Eric Blake <eblake@redhat.com>.
1632
1633 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1634
1635         timespec: use cast and not conditional, as truncation isn't possible
1636         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1637         instead of a conditional.  Comment about the situation in more detail.
1638         This undoes most of the 2009-10-29 patch.
1639
1640 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1641
1642         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1643         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1644         * lib/unistr/u8-strchr.c: Likewise.
1645         * modules/unistr/u8-chr: Depend on memchr.
1646
1647         unistr/u*-strchr: add tests
1648         * modules/unistr/u8-strchr-tests: New file.
1649         * modules/unistr/u16-strchr-tests: New file.
1650         * modules/unistr/u32-strchr-tests: New file.
1651         * tests/unistr/test-strchr.h: New file.
1652         * tests/unistr/test-u8-strchr.c: New file.
1653         * tests/unistr/test-u16-strchr.c: New file.
1654         * tests/unistr/test-u32-strchr.c: New file.
1655
1656         unistr/u*-chr: test multibyte sequences more
1657         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1658         test vector.
1659         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1660         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1661         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1662
1663         unistr/u*-chr: test multibyte sequences
1664         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1665
1666         unistr/u*-chr: prepare for multibyte tests
1667         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1668         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1669         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1670         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1671         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1672         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1673
1674 2010-07-18  Bruno Haible  <bruno@clisp.org>
1675
1676         unistr/u8-strchr: Optimize non-ASCII argument case.
1677         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1678         because the first byte often matches anyway.
1679         Reported by Pádraig Brady <P@draigbrady.com>.
1680
1681 2010-07-15  Karl Berry  <karl@gnu.org>
1682
1683         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1684
1685 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1686
1687         getcwd: on Solaris, work better if ancestors are inaccessible
1688         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1689         buffer and size, try again with a large buffer.  This works better
1690         on Solaris, since its getcwd succeeds even if the path to the root
1691         is inaccessible, and this is helpful in common cases such as .zfs
1692         hidden directories.  Problem reported by J Chapman Flack in
1693         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1694         Use system getcwd if it's declared, not merely if it's partly
1695         working; use the partly-working test only to avoid needless effort
1696         if the system getcwd fails.
1697         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1698         comment that was already obsolete and is now even more obsolete.
1699         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1700         now might call strdup.
1701
1702 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1703
1704         pthread: Add enough so that coreutils/src/sort.c compiles.
1705         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1706         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1707         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1708         Include <sys/types.h>, in case it defines pthread_t.
1709         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1710         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1711         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1712         (pthread_rwlockattr_t, pthread_spinlock_t):
1713         New typedefs, if HAVE_PTHREAD_T is not defined.
1714         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1715         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1716         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1717         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1718         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1719         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1720         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1721         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1722         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1723         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1724         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1725         New macros.
1726         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1727         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1728         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1729         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1730         (pthread_spin_unlock): New dummy functions.
1731         (pthread_create): Return EAGAIN; don't set errno.
1732         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1733         require AC_C_INLINE.
1734         * modules/pthread (Depends-on): Add sched, time.
1735         (pthread.h): Use AM_V_GEN.
1736
1737 2010-07-13  Bruno Haible  <bruno@clisp.org>
1738
1739         striconveh: Don't malloc memory if the result buffer is sufficient.
1740         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1741         buffer if its size is sufficient.
1742         Reported by Ludovic Courtès <ludo@gnu.org>.
1743
1744 2010-07-13  Bruno Haible  <bruno@clisp.org>
1745
1746         strtod: Add safety check.
1747         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1748
1749 2010-07-12  Bruno Haible  <bruno@clisp.org>
1750
1751         Unify tests that set gl_cv_func_ldexpl_no_libm.
1752         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1753         gl_FUNC_LDEXPL.
1754         (gl_FUNC_LDEXPL): Invoke it.
1755         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1756
1757 2010-07-12  Bruno Haible  <bruno@clisp.org>
1758
1759         Unify tests that set gl_cv_func_ldexp_no_libm.
1760         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1761         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1762         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1763         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1764         * modules/strtod (Files): Add m4/ldexp.m4.
1765
1766 2010-07-12  Bruno Haible  <bruno@clisp.org>
1767
1768         Unify tests that set gl_cv_func_frexpl_no_libm.
1769         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1770         gl_FUNC_FREXPL_NO_LIBM.
1771         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1772         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1773
1774 2010-07-12  Bruno Haible  <bruno@clisp.org>
1775
1776         Unify tests that set gl_cv_func_frexp_no_libm.
1777         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1778         gl_FUNC_FREXP_NO_LIBM.
1779         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1780         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1781
1782 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1783
1784         memcoll: clarify sizes versus lengths, document better, and tweak perf
1785         * lib/memcoll.c (strcoll_loop, memcoll0):
1786         Improve quality of descriptive comments.  Name variables
1787         consistently as to whether they are lengths (which do not include
1788         terminating null) versus sizes (which do).
1789         * lib/xmemcoll.c (xmemcoll0): Likewise.
1790         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1791         returned when s1size == 0; this is easier to compile and saves
1792         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1793
1794 2010-07-12  Bruno Haible  <bruno@clisp.org>
1795
1796         Tests for module '_Exit'.
1797         * modules/_Exit-tests: New file.
1798         * tests/test-_Exit.sh: New file.
1799         * tests/test-_Exit.c: New file.
1800
1801         New module '_Exit'.
1802         * lib/stdlib.in.h (__attribute__): New macro.
1803         (_Exit): New declaration.
1804         * lib/_Exit.c: New file.
1805         * m4/_Exit.m4: New file.
1806         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1807         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1808         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1809         * modules/_Exit: New file.
1810         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1811         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1812
1813 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1814
1815         strtod: make it more-accurate typically, and don't require libm
1816         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1817         Include limits.h.  Don't include string.h.
1818         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1819         (locale_isspace): New function, so that no casts are needed to
1820         check whether *s is a space.
1821         (ldexp): Provide an unused dummy if not available.
1822         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1823         (strtod): Use them.  This implementation prefers to use the
1824         underlying strtod if available, falling back on our own code
1825         only to fix known bugs.  This is more likely to produce an
1826         accurate result.  Also, it avoids the use of libm functions.
1827         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1828         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
1829         was absent, but it caused a test failure with coreutils.
1830         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
1831         with libm.
1832         * modules/strtod (Makefile.am, Link): libm is no longer needed.
1833         * modules/strtod-tests (Makefile.am): Likewise.
1834
1835 2010-07-11  Pádraig Brady  <P@draigBrady.com>
1836             Bruno Haible  <bruno@clisp.org>
1837
1838         unistr/u8-strchr: Optimize ASCII argument case.
1839         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
1840
1841 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1842
1843         (x)memcoll: minor tweaks
1844         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
1845         is after the type that it qualifies.
1846         (memcoll0): Likewise.
1847         * lib/memcoll.h (memcoll0): Likewise.
1848         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
1849         * lib/xmemcoll.h (xmemcoll0): Likewise.
1850         * lib/memcoll.c (memcoll0): Correct the comment.  This function
1851         differs from memcoll in that the NUL byte is part of the argument.
1852         Omit the abort-checks, as performance is a real issue here.  Plus,
1853         the checks were wrong anyway (an off-by-one error).  Omit local
1854         variable 'diff', as it's a bit clearer that way.
1855         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
1856         no longer needed.
1857
1858 2010-07-08  Chen Guo <chenguo4@yahoo.com>
1859
1860         (x)memcoll: speedup when input is known to be NUL delimited
1861         * lib/memcoll.c: Include stdlib.
1862         (memcoll0) New function.
1863         (strcoll_loop) New function, refactored for use in both memcoll
1864         and memcoll0.
1865         * lib/memcoll.h: Add prototype for memcoll0.
1866         * lib/xmemcoll.c: (xmemcoll0) New function.
1867         (collate_error) New function, refactored for use in both xmemcoll
1868         and xmemcoll0.
1869         * lib/xmemcoll.h: Add prototype for xmemcoll0.
1870         * m4/memcoll.m4: add inline invocation.
1871
1872 2010-07-06  Pádraig Brady  <P@draigBrady.com>
1873
1874         * build-aux/bootstrap: Remove any local translations
1875         from the translation project synchronization directory,
1876         so that local only translations are not distributed.
1877
1878 2010-07-04  Bruno Haible  <bruno@clisp.org>
1879
1880         fsusage: Clarify which code applies to which platforms.
1881         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
1882         platform.
1883         * lib/fsusage.c (get_fs_usage): Likewise.
1884
1885 2010-07-04  Bruno Haible  <bruno@clisp.org>
1886
1887         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
1888         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
1889         Reported by Martin Lambers <marlam@marlam.de>.
1890
1891 2010-07-04  Jim Meyering  <meyering@redhat.com>
1892
1893         hash: once again explicitly disallow insertion of NULL
1894         * lib/hash.c (hash_insert0): Reinstate just-removed test:
1895         inserting a NULL pointer cannot work with these functions.
1896         Add a comment with details.
1897         This reverts part of the 2010-07-01 commit, 5bef1a35
1898         "hash: extend module to deal with non-pointer keys".
1899
1900 2010-07-01  Bruno Haible  <bruno@clisp.org>
1901
1902         stdbool: Update doc.
1903         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
1904         Info from Christian Weisgerber <naddy@mips.inka.de>.
1905
1906 2010-07-01  Jim Meyering  <meyering@redhat.com>
1907
1908         hash: extend module to deal with non-pointer keys
1909         * lib/hash.c (hash_insert0): New interface, much like hash_insert
1910         but that allows insertion of non-pointer entries.
1911         Do not disallow an ENTRY value of NULL.
1912         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
1913         * lib/hash.h (hash_insert0): Declare.
1914
1915 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1916
1917         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
1918         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
1919         not present (i.e. with autoconf 2.59 and when using gettextize, not
1920         gnulib), require AC_GNU_SOURCE instead.
1921
1922 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
1923
1924         idpriv-drop: Fix tests.
1925         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
1926         not to the test-idpriv-droptemp program.
1927
1928 2010-06-29  Bruno Haible  <bruno@clisp.org>
1929
1930         string: Fix syntax error with g++ 2.96.
1931         * lib/string.in.h (__pure__): Remove definition.
1932         (_GL_ATTRIBUTE_PURE): New macro.
1933         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
1934         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
1935         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1936
1937 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
1938
1939         unitypes: Fix bug introduced on 2010-05-18.
1940         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
1941
1942 2010-06-22  Eric Blake  <eblake@redhat.com>
1943
1944         memmem: slight optimization
1945         * lib/str-two-way.h (critical_factorization): Update comments.
1946         Reduce work during factorization phase.
1947         Reported by Carlos Bueno <carlos@bueno.org>.
1948
1949 2010-06-21  Bruno Haible  <bruno@clisp.org>
1950
1951         Fix HAVE_CALLOC_POSIX misnomer.
1952         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
1953         !HAVE_CALLOC_POSIX.
1954         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
1955         HAVE_CALLOC_POSIX.
1956         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
1957         instead of HAVE_CALLOC_POSIX.
1958         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
1959         HAVE_CALLOC_POSIX.
1960
1961         Use modern idiom for calloc() replacement.
1962         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
1963         AC_FUNC_CALLOC.
1964         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
1965         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
1966         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1967         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
1968         (gl_REPLACE_CALLOC): New macro.
1969
1970 2010-06-21  Bruno Haible  <bruno@clisp.org>
1971
1972         Fix HAVE_REALLOC_POSIX misnomer.
1973         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
1974         !HAVE_REALLOC_POSIX.
1975         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
1976         HAVE_REALLOC_POSIX.
1977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
1978         instead of HAVE_REALLOC_POSIX.
1979         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
1980         HAVE_REALLOC_POSIX.
1981
1982         Use modern idiom for realloc() replacement.
1983         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
1984         AC_FUNC_REALLOC.
1985         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
1986         Autoconf's AC_FUNC_REALLOC.
1987         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1988         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
1989         (gl_REPLACE_REALLOC): New macro.
1990         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
1991
1992 2010-06-21  Bruno Haible  <bruno@clisp.org>
1993
1994         Fix HAVE_MALLOC_POSIX misnomer.
1995         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
1996         !HAVE_MALLOC_POSIX.
1997         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
1998         HAVE_MALLOC_POSIX.
1999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
2000         instead of HAVE_MALLOC_POSIX.
2001         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
2002         HAVE_MALLOC_POSIX.
2003
2004         Use modern idiom for malloc() replacement.
2005         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
2006         AC_FUNC_MALLOC.
2007         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
2008         Autoconf's AC_FUNC_MALLOC.
2009         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2010         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
2011         (gl_REPLACE_MALLOC): New macro.
2012         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2013
2014 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
2015
2016         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
2017         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
2018         This macro takes 3 arguments, not 4.
2019
2020 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
2021
2022         ipv6: fix detection under mingw
2023         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
2024         in6_addr.
2025
2026 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
2027
2028         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
2029         that strtod() works when cross-compiling to a glibc version known
2030         to work.
2031
2032 2010-06-15  Bruno Haible  <bruno@clisp.org>
2033
2034         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
2035
2036 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
2037
2038         select: Correct timeout.
2039         * lib/select.c (rpl_select): Compute wait_timeout correctly.
2040
2041 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2042
2043         git-version-gen: init shell var to avoid env var influence
2044         * build-aux/git-version-gen (v): Init shell var to empty.
2045
2046 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
2047
2048         priv-set: Don't assume that priv.h exists merely because getppriv does.
2049         See Jan Andersen's bug report about AIX 5L in
2050         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
2051         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
2052         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
2053         * lib/priv-set.h: Likewise.
2054         * tests/test-priv-set.c: Likewise.
2055
2056 2010-06-13  Bruno Haible  <bruno@clisp.org>
2057
2058         relocatable: Make it easier to test whether to install wrappers.
2059         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
2060         RELOCATABLE_VIA_WRAPPER.
2061
2062 2010-06-13  Bruno Haible  <bruno@clisp.org>
2063
2064         gnulib-tool: Display specified modules and dependencies differently.
2065         * gnulib-tool (func_show_module_list): New function.
2066         (func_import, func_create_testdir): Invoke it.
2067         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2068
2069 2010-06-13  Bruno Haible  <bruno@clisp.org>
2070
2071         gnulib-tool: Align code of func_import and func_create_testdir.
2072         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
2073         specified_modules.
2074
2075 2010-06-12  Jim Meyering  <meyering@redhat.com>
2076
2077         test-inttostr: avoid spurious failure on Solaris 9
2078         * tests/test-inttostr.c (main): Skip the test when snprintf fails
2079         to accept "%ju".  Reported by Bruno Haible.
2080
2081 2010-06-11  Jim Meyering  <meyering@redhat.com>
2082
2083         test-sys_socket: mark variables as used more readably
2084         * tests/test-sys_socket.c (main): Mark otherwise unused variables
2085         as "used" explicitly via (void) statement casts.  This is more
2086         readable than using them in an artificial return expression.
2087         Suggestion from Bruno Haible.
2088
2089 2010-06-11  Bruno Haible  <bruno@clisp.org>
2090
2091         Avoid some more warnings from "gcc -Wwrite-strings".
2092         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
2093         to 'const char *'.
2094         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
2095         * tests/test-c-strcasestr.c (main): Likewise.
2096         * tests/test-mbscasestr1.c (main): Likewise.
2097         * tests/test-mbscasestr2.c (main): Likewise.
2098         * tests/test-memmem.c (main): Likewise.
2099         * tests/test-strstr.c (main): Likewise.
2100         * tests/test-strcasestr.c (main): Likewise.
2101
2102 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2103
2104         init.sh: change framework_failure_ to fail with status 99, not 1
2105         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
2106         automake's parallel-tests rule that this is an unexpected failure,
2107         even if the test is listed in XFAIL_TESTS.
2108
2109 2010-06-11  Jim Meyering  <meyering@redhat.com>
2110
2111         test-inttostr: avoid warnings about 4-6KB literal strings
2112         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
2113         Include "macros.h", for its definition of ASSERT.
2114         (CK): s/assert/ASSERT/
2115         * modules/inttostr-tests (Files): Add macros.h.
2116
2117         init.sh: don't use $ME_ or skip_ before they are defined
2118         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
2119         their first uses.  Also hoist their companions: warn_, fail_,
2120         framework_failure_, $stderr_fileno.  Prompted by a patch from
2121         Stefano Lattarini.
2122
2123         test-sys_socket: avoid set-but-not-used warnings from gcc
2124         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
2125         avoid warning about set-but-not-used variables.
2126
2127         test-xvasprintf: avoid 'const' discard warnings
2128         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
2129         "const" when assigning from literal strings.
2130         (test_xasprintf): Add "void" in function argument list to placate
2131         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
2132
2133         tests: avoid compilation warnings in argmatch and exclude tests...
2134         in packages that define ARGMATCH_DIE_DECL, like coreutils.
2135         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
2136         Since it always exits, declare with the "noreturn" attribute.
2137         * tests/test-argmatch.c: Likewise.
2138
2139         tests: avoid 'const' discard warnings in mbsstr tests
2140         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
2141         * tests/test-mbsstr2.c (main): Likewise.
2142
2143         test-verify: avoid warning from gcc's -Wmissing-declarations
2144         * tests/test-verify.c (function): Declare to be static.
2145
2146         test-inttostr.c: include <string.h> for use of strcmp
2147         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
2148
2149         test-linkat: avoid failed assertion on "other" architectures
2150         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
2151         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
2152         sparc: https://bugs.launchpad.net/bugs/591968
2153
2154 2010-06-11  Jim Meyering  <meyering@redhat.com>
2155
2156         printf.m4: avoid autoconf's "Expanded Before Required" warning
2157         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
2158         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
2159         autoconf warning.
2160
2161 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
2162
2163         Replacement header templates are now named with ".in", not "_".
2164         * doc/gnulib-intro.texi: Correct.
2165
2166 2010-06-10  Jim Meyering  <meyering@redhat.com>
2167
2168         inttostr-tests: depend on snprintf, not snprintf-posix
2169         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
2170         snprintf-posix, to avoid this aclocal failure:
2171           missing file gnulib-tests/vasnprintf.c
2172           configure.ac:45: error: expected source file, required through \
2173           AC_LIBSOURCES, not found
2174
2175 2010-06-10  Jim Meyering  <meyering@redhat.com>
2176
2177         inttostr: add a new function, inttostr, and tests
2178         The namesake function was not available.  The existence of the
2179         template file, inttostr.c makes its addition nontrivial.
2180         * lib/anytostr.c: Rename from inttostr.c.
2181         (anytostr): Rename from inttostr.
2182         * lib/inttostr.c: New file.
2183         * modules/inttostr (Files): Add anytostr.c.
2184         (Makefile.am): Set lib_SOURCES instead of ...
2185         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
2186         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
2187         * lib/offtostr.c: Likewise.
2188         * lib/uinttostr.c: Likewise.
2189         * lib/umaxtostr.c: Likewise.
2190         * modules/inttostr-tests: New file.
2191         * tests/test-inttostr.c: New file.  Test these functions.
2192
2193 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
2194             Bruno Haible  <bruno@clisp.org>
2195
2196         Add "Extending Gnulib" chapter to manual.
2197         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
2198         chapter.
2199         (Extending Gnulib): New chapter.
2200         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
2201         chapter.
2202
2203 2010-06-09  Bruno Haible  <bruno@clisp.org>
2204
2205         Avoid relocwrapper link errors due to gnulib replacement functions.
2206         * lib/areadlink.c: Use the system's malloc, realloc functions.
2207         (areadlink): Set errno to ENOMEM explicitly.
2208         * modules/areadlink (Depends-on): Remove malloc-posix.
2209         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2210
2211 2010-06-09  Bruno Haible  <bruno@clisp.org>
2212
2213         Avoid relocwrapper link errors due to gnulib replacement functions.
2214         * lib/canonicalize-lgpl.c: Use the system's malloc function.
2215         * lib/malloca.c: Likewise.
2216         * lib/relocatable.c: Likewise.
2217         * lib/progreloc.c: Use the system's malloc, sprintf functions.
2218         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
2219         * lib/setenv.c: Use the system's malloc, realloc functions.
2220         * lib/strerror.c: Use the system's sprintf function.
2221         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2222
2223 2010-06-04  Bruno Haible  <bruno@clisp.org>
2224
2225         Prefer documented low-level autoconf macro names.
2226         * m4/lib-link.m4: Use m4_translit instead of translit.
2227         * m4/environ.m4: Likewise.
2228         * m4/mathfunc.m4: Likewise.
2229         * m4/onceonly.m4: Likewise.
2230         * m4/stdint.m4: Likewise.
2231         Suggested by Eric Blake.
2232
2233 2010-06-04  Martin Lambers  <marlam@marlam.de>
2234             Bruno Haible  <bruno@clisp.org>
2235
2236         havelib: Allow library names with '+' characters.
2237         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2238         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
2239
2240 2010-06-09  Bruno Haible  <bruno@clisp.org>
2241
2242         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
2243         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
2244         realloc failed.
2245
2246 2010-06-08  Peter Simons  <simons@cryp.to>
2247
2248         maint.mk: make the news-check rule more configurable
2249         * top/maint.mk (news-check-lines-spec) New variable.
2250         (news-check): Use "sed -n 1,10p" in place of "head".
2251
2252 2010-06-07  Jim Meyering  <meyering@redhat.com>
2253
2254         do-release-commit-and-tag: fix typo in --help
2255         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
2256
2257         regex: avoid new dead-code warning with gcc-4.6.0
2258         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
2259         if-block containing a while-loop.  It's been unused for at least
2260         5 years.
2261
2262 2010-06-05  Bruno Haible  <bruno@clisp.org>
2263
2264         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
2265         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
2266
2267 2010-06-04  Bruno Haible  <bruno@clisp.org>
2268
2269         Update to GNU gettext 0.18.1.
2270         * modules/gettext (configure.ac): Require gettext infrastructure from
2271         version 0.18.1.
2272
2273 2010-06-03  Bruno Haible  <bruno@clisp.org>
2274
2275         Don't use AC_LIBOBJ with file names in subdirectories.
2276         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
2277         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
2278         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
2279         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
2280         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
2281         gl_LIBUNISTRING_LIBSOURCE.
2282         (Makefile.am): Augment lib_SOURCES here, conditionally.
2283         * NEWS: Drop requirement for Automake option 'subdir-objects'.
2284
2285 2010-06-03  Bruno Haible  <bruno@clisp.org>
2286
2287         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
2288         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
2289         expansion does not end with a newline.
2290         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
2291         unnecessary newline.
2292
2293 2010-06-03  Bruno Haible  <bruno@clisp.org>
2294
2295         Reduce dependencies.
2296         * tests/test-quotearg.h: New file, extracted from
2297         tests/test-quotearg.c.
2298         * tests/test-quotearg-simple.c: New file, extracted from
2299         tests/test-quotearg.c.
2300         * tests/test-quotearg.c: Don't include <ctype.h>.
2301         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
2302         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
2303         use_quote_double_quotes, use_quotearg_colon): Moved to
2304         tests/test-quotearg.h.
2305         (results_g, flag_results, custom_quotes, custom_results): Moved
2306         to tests/test-quotearg-simple.c.
2307         (main): Moved the part that does not depend on gettext to
2308         tests/test-quotearg-simple.c. Return 77 if the test cannot be
2309         performed.
2310         * modules/quotearg-simple: New file.
2311         * modules/quotearg-simple-tests: New file.
2312         * modules/quotearg (Depends-on): Add quotearg-simple.
2313         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
2314         (Files): Add tests/test-quotearg.h.
2315         Reported by Paolo Bonzini.
2316
2317 2010-06-03  Bruno Haible  <bruno@clisp.org>
2318
2319         Reduce dependencies.
2320         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
2321
2322 2010-06-03  Bruno Haible  <bruno@clisp.org>
2323
2324         time: Undefine more broken macros.
2325         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
2326         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
2327         Reported by Eric Blake.
2328
2329 2010-06-03  Bruno Haible  <bruno@clisp.org>
2330
2331         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
2332         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
2333         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
2334         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
2335         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
2336         Reported by Ludovic Courtès <ludo@gnu.org>.
2337
2338 2010-06-02  Eric Blake  <eblake@redhat.com>
2339
2340         time: work with mingw + pthreads-win32 library
2341         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
2342         if timespec is defined only in pthread.h.
2343         * modules/time (Makefile.am): Substitute it.
2344         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
2345         <pthread.h>, when needed.
2346         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
2347         from the library.
2348
2349 2010-05-31  Bruno Haible  <bruno@clisp.org>
2350
2351         Avoid expanding two macros in the wrong order.
2352         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
2353         gl_LIBUNISTRING if it is defined.
2354         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
2355         autoconf >= 2.64.
2356         Reported by Ludovic Courtès <ludo@gnu.org>.
2357
2358 2010-05-27  Jim Meyering  <meyering@redhat.com>
2359
2360         maint.mk: also prohibit "#undef" of always-defined symbols
2361         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
2362         Allow more than one space before the symbol name.
2363         (sc_prohibit_always-defined_macros): Use grep's -E, now that
2364         the regexp uses alternation.
2365
2366 2010-05-26  Eric Blake  <eblake@redhat.com>
2367
2368         maint.mk: avoid echo -e
2369         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
2370         Convert all uses of echo -* to printf.
2371         Reported by Matthias Bolte.
2372
2373 2010-05-25  Bruno Haible  <bruno@clisp.org>
2374
2375         Update to GNU gettext 0.18, part 2.
2376         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
2377         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
2378
2379 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2380
2381         Add missing include in test-pwrite.c.
2382         * tests/test-pwrite.c: Include string.h, for strcmp.
2383
2384 2010-05-24  Bruno Haible  <bruno@clisp.org>
2385
2386         * NEWS: Mention requirement for Automake option 'subdir-objects'.
2387
2388 2010-05-24  Bruno Haible  <bruno@clisp.org>
2389
2390         Don't use conversion with transliteration in u{8,16,32}_strcoll.
2391         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
2392         iconveh_error argument.
2393         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
2394         U_STRCONV_TO_LOCALE.
2395         * lib/unistr/u16-strcoll.c: Likewise.
2396         * lib/unistr/u32-strcoll.c: Likewise.
2397         * modules/unistr/u8-strcoll (Depends-on): Add
2398         uniconv/u8-strconv-to-enc, localcharset. Remove
2399         uniconv/u8-strconv-to-locale.
2400         (configure.ac): Bump version number.
2401         * modules/unistr/u16-strcoll (Depends-on): Add
2402         uniconv/u16-strconv-to-enc, localcharset. Remove
2403         uniconv/u16-strconv-to-locale.
2404         (configure.ac): Bump version number.
2405         * modules/unistr/u32-strcoll (Depends-on): Add
2406         uniconv/u32-strconv-to-enc, localcharset. Remove
2407         uniconv/u32-strconv-to-locale.
2408         (configure.ac): Bump version number.
2409
2410 2010-05-24  Bruno Haible  <bruno@clisp.org>
2411
2412         Avoid a test failure on NetBSD 5.0.
2413         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
2414         an iconv() bug.
2415
2416 2010-05-24  Bruno Haible  <bruno@clisp.org>
2417
2418         Adjust #include directive style.
2419         * modules/regex (Includes): Recommend to write <regex.h>.
2420
2421 2010-05-24  Bruno Haible  <bruno@clisp.org>
2422
2423         regex: Don't require alloca.
2424         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
2425         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
2426         only inside if (0).
2427
2428 2010-05-23  Jim Meyering  <meyering@redhat.com>
2429
2430         test-renameat.c: include <sys/stat.h>
2431         * tests/test-renameat.c: Include <sys/stat.h>; required for
2432         definition of S_IS* macros.
2433
2434 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
2435
2436         Update maintainer documentation for 'relocatable-prog' module.
2437         * doc/relocatable-maint.texi: Update.
2438         Comments by Bruno Haible.
2439
2440 2010-05-23  Bruno Haible  <bruno@clisp.org>
2441
2442         git-merge-changelog: Enable --split-merged-entry by default.
2443         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
2444         (usage): Don't mention this option any more.
2445         Reported by Ralf Wildenhues.
2446
2447 2010-05-23  Jim Meyering  <meyering@redhat.com>
2448
2449         test-pwrite: do not leave behind a test file named "out"
2450         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
2451         The trivial-looking use of init.sh is really necessary.
2452         It ensures that the temporary file, "out", is created in
2453         a temporary directory, and removed upon termination.
2454         * tests/test-pwrite.sh: Re-add file.
2455         * modules/pwrite-tests: Reference it.
2456
2457 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2458
2459         Fix output redirection buglet in init.sh.
2460         * tests/init.sh: Fix redirection of stderr.
2461
2462 2010-05-20  Simon Josefsson  <simon@josefsson.org>
2463
2464         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
2465
2466 2010-05-17  Simon Josefsson  <simon@josefsson.org>
2467
2468         * modules/valgrind-tests: New file.
2469         * m4/valgrind-tests.m4: New file.
2470         * doc/valgrind-tests.texi: New file.
2471         * doc/gnulib.texi (Running self-tests under valgrind): New
2472         section.
2473
2474 2010-05-19  Bruno Haible  <bruno@clisp.org>
2475
2476         Clean up dead code in recent commit.
2477         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
2478         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
2479         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
2480         Suggested by Paolo Bonzini.
2481
2482 2010-05-19  Bruno Haible  <bruno@clisp.org>
2483
2484         Avoid valgrind error reports from libunistring.
2485         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
2486         * modules/libunistring (Files): Add it.
2487         * modules/libunistring-optional (Files): Likewise.
2488
2489 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
2490             Bruno Haible  <bruno@clisp.org>
2491
2492         New module 'libunistring-optional'.
2493         * modules/libunistring-optional: New file.
2494         * m4/libunistring-base.m4: New file.
2495         * m4/libunistring-optional.m4: New file.
2496         * lib/unicase.in.h: Renamed from lib/unicase.h.
2497         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
2498         * lib/unictype.in.h: Renamed from lib/unictype.h.
2499         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
2500         * lib/uniname.in.h: Renamed from lib/uniname.h.
2501         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
2502         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
2503         * lib/unistr.in.h: Renamed from lib/unistr.h.
2504         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
2505         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
2506         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
2507         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
2508         gl_LIBUNISTRING. If the library was found, determine the installed
2509         version and set LIBUNISTRING_VERSION.
2510         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
2511         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
2512         handle a configuration option --with-included-libunistring.
2513         * modules/libunistring (Files): Add m4/absolute-header.m4.
2514         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
2515         Add m4/libunistring-base.m4.
2516         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2517         (Makefile.am): Build unicase.h from unicase.in.h.
2518         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
2519         Add m4/libunistring-base.m4.
2520         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2521         (Makefile.am): Build uniconv.h from uniconv.in.h.
2522         * modules/unictype/base (Files): Use unictype.in.h instead of
2523         unictype.h. Add m4/libunistring-base.m4.
2524         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2525         (Makefile.am): Build unictype.h from unictype.in.h.
2526         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
2527         Add m4/libunistring-base.m4.
2528         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2529         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
2530         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
2531         Add m4/libunistring-base.m4.
2532         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2533         (Makefile.am): Build uniname.h from uniname.in.h.
2534         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
2535         Add m4/libunistring-base.m4.
2536         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2537         (Makefile.am): Build uninorm.h from uninorm.in.h.
2538         * modules/unistdio/base (Files): Use unistdio.in.h instead of
2539         unistdio.h. Add m4/libunistring-base.m4.
2540         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2541         (Makefile.am): Build unistdio.h from unistdio.in.h.
2542         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
2543         Add m4/libunistring-base.m4.
2544         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2545         (Makefile.am): Build unistr.h from unistr.in.h.
2546         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
2547         Add m4/libunistring-base.m4.
2548         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2549         (Makefile.am): Build unitypes.h from unitypes.in.h.
2550         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
2551         Add m4/libunistring-base.m4.
2552         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2553         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
2554         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
2555         uniwidth.h. Add m4/libunistring-base.m4.
2556         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2557         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
2558         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
2559         instead of augmenting lib_SOURCES.
2560         * modules/unicase/empty-suffix-context: Likewise.
2561         * modules/unicase/locale-language: Likewise.
2562         * modules/unicase/tolower: Likewise.
2563         * modules/unicase/totitle: Likewise.
2564         * modules/unicase/toupper: Likewise.
2565         * modules/unicase/u8-casecmp: Likewise.
2566         * modules/unicase/u8-casecoll: Likewise.
2567         * modules/unicase/u8-casefold: Likewise.
2568         * modules/unicase/u8-casexfrm: Likewise.
2569         * modules/unicase/u8-ct-casefold: Likewise.
2570         * modules/unicase/u8-ct-tolower: Likewise.
2571         * modules/unicase/u8-ct-totitle: Likewise.
2572         * modules/unicase/u8-ct-toupper: Likewise.
2573         * modules/unicase/u8-is-cased: Likewise.
2574         * modules/unicase/u8-is-casefolded: Likewise.
2575         * modules/unicase/u8-is-lowercase: Likewise.
2576         * modules/unicase/u8-is-titlecase: Likewise.
2577         * modules/unicase/u8-is-uppercase: Likewise.
2578         * modules/unicase/u8-prefix-context: Likewise.
2579         * modules/unicase/u8-suffix-context: Likewise.
2580         * modules/unicase/u8-tolower: Likewise.
2581         * modules/unicase/u8-totitle: Likewise.
2582         * modules/unicase/u8-toupper: Likewise.
2583         * modules/unicase/u16-casecmp: Likewise.
2584         * modules/unicase/u16-casecoll: Likewise.
2585         * modules/unicase/u16-casefold: Likewise.
2586         * modules/unicase/u16-casexfrm: Likewise.
2587         * modules/unicase/u16-ct-casefold: Likewise.
2588         * modules/unicase/u16-ct-tolower: Likewise.
2589         * modules/unicase/u16-ct-totitle: Likewise.
2590         * modules/unicase/u16-ct-toupper: Likewise.
2591         * modules/unicase/u16-is-cased: Likewise.
2592         * modules/unicase/u16-is-casefolded: Likewise.
2593         * modules/unicase/u16-is-lowercase: Likewise.
2594         * modules/unicase/u16-is-titlecase: Likewise.
2595         * modules/unicase/u16-is-uppercase: Likewise.
2596         * modules/unicase/u16-prefix-context: Likewise.
2597         * modules/unicase/u16-suffix-context: Likewise.
2598         * modules/unicase/u16-tolower: Likewise.
2599         * modules/unicase/u16-totitle: Likewise.
2600         * modules/unicase/u16-toupper: Likewise.
2601         * modules/unicase/u32-casecmp: Likewise.
2602         * modules/unicase/u32-casecoll: Likewise.
2603         * modules/unicase/u32-casefold: Likewise.
2604         * modules/unicase/u32-casexfrm: Likewise.
2605         * modules/unicase/u32-ct-casefold: Likewise.
2606         * modules/unicase/u32-ct-tolower: Likewise.
2607         * modules/unicase/u32-ct-totitle: Likewise.
2608         * modules/unicase/u32-ct-toupper: Likewise.
2609         * modules/unicase/u32-is-cased: Likewise.
2610         * modules/unicase/u32-is-casefolded: Likewise.
2611         * modules/unicase/u32-is-lowercase: Likewise.
2612         * modules/unicase/u32-is-titlecase: Likewise.
2613         * modules/unicase/u32-is-uppercase: Likewise.
2614         * modules/unicase/u32-prefix-context: Likewise.
2615         * modules/unicase/u32-suffix-context: Likewise.
2616         * modules/unicase/u32-tolower: Likewise.
2617         * modules/unicase/u32-totitle: Likewise.
2618         * modules/unicase/u32-toupper: Likewise.
2619         * modules/unicase/ulc-casecmp: Likewise.
2620         * modules/unicase/ulc-casecoll: Likewise.
2621         * modules/unicase/ulc-casexfrm: Likewise.
2622         * modules/uniconv/u8-conv-from-enc: Likewise.
2623         * modules/uniconv/u8-conv-to-enc: Likewise.
2624         * modules/uniconv/u8-strconv-from-enc: Likewise.
2625         * modules/uniconv/u8-strconv-from-locale: Likewise.
2626         * modules/uniconv/u8-strconv-to-enc: Likewise.
2627         * modules/uniconv/u8-strconv-to-locale: Likewise.
2628         * modules/uniconv/u16-conv-from-enc: Likewise.
2629         * modules/uniconv/u16-conv-to-enc: Likewise.
2630         * modules/uniconv/u16-strconv-from-enc: Likewise.
2631         * modules/uniconv/u16-strconv-from-locale: Likewise.
2632         * modules/uniconv/u16-strconv-to-enc: Likewise.
2633         * modules/uniconv/u16-strconv-to-locale: Likewise.
2634         * modules/uniconv/u32-conv-from-enc: Likewise.
2635         * modules/uniconv/u32-conv-to-enc: Likewise.
2636         * modules/uniconv/u32-strconv-from-enc: Likewise.
2637         * modules/uniconv/u32-strconv-from-locale: Likewise.
2638         * modules/uniconv/u32-strconv-to-enc: Likewise.
2639         * modules/uniconv/u32-strconv-to-locale: Likewise.
2640         * modules/unictype/bidicategory-byname: Likewise.
2641         * modules/unictype/bidicategory-name: Likewise.
2642         * modules/unictype/bidicategory-of: Likewise.
2643         * modules/unictype/bidicategory-test: Likewise.
2644         * modules/unictype/block-list: Likewise.
2645         * modules/unictype/block-test: Likewise.
2646         * modules/unictype/category-C: Likewise.
2647         * modules/unictype/category-Cc: Likewise.
2648         * modules/unictype/category-Cf: Likewise.
2649         * modules/unictype/category-Cn: Likewise.
2650         * modules/unictype/category-Co: Likewise.
2651         * modules/unictype/category-Cs: Likewise.
2652         * modules/unictype/category-L: Likewise.
2653         * modules/unictype/category-Ll: Likewise.
2654         * modules/unictype/category-Lm: Likewise.
2655         * modules/unictype/category-Lo: Likewise.
2656         * modules/unictype/category-Lt: Likewise.
2657         * modules/unictype/category-Lu: Likewise.
2658         * modules/unictype/category-M: Likewise.
2659         * modules/unictype/category-Mc: Likewise.
2660         * modules/unictype/category-Me: Likewise.
2661         * modules/unictype/category-Mn: Likewise.
2662         * modules/unictype/category-N: Likewise.
2663         * modules/unictype/category-Nd: Likewise.
2664         * modules/unictype/category-Nl: Likewise.
2665         * modules/unictype/category-No: Likewise.
2666         * modules/unictype/category-P: Likewise.
2667         * modules/unictype/category-Pc: Likewise.
2668         * modules/unictype/category-Pd: Likewise.
2669         * modules/unictype/category-Pe: Likewise.
2670         * modules/unictype/category-Pf: Likewise.
2671         * modules/unictype/category-Pi: Likewise.
2672         * modules/unictype/category-Po: Likewise.
2673         * modules/unictype/category-Ps: Likewise.
2674         * modules/unictype/category-S: Likewise.
2675         * modules/unictype/category-Sc: Likewise.
2676         * modules/unictype/category-Sk: Likewise.
2677         * modules/unictype/category-Sm: Likewise.
2678         * modules/unictype/category-So: Likewise.
2679         * modules/unictype/category-Z: Likewise.
2680         * modules/unictype/category-Zl: Likewise.
2681         * modules/unictype/category-Zp: Likewise.
2682         * modules/unictype/category-Zs: Likewise.
2683         * modules/unictype/category-and: Likewise.
2684         * modules/unictype/category-and-not: Likewise.
2685         * modules/unictype/category-byname: Likewise.
2686         * modules/unictype/category-name: Likewise.
2687         * modules/unictype/category-none: Likewise.
2688         * modules/unictype/category-of: Likewise.
2689         * modules/unictype/category-or: Likewise.
2690         * modules/unictype/category-test: Likewise.
2691         * modules/unictype/combining-class: Likewise.
2692         * modules/unictype/ctype-alnum: Likewise.
2693         * modules/unictype/ctype-alpha: Likewise.
2694         * modules/unictype/ctype-blank: Likewise.
2695         * modules/unictype/ctype-cntrl: Likewise.
2696         * modules/unictype/ctype-digit: Likewise.
2697         * modules/unictype/ctype-graph: Likewise.
2698         * modules/unictype/ctype-lower: Likewise.
2699         * modules/unictype/ctype-print: Likewise.
2700         * modules/unictype/ctype-punct: Likewise.
2701         * modules/unictype/ctype-space: Likewise.
2702         * modules/unictype/ctype-upper: Likewise.
2703         * modules/unictype/ctype-xdigit: Likewise.
2704         * modules/unictype/decimal-digit: Likewise.
2705         * modules/unictype/digit: Likewise.
2706         * modules/unictype/mirror: Likewise.
2707         * modules/unictype/numeric: Likewise.
2708         * modules/unictype/property-alphabetic: Likewise.
2709         * modules/unictype/property-ascii-hex-digit: Likewise.
2710         * modules/unictype/property-bidi-arabic-digit: Likewise.
2711         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2712         * modules/unictype/property-bidi-block-separator: Likewise.
2713         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2714         * modules/unictype/property-bidi-common-separator: Likewise.
2715         * modules/unictype/property-bidi-control: Likewise.
2716         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2717         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2718         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2719         * modules/unictype/property-bidi-european-digit: Likewise.
2720         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2721         * modules/unictype/property-bidi-left-to-right: Likewise.
2722         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2723         * modules/unictype/property-bidi-other-neutral: Likewise.
2724         * modules/unictype/property-bidi-pdf: Likewise.
2725         * modules/unictype/property-bidi-segment-separator: Likewise.
2726         * modules/unictype/property-bidi-whitespace: Likewise.
2727         * modules/unictype/property-byname: Likewise.
2728         * modules/unictype/property-combining: Likewise.
2729         * modules/unictype/property-composite: Likewise.
2730         * modules/unictype/property-currency-symbol: Likewise.
2731         * modules/unictype/property-dash: Likewise.
2732         * modules/unictype/property-decimal-digit: Likewise.
2733         * modules/unictype/property-default-ignorable-code-point: Likewise.
2734         * modules/unictype/property-deprecated: Likewise.
2735         * modules/unictype/property-diacritic: Likewise.
2736         * modules/unictype/property-extender: Likewise.
2737         * modules/unictype/property-format-control: Likewise.
2738         * modules/unictype/property-grapheme-base: Likewise.
2739         * modules/unictype/property-grapheme-extend: Likewise.
2740         * modules/unictype/property-grapheme-link: Likewise.
2741         * modules/unictype/property-hex-digit: Likewise.
2742         * modules/unictype/property-hyphen: Likewise.
2743         * modules/unictype/property-id-continue: Likewise.
2744         * modules/unictype/property-id-start: Likewise.
2745         * modules/unictype/property-ideographic: Likewise.
2746         * modules/unictype/property-ids-binary-operator: Likewise.
2747         * modules/unictype/property-ids-trinary-operator: Likewise.
2748         * modules/unictype/property-ignorable-control: Likewise.
2749         * modules/unictype/property-iso-control: Likewise.
2750         * modules/unictype/property-join-control: Likewise.
2751         * modules/unictype/property-left-of-pair: Likewise.
2752         * modules/unictype/property-line-separator: Likewise.
2753         * modules/unictype/property-logical-order-exception: Likewise.
2754         * modules/unictype/property-lowercase: Likewise.
2755         * modules/unictype/property-math: Likewise.
2756         * modules/unictype/property-non-break: Likewise.
2757         * modules/unictype/property-not-a-character: Likewise.
2758         * modules/unictype/property-numeric: Likewise.
2759         * modules/unictype/property-other-alphabetic: Likewise.
2760         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2761         * modules/unictype/property-other-grapheme-extend: Likewise.
2762         * modules/unictype/property-other-id-continue: Likewise.
2763         * modules/unictype/property-other-id-start: Likewise.
2764         * modules/unictype/property-other-lowercase: Likewise.
2765         * modules/unictype/property-other-math: Likewise.
2766         * modules/unictype/property-other-uppercase: Likewise.
2767         * modules/unictype/property-paired-punctuation: Likewise.
2768         * modules/unictype/property-paragraph-separator: Likewise.
2769         * modules/unictype/property-pattern-syntax: Likewise.
2770         * modules/unictype/property-pattern-white-space: Likewise.
2771         * modules/unictype/property-private-use: Likewise.
2772         * modules/unictype/property-punctuation: Likewise.
2773         * modules/unictype/property-quotation-mark: Likewise.
2774         * modules/unictype/property-radical: Likewise.
2775         * modules/unictype/property-sentence-terminal: Likewise.
2776         * modules/unictype/property-soft-dotted: Likewise.
2777         * modules/unictype/property-space: Likewise.
2778         * modules/unictype/property-terminal-punctuation: Likewise.
2779         * modules/unictype/property-test: Likewise.
2780         * modules/unictype/property-titlecase: Likewise.
2781         * modules/unictype/property-unassigned-code-value: Likewise.
2782         * modules/unictype/property-unified-ideograph: Likewise.
2783         * modules/unictype/property-uppercase: Likewise.
2784         * modules/unictype/property-variation-selector: Likewise.
2785         * modules/unictype/property-white-space: Likewise.
2786         * modules/unictype/property-xid-continue: Likewise.
2787         * modules/unictype/property-xid-start: Likewise.
2788         * modules/unictype/property-zero-width: Likewise.
2789         * modules/unictype/scripts: Likewise.
2790         * modules/unictype/syntax-c-ident: Likewise.
2791         * modules/unictype/syntax-c-whitespace: Likewise.
2792         * modules/unictype/syntax-java-ident: Likewise.
2793         * modules/unictype/syntax-java-whitespace: Likewise.
2794         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2795         * modules/unilbrk/u8-width-linebreaks: Likewise.
2796         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2797         * modules/unilbrk/u16-width-linebreaks: Likewise.
2798         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2799         * modules/unilbrk/u32-width-linebreaks: Likewise.
2800         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2801         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2802         * modules/uniname/uniname: Likewise.
2803         * modules/uninorm/canonical-decomposition: Likewise.
2804         * modules/uninorm/composition: Likewise.
2805         * modules/uninorm/decomposing-form: Likewise.
2806         * modules/uninorm/decomposition: Likewise.
2807         * modules/uninorm/filter: Likewise.
2808         * modules/uninorm/nfc: Likewise.
2809         * modules/uninorm/nfd: Likewise.
2810         * modules/uninorm/nfkc: Likewise.
2811         * modules/uninorm/nfkd: Likewise.
2812         * modules/uninorm/u8-normalize: Likewise.
2813         * modules/uninorm/u8-normcmp: Likewise.
2814         * modules/uninorm/u8-normcoll: Likewise.
2815         * modules/uninorm/u8-normxfrm: Likewise.
2816         * modules/uninorm/u16-normalize: Likewise.
2817         * modules/uninorm/u16-normcmp: Likewise.
2818         * modules/uninorm/u16-normcoll: Likewise.
2819         * modules/uninorm/u16-normxfrm: Likewise.
2820         * modules/uninorm/u32-normalize: Likewise.
2821         * modules/uninorm/u32-normcmp: Likewise.
2822         * modules/uninorm/u32-normcoll: Likewise.
2823         * modules/uninorm/u32-normxfrm: Likewise.
2824         * modules/unistdio/u8-asnprintf: Likewise.
2825         * modules/unistdio/u8-asprintf: Likewise.
2826         * modules/unistdio/u8-snprintf: Likewise.
2827         * modules/unistdio/u8-sprintf: Likewise.
2828         * modules/unistdio/u8-u8-asnprintf: Likewise.
2829         * modules/unistdio/u8-u8-asprintf: Likewise.
2830         * modules/unistdio/u8-u8-snprintf: Likewise.
2831         * modules/unistdio/u8-u8-sprintf: Likewise.
2832         * modules/unistdio/u8-u8-vasnprintf: Likewise.
2833         * modules/unistdio/u8-u8-vasprintf: Likewise.
2834         * modules/unistdio/u8-u8-vsnprintf: Likewise.
2835         * modules/unistdio/u8-u8-vsprintf: Likewise.
2836         * modules/unistdio/u8-vasnprintf: Likewise.
2837         * modules/unistdio/u8-vasprintf: Likewise.
2838         * modules/unistdio/u8-vsnprintf: Likewise.
2839         * modules/unistdio/u8-vsprintf: Likewise.
2840         * modules/unistdio/u16-asnprintf: Likewise.
2841         * modules/unistdio/u16-asprintf: Likewise.
2842         * modules/unistdio/u16-snprintf: Likewise.
2843         * modules/unistdio/u16-sprintf: Likewise.
2844         * modules/unistdio/u16-u16-asnprintf: Likewise.
2845         * modules/unistdio/u16-u16-asprintf: Likewise.
2846         * modules/unistdio/u16-u16-snprintf: Likewise.
2847         * modules/unistdio/u16-u16-sprintf: Likewise.
2848         * modules/unistdio/u16-u16-vasnprintf: Likewise.
2849         * modules/unistdio/u16-u16-vasprintf: Likewise.
2850         * modules/unistdio/u16-u16-vsnprintf: Likewise.
2851         * modules/unistdio/u16-u16-vsprintf: Likewise.
2852         * modules/unistdio/u16-vasnprintf: Likewise.
2853         * modules/unistdio/u16-vasprintf: Likewise.
2854         * modules/unistdio/u16-vsnprintf: Likewise.
2855         * modules/unistdio/u16-vsprintf: Likewise.
2856         * modules/unistdio/u32-asnprintf: Likewise.
2857         * modules/unistdio/u32-asprintf: Likewise.
2858         * modules/unistdio/u32-snprintf: Likewise.
2859         * modules/unistdio/u32-sprintf: Likewise.
2860         * modules/unistdio/u32-u32-asnprintf: Likewise.
2861         * modules/unistdio/u32-u32-asprintf: Likewise.
2862         * modules/unistdio/u32-u32-snprintf: Likewise.
2863         * modules/unistdio/u32-u32-sprintf: Likewise.
2864         * modules/unistdio/u32-u32-vasnprintf: Likewise.
2865         * modules/unistdio/u32-u32-vasprintf: Likewise.
2866         * modules/unistdio/u32-u32-vsnprintf: Likewise.
2867         * modules/unistdio/u32-u32-vsprintf: Likewise.
2868         * modules/unistdio/u32-vasnprintf: Likewise.
2869         * modules/unistdio/u32-vasprintf: Likewise.
2870         * modules/unistdio/u32-vsnprintf: Likewise.
2871         * modules/unistdio/u32-vsprintf: Likewise.
2872         * modules/unistdio/ulc-asnprintf: Likewise.
2873         * modules/unistdio/ulc-asprintf: Likewise.
2874         * modules/unistdio/ulc-fprintf: Likewise.
2875         * modules/unistdio/ulc-snprintf: Likewise.
2876         * modules/unistdio/ulc-sprintf: Likewise.
2877         * modules/unistdio/ulc-vasnprintf: Likewise.
2878         * modules/unistdio/ulc-vasprintf: Likewise.
2879         * modules/unistdio/ulc-vfprintf: Likewise.
2880         * modules/unistdio/ulc-vsnprintf: Likewise.
2881         * modules/unistdio/ulc-vsprintf: Likewise.
2882         * modules/unistr/u8-check: Likewise.
2883         * modules/unistr/u8-chr: Likewise.
2884         * modules/unistr/u8-cmp: Likewise.
2885         * modules/unistr/u8-cmp2: Likewise.
2886         * modules/unistr/u8-cpy: Likewise.
2887         * modules/unistr/u8-cpy-alloc: Likewise.
2888         * modules/unistr/u8-endswith: Likewise.
2889         * modules/unistr/u8-mblen: Likewise.
2890         * modules/unistr/u8-mbsnlen: Likewise.
2891         * modules/unistr/u8-mbtouc: Likewise.
2892         * modules/unistr/u8-mbtouc-unsafe: Likewise.
2893         * modules/unistr/u8-mbtoucr: Likewise.
2894         * modules/unistr/u8-move: Likewise.
2895         * modules/unistr/u8-next: Likewise.
2896         * modules/unistr/u8-prev: Likewise.
2897         * modules/unistr/u8-set: Likewise.
2898         * modules/unistr/u8-startswith: Likewise.
2899         * modules/unistr/u8-stpcpy: Likewise.
2900         * modules/unistr/u8-stpncpy: Likewise.
2901         * modules/unistr/u8-strcat: Likewise.
2902         * modules/unistr/u8-strchr: Likewise.
2903         * modules/unistr/u8-strcmp: Likewise.
2904         * modules/unistr/u8-strcoll: Likewise.
2905         * modules/unistr/u8-strcpy: Likewise.
2906         * modules/unistr/u8-strcspn: Likewise.
2907         * modules/unistr/u8-strdup: Likewise.
2908         * modules/unistr/u8-strlen: Likewise.
2909         * modules/unistr/u8-strmblen: Likewise.
2910         * modules/unistr/u8-strmbtouc: Likewise.
2911         * modules/unistr/u8-strncat: Likewise.
2912         * modules/unistr/u8-strncmp: Likewise.
2913         * modules/unistr/u8-strncpy: Likewise.
2914         * modules/unistr/u8-strnlen: Likewise.
2915         * modules/unistr/u8-strpbrk: Likewise.
2916         * modules/unistr/u8-strrchr: Likewise.
2917         * modules/unistr/u8-strspn: Likewise.
2918         * modules/unistr/u8-strstr: Likewise.
2919         * modules/unistr/u8-strtok: Likewise.
2920         * modules/unistr/u8-to-u16: Likewise.
2921         * modules/unistr/u8-to-u32: Likewise.
2922         * modules/unistr/u8-uctomb: Likewise.
2923         * modules/unistr/u16-check: Likewise.
2924         * modules/unistr/u16-chr: Likewise.
2925         * modules/unistr/u16-cmp: Likewise.
2926         * modules/unistr/u16-cmp2: Likewise.
2927         * modules/unistr/u16-cpy: Likewise.
2928         * modules/unistr/u16-cpy-alloc: Likewise.
2929         * modules/unistr/u16-endswith: Likewise.
2930         * modules/unistr/u16-mblen: Likewise.
2931         * modules/unistr/u16-mbsnlen: Likewise.
2932         * modules/unistr/u16-mbtouc: Likewise.
2933         * modules/unistr/u16-mbtouc-unsafe: Likewise.
2934         * modules/unistr/u16-mbtoucr: Likewise.
2935         * modules/unistr/u16-move: Likewise.
2936         * modules/unistr/u16-next: Likewise.
2937         * modules/unistr/u16-prev: Likewise.
2938         * modules/unistr/u16-set: Likewise.
2939         * modules/unistr/u16-startswith: Likewise.
2940         * modules/unistr/u16-stpcpy: Likewise.
2941         * modules/unistr/u16-stpncpy: Likewise.
2942         * modules/unistr/u16-strcat: Likewise.
2943         * modules/unistr/u16-strchr: Likewise.
2944         * modules/unistr/u16-strcmp: Likewise.
2945         * modules/unistr/u16-strcoll: Likewise.
2946         * modules/unistr/u16-strcpy: Likewise.
2947         * modules/unistr/u16-strcspn: Likewise.
2948         * modules/unistr/u16-strdup: Likewise.
2949         * modules/unistr/u16-strlen: Likewise.
2950         * modules/unistr/u16-strmblen: Likewise.
2951         * modules/unistr/u16-strmbtouc: Likewise.
2952         * modules/unistr/u16-strncat: Likewise.
2953         * modules/unistr/u16-strncmp: Likewise.
2954         * modules/unistr/u16-strncpy: Likewise.
2955         * modules/unistr/u16-strnlen: Likewise.
2956         * modules/unistr/u16-strpbrk: Likewise.
2957         * modules/unistr/u16-strrchr: Likewise.
2958         * modules/unistr/u16-strspn: Likewise.
2959         * modules/unistr/u16-strstr: Likewise.
2960         * modules/unistr/u16-strtok: Likewise.
2961         * modules/unistr/u16-to-u32: Likewise.
2962         * modules/unistr/u16-to-u8: Likewise.
2963         * modules/unistr/u16-uctomb: Likewise.
2964         * modules/unistr/u32-check: Likewise.
2965         * modules/unistr/u32-chr: Likewise.
2966         * modules/unistr/u32-cmp: Likewise.
2967         * modules/unistr/u32-cmp2: Likewise.
2968         * modules/unistr/u32-cpy: Likewise.
2969         * modules/unistr/u32-cpy-alloc: Likewise.
2970         * modules/unistr/u32-endswith: Likewise.
2971         * modules/unistr/u32-mblen: Likewise.
2972         * modules/unistr/u32-mbsnlen: Likewise.
2973         * modules/unistr/u32-mbtouc: Likewise.
2974         * modules/unistr/u32-mbtouc-unsafe: Likewise.
2975         * modules/unistr/u32-mbtoucr: Likewise.
2976         * modules/unistr/u32-move: Likewise.
2977         * modules/unistr/u32-next: Likewise.
2978         * modules/unistr/u32-prev: Likewise.
2979         * modules/unistr/u32-set: Likewise.
2980         * modules/unistr/u32-startswith: Likewise.
2981         * modules/unistr/u32-stpcpy: Likewise.
2982         * modules/unistr/u32-stpncpy: Likewise.
2983         * modules/unistr/u32-strcat: Likewise.
2984         * modules/unistr/u32-strchr: Likewise.
2985         * modules/unistr/u32-strcmp: Likewise.
2986         * modules/unistr/u32-strcoll: Likewise.
2987         * modules/unistr/u32-strcpy: Likewise.
2988         * modules/unistr/u32-strcspn: Likewise.
2989         * modules/unistr/u32-strdup: Likewise.
2990         * modules/unistr/u32-strlen: Likewise.
2991         * modules/unistr/u32-strmblen: Likewise.
2992         * modules/unistr/u32-strmbtouc: Likewise.
2993         * modules/unistr/u32-strncat: Likewise.
2994         * modules/unistr/u32-strncmp: Likewise.
2995         * modules/unistr/u32-strncpy: Likewise.
2996         * modules/unistr/u32-strnlen: Likewise.
2997         * modules/unistr/u32-strpbrk: Likewise.
2998         * modules/unistr/u32-strrchr: Likewise.
2999         * modules/unistr/u32-strspn: Likewise.
3000         * modules/unistr/u32-strstr: Likewise.
3001         * modules/unistr/u32-strtok: Likewise.
3002         * modules/unistr/u32-to-u16: Likewise.
3003         * modules/unistr/u32-to-u8: Likewise.
3004         * modules/unistr/u32-uctomb: Likewise.
3005         * modules/uniwbrk/u8-wordbreaks: Likewise.
3006         * modules/uniwbrk/u16-wordbreaks: Likewise.
3007         * modules/uniwbrk/u32-wordbreaks: Likewise.
3008         * modules/uniwbrk/ulc-wordbreaks: Likewise.
3009         * modules/uniwbrk/wordbreak-property: Likewise.
3010         * modules/uniwidth/u8-strwidth: Likewise.
3011         * modules/uniwidth/u8-width: Likewise.
3012         * modules/uniwidth/u16-strwidth: Likewise.
3013         * modules/uniwidth/u16-width: Likewise.
3014         * modules/uniwidth/u32-strwidth: Likewise.
3015         * modules/uniwidth/u32-width: Likewise.
3016         * modules/uniwidth/width: Likewise.
3017         * modules/unicase/cased-tests (Makefile.am): Link all test programs
3018         with $(LIBUNISTRING).
3019         * modules/unicase/ignorable-tests: Likewise.
3020         * modules/unicase/locale-language-tests: Likewise.
3021         * modules/unicase/tolower-tests: Likewise.
3022         * modules/unicase/totitle-tests: Likewise.
3023         * modules/unicase/toupper-tests: Likewise.
3024         * modules/unicase/u8-casecmp-tests: Likewise.
3025         * modules/unicase/u8-casecoll-tests: Likewise.
3026         * modules/unicase/u8-casefold-tests: Likewise.
3027         * modules/unicase/u8-is-cased-tests: Likewise.
3028         * modules/unicase/u8-is-casefolded-tests: Likewise.
3029         * modules/unicase/u8-is-lowercase-tests: Likewise.
3030         * modules/unicase/u8-is-titlecase-tests: Likewise.
3031         * modules/unicase/u8-is-uppercase-tests: Likewise.
3032         * modules/unicase/u8-tolower-tests: Likewise.
3033         * modules/unicase/u8-totitle-tests: Likewise.
3034         * modules/unicase/u8-toupper-tests: Likewise.
3035         * modules/unicase/u16-casecmp-tests: Likewise.
3036         * modules/unicase/u16-casecoll-tests: Likewise.
3037         * modules/unicase/u16-casefold-tests: Likewise.
3038         * modules/unicase/u16-is-cased-tests: Likewise.
3039         * modules/unicase/u16-is-casefolded-tests: Likewise.
3040         * modules/unicase/u16-is-lowercase-tests: Likewise.
3041         * modules/unicase/u16-is-titlecase-tests: Likewise.
3042         * modules/unicase/u16-is-uppercase-tests: Likewise.
3043         * modules/unicase/u16-tolower-tests: Likewise.
3044         * modules/unicase/u16-totitle-tests: Likewise.
3045         * modules/unicase/u16-toupper-tests: Likewise.
3046         * modules/unicase/u32-casecmp-tests: Likewise.
3047         * modules/unicase/u32-casecoll-tests: Likewise.
3048         * modules/unicase/u32-casefold-tests: Likewise.
3049         * modules/unicase/u32-is-cased-tests: Likewise.
3050         * modules/unicase/u32-is-casefolded-tests: Likewise.
3051         * modules/unicase/u32-is-lowercase-tests: Likewise.
3052         * modules/unicase/u32-is-titlecase-tests: Likewise.
3053         * modules/unicase/u32-is-uppercase-tests: Likewise.
3054         * modules/unicase/u32-tolower-tests: Likewise.
3055         * modules/unicase/u32-totitle-tests: Likewise.
3056         * modules/unicase/u32-toupper-tests: Likewise.
3057         * modules/unicase/ulc-casecmp-tests: Likewise.
3058         * modules/unicase/ulc-casecoll-tests: Likewise.
3059         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
3060         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
3061         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
3062         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
3063         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
3064         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
3065         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
3066         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
3067         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
3068         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
3069         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
3070         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
3071         * modules/unictype/bidicategory-byname-tests: Likewise.
3072         * modules/unictype/bidicategory-name-tests: Likewise.
3073         * modules/unictype/bidicategory-of-tests: Likewise.
3074         * modules/unictype/bidicategory-test-tests: Likewise.
3075         * modules/unictype/block-list-tests: Likewise.
3076         * modules/unictype/block-of-tests: Likewise.
3077         * modules/unictype/block-test-tests: Likewise.
3078         * modules/unictype/category-C-tests: Likewise.
3079         * modules/unictype/category-Cc-tests: Likewise.
3080         * modules/unictype/category-Cf-tests: Likewise.
3081         * modules/unictype/category-Cn-tests: Likewise.
3082         * modules/unictype/category-Co-tests: Likewise.
3083         * modules/unictype/category-Cs-tests: Likewise.
3084         * modules/unictype/category-L-tests: Likewise.
3085         * modules/unictype/category-Ll-tests: Likewise.
3086         * modules/unictype/category-Lm-tests: Likewise.
3087         * modules/unictype/category-Lo-tests: Likewise.
3088         * modules/unictype/category-Lt-tests: Likewise.
3089         * modules/unictype/category-Lu-tests: Likewise.
3090         * modules/unictype/category-M-tests: Likewise.
3091         * modules/unictype/category-Mc-tests: Likewise.
3092         * modules/unictype/category-Me-tests: Likewise.
3093         * modules/unictype/category-Mn-tests: Likewise.
3094         * modules/unictype/category-N-tests: Likewise.
3095         * modules/unictype/category-Nd-tests: Likewise.
3096         * modules/unictype/category-Nl-tests: Likewise.
3097         * modules/unictype/category-No-tests: Likewise.
3098         * modules/unictype/category-P-tests: Likewise.
3099         * modules/unictype/category-Pc-tests: Likewise.
3100         * modules/unictype/category-Pd-tests: Likewise.
3101         * modules/unictype/category-Pe-tests: Likewise.
3102         * modules/unictype/category-Pf-tests: Likewise.
3103         * modules/unictype/category-Pi-tests: Likewise.
3104         * modules/unictype/category-Po-tests: Likewise.
3105         * modules/unictype/category-Ps-tests: Likewise.
3106         * modules/unictype/category-S-tests: Likewise.
3107         * modules/unictype/category-Sc-tests: Likewise.
3108         * modules/unictype/category-Sk-tests: Likewise.
3109         * modules/unictype/category-Sm-tests: Likewise.
3110         * modules/unictype/category-So-tests: Likewise.
3111         * modules/unictype/category-Z-tests: Likewise.
3112         * modules/unictype/category-Zl-tests: Likewise.
3113         * modules/unictype/category-Zp-tests: Likewise.
3114         * modules/unictype/category-Zs-tests: Likewise.
3115         * modules/unictype/category-and-not-tests: Likewise.
3116         * modules/unictype/category-and-tests: Likewise.
3117         * modules/unictype/category-byname-tests: Likewise.
3118         * modules/unictype/category-name-tests: Likewise.
3119         * modules/unictype/category-none-tests: Likewise.
3120         * modules/unictype/category-of-tests: Likewise.
3121         * modules/unictype/category-or-tests: Likewise.
3122         * modules/unictype/category-test-withtable-tests: Likewise.
3123         * modules/unictype/combining-class-tests: Likewise.
3124         * modules/unictype/ctype-alnum-tests: Likewise.
3125         * modules/unictype/ctype-alpha-tests: Likewise.
3126         * modules/unictype/ctype-blank-tests: Likewise.
3127         * modules/unictype/ctype-cntrl-tests: Likewise.
3128         * modules/unictype/ctype-digit-tests: Likewise.
3129         * modules/unictype/ctype-graph-tests: Likewise.
3130         * modules/unictype/ctype-lower-tests: Likewise.
3131         * modules/unictype/ctype-print-tests: Likewise.
3132         * modules/unictype/ctype-punct-tests: Likewise.
3133         * modules/unictype/ctype-space-tests: Likewise.
3134         * modules/unictype/ctype-upper-tests: Likewise.
3135         * modules/unictype/ctype-xdigit-tests: Likewise.
3136         * modules/unictype/decimal-digit-tests: Likewise.
3137         * modules/unictype/digit-tests: Likewise.
3138         * modules/unictype/mirror-tests: Likewise.
3139         * modules/unictype/numeric-tests: Likewise.
3140         * modules/unictype/property-alphabetic-tests: Likewise.
3141         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
3142         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
3143         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
3144         * modules/unictype/property-bidi-block-separator-tests: Likewise.
3145         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
3146         * modules/unictype/property-bidi-common-separator-tests: Likewise.
3147         * modules/unictype/property-bidi-control-tests: Likewise.
3148         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
3149         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
3150         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
3151         * modules/unictype/property-bidi-european-digit-tests: Likewise.
3152         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
3153         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
3154         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
3155         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
3156         * modules/unictype/property-bidi-pdf-tests: Likewise.
3157         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
3158         * modules/unictype/property-bidi-whitespace-tests: Likewise.
3159         * modules/unictype/property-byname-tests: Likewise.
3160         * modules/unictype/property-combining-tests: Likewise.
3161         * modules/unictype/property-composite-tests: Likewise.
3162         * modules/unictype/property-currency-symbol-tests: Likewise.
3163         * modules/unictype/property-dash-tests: Likewise.
3164         * modules/unictype/property-decimal-digit-tests: Likewise.
3165         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
3166         * modules/unictype/property-deprecated-tests: Likewise.
3167         * modules/unictype/property-diacritic-tests: Likewise.
3168         * modules/unictype/property-extender-tests: Likewise.
3169         * modules/unictype/property-format-control-tests: Likewise.
3170         * modules/unictype/property-grapheme-base-tests: Likewise.
3171         * modules/unictype/property-grapheme-extend-tests: Likewise.
3172         * modules/unictype/property-grapheme-link-tests: Likewise.
3173         * modules/unictype/property-hex-digit-tests: Likewise.
3174         * modules/unictype/property-hyphen-tests: Likewise.
3175         * modules/unictype/property-id-continue-tests: Likewise.
3176         * modules/unictype/property-id-start-tests: Likewise.
3177         * modules/unictype/property-ideographic-tests: Likewise.
3178         * modules/unictype/property-ids-binary-operator-tests: Likewise.
3179         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
3180         * modules/unictype/property-ignorable-control-tests: Likewise.
3181         * modules/unictype/property-iso-control-tests: Likewise.
3182         * modules/unictype/property-join-control-tests: Likewise.
3183         * modules/unictype/property-left-of-pair-tests: Likewise.
3184         * modules/unictype/property-line-separator-tests: Likewise.
3185         * modules/unictype/property-logical-order-exception-tests: Likewise.
3186         * modules/unictype/property-lowercase-tests: Likewise.
3187         * modules/unictype/property-math-tests: Likewise.
3188         * modules/unictype/property-non-break-tests: Likewise.
3189         * modules/unictype/property-not-a-character-tests: Likewise.
3190         * modules/unictype/property-numeric-tests: Likewise.
3191         * modules/unictype/property-other-alphabetic-tests: Likewise.
3192         * modules/unictype/property-other-default-ignorable-code-point-tests:
3193         Likewise.
3194         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
3195         * modules/unictype/property-other-id-continue-tests: Likewise.
3196         * modules/unictype/property-other-id-start-tests: Likewise.
3197         * modules/unictype/property-other-lowercase-tests: Likewise.
3198         * modules/unictype/property-other-math-tests: Likewise.
3199         * modules/unictype/property-other-uppercase-tests: Likewise.
3200         * modules/unictype/property-paired-punctuation-tests: Likewise.
3201         * modules/unictype/property-paragraph-separator-tests: Likewise.
3202         * modules/unictype/property-pattern-syntax-tests: Likewise.
3203         * modules/unictype/property-pattern-white-space-tests: Likewise.
3204         * modules/unictype/property-private-use-tests: Likewise.
3205         * modules/unictype/property-punctuation-tests: Likewise.
3206         * modules/unictype/property-quotation-mark-tests: Likewise.
3207         * modules/unictype/property-radical-tests: Likewise.
3208         * modules/unictype/property-sentence-terminal-tests: Likewise.
3209         * modules/unictype/property-soft-dotted-tests: Likewise.
3210         * modules/unictype/property-space-tests: Likewise.
3211         * modules/unictype/property-terminal-punctuation-tests: Likewise.
3212         * modules/unictype/property-test-tests: Likewise.
3213         * modules/unictype/property-titlecase-tests: Likewise.
3214         * modules/unictype/property-unassigned-code-value-tests: Likewise.
3215         * modules/unictype/property-unified-ideograph-tests: Likewise.
3216         * modules/unictype/property-uppercase-tests: Likewise.
3217         * modules/unictype/property-variation-selector-tests: Likewise.
3218         * modules/unictype/property-white-space-tests: Likewise.
3219         * modules/unictype/property-xid-continue-tests: Likewise.
3220         * modules/unictype/property-xid-start-tests: Likewise.
3221         * modules/unictype/property-zero-width-tests: Likewise.
3222         * modules/unictype/scripts-tests: Likewise.
3223         * modules/unictype/syntax-c-ident-tests: Likewise.
3224         * modules/unictype/syntax-c-whitespace-tests: Likewise.
3225         * modules/unictype/syntax-java-ident-tests: Likewise.
3226         * modules/unictype/syntax-java-whitespace-tests: Likewise.
3227         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
3228         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
3229         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
3230         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
3231         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
3232         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
3233         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
3234         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
3235         * modules/uniname/uniname-tests: Likewise.
3236         * modules/uninorm/canonical-decomposition-tests: Likewise.
3237         * modules/uninorm/compat-decomposition-tests: Likewise.
3238         * modules/uninorm/composition-tests: Likewise.
3239         * modules/uninorm/decomposing-form-tests: Likewise.
3240         * modules/uninorm/decomposition-tests: Likewise.
3241         * modules/uninorm/filter-tests: Likewise.
3242         * modules/uninorm/nfc-tests: Likewise.
3243         * modules/uninorm/nfd-tests: Likewise.
3244         * modules/uninorm/nfkc-tests: Likewise.
3245         * modules/uninorm/nfkd-tests: Likewise.
3246         * modules/uninorm/u8-normcmp-tests: Likewise.
3247         * modules/uninorm/u8-normcoll-tests: Likewise.
3248         * modules/uninorm/u16-normcmp-tests: Likewise.
3249         * modules/uninorm/u16-normcoll-tests: Likewise.
3250         * modules/uninorm/u32-normcmp-tests: Likewise.
3251         * modules/uninorm/u32-normcoll-tests: Likewise.
3252         * modules/unistdio/u8-asnprintf-tests: Likewise.
3253         * modules/unistdio/u8-vasnprintf-tests: Likewise.
3254         * modules/unistdio/u8-vasprintf-tests: Likewise.
3255         * modules/unistdio/u8-vsnprintf-tests: Likewise.
3256         * modules/unistdio/u8-vsprintf-tests: Likewise.
3257         * modules/unistdio/u16-asnprintf-tests: Likewise.
3258         * modules/unistdio/u16-vasnprintf-tests: Likewise.
3259         * modules/unistdio/u16-vasprintf-tests: Likewise.
3260         * modules/unistdio/u16-vsnprintf-tests: Likewise.
3261         * modules/unistdio/u16-vsprintf-tests: Likewise.
3262         * modules/unistdio/u32-asnprintf-tests: Likewise.
3263         * modules/unistdio/u32-vasnprintf-tests: Likewise.
3264         * modules/unistdio/u32-vasprintf-tests: Likewise.
3265         * modules/unistdio/u32-vsnprintf-tests: Likewise.
3266         * modules/unistdio/u32-vsprintf-tests: Likewise.
3267         * modules/unistdio/ulc-asnprintf-tests: Likewise.
3268         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
3269         * modules/unistdio/ulc-vasprintf-tests: Likewise.
3270         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
3271         * modules/unistdio/ulc-vsprintf-tests: Likewise.
3272         * modules/unistr/u8-check-tests: Likewise.
3273         * modules/unistr/u8-chr-tests: Likewise.
3274         * modules/unistr/u8-cmp-tests: Likewise.
3275         * modules/unistr/u8-cmp2-tests: Likewise.
3276         * modules/unistr/u8-cpy-alloc-tests: Likewise.
3277         * modules/unistr/u8-cpy-tests: Likewise.
3278         * modules/unistr/u8-mblen-tests: Likewise.
3279         * modules/unistr/u8-mbsnlen-tests: Likewise.
3280         * modules/unistr/u8-mbtouc-tests: Likewise.
3281         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
3282         * modules/unistr/u8-mbtoucr-tests: Likewise.
3283         * modules/unistr/u8-move-tests: Likewise.
3284         * modules/unistr/u8-next-tests: Likewise.
3285         * modules/unistr/u8-prev-tests: Likewise.
3286         * modules/unistr/u8-set-tests: Likewise.
3287         * modules/unistr/u8-stpcpy-tests: Likewise.
3288         * modules/unistr/u8-stpncpy-tests: Likewise.
3289         * modules/unistr/u8-strcat-tests: Likewise.
3290         * modules/unistr/u8-strcmp-tests: Likewise.
3291         * modules/unistr/u8-strcoll-tests: Likewise.
3292         * modules/unistr/u8-strcpy-tests: Likewise.
3293         * modules/unistr/u8-strdup-tests: Likewise.
3294         * modules/unistr/u8-strlen-tests: Likewise.
3295         * modules/unistr/u8-strmblen-tests: Likewise.
3296         * modules/unistr/u8-strmbtouc-tests: Likewise.
3297         * modules/unistr/u8-strncat-tests: Likewise.
3298         * modules/unistr/u8-strncmp-tests: Likewise.
3299         * modules/unistr/u8-strncpy-tests: Likewise.
3300         * modules/unistr/u8-strnlen-tests: Likewise.
3301         * modules/unistr/u8-to-u16-tests: Likewise.
3302         * modules/unistr/u8-to-u32-tests: Likewise.
3303         * modules/unistr/u8-uctomb-tests: Likewise.
3304         * modules/unistr/u16-check-tests: Likewise.
3305         * modules/unistr/u16-chr-tests: Likewise.
3306         * modules/unistr/u16-cmp-tests: Likewise.
3307         * modules/unistr/u16-cmp2-tests: Likewise.
3308         * modules/unistr/u16-cpy-alloc-tests: Likewise.
3309         * modules/unistr/u16-cpy-tests: Likewise.
3310         * modules/unistr/u16-mblen-tests: Likewise.
3311         * modules/unistr/u16-mbsnlen-tests: Likewise.
3312         * modules/unistr/u16-mbtouc-tests: Likewise.
3313         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
3314         * modules/unistr/u16-mbtoucr-tests: Likewise.
3315         * modules/unistr/u16-move-tests: Likewise.
3316         * modules/unistr/u16-next-tests: Likewise.
3317         * modules/unistr/u16-prev-tests: Likewise.
3318         * modules/unistr/u16-set-tests: Likewise.
3319         * modules/unistr/u16-stpcpy-tests: Likewise.
3320         * modules/unistr/u16-stpncpy-tests: Likewise.
3321         * modules/unistr/u16-strcat-tests: Likewise.
3322         * modules/unistr/u16-strcmp-tests: Likewise.
3323         * modules/unistr/u16-strcoll-tests: Likewise.
3324         * modules/unistr/u16-strcpy-tests: Likewise.
3325         * modules/unistr/u16-strdup-tests: Likewise.
3326         * modules/unistr/u16-strlen-tests: Likewise.
3327         * modules/unistr/u16-strmblen-tests: Likewise.
3328         * modules/unistr/u16-strmbtouc-tests: Likewise.
3329         * modules/unistr/u16-strncat-tests: Likewise.
3330         * modules/unistr/u16-strncmp-tests: Likewise.
3331         * modules/unistr/u16-strncpy-tests: Likewise.
3332         * modules/unistr/u16-strnlen-tests: Likewise.
3333         * modules/unistr/u16-to-u32-tests: Likewise.
3334         * modules/unistr/u16-to-u8-tests: Likewise.
3335         * modules/unistr/u16-uctomb-tests: Likewise.
3336         * modules/unistr/u32-check-tests: Likewise.
3337         * modules/unistr/u32-chr-tests: Likewise.
3338         * modules/unistr/u32-cmp-tests: Likewise.
3339         * modules/unistr/u32-cmp2-tests: Likewise.
3340         * modules/unistr/u32-cpy-alloc-tests: Likewise.
3341         * modules/unistr/u32-cpy-tests: Likewise.
3342         * modules/unistr/u32-mblen-tests: Likewise.
3343         * modules/unistr/u32-mbsnlen-tests: Likewise.
3344         * modules/unistr/u32-mbtouc-tests: Likewise.
3345         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
3346         * modules/unistr/u32-mbtoucr-tests: Likewise.
3347         * modules/unistr/u32-move-tests: Likewise.
3348         * modules/unistr/u32-next-tests: Likewise.
3349         * modules/unistr/u32-prev-tests: Likewise.
3350         * modules/unistr/u32-set-tests: Likewise.
3351         * modules/unistr/u32-stpcpy-tests: Likewise.
3352         * modules/unistr/u32-stpncpy-tests: Likewise.
3353         * modules/unistr/u32-strcat-tests: Likewise.
3354         * modules/unistr/u32-strcmp-tests: Likewise.
3355         * modules/unistr/u32-strcoll-tests: Likewise.
3356         * modules/unistr/u32-strcpy-tests: Likewise.
3357         * modules/unistr/u32-strdup-tests: Likewise.
3358         * modules/unistr/u32-strlen-tests: Likewise.
3359         * modules/unistr/u32-strmblen-tests: Likewise.
3360         * modules/unistr/u32-strmbtouc-tests: Likewise.
3361         * modules/unistr/u32-strncat-tests: Likewise.
3362         * modules/unistr/u32-strncmp-tests: Likewise.
3363         * modules/unistr/u32-strncpy-tests: Likewise.
3364         * modules/unistr/u32-strnlen-tests: Likewise.
3365         * modules/unistr/u32-to-u16-tests: Likewise.
3366         * modules/unistr/u32-to-u8-tests: Likewise.
3367         * modules/unistr/u32-uctomb-tests: Likewise.
3368         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
3369         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
3370         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
3371         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
3372         * modules/uniwidth/u8-strwidth-tests: Likewise.
3373         * modules/uniwidth/u8-width-tests: Likewise.
3374         * modules/uniwidth/u16-strwidth-tests: Likewise.
3375         * modules/uniwidth/u16-width-tests: Likewise.
3376         * modules/uniwidth/u32-strwidth-tests: Likewise.
3377         * modules/uniwidth/u32-width-tests: Likewise.
3378         * modules/uniwidth/width-tests: Likewise.
3379
3380 2010-05-18  Richard Jones  <rjones@redhat.com>
3381
3382         doc: users.txt: list hivex
3383         * users.txt: Add hivex.
3384
3385 2010-05-18  Richard Jones  <rjones@redhat.com>
3386
3387         doc: users.txt: list febootstrap
3388         * users.txt: Add febootstrap.
3389
3390 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
3391
3392         bootstrap: fix an error when gnulib is not used as a git submodule
3393         * build-aux/bootstrap (gnulib_path): If its length is zero then
3394         assign "gnulib" to it.
3395         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
3396
3397 2010-05-16  Bruno Haible  <bruno@clisp.org>
3398
3399         Avoid autoconf warnings about AM_ICONV.
3400         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
3401         2.64.
3402
3403 2010-05-16  Bruno Haible  <bruno@clisp.org>
3404
3405         absolute-header: Make the macro usable in more situations.
3406         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
3407         from gl_ABSOLUTE_HEADER.
3408         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
3409
3410 2010-05-16  James Youngman  <jay@gnu.org>
3411
3412         doc: update users.txt
3413         * users.txt: Add CSSC.
3414
3415 2010-05-16  Jim Meyering  <meyering@redhat.com>
3416
3417         init.sh: fix an error in the previous change; add more comments
3418         * tests/init.sh: Compare exit code in loop against 9, not 2.
3419         Patch by Bruno Haible.
3420         Make the two tests more similar by adding an empty "then" clause.
3421         Add comments.
3422
3423         init.sh: avoid unnecessary shell re-exec
3424         * tests/init.sh: Improve the re-exec-required check to first test the
3425         current shell.  If it passes the test, do not search for a shell that
3426         does pass, and do not re-exec.  This test is particularly contorted to
3427         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
3428         of $(...) evokes a syntax error and causes immediate shell exit with
3429         status 2.  Bruno Haible reported that the re-exec made it impossible
3430         to single-step through any init.sh-using script.
3431
3432 2010-05-16  Bruno Haible  <bruno@clisp.org>
3433
3434         Fix collision between gnulib's and libintl's printf replacements.
3435         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
3436         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
3437         (printf): When using GNU C, map the __printf__ function to rpl_printf
3438         via __asm__. When not using GNU C, define rpl_printf instead of
3439         __printf__.
3440         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
3441         commit.
3442         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
3443         commit.
3444         * m4/asm-underscore.m4: New file.
3445         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
3446         * modules/stdio (Files): Add m4/asm-underscore.m4.
3447         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
3448         Reported by Ben Pfaff.
3449
3450 2010-05-16  Bruno Haible  <bruno@clisp.org>
3451
3452         verify: Avoid skipping the test on openSUSE 11.0.
3453         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
3454
3455 2010-05-13  Bruno Haible  <bruno@clisp.org>
3456
3457         Avoid useless warnings from G++.
3458         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
3459         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
3460         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3461
3462 2010-05-11  Jim Meyering  <meyering@redhat.com>
3463
3464         maint.mk: tweak preceding change
3465         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
3466         regexps tighter by anchoring at EOL, and make the new group "shy"
3467         for slightly decreased overhead.
3468
3469 2010-05-11  Eric Blake  <eblake@redhat.com>
3470
3471         maint.mk: gnulib doesn't guarantee NSIG
3472         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
3473
3474 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3475
3476         test-pwrite.c: Remove unused variable declaration.
3477         * tests/test-pwrite.c (main): Remove read_buf declaration.
3478
3479         Remove useless test-pwrite.sh file.
3480         * tests/test-pwrite.sh: Delete file.
3481         * modules/pwrite-tests: Remove references.
3482         Reported by Bruno Haible.
3483
3484 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3485
3486         init.sh: fix a typo
3487         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
3488
3489 2010-05-10  Jim Meyering  <meyering@redhat.com>
3490
3491         maint.mk: avoid using a temporary file in the always-defined-macros check
3492         * top/maint.mk (.re-defmac): Remove rule.
3493         (gl_trap_): Remove definition.
3494         (sc_prohibit_always-defined_macros): Rewrite not to create and
3495         depend on a temporary file.  Instead, depend on GNU grep's ability
3496         to read a list of regular expressions from stdin when given "-f -".
3497
3498 2010-05-09  Bruno Haible  <bruno@clisp.org>
3499
3500         Update to GNU gettext 0.18, part 1.
3501         * m4/gettext.m4: Update to GNU gettext 0.18.
3502         * m4/intl.m4: Likewise.
3503         * m4/po.m4: Likewise.
3504         * modules/gettext (Files): Add m4/fcntl-o.m4.
3505         (configure.ac): Require gettext infrastructure from version 0.18.
3506
3507 2010-05-09  Jim Meyering  <meyering@redhat.com>
3508
3509         init.sh: enable MALLOC_PERTURB_
3510         * tests/init.sh: Enable glibc's malloc-perturbing option.
3511
3512         maint.mk: improve sc_cross_check_PATH_usage_in_tests
3513         With my recent change in init.sh from the two-line form:
3514             -#   : ${srcdir=.}
3515             -#   . "$srcdir/init.sh"; path_prepend_ .
3516             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
3517         I noticed that using the one-line form would cause this test
3518         to fail with a false-positive, or to stop working altogether,
3519         depending on whether help-version changed or all the tests did.
3520         * top/maint.mk (_hv_regex): Remove this definition.
3521         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
3522         (_hv_regex_strong): Use a stronger regex to check for conformance.
3523         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
3524         Give a separate diagnostic for lack of conforming use.
3525
3526         maint.mk: prohibit definition of symbols defined by gnulib
3527         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
3528         definition of symbols defined by gnulib.
3529
3530 2010-05-09  Bruno Haible  <bruno@clisp.org>
3531
3532         acl: Avoid test failure on Cygwin-hosted mingw.
3533         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
3534
3535 2010-05-09  Bruno Haible  <bruno@clisp.org>
3536
3537         error: Use system's fcntl function.
3538         * lib/error.c (fcntl): Undefine.
3539
3540 2010-05-09  Jim Meyering  <meyering@redhat.com>
3541
3542         verify: adjust formatting to be more consistent
3543         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
3544         argument-list '('s, and after one comma.
3545
3546 2010-05-09  Bruno Haible  <bruno@clisp.org>
3547
3548         error: More reliable output on mingw.
3549         * lib/error.c: Include <windows.h>.
3550         (is_open): New function.
3551         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
3552         defined.
3553
3554 2010-05-09  Bruno Haible  <bruno@clisp.org>
3555
3556         vasnprintf: Fix syntax errors in libintl build on mingw.
3557         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
3558         pad_ourselves and prec_ourselves after use.
3559
3560 2010-05-08  Bruno Haible  <bruno@clisp.org>
3561
3562         * lib/config.charset: Update comments for Cygwin 1.7.
3563         * lib/localcharset.c: Likewise.
3564
3565 2010-05-07  Jim Meyering  <meyering@redhat.com>
3566
3567         init.sh: improve comments
3568         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
3569         . "${srcdir=.}/init.sh"; path_prepend_ .
3570         Add a note about path_prepend_ and the alternative of using
3571         TESTS_ENVIRONMENT.
3572
3573 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3574
3575         exclude: Unescape hashed patterns in wildcard mode.
3576         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
3577         to the hash list.
3578         * tests/test-exclude8.sh: New test case.
3579         * modules/exclude-tests: Add new test.
3580
3581 2010-05-05  Eric Blake  <eblake@redhat.com>
3582
3583         verify: automate tests
3584         * modules/verify-tests: New module.
3585         * tests/test-verify.sh: New file.
3586         * tests/test-verify.c: Guard each negative test with a unique id.
3587         Also avoid warning about unused left hand of comma expressions.
3588
3589 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3590
3591         Further improvements to verify.h, suggested by Eric Blake.
3592         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3593         the GL_* versions, to avoid collision with OpenGL.
3594         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3595         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3596         than testing merely whether it's defined.
3597
3598         Modify verify.h to pacify gcc -Wredundant_decls.
3599         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3600         These use the prefix "GL_" since they're likely to be useful elsewhere.
3601         We may need to break them out into a different .h file.
3602         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3603         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3604         of verify_function__.
3605
3606 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3607
3608         Tests for module pwrite.
3609         * modules/pwrite-tests: New file.
3610         * tests/test-pwrite.sh: New file.
3611         * tests/test-pwrite.c: New file.
3612
3613         New module pwrite.
3614         * lib/unistd.in.h (pwrite): New declaration.
3615         * lib/pwrite.c: New file, from glibc with modifications.
3616         * m4/pwrite.m4: New file.
3617         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3618         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3619         REPLACE_PWRITE.
3620         * modules/pwrite: New file.
3621         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3622         REPLACE_PWRITE.
3623         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3624         * doc/posix-functions/pwrite.texi: Mention the new module.
3625
3626 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3627
3628         pread: Update documentation.
3629         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3630
3631 2010-05-04  Eric Blake  <eblake@redhat.com>
3632
3633         docs: update cygwin progress
3634         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3635         this bug.
3636         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3637         Added in cygwin 1.7.2.
3638         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3639         Likewise.
3640         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3641         Likewise.
3642         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3643         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3644         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3645         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3646         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3647         Mention nproc module.
3648         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3649         bug in cygwin 1.7.5 addition.
3650         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3651         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3652         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3653         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3654         1.7.5.
3655         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3656         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3657         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3658         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3659         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3660         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3661         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3662         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3663         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3664         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3665         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3666         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3667         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3668         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3669         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3670         Likewise.
3671         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3672         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3673         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3674         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3675         Likewise.
3676         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3677         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3678         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3679         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3680         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3681         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3682         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3683         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3684         Likewise.
3685         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3686         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3687         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3688         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3689         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3690         Likewise.
3691         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3692         Likewise.
3693         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3694         Likewise.
3695         * doc/glibc-functions/xdrrec_endofrecord.texi
3696         (xdrrec_endofrecord): Likewise.
3697         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3698         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3699         Likewise.
3700         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3701         Likewise.
3702
3703 2010-05-04  Jim Meyering  <meyering@redhat.com>
3704
3705         gendocs.sh: make its "-s FILE" option more useful
3706         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3707         $PACKAGE to reflect the probably-different basename of "FILE".
3708
3709 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3710
3711         bootstrap: don't ignore download_po_files failure
3712         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3713         failure.
3714
3715 2010-05-03  Jim Meyering  <meyering@redhat.com>
3716
3717         maint.mk: allow to pass options to gendocs.sh
3718         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3719         (gendocs_options_): New overridable variable.
3720
3721         gnu-web-doc-update: don't ignore configure or build failure
3722         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3723
3724         announce-gen: backslash-escape '@'s in --help output
3725         * build-aux/announce-gen: Fix syntax errors.
3726
3727         maint.mk, announce-gen: allow project-specific announcement mail headers
3728         * top/maint.mk (translation_project_): Define default.
3729         (announcement_Cc_, announcement_mail_headers_): Likewise.
3730         (announcement): Invoke announce-gen with new --mail-headers option.
3731         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3732
3733         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3734         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3735         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3736         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3737         line in the "err2" output file when running "make check" in verbose
3738         mode (i.e., with set -x enabled).
3739
3740 2010-05-03  Bruno Haible  <bruno@clisp.org>
3741
3742         wctob: Fix for weird platforms.
3743         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3744         argument value.
3745
3746 2010-05-03  Jim Meyering  <meyering@redhat.com>
3747
3748         maint.mk: prohibit unwarranted use of <strings.h>
3749         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3750         strings.h in a file that does not also use strcasecmp, strncasecmp,
3751         ffs or ffsll.
3752
3753         maint.mk: remove obsolete comments
3754         * top/maint.mk: Remove stale, commented-out rules.
3755
3756 2010-05-02  Bruno Haible  <bruno@clisp.org>
3757
3758         wcwidth: Declare also when it's aliased.
3759         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3760         macro.
3761
3762 2010-05-02  Bruno Haible  <bruno@clisp.org>
3763
3764         Fix regression from 2010-04-25.
3765         * gnulib-tool (func_modules_transitive_closure): Check the status of
3766         all modules, not only of the tests that are of the form foo-tests where
3767         foo is a module.
3768
3769 2010-05-02  Bruno Haible  <bruno@clisp.org>
3770
3771         wctob: Work around nasty Cygwin 1.7.2 bug.
3772         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3773         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3774
3775 2010-05-01  Bruno Haible  <bruno@clisp.org>
3776
3777         fpurge: Sharper test.
3778         * tests/test-fpurge.c (main): Add one more ftell check.
3779         * modules/fpurge-tests (Depends-on): Add ftell.
3780         Suggested by Eric Blake.
3781
3782 2010-05-01  Bruno Haible  <bruno@clisp.org>
3783
3784         ftello: Another test.
3785         * tests/test-ftello3.c: New file.
3786         * modules/ftello-tests (Files): Add it.
3787         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3788         MOSTLYCLEANFILES.
3789
3790         ftell: Another test.
3791         * tests/test-ftell3.c: New file.
3792         * modules/ftell-tests (Files): Add it.
3793         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3794         MOSTLYCLEANFILES.
3795
3796 2010-05-01  Bruno Haible  <bruno@clisp.org>
3797
3798         ftell, ftello: Work around Solaris bug.
3799         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3800         * lib/ftello.c: Include stdio-impl.h.
3801         (ftello): On Solaris, when _IOWRT is set, compute the result without
3802         looking at _IOREAD.
3803         * modules/ftello (Files): Add lib/stdio-impl.h.
3804         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3805         * doc/posix-functions/ftello.texi: Likewise.
3806         Reported by Eric Blake.
3807
3808 2010-05-01  Bruno Haible  <bruno@clisp.org>
3809
3810         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3811         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3812         the _IOWRT flag is also set.
3813
3814 2010-05-01  Bruno Haible  <bruno@clisp.org>
3815
3816         Fix doc about a HP-UX stdio bug.
3817         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3818         * doc/posix-functions/ftello.texi: Likewise.
3819
3820 2010-05-01  Bruno Haible  <bruno@clisp.org>
3821
3822         lseek test: Fix failure on Solaris.
3823         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3824         output.
3825
3826 2010-04-30  Jim Meyering  <meyering@redhat.com>
3827
3828         bootstrap: don't ignore failure to generate po*/Makevars
3829         * build-aux/bootstrap (with_gettext): Don't ignore failure
3830         to create po/Makevars or runtime-po/Makevars.
3831
3832 2010-04-29  Eric Blake  <eblake@redhat.com>
3833
3834         headers: relax license to LGPLv2+
3835         * modules/fcntl-h (License): Relax license.
3836         * modules/getopt-posix (License): Likewise.
3837         * modules/locale (License): Likewise.
3838         * modules/math (License): Likewise.
3839         * modules/pty (License): Likewise.
3840         * modules/sched (License): Likewise.
3841         * modules/search (License): Likewise.
3842         * modules/spawn (License): Likewise.
3843         * modules/stdarg (License): Likewise.
3844         * modules/sysexits (License): Likewise.
3845
3846 2010-04-29  Jim Meyering  <meyering@redhat.com>
3847
3848         inttypes: relax license to LGPLv2+
3849         * modules/inttypes (License): Relax license.
3850
3851 2010-04-29  Simon Josefsson  <simon@josefsson.org>
3852
3853         * top/maint.mk (indent): Run twice to produce idempotent results.
3854
3855 2010-04-28  Bruno Haible  <bruno@clisp.org>
3856
3857         getdate: Generate getdate.c in the source directory.
3858         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
3859         MOSTLYCLEANFILES.
3860         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
3861
3862 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
3863
3864         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
3865         is not declared as a const *; avoid warnings in that case.
3866
3867 2010-04-28  Eric Blake  <eblake@redhat.com>
3868
3869         canonicalize-lgpl: avoid compiler warning
3870         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
3871         declaration' / 'extraneous semicolon' warning with some compilers.
3872         Reported by Andreas Gruenbacher.
3873
3874 2010-04-28  Jim Meyering  <meyering@redhat.com>
3875
3876         init.sh: ensure a more reliable exit status when exiting via trap
3877         * tests/init.sh (setup_): Don't rely on $? in signal handler.
3878         Inspired by patches from Dmitry V. Levin.
3879         Also trap on signal 3 (SIGQUIT).
3880
3881 2010-04-27  Bruno Haible  <bruno@clisp.org>
3882
3883         Update doc about utimes().
3884         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
3885         'utimens' module.
3886         Reported by Andreas Gruenbacher <agruen@suse.de>.
3887
3888 2010-04-27  Eric Blake  <eblake@redhat.com>
3889
3890         full-read, full-write: relax license
3891         * modules/full-read (License): Drop to LGPLv2+.
3892         * modules/full-write (License): Likewise.
3893         * modules/safe-read (License): Likewise.
3894         * modules/safe-write (License): Likewise.
3895
3896         pthread: mention library for linking
3897         * modules/pthread (Link): Mention $(LIB_PTHREAD).
3898
3899 2010-04-27  Jim Meyering  <meyering@redhat.com>
3900
3901         maint.mk: fix a bug introduced in last change
3902         * top/maint.mk (gl_assured_headers_): Now that all names are on
3903         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
3904         is not anchored to end of word, it should be adequate.
3905
3906         maint.mk: avoid side-effect in latest syntax-check
3907         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
3908         to run commands via $(shell...), and hence to incur cost only when
3909         the new rule is actually run.
3910
3911         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
3912         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
3913         and use that to create a regexp used to detect all #if HAVE_..._H uses.
3914         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
3915         (gl_assured_headers_, az_, AZ_): Define.
3916         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
3917
3918 2010-04-26  Jim Meyering  <jim@meyering.net>
3919             Bruno Haible  <bruno@clisp.org>
3920
3921         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
3922         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
3923         Prompted by an exchange with Gilles Espinasse.
3924
3925 2010-04-26  Jim Meyering  <meyering@redhat.com>
3926
3927         git-version-gen: aesthetic tweak
3928         * build-aux/git-version-gen: Use "$nl" rather than a literal,
3929         so that the command remains on a single line.
3930
3931 2010-04-26  Eric Blake  <eblake@redhat.com>
3932
3933         git-version-gen: allow use on EBCDIC hosts
3934         * build-aux/git-version-gen (dirty): Use literal rather than tying
3935         ourselves to ascii.
3936         Reported by Steve Goetze.
3937
3938 2010-04-25  Bruno Haible  <bruno@clisp.org>
3939
3940         netdb: Add support for GNULIB_POSIXCHECK.
3941         * lib/netdb.in.h: Include warn-on-use.h.
3942         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
3943         functions are used when GNULIB_POSIXCHECK is defined and the
3944         getaddrinfo module is not in use.
3945         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
3946         freeaddrinfo, gai_strerror, getnameinfo are declared.
3947         * modules/netdb (Depends-on): Add warn-on-use.
3948         (Makefile.am): Include warn-on-use.h in netdb.h.
3949
3950 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
3951
3952         build: avoid "make check" failure without .git/ directory
3953         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
3954         there is no .git/ directory.
3955
3956 2010-04-25  Bruno Haible  <bruno@clisp.org>
3957
3958         ptsname: Fix misuse of ttyname_r.
3959         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
3960         of errno.
3961
3962 2010-04-25  Bruno Haible  <bruno@clisp.org>
3963
3964         ttyname_r: Make it work on Solaris 10.
3965         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
3966         if the system function has the POSIX declaration. Test whether the
3967         function fails if the buffer is less than 128 bytes large.
3968         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
3969         system's ttyname_r function. Provide a reasonably large buffer.
3970         * modules/ttyname_r (Depends-on): Add extensions.
3971         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
3972
3973 2010-04-25  Bruno Haible  <bruno@clisp.org>
3974
3975         Use the 'extensions' module for some more functions on Solaris.
3976         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
3977         module.
3978         * doc/posix-functions/ctime_r.texi: Likewise.
3979         * doc/posix-functions/getgrgid_r.texi: Likewise.
3980         * doc/posix-functions/getgrnam_r.texi: Likewise.
3981         * doc/posix-functions/getpwnam_r.texi: Likewise.
3982         * doc/posix-functions/getpwuid_r.texi: Likewise.
3983         * doc/posix-functions/readdir_r.texi: Likewise.
3984         * doc/posix-functions/sigwait.texi: Likewise.
3985         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
3986         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
3987
3988 2010-04-25  Bruno Haible  <bruno@clisp.org>
3989
3990         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
3991         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
3992         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
3993         * lib/ttyname_r.c: Include <limits.h>.
3994         (ttyname_r): Define using the system's ttyname_r function, if it exists
3995         and not on Solaris.
3996         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
3997         set.
3998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
3999         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
4000         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
4001         Reported by Simon Josefsson.
4002
4003 2010-04-25  Bruno Haible  <bruno@clisp.org>
4004
4005         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
4006         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
4007         * doc/posix-functions/ctime_r.texi: Likewise.
4008         * doc/posix-functions/getgrgid_r.texi: Likewise.
4009         * doc/posix-functions/getgrnam_r.texi: Likewise.
4010         * doc/posix-functions/getlogin_r.texi: Likewise.
4011         * doc/posix-functions/getpwnam_r.texi: Likewise.
4012         * doc/posix-functions/getpwuid_r.texi: Likewise.
4013         * doc/posix-functions/readdir_r.texi: Likewise.
4014         * doc/posix-functions/sigwait.texi: Likewise.
4015         * doc/posix-functions/ttyname_r.texi: Likewise.
4016         Reported by Simon Josefsson.
4017
4018 2010-04-25  Bruno Haible  <bruno@clisp.org>
4019
4020         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
4021         * gnulib-tool (func_usage): Document that --with-*-tests options apply
4022         also to --create-testdir.
4023         (func_acceptable): Don't consider the status of *-tests modules here.
4024         (func_modules_transitive_closure): Consider it here, before including a
4025         test module.
4026         (func_import, func_create_testdir): Set inc_all_direct_tests,
4027         inc_all_indirect_tests.
4028         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
4029         --create-testdir and --create-megatestdir.
4030
4031 2010-04-25  Bruno Haible  <bruno@clisp.org>
4032
4033         gnulib-tool: Add --without-*-tests options.
4034         * gnulib-tool (func_usage): Document the --without-*-tests options.
4035         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
4036         excl_unportable_tests): New variables.
4037         Fail if they are specified with --import or --update.
4038         (func_acceptable): Respect the excl_*_tests variables.
4039         (func_import): Set the excl_*_tests variables to empty.
4040
4041 2010-04-25  Simon Josefsson  <simon@josefsson.org>
4042             Bruno Haible  <bruno@clisp.org>
4043
4044         Work around a MacOS X 10.4 bug with openpty.
4045         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
4046         * tests/test-openpty.c (main): Close the master side explicitly.
4047
4048 2010-04-25  Bruno Haible  <bruno@clisp.org>
4049
4050         strnlen: Fix a C++ test error on MacOS X and Solaris.
4051         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
4052         the function is not declared.
4053         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
4054         Simon Josefsson.
4055
4056 2010-04-24  Bruno Haible  <bruno@clisp.org>
4057
4058         Avoid a gcc warning.
4059         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
4060         of correct type for %08lx directive.
4061         Reported by Eric Blake.
4062
4063 2010-04-24  Bruno Haible  <bruno@clisp.org>
4064
4065         vasnprintf: Correct errno value in case of out-of-memory.
4066         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
4067         or sprintf. Use the errno value from SNPRINTF or sprintf.
4068         Reported by Ian Beckwith <ianb@erislabs.net>.
4069
4070 2010-04-24  Bruno Haible  <bruno@clisp.org>
4071
4072         ansi-c++-opt: Find correct compiler when cross-compiling.
4073         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
4074         AC_CHECK_PROGS.
4075         Reported by Simon Josefsson.
4076
4077 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
4078
4079         vc-list-files: Add support for subversion
4080         * build-aux/vc-list-files: Use "svn list" to generate the list of
4081         files controlled by subversion.
4082
4083 2010-04-23  Jim Meyering  <meyering@redhat.com>
4084
4085         vc-list-files tests: convert to use init.sh
4086         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
4087         path_prepend_.
4088         Use Exit, not exit.
4089         Use skip_ rather than open coding it.
4090         Remove trap set-up and compare definitions.
4091         * tests/test-vc-list-files-git.sh: Likewise.
4092         * modules/vc-list-files-tests (Files): Add tests/init.sh.
4093
4094 2010-04-22  Simon Josefsson  <simon@josefsson.org>
4095
4096         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
4097         backup files.
4098
4099 2010-04-21  Simon Josefsson  <simon@josefsson.org>
4100
4101         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
4102
4103 2010-04-20  Eric Blake  <eblake@redhat.com>
4104
4105         tests: be robust to ignored SIGPIPE
4106         * tests/test-select-in.sh: Consume all output.
4107         * tests/test-lseek.sh: Check correct exit status, while avoiding
4108         EPIPE.
4109
4110 2010-04-20  Simon Josefsson  <simon@josefsson.org>
4111             Bruno Haible  <bruno@clisp.org>
4112
4113         visibility: Don't use -fvisibility if it leads to a warning.
4114         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
4115         yes, don't pretend that visibility works if it leads to a warning.
4116         Reported by Mike Gran <spk121@yahoo.com>.
4117
4118 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
4119
4120         * build-aux/bootstrap: Use "git -h" for testing for supported options
4121         instead of "git --help".  The short-form option only shows a summary,
4122         and doesn't layout the full man page.  Grep for the full option name
4123         in the summary, too.
4124
4125 2010-04-19  Bruno Haible  <bruno@clisp.org>
4126
4127         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
4128         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
4129         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
4130         mention of RELOCATABLE_STRIP.
4131         Reported by Sylvain Beucler <beuc@beuc.net>.
4132
4133 2010-04-19  Bruno Haible  <bruno@clisp.org>
4134
4135         * lib/diffseq.h: Fix typo in comment.
4136         Reported by Eric Blake.
4137
4138 2010-04-19  Bruno Haible  <bruno@clisp.org>
4139
4140         ioctl: Move autoconf macro to a .m4 file.
4141         * m4/ioctl.m4: New file, extracted from modules/ioctl.
4142         * modules/ioctl (Files): Add it.
4143         (configure.ac): Simply invoke gl_FUNC_IOCTL.
4144         Reported by Ian Beckwith <ianb@erislabs.net>.
4145
4146 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
4147             Bruno Haible  <bruno@clisp.org>
4148
4149         diffseq: Accommodate use-case with abstract arrays.
4150         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
4151         is not defined.
4152         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
4153         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
4154
4155 2010-04-18  Bruno Haible  <bruno@clisp.org>
4156
4157         * doc/posix-headers/stdbool.texi: More precise wording.
4158
4159 2010-04-17  Jim Meyering  <meyering@redhat.com>
4160
4161         maint.mk: use gnu-style indentation in an embedded perl script
4162         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
4163         Rename variable: s/two/last_two_bytes/
4164
4165 2010-04-16  Eric Blake  <eblake@redhat.com>
4166
4167         test-stdbool: skip test that fails with Solaris CC
4168         * tests/test-stdbool.c (f): Skip test that causes compilation
4169         error under buggy C++ compiler.
4170         * lib/stdbool.in.h: Document the limitation.
4171         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
4172
4173         setenv: allow compilation with C++
4174         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
4175         register keyword.
4176
4177         stdint: allow test to pass with C++
4178         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
4179
4180         getopt: allow compilation with C++
4181         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
4182         struct.
4183         * lib/getopt.c (_getopt_internal_r): Use correct type.
4184         Reported by Dagobert Michelson, via Joel E. Denny.
4185
4186 2010-04-16  Bruno Haible  <bruno@clisp.org>
4187
4188         Override netdb.h always.
4189         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
4190         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
4191         Reported by Ludovic Courtès <ludo@gnu.org>.
4192
4193 2010-04-15  Bruno Haible  <bruno@clisp.org>
4194
4195         openpty: Fix mistake from 2010-03-21.
4196         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
4197         Reported by Simon Josefsson.
4198
4199 2010-04-15  Eric Blake  <eblake@redhat.com>
4200
4201         test-forkpty: fix expected signature
4202         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
4203         Reported by Simon Josefsson.
4204
4205 2010-04-15  Jim Meyering  <meyering@redhat.com>
4206
4207         maint.mk: texinfo_suffix_re_: correct the default regexp
4208         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
4209
4210         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
4211         make it configurable via texinfo_suffix_re_.
4212
4213 2010-04-14  Eric Blake  <eblake@redhat.com>
4214
4215         strtok_r: relax license to LGPLv2+
4216         * modules/strtok_r (License): Relax license.
4217         Reported by Matthias Bolte.
4218
4219 2010-04-14  Simon Josefsson  <simon@josefsson.org>
4220
4221         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
4222         version 1.4.4 by default instead of requiring the libgcrypt
4223         version used during build.  This makes it possible to use the
4224         application with older but still binary compatible libgcrypt
4225         versions.
4226
4227 2010-04-13  Eric Blake  <eblake@redhat.com>
4228
4229         getopt-gnu: match recent glibc fixes and posix ruling
4230         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
4231         '+' handling, when requesting extensions.
4232         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
4233         'W;' handling.
4234         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
4235         * doc/posix-functions/getopt.texi (getopt): Document this.
4236         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4237         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4238         Likewise.
4239
4240         getopt: merge bug fixes from glibc
4241         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
4242         diagnostics.  Honor '+:' correctly.  Reject ';'.
4243
4244         getopt-posix: detect MacOS bug
4245         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
4246         optind when missing a required argument.
4247         * doc/posix-functions/getopt.texi (getopt): Document the bug.
4248         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4249         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4250         Likewise.
4251
4252         getopt-posix: avoid spurious failure on Solaris
4253         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
4254         an indicator that setting optind=1 is sufficient for reset.
4255
4256         getopt-posix: avoid spurious failure on FreeBSD
4257         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
4258         in POSIX mode, since the m4 test uses it.
4259
4260         gnulib-tool: silence warning on BSD sh
4261         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
4262
4263 2010-04-13  Jim Meyering  <meyering@redhat.com>
4264
4265         doc: users.txt: GNU patch now uses gnulib
4266         * users.txt: Add patch.
4267
4268 2010-04-12  Jim Meyering  <meyering@redhat.com>
4269
4270         maint.mk: generate more concise timing data for syntax-check rules
4271         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
4272         " done" from each line that reports a syntax-check test duration.
4273
4274 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
4275
4276         git-version-gen: use "git update-index..." rather than "git status"
4277         * build-aux/git-version-gen: Use git update-index --refresh, not
4278         "git status".  With some versions of git, "git status" would fail
4279         to update the index and result in an unwarranted "-dirty" suffix.
4280
4281 2010-04-11  Jim Meyering  <meyering@redhat.com>
4282
4283         openat: correct formatting (no semantic change)
4284         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
4285         Suggested by Bruno Haible.
4286
4287 2010-04-11  Bruno Haible  <bruno@clisp.org>
4288
4289         Stricter declaration checking in testdirs.
4290         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4291         If for_tests is true, augment AM_CPPFLAGS to define
4292         GNULIB_STRICT_CHECKING.
4293         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
4294         GNULIB_STRICT_CHECKING is defined, verify that the function is
4295         declared.
4296
4297 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
4298             Bruno Haible  <bruno@clisp.org>
4299
4300         libunistring: Improve configure output.
4301         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
4302         Don't say "consider installing GNU libunistring" when checking again
4303         with libiconv.
4304
4305 2010-04-11  Bruno Haible  <bruno@clisp.org>
4306
4307         libunistring: Correct value of $LTLIBUNISTRING.
4308         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
4309         correct the value of $LTLIBUNISTRING.
4310
4311 2010-04-11  Bruno Haible  <bruno@clisp.org>
4312
4313         havelib: Add static libraries to LIBS in the right order.
4314         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
4315         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
4316
4317 2010-04-11  Bruno Haible  <bruno@clisp.org>
4318
4319         libunistring: Detect libunistring also when it depends on libiconv.
4320         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
4321         the second AC_LIB_HAVE_LINKFLAGS invocation.
4322
4323 2010-04-11  James Youngman  <jay@gnu.org>
4324
4325         close-stream: declare local scalars to be "const"
4326         * lib/close-stream.c (close_stream): Make boolean variables const
4327         to document the fact that we set but do not change them.
4328
4329 2010-04-11  Bruno Haible  <bruno@clisp.org>
4330
4331         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
4332
4333 2010-04-11  Jim Meyering  <meyering@redhat.com>
4334
4335         maint.mk: don't include dist-check.mk
4336         * top/maint.mk: Remove bogus include directive.
4337
4338         maint.mk: improve empty-line-at-EOF check
4339         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
4340         solution, rather than tail+Perl-based one.  The latter would read
4341         a few kilobytes from the end of each file, and did not handle empty
4342         files properly.
4343
4344         maint.mk: print the elapsed time for each syntax-check rule
4345         * top/maint.mk (sc_m_rules_): Save start time in a file.
4346         (sc_z_rules_): New rules: remove temp file and print elapsed time.
4347         (local-check): Interpose the .z rules
4348
4349 2010-04-11  Jim Meyering  <meyering@redhat.com>
4350
4351         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
4352         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
4353         empty file with one that ends in an empty line.
4354
4355 2010-04-10  Bruno Haible  <bruno@clisp.org>
4356
4357         mkdir: Make it work on mingw64.
4358         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
4359         * lib/mkdir.c: Update comment.
4360         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
4361
4362 2010-04-10  Bruno Haible  <bruno@clisp.org>
4363
4364         Don't override improved macro from newer autoconf.
4365         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
4366         autoconf >= 2.62.
4367         Reported by Joel E. Denny <jdenny@clemson.edu>.
4368
4369 2010-04-10  Jim Meyering  <meyering@redhat.com>
4370
4371         maint.mk: new syntax-check rule: prohibit empty lines at end of file
4372         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
4373
4374         maint.mk: correct a diagnostic
4375         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
4376         in diagnostic; now use $prohibit.
4377
4378 2010-04-10  Bruno Haible  <address@hidden>
4379
4380         fchownat: Fix a C++ test error on Solaris 8.
4381         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
4382         the function does not exist.
4383
4384 2010-04-10  Bruno Haible  <bruno@clisp.org>
4385
4386         vasnprintf: Add more tests.
4387         * tests/test-vasnprintf-posix.c: Include <errno.h>.
4388         (test_function): Test converting an invalid wide string.
4389
4390         vasnprintf: Correct handling of unconvertible wide string arguments.
4391         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
4392         VASNPRINTF.
4393         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
4394         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
4395         smaller than the expected maximum need for the directive. Set errno to
4396         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
4397         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
4398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
4399         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
4400         * modules/vasnprintf (Files): Add m4/printf.m4.
4401         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4402
4403 2010-04-10  Bruno Haible  <bruno@clisp.org>
4404
4405         vasnprintf: Fix crash in %ls directive.
4406         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
4407         string is passed as argument to %ls, with no precision and no width.
4408         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4409
4410 2010-04-10  Bruno Haible  <bruno@clisp.org>
4411
4412         vasnprintf: Fix multiple test failures on mingw.
4413         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
4414         _snprintf, or snwprintf, not _snwprintf.
4415
4416 2010-04-10  Bruno Haible  <bruno@clisp.org>
4417
4418         write: Fix a C++ test error on mingw.
4419         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
4420
4421 2010-04-10  Bruno Haible  <bruno@clisp.org>
4422
4423         vasnprintf test: Reduce code duplication.
4424         * tests/test-vasnprintf.c (test_function): New function, extracted from
4425         test_vasnprintf.
4426         (test_vasnprintf, test_asnprintf): Invoke it.
4427
4428 2010-04-10  Bruno Haible  <bruno@clisp.org>
4429
4430         strnlen: Fix warning in C++ mode on MacOS X.
4431         * lib/string.in.h (strnlen): Use the modern idiom.
4432         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
4433         defining strnlen as a macro already in <config.h>.
4434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4435         REPLACE_STRNLEN.
4436         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
4437         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4438
4439 2010-04-08  James Youngman  <jay@gnu.org>
4440
4441         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
4442         the example.
4443
4444 2010-04-09  Jim Meyering  <meyering@redhat.com>
4445
4446         maint.mk: print better diagnostic when there is no $(_hv_file)
4447         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
4448         announce that when $(_hv_file) (aka help-version) does not exist.
4449
4450         init.sh: run tr in the "C" locale to avoid multibyte interpretation
4451         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
4452         not try to interpret its random input bytes.  Jarno Rajahalme reported
4453         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
4454         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
4455         (mktempd_): Likewise, just in case.
4456
4457         ftruncate: add two years to projected module removal date: 2012
4458         * m4/ftruncate.m4: Adjust comments.
4459
4460         ftruncate: mark module as obsolete; even MinGW provides it, now
4461         * modules/ftruncate (Status): Obsolete.
4462         (Notice): Say that.
4463         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
4464         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
4465
4466 2010-04-08  Bruno Haible  <bruno@clisp.org>
4467
4468         Fix side effects from tests-related modules.
4469         * modules/dprintf-posix (Comment): New section.
4470         * modules/fprintf-posix (Comment): Likewise.
4471         * modules/obstack-printf-posix (Comment): Likewise.
4472         * modules/printf-posix (Comment): Likewise.
4473         * modules/snprintf-posix (Comment): Likewise.
4474         * modules/sprintf-posix (Comment): Likewise.
4475         * modules/vasnprintf-posix (Comment): Likewise.
4476         * modules/vasprintf-posix (Comment): Likewise.
4477         * modules/vdprintf-posix (Comment): Likewise.
4478         * modules/vfprintf-posix (Comment): Likewise.
4479         * modules/vprintf-posix (Comment): Likewise.
4480         * modules/vsnprintf-posix (Comment): Likewise.
4481         * modules/vsprintf-posix (Comment): Likewise.
4482         * modules/xprintf-posix (Comment): Likewise.
4483         * modules/xvasprintf-posix (Comment): Likewise.
4484         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
4485         * modules/floorf-tests (Depends-on): Likewise.
4486         * modules/round-tests (Depends-on): Likewise.
4487         * modules/roundf-tests (Depends-on): Likewise.
4488         * modules/trunc-tests (Depends-on): Likewise.
4489         * modules/truncf-tests (Depends-on): Likewise.
4490         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
4491         'fprintf-posix' module is not present.
4492         * tests/test-floorf2.c (check): Likewise.
4493         * tests/test-trunc2.c (check): Likewise.
4494         * tests/test-truncf2.c (check): Likewise.
4495         * tests/test-round2.c (equal): Likewise.
4496         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4497
4498 2010-04-07  Karl Berry  <karl@gnu.org>
4499
4500         * config/srclist.txt,
4501         * config/srclistvars.sh,
4502         * config/srclist-update: doc fixes.
4503
4504 2010-04-07  Jim Meyering  <meyering@redhat.com>
4505
4506         maint.mk: add a PATH crosschecking syntax-check rule
4507         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
4508         Useful if you use a test like the one in help-version (coreutils,
4509         diffutils, grep, gzip) that ensures $(VERSION) matches what is
4510         printed by prog --version.
4511
4512 2010-04-06  Bruno Haible  <bruno@clisp.org>
4513
4514         Fix link error on mingw.
4515         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
4516         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
4517
4518 2010-04-06  Bruno Haible  <bruno@clisp.org>
4519
4520         Assume rmdir exists.
4521         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
4522
4523 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
4524
4525         doc: update users.txt
4526         * users.txt: Add gcal.
4527
4528 2010-04-06  Jim Meyering  <meyering@redhat.com>
4529
4530         init.sh: simply unset TMPDIR rather than risking env -i
4531         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
4532         although it probably works fine on all Unix-based systems, some
4533         systems (Cygwin?) cannot tolerate a totally cleared environment.
4534         Suggestion from Eric Blake.
4535
4536 2010-04-06  Jim Meyering  <meyering@redhat.com>
4537
4538         init.sh: portability fix: use env's POSIX-specified -i option not -u
4539         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
4540         than unportable env -u.  Solaris 5.11's env lacks support for -u.
4541
4542 2010-04-05  Bruno Haible  <bruno@clisp.org>
4543
4544         btowc: Work around Cygwin 1.7.2 bug.
4545         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
4546         does not map NUL to 0.
4547         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
4548
4549 2010-04-05  Bruno Haible  <bruno@clisp.org>
4550
4551         Make the multithread modules work on Cygwin 1.7.2.
4552         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
4553         imported symbols can be declared weak, so that it returns "no" on
4554         Cygwin 1.7.2.
4555
4556 2010-04-05  Bruno Haible  <bruno@clisp.org>
4557
4558         Use the module 'strncat'.
4559         * modules/unistr/u8-strncat (Depends-on): Add strncat.
4560
4561         Tests for module 'strncat'.
4562         * modules/strncat-tests: New file.
4563         * tests/test-strncat.c: New file.
4564
4565         New module 'strncat'.
4566         * lib/string.in.h (strncat): New declaration.
4567         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
4568         * m4/strncat.m4: New file, based on m4/memchr.m4.
4569         * modules/strncat: New file.
4570         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
4571         is declared.
4572         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
4573         REPLACE_STRNCAT.
4574         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
4575         REPLACE_STRNCAT.
4576         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
4577         module.
4578         * tests/test-string-c++.cc: Check signature of strncat.
4579
4580 2010-04-05  Jim Meyering  <meyering@redhat.com>
4581
4582         xstrtoumax-tests: convert to use init.sh
4583         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
4584         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4585         Use Exit, not exit.
4586         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4587
4588         xstrtoimax-tests: convert to use init.sh
4589         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4590         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4591         Use Exit, not exit.
4592         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4593
4594 2010-04-05  Bruno Haible  <bruno@clisp.org>
4595
4596         sys_socket: Avoid #define replacements in C++ mode.
4597         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4598         warning to the function if possible, rather than #defining the symbol
4599         to a dysfunctional alias.
4600
4601 2010-04-05  Bruno Haible  <bruno@clisp.org>
4602
4603         fseeko: Fix C++ test error on mingw.
4604         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4605         gl_FUNC_FSEEKO.
4606         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4607         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4608         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4609         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4610
4611 2010-04-05  Bruno Haible  <bruno@clisp.org>
4612
4613         duplocale: Improve test output.
4614         * tests/test-duplocale.c (main): Print reason for skipped test.
4615
4616 2010-04-05  Bruno Haible  <bruno@clisp.org>
4617
4618         Assume rmdir exists.
4619         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4620         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4621
4622 2010-04-05  Bruno Haible  <bruno@clisp.org>
4623
4624         Fix link error on Solaris 8 with cc.
4625         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4626
4627 2010-04-05  Bruno Haible  <bruno@clisp.org>
4628
4629         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4630         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4631
4632 2010-04-05  Bruno Haible  <bruno@clisp.org>
4633
4634         vasprintf: Update documentation.
4635         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4636
4637 2010-04-05  Bruno Haible  <bruno@clisp.org>
4638
4639         ptsname: Improve test.
4640         * tests/test-ptsname.c (main): Also try the various master names of BSD
4641         systems.
4642
4643 2010-04-05  Bruno Haible  <bruno@clisp.org>
4644
4645         memchr: Avoid a possible C++ test error.
4646         * lib/string.in.h (memchr): Provide declaration if function is missing.
4647         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4648         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4650         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4651
4652 2010-04-05  Bruno Haible  <bruno@clisp.org>
4653
4654         strtok_r: Improve idiom.
4655         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4656         AC_LIBOBJ is used.
4657
4658 2010-04-05  Bruno Haible  <bruno@clisp.org>
4659
4660         strdup: Improve idiom.
4661         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4662         AC_LIBOBJ is used.
4663         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4664         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4665         when AC_LIBOBJ is used.
4666
4667 2010-04-05  Bruno Haible  <bruno@clisp.org>
4668
4669         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4670         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4671         don't set REPLACE_MBSINIT to 1.
4672         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4673         don't set REPLACE_MBRTOWC to 1.
4674         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4675         exist, don't set REPLACE_MBSRTOWCS to 1.
4676         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4677         exist, don't set REPLACE_MBSNRTOWCS to 1.
4678         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4679         don't set REPLACE_WCRTOMB to 1.
4680         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4681         exist, don't set REPLACE_WCSRTOMBS to 1.
4682         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4683         exist, don't set REPLACE_WCSNRTOMBS to 1.
4684
4685 2010-04-05  Bruno Haible  <bruno@clisp.org>
4686
4687         ldexpl: Improve idiom.
4688         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4689         make sure to set HAVE_DECL_LDEXPL to 0.
4690
4691 2010-04-05  Jim Meyering  <meyering@redhat.com>
4692
4693         xstrtol-tests: convert to use init.sh
4694         * modules/xstrtol-tests (Files): Add tests/init.sh.
4695         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4696         Use Exit, not exit.
4697         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4698
4699         atexit-tests: convert to use init.sh
4700         * modules/atexit-tests (Files): Add tests/init.sh.
4701         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4702         Use Exit, not exit.
4703         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4704
4705         init.sh: fix typo
4706         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4707
4708         init.sh: make it easier for a test script to write to the tty, ...
4709         when using automake's parallel-tests mode.
4710         * tests/init.sh (stderr_fileno_): Define overridable variable.
4711         (warn_): New function, to use it.
4712         (fail_, skip_, framework_failure_): Use warn_.
4713
4714 2010-04-04  Bruno Haible  <bruno@clisp.org>
4715
4716         btowc: Avoid warning.
4717         * lib/btowc.c: Include <stdlib.h>.
4718         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4719
4720 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4721             Bruno Haible  <bruno@clisp.org>
4722
4723         wchar: Port to NetBSD 1.5.
4724         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4725         * lib/wctype.in.h (WEOF): Likewise.
4726
4727 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4728             Bruno Haible  <bruno@clisp.org>
4729
4730         Port extended stdio to NetBSD 1.5.
4731         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4732         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4733         older.
4734
4735 2010-04-04  Bruno Haible  <bruno@clisp.org>
4736
4737         string: Remove unused substitution.
4738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4739         HAVE_DECL_STRERROR.
4740         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4741
4742 2010-04-04  Bruno Haible  <bruno@clisp.org>
4743
4744         strtod: Avoid a possible C++ test error.
4745         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4746         set REPLACE_STRTOD.
4747
4748 2010-04-04  Bruno Haible  <bruno@clisp.org>
4749
4750         strerror: Update documentation.
4751         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4752
4753 2010-04-04  Bruno Haible  <bruno@clisp.org>
4754
4755         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4756         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4757         _GL_CXXALIAS_SYS_CAST.
4758
4759 2010-04-04  Bruno Haible  <bruno@clisp.org>
4760
4761         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4762         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4763         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4764         REPLACE_FREXPL to 1.
4765         * doc/posix-functions/frexpl.texi: Update documentation.
4766
4767 2010-04-04  Bruno Haible  <bruno@clisp.org>
4768
4769         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4770         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4771
4772 2010-04-04  Bruno Haible  <bruno@clisp.org>
4773
4774         Implement nanosleep for native Windows.
4775         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4776
4777 2010-04-04  Bruno Haible  <bruno@clisp.org>
4778
4779         math: Fix some C++ test errors on Solaris 8.
4780         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4781
4782 2010-04-04  Bruno Haible  <bruno@clisp.org>
4783
4784         math: Fix some C++ test errors on Cygwin.
4785         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4786         truncl): Provide declaration if the system does not have it.
4787         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4788         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4789         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4790         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4791         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4792         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4793         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4794         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4795         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4796         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4797         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4798         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4799         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4800         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4801         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4802         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4803         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4804         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4805         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4806         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4807         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4808         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4809
4810 2010-04-04  Bruno Haible  <bruno@clisp.org>
4811
4812         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4813         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4814         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4815         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4816         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4817         * m4/isinf.m4 (gl_ISINF): Likewise.
4818         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4819
4820 2010-04-04  Bruno Haible  <bruno@clisp.org>
4821
4822         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4823         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4824
4825 2010-04-04  Bruno Haible  <bruno@clisp.org>
4826
4827         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4828         * modules/tmpfile (configure.ac): Update.
4829
4830         tmpfile: Fix C++ test error on mingw.
4831         * lib/stdio.in.h (tmpfile): New declaration.
4832         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
4833         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
4834         * modules/tmpfile (Depends-on): Add stdio.
4835         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4836         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
4837         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
4838         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
4839         REPLACE_TMPFILE.
4840         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
4841
4842 2010-04-04  Bruno Haible  <bruno@clisp.org>
4843
4844         ioctl: Fix C++ test error on mingw.
4845         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
4846         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
4847         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
4848
4849 2010-04-03  Bruno Haible  <bruno@clisp.org>
4850
4851         wcwidth: Fix C++ test error on mingw.
4852         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
4853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
4854         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
4855
4856 2010-04-03  Bruno Haible  <bruno@clisp.org>
4857
4858         nanosleep: Fix C++ test error on mingw.
4859         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
4860         * lib/time.in.h (nanosleep): Use modern idiom.
4861         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
4862         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
4863         REPLACE_NANOSLEEP to 1.
4864         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
4865         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
4866
4867 2010-04-03  Bruno Haible  <bruno@clisp.org>
4868
4869         strptime: Fix C++ test error on mingw.
4870         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
4871         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
4872         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
4873         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
4874         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
4875         not REPLACE_STRPTIME.
4876         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
4877         REPLACE_STRPTIME.
4878
4879 2010-04-03  Bruno Haible  <bruno@clisp.org>
4880
4881         timegm: Fix C++ test error on mingw.
4882         * lib/time.in.h (timegm): Use modern idiom.
4883         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
4884         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
4885         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
4886         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
4887
4888 2010-04-03  Bruno Haible  <bruno@clisp.org>
4889
4890         timegm: Assume declaration if function exists.
4891         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
4892         if it exists. Don't clobber ac_cv_func_timegm.
4893
4894 2010-04-03  Bruno Haible  <bruno@clisp.org>
4895
4896         time_r: Fix C++ test error on mingw.
4897         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
4898         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
4899         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
4900         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
4901         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
4902
4903 2010-04-03  Bruno Haible  <bruno@clisp.org>
4904
4905         time_r: Minor updates.
4906         * modules/time_r (Description): Mention the provided functions.
4907         * lib/time_r.c: Don't include <string.h>.
4908         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
4909         * doc/posix-functions/localtime_r.texi: Likewise.
4910
4911 2010-04-03  Bruno Haible  <bruno@clisp.org>
4912
4913         time: Fix regression introduced on 2010-03-08.
4914         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
4915         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
4916
4917 2010-04-03  Jim Meyering  <meyering@redhat.com>
4918
4919         maint.mk: don't silently disable project-specific syntax-check rules
4920         * top/maint.mk (_prohibit_regexp): Define, to help people realize
4921         that they need to convert their project-specific syntax-check rules
4922         to use the new _sc_search_regexp.
4923
4924 2010-04-03  Bruno Haible  <bruno@clisp.org>
4925
4926         fchdir: Fix regression introduced on 2010-03-08.
4927         * lib/unistd.in.h (fchdir): Fix declaration.
4928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
4929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
4930         REPLACE_FCHDIR.
4931         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
4932         REPLACE_FCHDIR.
4933
4934 2010-04-03  Bruno Haible  <bruno@clisp.org>
4935
4936         getpagesize: Fix C++ test error on mingw.
4937         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
4938         system does not declare the function.
4939         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
4940         declared.
4941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4942         HAVE_DECL_GETPAGESIZE.
4943         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
4944
4945 2010-04-03  Bruno Haible  <bruno@clisp.org>
4946
4947         stdio: Make C++ tests work on mingw.
4948         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
4949         does not declare the function.
4950
4951 2010-04-03  Bruno Haible  <bruno@clisp.org>
4952
4953         ftello: Fix C++ test error on mingw.
4954         * lib/stdio.in.h (ftello): Use modern idiom.
4955         * lib/ftello.c (ftello): Renamed from rpl_ftello.
4956         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
4957         is missing and that it needs to be replaced.
4958         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
4959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
4960         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
4961
4962 2010-04-03  Bruno Haible  <bruno@clisp.org>
4963
4964         fseeko: Fix C++ test error on mingw.
4965         * lib/stdio.in.h (fseeko): Use modern idiom.
4966         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
4967         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
4968         is missing and that it needs to be replaced.
4969         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
4970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
4971         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
4972
4973 2010-04-03  Bruno Haible  <bruno@clisp.org>
4974
4975         mkstemp: Fix C++ test error on mingw.
4976         * lib/stdlib.in.h (mkstemp): Use modern idiom.
4977         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
4978         function is missing and that it needs to be replaced.
4979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
4980         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
4981
4982 2010-04-03  Bruno Haible  <bruno@clisp.org>
4983
4984         stpncpy: Fix C++ test error on mingw.
4985         * lib/string.in.h (stpncpy): Use modern idiom.
4986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
4987         function is missing and that it needs to be replaced.
4988         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4989         REPLACE_STPNCPY.
4990         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
4991
4992 2010-04-03  Bruno Haible  <bruno@clisp.org>
4993
4994         sys_stat: Fix C++ test error on mingw.
4995         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
4996         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
4997
4998 2010-04-03  Bruno Haible  <bruno@clisp.org>
4999
5000         pty: Update doc.
5001         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
5002
5003 2010-04-03  Bruno Haible  <bruno@clisp.org>
5004
5005         unistd: Fix C++ test error on mingw.
5006         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
5007
5008 2010-04-03  Bruno Haible  <bruno@clisp.org>
5009
5010         Update doc regarding mingw.
5011         * doc/glibc-functions/openpty.texi: Update regarding mingw.
5012         * doc/glibc-functions/login_tty.texi: Likewise.
5013         * doc/glibc-functions/forkpty.texi: Likewise.
5014
5015 2010-04-03  Bruno Haible  <bruno@clisp.org>
5016
5017         stdlib: Avoid compilation failure of c-strtold on mingw.
5018         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
5019
5020 2010-04-03  Bruno Haible  <bruno@clisp.org>
5021
5022         locale: Make C++ tests work on Cygwin and mingw.
5023         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
5024         cannot provide the function.
5025         Reported by Simon Josefsson.
5026
5027 2010-04-03  Bruno Haible  <bruno@clisp.org>
5028
5029         localename: Port to MacOS X 10.6.
5030         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
5031         memory layout of the locales in MacOS X 10.6 as well.
5032         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
5033
5034 2010-04-02  Bruno Haible  <bruno@clisp.org>
5035
5036         gnulib-tool: Ensure that long-running tests are executed last.
5037         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
5038         running tests after the one for the other tests.
5039
5040 2010-04-02  Bruno Haible  <bruno@clisp.org>
5041
5042         gnulib-tool: Ensure the tests in the main directory are executed first.
5043         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
5044         start with the current directory.
5045
5046 2010-04-02  Bruno Haible  <bruno@clisp.org>
5047
5048         Tests for module 'havelib', moved here from GNU gettext.
5049         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
5050         modifications.
5051         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
5052         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
5053         with modifications.
5054         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
5055         modifications.
5056         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
5057         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
5058         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
5059         with modifications.
5060         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
5061         with modifications.
5062         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
5063         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
5064         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
5065         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
5066         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
5067         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
5068         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
5069         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
5070         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
5071         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
5072         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
5073         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
5074         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
5075         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
5076         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
5077         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
5078         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
5079         with modifications.
5080         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
5081         with modifications.
5082         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
5083         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
5084         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
5085         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
5086         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
5087         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
5088         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
5089         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
5090         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
5091         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
5092         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
5093         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
5094         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
5095         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
5096         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
5097         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
5098         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
5099         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
5100         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
5101         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
5102         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
5103         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
5104         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
5105         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
5106         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
5107         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
5108         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
5109         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
5110         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
5111         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
5112         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
5113         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
5114         * tests/havelib/rpathx/rpathx.c: New file, from
5115         gettext/autoconf-lib-link.
5116         * tests/havelib/rpathx/Makefile.am: New file, from
5117         gettext/autoconf-lib-link.
5118         * tests/havelib/rpathx/configure.ac: New file, from
5119         gettext/autoconf-lib-link with modifications.
5120         * tests/havelib/rpathy/rpathy.c: New file, from
5121         gettext/autoconf-lib-link.
5122         * tests/havelib/rpathy/Makefile.am: New file, from
5123         gettext/autoconf-lib-link.
5124         * tests/havelib/rpathy/configure.ac: New file, from
5125         gettext/autoconf-lib-link with modifications.
5126         * tests/havelib/rpathz/rpathz.c: New file, from
5127         gettext/autoconf-lib-link.
5128         * tests/havelib/rpathz/Makefile.am: New file, from
5129         gettext/autoconf-lib-link.
5130         * tests/havelib/rpathz/configure.ac: New file, from
5131         gettext/autoconf-lib-link with modifications.
5132         * tests/havelib/rpathlx/usex.c: New file, from
5133         gettext/autoconf-lib-link.
5134         * tests/havelib/rpathlx/Makefile.am: New file, from
5135         gettext/autoconf-lib-link.
5136         * tests/havelib/rpathlx/configure.ac: New file, from
5137         gettext/autoconf-lib-link with modifications.
5138         * tests/havelib/rpathly/usey.c: New file, from
5139         gettext/autoconf-lib-link.
5140         * tests/havelib/rpathly/Makefile.am: New file, from
5141         gettext/autoconf-lib-link.
5142         * tests/havelib/rpathly/configure.ac: New file, from
5143         gettext/autoconf-lib-link with modifications.
5144         * tests/havelib/rpathlz/usez.c: New file, from
5145         gettext/autoconf-lib-link.
5146         * tests/havelib/rpathlz/Makefile.am: New file, from
5147         gettext/autoconf-lib-link.
5148         * tests/havelib/rpathlz/configure.ac: New file, from
5149         gettext/autoconf-lib-link with modifications.
5150         * tests/havelib/rpathlyx/usey.c: New file, from
5151         gettext/autoconf-lib-link.
5152         * tests/havelib/rpathlyx/Makefile.am: New file, from
5153         gettext/autoconf-lib-link.
5154         * tests/havelib/rpathlyx/configure.ac: New file, from
5155         gettext/autoconf-lib-link with modifications.
5156         * tests/havelib/rpathlzyx/usez.c: New file, from
5157         gettext/autoconf-lib-link.
5158         * tests/havelib/rpathlzyx/Makefile.am: New file, from
5159         gettext/autoconf-lib-link.
5160         * tests/havelib/rpathlzyx/configure.ac: New file, from
5161         gettext/autoconf-lib-link with modifications.
5162         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
5163         with modifications.
5164
5165 2010-04-02  Bruno Haible  <bruno@clisp.org>
5166
5167         gnulib-tool: Create distributed built sources also for the tests.
5168         * gnulib-tool (func_create_testdir): Also generate distributed built
5169         sources in the tests directory.
5170
5171 2010-04-02  Bruno Haible  <bruno@clisp.org>
5172
5173         gnulib-tool: Obey user's environment variables.
5174         * gnulib-tool (func_create_testdir): When creating built sources,
5175         respect the environment variables for autoconf, automake, etc. given by
5176         the user.
5177
5178 2010-04-02  Bruno Haible  <bruno@clisp.org>
5179
5180         gnulib-tool: Provide the value of --m4-base to modules.
5181         * gnulib-tool (func_import, func_create_testdir): Emit a definition
5182         of gl_m4_base.
5183
5184 2010-04-02  Eric Blake  <eblake@redhat.com>
5185
5186         maint.mk: fix some fallout
5187         * NEWS: Document the incompatible change, and its effect on cfg.mk.
5188         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
5189
5190 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5191
5192         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
5193         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
5194         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
5195         (sc_cast_of_x_alloc_return_value): Likewise.
5196         (sc_cast_of_alloca_return_value): Likewise.
5197         (sc_space_tab): Likewise.
5198         (sc_prohibit_atoi_atof): Likewise.
5199         (sc_prohibit_magic_number_exit): Likewise.
5200         (sc_error_exit_success): Likewise.
5201         (sc_file_system): Likewise.
5202         (sc_prohibit_have_config_h): Likewise.
5203         (sc_require_config_h): Likewise.
5204         (sc_prohibit_HAVE_MBRTOWC): Likewise.
5205         (sc_obsolete_symbols): Likewise.
5206         (sc_changelog): Likewise.
5207         (sc_program_name): Likewise.
5208         (sc_the_the): Likewise.
5209         (sc_trailing_blank): Likewise.
5210         (sc_two_space_separator_in_usage): Likewise.
5211         (sc_useless_cpp_parens): Likewise.
5212         (sc_GPL_version): Likewise.
5213         (sc_GFDL_version): Likewise.
5214         (sc_texinfo_acronym): Likewise.
5215         (sc_prohibit_cvs_keyword): Likewise.
5216         (sc_prohibit_stat_st_blocks): Likewise.
5217         (sc_prohibit_S_IS_definition): Likewise.
5218         (sc_redundant_const): Likewise.
5219         (sc_makefile_TAB_only_indentation): Likewise.
5220         (sc_m4_quote_check): Likewise.
5221         (sc_makefile_path_separator_check): Likewise.
5222         (sc_copyright_check): Likewise.
5223         (sc_Wundef_boolean): Likewise.
5224         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5225
5226         maint.mk: match 0 or more whitespace-before-function-call '('
5227         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
5228         that have zero or two-and-more spaces between the function name
5229         and the open parenthesis.
5230         (sc_error_message_warn_fatal): Likewise.
5231         (sc_error_message_uppercase): Likewise.
5232         (sc_error_message_period): Likewise.
5233
5234 2010-03-31  Eric Blake  <eblake@redhat.com>
5235
5236         maint.mk: check for [ as well as test
5237         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
5238         Based on a libvirt report by Matthias Bolte.
5239
5240         gnumakefile: don't squelch _version output
5241         * top/GNUmakefile (_version): Create one-shot dependency rather
5242         than using $(shell) when version must be regenerated.
5243         (_autoreconf): Run verbosely, by default.
5244
5245         sys_time: avoid compiler warnings
5246         * lib/sys_time.in.h (includes): Ensure gcc pragma is
5247         unconditional, fixing regression from 2010-03-29.
5248         Reported by Simon Josefsson.
5249
5250 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5251
5252         maint.mk: s/_header_without_use/_sc_header_without_use/
5253         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
5254         (sc_prohibit_assert_without_use): Use the new name.
5255         (sc_prohibit_close_stream_without_use): Likewise.
5256         (sc_prohibit_getopt_without_use): Likewise.
5257         (sc_prohibit_quotearg_without_use): Likewise.
5258         (sc_prohibit_quote_without_use): Likewise.
5259         (sc_prohibit_long_options_without_use): Likewise.
5260         (sc_prohibit_inttostr_without_use): Likewise.
5261         (sc_prohibit_ignore_value_without_use): Likewise.
5262         (sc_prohibit_error_without_use): Likewise.
5263         (sc_prohibit_xalloc_without_use): Likewise.
5264         (sc_prohibit_hash_without_use): Likewise.
5265         (sc_prohibit_hash_pjw_without_use): Likewise.
5266         (sc_prohibit_safe_read_without_use): Likewise.
5267         (sc_prohibit_argmatch_without_use): Likewise.
5268         (sc_prohibit_canonicalize_without_use): Likewise.
5269         (sc_prohibit_root_dev_ino_without_use): Likewise.
5270         (sc_prohibit_openat_without_use): Likewise.
5271         (sc_prohibit_c_ctype_without_use): Likewise.
5272         (sc_prohibit_signal_without_use): Likewise.
5273         (sc_prohibit_intprops_without_use): Likewise.
5274
5275 2010-03-30  Eric Blake  <eblake@redhat.com>
5276
5277         maint: improve module indicators
5278         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
5279         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
5280         columns, and avoid extra macro expansion.
5281
5282         fdopendir: work around FreeBSD bug
5283         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5284         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
5285         * modules/dirent (Makefile.am): Substitute it.
5286         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
5287         declaration.
5288         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
5289         fix.
5290         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5291
5292 2010-03-29  Bruno Haible  <bruno@clisp.org>
5293
5294         Emit #pragma system_header after the inclusion guard, not before.
5295         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
5296         guard that spans the entire file, not before. This enables an
5297         optimization in GCC's preprocessor.
5298         * lib/ctype.in.h: Likewise.
5299         * lib/dirent.in.h: Likewise.
5300         * lib/errno.in.h: Likewise.
5301         * lib/float.in.h: Likewise.
5302         * lib/getopt.in.h: Likewise.
5303         * lib/iconv.in.h: Likewise.
5304         * lib/langinfo.in.h: Likewise.
5305         * lib/locale.in.h: Likewise.
5306         * lib/math.in.h: Likewise.
5307         * lib/netdb.in.h: Likewise.
5308         * lib/netinet_in.in.h: Likewise.
5309         * lib/pty.in.h: Likewise.
5310         * lib/sched.in.h: Likewise.
5311         * lib/se-selinux.in.h: Likewise.
5312         * lib/search.in.h: Likewise.
5313         * lib/spawn.in.h: Likewise.
5314         * lib/stdarg.in.h: Likewise.
5315         * lib/stdint.in.h: Likewise.
5316         * lib/string.in.h: Likewise.
5317         * lib/strings.in.h: Likewise.
5318         * lib/sys_file.in.h: Likewise.
5319         * lib/sys_ioctl.in.h: Likewise.
5320         * lib/sys_time.in.h: Likewise.
5321         * lib/sys_times.in.h: Likewise.
5322         * lib/sys_utsname.in.h: Likewise.
5323         * lib/sys_wait.in.h: Likewise.
5324         * lib/sysexits.in.h: Likewise.
5325         * lib/wctype.in.h: Likewise.
5326
5327 2010-03-28  James Youngman  <jay@gnu.org>
5328
5329         save-cwd: don't leak a file descriptor when the caller execs.
5330         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
5331         saved file descriptor.
5332         * modules/save-cwd (Depends-on): Depend on cloexec.
5333
5334 2010-03-29  Bruno Haible  <bruno@clisp.org>
5335
5336         Remove vestiges of fts-lgpl module.
5337         * lib/fts_.h: Assume GNULIB_FTS is 1.
5338         * lib/fts.c: Likewise.
5339         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5340
5341 2010-03-28  Bruno Haible  <bruno@clisp.org>
5342
5343         Fix definition of tests witness macro.
5344         * gnulib-tool (func_import): Fix definition of witness macro.
5345
5346 2010-03-28  Bruno Haible  <bruno@clisp.org>
5347
5348         Fix ioctl's protoype on glibc systems.
5349         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
5350         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
5351         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
5352         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
5353         signature. If not, arrange to replace the ioctl function.
5354         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5355         REPLACE_IOCTL.
5356         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
5357         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
5358         Reported by Ludovic Courtès <ludo@gnu.org>.
5359
5360 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
5361
5362         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
5363         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
5364         made it so grep -r --include=GLOB* ... did not work.
5365
5366 2010-03-26  Jim Meyering  <meyering@redhat.com>
5367             Eric Blake  <eblake@redhat.com>
5368
5369         maint.mk: prohibit use of test's -o and -a operators
5370         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
5371
5372 2010-03-28  Bruno Haible  <bruno@clisp.org>
5373
5374         Remove unused GNULIB_XYZ macro definitions.
5375         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
5376         invocation.
5377
5378 2010-03-28  Bruno Haible  <bruno@clisp.org>
5379
5380         Mark privileged tests modules.
5381         * modules/idpriv-drop-tests (Status): New section.
5382         * modules/idpriv-droptemp-tests (Status): New section.
5383
5384 2010-03-28  Bruno Haible  <bruno@clisp.org>
5385
5386         Split C++ tests into separate tests modules.
5387         * modules/dirent-c++-tests: New file, extracted from
5388         modules/dirent-tests.
5389         * modules/dirent-tests: Depend on it.
5390         * modules/fcntl-h-c++-tests: New file, extracted from
5391         modules/fcntl-h-tests.
5392         * modules/fcntl-h-tests: Depend on it.
5393         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
5394         * modules/glob-tests: Depend on it.
5395         * modules/iconv-h-c++-tests: New file, extracted from
5396         modules/iconv-h-tests.
5397         * modules/iconv-h-tests: Depend on it.
5398         * modules/langinfo-c++-tests: New file, extracted from
5399         modules/langinfo-tests.
5400         * modules/langinfo-tests: Depend on it.
5401         * modules/locale-c++-tests: New file, extracted from
5402         modules/locale-tests.
5403         * modules/locale-tests: Depend on it.
5404         * modules/math-c++-tests: New file, extracted from modules/math-tests.
5405         * modules/math-tests: Depend on it.
5406         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
5407         * modules/pty-tests: Depend on it.
5408         * modules/search-c++-tests: New file, extracted from
5409         modules/search-tests.
5410         * modules/search-tests: Depend on it.
5411         * modules/signal-c++-tests: New file, extracted from
5412         modules/signal-tests.
5413         * modules/signal-tests: Depend on it.
5414         * modules/spawn-c++-tests: New file, extracted from
5415         modules/spawn-tests.
5416         * modules/spawn-tests: Depend on it.
5417         * modules/stdio-c++-tests: New file, extracted from
5418         modules/stdio-tests.
5419         * modules/stdio-tests: Depend on it.
5420         * modules/stdlib-c++-tests: New file, extracted from
5421         modules/stdlib-tests.
5422         * modules/stdlib-tests: Depend on it.
5423         * modules/string-c++-tests: New file, extracted from
5424         modules/string-tests.
5425         * modules/string-tests: Depend on it.
5426         * modules/sys_ioctl-c++-tests: New file, extracted from
5427         modules/sys_ioctl-tests.
5428         * modules/sys_ioctl-tests: Depend on it.
5429         * modules/sys_select-c++-tests: New file, extracted from
5430         modules/sys_select-tests.
5431         * modules/sys_select-tests: Depend on it.
5432         * modules/sys_socket-c++-tests: New file, extracted from
5433         modules/sys_socket-tests.
5434         * modules/sys_socket-tests: Depend on it.
5435         * modules/sys_stat-c++-tests: New file, extracted from
5436         modules/sys_stat-tests.
5437         * modules/sys_stat-tests: Depend on it.
5438         * modules/sys_time-c++-tests: New file, extracted from
5439         modules/sys_time-tests.
5440         * modules/sys_time-tests: Depend on it.
5441         * modules/time-c++-tests: New file, extracted from modules/time-tests.
5442         * modules/time-tests: Depend on it.
5443         * modules/unistd-c++-tests: New file, extracted from
5444         modules/unistd-tests.
5445         * modules/unistd-tests: Depend on it.
5446         * modules/wchar-c++-tests: New file, extracted from
5447         modules/wchar-tests.
5448         * modules/wchar-tests: Depend on it.
5449         * modules/wctype-c++-tests: New file, extracted from
5450         modules/wctype-tests.
5451         * modules/wctype-tests: Depend on it.
5452         Reported by Simon Josefsson.
5453
5454 2010-03-28  Bruno Haible  <bruno@clisp.org>
5455
5456         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
5457         * gnulib-tool (func_exists_module): New function, extracted from
5458         func_verify_module.
5459         (func_verify_module): Use it.
5460         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
5461         'foo' only if 'foo' exists.
5462         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
5463         module.
5464
5465 2010-03-28  Bruno Haible  <bruno@clisp.org>
5466
5467         gnulib-tool: Add support for special categories of tests.
5468         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5469         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
5470         (func_usage): Document them.
5471         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
5472         inc_unportable_tests, inc_all_tests): New variables.
5473         (func_acceptable): Consider these variables.
5474         (func_modules_transitive_closure): Make it work when the 'Status' field
5475         consists of multiple words.
5476         (func_import): Store and restore the values of inc_cxx_tests,
5477         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
5478         inc_all_tests in gnulib-comp.m4.
5479         (func_create_testdir): Set inc_all_tests to true.
5480         * doc/gnulib.texi (Extra tests modules): New section.
5481         Suggested by Jim Meyering.
5482
5483 2010-03-28  Bruno Haible  <bruno@clisp.org>
5484
5485         ansi-c++-opt: Allow turning off the C++ build by default.
5486         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5487         gl_CXX_CHOICE_DEFAULT_NO is defined.
5488         Requested by Eric Blake.
5489
5490 2010-03-28  Bruno Haible  <bruno@clisp.org>
5491
5492         unistd: Avoid #define replacements in C++ mode.
5493         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5494         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5495         setsockopt, shutdown, select): In C++, attach a warning to the function
5496         if possible, rather than #defining the symbol to a dysfunctional alias.
5497         Reported by John W. Eaton <jwe@gnu.org>.
5498
5499 2010-03-28  Bruno Haible  <bruno@clisp.org>
5500
5501         Fix link errors on mingw.
5502         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
5503         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
5504         $(LIBSOCKET).
5505         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
5506         $(LIBSOCKET).
5507
5508 2010-03-28  Bruno Haible  <bruno@clisp.org>
5509             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5510
5511         lib-ignore: Determine different options for different compilers.
5512         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
5513         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
5514         Add comments.
5515         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
5516         * NEWS: Mention the change.
5517
5518 2010-03-27  Bruno Haible  <bruno@clisp.org>
5519
5520         Remove unused GNULIB_XYZ macro definitions.
5521         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5522         * modules/fseek (configure.ac): Likewise.
5523         * modules/ioctl (configure.ac): Likewise.
5524         * modules/open (configure.ac): Likewise.
5525         * modules/stdlib-safer (configure.ac): Likewise.
5526
5527 2010-03-27  Bruno Haible  <bruno@clisp.org>
5528
5529         Add a remark about certain modules.
5530         * modules/malloc (Comment): New section.
5531         * modules/realloc (Comment): Likewise.
5532         * modules/sigpipe (Comment): Likewise.
5533
5534 2010-03-27  Bruno Haible  <bruno@clisp.org>
5535
5536         Resolve conflict between the two kinds of module indicators.
5537         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
5538         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
5539         * modules/canonicalize (configure.ac): Invoke
5540         gl_MODULE_INDICATOR_FOR_TESTS.
5541         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
5542         GNULIB_XYZ.
5543         * tests/test-dirent-c++.cc: Likewise.
5544         * tests/test-dirent-safer.c: Likewise.
5545         * tests/test-dup2.c: Likewise.
5546         * tests/test-fchdir.c: Likewise.
5547         * tests/test-fcntl-h-c++.cc: Likewise.
5548         * tests/test-getopt.c: Likewise.
5549         * tests/test-getopt.h: Likewise.
5550         * tests/test-langinfo-c++.cc: Likewise.
5551         * tests/test-locale-c++.cc: Likewise.
5552         * tests/test-math-c++.cc: Likewise.
5553         * tests/test-pty-c++.cc: Likewise.
5554         * tests/test-search-c++.cc: Likewise.
5555         * tests/test-signal-c++.cc: Likewise.
5556         * tests/test-spawn-c++.cc: Likewise.
5557         * tests/test-stdio-c++.cc: Likewise.
5558         * tests/test-stdlib-c++.cc: Likewise.
5559         * tests/test-string-c++.cc: Likewise.
5560         * tests/test-sys_ioctl-c++.cc: Likewise.
5561         * tests/test-sys_select-c++.cc: Likewise.
5562         * tests/test-sys_socket-c++.cc: Likewise.
5563         * tests/test-sys_stat-c++.cc: Likewise.
5564         * tests/test-sys_time-c++.cc: Likewise.
5565         * tests/test-time-c++.cc: Likewise.
5566         * tests/test-unistd-c++.cc: Likewise.
5567         * tests/test-wchar-c++.cc: Likewise.
5568         * tests/uninorm/test-u8-nfc.c: Likewise.
5569         * tests/uninorm/test-u8-nfd.c: Likewise.
5570         * tests/uninorm/test-u8-nfkc.c: Likewise.
5571         * tests/uninorm/test-u8-nfkd.c: Likewise.
5572         * tests/uninorm/test-u16-nfc.c: Likewise.
5573         * tests/uninorm/test-u16-nfd.c: Likewise.
5574         * tests/uninorm/test-u16-nfkc.c: Likewise.
5575         * tests/uninorm/test-u16-nfkd.c: Likewise.
5576         * tests/uninorm/test-u32-nfc.c: Likewise.
5577         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5578         * tests/uninorm/test-u32-nfd.c: Likewise.
5579         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5580         * tests/uninorm/test-u32-nfkc.c: Likewise.
5581         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5582         * tests/uninorm/test-u32-nfkd.c: Likewise.
5583         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5584         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5585
5586 2010-03-27  Bruno Haible  <bruno@clisp.org>
5587
5588         Distinguish two kinds of module indicators.
5589         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5590         gl_MODULE_INDICATOR.
5591         (gl_MODULE_INDICATOR): New macro.
5592         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5593         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5594         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5595         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5596         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5597         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5598         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5599         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5600         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5601         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5602         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5603         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5604         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5605         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5606         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5607         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5608         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5609         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5610         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5611         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5612         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5613         * modules/cloexec (configure.ac): Likewise.
5614         * modules/getopt-gnu (configure.ac): Likewise.
5615         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5616         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5617         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5618         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5619
5620 2010-03-27  Bruno Haible  <bruno@clisp.org>
5621
5622         New module description field 'Comment'.
5623         * gnulib-tool: New option --extract-comment.
5624         (func_usage): Document it.
5625         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5626         (func_get_comment): New function.
5627         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5628
5629 2010-03-27  Bruno Haible  <bruno@clisp.org>
5630
5631         Addendum to 2010-02-07 commit.
5632         * gnulib-tool (func_usage): Document --extract-applicability option.
5633
5634 2010-03-27  Bruno Haible  <bruno@clisp.org>
5635
5636         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5637         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5638         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5639         rather than link errors.
5640
5641 2010-03-27  Bruno Haible  <bruno@clisp.org>
5642
5643         Avoid side effects from tests-related modules on the compilation of lib.
5644         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5645         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5646         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5647         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5648         macro.
5649         (func_import): Define a witness macro. Assign it a value that depends
5650         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5651         tests-related modules.
5652         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5653         Reported by Jim Meyering.
5654
5655 2010-03-27  Bruno Haible  <bruno@clisp.org>
5656
5657         Factorize common .m4 code.
5658         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5659         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5660         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5661         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5662         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5663         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5664         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5665         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5666         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5667         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5668         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5669         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5670         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5671         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5672         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5673         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5674         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5675         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5676         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5677         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5678         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5679         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5680         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5681         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5682         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5683         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5684         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5685         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5686         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5687         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5688         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5689         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5690
5691 2010-03-27  Bruno Haible  <bruno@clisp.org>
5692
5693         Fix a compilation error on Cygwin with g++ >= 4.3.
5694         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5695         if it is undefined or if we alias it to chmod.
5696         (lstat): Don't warn about the use of this function if it is undefined
5697         or if we alias it to stat.
5698         Reported by Simon Josefsson.
5699
5700 2010-03-27  Bruno Haible  <bruno@clisp.org>
5701
5702         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5703         * modules/getlogin (configure.ac): Update.
5704
5705         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5706         * modules/getlogin_r (configure.ac): Update.
5707
5708         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5709         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5710         * modules/inet_ntop (configure.ac): Update.
5711
5712         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5713         * modules/inet_pton (configure.ac): Update.
5714
5715         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5716         * modules/mbslen (configure.ac): Update.
5717
5718         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5719         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5720         * modules/forkpty (configure.ac): Update.
5721         * modules/openpty (configure.ac): Update.
5722
5723 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5724
5725         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5726         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5727
5728 2010-03-25  Eric Blake  <eblake@redhat.com>
5729
5730         maint: use pragma consistently across replacement headers
5731         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5732         * lib/dirent.in.h (system_header): Likewise.
5733         * lib/errno.in.h (system_header): Likewise.
5734         * lib/float.in.h (system_header): Likewise.
5735         * lib/getopt.in.h (system_header): Likewise.
5736         * lib/iconv.in.h (system_header): Likewise.
5737         * lib/inttypes.in.h (system_header): Likewise.
5738         * lib/langinfo.in.h (system_header): Likewise.
5739         * lib/locale.in.h (system_header): Likewise.
5740         * lib/math.in.h (system_header): Likewise.
5741         * lib/netdb.in.h (system_header): Likewise.
5742         * lib/netinet_in.in.h (system_header): Likewise.
5743         * lib/pty.in.h (system_header): Likewise.
5744         * lib/sched.in.h (system_header): Likewise.
5745         * lib/se-selinux.in.h (system_header): Likewise.
5746         * lib/search.in.h (system_header): Likewise.
5747         * lib/spawn.in.h (system_header): Likewise.
5748         * lib/stdarg.in.h (system_header): Likewise.
5749         * lib/stdint.in.h (system_header): Likewise.
5750         * lib/string.in.h (system_header): Likewise.
5751         * lib/strings.in.h (system_header): Likewise.
5752         * lib/sys_file.in.h (system_header): Likewise.
5753         * lib/sys_ioctl.in.h (system_header): Likewise.
5754         * lib/sys_socket.in.h (system_header): Likewise.
5755         * lib/sys_times.in.h (system_header): Likewise.
5756         * lib/sys_utsname.in.h (system_header): Likewise.
5757         * lib/sys_wait.in.h (system_header): Likewise.
5758         * lib/sysexits.in.h (system_header): Likewise.
5759         * lib/unistd.in.h (system_header): Likewise.
5760         * lib/wctype.in.h (system_header): Likewise.
5761
5762         arpa/inet: fix mingw compilation warning
5763         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5764         Reported by Matthew Bolte.
5765
5766 2010-03-25  Bruno Haible  <bruno@clisp.org>
5767
5768         Avoid collision between gnulib wrapper and libintl wrapper.
5769         * lib/printf.c (printf): Don't define if a printf wrapper is already
5770         defined in intl/printf.c.
5771         Reported by Michel Boaventura <michel@michelboaventura.com>.
5772
5773 2010-03-25  Bruno Haible  <bruno@clisp.org>
5774
5775         Use ANSI C.
5776         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5777
5778 2010-03-25  Bruno Haible  <bruno@clisp.org>
5779
5780         Minor formatting changes.
5781         * lib/acosl.c: Insert space before function argument list.
5782         * lib/argz.c: Likewise.
5783         * lib/asinl.c: Likewise.
5784         * lib/expl.c: Likewise.
5785         * lib/gen-uni-tables.c: Likewise.
5786         * lib/gettext.h: Likewise.
5787         * lib/glthread/lock.h: Likewise.
5788         * lib/tanl.c: Likewise.
5789         * lib/uniname/uniname.c: Likewise.
5790         * tests/test-idpriv-drop.c: Likewise.
5791         * tests/test-idpriv-droptemp.c: Likewise.
5792         * tests/test-lock.c: Likewise.
5793         * tests/test-tls.c: Likewise.
5794         * lib/argp-help.c: Insert space before function-like macro argument
5795         list.
5796         * lib/memcmp.c: Likewise.
5797         * tests/test-base64.c: Likewise.
5798         * lib/localename.c: Insert space before sizeof's argument list.
5799         * lib/safe-alloc.h: Likewise.
5800         * lib/file-set.h: Insert space before macro argument list.
5801         * tests/test-argp.c: Likewise.
5802         * lib/argp-namefrob.h: Insert space before function parameter list.
5803         * lib/getaddrinfo.c: Likewise.
5804         * lib/netdb.in.h: Likewise.
5805         * lib/parse-duration.h: Likewise.
5806         * lib/parse-duration.c: Likewise.
5807         * lib/poll.c: Likewise.
5808         * lib/select.c: Likewise.
5809         * lib/trim.h: Likewise.
5810         * tests/test-usleep.c: Likewise.
5811         * lib/ldexpl.c: Insert space before function parameter list and before
5812         function argument list.
5813         * lib/logl.c: Likewise.
5814         * lib/sqrtl.c: Likewise.
5815         * lib/trim.c: Likewise.
5816         * lib/cosl.c: Use GNU style indentation. Insert space before function
5817         argument list.
5818         * lib/sinl.c: Likewise.
5819         * lib/tsearch.c: Insert space after 'for'.
5820         Reported by Jim Meyering.
5821
5822 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5823
5824         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5825         config header before grepping, as it's not present before
5826         autoreconf/configure are run.  Reported by Simon Josefsson.
5827
5828 2010-03-23  Bruno Haible  <bruno@clisp.org>
5829
5830         pt_chown: Make it work with automake < 1.11.
5831         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
5832         Reported by Simon Josefsson.
5833
5834 2010-03-23  Bruno Haible  <bruno@clisp.org>
5835
5836         pt_chown: Don't depend on GPLed modules.
5837         * lib/pt_chown.c: Don't include idpriv.h.
5838         (main): Don't drop privileges.
5839         * modules/pt_chown (Depends-on): Remove idpriv-drop.
5840         Reported by Simon Josefsson.
5841
5842 2010-03-24  Simon Josefsson  <simon@josefsson.org>
5843
5844         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
5845         suggestions from karl@freefriends.org (Karl Berry).
5846
5847 2010-03-22  Eric Blake  <eblake@redhat.com>
5848
5849         gethostname: further tweaks
5850         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
5851         are overriding gethostname.
5852         Suggested by Bruno Haible.
5853
5854 2010-03-21  Bruno Haible  <bruno@clisp.org>
5855
5856         Fix comments.
5857         * lib/forkpty.c (rpl_forkpty): Fix comment.
5858         * lib/openpty.c (rpl_openpty): Likewise.
5859         Reported by Eric Blake.
5860
5861 2010-03-22  Eric Blake  <eblake@redhat.com>
5862
5863         gethostname: fix build on mingw
5864         * lib/unistd.in.h (includes): Work around fact that mingw
5865         <winsock2.h> re-includes <unistd.h>, by avoiding any
5866         redeclarations if we are being included by <winsock2.h>.
5867         Reported by Matthias Bolte.
5868
5869 2010-03-21  Bruno Haible  <bruno@clisp.org>
5870
5871         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5872         * lib/forkpty.c (forkpty): New replacement function, from glibc with
5873         modifications.
5874         * lib/pty.in.h (forkpty): Update declaration. Add comments.
5875         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
5876         provide the replacement.
5877         * modules/forkpty (Depends-on): Add openpty, login_tty.
5878         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
5879         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
5880         * doc/glibc-functions/forkpty.texi: More supported platforms.
5881         * config/srclist.txt: Add forkpty.c (commented).
5882
5883 2010-03-21  Bruno Haible  <bruno@clisp.org>
5884
5885         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
5886         (Makefile.am): Verify that PTY_LIB is defined.
5887
5888         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
5889
5890 2010-03-21  Bruno Haible  <bruno@clisp.org>
5891
5892         Tests for module 'login_tty'.
5893         * modules/login_tty-tests: New file.
5894         * tests/test-login_tty.c: New file.
5895
5896         New module 'login_tty'.
5897         * lib/login_tty.c: New file.
5898         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
5899         * modules/login_tty: New file.
5900         * doc/glibc-functions/login_tty.texi: Mention the new module.
5901
5902 2010-03-21  Bruno Haible  <bruno@clisp.org>
5903
5904         login_tty: Documentation.
5905         * doc/glibc-functions/login_tty.texi: New file.
5906         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
5907
5908 2010-03-21  Bruno Haible  <bruno@clisp.org>
5909
5910         pty: Consistent macro naming.
5911         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
5912         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
5913         * modules/pty (configure.ac): Update.
5914
5915 2010-03-21  Bruno Haible  <bruno@clisp.org>
5916
5917         Tests for openpty: Make stricter.
5918         * tests/test-openpty.c (main): Add test of canonical processing and
5919         erase.
5920         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
5921
5922         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5923         * lib/openpty.c (openpty): New replacement function.
5924         * lib/pty.in.h: Include <termios.h>.
5925         (openpty): Update declaration. Add comments.
5926         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
5927         is not declared, arrange to provide the replacement. Check for _getpty
5928         and posix_openpt.
5929         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
5930         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
5931         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
5932         * modules/pty-tests (test_pty_c___LDADD): New variable.
5933         * doc/glibc-functions/openpty.texi: More supported platforms.
5934
5935 2010-03-21  Bruno Haible  <bruno@clisp.org>
5936
5937         setenv: Tweaks.
5938         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
5939         the test program.
5940         * doc/posix-functions/setenv.texi: Update platforms list.
5941
5942 2010-03-21  Bruno Haible  <bruno@clisp.org>
5943
5944         New module 'unlockpt'.
5945         * lib/unlockpt.c: New file, from glibc with modifications.
5946         * m4/unlockpt.m4: New file.
5947         * modules/unlockpt: New file.
5948         * lib/stdlib.in.h (unlockpt): New declaration.
5949         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
5950         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
5951         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
5952         HAVE_UNLOCKPT.
5953         * doc/posix-functions/unlockpt.texi: Mention the new module.
5954         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
5955         * config/srclist.txt: Add unlockpt.c (commented).
5956
5957 2010-03-21  Jim Meyering  <meyering@redhat.com>
5958
5959         maint.mk: prohibit inclusion of "intprops.h" without use
5960         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
5961
5962 2010-03-21  Bruno Haible  <bruno@clisp.org>
5963
5964         New module 'grantpt'.
5965         * lib/grantpt.c: New file, from glibc with modifications.
5966         * m4/grantpt.m4: New file.
5967         * modules/grantpt: New file.
5968         * lib/stdlib.in.h (grantpt): New declaration.
5969         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
5970         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
5971         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
5972         HAVE_GRANTPT.
5973         * doc/posix-functions/grantpt.texi: Mention the new module.
5974         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
5975         * config/srclist.txt: Add grantpt.c (commented).
5976
5977 2010-03-21  Bruno Haible  <bruno@clisp.org>
5978
5979         New module 'pt_chown'.
5980         * lib/pt_chown.c: New file, from glibc with modifications.
5981         * lib/pty-private.h: New file, from glibc with modifications.
5982         * modules/pt_chown: New file.
5983         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
5984
5985 2010-03-21  Bruno Haible  <bruno@clisp.org>
5986
5987         Tests for module 'ptsname'.
5988         * modules/ptsname-tests: New file.
5989         * tests/test-ptsname.c: New file.
5990
5991         New module 'ptsname'.
5992         * lib/ptsname.c: New file, from glibc with modifications.
5993         * m4/ptsname.m4: New file.
5994         * modules/ptsname: New file.
5995         * lib/stdlib.in.h (ptsname): New declaration.
5996         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
5997         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
5998         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
5999         HAVE_PTSNAME.
6000         * doc/posix-functions/ptsname.texi: Mention the new module.
6001         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
6002         * config/srclist.txt: Add ptsname.c (commented).
6003
6004 2010-03-21  Bruno Haible  <bruno@clisp.org>
6005
6006         Tests for module 'ttyname_r'.
6007         * modules/ttyname_r-tests: New file.
6008         * tests/test-ttyname_r.c: New file.
6009
6010         New module 'ttyname_r'.
6011         * lib/ttyname_r.c: New file.
6012         * m4/ttyname_r.m4: New file.
6013         * modules/ttyname_r: New file.
6014         * lib/unistd.in.h (ttyname_r): New declaration.
6015         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
6016         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
6017         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
6018         HAVE_TTYNAME_R.
6019         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
6020         * doc/posix-functions/ttyname_r.texi: Mention the new module.
6021
6022 2010-03-20  Bruno Haible  <bruno@clisp.org>
6023
6024         signal: Undefine macro definitions in C++ mode.
6025         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
6026         sigfillset): Undefine macro definitions from the system header in C++
6027         mode.
6028         Reported by John W. Eaton <jwe@gnu.org>.
6029
6030 2010-03-20  Bruno Haible  <bruno@clisp.org>
6031
6032         Ensure no #include statements inside extern "C" { ... }.
6033         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
6034         contain #include statements.
6035         * lib/time.in.h: Likewise.
6036
6037 2010-03-20  Bruno Haible  <bruno@clisp.org>
6038
6039         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
6040         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
6041         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
6042         Reported by John W. Eaton <jwe@gnu.org>.
6043
6044 2010-03-20  Bruno Haible  <bruno@clisp.org>
6045
6046         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
6047         Reported by Jim Meyering.
6048
6049 2010-03-20  Bruno Haible  <bruno@clisp.org>
6050
6051         pipe: Set errno upon failure.
6052         * lib/pipe.h: Specify that when -1 is returned, errno is set.
6053         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
6054         errno value in error message.
6055
6056 2010-03-20  Bruno Haible  <bruno@clisp.org>
6057             Jim Meyering  <meyering@redhat.com>
6058
6059         lchown: Avoid "unused variable" warning.
6060         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
6061
6062 2010-03-20  Bruno Haible  <bruno@clisp.org>
6063
6064         Work around unlink() bug on MacOS X 10.5.6.
6065         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
6066         attempting to unlink a parent directory.
6067         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
6068         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
6069         activate for the replacement function.
6070         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
6071
6072 2010-03-20  Bruno Haible  <bruno@clisp.org>
6073
6074         Fix link errors on Solaris 8.
6075         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
6076         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
6077
6078 2010-03-19  Jim Meyering  <meyering@redhat.com>
6079
6080         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
6081         The _LIBC implementation of build_range_exp correctly honors the
6082         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
6083         However, the non-_LIBC implementation would ignore that syntax-bit
6084         flag and return REG_ERANGE unconditionally.
6085         This change makes it honor that flag.
6086         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
6087         Make two pointer parameters "const".
6088         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
6089         (parse_bracket_exp): Update caller.
6090
6091         regex.m4: correct the reversed range endpoint ([b-a]) test
6092         * m4/regex.m4: When requiring that [b-a] evoke failure,
6093         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
6094         test pass once again for x86-based systems.
6095
6096 2010-03-19  Bruno Haible  <bruno@clisp.org>
6097
6098         scandir: Fix link error on Solaris 8.
6099         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
6100         macros.
6101
6102 2010-03-19  Bruno Haible  <bruno@clisp.org>
6103
6104         getusershell: Fix documentation.
6105         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
6106         module.
6107         * doc/glibc-functions/setusershell.texi: Likewise.
6108
6109         getusershell: Provide declaration, missing on Solaris 9.
6110         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
6111         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
6112         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
6113         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
6114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6115         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
6116         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
6117         HAVE_GETUSERSHELL.
6118         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
6119
6120 2010-03-19  Bruno Haible  <bruno@clisp.org>
6121
6122         wctype: Provide iswblank function.
6123         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
6124         exists and is fine.
6125         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
6126         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
6127         * tests/test-wctype.c (main): Re-enable the iswblank tests.
6128         * doc/posix-functions/iswblank.texi: Update.
6129
6130 2010-03-19  Bruno Haible  <bruno@clisp.org>
6131
6132         Tests of module 'pty' in C++ mode.
6133         * modules/pty-tests: New file.
6134         * tests/test-pty-c++.cc: New file.
6135         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6136
6137 2010-03-19  Eric Blake  <eblake@redhat.com>
6138
6139         logb: fix documentation
6140         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
6141         1.5 declaration bug.
6142
6143         forkpty, openpty: prefer glibc's const-safe prototype
6144         * lib/forkpty.c (rpl_forkpty): New file.
6145         * lib/openpty.c (rpl_openpty): Likewise.
6146         * modules/forkpty (Files): Distribute it.
6147         * modules/openpty (Files): Likewise.
6148         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
6149         check...
6150         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
6151         replacement for for non-const BSD signature.
6152         * modules/pty (Makefile.am): Substitute witnesses.
6153         * lib/pty.in.h (forkpty, openpty): Declare replacements.
6154         * tests/test-forkpty.c: Update signature check.
6155         * tests/test-openpty.c: Likewise.
6156         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
6157         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6158
6159         forkpty, openpty: split functions into new modules
6160         * modules/pty (Makefile.am): Substitute new witnesses.
6161         (Libraries): Move library detection...
6162         * modules/forkpty: ...into new module.
6163         * modules/openpty: Another new module.
6164         * modules/pty-tests: Rename and split...
6165         * modules/forkpty-tests: ...to this...
6166         * modules/openpty-tests: ...and this.
6167         * tests/test-pty.c: Rename and split...
6168         * tests/test-forkpty.c: ...to this...
6169         * tests/test-openpty.c: ...and this.
6170         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
6171         (gl_PTY): Split library searching...
6172         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
6173         (gl_FORKPTY, gl_OPENPTY): New macros.
6174         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
6175         * NEWS: Mention the split.
6176         * MODULES.html.sh (Misc): Document the modules.
6177         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
6178         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6179
6180         pty: improve replacement header
6181         * lib/pty.in.h: New file.
6182         * modules/pty (Files): Ship it.
6183         (Makefile.am): Always build replacement.
6184         * m4/pty.m4: Rename...
6185         * m4/pty_h.m4: ...to this.
6186         (gl_PTY): Modernize setting of witness macros; update check of
6187         forkpty to take proper advantage of cache.
6188         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
6189
6190         getopt: avoid compiler warning
6191         * lib/getopt.c (attribute_hidden): Remove unused macro.
6192
6193 2010-03-18  Bruno Haible  <bruno@clisp.org>
6194
6195         Fix link errors on Solaris 8.
6196         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
6197         * modules/search-tests (test_search_c___LDADD): Likewise.
6198         * modules/signal-tests (test_signal_c___LDADD): Likewise.
6199         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
6200         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
6201         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
6202         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
6203         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
6204         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
6205
6206 2010-03-18  Bruno Haible  <bruno@clisp.org>
6207
6208         Fix bug introduced on 2010-03-14.
6209         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
6210         (gl_SPAWN_H): Require it.
6211         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
6212         Reported by Simon Josefsson.
6213
6214 2010-03-18  Bruno Haible  <bruno@clisp.org>
6215
6216         Fix typo introduced on 2009-12-31.
6217         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
6218         posix_spawn_file_actions_adddup2.
6219
6220 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
6221         and Eric Blake  <eblake@redhat.com>
6222
6223         test-vc-list-files-git: make more robust
6224         * tests/test-vc-list-files-git.sh: Unset problematic environment
6225         variables.  Chain commands together.
6226
6227 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
6228
6229         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
6230         `AC_CHECK_DECL' invocation.
6231
6232 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
6233
6234         * lib/inttostr.c (inttostr): Make sure the invocation of verify
6235         appears before executable statements. Suggested by Petr Sumbera
6236         <Petr.Sumbera@Sun.COM>.
6237
6238 2010-03-14  Bruno Haible  <bruno@clisp.org>
6239
6240         * tests/test-flock.c (test_exclusive): Comment out a test that causes
6241         portability problems. Instead use a simpler test.
6242         (main): Check that invalid arguments are rejected only on Linux.
6243
6244 2010-03-14  Bruno Haible  <bruno@clisp.org>
6245
6246         Fix bug introduced on 2009-12-31.
6247         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
6248         gl_PREREQ_SYS_H_WINSOCK2 always.
6249         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
6250         SYS_SOCKET_H variable.
6251         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
6252         Update comments.
6253         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
6254         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6255         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6256         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6257         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6258
6259 2010-03-14  Bruno Haible  <bruno@clisp.org>
6260
6261         Fix values returned by sinl, cosl.
6262         * lib/trigl.h: Add specification comments.
6263         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
6264         that combines the values from the precomputed table with the values of
6265         the Chebyshev polynomials.
6266
6267 2010-03-14  Bruno Haible  <bruno@clisp.org>
6268
6269         Fix compilation error when modules 'posix_spawn[p]' are not used.
6270         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
6271         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
6272
6273 2010-03-14  Bruno Haible  <bruno@clisp.org>
6274
6275         Fix compilation error on mingw when module 'time_r' is not used.
6276         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
6277         is 1.
6278         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
6279         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6280         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
6281         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
6282
6283 2010-03-14  Bruno Haible  <bruno@clisp.org>
6284
6285         Fix compilation error with Sun C.
6286         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
6287         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
6288         instead of GCC specific ULONG_LONG_MAX.
6289         * lib/xstrtoll.c: Likewise.
6290         * lib/xstrtoull.c: Likewise.
6291
6292 2010-03-13  Bruno Haible  <bruno@clisp.org>
6293
6294         Allow the user to disable C++ code and tests.
6295         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
6296         (gl_PROG_ANSI_CXX): Require it.
6297
6298 2010-03-13  Bruno Haible  <bruno@clisp.org>
6299
6300         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
6301         cases.
6302
6303 2010-03-13  Bruno Haible  <bruno@clisp.org>
6304
6305         Test that gnulib does not break the standard C++ headers.
6306         * tests/test-locale-c++2.cc: New file.
6307         * modules/locale-tests (Files): Add it.
6308         (Makefile.am): Compile it for test-locale-c++.
6309         * tests/test-math-c++2.cc: New file.
6310         * modules/math-tests (Files): Add it.
6311         (Makefile.am): Compile it for test-math-c++.
6312         * tests/test-signal-c++2.cc: New file.
6313         * modules/signal-tests (Files): Add it.
6314         (Makefile.am): Compile it for test-signal-c++.
6315         * tests/test-stdio-c++2.cc: New file.
6316         * modules/stdio-tests (Files): Add it.
6317         (Makefile.am): Compile it for test-stdio-c++.
6318         * tests/test-stdlib-c++2.cc: New file.
6319         * modules/stdlib-tests (Files): Add it.
6320         (Makefile.am): Compile it for test-stdlib-c++.
6321         * tests/test-string-c++2.cc: New file.
6322         * modules/string-tests (Files): Add it.
6323         (Makefile.am): Compile it for test-string-c++.
6324         * tests/test-time-c++2.cc: New file.
6325         * modules/time-tests (Files): Add it.
6326         (Makefile.am): Compile it for test-time-c++.
6327         Reported by John W. Eaton <jwe@gnu.org>.
6328
6329 2010-03-13  Bruno Haible  <bruno@clisp.org>
6330
6331         * gnulib-tool (func_usage): Clarify which options are available for
6332         --create-testdir and --create-megatestdir.
6333
6334 2010-03-13  Bruno Haible  <bruno@clisp.org>
6335
6336         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
6337         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
6338         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
6339         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6340         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
6341         when appropriate.
6342         Reported by Jim Meyering.
6343
6344 2010-03-12  Simon Josefsson  <simon@josefsson.org>
6345
6346         * gnulib-tool (func_import): Explain origin of code.
6347
6348 2010-03-12  Bruno Haible  <bruno@clisp.org>
6349
6350         Fix problem with automake's definition of CXXLINK.
6351         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
6352         Reported by Simon Josefsson and Ludovic Courtès.
6353
6354 2010-03-12  Bruno Haible  <bruno@clisp.org>
6355
6356         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
6357         stable releases.
6358
6359 2010-03-11  Bruno Haible  <bruno@clisp.org>
6360
6361         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
6362         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
6363         whether the system provides one variant or multiple variants of the
6364         function.
6365         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
6366         C++ compilers.
6367         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
6368         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
6369         Reported by Jim Meyering.
6370
6371 2010-03-09  Simon Josefsson  <simon@josefsson.org>
6372
6373         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
6374
6375 2010-03-08  Bruno Haible  <bruno@clisp.org>
6376
6377         gnulib-tool: Add support for --libtool in --create-testdir.
6378         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
6379         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
6380
6381 2010-03-08  Eric Blake  <eblake@redhat.com>
6382
6383         gnulib-tool.texi: mention possibility of git submodule
6384         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
6385         submodules.
6386         * doc/.gitignore: Ignore another generated file.
6387
6388 2010-03-08  Karl Berry  <karl@gnu.org>
6389
6390         * doc/gnulib-tool.texi (VCS Issues): Mention third option
6391         of committing gnulib files while skipping others.
6392
6393 2010-03-07  Bruno Haible  <bruno@clisp.org>
6394
6395         Tests of module 'wctype' in C++ mode.
6396         * tests/test-wctype-c++.cc: New file.
6397         * modules/wctype-tests (Files): Add it and tests/signature.h.
6398         (Depends-on): Add ansi-c++-opt.
6399         (Makefile.am): Arrange to compile and run test-wctype-c++.
6400
6401         Tests of module 'wchar' in C++ mode.
6402         * tests/test-wchar-c++.cc: New file.
6403         * modules/wchar-tests (Files): Add it and tests/signature.h.
6404         (Depends-on): Add ansi-c++-opt.
6405         (Makefile.am): Arrange to compile and run test-wchar-c++.
6406         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
6407         gl_MODULE_INDICATOR.
6408
6409         Tests of module 'unistd' in C++ mode.
6410         * tests/test-unistd-c++.cc: New file.
6411         * modules/unistd-tests (Files): Add it and tests/signature.h.
6412         (Depends-on): Add ansi-c++-opt.
6413         (Makefile.am): Arrange to compile and run test-unistd-c++.
6414         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
6415         gl_MODULE_INDICATOR.
6416
6417         Tests of module 'time' in C++ mode.
6418         * tests/test-time-c++.cc: New file.
6419         * modules/time-tests (Files): Add it and tests/signature.h.
6420         (Depends-on): Add ansi-c++-opt.
6421         (Makefile.am): Arrange to compile and run test-time-c++.
6422         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6423
6424         Tests of module 'sys_time' in C++ mode.
6425         * tests/test-sys_time-c++.cc: New file.
6426         * modules/sys_time-tests (Files): Add it and tests/signature.h.
6427         (Depends-on): Add ansi-c++-opt.
6428         (Makefile.am): Arrange to compile and run test-sys_time-c++.
6429         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
6430         gl_MODULE_INDICATOR.
6431
6432         Tests of module 'sys_stat' in C++ mode.
6433         * tests/test-sys_stat-c++.cc: New file.
6434         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
6435         (Depends-on): Add ansi-c++-opt.
6436         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
6437         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
6438         gl_MODULE_INDICATOR.
6439
6440         Tests of module 'sys_socket' in C++ mode.
6441         * tests/test-sys_socket-c++.cc: New file.
6442         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6443         (Depends-on): Add ansi-c++-opt.
6444         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
6445         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
6446         gl_MODULE_INDICATOR.
6447
6448         Tests of module 'sys_select' in C++ mode.
6449         * tests/test-sys_select-c++.cc: New file.
6450         * modules/sys_select-tests (Files): Add it and tests/signature.h.
6451         (Depends-on): Add ansi-c++-opt.
6452         (Makefile.am): Arrange to compile and run test-sys_select-c++.
6453         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
6454         gl_MODULE_INDICATOR.
6455
6456         Tests of module 'sys_ioctl' in C++ mode.
6457         * tests/test-sys_ioctl-c++.cc: New file.
6458         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
6459         (Depends-on): Add ansi-c++-opt.
6460         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
6461         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
6462         gl_MODULE_INDICATOR.
6463
6464         Tests of module 'string' in C++ mode.
6465         * tests/test-string-c++.cc: New file.
6466         * modules/string-tests (Files): Add it and tests/signature.h.
6467         (Depends-on): Add ansi-c++-opt.
6468         (Makefile.am): Arrange to compile and run test-string-c++.
6469         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
6470         gl_MODULE_INDICATOR.
6471
6472         Tests of module 'stdlib' in C++ mode.
6473         * tests/test-stdlib-c++.cc: New file.
6474         * modules/stdlib-tests (Files): Add it and tests/signature.h.
6475         (Depends-on): Add ansi-c++-opt.
6476         (Makefile.am): Arrange to compile and run test-stdlib-c++.
6477         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
6478         gl_MODULE_INDICATOR.
6479
6480         Tests of module 'stdio' in C++ mode.
6481         * tests/test-stdio-c++.cc: New file.
6482         * modules/stdio-tests (Files): Add it and tests/signature.h.
6483         (Depends-on): Add ansi-c++-opt.
6484         (Makefile.am): Arrange to compile and run test-stdio-c++.
6485         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
6486         gl_MODULE_INDICATOR.
6487
6488         Tests of module 'spawn' in C++ mode.
6489         * tests/test-spawn-c++.cc: New file.
6490         * modules/spawn-tests (Files): Add it and tests/signature.h.
6491         (Depends-on): Add ansi-c++-opt.
6492         (Makefile.am): Arrange to compile and run test-spawn-c++.
6493         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
6494         gl_MODULE_INDICATOR.
6495
6496         Tests of module 'signal' in C++ mode.
6497         * tests/test-signal-c++.cc: New file.
6498         * modules/signal-tests (Files): Add it and tests/signature.h.
6499         (Depends-on): Add ansi-c++-opt.
6500         (Makefile.am): Arrange to compile and run test-signal-c++.
6501         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
6502         gl_MODULE_INDICATOR.
6503
6504         Tests of module 'search' in C++ mode.
6505         * tests/test-search-c++.cc: New file.
6506         * modules/search-tests (Files): Add it and tests/signature.h.
6507         (Depends-on): Add ansi-c++-opt.
6508         (Makefile.am): Arrange to compile and run test-search-c++.
6509         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
6510         gl_MODULE_INDICATOR.
6511
6512         Tests of module 'math' in C++ mode.
6513         * tests/test-math-c++.cc: New file.
6514         * modules/math-tests (Files): Add it and tests/signature.h.
6515         (Depends-on): Add ansi-c++-opt.
6516         (Makefile.am): Arrange to compile and run test-math-c++.
6517         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6518
6519         Tests of module 'locale' in C++ mode.
6520         * tests/test-locale-c++.cc: New file.
6521         * modules/locale-tests (Files): Add it and tests/signature.h.
6522         (Depends-on): Add ansi-c++-opt.
6523         (Makefile.am): Arrange to compile and run test-locale-c++.
6524         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
6525         gl_MODULE_INDICATOR.
6526
6527         Tests of module 'langinfo' in C++ mode.
6528         * tests/test-langinfo-c++.cc: New file.
6529         * modules/langinfo-tests (Files): Add it and tests/signature.h.
6530         (Depends-on): Add ansi-c++-opt.
6531         (Makefile.am): Arrange to compile and run test-langinfo-c++.
6532         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
6533         gl_MODULE_INDICATOR.
6534
6535         Tests of module 'iconv-h' in C++ mode.
6536         * tests/test-iconv-h-c++.cc: New file.
6537         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
6538         (Depends-on): Add ansi-c++-opt.
6539         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
6540
6541         Tests of module 'glob' in C++ mode.
6542         * tests/test-glob-c++.cc: New file.
6543         * modules/glob-tests (Files): Add it.
6544         (Depends-on): Add ansi-c++-opt.
6545         (Makefile.am): Arrange to compile and run test-glob-c++.
6546
6547         Tests of module 'fcntl-h' in C++ mode.
6548         * tests/test-fcntl-h-c++.cc: New file.
6549         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
6550         (Depends-on): Add ansi-c++-opt.
6551         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
6552         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
6553         gl_MODULE_INDICATOR.
6554
6555         Tests of module 'dirent' in C++ mode.
6556         * tests/test-dirent-c++.cc: New file.
6557         * modules/dirent-tests (Files): Add it and tests/signature.h.
6558         (Depends-on): Add ansi-c++-opt.
6559         (Makefile.am): Arrange to compile and run test-dirent-c++.
6560         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6561         gl_MODULE_INDICATOR.
6562
6563         New module 'ansi-c++-opt'.
6564         * modules/ansi-c++-opt: New file.
6565         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
6566
6567         Document C++ namespace mode.
6568         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
6569
6570         wctype: Avoid #define replacements in C++ mode.
6571         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
6572         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
6573         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
6574         In C++, define a namespaced alias symbol.
6575         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
6576         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
6577         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
6578         rule.
6579
6580         wchar: Avoid #define replacements in C++ mode.
6581         * lib/wchar.in.h: Include c++defs.h.
6582         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
6583         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
6584         symbol.
6585         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6586         * modules/wchar (Depends-on): Add c++defs.
6587         (Makefile.am): Update wchar.h rule.
6588
6589         unistd: Avoid #define replacements in C++ mode.
6590         * lib/unistd.in.h: Include c++defs.h.
6591         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6592         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6593         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6594         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6595         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6596         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6597         symbol.
6598         (environ): Update.
6599         * modules/unistd (Depends-on): Add c++defs.
6600         (Makefile.am): Update unistd.h rule.
6601
6602         time: Avoid #define replacements in C++ mode.
6603         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6604         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6605         define a namespaced alias symbol.
6606         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6607         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6608         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6609         * modules/time (Depends-on): Add c++defs, warn-on-use.
6610         (Makefile.am): Update time.h rule.
6611         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6612         * modules/nanosleep (configure.ac): Likewise.
6613         * modules/strptime (configure.ac): Likewise.
6614         * modules/timegm (configure.ac): Likewise.
6615
6616         sys_time: Avoid #define replacements in C++ mode.
6617         * lib/sys_time.in.h: Include c++defs.h.
6618         (gettimeofday): In C++, define a namespaced alias symbol.
6619         * modules/sys_time (Depends-on): Add c++defs.
6620         (Makefile.am): Update sys/time.h rule.
6621
6622         sys_stat: Avoid #define replacements in C++ mode.
6623         * lib/sys_stat.in.h: Include c++defs.h.
6624         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6625         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6626         namespaced alias symbol.
6627         In C++, define a namespaced alias symbol.
6628         * modules/sys_stat (Depends-on): Add c++defs.
6629         (Makefile.am): Update sys/stat.h rule.
6630
6631         sys_socket: Avoid #define replacements in C++ mode.
6632         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6633         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6634         definitions also when the system has a <sys/socket.h>.
6635         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6636         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6637         In C++, define a namespaced alias symbol.
6638         * modules/sys_socket (Depends-on): Add c++defs.
6639         (Makefile.am): Update sys/socket.h rule.
6640
6641         sys_select: Avoid #define replacements in C++ mode.
6642         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6643         definitions also when the system has a <sys/select.h>.
6644         (select): In C++, define a namespaced alias symbol.
6645         * modules/sys_select (Depends-on): Add c++defs.
6646         (Makefile.am): Update sys/select.h rule.
6647
6648         sys_ioctl: Avoid #define replacements in C++ mode.
6649         * lib/sys_ioctl.in.h: Include c++defs.h.
6650         (ioctl): In C++, define a namespaced alias symbol.
6651         * modules/sys_ioctl (Depends-on): Add c++defs.
6652         (Makefile.am): Update sys/ioctl.h rule.
6653
6654         string: Avoid #define replacements in C++ mode.
6655         * lib/string.in.h: Include c++defs.h.
6656         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6657         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6658         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6659         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6660         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6661         * modules/string (Depends-on): Add c++defs.
6662         (Makefile.am): Update string.h rule.
6663
6664         stdlib: Avoid #define replacements in C++ mode.
6665         * lib/stdlib.in.h: Include c++defs.h.
6666         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6667         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6668         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6669         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6670         symbol.
6671         * modules/stdlib (Depends-on): Add c++defs.
6672         (Makefile.am): Update stdlib.h rule.
6673
6674         stdio: Avoid #define replacements in C++ mode.
6675         * lib/stdio.in.h: Include c++defs.h.
6676         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6677         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6678         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6679         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6680         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6681         namespaced alias symbol.
6682         * modules/stdio (Depends-on): Add c++defs.
6683         (Makefile.am): Update stdio.h rule.
6684
6685         spawn: Avoid #define replacements in C++ mode.
6686         * lib/spawn.in.h: Include c++defs.h.
6687         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6688         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6689         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6690         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6691         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6692         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6693         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6694         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6695         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6696         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6697         In C++, define a namespaced alias symbol.
6698         * modules/spawn (Depends-on): Add c++defs.
6699         (Makefile.am): Update spawn.h rule.
6700
6701         signal: Avoid #define replacements in C++ mode.
6702         * lib/signal.in.h: Include c++defs.h.
6703         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6704         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6705         namespaced alias symbol.
6706         * modules/signal (Depends-on): Add c++defs.
6707         (Makefile.am): Update signal.h rule.
6708
6709         search: Avoid #define replacements in C++ mode.
6710         * lib/search.in.h: Include c++defs.h.
6711         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6712         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6713         symbol.
6714         * modules/search (Depends-on): Add c++defs.
6715         (Makefile.am): Update search.h rule.
6716
6717         math: Avoid #define replacements in C++ mode.
6718         * lib/math.in.h: Include c++defs.h.
6719         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6720         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6721         trunc, truncl): In C++, define a namespaced alias symbol.
6722         * modules/math (Depends-on): Add c++defs.
6723         (Makefile.am): Update math.h rule.
6724
6725         locale: Avoid #define replacements in C++ mode.
6726         * lib/locale.in.h: Include c++defs.h.
6727         (duplocale): In C++, define a namespaced alias symbol.
6728         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6729         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6730         * modules/locale (Depends-on): Add c++defs.
6731         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6732
6733         langinfo: Avoid #define replacements in C++ mode.
6734         * lib/langinfo.in.h: Include c++defs.h.
6735         (nl_langinfo): In C++, define a namespaced alias symbol.
6736         * modules/langinfo (Depends-on): Add c++defs.
6737         (Makefile.am): Update langinfo.h rule.
6738
6739         iconv-h: Avoid #define replacements in C++ mode.
6740         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6741         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6742         symbol.
6743         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6744         whenever iconv is present.
6745         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6746         (Makefile.am): Update iconv.h rule.
6747
6748         glob: Avoid #define replacements in C++ mode.
6749         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6750         (_gl_glob_errfunc_fn): New type.
6751         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6752         symbol.
6753         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6754         (Makefile.am): Update glob.h rule.
6755
6756         fcntl-h: Avoid #define replacements in C++ mode.
6757         * lib/fcntl.in.h: Include c++defs.h.
6758         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6759         * modules/fcntl-h (Depends-on): Add c++defs.
6760         (Makefile.am): Update fcntl.h rule.
6761
6762         dirent: Avoid #define replacements in C++ mode.
6763         * lib/dirent.in.h: Include c++defs.h.
6764         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6765         namespaced alias symbol.
6766         (dirfd): Update declaration.
6767         * modules/dirent (Depends-on): Add c++defs.
6768         (Makefile.am): Update dirent.h rule.
6769
6770         ctype: Make it usable in C++ code.
6771         * lib/ctype.in.h: Include c++defs.h.
6772         (isblank): Declare as extern "C".
6773         * modules/ctype (Depends-on): Add c++defs.
6774         (Makefile.am): Update ctype.h rule.
6775
6776         New module 'c++defs'.
6777         * modules/c++defs: New file.
6778         * build-aux/c++defs.h: New file.
6779         Reported by John W. Eaton <jwe@gnu.org>.
6780
6781 2010-03-07  Bruno Haible  <bruno@clisp.org>
6782
6783         logb: Provide missing declaration for Cygwin.
6784         * lib/math.in.h (logb): New declaration.
6785         * m4/logb.m4: New file.
6786         * modules/logb (Files): Add m4/logb.m4.
6787         (Depends-on): Add math.
6788         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6789         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6790         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6791         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6792         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6793
6794 2010-03-07  Bruno Haible  <bruno@clisp.org>
6795
6796         Fix test-cond link error.
6797         * tests/test-cond.c: Include <stdio.h>.
6798
6799 2010-03-07  Bruno Haible  <bruno@clisp.org>
6800
6801         Fix test-dirent-safer link error.
6802         * modules/dirent-safer-tests (Makefile.am): Define
6803         test_dirent_safer_LDADD.
6804
6805 2010-03-07  Bruno Haible  <bruno@clisp.org>
6806
6807         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6808         among default module list.
6809
6810 2010-03-07  Bruno Haible  <bruno@clisp.org>
6811
6812         Fix link error on platforms with GNU libiconv.
6813         * modules/unistr/u8-strcoll-tests (Makefile): Define
6814         test_u8_strcoll_LDADD.
6815         * modules/unistr/u16-strcoll-tests (Makefile): Define
6816         test_u16_strcoll_LDADD.
6817         * modules/unistr/u32-strcoll-tests (Makefile): Define
6818         test_u32_strcoll_LDADD.
6819
6820 2010-03-07  Bruno Haible  <bruno@clisp.org>
6821
6822         Use POSIX declarations for socket functions.
6823         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6824         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6825         rpl_sendto): Change declaration to match POSIX.
6826         * lib/connect.c (rpl_connect): Likewise.
6827         * lib/accept.c (rpl_accept): Likewise.
6828         * lib/bind.c (rpl_bind): Likewise.
6829         * lib/getpeername.c (rpl_getpeername): Likewise.
6830         * lib/getsockname.c (rpl_getsockname): Likewise.
6831         * lib/recv.c (rpl_recv): Likewise.
6832         * lib/send.c (rpl_send): Likewise.
6833         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6834         * lib/sendto.c (rpl_sendto): Likewise.
6835
6836 2010-03-06  Bruno Haible  <bruno@clisp.org>
6837
6838         Clarify access, euidaccess, faccessat.
6839         * doc/posix-functions/faccessat.texi: Mention security problem under
6840         "Other problems", not "Portability problems".
6841         * doc/posix-functions/access.texi: Likewise. Mention a related security
6842         problem.
6843         * doc/glibc-functions/euidaccess.texi: Mention security problems.
6844         * lib/euidaccess.c: Add comments about platforms.
6845         * lib/unistd.in.h (access, euidaccess): Add warnings.
6846
6847 2010-03-07  Bruno Haible  <bruno@clisp.org>
6848
6849         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
6850         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
6851         (POSIX_SPAWN_SETSCHEDULER): Likewise.
6852         (POSIX_SPAWN_USEVFORK): Define in a way that works when
6853         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6854         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
6855         declare when POSIX_SPAWN_SETSCHEDULER is zero.
6856         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
6857         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
6858         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
6859         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
6860         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
6861         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
6862         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
6863         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
6864         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
6865         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
6866         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
6867         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
6868         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
6869         Likewise.
6870         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
6871         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
6872         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
6873         Likewise.
6874         * tests/test-spawn.c (main): Make it work when
6875         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6876
6877 2010-03-07  Bruno Haible  <bruno@clisp.org>
6878
6879         Fix incorrect Makefile.am generation in German locale.
6880         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6881         Execute sed command with character range in C locale.
6882
6883 2010-03-06  Bruno Haible  <bruno@clisp.org>
6884
6885         Tests for module 'iconv-h'.
6886         * modules/iconv-h-tests: New file.
6887         * tests/test-iconv-h.c: New file.
6888
6889         New module 'iconv-h'.
6890         * modules/iconv-h: New file.
6891         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
6892         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
6893         (configure.ac): Remove gl_ICONV_H.
6894         (Makefile.am): Remove rule for iconv.h.
6895
6896 2010-03-06  Bruno Haible  <bruno@clisp.org>
6897
6898         More consistent naming of *.m4 files.
6899         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
6900         * modules/wctype (Files): Update.
6901
6902         More consistent naming of *.m4 files.
6903         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
6904         * modules/wchar (Files): Update.
6905
6906 2010-03-06  Jim Meyering  <meyering@redhat.com>
6907
6908         euidaccess: relax license to LGPLv2+
6909         * modules/euidaccess (License): Relax to LGPLv2+.
6910
6911 2010-03-06  Bruno Haible  <bruno@clisp.org>
6912
6913         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
6914         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
6915         (Makefile.am): Augment lib_SOURCES instead.
6916
6917 2010-03-04  Jim Meyering  <meyering@redhat.com>
6918
6919         utime: remove obsolete module
6920         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
6921         unnecessary for years, and has been marked as obsolete for 10 months.
6922         * modules/utime: Remove file.
6923         * lib/utime.c: Remove file.
6924         * m4/utime.m4: Remove file.
6925         * m4/utimes-null.m4: Remove file.
6926         * doc/posix-functions/utime.texi (utime): Remove reference to
6927         the module.  Move the sole "fixed by gnulib" item into the
6928         "problems not fixed by Gnulib" list.
6929         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
6930
6931 2010-03-05  Simon Josefsson  <simon@josefsson.org>
6932
6933         * modules/exit (License): Relax license to LGPLv2+.
6934         (Status): Mark as obsolete.
6935         * NEWS: Mention deprecated 'exit' module.
6936         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
6937         of now obsolete 'exit'.
6938
6939 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6940
6941         fts-lgpl: remove unused module
6942         * modules/fts-lgpl: Remove.
6943         * MODULES.html.sh (func_all_modules): Adjust.
6944         * check-module (find_included_lib_files): Adjust.
6945         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
6946
6947 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
6948
6949         copy-acl: enhance Solaris ACL error handling
6950         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
6951         * lib/set-mode-acl.c (qset_acl): Likewise.
6952
6953 2010-03-02  Bruno Haible  <bruno@clisp.org>
6954
6955         spawn: Don't override the system defined values on FreeBSD 8.
6956         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
6957         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
6958         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
6959         if HAVE_POSIX_SPAWN is 1.
6960         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
6961
6962 2010-03-01  Bruno Haible  <bruno@clisp.org>
6963
6964         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
6965         regarding Automake.
6966
6967 2010-02-25  Bruno Haible  <bruno@clisp.org>
6968
6969         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
6970         * gnulib-tool: Define 'echo' as a function only before the ksh alias
6971         setting, not afterwards.
6972         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6973
6974 2010-02-24  Eric Blake  <eblake@redhat.com>
6975
6976         bootstrap, git-version-gen: use timestamp
6977         * build-aux/git-version-gen (scriptversion): Force UTC.
6978         * build-aux/bootstrap (scriptversion): New variable.
6979
6980         bootstrap: allow older git
6981         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
6982         older than 1.6.4.  Requested by the libvirt project.
6983
6984 2010-02-23  Eric Blake  <eblake@redhat.com>
6985
6986         warn-on-use: work with old autoconf
6987         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
6988         AS_VAR semantics of autoconf 2.60.
6989         Reported by Bruno Haible.
6990
6991         bootstrap: improve some comments
6992         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
6993         clarification comments.
6994
6995         gettimeofday: provide correct function
6996         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
6997         when replacement is declared, otherwise provide gettimeofday.
6998         Reported by Michael Goffioul.
6999
7000 2010-02-23  Jim Meyering  <meyering@redhat.com>
7001
7002         lib-ignore: relax license to "unlimited", not LGPLv2+
7003         * modules/lib-ignore (License): Relax to "unlimited".
7004
7005 2010-02-23  Jim Meyering  <meyering@redhat.com>
7006
7007         lib-ignore: relax license to LGPLv2+
7008         * modules/lib-ignore (License): Relax to LGPLv2+.
7009
7010 2010-02-22  Eric Blake  <eblake@redhat.com>
7011
7012         lseek: avoid bash 3.2 broken pipe bug
7013         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
7014         warning from bash 3.2.
7015         Reported by Ben Pfaff, with analysis from Bruno Haible.
7016
7017         bootstrap: support non-FSF copyright holder
7018         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
7019         bootstrap.conf override of COPYRIGHT_HOLDER.
7020         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
7021
7022         bootstrap: interoperate with gettext 0.14.1
7023         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
7024
7025         bootstrap: allow for alternate submodule location
7026         * build-aux/bootstrap (gnulib_path): New variable; use instead of
7027         hardcoding submodule location.
7028         (gnulib_mk): Allow direct use of Makefile.am.
7029
7030         bootstrap: use GNULIB_SRCDIR to reduce disk usage
7031         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
7032         rather than reconfiguring where the submodule points.
7033
7034         gettimeofday: restore support for platforms that lack function
7035         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
7036         replacement if function is missing.
7037         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
7038         * modules/sys_time (Makefile.am): Substitute it.
7039         * lib/sys_time.in.h (gettimeofday): Check it.
7040         Reported by Michael Goffioul.
7041
7042 2010-02-21  Bruno Haible  <bruno@clisp.org>
7043
7044         * lib/stdio.in.h (obstack_printf): Fix typo.
7045
7046 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
7047
7048         vc-list-files: use bzr ls's -R option
7049         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
7050         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
7051
7052 2010-02-21  Jim Meyering  <meyering@redhat.com>
7053
7054         init.sh: fix EXEEXT shims to work also for names like test-prog
7055         * tests/init.sh: Re-exec a better shell, when needed.
7056         If the current shell lacks support for posix $(...), an init.sh-using
7057         test will now try to find a shell that supports that.  If EXEEXT is
7058         nonempty, we also require support for hyphen-in-alias-name and shell
7059         substitutions like ${var#glob}.  Failure to find such a shell results
7060         in a skipped test.
7061
7062 2010-02-21  Bruno Haible  <bruno@clisp.org>
7063
7064         Really work around around "broken pipe" error message from bash 3.2.
7065         * gnulib-tool (func_reset_sigpipe): Remove function.
7066         (echo): In bash 3.2, define to a function that uses printf.
7067         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
7068
7069 2010-02-20  Bruno Haible  <bruno@clisp.org>
7070
7071         Restore support for automake 1.9.6 with autoconf 2.61.
7072         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
7073         Reported by James Youngman <jay@gnu.org>.
7074
7075 2010-02-20  Bruno Haible  <bruno@clisp.org>
7076
7077         Improve *printf warning condition.
7078         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
7079         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
7080         and the function is overridden due to SIGPIPE emulation.
7081
7082 2010-02-20  Bruno Haible  <bruno@clisp.org>
7083
7084         * lib/stdio.in.h: Tweak comments.
7085
7086 2010-02-19  Bruno Haible  <bruno@clisp.org>
7087
7088         Make it easier to find modules. New gnulib-tool option '--find'.
7089         * gnulib-tool: New option --find.
7090         (func_usage): Document it.
7091         (func_sanitize_modulelist): New function, extracted from
7092         func_all_modules.
7093         (func_all_modules): Invoke it.
7094         * doc/gnulib-tool.texi (Which modules?): New node.
7095
7096 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
7097
7098         * lib/sys_select.in.h: Provide select replacement even if
7099         sys/select.h exists on a system, for Interix.
7100
7101 2010-02-18  Jim Meyering  <meyering@redhat.com>
7102
7103         init.sh: don't use $(...) just yet
7104         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
7105         to accommodate e.g., Solaris' /bin/sh.
7106
7107 2010-02-17  Bruno Haible  <bruno@clisp.org>
7108
7109         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
7110         Reported by Ludovic Courtès <ludo@gnu.org>.
7111
7112 2010-02-16  Simon Josefsson  <simon@josefsson.org>
7113
7114         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
7115         linking with -lintl.
7116
7117 2010-02-17  Simon Josefsson  <simon@josefsson.org>
7118
7119         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
7120         if not provided by the system's netdb.h.  Reported by
7121         ludo@gnu.org (Ludovic Courtès).
7122
7123 2010-02-15  Jim Meyering  <meyering@redhat.com>
7124
7125         init.sh: improve portability and efficiency
7126         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
7127         "dummy" in a for loop.
7128         Use '!', not '^' to select the complement of a character set used
7129         in a "case" statement.
7130         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
7131         Suggestions from Eric Blake.
7132
7133         init.sh: automatically accommodate programs with the .exe suffix
7134         Automatically arrange for an invocation of "prog" to execute the
7135         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
7136         may use the simpler "prog", yet still work when built on a system
7137         that requires specifying the added suffix.
7138         Do this by constructing a function named "prog" that invokes
7139         "prog.exe" for each .exe file in selected directories.
7140         * tests/init.sh (find_exe_basenames_): New function.
7141         (create_exe_shim_functions_): New function.
7142         (path_prepend_): Use it.
7143
7144         maint.mk: mark syntax-check sc_*.m rules as .PHONY
7145         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
7146         "make -t syntax-check" doesn't create a ton of sc_*.m files.
7147
7148 2010-02-14  Jim Meyering  <meyering@redhat.com>
7149
7150         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
7151         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
7152         (sc_prohibit_hash_pjw_without_use): New rule.
7153
7154         maint.mk: allow the default upload destination dir to be overridden
7155         * top/maint.mk (upload_dest_dir_): Define with a default that
7156         preserves the status quo.
7157         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
7158         Reported by Peter Simons.
7159
7160         maint.mk: prohibit inclusion of "hash.h" without_use
7161         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
7162
7163 2010-02-10  Jim Meyering  <meyering@redhat.com>
7164
7165         maint.mk: prohibit inclusion of "ignore-value.h" without_use
7166         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
7167
7168 2010-02-09  Eric Blake  <ebb9@byu.net>
7169         and Bruno Haible  <bruno@clisp.org>
7170
7171         obstack-printf-posix: ensure declaration
7172         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
7173         extracted from gl_FUNC_OBSTACK_PRINTF.
7174         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
7175         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
7176         Likewise.
7177         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
7178         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
7179         0.
7180
7181 2010-02-08  Bruno Haible  <bruno@clisp.org>
7182
7183         gnulib-tool: Fix typo in 2010-02-07 commit.
7184         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
7185         Reported by Eric Blake.
7186
7187 2010-02-07  Bruno Haible  <bruno@clisp.org>
7188
7189         gnulib-tool: Fix up caching patches.
7190         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
7191         option --no-cache. Use associative arrays when supported by the shell.
7192         (sed_comments): New variable.
7193         (modcache): Renamed from do_cache.
7194         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
7195         abbreviate unnecessarily.
7196         (have_associative): New variable.
7197         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
7198         way also for ksh and zsh.
7199         (func_init_sed_convert_to_cache_statements): New function, extracted
7200         from func_cache_lookup_module. Add support for associative arrays.
7201         Don't set the c_MODULE_cached variable here. Ignore all lines before
7202         the first field header. Remove only the final newline, not all trailing
7203         newlines. Support empty fields correctly. Limit the use of 'eval' to
7204         assignments.
7205         (func_get_description, func_get_status, func_get_notice,
7206         func_get_applicability, func_get_filelist, func_get_dependencies,
7207         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
7208         func_get_automake_snippet, func_get_include_directive,
7209         func_get_link_directive, func_get_license, func_get_maintainer):
7210         Update documentation. List the unoptimized code first. Add support for
7211         associative arrays. Limit the use of 'eval' to assignments.
7212         (func_get_applicability): Undo stylistic pessimisations.
7213         (func_get_automake_snippet, func_get_include_directive): Reduce code
7214         duplication.
7215         (func_modules_transitive_closure, func_modules_add_dummy,
7216         func_modules_notice, func_modules_to_filelist, func_add_file,
7217         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
7218         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
7219         func_create_testdir, func_create_megatestdir): Update documentation.
7220
7221 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7222
7223         * gnulib-tool (func_cache_lookup_module): Store the module name
7224         belonging to the cache variable; error out if two different
7225         module names map to the same cache variable name.
7226
7227 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7228
7229         gnulib-tool: Make caching optional.
7230         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
7231         Update matching short versions of --no-changelog.
7232         (func_usage): Update.
7233         (sed_extract_cache_prog): Renamed from ...
7234         (sed_extract_prog): ... this; revert to old extraction script.
7235         (func_get_description, func_get_status)
7236         (func_get_notice, func_get_applicability, func_get_filelist)
7237         (func_get_dependencies, func_get_autoconf_early_snippet)
7238         (func_get_autoconf_snippet, func_get_automake_snippet)
7239         (func_get_include_directive, func_get_link_directive)
7240         (func_get_license, func_get_maintainer): If $do_cache is false,
7241         use old, non-caching extraction scripts.
7242         Suggestion by Bruno Haible.
7243
7244 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7245
7246         gnulib-tool: cache module metainformation.
7247         * gnulib-tool (sed_extract_prog): Match newline before each
7248         header, and rewrite header to a shell variable suffix.
7249         (func_cache_var, func_cache_lookup_module): New functions,
7250         to turn a module name into a cache variable prefix, and to
7251         look up and cache module metainformation.
7252         (func_get_description, func_get_status)
7253         (func_get_notice, func_get_applicability, func_get_filelist)
7254         (func_get_dependencies, func_get_autoconf_early_snippet)
7255         (func_get_autoconf_snippet, func_get_automake_snippet)
7256         (func_get_include_directive, func_get_link_directive)
7257         (func_get_license, func_get_maintainer): Use
7258         func_cache_lookup_module.
7259
7260 2010-02-07  Bruno Haible  <bruno@clisp.org>
7261
7262         fnctl: Fix missing dependency.
7263         * modules/fcntl (Depends-on): Add getdtablesize.
7264         Reported by John W. Eaton <jwe@gnu.org>.
7265
7266 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7267
7268         Argp: fix recognition of short alias options.
7269
7270         * lib/argp-parse.c (convert_options): Fix improper use of
7271         `|' between character values.
7272         * tests/test-argp.c (group1_option): New alias option
7273         --read (-r).
7274         (group1_parser): Special handling for 'r'.
7275         (test15): New test case.
7276         (test_fun): Add test15.
7277         * tests/test-argp-2.sh: Update expected --help and --usage
7278         outputs.
7279
7280 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7281
7282         * tests/test-argp.c: Fix indentation.
7283
7284 2010-02-04  Eric Blake  <ebb9@byu.net>
7285
7286         gettimeofday: expose type of second argument
7287         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
7288         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
7289         * tests/test-gettimeofday.c: Use it to silence warning.
7290         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
7291         the issue.
7292
7293 2010-02-03  Jim Meyering  <meyering@redhat.com>
7294
7295         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
7296         * lib/regcomp.c (TYPE_SIGNED): Define.
7297         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
7298
7299         regcomp.c: avoid a new -Wshadow warning
7300         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
7301
7302 2010-02-01  Jim Meyering  <meyering@redhat.com>
7303
7304         removing useless parentheses in cpp #define directives
7305         For motivation, see commit c0221df4, "define STREQ(a,b)
7306         consistently, removing useless parentheses"
7307         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
7308         * lib/mountlist.c (MNT_IGNORE): Likewise.
7309         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
7310
7311 2010-02-01  Eric Blake  <ebb9@byu.net>
7312
7313         sys_time: use link-warning
7314         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
7315         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
7316         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
7317         * modules/sys_time (Depends-on): Add warn-on-use.
7318         (Makefile.am): Always build replacement.
7319         (configure.ac): Update substitutions.
7320         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
7321         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
7322         bother with SYS_TIME_H.
7323         * modules/gettimeofday (configure.ac): Declare indicator.
7324         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
7325         in use.
7326
7327         closein-tests: silence compiler warning
7328         * tests/test-closein.c (main): Ignore fread result.
7329         * modules/closein-tests (Depends-on): Add ignore-value.
7330
7331         tests: silence warning about system return
7332         * tests/test-areadlink-with-size.c (main): Ignore system result.
7333         * tests/test-areadlink.c (main): Likewise.
7334         * tests/test-areadlinkat-with-size.c (main): Likewise.
7335         * tests/test-areadlinkat.c (main): Likewise.
7336         * tests/test-canonicalize-lgpl.c (main): Likewise.
7337         * tests/test-canonicalize.c (main): Likewise.
7338         * tests/test-chown.c (main): Likewise.
7339         * tests/test-fchownat.c (main): Likewise.
7340         * tests/test-fdutimensat.c (main): Likewise.
7341         * tests/test-fstatat.c (main): Likewise.
7342         * tests/test-futimens.c (main): Likewise.
7343         * tests/test-lchown.c (main): Likewise.
7344         * tests/test-link.c (main): Likewise.
7345         * tests/test-linkat.c (main): Likewise.
7346         * tests/test-lstat.c (main): Likewise.
7347         * tests/test-mkdir.c (main): Likewise.
7348         * tests/test-mkdirat.c (main): Likewise.
7349         * tests/test-mkfifo.c (main): Likewise.
7350         * tests/test-mkfifoat.c (main): Likewise.
7351         * tests/test-mknod.c (main): Likewise.
7352         * tests/test-readlink.c (main): Likewise.
7353         * tests/test-remove.c (main): Likewise.
7354         * tests/test-rename.c (main): Likewise.
7355         * tests/test-renameat.c (main): Likewise.
7356         * tests/test-rmdir.c (main): Likewise.
7357         * tests/test-symlink.c (main): Likewise.
7358         * tests/test-symlinkat.c (main): Likewise.
7359         * tests/test-unlink.c (main): Likewise.
7360         * tests/test-unlinkat.c (main): Likewise.
7361         * tests/test-utimens.c (main): Likewise.
7362         * tests/test-utimensat.c (main): Likewise.
7363         * modules/areadlink-tests (Depends-on): Add ignore-value.
7364         * modules/areadlink-with-size-tests (Depends-on): Likewise.
7365         * modules/areadlinkat-tests (Depends-on): Likewise.
7366         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
7367         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7368         * modules/canonicalize-tests (Depends-on): Likewise.
7369         * modules/chown-tests (Depends-on): Likewise.
7370         * modules/fdutimensat-tests (Depends-on): Likewise.
7371         * modules/futimens-tests (Depends-on): Likewise.
7372         * modules/lchown-tests (Depends-on): Likewise.
7373         * modules/link-tests (Depends-on): Likewise.
7374         * modules/linkat-tests (Depends-on): Likewise.
7375         * modules/lstat-tests (Depends-on): Likewise.
7376         * modules/mkdir-tests (Depends-on): Likewise.
7377         * modules/mkfifo-tests (Depends-on): Likewise.
7378         * modules/mkfifoat-tests (Depends-on): Likewise.
7379         * modules/mknod-tests (Depends-on): Likewise.
7380         * modules/openat-tests (Depends-on): Likewise.
7381         * modules/readlink-tests (Depends-on): Likewise.
7382         * modules/remove-tests (Depends-on): Likewise.
7383         * modules/rename-tests (Depends-on): Likewise.
7384         * modules/renameat-tests (Depends-on): Likewise.
7385         * modules/rmdir-tests (Depends-on): Likewise.
7386         * modules/symlink-tests (Depends-on): Likewise.
7387         * modules/symlinkat-tests (Depends-on): Likewise.
7388         * modules/unlink-tests (Depends-on): Likewise.
7389         * modules/utimens-tests (Depends-on): Likewise.
7390         * modules/utimensat-tests (Depends-on): Likewise.
7391
7392 2010-01-31  Bruno Haible  <bruno@clisp.org>
7393
7394         Perform the same test for many <math.h> functions.
7395         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
7396         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
7397         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
7398         of gl_MATHFUNC.
7399         * modules/acos (configure.ac): Likewise.
7400         * modules/asin (configure.ac): Likewise.
7401         * modules/atan (configure.ac): Likewise.
7402         * modules/atan2 (configure.ac): Likewise.
7403         * modules/cbrt (configure.ac): Likewise.
7404         * modules/copysign (configure.ac): Likewise.
7405         * modules/cos (configure.ac): Likewise.
7406         * modules/cosh (configure.ac): Likewise.
7407         * modules/erf (configure.ac): Likewise.
7408         * modules/erfc (configure.ac): Likewise.
7409         * modules/exp (configure.ac): Likewise.
7410         * modules/fmod (configure.ac): Likewise.
7411         * modules/hypot (configure.ac): Likewise.
7412         * modules/j0 (configure.ac): Likewise.
7413         * modules/j1 (configure.ac): Likewise.
7414         * modules/jn (configure.ac): Likewise.
7415         * modules/lgamma (configure.ac): Likewise.
7416         * modules/log (configure.ac): Likewise.
7417         * modules/log10 (configure.ac): Likewise.
7418         * modules/log1p (configure.ac): Likewise.
7419         * modules/pow (configure.ac): Likewise.
7420         * modules/remainder (configure.ac): Likewise.
7421         * modules/sin (configure.ac): Likewise.
7422         * modules/sinh (configure.ac): Likewise.
7423         * modules/tan (configure.ac): Likewise.
7424         * modules/tanh (configure.ac): Likewise.
7425         * modules/y0 (configure.ac): Likewise.
7426         * modules/y1 (configure.ac): Likewise.
7427         * modules/yn (configure.ac): Likewise.
7428         Suggested by Paolo Bonzini.
7429
7430 2010-01-31  Bruno Haible  <bruno@clisp.org>
7431
7432         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
7433
7434 2010-01-31  Bruno Haible  <bruno@clisp.org>
7435
7436         Work around getdelim() bug on FreeBSD 8.0.
7437         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
7438         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
7439         not work.
7440         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
7441         is 1.
7442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
7443         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
7444         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
7445         a non-zero size.
7446         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
7447
7448 2010-01-31  Bruno Haible  <bruno@clisp.org>
7449
7450         Work around getline() bug on FreeBSD 8.0.
7451         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
7452         and a non-zero size.
7453         * tests/test-getline.c (main): Likewise.
7454         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
7455         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
7456
7457 2010-01-28  Eric Blake  <ebb9@byu.net>
7458
7459         regex: fix build failure
7460         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
7461         platforms.
7462
7463 2010-01-28  Jim Meyering  <meyering@redhat.com>
7464
7465         regex: do not ignore memory allocation failure
7466         * lib/regex_internal.c (create_cd_newstate): Detect
7467         re_node_set_init_copy failure.   Extracted from glibc commit
7468         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7469
7470         regex: sync more white-space changes from libc
7471         * lib/regex_internal.c: White-space only changes.
7472         * lib/regexec.c: Likewise.
7473
7474         regex: add many uses of __attribute_warn_unused_result__
7475         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
7476         * lib/regexec.c: Likewise.
7477         Extracted from a messy glibc commit.
7478
7479         regcomp.c: spelling and merge-artifact from glibc
7480         * lib/regcomp.c: Merge remainder of glibc's
7481         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7482
7483         regcomp.c: sync white-space changes from glibc
7484         * lib/regcomp.c: Merge to accommodate white space
7485         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7486
7487         regcomp.c: do not ignore internal return values
7488         * lib/regcomp.c: Do not ignore internal return values.
7489         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
7490         but without its white-space changes and spelling fixes.
7491
7492         regex_internal.h: define __attribute_warn_unused_result__
7493         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
7494
7495         maint: add a syntax-check rule to check for vulnerable Makefile.in
7496         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
7497
7498 2010-01-27  Jim Meyering  <meyering@redhat.com>
7499
7500         ncftpput-ftp: clean up spaces
7501         * build-aux/ncftpput-ftp: Make Copyright line consistent.
7502         Remove trailing blanks.
7503
7504 2010-01-27  Simon Josefsson  <simon@josefsson.org>
7505
7506         * build-aux/git-version-gen: Fix copyright statement.
7507         * build-aux/gnupload: Likewise.
7508         * tests/test-arcfour.c: Likewise.
7509         * tests/test-arctwo.c: Likewise.
7510         * tests/test-count-one-bits.c: Likewise.
7511         * tests/test-crc.c: Likewise.
7512         * tests/test-des.c: Likewise.
7513         * tests/test-gc-arcfour.c: Likewise.
7514         * tests/test-gc-arctwo.c: Likewise.
7515         * tests/test-gc-des.c: Likewise.
7516         * tests/test-gc-hmac-md5.c: Likewise.
7517         * tests/test-gc-hmac-sha1.c: Likewise.
7518         * tests/test-gc-md2.c: Likewise.
7519         * tests/test-gc-md4.c: Likewise.
7520         * tests/test-gc-md5.c: Likewise.
7521         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7522         * tests/test-gc-rijndael.c: Likewise.
7523         * tests/test-gc-sha1.c: Likewise.
7524         * tests/test-gc.c: Likewise.
7525         * tests/test-gethostname.c: Likewise.
7526         * tests/test-gettimeofday.c: Likewise.
7527         * tests/test-hash.c: Likewise.
7528         * tests/test-hmac-md5.c: Likewise.
7529         * tests/test-hmac-sha1.c: Likewise.
7530         * tests/test-md2.c: Likewise.
7531         * tests/test-md4.c: Likewise.
7532         * tests/test-md5.c: Likewise.
7533         * tests/test-memchr.c: Likewise.
7534         * tests/test-memchr2.c: Likewise.
7535         * tests/test-memcmp.c: Likewise.
7536         * tests/test-memmem.c: Likewise.
7537         * tests/test-memrchr.c: Likewise.
7538         * tests/test-rawmemchr.c: Likewise.
7539         * tests/test-read-file.c: Likewise.
7540         * tests/test-rijndael.c: Likewise.
7541         * tests/test-sockets.c: Likewise.
7542         * tests/test-strchrnul.c: Likewise.
7543         * tests/test-strstr.c: Likewise.
7544         * tests/test-strtod.c: Likewise.
7545         * build-aux/ncftpput-ftp: Likewise.
7546
7547 2010-01-26  Eric Blake  <ebb9@byu.net>
7548
7549         ignore-value: update recommended header name
7550         * modules/ignore-value (Include): Only use <> for headers that
7551         exist in glibc.
7552
7553 2010-01-26  Jim Meyering  <meyering@redhat.com>
7554
7555         test-userspec.c: avoid compiler warnings
7556         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
7557         and "initialization discards qualifiers..." warnings.
7558         Put the first "uid" in its own scope, and make char* members "const".
7559
7560 2010-01-25  Bruno Haible  <bruno@clisp.org>
7561
7562         gnulib-tool: Make warning diagnostics consistent.
7563         * gnulib-tool (func_warning): New function.
7564         Use it everywhere where gnulib-tool produces output to stderr and it is
7565         not a fatal error.
7566
7567 2010-01-25  Bruno Haible  <bruno@clisp.org>
7568
7569         Fix test dependencies.
7570         * modules/xstrtol-tests (Depends-on): Add inttypes.
7571         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
7572
7573 2010-01-25 Pádraig Brady <P@draigBrady.com>
7574
7575         syntax-check: detect incorrect boolean macro values in config.h
7576         * modules/maintainer-makefile (configure.ac): Parameterize the location
7577         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
7578         The logic is from Eric Blake and the location indicated by Jim Meyering.
7579         Note the more natural CONFIG_HEADER name is prohibited by automake
7580         for backwards compatibility reasons.
7581         * top/maint.mk (sc_Wundef_boolean): New rule.
7582
7583 2010-01-25  Jim Meyering  <meyering@redhat.com>
7584
7585         bootstrap: detect MacOS 10.6's shasum, too
7586         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7587         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7588
7589 2010-01-23  Jim Meyering  <meyering@redhat.com>
7590
7591         xstrtoll: new module
7592         * modules/xstrtoll: New file.
7593         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7594         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7595         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7596         ./configure fails if you use this module and lack "long long".
7597         * modules/xstrtoll-tests: New module.
7598         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7599         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7600         new init.sh-based test framework.
7601
7602 2010-01-24  Bruno Haible  <bruno@clisp.org>
7603
7604         Tests for module 'yn'.
7605         * modules/yn-tests: New file.
7606         * tests/test-yn.c: New file.
7607
7608         Tests for module 'y1'.
7609         * modules/y1-tests: New file.
7610         * tests/test-y1.c: New file.
7611
7612         Tests for module 'y0'.
7613         * modules/y0-tests: New file.
7614         * tests/test-y0.c: New file.
7615
7616         Tests for module 'tanh'.
7617         * modules/tanh-tests: New file.
7618         * tests/test-tanh.c: New file.
7619
7620         Tests for module 'tan'.
7621         * modules/tan-tests: New file.
7622         * tests/test-tan.c: New file.
7623
7624         Tests for module 'sqrt'.
7625         * modules/sqrt-tests: New file.
7626         * tests/test-sqrt.c: New file.
7627
7628         Tests for module 'sinh'.
7629         * modules/sinh-tests: New file.
7630         * tests/test-sinh.c: New file.
7631
7632         Tests for module 'sin'.
7633         * modules/sin-tests: New file.
7634         * tests/test-sin.c: New file.
7635
7636         Tests for module 'rint'.
7637         * modules/rint-tests: New file.
7638         * tests/test-rint.c: New file.
7639
7640         Tests for module 'remainder'.
7641         * modules/remainder-tests: New file.
7642         * tests/test-remainder.c: New file.
7643
7644         Tests for module 'pow'.
7645         * modules/pow-tests: New file.
7646         * tests/test-pow.c: New file.
7647
7648         Tests for module 'nextafter'.
7649         * modules/nextafter-tests: New file.
7650         * tests/test-nextafter.c: New file.
7651
7652         Tests for module 'modf'.
7653         * modules/modf-tests: New file.
7654         * tests/test-modf.c: New file.
7655
7656         Tests for module 'logb'.
7657         * modules/logb-tests: New file.
7658         * tests/test-logb.c: New file.
7659
7660         Tests for module 'log1p'.
7661         * modules/log1p-tests: New file.
7662         * tests/test-log1p.c: New file.
7663
7664         Tests for module 'log10'.
7665         * modules/log10-tests: New file.
7666         * tests/test-log10.c: New file.
7667
7668         Tests for module 'log'.
7669         * modules/log-tests: New file.
7670         * tests/test-log.c: New file.
7671
7672         Tests for module 'lgamma'.
7673         * modules/lgamma-tests: New file.
7674         * tests/test-lgamma.c: New file.
7675
7676         Tests for module 'ldexp'.
7677         * modules/ldexp-tests: New file.
7678         * tests/test-ldexp.c: New file.
7679
7680         Tests for module 'jn'.
7681         * modules/jn-tests: New file.
7682         * tests/test-jn.c: New file.
7683
7684         Tests for module 'j1'.
7685         * modules/j1-tests: New file.
7686         * tests/test-j1.c: New file.
7687
7688         Tests for module 'j0'.
7689         * modules/j0-tests: New file.
7690         * tests/test-j0.c: New file.
7691
7692         Tests for module 'hypot'.
7693         * modules/hypot-tests: New file.
7694         * tests/test-hypot.c: New file.
7695
7696         Tests for module 'fmod'.
7697         * modules/fmod-tests: New file.
7698         * tests/test-fmod.c: New file.
7699
7700         Tests for module 'fabs'.
7701         * modules/fabs-tests: New file.
7702         * tests/test-fabs.c: New file.
7703
7704         Tests for module 'exp'.
7705         * modules/exp-tests: New file.
7706         * tests/test-exp.c: New file.
7707
7708         Tests for module 'erfc'.
7709         * modules/erfc-tests: New file.
7710         * tests/test-erfc.c: New file.
7711
7712         Tests for module 'erf'.
7713         * modules/erf-tests: New file.
7714         * tests/test-erf.c: New file.
7715
7716         Tests for module 'cosh'.
7717         * modules/cosh-tests: New file.
7718         * tests/test-cosh.c: New file.
7719
7720         Tests for module 'cos'.
7721         * modules/cos-tests: New file.
7722         * tests/test-cos.c: New file.
7723
7724         Tests for module 'copysign'.
7725         * modules/copysign-tests: New file.
7726         * tests/test-copysign.c: New file.
7727
7728         Tests for module 'cbrt'.
7729         * modules/cbrt-tests: New file.
7730         * tests/test-cbrt.c: New file.
7731
7732         Tests for module 'atan2'.
7733         * modules/atan2-tests: New file.
7734         * tests/test-atan2.c: New file.
7735
7736         Tests for module 'atan'.
7737         * modules/atan-tests: New file.
7738         * tests/test-atan.c: New file.
7739
7740         Tests for module 'asin'.
7741         * modules/asin-tests: New file.
7742         * tests/test-asin.c: New file.
7743
7744         Tests for module 'acos'.
7745         * modules/acos-tests: New file.
7746         * tests/test-acos.c: New file.
7747
7748 2010-01-24  Bruno Haible  <bruno@clisp.org>
7749
7750         Fix tests for common <math.h> functions.
7751         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7752         code snippet that references the function pointer, rather than merely
7753         calling the function. Substitute the FUNC_LIBM variable.
7754         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7755         * modules/acos (configure.ac): Likewise.
7756         * modules/asin (configure.ac): Likewise.
7757         * modules/atan (configure.ac): Likewise.
7758         * modules/atan2 (configure.ac): Likewise.
7759         * modules/cbrt (configure.ac): Likewise.
7760         * modules/copysign (configure.ac): Likewise.
7761         * modules/cos (configure.ac): Likewise.
7762         * modules/cosh (configure.ac): Likewise.
7763         * modules/erf (configure.ac): Likewise.
7764         * modules/erfc (configure.ac): Likewise.
7765         * modules/exp (configure.ac): Likewise.
7766         * modules/fabs (configure.ac): Likewise.
7767         * modules/fmod (configure.ac): Likewise.
7768         * modules/hypot (configure.ac): Likewise.
7769         * modules/j0 (configure.ac): Likewise.
7770         * modules/j1 (configure.ac): Likewise.
7771         * modules/jn (configure.ac): Likewise.
7772         * modules/ldexp (configure.ac): Likewise.
7773         * modules/lgamma (configure.ac): Likewise.
7774         * modules/log (configure.ac): Likewise.
7775         * modules/log10 (configure.ac): Likewise.
7776         * modules/log1p (configure.ac): Likewise.
7777         * modules/logb (configure.ac): Likewise.
7778         * modules/modf (configure.ac): Likewise.
7779         * modules/nextafter (configure.ac): Likewise.
7780         * modules/pow (configure.ac): Likewise.
7781         * modules/remainder (configure.ac): Likewise.
7782         * modules/rint (configure.ac): Likewise.
7783         * modules/sin (configure.ac): Likewise.
7784         * modules/sinh (configure.ac): Likewise.
7785         * modules/tan (configure.ac): Likewise.
7786         * modules/tanh (configure.ac): Likewise.
7787         * modules/y0 (configure.ac): Likewise.
7788         * modules/y1 (configure.ac): Likewise.
7789         * modules/yn (configure.ac): Likewise.
7790
7791 2010-01-24  Bruno Haible  <bruno@clisp.org>
7792
7793         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7794         * tests/test-acosl.c (x): New variable.
7795         (main): Store argument in x and fetch it from x.
7796         * tests/test-asinl.c (x): New variable.
7797         (main): Store argument in x and fetch it from x.
7798         * tests/test-atanl.c (x): New variable.
7799         (main): Store argument in x and fetch it from x.
7800         * tests/test-cosl.c (x): New variable.
7801         (main): Store argument in x and fetch it from x.
7802         * tests/test-expl.c (x): New variable.
7803         (main): Store argument in x and fetch it from x.
7804         * tests/test-logl.c (x): New variable.
7805         (main): Store argument in x and fetch it from x.
7806         * tests/test-sinl.c (x): New variable.
7807         (main): Store argument in x and fetch it from x.
7808         * tests/test-sqrtl.c (x): New variable.
7809         (main): Store argument in x and fetch it from x.
7810         * tests/test-tanl.c (x): New variable.
7811         (main): Store argument in x and fetch it from x.
7812
7813 2010-01-24  Bruno Haible  <bruno@clisp.org>
7814
7815         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7816         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7817         assignments to the initial TESTS_ENVIRONMENT.
7818         * doc/gnulib.texi (Unit test modules): Document it.
7819         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7820         TESTS_ENVIRONMENT.
7821         * modules/btowc-tests (Makefile.am): Likewise.
7822         * modules/c-stack-tests (Makefile.am): Likewise.
7823         * modules/c-strcase-tests (Makefile.am): Likewise.
7824         * modules/copy-file-tests (Makefile.am): Likewise.
7825         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7826         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7827         * modules/mbrtowc-tests (Makefile.am): Likewise.
7828         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7829         * modules/mbscasestr-tests (Makefile.am): Likewise.
7830         * modules/mbschr-tests (Makefile.am): Likewise.
7831         * modules/mbscspn-tests (Makefile.am): Likewise.
7832         * modules/mbsinit-tests (Makefile.am): Likewise.
7833         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7834         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7835         * modules/mbspbrk-tests (Makefile.am): Likewise.
7836         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7837         * modules/mbsrchr-tests (Makefile.am): Likewise.
7838         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7839         * modules/mbsspn-tests (Makefile.am): Likewise.
7840         * modules/mbsstr-tests (Makefile.am): Likewise.
7841         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7842         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7843         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7844         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7845         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7846         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7847         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7848         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7849         * modules/wcrtomb-tests (Makefile.am): Likewise.
7850         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7851         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7852         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
7853         assignments from TESTS_ENVIRONMENT.
7854         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
7855         augmentation.
7856         * modules/argp-version-etc-tests (Makefile.am): Likewise.
7857         * modules/atexit-tests (Makefile.am): Likewise.
7858         * modules/binary-io-tests (Makefile.am): Likewise.
7859         * modules/closein-tests (Makefile.am): Likewise.
7860         * modules/dprintf-posix-tests (Makefile.am): Likewise.
7861         * modules/exclude-tests (Makefile.am): Likewise.
7862         * modules/fflush-tests (Makefile.am): Likewise.
7863         * modules/fpending-tests (Makefile.am): Likewise.
7864         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7865         * modules/freadahead-tests (Makefile.am): Likewise.
7866         * modules/freadptr-tests (Makefile.am): Likewise.
7867         * modules/freadseek-tests (Makefile.am): Likewise.
7868         * modules/fseek-tests (Makefile.am): Likewise.
7869         * modules/fseeko-tests (Makefile.am): Likewise.
7870         * modules/ftell-tests (Makefile.am): Likewise.
7871         * modules/ftello-tests (Makefile.am): Likewise.
7872         * modules/idpriv-drop-tests (Makefile.am): Likewise.
7873         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
7874         * modules/lseek-tests (Makefile.am): Likewise.
7875         * modules/parse-duration-tests (Makefile.am): Likewise.
7876         * modules/perror-tests (Makefile.am): Likewise.
7877         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
7878         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
7879         * modules/pipe-tests (Makefile.am): Likewise.
7880         * modules/pread-tests (Makefile.am): Likewise.
7881         * modules/printf-posix-tests (Makefile.am): Likewise.
7882         * modules/select-tests (Makefile.am): Likewise.
7883         * modules/sigpipe-tests (Makefile.am): Likewise.
7884         * modules/tsearch-tests (Makefile.am): Likewise.
7885         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7886         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7887         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7888         * modules/uniwidth/width-tests (Makefile.am): Likewise.
7889         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
7890         * modules/version-etc-tests (Makefile.am): Likewise.
7891         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7892         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7893         * modules/xalloc-die-tests (Makefile.am): Likewise.
7894         * modules/xprintf-posix-tests (Makefile.am): Likewise.
7895         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7896         * modules/xstrtol-tests (Makefile.am): Likewise.
7897         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7898         * modules/yesno-tests (Makefile.am): Likewise.
7899         Suggested by Jim Meyering.
7900
7901 2010-01-24  Bruno Haible  <bruno@clisp.org>
7902
7903         More documentation.
7904         * doc/gnulib.texi (Writing modules): New chapter.
7905         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
7906         the new chapter.
7907
7908 2010-01-24  Jim Meyering  <meyering@redhat.com>
7909
7910         maint.mk: do not prepend "./" after filtering
7911         * top/maint.mk (_prepend_srcdir_prefix): New variable
7912         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
7913         "./" when $(srcdir) is ".".
7914
7915         define STREQ(a,b) consistently, removing useless parentheses
7916         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
7917         since the only risk is that "a" or "b" contains an unparenthesized
7918         comma, but if either did that, STREQ would have 3 or more arguments.
7919         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
7920         * lib/fts.c (STREQ): Remove unnecessary parentheses.
7921         * lib/hash-triple.c (STREQ): Likewise.
7922         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
7923         * lib/getugroups.c (STREQ): Likewise.
7924
7925 2010-01-23  Jim Meyering  <meyering@redhat.com>
7926
7927         maint.mk: fix syntax-check in a non-srcdir build directory
7928         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
7929         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
7930
7931 2010-01-22  Jim Meyering  <meyering@redhat.com>
7932
7933         userspec: add unit tests
7934         * tests/test-userspec.c: New file.
7935         * modules/userspec-tests: Likewise.
7936
7937 2010-01-21  Jim Meyering  <meyering@redhat.com>
7938
7939         maint.mk: handle source file names containing "." robustly
7940         * top/maint.mk (_dot_escaped_srcdir): Define.
7941         (VC_LIST): Use it in LHS of sed substitution.
7942
7943 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
7944
7945         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
7946         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
7947         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
7948         from a non-srcdir build.
7949
7950 2010-01-20  Eric Blake  <ebb9@byu.net>
7951
7952         warn-on-use: use instead of link-warning
7953         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
7954         * modules/unistd (Depends-on, Makefile.am): Likewise.
7955         * modules/arpa_inet (Depends-on): Replace link-warning with
7956         warn-on-use.
7957         (Makefile.am): Update rules accordingly.
7958         * modules/ctype (Depends-on, Makefile.am): Likewise.
7959         * modules/dirent (Depends-on, Makefile.am): Likewise.
7960         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
7961         * modules/inttypes (Depends-on, Makefile.am): Likewise.
7962         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7963         * modules/locale (Depends-on, Makefile.am): Likewise.
7964         * modules/math (Depends-on, Makefile.am): Likewise.
7965         * modules/search (Depends-on, Makefile.am): Likewise.
7966         * modules/signal (Depends-on, Makefile.am): Likewise.
7967         * modules/spawn (Depends-on, Makefile.am): Likewise.
7968         * modules/stdlib (Depends-on, Makefile.am): Likewise.
7969         * modules/string (Depends-on, Makefile.am): Likewise.
7970         * modules/strings (Depends-on, Makefile.am): Likewise.
7971         * modules/sys_file (Depends-on, Makefile.am): Likewise.
7972         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
7973         * modules/sys_select (Depends-on, Makefile.am): Likewise.
7974         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
7975         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
7976         * modules/sys_times (Depends-on, Makefile.am): Likewise.
7977         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7978         * modules/wchar (Depends-on, Makefile.am): Likewise.
7979         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
7980         should be poisoned.
7981         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
7982         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
7983         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
7984         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7985         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7986         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7987         * m4/math_h.m4 (gl_MATH_H): Likewise.
7988         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7989         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7990         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7991         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7992         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7993         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
7994         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7995         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
7996         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7997         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7998         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7999         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8000         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8001         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8002         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8003         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8004         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
8005         GL_LINK_WARNING.
8006         * lib/ctype.in.h: Likewise.
8007         * lib/dirent.in.h: Likewise.
8008         * lib/fcntl.in.h: Likewise.
8009         * lib/inttypes.in.h: Likewise.
8010         * lib/langinfo.in.h: Likewise.
8011         * lib/locale.in.h: Likewise.
8012         * lib/math.in.h: Likewise.
8013         * lib/search.in.h: Likewise.
8014         * lib/signal.in.h: Likewise.
8015         * lib/spawn.in.h: Likewise.
8016         * lib/stdio.in.h: Likewise.
8017         * lib/stdlib.in.h: Likewise.
8018         * lib/string.in.h: Likewise.
8019         * lib/strings.in.h: Likewise.
8020         * lib/sys_file.in.h: Likewise.
8021         * lib/sys_ioctl.in.h: Likewise.
8022         * lib/sys_select.in.h: Likewise.
8023         * lib/sys_socket.in.h: Likewise.
8024         * lib/sys_stat.in.h: Likewise.
8025         * lib/sys_times.in.h: Likewise.
8026         * lib/sys_utsname.in.h: Likewise.
8027         * lib/unistd.in.h: Likewise.
8028         * lib/wchar.in.h: Likewise.
8029
8030 2010-01-20  Bruno Haible  <bruno@clisp.org>
8031
8032         Avoid duplicate -lm.
8033         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
8034         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
8035         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
8036         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
8037         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
8038         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
8039         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
8040         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
8041         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
8042         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
8043         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
8044         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8045         Reported by Paolo Bonzini.
8046
8047 2010-01-19  Bruno Haible  <bruno@clisp.org>
8048
8049         langinfo, nl_langinfo: Relicense under LGPLv2+.
8050         * modules/langinfo (License): Change to LGPLv2+.
8051         * modules/nl_langinfo (License): Likewise.
8052         Patch by David Lutterkort <lutter@redhat.com>.
8053
8054 2010-01-19  Bruno Haible  <bruno@clisp.org>
8055
8056         Avoid compilation error with cc on OSF/1 5.1.
8057         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
8058         statement, not before.
8059         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8060
8061 2010-01-18  Bruno Haible  <bruno@clisp.org>
8062
8063         Avoid a link error due to the __printf__ symbol.
8064         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
8065         and 2.6.x.
8066         (__format__, __printf__): Remove definitions.
8067         * lib/argp-fmtstream.h: Likewise.
8068         * lib/argp.h: Likewise.
8069         * lib/error.h: Likewise.
8070         * lib/vasnprintf.h: Likewise.
8071         * lib/xprintf.h: Likewise.
8072         * lib/xvasprintf.h: Likewise.
8073         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8074
8075 2010-01-18  Bruno Haible  <bruno@clisp.org>
8076
8077         Tests for module 'tanl'.
8078         * modules/tanl-tests: New file.
8079         * tests/test-tanl.c: New file.
8080
8081         Tests for module 'sqrtl'.
8082         * modules/sqrtl-tests: New file.
8083         * tests/test-sqrtl.c: New file.
8084
8085         Tests for module 'sinl'.
8086         * modules/sinl-tests: New file.
8087         * tests/test-sinl.c: New file.
8088
8089         Tests for module 'logl'.
8090         * modules/logl-tests: New file.
8091         * tests/test-logl.c: New file.
8092
8093         Tests for module 'expl'.
8094         * modules/expl-tests: New file.
8095         * tests/test-expl.c: New file.
8096
8097         Tests for module 'cosl'.
8098         * modules/cosl-tests: New file.
8099         * tests/test-cosl.c: New file.
8100
8101         Tests for module 'atanl'.
8102         * modules/atanl-tests: New file.
8103         * tests/test-atanl.c: New file.
8104
8105         Tests for module 'asinl'.
8106         * modules/asinl-tests: New file.
8107         * tests/test-asinl.c: New file.
8108
8109         Tests for module 'acosl'.
8110         * modules/acosl-tests: New file.
8111         * tests/test-acosl.c: New file.
8112
8113         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8114         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
8115         tanl): Use the standard gnulib idiom.
8116         * lib/cosl.c: Don't include trigl.c and sincosl.c.
8117         * lib/sinl.c: Likewise.
8118         * lib/tanl.c: Don't include trigl.c.
8119         (kernel_tanl): Make static.
8120         * lib/sincosl.c: Include trigl.h first.
8121         * lib/trigl.c: Likewise.
8122         * m4/acosl.m4: New file.
8123         * m4/asinl.m4: New file.
8124         * m4/atanl.m4: New file.
8125         * m4/cosl.m4: New file.
8126         * m4/expl.m4: New file.
8127         * m4/logl.m4: New file.
8128         * m4/sinl.m4: New file.
8129         * m4/sqrtl.m4: New file.
8130         * m4/tanl.m4: New file.
8131         * m4/mathl.m4: Remove file.
8132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
8133         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8134         Don't initialize GNULIB_MATHL.
8135         * modules/acosl: New file.
8136         * modules/asinl: New file.
8137         * modules/atanl: New file.
8138         * modules/cosl: New file.
8139         * modules/expl: New file.
8140         * modules/logl: New file.
8141         * modules/sinl: New file.
8142         * modules/sqrtl: New file.
8143         * modules/tanl: New file.
8144         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
8145         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
8146         substitute GNULIB_MATHL.
8147         * modules/mathl: Rewritten.
8148         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
8149         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
8150         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
8151         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
8152         * doc/posix-functions/expl.texi: Mention the 'expl' module.
8153         * doc/posix-functions/logl.texi: Mention the 'logl' module.
8154         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
8155         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
8156         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
8157
8158 2010-01-18  Bruno Haible  <bruno@clisp.org>
8159
8160         sqrt: Make gl_FUNC_SQRT requirable.
8161         * m4/sqrt.m4: New file.
8162         * modules/sqrt (Files): Add it.
8163         (configure.ac): Invoke gl_FUNC_SQRT.
8164
8165 2010-01-18  Bruno Haible  <bruno@clisp.org>
8166
8167         New modules for common <math.h> functions.
8168         * m4/mathfunc.m4: New file.
8169         * modules/acos: New file.
8170         * modules/asin: New file.
8171         * modules/atan: New file.
8172         * modules/atan2: New file.
8173         * modules/cbrt: New file.
8174         * modules/copysign: New file.
8175         * modules/cos: New file.
8176         * modules/cosh: New file.
8177         * modules/erf: New file.
8178         * modules/erfc: New file.
8179         * modules/exp: New file.
8180         * modules/fabs: New file.
8181         * modules/fmod: New file.
8182         * modules/hypot: New file.
8183         * modules/j0: New file.
8184         * modules/j1: New file.
8185         * modules/jn: New file.
8186         * modules/ldexp: New file.
8187         * modules/lgamma: New file.
8188         * modules/log: New file.
8189         * modules/log10: New file.
8190         * modules/log1p: New file.
8191         * modules/logb: New file.
8192         * modules/modf: New file.
8193         * modules/nextafter: New file.
8194         * modules/pow: New file.
8195         * modules/remainder: New file.
8196         * modules/rint: New file.
8197         * modules/sin: New file.
8198         * modules/sinh: New file.
8199         * modules/sqrt: New file.
8200         * modules/tan: New file.
8201         * modules/tanh: New file.
8202         * modules/y0: New file.
8203         * modules/y1: New file.
8204         * modules/yn: New file.
8205         * doc/posix-functions/acos.texi: Mention the 'acos' module.
8206         * doc/posix-functions/asin.texi: Mention the 'asin' module.
8207         * doc/posix-functions/atan.texi: Mention the 'atan' module.
8208         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
8209         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
8210         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
8211         * doc/posix-functions/cos.texi: Mention the 'cos' module.
8212         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
8213         * doc/posix-functions/erf.texi: Mention the 'erf' module.
8214         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
8215         * doc/posix-functions/exp.texi: Mention the 'exp' module.
8216         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
8217         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
8218         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
8219         * doc/posix-functions/j0.texi: Mention the 'j0' module.
8220         * doc/posix-functions/j1.texi: Mention the 'j1' module.
8221         * doc/posix-functions/jn.texi: Mention the 'jn' module.
8222         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
8223         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
8224         * doc/posix-functions/log.texi: Mention the 'log' module.
8225         * doc/posix-functions/log10.texi: Mention the 'log10' module.
8226         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
8227         * doc/posix-functions/logb.texi: Mention the 'logb' module.
8228         * doc/posix-functions/modf.texi: Mention the 'modf' module.
8229         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
8230         * doc/posix-functions/pow.texi: Mention the 'pow' module.
8231         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
8232         * doc/posix-functions/rint.texi: Mention the 'rint' module.
8233         * doc/posix-functions/sin.texi: Mention the 'sin' module.
8234         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
8235         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
8236         * doc/posix-functions/tan.texi: Mention the 'tan' module.
8237         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
8238         * doc/posix-functions/y0.texi: Mention the 'y0' module.
8239         * doc/posix-functions/y1.texi: Mention the 'y1' module.
8240         * doc/posix-functions/yn.texi: Mention the 'yn' module.
8241
8242 2010-01-18  Jim Meyering  <meyering@redhat.com>
8243
8244         ignore-value: relax license to LGPLv2+
8245         * modules/ignore-value (License): Relax to LGPLv2+.
8246
8247         getdate: don't leak when TZ contains two or more '"'s
8248         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
8249         double quote in TZ after the first one.
8250
8251         readtokens: do not leak internal token_lengths buffer
8252         * lib/readtokens.c (readtokens): Free the local, lengths,
8253         when the supplied "token_lengths" parameter is NULL.
8254
8255 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8256
8257         Fix a couple of missing LIBTHREAD link failures on AIX.
8258         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
8259         $(LIBTHREAD).
8260         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
8261
8262         Link test-poll against INET_PTON_LIB.
8263         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
8264         for inet_pton on Solaris 10.
8265
8266 2010-01-17  Bruno Haible  <bruno@clisp.org>
8267
8268         unistdio/*-sprintf: Fix typo in module description.
8269         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
8270         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
8271         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
8272         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
8273         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
8274         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
8275         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
8276         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8277
8278 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8279
8280         gnulib-tool: fix filelist for AIX, HP-UX ksh.
8281         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
8282         variables in shell case patterns, for AIX and HP-UX ksh.
8283
8284         Split large sed scripts, for HP-UX sed.
8285         * modules/stdio: Split sed scripts around 50 sed commands,
8286         to avoid HP-UX limit of 99 commands, in the near future.
8287         * modules/string: Likewise.
8288         * modules/unistd: Likewise.
8289
8290         gnulib-tool: avoid writing in the current directory.
8291         * gnulib-tool (func_emit_lib_Makefile_am)
8292         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
8293         not in the current directory, so concurrent gnulib-tool
8294         instances do not interfere.
8295
8296 2010-01-16  Jim Meyering  <meyering@redhat.com>
8297
8298         doc: update users.txt
8299         * users.txt: Add grep.
8300         (diffutils, gzip): Update URLs.
8301
8302 2010-01-12  Bruno Haible  <bruno@clisp.org>
8303
8304         posix_spawn: Avoid test failure on Cygwin.
8305         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
8306         characters.
8307         Reported by Simon Josefsson.
8308
8309 2010-01-12  Bruno Haible  <bruno@clisp.org>
8310
8311         * tests/test-cond.c (main): When skipping the test, show the reason.
8312
8313 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8314
8315         * lib/striconv.c (str_cd_iconv): Avoid if before free.
8316
8317 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8318
8319         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
8320         VC_LIST_ALWAYS_EXCLUDE_REGEX.
8321
8322 2010-01-12  Eric Blake  <ebb9@byu.net>
8323
8324         build: guarantee AS_VAR_IF
8325         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
8326         (gl_AS_VAR_IF): Move...
8327         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
8328         Reported by Simon Josefsson.
8329
8330 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8331
8332         * lib/stdio.in.h: Fix typo.
8333
8334 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8335
8336         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
8337         libgpg-error.
8338
8339 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8340
8341         * tests/test-xalloc-die.sh: Use $EXEEXT.
8342
8343 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8344             Bruno Haible  <bruno@clisp.org>
8345
8346         getlogin, getlogin_r: Avoid test failure.
8347         * tests/test-getlogin.c: Include <stdio.h>.
8348         (main): Skip the test when the function fails because stdin is not a
8349         tty.
8350         * tests/test-getlogin_r.c: Include <stdio.h>.
8351         (main): Skip the test when the function fails because stdin is not a
8352         tty.
8353
8354 2010-01-11  Eric Blake  <ebb9@byu.net>
8355
8356         tests: avoid more large file warnings
8357         * tests/test-fflush.c: Avoid warning about ftell use.
8358         * tests/test-fseek.c: Avoid warning about fseek use.
8359
8360 2010-01-10  Bruno Haible  <bruno@clisp.org>
8361
8362         nproc: Work better on Linux when /proc and /sys are not mounted.
8363         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
8364         as lower bound when, on glibc/Linux systems,
8365         sysconf (_SC_NPROCESSORS_CONF) returns 1.
8366         Suggested by Pádraig Brady <P@draigbrady.com>.
8367         Reported by Dmitry V. Levin <ldv@altlinux.org>.
8368
8369         nproc: Refactor.
8370         * lib/nproc.c (num_processors_via_affinity_mask): New function,
8371         extracted from num_processors.
8372         (num_processors): Call it.
8373
8374 2010-01-11  Jim Meyering  <meyering@redhat.com>
8375
8376         utimecmp: avoid new warning from upcoming gcc-4.5.0
8377         * lib/utimecmp.c (BILLION): Define using #define rather than an
8378         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
8379
8380 2010-01-11  Eric Blake  <ebb9@byu.net>
8381
8382         math: add portability warnings for classification macros
8383         * modules/math (Depends-on): Add warn-on-use.
8384         (Makefile.am): Provide new substitutions.
8385         * m4/math_h.m4 (gl_MATH_H): Require inline.
8386         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
8387         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
8388         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
8389         implement warnings.
8390
8391         unistd: warn on use of environ without module
8392         * modules/unistd (Depends-on): Add warn-on-use.
8393         (Makefile.am): Provide new substitutions.
8394         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
8395         * lib/unistd.in.h (environ): Wrap with a warning helper function.
8396
8397         stdio: warn on suspicious uses
8398         * modules/stdio (Depends-on): Add warn-on-use.
8399         (Makefile.am): Provide new substitutions.
8400         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
8401         fseeko.
8402         * lib/stdio.in.h (gets): Always warn on use.
8403         (fseek, ftell): Adjust when warnings are issued, and honor
8404         _GL_NO_LARGE_FILES as a way to silence the warning.
8405         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
8406         any warning about large file offsets.
8407         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
8408         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
8409         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
8410         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
8411         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
8412         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
8413         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
8414         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
8415
8416         warn-on-use: new module
8417         * modules/warn-on-use: New file.
8418         * build-aux/warn-on-use.h: Likewise.
8419         * m4/warn-on-use.m4: Likewise.
8420         * MODULES.html.sh (Support for building): Mention it.
8421
8422 2010-01-10  Bruno Haible  <bruno@clisp.org>
8423
8424         Tests for module 'unistr/u32-strdup'.
8425         * modules/unistr/u32-strdup-tests: New file.
8426         * tests/unistr/test-u32-strdup.c: New file.
8427
8428         Tests for module 'unistr/u16-strdup'.
8429         * modules/unistr/u16-strdup-tests: New file.
8430         * tests/unistr/test-u16-strdup.c: New file.
8431
8432         Tests for module 'unistr/u8-strdup'.
8433         * modules/unistr/u8-strdup-tests: New file.
8434         * tests/unistr/test-u8-strdup.c: New file.
8435         * tests/unistr/test-strdup.h: New file.
8436
8437         Tests for module 'unistr/u32-strncmp'.
8438         * modules/unistr/u32-strncmp-tests: New file.
8439         * tests/unistr/test-u32-strncmp.c: New file.
8440
8441         Tests for module 'unistr/u16-strncmp'.
8442         * modules/unistr/u16-strncmp-tests: New file.
8443         * tests/unistr/test-u16-strncmp.c: New file.
8444
8445         Tests for module 'unistr/u8-strncmp'.
8446         * modules/unistr/u8-strncmp-tests: New file.
8447         * tests/unistr/test-u8-strncmp.c: New file.
8448         * tests/unistr/test-strncmp.h: New file.
8449
8450         Tests for module 'unistr/u32-strcoll'.
8451         * modules/unistr/u32-strcoll-tests: New file.
8452         * tests/unistr/test-u32-strcoll.c: New file.
8453
8454         Tests for module 'unistr/u16-strcoll'.
8455         * modules/unistr/u16-strcoll-tests: New file.
8456         * tests/unistr/test-u16-strcoll.c: New file.
8457
8458         Tests for module 'unistr/u8-strcoll'.
8459         * modules/unistr/u8-strcoll-tests: New file.
8460         * tests/unistr/test-u8-strcoll.c: New file.
8461
8462         Tests for module 'unistr/u32-strcmp'.
8463         * modules/unistr/u32-strcmp-tests: New file.
8464         * tests/unistr/test-u32-strcmp.c: New file.
8465         * tests/unistr/test-u32-strcmp.h: New file.
8466
8467         Tests for module 'unistr/u16-strcmp'.
8468         * modules/unistr/u16-strcmp-tests: New file.
8469         * tests/unistr/test-u16-strcmp.c: New file.
8470         * tests/unistr/test-u16-strcmp.h: New file.
8471
8472         Tests for module 'unistr/u8-strcmp'.
8473         * modules/unistr/u8-strcmp-tests: New file.
8474         * tests/unistr/test-u8-strcmp.c: New file.
8475         * tests/unistr/test-u8-strcmp.h: New file.
8476         * tests/unistr/test-strcmp.h: New file.
8477
8478         Tests for module 'unistr/u32-strncat'.
8479         * modules/unistr/u32-strncat-tests: New file.
8480         * tests/unistr/test-u32-strncat.c: New file.
8481
8482         Tests for module 'unistr/u16-strncat'.
8483         * modules/unistr/u16-strncat-tests: New file.
8484         * tests/unistr/test-u16-strncat.c: New file.
8485
8486         Tests for module 'unistr/u8-strncat'.
8487         * modules/unistr/u8-strncat-tests: New file.
8488         * tests/unistr/test-u8-strncat.c: New file.
8489         * tests/unistr/test-strncat.h: New file.
8490
8491         Tests for module 'unistr/u32-strcat'.
8492         * modules/unistr/u32-strcat-tests: New file.
8493         * tests/unistr/test-u32-strcat.c: New file.
8494
8495         Tests for module 'unistr/u16-strcat'.
8496         * modules/unistr/u16-strcat-tests: New file.
8497         * tests/unistr/test-u16-strcat.c: New file.
8498
8499         Tests for module 'unistr/u8-strcat'.
8500         * modules/unistr/u8-strcat-tests: New file.
8501         * tests/unistr/test-u8-strcat.c: New file.
8502         * tests/unistr/test-strcat.h: New file.
8503
8504         Tests for module 'unistr/u32-stpncpy'.
8505         * modules/unistr/u32-stpncpy-tests: New file.
8506         * tests/unistr/test-u32-stpncpy.c: New file.
8507
8508         Tests for module 'unistr/u16-stpncpy'.
8509         * modules/unistr/u16-stpncpy-tests: New file.
8510         * tests/unistr/test-u16-stpncpy.c: New file.
8511
8512         Tests for module 'unistr/u8-stpncpy'.
8513         * modules/unistr/u8-stpncpy-tests: New file.
8514         * tests/unistr/test-u8-stpncpy.c: New file.
8515         * tests/unistr/test-stpncpy.h: New file.
8516
8517         Tests for module 'unistr/u32-strncpy'.
8518         * modules/unistr/u32-strncpy-tests: New file.
8519         * tests/unistr/test-u32-strncpy.c: New file.
8520
8521         Tests for module 'unistr/u16-strncpy'.
8522         * modules/unistr/u16-strncpy-tests: New file.
8523         * tests/unistr/test-u16-strncpy.c: New file.
8524
8525         Tests for module 'unistr/u8-strncpy'.
8526         * modules/unistr/u8-strncpy-tests: New file.
8527         * tests/unistr/test-u8-strncpy.c: New file.
8528         * tests/unistr/test-strncpy.h: New file.
8529
8530         Tests for module 'unistr/u32-stpcpy'.
8531         * modules/unistr/u32-stpcpy-tests: New file.
8532         * tests/unistr/test-u32-stpcpy.c: New file.
8533
8534         Tests for module 'unistr/u16-stpcpy'.
8535         * modules/unistr/u16-stpcpy-tests: New file.
8536         * tests/unistr/test-u16-stpcpy.c: New file.
8537
8538         Tests for module 'unistr/u8-stpcpy'.
8539         * modules/unistr/u8-stpcpy-tests: New file.
8540         * tests/unistr/test-u8-stpcpy.c: New file.
8541         * tests/unistr/test-stpcpy.h: New file.
8542
8543         Tests for module 'unistr/u32-strcpy'.
8544         * modules/unistr/u32-strcpy-tests: New file.
8545         * tests/unistr/test-u32-strcpy.c: New file.
8546
8547         Tests for module 'unistr/u16-strcpy'.
8548         * modules/unistr/u16-strcpy-tests: New file.
8549         * tests/unistr/test-u16-strcpy.c: New file.
8550
8551         Tests for module 'unistr/u8-strcpy'.
8552         * modules/unistr/u8-strcpy-tests: New file.
8553         * tests/unistr/test-u8-strcpy.c: New file.
8554         * tests/unistr/test-strcpy.h: New file.
8555
8556         Tests for module 'unistr/u32-strnlen'.
8557         * modules/unistr/u32-strnlen-tests: New file.
8558         * tests/unistr/test-u32-strnlen.c: New file.
8559
8560         Tests for module 'unistr/u16-strnlen'.
8561         * modules/unistr/u16-strnlen-tests: New file.
8562         * tests/unistr/test-u16-strnlen.c: New file.
8563
8564         Tests for module 'unistr/u8-strnlen'.
8565         * modules/unistr/u8-strnlen-tests: New file.
8566         * tests/unistr/test-u8-strnlen.c: New file.
8567         * tests/unistr/test-strnlen.h: New file.
8568
8569         Tests for module 'unistr/u32-strlen'.
8570         * modules/unistr/u32-strlen-tests: New file.
8571         * tests/unistr/test-u32-strlen.c: New file.
8572
8573         Tests for module 'unistr/u16-strlen'.
8574         * modules/unistr/u16-strlen-tests: New file.
8575         * tests/unistr/test-u16-strlen.c: New file.
8576
8577         Tests for module 'unistr/u8-strlen'.
8578         * modules/unistr/u8-strlen-tests: New file.
8579         * tests/unistr/test-u8-strlen.c: New file.
8580
8581         Tests for module 'unistr/u32-prev'.
8582         * modules/unistr/u32-prev-tests: New file.
8583         * tests/unistr/test-u32-prev.c: New file.
8584
8585         Tests for module 'unistr/u16-prev'.
8586         * modules/unistr/u16-prev-tests: New file.
8587         * tests/unistr/test-u16-prev.c: New file.
8588
8589         Tests for module 'unistr/u8-prev'.
8590         * modules/unistr/u8-prev-tests: New file.
8591         * tests/unistr/test-u8-prev.c: New file.
8592
8593         Tests for module 'unistr/u32-next'.
8594         * modules/unistr/u32-next-tests: New file.
8595         * tests/unistr/test-u32-next.c: New file.
8596
8597         Tests for module 'unistr/u16-next'.
8598         * modules/unistr/u16-next-tests: New file.
8599         * tests/unistr/test-u16-next.c: New file.
8600
8601         Tests for module 'unistr/u8-next'.
8602         * modules/unistr/u8-next-tests: New file.
8603         * tests/unistr/test-u8-next.c: New file.
8604
8605         Tests for module 'unistr/u32-strmbtouc'.
8606         * modules/unistr/u32-strmbtouc-tests: New file.
8607         * tests/unistr/test-u32-strmbtouc.c: New file.
8608
8609         Tests for module 'unistr/u16-strmbtouc'.
8610         * modules/unistr/u16-strmbtouc-tests: New file.
8611         * tests/unistr/test-u16-strmbtouc.c: New file.
8612
8613         Tests for module 'unistr/u8-strmbtouc'.
8614         * modules/unistr/u8-strmbtouc-tests: New file.
8615         * tests/unistr/test-u8-strmbtouc.c: New file.
8616
8617         Tests for module 'unistr/u32-strmblen'.
8618         * modules/unistr/u32-strmblen-tests: New file.
8619         * tests/unistr/test-u32-strmblen.c: New file.
8620
8621         Tests for module 'unistr/u16-strmblen'.
8622         * modules/unistr/u16-strmblen-tests: New file.
8623         * tests/unistr/test-u16-strmblen.c: New file.
8624
8625         Tests for module 'unistr/u8-strmblen'.
8626         * modules/unistr/u8-strmblen-tests: New file.
8627         * tests/unistr/test-u8-strmblen.c: New file.
8628
8629         Tests for module 'unistr/u32-cpy-alloc'.
8630         * modules/unistr/u32-cpy-alloc-tests: New file.
8631         * tests/unistr/test-u32-cpy-alloc.c: New file.
8632
8633         Tests for module 'unistr/u16-cpy-alloc'.
8634         * modules/unistr/u16-cpy-alloc-tests: New file.
8635         * tests/unistr/test-u16-cpy-alloc.c: New file.
8636
8637         Tests for module 'unistr/u8-cpy-alloc'.
8638         * modules/unistr/u8-cpy-alloc-tests: New file.
8639         * tests/unistr/test-u8-cpy-alloc.c: New file.
8640         * tests/unistr/test-cpy-alloc.h: New file.
8641
8642         Tests for module 'unistr/u32-mbsnlen'.
8643         * modules/unistr/u32-mbsnlen-tests: New file.
8644         * tests/unistr/test-u32-mbsnlen.c: New file.
8645
8646         Tests for module 'unistr/u16-mbsnlen'.
8647         * modules/unistr/u16-mbsnlen-tests: New file.
8648         * tests/unistr/test-u16-mbsnlen.c: New file.
8649
8650         Tests for module 'unistr/u8-mbsnlen'.
8651         * modules/unistr/u8-mbsnlen-tests: New file.
8652         * tests/unistr/test-u8-mbsnlen.c: New file.
8653
8654         Tests for module 'unistr/u32-chr'.
8655         * modules/unistr/u32-chr-tests: New file.
8656         * tests/unistr/test-u32-chr.c: New file.
8657
8658         Tests for module 'unistr/u16-chr'.
8659         * modules/unistr/u16-chr-tests: New file.
8660         * tests/unistr/test-u16-chr.c: New file.
8661
8662         Tests for module 'unistr/u8-chr'.
8663         * modules/unistr/u8-chr-tests: New file.
8664         * tests/unistr/test-u8-chr.c: New file.
8665         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8666
8667         Tests for module 'unistr/u32-cmp2'.
8668         * modules/unistr/u32-cmp2-tests: New file.
8669         * tests/unistr/test-u32-cmp2.c: New file.
8670
8671         Tests for module 'unistr/u16-cmp2'.
8672         * modules/unistr/u16-cmp2-tests: New file.
8673         * tests/unistr/test-u16-cmp2.c: New file.
8674
8675         Tests for module 'unistr/u8-cmp2'.
8676         * modules/unistr/u8-cmp2-tests: New file.
8677         * tests/unistr/test-u8-cmp2.c: New file.
8678         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8679
8680         Tests for module 'unistr/u32-cmp'.
8681         * modules/unistr/u32-cmp-tests: New file.
8682         * tests/unistr/test-u32-cmp.c: New file.
8683
8684         Tests for module 'unistr/u16-cmp'.
8685         * modules/unistr/u16-cmp-tests: New file.
8686         * tests/unistr/test-u16-cmp.c: New file.
8687
8688         Tests for module 'unistr/u8-cmp'.
8689         * modules/unistr/u8-cmp-tests: New file.
8690         * tests/unistr/test-u8-cmp.c: New file.
8691         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8692
8693         Tests for module 'unistr/u32-set'.
8694         * modules/unistr/u32-set-tests: New file.
8695         * tests/unistr/test-u32-set.c: New file.
8696
8697         Tests for module 'unistr/u16-set'.
8698         * modules/unistr/u16-set-tests: New file.
8699         * tests/unistr/test-u16-set.c: New file.
8700
8701         Tests for module 'unistr/u8-set'.
8702         * modules/unistr/u8-set-tests: New file.
8703         * tests/unistr/test-u8-set.c: New file.
8704         * tests/unistr/test-set.h: New file.
8705
8706         Tests for module 'unistr/u32-move'.
8707         * modules/unistr/u32-move-tests: New file.
8708         * tests/unistr/test-u32-move.c: New file.
8709
8710         Tests for module 'unistr/u16-move'.
8711         * modules/unistr/u16-move-tests: New file.
8712         * tests/unistr/test-u16-move.c: New file.
8713
8714         Tests for module 'unistr/u8-move'.
8715         * modules/unistr/u8-move-tests: New file.
8716         * tests/unistr/test-u8-move.c: New file.
8717         * tests/unistr/test-move.h: New file.
8718
8719         Tests for module 'unistr/u32-cpy'.
8720         * modules/unistr/u32-cpy-tests: New file.
8721         * tests/unistr/test-u32-cpy.c: New file.
8722
8723         Tests for module 'unistr/u16-cpy'.
8724         * modules/unistr/u16-cpy-tests: New file.
8725         * tests/unistr/test-u16-cpy.c: New file.
8726
8727         Tests for module 'unistr/u8-cpy'.
8728         * modules/unistr/u8-cpy-tests: New file.
8729         * tests/unistr/test-u8-cpy.c: New file.
8730         * tests/unistr/test-cpy.h: New file.
8731
8732 2010-01-09  Bruno Haible  <bruno@clisp.org>
8733
8734         Tests for module 'unistr/u32-uctomb'.
8735         * modules/unistr/u32-uctomb-tests: New file.
8736         * tests/unistr/test-u32-uctomb.c: New file.
8737
8738         Tests for module 'unistr/u16-uctomb'.
8739         * modules/unistr/u16-uctomb-tests: New file.
8740         * tests/unistr/test-u16-uctomb.c: New file.
8741
8742         Tests for module 'unistr/u8-uctomb'.
8743         * modules/unistr/u8-uctomb-tests: New file.
8744         * tests/unistr/test-u8-uctomb.c: New file.
8745
8746         Tests for module 'unistr/u32-mbtoucr'.
8747         * modules/unistr/u32-mbtoucr-tests: New file.
8748         * tests/unistr/test-u32-mbtoucr.c: New file.
8749
8750         Tests for module 'unistr/u16-mbtoucr'.
8751         * modules/unistr/u16-mbtoucr-tests: New file.
8752         * tests/unistr/test-u16-mbtoucr.c: New file.
8753
8754         Tests for module 'unistr/u8-mbtoucr'.
8755         * modules/unistr/u8-mbtoucr-tests: New file.
8756         * tests/unistr/test-u8-mbtoucr.c: New file.
8757
8758         Tests for module 'unistr/u32-mbtouc'.
8759         * modules/unistr/u32-mbtouc-tests: New file.
8760         * tests/unistr/test-u32-mbtouc.c: New file.
8761
8762         Tests for module 'unistr/u16-mbtouc'.
8763         * modules/unistr/u16-mbtouc-tests: New file.
8764         * tests/unistr/test-u16-mbtouc.c: New file.
8765
8766         Tests for module 'unistr/u8-mbtouc'.
8767         * modules/unistr/u8-mbtouc-tests: New file.
8768         * tests/unistr/test-u8-mbtouc.c: New file.
8769
8770         Tests for module 'unistr/u32-mbtouc-unsafe'.
8771         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8772         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8773         * tests/unistr/test-u32-mbtouc.h: New file.
8774
8775         Tests for module 'unistr/u16-mbtouc-unsafe'.
8776         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8777         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8778         * tests/unistr/test-u16-mbtouc.h: New file.
8779
8780         Tests for module 'unistr/u8-mbtouc-unsafe'.
8781         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8782         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8783         * tests/unistr/test-u8-mbtouc.h: New file.
8784
8785         Tests for module 'unistr/u32-mblen'.
8786         * modules/unistr/u32-mblen-tests: New file.
8787         * tests/unistr/test-u32-mblen.c: New file.
8788
8789         Tests for module 'unistr/u16-mblen'.
8790         * modules/unistr/u16-mblen-tests: New file.
8791         * tests/unistr/test-u16-mblen.c: New file.
8792
8793         Tests for module 'unistr/u8-mblen'.
8794         * modules/unistr/u8-mblen-tests: New file.
8795         * tests/unistr/test-u8-mblen.c: New file.
8796
8797         Tests for module 'unistr/u32-to-u16'.
8798         * modules/unistr/u32-to-u16-tests: New file.
8799         * tests/unistr/test-u32-to-u16.c: New file.
8800
8801         Tests for module 'unistr/u32-to-u8'.
8802         * modules/unistr/u32-to-u8-tests: New file.
8803         * tests/unistr/test-u32-to-u8.c: New file.
8804
8805         Tests for module 'unistr/u16-to-u32'.
8806         * modules/unistr/u16-to-u32-tests: New file.
8807         * tests/unistr/test-u16-to-u32.c: New file.
8808
8809         Tests for module 'unistr/u16-to-u8'.
8810         * modules/unistr/u16-to-u8-tests: New file.
8811         * tests/unistr/test-u16-to-u8.c: New file.
8812
8813         Tests for module 'unistr/u8-to-u32'.
8814         * modules/unistr/u8-to-u32-tests: New file.
8815         * tests/unistr/test-u8-to-u32.c: New file.
8816
8817         Tests for module 'unistr/u8-to-u16'.
8818         * modules/unistr/u8-to-u16-tests: New file.
8819         * tests/unistr/test-u8-to-u16.c: New file.
8820
8821         Tests for module 'unistr/u32-check'.
8822         * modules/unistr/u32-check-tests: New file.
8823         * tests/unistr/test-u32-check.c: New file.
8824
8825         Tests for module 'unistr/u16-check'.
8826         * modules/unistr/u16-check-tests: New file.
8827         * tests/unistr/test-u16-check.c: New file.
8828
8829         Tests for module 'unistr/u8-check'.
8830         * modules/unistr/u8-check-tests: New file.
8831         * tests/unistr/test-u8-check.c: New file.
8832
8833         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
8834         (category_equals): New function.
8835         (main): Add more tests.
8836         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
8837
8838         * tests/unictype/test-bidi_byname.c (main): Add more tests.
8839
8840 2010-01-10  Bruno Haible  <bruno@clisp.org>
8841
8842         unistr/u*-strcoll: Try harder to distinguish different strings.
8843         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
8844         compare s1 and s2 to see if they are different.
8845
8846 2010-01-10  Bruno Haible  <bruno@clisp.org>
8847
8848         unistr/u*-stpncpy: Fix the return value.
8849         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
8850         description of the return value consistent with stpncpy in glibc.
8851         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
8852         written non-NUL unit.
8853
8854 2010-01-10  Bruno Haible  <bruno@clisp.org>
8855
8856         unistr/u*-next: Add missing dependencies.
8857         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
8858         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
8859         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
8860
8861 2010-01-10  Bruno Haible  <bruno@clisp.org>
8862
8863         unistr/u8-mbsnlen: Fix return value for incomplete character.
8864         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
8865         u8_mblen.
8866         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
8867         Remove unistr/u8-mblen.
8868         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
8869         u16_mblen.
8870         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
8871         Remove unistr/u16-mblen.
8872
8873 2010-01-10  Bruno Haible  <bruno@clisp.org>
8874
8875         wchar: Fix compilation error when <wchar.h> is used from coreutils.
8876         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
8877         Reported by Brian Gough <bjg@gnu.org> and
8878         Chris Clayton <chris2553@googlemail.com> via
8879         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
8880
8881 2010-01-09  Bruno Haible  <bruno@clisp.org>
8882
8883         unistr/u16-to-u32: Reject invalid input.
8884         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
8885         u16_mbtouc.
8886         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
8887         Remove unistr/u16-mbtouc.
8888
8889         unistr/u16-to-u8: Reject invalid input.
8890         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
8891         u16_mbtouc.
8892         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
8893         Remove unistr/u16-mbtouc.
8894
8895         unistr/u8-to-u32: Reject invalid input.
8896         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
8897         u8_mbtouc.
8898         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
8899         Remove unistr/u8-mbtouc.
8900
8901         unistr/u8-to-u16: Reject invalid input.
8902         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
8903         u8_mbtouc.
8904         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
8905         Remove unistr/u8-mbtouc.
8906
8907 2010-01-09  Bruno Haible  <bruno@clisp.org>
8908
8909         Tests for module 'getlogin'.
8910         * modules/getlogin-tests: New file.
8911         * tests/test-getlogin.c: New file.
8912
8913         New module 'getlogin'.
8914         * lib/unistd.in.h (getlogin): New declaration.
8915         * lib/getlogin.c: New file.
8916         * m4/getlogin.m4: New file.
8917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
8918         HAVE_GETLOGIN.
8919         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
8920         HAVE_GETLOGIN.
8921         * modules/getlogin: New file.
8922         * doc/posix-functions/getlogin.texi: Mention the new module.
8923         Reported by John W. Eaton <jwe@gnu.org>.
8924
8925 2010-01-09  Bruno Haible  <bruno@clisp.org>
8926
8927         getlogin_r: Support for native Windows.
8928         * lib/getlogin_r.c: Include <windows.h>
8929         (getlogin_r): Implement for native Windows.
8930         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
8931         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
8932         via John W. Eaton <jwe@gnu.org>.
8933
8934 2010-01-09  Bruno Haible  <bruno@clisp.org>
8935
8936         getlogin_r: Small fixes.
8937         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
8938         succeeds.
8939         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
8940         before testing whether getlogin_r is declared. No need to set
8941         HAVE_DECL_GETLOGIN_R to 1.
8942         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
8943
8944 2010-01-09  Bruno Haible  <bruno@clisp.org>
8945
8946         * lib/unistd.in.h (getlogin_r): Add comment.
8947
8948 2010-01-09  Bruno Haible  <bruno@clisp.org>
8949
8950         Tests for module 'getlogin_r'.
8951         * modules/getlogin_r-tests: New file.
8952         * tests/test-getlogin_r.c: New file.
8953
8954 2010-01-09  Jim Meyering  <meyering@redhat.com>
8955
8956         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
8957         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
8958         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
8959
8960 2010-01-08  Simon Josefsson  <simon@josefsson.org>
8961
8962         * lib/dup2.c (rpl_dup2): Improve comment.
8963
8964 2010-01-08  Eric Blake  <ebb9@byu.net>
8965
8966         maint.mk: allow packages to add makefile @@ exceptions
8967         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
8968         (sc_makefile_check): Rename...
8969         (sc_makefile_at_at_check): ...to this, and use hook.
8970
8971         dup2: work around mingw bug
8972         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
8973         Reported by Simon Josefsson.
8974
8975 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
8976
8977         glob: Fix C++ compilation.
8978         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
8979         C++.
8980
8981 2010-01-07  Bruno Haible  <bruno@clisp.org>
8982
8983         Fix indentation of wctype.in.h, broken since 2007-01-06.
8984         * lib/wctype.in.h: Fix indentation of preprocessor directives.
8985
8986 2010-01-07  Bruno Haible  <bruno@clisp.org>
8987
8988         mbslen: Avoid collision with system function.
8989         * lib/string.in.h [MirBSD]: Include <wchar.h>.
8990         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
8991         * m4/mbslen.m4: New file.
8992         * modules/mbslen (Files): Add it.
8993         (configure.ac): Invoke gl_MBSLEN.
8994         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
8995         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
8996         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
8997         via Ian Beckwith <ianb@erislabs.net>.
8998
8999 2010-01-07  Bruno Haible  <bruno@clisp.org>
9000
9001         dirent: Document the last fix.
9002         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
9003
9004 2010-01-07  Bruno Haible  <bruno@clisp.org>
9005
9006         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
9007         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
9008         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
9009         va_list are defined.
9010         * doc/posix-headers/stdio.texi: Document the bug of missing types.
9011         Reported by Eric Blake.
9012
9013 2010-01-07  Bruno Haible  <bruno@clisp.org>
9014
9015         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
9016         * modules/xlist (Depends-on): Add 'list',
9017         * modules/xoset (Depends-on): Add 'oset'.
9018         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9019
9020 2010-01-07  Bruno Haible  <bruno@clisp.org>
9021
9022         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
9023         * doc/posix-functions/strncasecmp.texi: Likewise.
9024
9025 2010-01-07  Bruno Haible  <bruno@clisp.org>
9026
9027         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
9028
9029 2010-01-07  John W. Eaton  <jwe@octave.org>
9030
9031         wctype: allow C++ use
9032         * lib/wctype.in.h: Add extern "C" block for C++.
9033
9034 2010-01-06  Eric Blake  <ebb9@byu.net>
9035
9036         maint.mk: detect incorrect GFDL usage
9037         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
9038
9039 2010-01-06  Jim Meyering  <meyering@redhat.com>
9040         and Eric Blake  <ebb9@byu.net>
9041
9042         maint.mk: ignore multi-line copyright in NEWS
9043         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
9044
9045 2010-01-06  Eric Blake  <ebb9@byu.net>
9046
9047         select: add missing dependency
9048         * modules/select-tests (Depends-on): Move sockets dependency...
9049         * modules/select (Depends-on): ...here.
9050         Reported by Ian Beckwith.
9051
9052         doc: regenerate INSTALL
9053         * doc/INSTALL: Reflect recent autoconf update.
9054         * doc/INSTALL.ISO: Likewise.
9055         * doc/INSTALL.UTF-8: Likewise.
9056
9057         pread: fix compilation on glibc
9058         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
9059         Reported by Ralf Wildenhues.
9060
9061         dirent: fix test failure
9062         * lib/dirent.in.h (includes): Guarantee ino_t.
9063         Reported by Ralf Wildenhues.
9064
9065 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
9066
9067         linkat, renameat: avoid bad free
9068         * lib/at-func2.c (at_func2): Fix typo.
9069         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
9070
9071 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9072
9073         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
9074         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
9075         to avoid failure of symlink test later.
9076
9077 2010-01-06  Eric Blake  <ebb9@byu.net>
9078
9079         stdio, unistd: guarantee ssize_t
9080         * lib/unistd.in.h (includes): Ensure that types required by POSIX
9081         2008 are exposed when needed.
9082         * lib/stdio.in.h (includes): Likewise.
9083         Reported by Ralf Wildenhues.
9084
9085 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
9086
9087         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
9088         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
9089         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
9090
9091 2010-01-06  Jim Meyering  <meyering@redhat.com>
9092
9093         readtokens: this module *does* require xalloc.h
9094         It uses only functions that were omitted by the old syntax-check rule.
9095         * lib/readtokens.c: Include "xalloc.h" once again.
9096         * modules/readtokens (Depends-on): Add xalloc.
9097         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
9098
9099 2010-01-05  Eric Blake  <ebb9@byu.net>
9100
9101         maint: support 'make announcement' from a VPATH build
9102         * top/maint.mk (announcement): Look for correct NEWS file.
9103
9104 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
9105
9106         utimens (fdutimens): ignore a negative FD, per contract
9107         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
9108         when we have a valid file descriptor.  Otherwise, using a brand
9109         new glibc (with just-patched futimens that now fails with EBADF)
9110         would cause this function to fail with ENOSYS.
9111         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
9112         See also http://bugzilla.redhat.com/552320.
9113
9114 2010-01-05  Eric Blake  <ebb9@byu.net>
9115
9116         strcase: document what it provides
9117         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
9118         gnulib module.
9119         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
9120         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
9121
9122 2010-01-05  Jim Meyering  <meyering@redhat.com>
9123
9124         maint: remove useless inclusions of "xalloc.h"
9125         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
9126         * lib/readtokens.c: Likewise.
9127         * lib/same.c: Likewise.
9128         * modules/getloadavg (Depends-on): Remove xalloc.
9129         * modules/readtokens: Likewise.
9130         * modules/same: Likewise.
9131
9132         maint.mk: include 4 more function names in alloca.h-checking regexp
9133         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
9134         regexp.  Before, we would give a false-positive (saying alloca.h
9135         is included unnecessarily) when the only uses involved omitted symbols.
9136
9137         xalloc.h: use consistent formatting
9138         * lib/xalloc.h: Move declarations to start in the first column.
9139
9140 2010-01-05  Eric Blake  <ebb9@byu.net>
9141
9142         mkdir: avoid xalloc
9143         * lib/mkdir.c (includes): Drop unused header.
9144         Reported by John W. Eaton.
9145
9146 2010-01-04  Jim Meyering  <meyering@redhat.com>
9147
9148         nl_langinfo: avoid configure-time syntax error
9149         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
9150         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
9151         the empty string.  Don't let that provoke a shell syntax error.
9152
9153         regcomp, regexec, fnmatch: avoid array bounds read error
9154         * lib/regcomp.c (build_equiv_class): From glibc:
9155         Use only the low 24 bits of a findidx return value as an index
9156         into the weights array.  Patch by Ulrich Drepper:
9157         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
9158         * lib/regexec.c (check_node_accept_bytes): Likewise.
9159         * lib/fnmatch_loop.c (FCT): Likewise.
9160
9161         regcomp: skip collseq lookup when there are no rules
9162         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
9163         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
9164
9165         regcomp: recognize ill-formed { } expressions
9166         * lib/regcomp.c (parse_dup_op): From glibc:
9167         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
9168
9169         regcomp: fix typo in comment
9170         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
9171         s/satisfy/satisfies/.
9172
9173         regcomp: sync from glibc: remove dead store
9174         * lib/regcomp.c (duplicate_node_closure): Remove useless
9175         search_duplicated_node call and dead store.
9176
9177         regcomp: sync from glibc; always use nl_langinfo
9178         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
9179         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
9180         * modules/regex (Depends-on): Add nl_langinfo.
9181
9182 2010-01-04  Eric Blake  <ebb9@byu.net>
9183
9184         fdopendir: fix configure test
9185         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
9186
9187 2010-01-01  Bruno Haible  <bruno@clisp.org>
9188
9189         wchar: Remove unused configure check.
9190         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
9191
9192 2010-01-01  Eric Blake  <ebb9@byu.net>
9193
9194         headers: make check of system header explicit
9195         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
9196         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
9197         ourselves.
9198         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9199         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9200         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9201         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
9202         internals.
9203         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
9204         missing.
9205         Suggested by Bruno Haible.
9206
9207 2010-01-01  Jim Meyering  <meyering@redhat.com>
9208
9209         ChangeLog: tweak to eliminate unnecessary copyright line
9210         * ChangeLog: Remove a copyright line that was mistakenly updated
9211         by today's update-copyright run.  Reported by Eric Blake.
9212
9213         test-update-copyright: don't let envvar setting cause test failure
9214         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9215
9216 2010-01-01  Bruno Haible  <bruno@clisp.org>
9217
9218         localename: Avoid gcc warning.
9219         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
9220         function if it is not used.
9221
9222 2010-01-01  Jim Meyering  <meyering@redhat.com>
9223
9224         update nearly all FSF copyright year lists to include 2010
9225         Use the same procedure as for 2009, outlined in
9226         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
9227
9228         version-etc: set COPYRIGHT_YEAR to 2010
9229         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
9230
9231 2009-12-31  Eric Blake  <ebb9@byu.net>
9232
9233         doc: correct availability of cygwin 1.5.x getopt
9234         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
9235         variables.
9236         * doc/posix-functions/opterr.texi (opterr): Likewise.
9237         * doc/posix-functions/optind.texi (optind): Likewise.
9238         * doc/posix-functions/optopt.texi (optopt): Likewise.
9239         * doc/posix-functions/tzname.texi (tzname): Likewise.
9240
9241         openat: update maintainer
9242         * modules/openat (Maintainer): Add myself.
9243
9244         utimens: avoid shadowing warning
9245         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
9246         buffers into one, to avoid shadowing, as well as avoiding a
9247         redundant stat.
9248         Reported by Jim Meyering.
9249
9250         test-dup2: avoid compiler warning
9251         * tests/test-dup2.c (is_inheritable): Only define if used.
9252
9253 2010-01-01  Bruno Haible  <bruno@clisp.org>
9254
9255         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
9256         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
9257         defined, use wctomb instead of wcrtomb.
9258
9259 2010-01-01  Bruno Haible  <bruno@clisp.org>
9260
9261         iconv: Reject native Solaris iconv.
9262         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
9263         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
9264
9265 2009-12-31  Bruno Haible  <bruno@clisp.org>
9266
9267         * tests/test-signal.c (main): Remove test of 'SIG'.
9268
9269 2009-12-31  Bruno Haible  <bruno@clisp.org>
9270
9271         spawn: Fix incomplete fix.
9272         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9273         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9274         warnings for GNULIB_POSIXCHECK again.
9275         Reported by Eric Blake.
9276
9277 2009-12-31  Bruno Haible  <bruno@clisp.org>
9278
9279         Avoid namespace pollution on glibc systems.
9280         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
9281         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
9282         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
9283         glibc systems.
9284
9285 2009-12-31  Bruno Haible  <bruno@clisp.org>
9286
9287         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
9288         (gl_REPLACE_WCHAR_H): Turn into a no-op.
9289         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
9290         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9291         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9292         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9293         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9294
9295 2009-12-31  Bruno Haible  <bruno@clisp.org>
9296
9297         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9298         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
9299         afterwards.
9300
9301 2009-12-31  Bruno Haible  <bruno@clisp.org>
9302
9303         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
9304         SYS_UTSNAME_H.
9305
9306 2009-12-31  Bruno Haible  <bruno@clisp.org>
9307
9308         spawn: Fix misapplied patch.
9309         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9310         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9311         warnings for GNULIB_POSIXCHECK.
9312
9313 2009-12-31  Bruno Haible  <bruno@clisp.org>
9314
9315         times: Update after sys_times changed.
9316         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
9317         * modules/times (Files): Add it.
9318         (configure.ac): Invoke gl_FUNC_TIMES.
9319
9320 2009-12-31  Bruno Haible  <bruno@clisp.org>
9321
9322         Use AC_C_INLINE where necessary.
9323         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
9324         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9325         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
9326         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9327         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9328         * m4/mbiter.m4 (gl_MBITER): Likewise.
9329         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9330         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9331         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
9332         * modules/u64 (configure.ac): Likewise.
9333
9334 2009-12-31  Bruno Haible  <bruno@clisp.org>
9335
9336         Use AC_C_INLINE instead of module 'inline' where possible.
9337         * modules/inline (Description): Clarify purpose.
9338         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
9339         * modules/count-one-bits (Depends-on): Remove inline.
9340         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
9341         * modules/openat (Depends-on): Remove inline.
9342         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
9343         instead of depending on module 'inline'.
9344         * modules/filevercmp (Depends-on, configure.ac): Likewise.
9345         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
9346         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
9347         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
9348         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
9349         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
9350         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
9351         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
9352         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
9353         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
9354         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
9355         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
9356         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
9357         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
9358         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
9359         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
9360         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
9361         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
9362         Likewise.
9363         * modules/unictype/property-ascii-hex-digit (Depends-on,
9364         configure.ac): Likewise.
9365         * modules/unictype/property-bidi-arabic-digit (Depends-on,
9366         configure.ac): Likewise.
9367         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
9368         configure.ac): Likewise.
9369         * modules/unictype/property-bidi-block-separator (Depends-on,
9370         configure.ac): Likewise.
9371         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
9372         configure.ac): Likewise.
9373         * modules/unictype/property-bidi-common-separator (Depends-on,
9374         configure.ac): Likewise.
9375         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
9376         Likewise.
9377         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
9378         configure.ac): Likewise.
9379         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
9380         configure.ac): Likewise.
9381         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
9382         configure.ac): Likewise.
9383         * modules/unictype/property-bidi-european-digit (Depends-on,
9384         configure.ac): Likewise.
9385         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
9386         configure.ac): Likewise.
9387         * modules/unictype/property-bidi-left-to-right (Depends-on,
9388         configure.ac): Likewise.
9389         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
9390         configure.ac): Likewise.
9391         * modules/unictype/property-bidi-other-neutral (Depends-on,
9392         configure.ac): Likewise.
9393         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
9394         Likewise.
9395         * modules/unictype/property-bidi-segment-separator (Depends-on,
9396         configure.ac): Likewise.
9397         * modules/unictype/property-bidi-whitespace (Depends-on,
9398         configure.ac): Likewise.
9399         * modules/unictype/property-combining (Depends-on, configure.ac):
9400         Likewise.
9401         * modules/unictype/property-composite (Depends-on, configure.ac):
9402         Likewise.
9403         * modules/unictype/property-currency-symbol (Depends-on,
9404         configure.ac): Likewise.
9405         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
9406         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
9407         Likewise.
9408         * modules/unictype/property-default-ignorable-code-point (Depends-on,
9409         configure.ac): Likewise.
9410         * modules/unictype/property-deprecated (Depends-on, configure.ac):
9411         Likewise.
9412         * modules/unictype/property-diacritic (Depends-on, configure.ac):
9413         Likewise.
9414         * modules/unictype/property-extender (Depends-on, configure.ac):
9415         Likewise.
9416         * modules/unictype/property-format-control (Depends-on, configure.ac):
9417         Likewise.
9418         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
9419         Likewise.
9420         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
9421         Likewise.
9422         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
9423         Likewise.
9424         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
9425         Likewise.
9426         * modules/unictype/property-hyphen (Depends-on, configure.ac):
9427         Likewise.
9428         * modules/unictype/property-id-continue (Depends-on, configure.ac):
9429         Likewise.
9430         * modules/unictype/property-id-start (Depends-on, configure.ac):
9431         Likewise.
9432         * modules/unictype/property-ideographic (Depends-on, configure.ac):
9433         Likewise.
9434         * modules/unictype/property-ids-binary-operator (Depends-on,
9435         configure.ac): Likewise.
9436         * modules/unictype/property-ids-trinary-operator (Depends-on,
9437         configure.ac): Likewise.
9438         * modules/unictype/property-ignorable-control (Depends-on,
9439         configure.ac): Likewise.
9440         * modules/unictype/property-iso-control (Depends-on, configure.ac):
9441         Likewise.
9442         * modules/unictype/property-join-control (Depends-on, configure.ac):
9443         Likewise.
9444         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
9445         Likewise.
9446         * modules/unictype/property-line-separator (Depends-on, configure.ac):
9447         Likewise.
9448         * modules/unictype/property-logical-order-exception (Depends-on,
9449         configure.ac): Likewise.
9450         * modules/unictype/property-lowercase (Depends-on, configure.ac):
9451         Likewise.
9452         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
9453         * modules/unictype/property-non-break (Depends-on, configure.ac):
9454         Likewise.
9455         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
9456         Likewise.
9457         * modules/unictype/property-numeric (Depends-on, configure.ac):
9458         Likewise.
9459         * modules/unictype/property-other-alphabetic (Depends-on,
9460         configure.ac): Likewise.
9461         * modules/unictype/property-other-default-ignorable-code-point
9462         (Depends-on, configure.ac): Likewise.
9463         * modules/unictype/property-other-grapheme-extend (Depends-on,
9464         configure.ac): Likewise.
9465         * modules/unictype/property-other-id-continue (Depends-on,
9466         configure.ac): Likewise.
9467         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
9468         Likewise.
9469         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
9470         Likewise.
9471         * modules/unictype/property-other-math (Depends-on, configure.ac):
9472         Likewise.
9473         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
9474         Likewise.
9475         * modules/unictype/property-paired-punctuation (Depends-on,
9476         configure.ac): Likewise.
9477         * modules/unictype/property-paragraph-separator (Depends-on,
9478         configure.ac): Likewise.
9479         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
9480         Likewise.
9481         * modules/unictype/property-pattern-white-space (Depends-on,
9482         configure.ac): Likewise.
9483         * modules/unictype/property-private-use (Depends-on, configure.ac):
9484         Likewise.
9485         * modules/unictype/property-punctuation (Depends-on, configure.ac):
9486         Likewise.
9487         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
9488         Likewise.
9489         * modules/unictype/property-radical (Depends-on, configure.ac):
9490         Likewise.
9491         * modules/unictype/property-sentence-terminal (Depends-on,
9492         configure.ac): Likewise.
9493         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
9494         Likewise.
9495         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
9496         * modules/unictype/property-terminal-punctuation (Depends-on,
9497         configure.ac): Likewise.
9498         * modules/unictype/property-titlecase (Depends-on, configure.ac):
9499         Likewise.
9500         * modules/unictype/property-unassigned-code-value (Depends-on,
9501         configure.ac): Likewise.
9502         * modules/unictype/property-unified-ideograph (Depends-on,
9503         configure.ac): Likewise.
9504         * modules/unictype/property-uppercase (Depends-on, configure.ac):
9505         Likewise.
9506         * modules/unictype/property-variation-selector (Depends-on,
9507         configure.ac): Likewise.
9508         * modules/unictype/property-white-space (Depends-on, configure.ac):
9509         Likewise.
9510         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
9511         Likewise.
9512         * modules/unictype/property-xid-start (Depends-on, configure.ac):
9513         Likewise.
9514         * modules/unictype/property-zero-width (Depends-on, configure.ac):
9515         Likewise.
9516         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
9517         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
9518         Likewise.
9519
9520 2009-12-31  Bruno Haible  <bruno@clisp.org>
9521
9522         Remove unnecessary AC_C_INLINE invocation.
9523         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
9524         since 2009-08-21.
9525
9526 2009-12-31  Jim Meyering  <meyering@redhat.com>
9527
9528         maint.mk: don't require explicit gpg_key_ID in cfg.mk
9529         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
9530         With this change, we can all remove the gpg_key_ID = ... definition
9531         from our respective cfg.mk files.
9532
9533         maint.mk: create announcement template in ~/, not in /tmp
9534         * top/maint.mk (emit_upload_commands): Adjust.
9535         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
9536         Remove temporary file, .ci-msg.
9537
9538 2009-12-31  Eric Blake  <ebb9@byu.net>
9539
9540         link-warning: always build headers with link warnings
9541         * modules/arpa_inet (Makefile.am): Always build replacement
9542         header.
9543         * modules/ctype (Makefile.am): Likewise.
9544         * modules/dirent (Makefile.am): Likewise.
9545         * modules/inttypes (Makefile.am): Likewise.
9546         * modules/langinfo (Makefile.am): Likewise.
9547         * modules/locale (Makefile.am): Likewise.
9548         * modules/spawn (Makefile.am): Likewise.
9549         * modules/sys_file (Makefile.am): Likewise.
9550         * modules/sys_ioctl (Makefile.am): Likewise.
9551         * modules/sys_select (Makefile.am): Likewise.
9552         * modules/sys_socket (Makefile.am): Likewise.
9553         * modules/sys_times (Makefile.am): Likewise.
9554         * modules/sys_utsname (Makefile.am): Likewise.
9555         * modules/sys_wait (Makefile.am): Likewise.
9556         * modules/wchar (Makefile.am): Likewise.
9557         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
9558         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
9559         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
9560         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
9561         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
9562         Likewise.
9563         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9564         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9565         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
9566         Likewise.
9567         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
9568         Likewise.
9569         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9570         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
9571         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
9572         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9573         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9574         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9575         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9576         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
9577         (gl_WCHAR_H_DEFAULTS): Likewise.
9578
9579 2009-12-31  Eric Blake  <ebb9@byu.net>
9580
9581         signal, spawn: use link warnings
9582         * lib/signal.in.h (sigset_t): Make unconditional.
9583         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
9584         (sigpending, sigprocmask, sigaction): Add link warnings.
9585         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9586         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9587         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9588         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9589         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9590         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9591         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9592         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9593         (posix_spawn_file_actions_destroy)
9594         (posix_spawn_file_actions_addopen)
9595         (posix_spawn_file_actions_addclose)
9596         (posix_spawn_file_actions_adddup2): Likewise.
9597         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9598         * tests/test-signal.c (main): Enhance test.
9599
9600         spawn: improve wrapper support
9601         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9602         (gl_SPAWN_H_DEFAULTS): New defaults.
9603         * modules/spawn (Makefile.am): Substitute them.
9604         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9605         Only declare if missing or broken.
9606
9607         sys_times, sys_utsname: use include_next
9608         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9609         header.
9610         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9611         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9612         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9613         * modules/sys_times (Depends-on): Add include_next.
9614         (Makefile.am): Substitute additional values.
9615         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9616         * lib/sys_times.in.h (includes): Include native header, if
9617         available.
9618         * lib/sys_utsname.in.h (includes): Likewise.
9619         * tests/test-sys_times.c (main): Enhance test.
9620
9621         fdutimensat: revert prior patch
9622         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9623         utimens.h.
9624         Reported by Bruno Haible.
9625
9626 2009-12-30  Eric Blake  <ebb9@byu.net>
9627
9628         sys_wait: drop link-warning dependency
9629         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9630         link-warning efforts.
9631         * lib/sys_wait.in.h: Likewise.
9632
9633         fdutimensat: remove bogus dependency
9634         * modules/fdutimensat (Depends-on): Drop inline.
9635
9636         unistd: fix typo
9637         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9638
9639 2009-12-30  Bruno Haible  <bruno@clisp.org>
9640
9641         Fix compilation error with Solaris cc.
9642         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9643         * lib/unicase/u16-is-invariant.c: Likewise.
9644         * lib/unicase/u32-is-invariant.c: Likewise.
9645         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9646
9647 2009-12-30  Bruno Haible  <bruno@clisp.org>
9648
9649         Fix test crash.
9650         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9651         locales.
9652         Reported by Simon Josefsson <simon@josefsson.org>.
9653
9654 2009-12-30  Bruno Haible  <bruno@clisp.org>
9655
9656         Fix compilation error on most platforms.
9657         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9658         Reported by Simon Josefsson <simon@josefsson.org>
9659         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9660
9661 2009-12-30  Eric Blake  <ebb9@byu.net>
9662
9663         futimens, utimensat: work around ntfs-3g bug
9664         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9665         a ctime bug is present, and expand workaround to cover ntfs-3g.
9666         * lib/utimens.c (fdutimens, lutimens): Likewise.
9667         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9668         (validate_timespec): Adjust return value.
9669         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9670         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9671         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9672
9673 2009-12-29  Eric Blake  <ebb9@byu.net>
9674
9675         link-warning: make usage consistent
9676         * modules/ctype (Depends-on): Add link-warning.
9677         (Makefile.am): Update rules accordingly.
9678         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9679         * modules/locale (Depends-on, Makefile.am): Likewise.
9680         * modules/sys_file (Makefile.am): Likewise.
9681         * modules/getopt-posix (Makefile.am): Delete unused link warning
9682         efforts.
9683         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9684         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9685         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9686         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9687
9688         stdio: remove unused variables
9689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9690         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9691         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9692
9693         tests: test more substitute headers
9694         * modules/ctype-tests: New file.
9695         * modules/dirent-tests: Likewise.
9696         * modules/spawn-tests: Likewise.
9697         * modules/sys_file-tests: Likewise.
9698         * modules/sys_ioctl-tests: Likewise.
9699         * modules/sys_wait-tests: Likewise.
9700         * tests/test-ctype.c: Likewise.
9701         * tests/test-dirent.c: Likewise.
9702         * tests/test-spawn.c: Likewise.
9703         * tests/test-sys_file.c: Likewise.
9704         * tests/test-sys_ioctl.c: Likewise.
9705         * tests/test-sys_wait.c: Likewise.
9706         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9707         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9708         whether or not flock is in use.
9709
9710         tests: remove License section from module
9711         * modules/arpa_inet-tests: Remove unneeded section.
9712         * modules/byteswap-tests: Likewise.
9713         * modules/ceilf-tests: Likewise.
9714         * modules/ceill-tests: Likewise.
9715         * modules/crypto/des-tests: Likewise.
9716         * modules/crypto/gc-arcfour-tests: Likewise.
9717         * modules/crypto/gc-arctwo-tests: Likewise.
9718         * modules/crypto/gc-des-tests: Likewise.
9719         * modules/crypto/gc-hmac-md5-tests: Likewise.
9720         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9721         * modules/crypto/gc-md2-tests: Likewise.
9722         * modules/crypto/gc-md4-tests: Likewise.
9723         * modules/crypto/gc-md5-tests: Likewise.
9724         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9725         * modules/crypto/gc-rijndael-tests: Likewise.
9726         * modules/crypto/gc-sha1-tests: Likewise.
9727         * modules/crypto/gc-tests: Likewise.
9728         * modules/crypto/md2-tests: Likewise.
9729         * modules/crypto/md4-tests: Likewise.
9730         * modules/fcntl-h-tests: Likewise.
9731         * modules/floorf-tests: Likewise.
9732         * modules/floorl-tests: Likewise.
9733         * modules/frexp-nolibm-tests: Likewise.
9734         * modules/frexp-tests: Likewise.
9735         * modules/frexpl-nolibm-tests: Likewise.
9736         * modules/frexpl-tests: Likewise.
9737         * modules/getaddrinfo-tests: Likewise.
9738         * modules/inttypes-tests: Likewise.
9739         * modules/isfinite-tests: Likewise.
9740         * modules/isinf-tests: Likewise.
9741         * modules/ldexpl-tests: Likewise.
9742         * modules/locale-tests: Likewise.
9743         * modules/math-tests: Likewise.
9744         * modules/netdb-tests: Likewise.
9745         * modules/netinet_in-tests: Likewise.
9746         * modules/printf-frexp-tests: Likewise.
9747         * modules/printf-frexpl-tests: Likewise.
9748         * modules/priv-set-tests: Likewise.
9749         * modules/random_r-tests: Likewise.
9750         * modules/round-tests: Likewise.
9751         * modules/roundf-tests: Likewise.
9752         * modules/roundl-tests: Likewise.
9753         * modules/search-tests: Likewise.
9754         * modules/select-tests: Likewise.
9755         * modules/signal-tests: Likewise.
9756         * modules/stdbool-tests: Likewise.
9757         * modules/stddef-tests: Likewise.
9758         * modules/stdint-tests: Likewise.
9759         * modules/stdio-tests: Likewise.
9760         * modules/stdlib-tests: Likewise.
9761         * modules/string-tests: Likewise.
9762         * modules/strings-tests: Likewise.
9763         * modules/sys_select-tests: Likewise.
9764         * modules/sys_socket-tests: Likewise.
9765         * modules/sys_stat-tests: Likewise.
9766         * modules/sys_time-tests: Likewise.
9767         * modules/sys_utsname-tests: Likewise.
9768         * modules/sysexits-tests: Likewise.
9769         * modules/time-tests: Likewise.
9770         * modules/trunc-tests: Likewise.
9771         * modules/truncf-tests: Likewise.
9772         * modules/truncl-tests: Likewise.
9773         * modules/tsearch-tests: Likewise.
9774         * modules/unistd-tests: Likewise.
9775         * modules/wchar-tests: Likewise.
9776         * modules/wctype-tests: Likewise.
9777
9778         tests: fix license on several tests
9779         * tests/test-des.c: Update to GPLv3+.
9780         * tests/test-flock.c: Likewise.
9781         * tests/test-fsync.c: Likewise.
9782         * tests/test-futimens.h: Likewise.
9783         * tests/test-gc-arcfour.c: Likewise.
9784         * tests/test-gc-arctwo.c: Likewise.
9785         * tests/test-gc-des.c: Likewise.
9786         * tests/test-gc-hmac-md5.c: Likewise.
9787         * tests/test-gc-hmac-sha1.c: Likewise.
9788         * tests/test-gc-md2.c: Likewise.
9789         * tests/test-gc-md4.c: Likewise.
9790         * tests/test-gc-md5.c: Likewise.
9791         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9792         * tests/test-gc-rijndael.c: Likewise.
9793         * tests/test-gc-sha1.c: Likewise.
9794         * tests/test-gc.c: Likewise.
9795         * tests/test-getcwd.c: Likewise.
9796         * tests/test-link.c: Likewise.
9797         * tests/test-link.h: Likewise.
9798         * tests/test-lutimens.h: Likewise.
9799         * tests/test-md2.c: Likewise.
9800         * tests/test-md4.c: Likewise.
9801         * tests/test-mkdir.h: Likewise.
9802         * tests/test-rename.c: Likewise.
9803         * tests/test-rename.h: Likewise.
9804         * tests/test-safe-alloc.c: Likewise.
9805         * tests/test-utimens-common.h: Likewise.
9806         * tests/test-utimens.h: Likewise.
9807
9808         maint: sync license texts
9809         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9810         * doc/gpl-3.0.texi: Revert copyright year update.
9811         * doc/lgpl-3.0.texi: Likewise.
9812
9813 2009-12-29  Jim Meyering  <meyering@redhat.com>
9814
9815         update nearly all FSF copyright year lists to include 2009
9816         The files named by the following are exempted:
9817             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9818               test -f "$dst" && { echo "$dst"; continue; }
9819               test -d "$dst" || continue
9820               echo "$dst"/$(basename "$src")
9821             done > exempt
9822             git ls-files tests/unictype >> exempt
9823         In the remaining files, convert to all-interval notation if
9824         - there is already at least one year interval like 2000-2003
9825         - the file is maintained by me
9826         - the file is in lib/uni*/, where that style already prevails
9827         Otherwise, use update-copyright's default.
9828
9829 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9830         and Eric Blake  <ebb9@byu.net>
9831
9832         tests: don't require debug system() to pass
9833         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
9834         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9835         * tests/test-unlink.h (test_unlink_func): Likewise.
9836         * tests/test-fstatat.c (main): ...into callers.
9837         * tests/test-lstat.c (main): Likewise.
9838         * tests/test-rmdir.c (main): Likewise.
9839         * tests/test-unlink.c (main): Likewise.
9840         * tests/test-unlinkat.c (main): Likewise.
9841         * tests/test-areadlink-with-size.c (main): Don't require a
9842         debug-only system call to pass, aiding cross-testing to mingw.
9843         * tests/test-areadlink.c (main): Likewise.
9844         * tests/test-areadlinkat-with-size.c (main): Likewise.
9845         * tests/test-areadlinkat.c (main): Likewise.
9846         * tests/test-canonicalize-lgpl.c (main): Likewise.
9847         * tests/test-canonicalize.c (main): Likewise.
9848         * tests/test-chown.c (main): Likewise.
9849         * tests/test-fchownat.c (main): Likewise.
9850         * tests/test-lchown.c (main): Likewise.
9851         * tests/test-fdutimensat.c (main): Likewise.
9852         * tests/test-futimens.c (main): Likewise.
9853         * tests/test-link.c (main): Likewise.
9854         * tests/test-linkat.c (main): Likewise.
9855         * tests/test-mkdir.c (main): Likewise.
9856         * tests/test-mkdirat.c (main): Likewise.
9857         * tests/test-mkfifo.c (main): Likewise.
9858         * tests/test-mkfifoat.c (main): Likewise.
9859         * tests/test-mknod.c (main): Likewise.
9860         * tests/test-readlink.c (main): Likewise.
9861         * tests/test-remove.c (main): Likewise.
9862         * tests/test-rename.c (main): Likewise.
9863         * tests/test-renameat.c (main): Likewise.
9864         * tests/test-symlink.c (main): Likewise.
9865         * tests/test-symlinkat.c (main): Likewise.
9866         * tests/test-utimens.c (main): Likewise.
9867         * tests/test-utimensat.c (main): Likewise.
9868
9869 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9870
9871         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
9872         on $(UNUSED_PARAMETER_H) to avoid build failure.
9873
9874 2009-12-28  Jim Meyering  <meyering@redhat.com>
9875
9876         update-copyright: you may specify a max. line length other than 72
9877         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9878
9879         maint: use consistent FSF copyright line syntax
9880         * lib/posixtm.c: Add missing comma in FSF copyright line.
9881         * lib/posixtm.h: Likewise.
9882         * lib/getugroups.c: Add missing ", Inc.".
9883
9884         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
9885         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
9886         FSF copyright line.  Remove trailing blanks.
9887
9888 2009-12-28  Eric Blake  <ebb9@byu.net>
9889
9890         test-dup2: reduce dependencies
9891         * modules/cloexec (Configure.ac): Set witness.
9892         * modules/dup2-tests (Depends-on): Drop cloexec.
9893         * tests/test-dup2.c (main): Skip portion of test if cloexec module
9894         not present.
9895         Suggested by Bruno Haible.
9896
9897 2009-12-26  Bruno Haible  <bruno@clisp.org>
9898
9899         Remove an unneeded dependency.
9900         * modules/fseterr (Depends-on): Remove dup2.
9901
9902 2009-12-26  Eric Blake  <ebb9@byu.net>
9903
9904         tests: use macros.h in more places
9905         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
9906         (ASSERT_STREAM): Provide default of stderr.
9907         * tests/test-dirent-safer.c: Include macros.h, using alternate
9908         stream for assertions.
9909         * tests/test-dup-safer.c: Likewise.
9910         * tests/test-freopen-safer.c: Likewise.
9911         * tests/test-getopt.c: Likewise.
9912         * tests/test-openat-safer.c: Likewise.
9913         * tests/test-pipe.c: Likewise.
9914         * tests/test-popen-safer.c: Likewise.
9915         * modules/dirent-safer-tests (Files): Include macros.h.
9916         * modules/unistd-safer-tests (Files): Likewise.
9917         * modules/freopen-safer-tests (Files): Likewise.
9918         * modules/getopt-posix-tests (Files): Likewise.
9919         * modules/openat-safer-tests (Files): Likewise.
9920         * modules/pipe-tests (Files): Likewise.
9921
9922 2009-12-26  Bruno Haible  <bruno@clisp.org>
9923
9924         javacomp: Portability fix.
9925         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
9926         that it also works on Solaris.
9927
9928 2009-12-26  Bruno Haible  <bruno@clisp.org>
9929
9930         localename: Fix storage allocation of gl_locale_name_thread's result.
9931         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
9932         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
9933         all platforms that have 'uselocale'.
9934         (gl_locale_name_thread_unsafe): New function, extracted from
9935         gl_locale_name_thread.
9936         (gl_locale_name_thread): Call struniq on all platforms that have
9937         'uselocale'.
9938         * tests/test-localename.c (test_locale_name_thread): Check that the
9939         resulting strings are permanently allocated.
9940         * modules/localename-tests (Depends-on): Add strdup.
9941
9942 2009-12-26  Bruno Haible  <bruno@clisp.org>
9943
9944         * tests/test-localename.c (categories): Fill in the strings.
9945
9946 2009-12-26  Jim Meyering  <meyering@redhat.com>
9947
9948         isdir: complete the removal of m4/isdir.m4
9949         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
9950
9951         isdir: clean up, since at least grep still uses it
9952         * lib/isdir.c: Include "isdir.h".
9953         (S_ISDIR): Remove now-unneeded definition.
9954         * modules/isdir (Files): Add lib/isdir.h.
9955         * lib/isdir.h: New file, with declaration.
9956         * m4/isdir.m4: Remove file -- unneeded.
9957
9958 2009-12-25  Bruno Haible  <bruno@clisp.org>
9959
9960         selinux-h: Make generated .h files standalone.
9961         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
9962         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
9963         * lib/se-selinux.in.h: Likewise.
9964         * modules/selinux-h (Depends-on): Add unused-parameter.
9965         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
9966         selinux/selinux.h and selinux/context.h.
9967         Suggested by Eric Blake.
9968
9969 2009-12-25  Bruno Haible  <bruno@clisp.org>
9970
9971         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
9972         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
9973         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
9974         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
9975         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
9976
9977 2009-12-24  Bruno Haible  <bruno@clisp.org>
9978
9979         openat: Fix warning.
9980         * lib/openat-proc.c: Include <unistd.h>.
9981
9982 2009-12-24  Bruno Haible  <bruno@clisp.org>
9983
9984         New module 'unused-parameter'.
9985         * build-aux/unused-parameter.h: New file, extracted from earlier
9986         gnulib-common.m4.
9987         * modules/unused-parameter: New file.
9988         * lib/unistr.h: Include unused-parameter.h.
9989         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
9990         _GL_UNUSED.
9991         * modules/unistr/base (Depends-on): Add unused-parameter.
9992
9993 2009-12-24  Bruno Haible  <bruno@clisp.org>
9994
9995         Add missing dependencies to 'extensions' module.
9996         * m4/extensions.m4: Add comment.
9997         * modules/accept4 (Depends-on): Add extensions.
9998         * modules/dup3 (Depends-on): Likewise.
9999         * modules/fcntl (Depends-on): Likewise.
10000         * modules/futimens (Depends-on): Likewise.
10001         * modules/mknod (Depends-on): Likewise.
10002         * modules/pipe2 (Depends-on): Likewise.
10003         * modules/stat-time (Depends-on): Likewise.
10004         * modules/strcasestr-simple (Depends-on): Likewise.
10005         * modules/strsignal (Depends-on): Likewise.
10006         * modules/utimensat (Depends-on): Likewise.
10007         * modules/localcharset (Depends-on): Likewise. Needed because of
10008         gl_FCNTL_O_FLAGS.
10009         * modules/wcrtomb (Depends-on): Likewise. Needed because of
10010         AC_TYPE_MBSTATE_T.
10011         * modules/wcsnrtombs (Depends-on): Likewise.
10012         * modules/wcsrtombs (Depends-on): Likewise.
10013
10014 2009-12-24  Bruno Haible  <bruno@clisp.org>
10015
10016         binary-io: Avoid gcc warning due to SET_BINARY.
10017         * lib/binary-io.h (SET_BINARY): Cast the result to void.
10018         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
10019
10020 2009-12-24  Bruno Haible  <bruno@clisp.org>
10021
10022         Avoid future namespace pollution on glibc systems.
10023         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
10024         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
10025         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
10026         glibc systems.
10027
10028 2009-12-24  Bruno Haible  <bruno@clisp.org>
10029
10030         Refactor common macros used in tests.
10031         * tests/macros.h: New file.
10032         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
10033         and/or <stdlib.h>, if appropriate.
10034         (ASSERT, SIZEOF): Remove macros.
10035         * tests/test-areadlink-with-size.c: Likewise.
10036         * tests/test-areadlinkat.c: Likewise.
10037         * tests/test-areadlinkat-with-size.c: Likewise.
10038         * tests/test-argmatch.c: Likewise.
10039         * tests/test-argv-iter.c: Likewise.
10040         * tests/test-array-mergesort.c: Likewise.
10041         * tests/test-array_list.c: Likewise.
10042         * tests/test-array_oset.c: Likewise.
10043         * tests/test-avltree_list.c: Likewise.
10044         * tests/test-avltree_oset.c: Likewise.
10045         * tests/test-avltreehash_list.c: Likewise.
10046         * tests/test-base64.c: Likewise.
10047         * tests/test-binary-io.c: Likewise.
10048         * tests/test-bitrotate.c: Likewise.
10049         * tests/test-btowc.c: Likewise.
10050         * tests/test-byteswap.c: Likewise.
10051         * tests/test-c-ctype.c: Likewise.
10052         * tests/test-c-stack.c: Likewise.
10053         * tests/test-c-strcasecmp.c: Likewise.
10054         * tests/test-c-strcasestr.c: Likewise.
10055         * tests/test-c-strncasecmp.c: Likewise.
10056         * tests/test-c-strstr.c: Likewise.
10057         * tests/test-canonicalize-lgpl.c: Likewise.
10058         * tests/test-canonicalize.c: Likewise.
10059         * tests/test-carray_list.c: Likewise.
10060         * tests/test-ceilf1.c: Likewise.
10061         * tests/test-ceilf2.c: Likewise.
10062         * tests/test-ceill.c: Likewise.
10063         * tests/test-chown.c: Likewise.
10064         * tests/test-cloexec.c: Likewise.
10065         * tests/test-copy-acl.c: Likewise.
10066         * tests/test-copy-file.c: Likewise.
10067         * tests/test-count-one-bits.c: Likewise.
10068         * tests/test-dprintf-posix.c: Likewise.
10069         * tests/test-dup2.c: Likewise.
10070         * tests/test-dup3.c: Likewise.
10071         * tests/test-duplocale.c: Likewise.
10072         * tests/test-fbufmode.c: Likewise.
10073         * tests/test-fchdir.c: Likewise.
10074         * tests/test-fchownat.c: Likewise.
10075         * tests/test-fcntl-safer.c: Likewise.
10076         * tests/test-fcntl.c: Likewise.
10077         * tests/test-fdopendir.c: Likewise.
10078         * tests/test-fdutimensat.c: Likewise.
10079         * tests/test-fflush2.c: Likewise.
10080         * tests/test-file-has-acl.c: Likewise.
10081         * tests/test-filevercmp.c: Likewise.
10082         * tests/test-flock.c: Likewise.
10083         * tests/test-floorf1.c: Likewise.
10084         * tests/test-floorf2.c: Likewise.
10085         * tests/test-floorl.c: Likewise.
10086         * tests/test-fnmatch.c: Likewise.
10087         * tests/test-fopen.h: Likewise.
10088         * tests/test-fpending.c: Likewise.
10089         * tests/test-fprintf-posix.c: Likewise.
10090         * tests/test-fpurge.c: Likewise.
10091         * tests/test-freadable.c: Likewise.
10092         * tests/test-freadahead.c: Likewise.
10093         * tests/test-freading.c: Likewise.
10094         * tests/test-freadptr.c: Likewise.
10095         * tests/test-freadptr2.c: Likewise.
10096         * tests/test-freadseek.c: Likewise.
10097         * tests/test-freopen.c: Likewise.
10098         * tests/test-frexp.c: Likewise.
10099         * tests/test-frexpl.c: Likewise.
10100         * tests/test-fseek.c: Likewise.
10101         * tests/test-fseeko.c: Likewise.
10102         * tests/test-fstatat.c: Likewise.
10103         * tests/test-fstrcmp.c: Likewise.
10104         * tests/test-fsync.c: Likewise.
10105         * tests/test-ftell.c: Likewise.
10106         * tests/test-ftello.c: Likewise.
10107         * tests/test-func.c: Likewise.
10108         * tests/test-futimens.c: Likewise.
10109         * tests/test-fwritable.c: Likewise.
10110         * tests/test-fwriting.c: Likewise.
10111         * tests/test-getcwd.c: Likewise.
10112         * tests/test-getdate.c: Likewise.
10113         * tests/test-getdelim.c: Likewise.
10114         * tests/test-getdtablesize.c: Likewise.
10115         * tests/test-getgroups.c: Likewise.
10116         * tests/test-getline.c: Likewise.
10117         * tests/test-getndelim2.c: Likewise.
10118         * tests/test-glob.c: Likewise.
10119         * tests/test-hash.c: Likewise.
10120         * tests/test-i-ring.c: Likewise.
10121         * tests/test-iconv-utf.c: Likewise.
10122         * tests/test-iconv.c: Likewise.
10123         * tests/test-idpriv-drop.c: Likewise.
10124         * tests/test-idpriv-droptemp.c: Likewise.
10125         * tests/test-inet_ntop.c: Likewise.
10126         * tests/test-inet_pton.c: Likewise.
10127         * tests/test-isblank.c: Likewise.
10128         * tests/test-isfinite.c: Likewise.
10129         * tests/test-isinf.c: Likewise.
10130         * tests/test-isnan.c: Likewise.
10131         * tests/test-isnand.h: Likewise.
10132         * tests/test-isnanf.h: Likewise.
10133         * tests/test-isnanl.h: Likewise.
10134         * tests/test-lchown.c: Likewise.
10135         * tests/test-ldexpl.c: Likewise.
10136         * tests/test-link.c: Likewise.
10137         * tests/test-linkat.c: Likewise.
10138         * tests/test-linked_list.c: Likewise.
10139         * tests/test-linkedhash_list.c: Likewise.
10140         * tests/test-localename.c: Likewise.
10141         * tests/test-lseek.c: Likewise.
10142         * tests/test-lstat.c: Likewise.
10143         * tests/test-mbmemcasecmp.c: Likewise.
10144         * tests/test-mbmemcasecoll.c: Likewise.
10145         * tests/test-mbrtowc.c: Likewise.
10146         * tests/test-mbscasecmp.c: Likewise.
10147         * tests/test-mbscasestr1.c: Likewise.
10148         * tests/test-mbscasestr2.c: Likewise.
10149         * tests/test-mbscasestr3.c: Likewise.
10150         * tests/test-mbscasestr4.c: Likewise.
10151         * tests/test-mbschr.c: Likewise.
10152         * tests/test-mbscspn.c: Likewise.
10153         * tests/test-mbsinit.c: Likewise.
10154         * tests/test-mbsncasecmp.c: Likewise.
10155         * tests/test-mbsnrtowcs.c: Likewise.
10156         * tests/test-mbspbrk.c: Likewise.
10157         * tests/test-mbspcasecmp.c: Likewise.
10158         * tests/test-mbsrchr.c: Likewise.
10159         * tests/test-mbsrtowcs.c: Likewise.
10160         * tests/test-mbsspn.c: Likewise.
10161         * tests/test-mbsstr1.c: Likewise.
10162         * tests/test-mbsstr2.c: Likewise.
10163         * tests/test-mbsstr3.c: Likewise.
10164         * tests/test-memchr.c: Likewise.
10165         * tests/test-memchr2.c: Likewise.
10166         * tests/test-memcmp.c: Likewise.
10167         * tests/test-memmem.c: Likewise.
10168         * tests/test-memrchr.c: Likewise.
10169         * tests/test-mkdir.c: Likewise.
10170         * tests/test-mkdirat.c: Likewise.
10171         * tests/test-mkfifo.c: Likewise.
10172         * tests/test-mkfifoat.c: Likewise.
10173         * tests/test-mknod.c: Likewise.
10174         * tests/test-nanosleep.c: Likewise.
10175         * tests/test-nl_langinfo.c: Likewise.
10176         * tests/test-obstack-printf.c: Likewise.
10177         * tests/test-open.c: Likewise.
10178         * tests/test-openat.c: Likewise.
10179         * tests/test-pipe-filter-gi1.c: Likewise.
10180         * tests/test-pipe-filter-gi2-main.c: Likewise.
10181         * tests/test-pipe-filter-ii1.c: Likewise.
10182         * tests/test-pipe-filter-ii2-main.c: Likewise.
10183         * tests/test-pipe2.c: Likewise.
10184         * tests/test-popen.h: Likewise.
10185         * tests/test-posixtm.c: Likewise.
10186         * tests/test-pread.c: Likewise.
10187         * tests/test-printf-frexp.c: Likewise.
10188         * tests/test-printf-frexpl.c: Likewise.
10189         * tests/test-printf-posix.c: Likewise.
10190         * tests/test-priv-set.c: Likewise.
10191         * tests/test-quotearg.c: Likewise.
10192         * tests/test-random_r.c: Likewise.
10193         * tests/test-rawmemchr.c: Likewise.
10194         * tests/test-rbtree_list.c: Likewise.
10195         * tests/test-rbtree_oset.c: Likewise.
10196         * tests/test-rbtreehash_list.c: Likewise.
10197         * tests/test-readlink.c: Likewise.
10198         * tests/test-remove.c: Likewise.
10199         * tests/test-rename.c: Likewise.
10200         * tests/test-renameat.c: Likewise.
10201         * tests/test-rmdir.c: Likewise.
10202         * tests/test-round1.c: Likewise.
10203         * tests/test-roundf1.c: Likewise.
10204         * tests/test-roundl.c: Likewise.
10205         * tests/test-safe-alloc.c: Likewise.
10206         * tests/test-sameacls.c: Likewise.
10207         * tests/test-set-mode-acl.c: Likewise.
10208         * tests/test-setenv.c: Likewise.
10209         * tests/test-sigaction.c: Likewise.
10210         * tests/test-signbit.c: Likewise.
10211         * tests/test-sleep.c: Likewise.
10212         * tests/test-snprintf-posix.c: Likewise.
10213         * tests/test-snprintf.c: Likewise.
10214         * tests/test-sprintf-posix.c: Likewise.
10215         * tests/test-stat-time.c: Likewise.
10216         * tests/test-stat.c: Likewise.
10217         * tests/test-strcasestr.c: Likewise.
10218         * tests/test-strchrnul.c: Likewise.
10219         * tests/test-strerror.c: Likewise.
10220         * tests/test-striconv.c: Likewise.
10221         * tests/test-striconveh.c: Likewise.
10222         * tests/test-striconveha.c: Likewise.
10223         * tests/test-strsignal.c: Likewise.
10224         * tests/test-strstr.c: Likewise.
10225         * tests/test-strtod.c: Likewise.
10226         * tests/test-strverscmp.c: Likewise.
10227         * tests/test-symlink.c: Likewise.
10228         * tests/test-symlinkat.c: Likewise.
10229         * tests/test-trunc1.c: Likewise.
10230         * tests/test-trunc2.c: Likewise.
10231         * tests/test-truncf1.c: Likewise.
10232         * tests/test-truncf2.c: Likewise.
10233         * tests/test-truncl.c: Likewise.
10234         * tests/test-uname.c: Likewise.
10235         * tests/test-unlink.c: Likewise.
10236         * tests/test-unlinkat.c: Likewise.
10237         * tests/test-unsetenv.c: Likewise.
10238         * tests/test-usleep.c: Likewise.
10239         * tests/test-utimens.c: Likewise.
10240         * tests/test-utimensat.c: Likewise.
10241         * tests/test-vasnprintf-posix.c: Likewise.
10242         * tests/test-vasnprintf-posix2.c: Likewise.
10243         * tests/test-vasnprintf.c: Likewise.
10244         * tests/test-vasprintf-posix.c: Likewise.
10245         * tests/test-vasprintf.c: Likewise.
10246         * tests/test-vdprintf-posix.c: Likewise.
10247         * tests/test-vfprintf-posix.c: Likewise.
10248         * tests/test-vprintf-posix.c: Likewise.
10249         * tests/test-vsnprintf-posix.c: Likewise.
10250         * tests/test-vsnprintf.c: Likewise.
10251         * tests/test-vsprintf-posix.c: Likewise.
10252         * tests/test-wcrtomb.c: Likewise.
10253         * tests/test-wcsnrtombs.c: Likewise.
10254         * tests/test-wcsrtombs.c: Likewise.
10255         * tests/test-wctype.c: Likewise.
10256         * tests/test-wcwidth.c: Likewise.
10257         * tests/test-xfprintf-posix.c: Likewise.
10258         * tests/test-xmemdup0.c: Likewise.
10259         * tests/test-xprintf-posix.c: Likewise.
10260         * tests/test-xvasprintf.c: Likewise.
10261         * tests/unicase/test-locale-language.c: Likewise.
10262         * tests/unicase/test-mapping-part1.h: Likewise.
10263         * tests/unicase/test-predicate-part1.h: Likewise.
10264         * tests/unicase/test-u8-casecmp.c: Likewise.
10265         * tests/unicase/test-u8-casecoll.c: Likewise.
10266         * tests/unicase/test-u8-casefold.c: Likewise.
10267         * tests/unicase/test-u8-is-cased.c: Likewise.
10268         * tests/unicase/test-u8-is-casefolded.c: Likewise.
10269         * tests/unicase/test-u8-is-lowercase.c: Likewise.
10270         * tests/unicase/test-u8-is-titlecase.c: Likewise.
10271         * tests/unicase/test-u8-is-uppercase.c: Likewise.
10272         * tests/unicase/test-u8-tolower.c: Likewise.
10273         * tests/unicase/test-u8-totitle.c: Likewise.
10274         * tests/unicase/test-u8-toupper.c: Likewise.
10275         * tests/unicase/test-u16-casecmp.c: Likewise.
10276         * tests/unicase/test-u16-casecoll.c: Likewise.
10277         * tests/unicase/test-u16-casefold.c: Likewise.
10278         * tests/unicase/test-u16-is-cased.c: Likewise.
10279         * tests/unicase/test-u16-is-casefolded.c: Likewise.
10280         * tests/unicase/test-u16-is-lowercase.c: Likewise.
10281         * tests/unicase/test-u16-is-titlecase.c: Likewise.
10282         * tests/unicase/test-u16-is-uppercase.c: Likewise.
10283         * tests/unicase/test-u16-tolower.c: Likewise.
10284         * tests/unicase/test-u16-totitle.c: Likewise.
10285         * tests/unicase/test-u16-toupper.c: Likewise.
10286         * tests/unicase/test-u32-casecmp.c: Likewise.
10287         * tests/unicase/test-u32-casecoll.c: Likewise.
10288         * tests/unicase/test-u32-casefold.c: Likewise.
10289         * tests/unicase/test-u32-is-cased.c: Likewise.
10290         * tests/unicase/test-u32-is-casefolded.c: Likewise.
10291         * tests/unicase/test-u32-is-lowercase.c: Likewise.
10292         * tests/unicase/test-u32-is-titlecase.c: Likewise.
10293         * tests/unicase/test-u32-is-uppercase.c: Likewise.
10294         * tests/unicase/test-u32-tolower.c: Likewise.
10295         * tests/unicase/test-u32-totitle.c: Likewise.
10296         * tests/unicase/test-u32-toupper.c: Likewise.
10297         * tests/unicase/test-ulc-casecmp.c: Likewise.
10298         * tests/unicase/test-ulc-casecoll.c: Likewise.
10299         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10300         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10301         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10302         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10303         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10304         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10305         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10306         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10307         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10308         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10309         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10310         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10311         * tests/unictype/test-bidi_byname.c: Likewise.
10312         * tests/unictype/test-bidi_name.c: Likewise.
10313         * tests/unictype/test-bidi_of.c: Likewise.
10314         * tests/unictype/test-bidi_test.c: Likewise.
10315         * tests/unictype/test-block_list.c: Likewise.
10316         * tests/unictype/test-block_of.c: Likewise.
10317         * tests/unictype/test-block_test.c: Likewise.
10318         * tests/unictype/test-categ_and.c: Likewise.
10319         * tests/unictype/test-categ_and_not.c: Likewise.
10320         * tests/unictype/test-categ_byname.c: Likewise.
10321         * tests/unictype/test-categ_name.c: Likewise.
10322         * tests/unictype/test-categ_none.c: Likewise.
10323         * tests/unictype/test-categ_of.c: Likewise.
10324         * tests/unictype/test-categ_or.c: Likewise.
10325         * tests/unictype/test-categ_test_withtable.c: Likewise.
10326         * tests/unictype/test-combining.c: Likewise.
10327         * tests/unictype/test-decdigit.c: Likewise.
10328         * tests/unictype/test-digit.c: Likewise.
10329         * tests/unictype/test-mirror.c: Likewise.
10330         * tests/unictype/test-numeric.c: Likewise.
10331         * tests/unictype/test-pr_byname.c: Likewise.
10332         * tests/unictype/test-pr_test.c: Likewise.
10333         * tests/unictype/test-predicate-part1.h: Likewise.
10334         * tests/unictype/test-scripts.c: Likewise.
10335         * tests/unictype/test-sy_c_ident.c: Likewise.
10336         * tests/unictype/test-sy_java_ident.c: Likewise.
10337         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
10338         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
10339         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
10340         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
10341         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
10342         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
10343         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
10344         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
10345         * tests/uninorm/test-canonical-decomposition.c: Likewise.
10346         * tests/uninorm/test-compat-decomposition.c: Likewise.
10347         * tests/uninorm/test-composition.c: Likewise.
10348         * tests/uninorm/test-decomposing-form.c: Likewise.
10349         * tests/uninorm/test-decomposition.c: Likewise.
10350         * tests/uninorm/test-u8-nfc.c: Likewise.
10351         * tests/uninorm/test-u8-nfd.c: Likewise.
10352         * tests/uninorm/test-u8-nfkc.c: Likewise.
10353         * tests/uninorm/test-u8-nfkd.c: Likewise.
10354         * tests/uninorm/test-u8-normcmp.c: Likewise.
10355         * tests/uninorm/test-u8-normcoll.c: Likewise.
10356         * tests/uninorm/test-u16-nfc.c: Likewise.
10357         * tests/uninorm/test-u16-nfd.c: Likewise.
10358         * tests/uninorm/test-u16-nfkc.c: Likewise.
10359         * tests/uninorm/test-u16-nfkd.c: Likewise.
10360         * tests/uninorm/test-u16-normcmp.c: Likewise.
10361         * tests/uninorm/test-u16-normcoll.c: Likewise.
10362         * tests/uninorm/test-u32-nfc.c: Likewise.
10363         * tests/uninorm/test-u32-nfd.c: Likewise.
10364         * tests/uninorm/test-u32-nfkc.c: Likewise.
10365         * tests/uninorm/test-u32-nfkd.c: Likewise.
10366         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10367         * tests/uninorm/test-u32-normcmp.c: Likewise.
10368         * tests/uninorm/test-u32-normcoll.c: Likewise.
10369         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
10370         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10371         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10372         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10373         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10374         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10375         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10376         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10377         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10378         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10379         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10380         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10381         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10382         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10383         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10384         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10385         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10386         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10387         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10388         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10389         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10390         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10391         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10392         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10393         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10394         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10395         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10396         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10397         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10398         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
10399         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
10400         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
10401         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
10402         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10403         * tests/uniwidth/test-u8-width.c: Likewise.
10404         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10405         * tests/uniwidth/test-u16-width.c: Likewise.
10406         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10407         * tests/uniwidth/test-u32-width.c: Likewise.
10408         * tests/uniwidth/test-uc_width.c: Likewise.
10409         * tests/uniwidth/test-uc_width2.c: Likewise.
10410         * modules/acl-tests (Files): Add tests/macros.h.
10411         * modules/areadlink-tests (Files): Likewise.
10412         * modules/areadlink-with-size-tests (Files): Likewise.
10413         * modules/areadlinkat-tests (Files): Likewise.
10414         * modules/areadlinkat-with-size-tests (Files): Likewise.
10415         * modules/argmatch-tests (Files): Likewise.
10416         * modules/argv-iter-tests (Files): Likewise.
10417         * modules/array-list-tests (Files): Likewise.
10418         * modules/array-mergesort-tests (Files): Likewise.
10419         * modules/array-oset-tests (Files): Likewise.
10420         * modules/avltree-list-tests (Files): Likewise.
10421         * modules/avltree-oset-tests (Files): Likewise.
10422         * modules/avltreehash-list-tests (Files): Likewise.
10423         * modules/base64-tests (Files): Likewise.
10424         * modules/binary-io-tests (Files): Likewise.
10425         * modules/bitrotate-tests (Files): Likewise.
10426         * modules/btowc-tests (Files): Likewise.
10427         * modules/byteswap-tests (Files): Likewise.
10428         * modules/c-ctype-tests (Files): Likewise.
10429         * modules/c-stack-tests (Files): Likewise.
10430         * modules/c-strcase-tests (Files): Likewise.
10431         * modules/c-strcasestr-tests (Files): Likewise.
10432         * modules/c-strstr-tests (Files): Likewise.
10433         * modules/canonicalize-lgpl-tests (Files): Likewise.
10434         * modules/canonicalize-tests (Files): Likewise.
10435         * modules/carray-list-tests (Files): Likewise.
10436         * modules/ceilf-tests (Files): Likewise.
10437         * modules/ceill-tests (Files): Likewise.
10438         * modules/chown-tests (Files): Likewise.
10439         * modules/cloexec-tests (Files): Likewise.
10440         * modules/copy-file-tests (Files): Likewise.
10441         * modules/count-one-bits-tests (Files): Likewise.
10442         * modules/dprintf-posix-tests (Files): Likewise.
10443         * modules/dup2-tests (Files): Likewise.
10444         * modules/dup3-tests (Files): Likewise.
10445         * modules/duplocale-tests (Files): Likewise.
10446         * modules/fbufmode-tests (Files): Likewise.
10447         * modules/fchdir-tests (Files): Likewise.
10448         * modules/fcntl-safer-tests (Files): Likewise.
10449         * modules/fcntl-tests (Files): Likewise.
10450         * modules/fdopendir-tests (Files): Likewise.
10451         * modules/fdutimensat-tests (Files): Likewise.
10452         * modules/fflush-tests (Files): Likewise.
10453         * modules/filevercmp-tests (Files): Likewise.
10454         * modules/flock-tests (Files): Likewise.
10455         * modules/floorf-tests (Files): Likewise.
10456         * modules/floorl-tests (Files): Likewise.
10457         * modules/fnmatch-tests (Files): Likewise.
10458         * modules/fopen-safer-tests (Files): Likewise.
10459         * modules/fopen-tests (Files): Likewise.
10460         * modules/fpending-tests (Files): Likewise.
10461         * modules/fprintf-posix-tests (Files): Likewise.
10462         * modules/fpurge-tests (Files): Likewise.
10463         * modules/freadable-tests (Files): Likewise.
10464         * modules/freadahead-tests (Files): Likewise.
10465         * modules/freading-tests (Files): Likewise.
10466         * modules/freadptr-tests (Files): Likewise.
10467         * modules/freadseek-tests (Files): Likewise.
10468         * modules/freopen-tests (Files): Likewise.
10469         * modules/frexp-nolibm-tests (Files): Likewise.
10470         * modules/frexp-tests (Files): Likewise.
10471         * modules/frexpl-nolibm-tests (Files): Likewise.
10472         * modules/frexpl-tests (Files): Likewise.
10473         * modules/fseek-tests (Files): Likewise.
10474         * modules/fseeko-tests (Files): Likewise.
10475         * modules/fstrcmp-tests (Files): Likewise.
10476         * modules/fsync-tests (Files): Likewise.
10477         * modules/ftell-tests (Files): Likewise.
10478         * modules/ftello-tests (Files): Likewise.
10479         * modules/func-tests (Files): Likewise.
10480         * modules/futimens-tests (Files): Likewise.
10481         * modules/fwritable-tests (Files): Likewise.
10482         * modules/fwriting-tests (Files): Likewise.
10483         * modules/getcwd-tests (Files): Likewise.
10484         * modules/getdate-tests (Files): Likewise.
10485         * modules/getdelim-tests (Files): Likewise.
10486         * modules/getdtablesize-tests (Files): Likewise.
10487         * modules/getgroups-tests (Files): Likewise.
10488         * modules/getline-tests (Files): Likewise.
10489         * modules/getndelim2-tests (Files): Likewise.
10490         * modules/glob-tests (Files): Likewise.
10491         * modules/hash-tests (Files): Likewise.
10492         * modules/i-ring-tests (Files): Likewise.
10493         * modules/iconv-tests (Files): Likewise.
10494         * modules/iconv_open-utf-tests (Files): Likewise.
10495         * modules/idpriv-drop-tests (Files): Likewise.
10496         * modules/idpriv-droptemp-tests (Files): Likewise.
10497         * modules/inet_ntop-tests (Files): Likewise.
10498         * modules/inet_pton-tests (Files): Likewise.
10499         * modules/isblank-tests (Files): Likewise.
10500         * modules/isfinite-tests (Files): Likewise.
10501         * modules/isinf-tests (Files): Likewise.
10502         * modules/isnan-tests (Files): Likewise.
10503         * modules/isnand-nolibm-tests (Files): Likewise.
10504         * modules/isnand-tests (Files): Likewise.
10505         * modules/isnanf-nolibm-tests (Files): Likewise.
10506         * modules/isnanf-tests (Files): Likewise.
10507         * modules/isnanl-nolibm-tests (Files): Likewise.
10508         * modules/isnanl-tests (Files): Likewise.
10509         * modules/lchown-tests (Files): Likewise.
10510         * modules/ldexpl-tests (Files): Likewise.
10511         * modules/link-tests (Files): Likewise.
10512         * modules/linkat-tests (Files): Likewise.
10513         * modules/linked-list-tests (Files): Likewise.
10514         * modules/linkedhash-list-tests (Files): Likewise.
10515         * modules/localename-tests (Files): Likewise.
10516         * modules/lseek-tests (Files): Likewise.
10517         * modules/lstat-tests (Files): Likewise.
10518         * modules/mbmemcasecmp-tests (Files): Likewise.
10519         * modules/mbmemcasecoll-tests (Files): Likewise.
10520         * modules/mbrtowc-tests (Files): Likewise.
10521         * modules/mbscasecmp-tests (Files): Likewise.
10522         * modules/mbscasestr-tests (Files): Likewise.
10523         * modules/mbschr-tests (Files): Likewise.
10524         * modules/mbscspn-tests (Files): Likewise.
10525         * modules/mbsinit-tests (Files): Likewise.
10526         * modules/mbsncasecmp-tests (Files): Likewise.
10527         * modules/mbsnrtowcs-tests (Files): Likewise.
10528         * modules/mbspbrk-tests (Files): Likewise.
10529         * modules/mbspcasecmp-tests (Files): Likewise.
10530         * modules/mbsrchr-tests (Files): Likewise.
10531         * modules/mbsrtowcs-tests (Files): Likewise.
10532         * modules/mbsspn-tests (Files): Likewise.
10533         * modules/mbsstr-tests (Files): Likewise.
10534         * modules/memchr-tests (Files): Likewise.
10535         * modules/memchr2-tests (Files): Likewise.
10536         * modules/memcmp-tests (Files): Likewise.
10537         * modules/memmem-tests (Files): Likewise.
10538         * modules/memrchr-tests (Files): Likewise.
10539         * modules/mkdir-tests (Files): Likewise.
10540         * modules/mkfifo-tests (Files): Likewise.
10541         * modules/mkfifoat-tests (Files): Likewise.
10542         * modules/mknod-tests (Files): Likewise.
10543         * modules/nanosleep-tests (Files): Likewise.
10544         * modules/nl_langinfo-tests (Files): Likewise.
10545         * modules/obstack-printf-tests (Files): Likewise.
10546         * modules/open-tests (Files): Likewise.
10547         * modules/openat-tests (Files): Likewise.
10548         * modules/pipe-filter-gi-tests (Files): Likewise.
10549         * modules/pipe-filter-ii-tests (Files): Likewise.
10550         * modules/pipe2-tests (Files): Likewise.
10551         * modules/popen-safer-tests (Files): Likewise.
10552         * modules/popen-tests (Files): Likewise.
10553         * modules/posixtm-tests (Files): Likewise.
10554         * modules/pread-tests (Files): Likewise.
10555         * modules/printf-frexp-tests (Files): Likewise.
10556         * modules/printf-frexpl-tests (Files): Likewise.
10557         * modules/printf-posix-tests (Files): Likewise.
10558         * modules/priv-set-tests (Files): Likewise.
10559         * modules/quotearg-tests (Files): Likewise.
10560         * modules/random_r-tests (Files): Likewise.
10561         * modules/rawmemchr-tests (Files): Likewise.
10562         * modules/rbtree-list-tests (Files): Likewise.
10563         * modules/rbtree-oset-tests (Files): Likewise.
10564         * modules/rbtreehash-list-tests (Files): Likewise.
10565         * modules/readlink-tests (Files): Likewise.
10566         * modules/remove-tests (Files): Likewise.
10567         * modules/rename-tests (Files): Likewise.
10568         * modules/renameat-tests (Files): Likewise.
10569         * modules/rmdir-tests (Files): Likewise.
10570         * modules/round-tests (Files): Likewise.
10571         * modules/roundf-tests (Files): Likewise.
10572         * modules/roundl-tests (Files): Likewise.
10573         * modules/safe-alloc-tests (Files): Likewise.
10574         * modules/setenv-tests (Files): Likewise.
10575         * modules/sigaction-tests (Files): Likewise.
10576         * modules/signbit-tests (Files): Likewise.
10577         * modules/sleep-tests (Files): Likewise.
10578         * modules/snprintf-posix-tests (Files): Likewise.
10579         * modules/snprintf-tests (Files): Likewise.
10580         * modules/sprintf-posix-tests (Files): Likewise.
10581         * modules/stat-tests (Files): Likewise.
10582         * modules/stat-time-tests (Files): Likewise.
10583         * modules/strcasestr-tests (Files): Likewise.
10584         * modules/strchrnul-tests (Files): Likewise.
10585         * modules/strerror-tests (Files): Likewise.
10586         * modules/striconv-tests (Files): Likewise.
10587         * modules/striconveh-tests (Files): Likewise.
10588         * modules/striconveha-tests (Files): Likewise.
10589         * modules/strsignal-tests (Files): Likewise.
10590         * modules/strstr-tests (Files): Likewise.
10591         * modules/strtod-tests (Files): Likewise.
10592         * modules/strverscmp-tests (Files): Likewise.
10593         * modules/symlink-tests (Files): Likewise.
10594         * modules/symlinkat-tests (Files): Likewise.
10595         * modules/trunc-tests (Files): Likewise.
10596         * modules/truncf-tests (Files): Likewise.
10597         * modules/truncl-tests (Files): Likewise.
10598         * modules/uname-tests (Files): Likewise.
10599         * modules/unicase/cased-tests (Files): Likewise.
10600         * modules/unicase/ignorable-tests (Files): Likewise.
10601         * modules/unicase/locale-language-tests (Files): Likewise.
10602         * modules/unicase/tolower-tests (Files): Likewise.
10603         * modules/unicase/totitle-tests (Files): Likewise.
10604         * modules/unicase/toupper-tests (Files): Likewise.
10605         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10606         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10607         * modules/unicase/u8-casefold-tests (Files): Likewise.
10608         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10609         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10610         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10611         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10612         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10613         * modules/unicase/u8-tolower-tests (Files): Likewise.
10614         * modules/unicase/u8-totitle-tests (Files): Likewise.
10615         * modules/unicase/u8-toupper-tests (Files): Likewise.
10616         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10617         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10618         * modules/unicase/u16-casefold-tests (Files): Likewise.
10619         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10620         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10621         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10622         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10623         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10624         * modules/unicase/u16-tolower-tests (Files): Likewise.
10625         * modules/unicase/u16-totitle-tests (Files): Likewise.
10626         * modules/unicase/u16-toupper-tests (Files): Likewise.
10627         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10628         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10629         * modules/unicase/u32-casefold-tests (Files): Likewise.
10630         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10631         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10632         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10633         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10634         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10635         * modules/unicase/u32-tolower-tests (Files): Likewise.
10636         * modules/unicase/u32-totitle-tests (Files): Likewise.
10637         * modules/unicase/u32-toupper-tests (Files): Likewise.
10638         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10639         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10640         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10641         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10642         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10643         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10644         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10645         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10646         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10647         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10648         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10649         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10650         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10651         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10652         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10653         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10654         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10655         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10656         * modules/unictype/block-list-tests (Files): Likewise.
10657         * modules/unictype/block-of-tests (Files): Likewise.
10658         * modules/unictype/block-test-tests (Files): Likewise.
10659         * modules/unictype/category-C-tests (Files): Likewise.
10660         * modules/unictype/category-Cc-tests (Files): Likewise.
10661         * modules/unictype/category-Cf-tests (Files): Likewise.
10662         * modules/unictype/category-Cn-tests (Files): Likewise.
10663         * modules/unictype/category-Co-tests (Files): Likewise.
10664         * modules/unictype/category-Cs-tests (Files): Likewise.
10665         * modules/unictype/category-L-tests (Files): Likewise.
10666         * modules/unictype/category-Ll-tests (Files): Likewise.
10667         * modules/unictype/category-Lm-tests (Files): Likewise.
10668         * modules/unictype/category-Lo-tests (Files): Likewise.
10669         * modules/unictype/category-Lt-tests (Files): Likewise.
10670         * modules/unictype/category-Lu-tests (Files): Likewise.
10671         * modules/unictype/category-M-tests (Files): Likewise.
10672         * modules/unictype/category-Mc-tests (Files): Likewise.
10673         * modules/unictype/category-Me-tests (Files): Likewise.
10674         * modules/unictype/category-Mn-tests (Files): Likewise.
10675         * modules/unictype/category-N-tests (Files): Likewise.
10676         * modules/unictype/category-Nd-tests (Files): Likewise.
10677         * modules/unictype/category-Nl-tests (Files): Likewise.
10678         * modules/unictype/category-No-tests (Files): Likewise.
10679         * modules/unictype/category-P-tests (Files): Likewise.
10680         * modules/unictype/category-Pc-tests (Files): Likewise.
10681         * modules/unictype/category-Pd-tests (Files): Likewise.
10682         * modules/unictype/category-Pe-tests (Files): Likewise.
10683         * modules/unictype/category-Pf-tests (Files): Likewise.
10684         * modules/unictype/category-Pi-tests (Files): Likewise.
10685         * modules/unictype/category-Po-tests (Files): Likewise.
10686         * modules/unictype/category-Ps-tests (Files): Likewise.
10687         * modules/unictype/category-S-tests (Files): Likewise.
10688         * modules/unictype/category-Sc-tests (Files): Likewise.
10689         * modules/unictype/category-Sk-tests (Files): Likewise.
10690         * modules/unictype/category-Sm-tests (Files): Likewise.
10691         * modules/unictype/category-So-tests (Files): Likewise.
10692         * modules/unictype/category-Z-tests (Files): Likewise.
10693         * modules/unictype/category-Zl-tests (Files): Likewise.
10694         * modules/unictype/category-Zp-tests (Files): Likewise.
10695         * modules/unictype/category-Zs-tests (Files): Likewise.
10696         * modules/unictype/category-and-not-tests (Files): Likewise.
10697         * modules/unictype/category-and-tests (Files): Likewise.
10698         * modules/unictype/category-byname-tests (Files): Likewise.
10699         * modules/unictype/category-name-tests (Files): Likewise.
10700         * modules/unictype/category-none-tests (Files): Likewise.
10701         * modules/unictype/category-of-tests (Files): Likewise.
10702         * modules/unictype/category-or-tests (Files): Likewise.
10703         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10704         * modules/unictype/combining-class-tests (Files): Likewise.
10705         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10706         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10707         * modules/unictype/ctype-blank-tests (Files): Likewise.
10708         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10709         * modules/unictype/ctype-digit-tests (Files): Likewise.
10710         * modules/unictype/ctype-graph-tests (Files): Likewise.
10711         * modules/unictype/ctype-lower-tests (Files): Likewise.
10712         * modules/unictype/ctype-print-tests (Files): Likewise.
10713         * modules/unictype/ctype-punct-tests (Files): Likewise.
10714         * modules/unictype/ctype-space-tests (Files): Likewise.
10715         * modules/unictype/ctype-upper-tests (Files): Likewise.
10716         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10717         * modules/unictype/decimal-digit-tests (Files): Likewise.
10718         * modules/unictype/digit-tests (Files): Likewise.
10719         * modules/unictype/mirror-tests (Files): Likewise.
10720         * modules/unictype/numeric-tests (Files): Likewise.
10721         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10722         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10723         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10724         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10725         Likewise.
10726         * modules/unictype/property-bidi-block-separator-tests (Files):
10727         Likewise.
10728         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10729         Likewise.
10730         * modules/unictype/property-bidi-common-separator-tests (Files):
10731         Likewise.
10732         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10733         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10734         Likewise.
10735         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10736         Likewise.
10737         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10738         Likewise.
10739         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10740         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10741         Likewise.
10742         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10743         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10744         Likewise.
10745         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10746         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10747         * modules/unictype/property-bidi-segment-separator-tests (Files):
10748         Likewise.
10749         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10750         * modules/unictype/property-byname-tests (Files): Likewise.
10751         * modules/unictype/property-combining-tests (Files): Likewise.
10752         * modules/unictype/property-composite-tests (Files): Likewise.
10753         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10754         * modules/unictype/property-dash-tests (Files): Likewise.
10755         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10756         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10757         Likewise.
10758         * modules/unictype/property-deprecated-tests (Files): Likewise.
10759         * modules/unictype/property-diacritic-tests (Files): Likewise.
10760         * modules/unictype/property-extender-tests (Files): Likewise.
10761         * modules/unictype/property-format-control-tests (Files): Likewise.
10762         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10763         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10764         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10765         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10766         * modules/unictype/property-hyphen-tests (Files): Likewise.
10767         * modules/unictype/property-id-continue-tests (Files): Likewise.
10768         * modules/unictype/property-id-start-tests (Files): Likewise.
10769         * modules/unictype/property-ideographic-tests (Files): Likewise.
10770         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10771         * modules/unictype/property-ids-trinary-operator-tests (Files):
10772         Likewise.
10773         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10774         * modules/unictype/property-iso-control-tests (Files): Likewise.
10775         * modules/unictype/property-join-control-tests (Files): Likewise.
10776         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10777         * modules/unictype/property-line-separator-tests (Files): Likewise.
10778         * modules/unictype/property-logical-order-exception-tests (Files):
10779         Likewise.
10780         * modules/unictype/property-lowercase-tests (Files): Likewise.
10781         * modules/unictype/property-math-tests (Files): Likewise.
10782         * modules/unictype/property-non-break-tests (Files): Likewise.
10783         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10784         * modules/unictype/property-numeric-tests (Files): Likewise.
10785         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10786         * modules/unictype/property-other-default-ignorable-code-point-tests
10787         (Files): Likewise.
10788         * modules/unictype/property-other-grapheme-extend-tests (Files):
10789         Likewise.
10790         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10791         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10792         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10793         * modules/unictype/property-other-math-tests (Files): Likewise.
10794         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10795         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10796         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10797         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10798         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10799         * modules/unictype/property-private-use-tests (Files): Likewise.
10800         * modules/unictype/property-punctuation-tests (Files): Likewise.
10801         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10802         * modules/unictype/property-radical-tests (Files): Likewise.
10803         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10804         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10805         * modules/unictype/property-space-tests (Files): Likewise.
10806         * modules/unictype/property-terminal-punctuation-tests (Files):
10807         Likewise.
10808         * modules/unictype/property-test-tests (Files): Likewise.
10809         * modules/unictype/property-titlecase-tests (Files): Likewise.
10810         * modules/unictype/property-unassigned-code-value-tests (Files):
10811         Likewise.
10812         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10813         * modules/unictype/property-uppercase-tests (Files): Likewise.
10814         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10815         * modules/unictype/property-white-space-tests (Files): Likewise.
10816         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10817         * modules/unictype/property-xid-start-tests (Files): Likewise.
10818         * modules/unictype/property-zero-width-tests (Files): Likewise.
10819         * modules/unictype/scripts-tests (Files): Likewise.
10820         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10821         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10822         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10823         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10824         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10825         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10826         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10827         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10828         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
10829         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
10830         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
10831         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
10832         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
10833         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
10834         * modules/uninorm/composition-tests (Files): Likewise.
10835         * modules/uninorm/decomposing-form-tests (Files): Likewise.
10836         * modules/uninorm/decomposition-tests (Files): Likewise.
10837         * modules/uninorm/filter-tests (Files): Likewise.
10838         * modules/uninorm/nfc-tests (Files): Likewise.
10839         * modules/uninorm/nfd-tests (Files): Likewise.
10840         * modules/uninorm/nfkc-tests (Files): Likewise.
10841         * modules/uninorm/nfkd-tests (Files): Likewise.
10842         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
10843         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
10844         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
10845         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
10846         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
10847         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
10848         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
10849         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
10850         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
10851         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
10852         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
10853         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
10854         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
10855         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
10856         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
10857         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
10858         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
10859         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
10860         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
10861         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
10862         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
10863         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
10864         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
10865         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
10866         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
10867         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
10868         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
10869         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
10870         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
10871         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
10872         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
10873         * modules/uniwidth/u8-width-tests (Files): Likewise.
10874         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
10875         * modules/uniwidth/u16-width-tests (Files): Likewise.
10876         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
10877         * modules/uniwidth/u32-width-tests (Files): Likewise.
10878         * modules/uniwidth/width-tests (Files): Likewise.
10879         * modules/unlink-tests (Files): Likewise.
10880         * modules/unsetenv-tests (Files): Likewise.
10881         * modules/usleep-tests (Files): Likewise.
10882         * modules/utimens-tests (Files): Likewise.
10883         * modules/utimensat-tests (Files): Likewise.
10884         * modules/vasnprintf-posix-tests (Files): Likewise.
10885         * modules/vasnprintf-tests (Files): Likewise.
10886         * modules/vasprintf-posix-tests (Files): Likewise.
10887         * modules/vasprintf-tests (Files): Likewise.
10888         * modules/vdprintf-posix-tests (Files): Likewise.
10889         * modules/vfprintf-posix-tests (Files): Likewise.
10890         * modules/vprintf-posix-tests (Files): Likewise.
10891         * modules/vsnprintf-posix-tests (Files): Likewise.
10892         * modules/vsnprintf-tests (Files): Likewise.
10893         * modules/vsprintf-posix-tests (Files): Likewise.
10894         * modules/wcrtomb-tests (Files): Likewise.
10895         * modules/wcsnrtombs-tests (Files): Likewise.
10896         * modules/wcsrtombs-tests (Files): Likewise.
10897         * modules/wctype-tests (Files): Likewise.
10898         * modules/wcwidth-tests (Files): Likewise.
10899         * modules/xmemdup0-tests (Files): Likewise.
10900         * modules/xprintf-posix-tests (Files): Likewise.
10901         * modules/xvasprintf-tests (Files): Likewise.
10902
10903 2009-12-24  Eric Blake  <ebb9@byu.net>
10904
10905         test-nanosleep: fix typo
10906         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
10907         patch.
10908         Reported by Bruno Haible.
10909
10910 2009-12-24  Bruno Haible  <bruno@clisp.org>
10911
10912         Reduce namespace pollution on glibc systems.
10913         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
10914         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
10915         systems.
10916         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
10917         <getopt.h> on glibc systems.
10918         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
10919         systems.
10920         * lib/fcntl.c: Include <unistd.h> here instead.
10921
10922 2009-12-24  Bruno Haible  <bruno@clisp.org>
10923
10924         * lib/stdlib.in.h (includes): Fix typo in today's commit.
10925
10926 2009-12-24  Eric Blake  <ebb9@byu.net>
10927
10928         tests: add signature checks
10929         * tests/signature.h (SIGNATURE_CHECK): New file.
10930         * modules/atexit-tests (Files): Use it.
10931         * modules/btowc-tests (Files): Likewise.
10932         * modules/canonicalize-lgpl-tests (Files): Likewise.
10933         * modules/ceilf-tests (Files): Likewise.
10934         * modules/ceill-tests (Files): Likewise.
10935         * modules/chown-tests (Files): Likewise.
10936         * modules/dprintf-posix-tests (Files): Likewise.
10937         * modules/dup2-tests (Files): Likewise.
10938         * modules/dup3-tests (Files): Likewise.
10939         * modules/duplocale-tests (Files): Likewise.
10940         * modules/fchdir-tests (Files): Likewise.
10941         * modules/fcntl-tests (Files): Likewise.
10942         * modules/fdopendir-tests (Files): Likewise.
10943         * modules/fflush-tests (Files): Likewise.
10944         * modules/flock-tests (Files): Likewise.
10945         * modules/floorf-tests (Files): Likewise.
10946         * modules/floorl-tests (Files): Likewise.
10947         * modules/fnmatch-tests (Files): Likewise.
10948         * modules/fopen-tests (Files): Likewise.
10949         * modules/fprintf-posix-tests (Files): Likewise.
10950         * modules/freopen-tests (Files): Likewise.
10951         * modules/frexp-nolibm-tests (Files): Likewise.
10952         * modules/frexp-tests (Files): Likewise.
10953         * modules/frexpl-nolibm-tests (Files): Likewise.
10954         * modules/frexpl-tests (Files): Likewise.
10955         * modules/fseek-tests (Files): Likewise.
10956         * modules/fseeko-tests (Files): Likewise.
10957         * modules/fsync-tests (Files): Likewise.
10958         * modules/ftell-tests (Files): Likewise.
10959         * modules/ftello-tests (Files): Likewise.
10960         * modules/futimens-tests (Files): Likewise.
10961         * modules/getaddrinfo-tests (Files): Likewise.
10962         * modules/getcwd-tests (Files): Likewise.
10963         * modules/getdelim-tests (Files): Likewise.
10964         * modules/getdtablesize-tests (Files): Likewise.
10965         * modules/getgroups-tests (Files): Likewise.
10966         * modules/gethostname-tests (Files): Likewise.
10967         * modules/getline-tests (Files): Likewise.
10968         * modules/getopt-posix-tests (Files): Likewise.
10969         * modules/gettimeofday-tests (Files): Likewise.
10970         * modules/glob-tests (Files): Likewise.
10971         * modules/iconv-tests (Files): Likewise.
10972         * modules/inet_ntop-tests (Files): Likewise.
10973         * modules/inet_pton-tests (Files): Likewise.
10974         * modules/isblank-tests (Files): Likewise.
10975         * modules/lchown-tests (Files): Likewise.
10976         * modules/ldexpl-tests (Files): Likewise.
10977         * modules/link-tests (Files): Likewise.
10978         * modules/linkat-tests (Files): Likewise.
10979         * modules/lseek-tests (Files): Likewise.
10980         * modules/lstat-tests (Files): Likewise.
10981         * modules/mbrtowc-tests (Files): Likewise.
10982         * modules/mbsinit-tests (Files): Likewise.
10983         * modules/mbsnrtowcs-tests (Files): Likewise.
10984         * modules/mbsrtowcs-tests (Files): Likewise.
10985         * modules/memchr-tests (Files): Likewise.
10986         * modules/memcmp-tests (Files): Likewise.
10987         * modules/memmem-tests (Files): Likewise.
10988         * modules/memrchr-tests (Files): Likewise.
10989         * modules/mkdir-tests (Files): Likewise.
10990         * modules/mkfifo-tests (Files): Likewise.
10991         * modules/mkfifoat-tests (Files): Likewise.
10992         * modules/mknod-tests (Files): Likewise.
10993         * modules/nanosleep-tests (Files): Likewise.
10994         * modules/nl_langinfo-tests (Files): Likewise.
10995         * modules/obstack-printf-tests (Files): Likewise.
10996         * modules/open-tests (Files): Likewise.
10997         * modules/openat-tests (Files): Likewise.
10998         * modules/perror-tests (Files): Likewise.
10999         * modules/pipe2-tests (Files): Likewise.
11000         * modules/poll-tests (Files): Likewise.
11001         * modules/popen-tests (Files): Likewise.
11002         * modules/posix_spawn-tests (Files): Likewise.
11003         * modules/posix_spawnp-tests (Files): Likewise.
11004         * modules/pread-tests (Files): Likewise.
11005         * modules/printf-posix-tests (Files): Likewise.
11006         * modules/pty-tests (Files): Likewise.
11007         * modules/random_r-tests (Files): Likewise.
11008         * modules/rawmemchr-tests (Files): Likewise.
11009         * modules/readlink-tests (Files): Likewise.
11010         * modules/remove-tests (Files): Likewise.
11011         * modules/rename-tests (Files): Likewise.
11012         * modules/renameat-tests (Files): Likewise.
11013         * modules/rmdir-tests (Files): Likewise.
11014         * modules/round-tests (Files): Likewise.
11015         * modules/roundf-tests (Files): Likewise.
11016         * modules/roundl-tests (Files): Likewise.
11017         * modules/select-tests (Files): Likewise.
11018         * modules/setenv-tests (Files): Likewise.
11019         * modules/sigaction-tests (Files): Likewise.
11020         * modules/sleep-tests (Files): Likewise.
11021         * modules/snprintf-posix-tests (Files): Likewise.
11022         * modules/snprintf-tests (Files): Likewise.
11023         * modules/sprintf-posix-tests (Files): Likewise.
11024         * modules/stat-tests (Files): Likewise.
11025         * modules/strcasestr-tests (Files): Likewise.
11026         * modules/strchrnul-tests (Files): Likewise.
11027         * modules/strerror-tests (Files): Likewise.
11028         * modules/strsignal-tests (Files): Likewise.
11029         * modules/strstr-tests (Files): Likewise.
11030         * modules/strtod-tests (Files): Likewise.
11031         * modules/strverscmp-tests (Files): Likewise.
11032         * modules/symlink-tests (Files): Likewise.
11033         * modules/symlinkat-tests (Files): Likewise.
11034         * modules/times-tests (Files): Likewise.
11035         * modules/trunc-tests (Files): Likewise.
11036         * modules/truncf-tests (Files): Likewise.
11037         * modules/truncl-tests (Files): Likewise.
11038         * modules/tsearch-tests (Files): Likewise.
11039         * modules/uname-tests (Files): Likewise.
11040         * modules/unlink-tests (Files): Likewise.
11041         * modules/unsetenv-tests (Files): Likewise.
11042         * modules/usleep-tests (Files): Likewise.
11043         * modules/utimensat-tests (Files): Likewise.
11044         * modules/vasprintf-tests (Files): Likewise.
11045         * modules/vdprintf-posix-tests (Files): Likewise.
11046         * modules/vfprintf-posix-tests (Files): Likewise.
11047         * modules/vprintf-posix-tests (Files): Likewise.
11048         * modules/vsnprintf-posix-tests (Files): Likewise.
11049         * modules/vsnprintf-tests (Files): Likewise.
11050         * modules/vsprintf-posix-tests (Files): Likewise.
11051         * modules/wcrtomb-tests (Files): Likewise.
11052         * modules/wcsnrtombs-tests (Files): Likewise.
11053         * modules/wcsrtombs-tests (Files): Likewise.
11054         * modules/wcwidth-tests (Files): Likewise.
11055         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
11056         * tests/test-isinf.c (isinf): Likewise.
11057         * tests/test-isnan.c (isnan): Likewise.
11058         * tests/test-signbit.c (signbit): Likewise.
11059         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
11060         declaration, either as macro or with correct signature.
11061         (select): Ensure function under test is declared with correct
11062         signature in correct header.
11063         * tests/test-atexit.c (atexit): Likewise.
11064         * tests/test-btowc.c (btowc): Likewise.
11065         * tests/test-canonicalize-lgpl.c (realpath)
11066         (canonicalize_file_name): Likewise.
11067         * tests/test-ceilf1.c (ceilf): Likewise.
11068         * tests/test-ceill.c (ceill): Likewise.
11069         * tests/test-chown.c (chown): Likewise.
11070         * tests/test-dprintf-posix.c (dprintf): Likewise.
11071         * tests/test-dup2.c (dup2): Likewise.
11072         * tests/test-dup3.c (dup3): Likewise.
11073         * tests/test-duplocale.c (duplocale): Likewise.
11074         * tests/test-fchdir.c (fchdir): Likewise.
11075         * tests/test-fchownat.c (fchownat): Likewise.
11076         * tests/test-fcntl.c (fcntl): Likewise.
11077         * tests/test-fdopendir.c (fdopendir): Likewise.
11078         * tests/test-fflush.c (fflush): Likewise.
11079         * tests/test-flock.c (flock): Likewise.
11080         * tests/test-floorf1.c (floorf): Likewise.
11081         * tests/test-floorl.c (floorl): Likewise.
11082         * tests/test-fnmatch.c (fnmatch): Likewise.
11083         * tests/test-fopen.c (fopen): Likewise.
11084         * tests/test-fprintf-posix.c (fprintf): Likewise.
11085         * tests/test-freopen.c (freopen): Likewise.
11086         * tests/test-frexp.c (frexp): Likewise.
11087         * tests/test-frexpl.c (frexpl): Likewise.
11088         * tests/test-fseek.c (fseek): Likewise.
11089         * tests/test-fseeko.c (fseeko): Likewise.
11090         * tests/test-fstatat.c (fstatat): Likewise.
11091         * tests/test-fsync.c (fsync): Likewise.
11092         * tests/test-ftell.c (ftell): Likewise.
11093         * tests/test-ftello.c (ftello): Likewise.
11094         * tests/test-futimens.c (futimens): Likewise.
11095         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
11096         (gai_strerror): Likewise.
11097         * tests/test-getcwd.c (getcwd): Likewise.
11098         * tests/test-getdelim.c (getdelim): Likewise.
11099         * tests/test-getdtablesize.c (getdtablesize): Likewise.
11100         * tests/test-getgroups.c (getgroups): Likewise.
11101         * tests/test-gethostname.c (gethostname): Likewise.
11102         * tests/test-getline.c (getline): Likewise.
11103         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
11104         Likewise.
11105         * tests/test-gettimeofday.c (gettimeofday): Likewise.
11106         * tests/test-glob.c (glob, globfree): Likewise.
11107         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
11108         * tests/test-inet_ntop.c (inet_ntop): Likewise.
11109         * tests/test-inet_pton.c (inet_pton): Likewise.
11110         * tests/test-isblank.c (isblank): Likewise.
11111         * tests/test-lchown.c (lchown): Likewise.
11112         * tests/test-ldexpl.c (ldexpl): Likewise.
11113         * tests/test-link.c (link): Likewise.
11114         * tests/test-linkat.c (linkat): Likewise.
11115         * tests/test-lseek.c (lseek): Likewise.
11116         * tests/test-lstat.c (lstat): Likewise.
11117         * tests/test-mbrtowc.c (mbrtowc): Likewise.
11118         * tests/test-mbsinit.c (mbsinit): Likewise.
11119         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
11120         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
11121         * tests/test-memchr.c (memchr): Likewise.
11122         * tests/test-memcmp.c (memcmp): Likewise.
11123         * tests/test-memmem.c (memmem): Likewise.
11124         * tests/test-memrchr.c (memrchr): Likewise.
11125         * tests/test-mkdir.c (mkdir): Likewise.
11126         * tests/test-mkdirat.c (mkdirat): Likewise.
11127         * tests/test-mkfifo.c (mkfifo): Likewise.
11128         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
11129         * tests/test-mknod.c (mknod): Likewise.
11130         * tests/test-nanosleep.c (nanosleep): Likewise.
11131         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
11132         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
11133         Likewise.
11134         * tests/test-open.c (open): Likewise.
11135         * tests/test-openat.c (openat): Likewise.
11136         * tests/test-perror.c (perror): Likewise.
11137         * tests/test-pipe2.c (pipe2): Likewise.
11138         * tests/test-poll.c (poll): Likewise.
11139         * tests/test-popen.c (popen, pclose): Likewise.
11140         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
11141         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
11142         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
11143         (posix_spawn_file_actions_destroy)
11144         (posix_spawn_file_actions_addclose)
11145         (posix_spawn_file_actions_addopen)
11146         (posix_spawn_file_actions_adddup2): Likewise.
11147         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
11148         * tests/test-pread.c (pread): Likewise.
11149         * tests/test-printf-posix.c (printf): Likewise.
11150         * tests/test-pty.c (openpty, forkpty): Likewise.
11151         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
11152         (random_r): Likewise.
11153         * tests/test-rawmemchr.c (rawmemchr): Likewise.
11154         * tests/test-readlink.c (readlink): Likewise.
11155         * tests/test-remove.c (remove): Likewise.
11156         * tests/test-rename.c (rename): Likewise.
11157         * tests/test-renameat.c (renameat): Likewise.
11158         * tests/test-rmdir.c (rmdir): Likewise.
11159         * tests/test-round1.c (round): Likewise.
11160         * tests/test-roundf1.c (roundf): Likewise.
11161         * tests/test-roundl.c (roundl): Likewise.
11162         * tests/test-setenv.c (setenv): Likewise.
11163         * tests/test-sigaction.c (sigaction): Likewise.
11164         * tests/test-sleep.c (sleep): Likewise.
11165         * tests/test-snprintf.c (snprintf): Likewise.
11166         * tests/test-sprintf-posix.c (sprintf): Likewise.
11167         * tests/test-stat.c (stat): Likewise.
11168         * tests/test-stpncpy.c (stpncpy): Likewise.
11169         * tests/test-strcasestr.c (strcasestr): Likewise.
11170         * tests/test-strchrnul.c (strchrnul): Likewise.
11171         * tests/test-strerror.c (strerror): Likewise.
11172         * tests/test-strsignal.c (strsignal): Likewise.
11173         * tests/test-strstr.c (strstr): Likewise.
11174         * tests/test-strtod.c (strtod): Likewise.
11175         * tests/test-strverscmp.c (strverscmp): Likewise.
11176         * tests/test-symlink.c (symlink): Likewise.
11177         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
11178         * tests/test-times.c (times): Likewise.
11179         * tests/test-trunc1.c (trunc): Likewise.
11180         * tests/test-truncf1.c (truncf): Likewise.
11181         * tests/test-truncl.c (truncl): Likewise.
11182         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
11183         Likewise.
11184         * tests/test-uname.c (uname): Likewise.
11185         * tests/test-unlink.c (unlink): Likewise.
11186         * tests/test-unlinkat.c (unlinkat): Likewise.
11187         * tests/test-unsetenv.c (unsetenv): Likewise.
11188         * tests/test-usleep.c (usleep): Likewise.
11189         * tests/test-utimensat.c (utimensat): Likewise.
11190         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
11191         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
11192         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
11193         * tests/test-vprintf-posix.c (vprintf): Likewise.
11194         * tests/test-vsnprintf.c (vsnprintf): Likewise.
11195         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
11196         * tests/test-wcrtomb.c (wcrtomb): Likewise.
11197         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
11198         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
11199         * tests/test-wcwidth.c (wcwidth): Likewise.
11200
11201         build: pull in conditional headers during GNULIB_POSIXCHECK
11202         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
11203         definitions from any conditionally-included headers.
11204         * lib/stdlib.in.h (includes): Likewise.
11205         * lib/unistd.in.h (includes): Likewise.
11206
11207 2009-12-24  Bruno Haible  <bruno@clisp.org>
11208
11209         * tests/test-argv-iter.c: Include header file being tested immediately
11210         after config.h.
11211         * tests/test-base64.c: Likewise.
11212         * tests/test-flock.c: Likewise.
11213         * tests/test-fsync.c: Likewise.
11214         * tests/test-getdate.c: Likewise.
11215         * tests/test-getndelim2.c: Likewise.
11216         * tests/test-isfinite.c: Likewise.
11217         * tests/test-isinf.c: Likewise.
11218         * tests/test-strerror.c: Likewise.
11219         * tests/test-strsignal.c: Likewise.
11220
11221 2009-12-23  Eric Blake  <ebb9@byu.net>
11222
11223         unistd: work around cygwin bug
11224         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
11225         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
11226         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11227
11228 2009-12-23  Bruno Haible  <bruno@clisp.org>
11229
11230         localename: More tests.
11231         * tests/test-localename.c (SIZEOF): New macro.
11232         (categories): New variable.
11233         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
11234         test_locale_name_default): Add test w.r.t. thread locale.
11235         (test_locale_name_thread): New function.
11236         (main): Invoke it.
11237
11238         localename: Make aware of thread locale.
11239         * lib/localename.h (gl_locale_name_thread): New declaration.
11240         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
11241         behaviour with respect to thread locale.
11242         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
11243         <langinfo.h>, glthread/lock.h.
11244         (SIZE_BITS): New macro.
11245         (string_hash): New function.
11246         (struct hash_node): New type.
11247         (HASH_TABLE_SIZE): New macro.
11248         (struniq_hash_table, struniq_lock): New variables.
11249         (struniq): New function.
11250         (gl_locale_name_thread): New function.
11251         (gl_locale_name): Invoke it.
11252         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
11253         * modules/localename (Depends-on): Add lock.
11254         Reported by Mike Gran <spk121@yahoo.com>.
11255
11256 2009-12-23  Eric Blake  <ebb9@byu.net>
11257
11258         va-args: new module
11259         * modules/va-args: New file.
11260         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
11261         * MODULES.html.sh (Core language properties): Mention it.
11262
11263         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
11264         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
11265         named alias for __attribute__((__unused__)).
11266         * lib/chown.c: Update client.
11267         * lib/fchmodat.c: Likewise.
11268         * lib/fts.c: Likewise.
11269         * lib/getdate.y: Likewise.
11270         * lib/getgroups.c: Likewise.
11271         * lib/getopt.c: Likewise.
11272         * lib/getugroups.c: Likewise.
11273         * lib/mkdir.c: Likewise.
11274         * lib/mkfifo.c: Likewise.
11275         * lib/mkfifoat.c: Likewise.
11276         * lib/mknod.c: Likewise.
11277         * lib/mknodat.c: Likewise.
11278         * lib/readlink.c: Likewise.
11279         * lib/se-context.in.h: Likewise.
11280         * lib/se-selinux.in.h: Likewise.
11281         * lib/sockets.c: Likewise.
11282         * lib/symlink.c: Likewise.
11283         * lib/symlinkat.c: Likewise.
11284         * lib/unicodeio.c: Likewise.
11285         * lib/unistr.h: Likewise.
11286         * tests/test-areadlink.c: Likewise.
11287         * tests/test-areadlinkat.c: Likewise.
11288         * tests/test-filenamecat.c: Likewise.
11289         * tests/test-fseeko.c: Likewise.
11290         * tests/test-ftello.c: Likewise.
11291         * tests/test-getdate.c: Likewise.
11292         * tests/test-getgroups.c: Likewise.
11293         * tests/test-gethostname.c: Likewise.
11294         * tests/test-quotearg.c: Likewise.
11295         * tests/test-version-etc.c: Likewise.
11296         * tests/test-xalloc-die.c: Likewise.
11297         * tests/test-xfprintf-posix.c: Likewise.
11298         * tests/test-xprintf-posix.c: Likewise.
11299         * tests/test-xvasprintf.c: Likewise.
11300
11301         tests: avoid compiler warnings
11302         * tests/test-fcntl.c (main): Delete unused parameters.
11303         * tests/test-freopen-safer.c (main): Likewise.
11304         * tests/test-xalloc-die.c (main): Mark unused parameters.
11305         * tests/test-fseeko.c (main): Likewise.
11306         * tests/test-ftello.c (main): Likewise.
11307         * tests/test-nanosleep.c (main): Avoid declaration warning.
11308         * tests/test-sleep.c (main): Likewise.
11309         * tests/test-unsetenv.c (main): Silence warning about string
11310         literal.
11311         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11312
11313 2009-12-23  Bruno Haible  <bruno@clisp.org>
11314
11315         * tests/test-localename.c (test_locale_name): New function, extracted
11316         from main. Also test mixed situations.
11317         (test_locale_name_posix, test_locale_name_environ,
11318         test_locale_name_default): New functions.
11319         (main): Invoke them all.
11320         * modules/localename-tests (configure.ac): Test for newlocale.
11321
11322 2009-12-23  Bruno Haible  <bruno@clisp.org>
11323
11324         unistd: Ensure getcwd gets declared before being overridden.
11325         * lib/unistd.in.h: Conditionally include <io.h>.
11326
11327 2009-12-22  Bruno Haible  <bruno@clisp.org>
11328
11329         wchar: Diagnose broken combination of glibc and gcc versions and flags.
11330         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
11331         (gl_WCHAR_H): Invoke it.
11332         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
11333         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
11334         Reported by Karl Berry <karl@freefriends.org>.
11335
11336 2009-12-22  Eric Blake  <ebb9@byu.net>
11337
11338         math, unistd: avoid redundant includes
11339         * lib/math.in.h (isnan): No need to re-include <math.h>.
11340         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
11341
11342         getsubopt: work around cygwin bug
11343         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
11344         avoid conflicting with system getsubopt.
11345         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
11346         bug.
11347
11348         getopt: synchronize from glibc
11349         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
11350         parameter order.  Adjust all callers.
11351         (_getopt_internal_r, main): Adjust quoting in error messages.
11352         Drop considerations for outdated POSIX 1003.2 error message.
11353         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
11354         callers.
11355         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
11356
11357         test-getopt: test stderr behavior
11358         * modules/getopt-posix-tests (Depends-on): Add dup2.
11359         * tests/test-getopt.c (ASSERT): Avoid stderr.
11360         (main): Move stderr to a temporary file.
11361         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
11362         Instead, add parameter to inform caller if output occurred.
11363         (test_getopt): Adjust all existing tests to expect silence, and
11364         add new tests of leading ":".
11365         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11366         glibc shortcomings with leading "-:" or "+:" in optstring.
11367         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11368         Likewise.
11369         * doc/posix-functions/getopt.texi (getopt): Likewise.
11370
11371         test-getopt: enhance test
11372         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
11373         supports optind=0.
11374         * tests/test-getopt.c (OPTIND_MIN): Move...
11375         * tests/test-getopt.h (OPTIND_MIN): ...here.
11376         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
11377         Require that optind=0 works, since modern BSD supports it in
11378         addition to optreset, and since coreutils expects it.
11379         (test_getopt_long_only): New test.
11380         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11381         glibc shortcomings with 'W;', and enforcement of optind=0.
11382         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11383         Likewise.
11384
11385 2009-12-21  Bruno Haible  <bruno@clisp.org>
11386
11387         localename: Improvements for MacOS X and Cygwin.
11388         * lib/localename.h (gl_locale_name_environ): New declaration.
11389         * lib/localename.c (gl_locale_name_environ): New function, extracted from
11390         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
11391         (gl_locale_name_posix): Invoke it.
11392         (gl_locale_name_default): Add comments. Use Windows native API also on
11393         Cygwin.
11394
11395 2009-12-21  Bruno Haible  <bruno@clisp.org>
11396
11397         Update list of Win32 locale ids.
11398         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
11399         (LANG_SAMI): Renamed from LANG_SAAMI.
11400         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
11401         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
11402         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
11403         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
11404         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
11405         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
11406         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
11407         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
11408         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
11409         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
11410         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
11411         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
11412         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
11413         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
11414         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
11415         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
11416         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
11417         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
11418         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
11419         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
11420         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
11421         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
11422         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
11423         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
11424         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
11425         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
11426         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
11427         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
11428         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
11429         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
11430         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
11431         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
11432         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
11433         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
11434         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
11435         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
11436         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
11437         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
11438         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
11439         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
11440         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
11441         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
11442         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
11443         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
11444         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
11445         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
11446         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
11447         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
11448         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
11449         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
11450         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
11451         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
11452         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
11453         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
11454         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
11455         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
11456         Add more languages and countries for Sami, Sorbian. Add more countries
11457         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
11458         for Pashto. Change country for Syriac, Tswana.
11459
11460 2009-12-21  Eric Blake  <ebb9@byu.net>
11461
11462         test-utimens: avoid spurious failure
11463         * tests/test-chown.h (nap): Factor...
11464         * tests/nap.h: ...into new file.
11465         * tests/test-lchown.h (nap): Avoid duplication.
11466         * tests/test-utimens-common.h (nap): Use shared implementation,
11467         necessary on file systems with 1-second resolution.
11468         * modules/chown-tests (Files): Include new file.
11469         * modules/fdutimensat-tests (Files): Likewise.
11470         * modules/futimens-tests (Files): Likewise.
11471         * modules/lchown-tests (Files): Likewise.
11472         * modules/openat-tests (Files): Likewise.
11473         * modules/utimens-tests (Files): Likewise.
11474         * modules/utimensat-tests (Files): Likewise.
11475
11476 2009-12-19  Eric Blake  <ebb9@byu.net>
11477
11478         futimens, utimensat: work around Linux bug
11479         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
11480         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11481         * lib/utimensat.c (rpl_utimensat): Work around it.
11482         * lib/futimens.c (rpl_futimens): Adjust comment.
11483
11484         utimens: work around Linux ctime bug
11485         * lib/utimens.c (detect_ctime_bug): New helper function.
11486         (update_timespec): Differentiate between workaround needed for
11487         this bug vs. what is needed for systems that lack utimensat.
11488         (fdutimens, lutimens): Work around bug.
11489
11490         utimens: check for ctime update
11491         * tests/test-utimens-common.h (check_ctime): Define.
11492         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
11493         * tests/test-futimens.h (test_futimens): Likewise.
11494         * tests/test-lutimens.h (test_lutimens): Likewise.
11495         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11496         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11497
11498 2009-12-19  Bruno Haible  <bruno@clisp.org>
11499
11500         dprintf-posix: Check against memory leak fixed on 2009-12-15.
11501         * tests/test-dprintf-posix2.sh: New file.
11502         * tests/test-dprintf-posix2.c: New file.
11503         * modules/dprintf-posix-tests (Files): Add them.
11504         (configure.ac): Check for getrlimit and setrlimit.
11505         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11506
11507 2009-12-19  Bruno Haible  <bruno@clisp.org>
11508
11509         fprintf-posix: Check against memory leak fixed on 2009-12-15.
11510         * tests/test-fprintf-posix3.sh: New file.
11511         * tests/test-fprintf-posix3.c: New file.
11512         * modules/fprintf-posix-tests (Files): Add them.
11513         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11514
11515 2009-12-19  Eric Blake  <ebb9@byu.net>
11516
11517         dirfd: fix prototype
11518         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
11519         * lib/dirfd.c (dirfd): Likewise.
11520
11521         canonicalize: reduce memory usage
11522         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
11523         allocation to size.
11524         Reported by Solar Designer <solar@openwall.com>.
11525
11526 2009-12-19  Bruno Haible  <bruno@clisp.org>
11527
11528         New module attribute 'Applicability'.
11529         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
11530         * gnulib-tool: New option --extract-applicability.
11531         (func_usage): Document it.
11532         (sed_extract_prog): Recognize it.
11533         (func_get_applicability): New function.
11534         (func_import): Generalize handling of 'link-warning' module.
11535         * modules/link-warning (Applicability): New section.
11536         * modules/arg-nonnull (Applicability): New section.
11537         Repoted by Simon Josefsson <simon@josefsson.org>.
11538
11539 2009-12-19  Bruno Haible  <bruno@clisp.org>
11540
11541         fflush: tweak
11542         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
11543         * lib/fseeko.c (rpl_fseeko): Likewise.
11544
11545 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
11546
11547         * lib/gl_list.h: Fix typo in comment.
11548
11549 2009-12-16  Eric Blake  <ebb9@byu.net>
11550
11551         fcntl: use to simplify other modules
11552         * modules/cloexec (Depends-on): Add fcntl.
11553         * modules/fchdir (Depends-on): Likewise.
11554         * modules/fd-safer-flag (Depends-on): Likewise.
11555         * modules/unistd-safer (Depends-on): Likewise.
11556         * modules/dup3 (configure.ac): Set module indicator.
11557         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
11558         missing.
11559         * lib/fchdir.c (_gl_register_dup): Fix comment.
11560         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
11561         * lib/dup-safer.c (dup_safer): Likewise.
11562         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
11563         * lib/dup3.c (dup3): Likewise.
11564         * tests/test-fchdir.c (main): Enhance test.
11565         Fixes a dup_cloexec bug reported by Ondřej Vašík.
11566
11567         fcntl: port portions of fcntl to mingw
11568         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
11569         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
11570         replacement for mingw.
11571         * modules/fcntl (Description): Update.
11572         (Depends-on): Add dup2.
11573         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
11574         * modules/fcntl-h (Makefile.am): Substitute it.
11575         * lib/fcntl.in.h (fcntl): Update declaration.
11576         (F_DUPFD, F_GETFD): New macros, when needed.
11577         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11578         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
11579         * tests/test-fcntl.c (check_flags, main): Enhance test for items
11580         we now guarantee.
11581
11582         fcntl: work around cygwin bug in F_DUPFD
11583         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
11584         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11585         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11586         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11587         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11588
11589         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11590         * modules/fcntl (Files): List new files.
11591         (configure.ac): Run a test.
11592         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11593         * lib/fcntl.c (rpl_fcntl): Likewise.
11594         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11595         (gl_FCNTL_H): Always replace fcntl.h.
11596         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11597         * lib/fcntl.in.h (fcntl): Declare replacement.
11598         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11599         needed, plus a witness.
11600         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11601         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11602         * tests/test-fcntl.c: New file.
11603         * modules/fcntl-tests: Likewise.
11604
11605         binary-io: avoid potential compilation warning
11606         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11607         directives.
11608
11609         fflush: avoid compilation error on NetBSD
11610         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11611         between off_t and fpos_t, since the latter is sometimes a struct.
11612         * lib/fseeko.c (rpl_fseeko): Likewise.
11613         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11614
11615 2009-12-15  Eric Blake  <ebb9@byu.net>
11616
11617         fcntl-h, stdio, sys_ioctl: fix declarations
11618         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11619         function must not take arguments.
11620         * lib/sys_ioctl.in.h (ioctl): Likewise.
11621         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11622         (open): Add a link warning.
11623
11624 2009-12-15  Jim Meyering  <meyering@redhat.com>
11625
11626         areadlink, areadlink-with-size: relax license to LGPLv2+
11627         * modules/areadlink (License): Relax to LGPLv2+.
11628         * modules/areadlink-with-size (License): Likewise.
11629
11630 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11631             Bruno Haible  <bruno@clisp.org>
11632
11633         *printf: Fix memory leak.
11634         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11635         * lib/vfprintf.c (vfprintf): Likewise.
11636         * lib/dprintf.c (dprintf): Likewise.
11637         * lib/vdprintf.c (vdprintf): Likewise.
11638
11639 2009-12-14  Eric Blake  <ebb9@byu.net>
11640
11641         accept4: adjust module dependencies
11642         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11643
11644         utimens: one more try at avoiding compiler warning
11645         * lib/utimens.c (lutimens): Lower scope of result.
11646
11647 2009-12-13  Bruno Haible  <bruno@clisp.org>
11648
11649         Move the malloc checking from module 'list' to new module 'xlist'.
11650         * modules/xlist: New file.
11651         * lib/gl_xlist.h: New file.
11652         * lib/gl_xlist.c: New file.
11653         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11654         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11655         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11656         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11657         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11658         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11659         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11660         gl_sortedlist_nx_add): New declarations.
11661         (struct gl_list_implementation): Rename and change methods accordingly.
11662         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11663         (gl_list_nx_create): Renamed from gl_list_create.
11664         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11665         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11666         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11667         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11668         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11669         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11670         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11671         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11672         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11673         gl_list_create_empty.
11674         (gl_list_nx_create): Renamed from gl_list_create.
11675         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11676         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11677         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11678         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11679         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11680         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11681         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11682         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11683         * lib/gl_array_list.c: Don't include xalloc.h.
11684         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11685         NULL upon out-of-memory.
11686         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11687         out-of-memory.
11688         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11689         Change return type to 'int'.
11690         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11691         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11692         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11693         upon out-of-memory.
11694         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11695         upon out-of-memory.
11696         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11697         upon out-of-memory.
11698         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11699         upon out-of-memory.
11700         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11701         out-of-memory.
11702         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11703         Update.
11704         (gl_array_list_implementation): Update.
11705         * lib/gl_carray_list.c: Don't include xalloc.h.
11706         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11707         Return NULL upon out-of-memory.
11708         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11709         out-of-memory.
11710         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11711         Change return type to 'int'.
11712         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11713         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11714         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11715         upon out-of-memory.
11716         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11717         upon out-of-memory.
11718         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11719         out-of-memory.
11720         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11721         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11722         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11723         Update.
11724         (gl_carray_list_implementation): Update.
11725         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11726         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11727         gl_linked_create_empty. Return NULL upon out-of-memory.
11728         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11729         out-of-memory.
11730         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11731         Change return type to 'int'. Return -1 upon out-of-memory.
11732         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11733         out-of-memory.
11734         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11735         upon out-of-memory.
11736         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11737         upon out-of-memory.
11738         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11739         NULL upon out-of-memory.
11740         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11741         upon out-of-memory.
11742         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11743         out-of-memory.
11744         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11745         Update.
11746         * lib/gl_linked_list.c: Don't include xalloc.h.
11747         (gl_linked_list_implementation): Update.
11748         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11749         (add_to_bucket): Change return type to 'int'.
11750         (gl_linkedhash_list_implementation): Update.
11751         * lib/gl_anytree_list1.h (free_subtree): New function.
11752         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11753         gl_tree_create_empty. Return NULL upon out-of-memory.
11754         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11755         Change return type to 'int'. Return -1 upon out-of-memory.
11756         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11757         out-of-memory.
11758         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11759         (gl_tree_remove_node): New function, moved here from
11760         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11761         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11762         Update.
11763         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11764         malloc, not xmalloc. Return NULL upon out-of-memory.
11765         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11766         out-of-memory.
11767         (gl_tree_remove_node_from_tree): New function, extracted from
11768         gl_tree_remove_node.
11769         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11770         upon out-of-memory.
11771         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11772         out-of-memory.
11773         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11774         upon out-of-memory.
11775         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11776         upon out-of-memory.
11777         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11778         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11779         not xmalloc. Return NULL upon out-of-memory.
11780         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11781         out-of-memory.
11782         (gl_tree_remove_node_from_tree): New function, extracted from
11783         gl_tree_remove_node.
11784         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11785         upon out-of-memory.
11786         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11787         out-of-memory.
11788         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11789         upon out-of-memory.
11790         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11791         upon out-of-memory.
11792         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11793         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11794         gl_anytree_list1.h before gl_anyavltree_list2.h.
11795         (gl_avltree_list_implementation): Update.
11796         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11797         gl_anytree_list1.h before gl_anyavltree_list2.h.
11798         (gl_rbtree_list_implementation): Update.
11799         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11800         Change return type to 'int'. Return -1 upon out-of-memory. Use
11801         __builtin_expect.
11802         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11803         (gl_avltreehash_list_implementation): Update.
11804         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11805         (gl_rbtreehash_list_implementation): Update.
11806         * modules/array-list (Depends-on): Remove xalloc.
11807         * modules/carray-list (Depends-on): Likewise.
11808         * modules/linked-list (Depends-on): Likewise.
11809         * modules/linkedhash-list (Depends-on): Likewise.
11810         * modules/avltree-list (Depends-on): Likewise.
11811         * modules/rbtree-list (Depends-on): Likewise.
11812         * modules/avltreehash-list (Depends-on): Likewise.
11813         * modules/rbtreehash-list (Depends-on): Likewise.
11814
11815         * modules/xsublist: New file.
11816         * lib/gl_xsublist.h: New file.
11817         * lib/gl_xsublist.c: New file.
11818         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11819         (gl_sublist_nx_create): New declaration.
11820         * lib/gl_sublist.c: Don't include xalloc.h.
11821         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11822         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11823         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11824         Change return type to 'int'. Return -1 upon out-of-memory.
11825         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11826         upon out-of-memory.
11827         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11828         NULL upon out-of-memory.
11829         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
11830         upon out-of-memory.
11831         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
11832         NULL upon out-of-memory.
11833         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
11834         NULL upon out-of-memory.
11835         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
11836         upon out-of-memory.
11837         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
11838         (gl_sublist_list_implementation): Update.
11839         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
11840         upon out-of-memory.
11841         * modules/sublist (Depends-on): Remove xalloc.
11842
11843         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
11844         * tests/test-carray_list.c: Likewise.
11845         * tests/test-linked_list.c: Likewise.
11846         * tests/test-linkedhash_list.c: Likewise.
11847         * tests/test-avltree_list.c: Likewise.
11848         * tests/test-rbtree_list.c: Likewise.
11849         * tests/test-avltreehash_list.c: Likewise.
11850         * tests/test-rbtreehash_list.c: Likewise.
11851         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
11852         * modules/carray-list-tests (Makefile.am): Likewise.
11853         * modules/linked-list-tests (Makefile.am): Likewise.
11854         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11855         * modules/avltree-list-tests (Makefile.am): Likewise.
11856         * modules/rbtree-list-tests (Makefile.am): Likewise.
11857         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11858         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11859
11860         * NEWS: Mention the changes.
11861
11862         * lib/clean-temp.c: Include gl_xlist.h.
11863         * modules/clean-temp (Depends-on): Add xlist.
11864
11865         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
11866         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
11867
11868         * tests/test-array_oset.c: Include gl_xlist.h.
11869         * modules/array-oset-tests (Depends-on): Add xlist.
11870
11871         Reported by José E. Marchesi <jemarch@gnu.org>.
11872
11873 2009-12-13  Bruno Haible  <bruno@clisp.org>
11874
11875         Move the malloc checking from module 'oset' to new module 'xoset'.
11876         * modules/xoset: New file.
11877         * lib/gl_xoset.h: New file.
11878         * lib/gl_xoset.c: New file.
11879         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
11880         declarations.
11881         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
11882         (struct gl_oset_implementation): Rename and change methods accordingly.
11883         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
11884         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11885         'int'. Mark as __warn_unused_result__.
11886         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
11887         gl_oset_create_empty.
11888         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11889         'int'.
11890         * lib/gl_array_oset.c: Don't include xalloc.h.
11891         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
11892         malloc, not xmalloc.
11893         (grow): Change return type to 'int'. Don't call xalloc_die.
11894         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
11895         to 'int'.
11896         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
11897         'int'.
11898         (gl_array_oset_implementation): Update.
11899         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
11900         gl_tree_create_empty.
11901         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
11902         'int'.
11903         * lib/gl_avltree_oset.c: Don't include xalloc.h.
11904         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11905         xmalloc.
11906         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11907         not xmalloc.
11908         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11909         xmalloc.
11910         (gl_avltree_oset_implementation): Update.
11911         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
11912         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11913         xmalloc.
11914         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11915         not xmalloc.
11916         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11917         xmalloc.
11918         (gl_rbtree_oset_implementation): Update.
11919         * modules/array-oset (Depends-on): Remove xalloc.
11920         * modules/avltree-oset (Depends-on): Likewise.
11921         * modules/rbtree-oset (Depends-on): Likewise.
11922         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
11923         * tests/test-avltree_oset.c: Likewise.
11924         * tests/test-rbtree_oset.c: Likewise.
11925         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
11926         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
11927         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11928         * NEWS: Mention the change.
11929
11930 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
11931
11932         maint.mk: allow a project to override release-prep commands
11933         * top/maint.mk (alpha, beta, stable): Move release-preparatory
11934         commands into a new rule.
11935         (release-prep): New rule.
11936         (release-prep-hook): New overridable variable.
11937
11938 2009-12-13  Bruno Haible  <bruno@clisp.org>
11939
11940         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
11941
11942 2009-12-13  Jim Meyering  <meyering@redhat.com>
11943
11944         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
11945         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
11946
11947 2009-12-12  Bruno Haible  <bruno@clisp.org>
11948
11949         duplocale: Tweak.
11950         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
11951
11952 2009-12-12  Karl Berry  <karl@gnu.org>
11953
11954         * config/srclist.txt (strtoll.c): tab changes, no more sync.
11955
11956 2009-12-12  Bruno Haible  <bruno@clisp.org>
11957
11958         * m4/po.m4: Undo incorrect untabification.
11959
11960 2009-12-12  Bruno Haible  <bruno@clisp.org>
11961
11962         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
11963         * modules/c-strtod (Depends-on): Add locale.
11964         * modules/c-strtold (Depends-on): Likewise.
11965
11966 2009-12-12  Bruno Haible  <bruno@clisp.org>
11967
11968         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
11969
11970 2009-12-11  Eric Blake  <ebb9@byu.net>
11971
11972         setenv: relax requirement in light of POSIX ruling
11973         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
11974         not NULL.
11975         * tests/test-setenv.c (main): Relax test.
11976         * tests/test-unsetenv.c (main): Likewise.
11977         * doc/posix-functions/setenv.texi (setenv): Document this.
11978         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11979
11980 2009-12-11  Bruno Haible  <bruno@clisp.org>
11981
11982         New module 'fd-safer-flag'.
11983         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
11984         * lib/dup-safer.c (dup_safer_flag): Remove function.
11985         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
11986         * lib/fd-safer.c (fd_safer_flag): Remove function.
11987         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
11988         * modules/cloexec (configure.ac): Drop indicator macro.
11989         * modules/fd-safer-flag: New file.
11990         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
11991         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
11992         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
11993
11994 2009-12-11  Bruno Haible  <bruno@clisp.org>
11995
11996         Tests for module 'nl_langinfo'.
11997         * modules/nl_langinfo-tests: New file.
11998         * tests/test-nl_langinfo.sh: New file.
11999         * tests/test-nl_langinfo.c: New file.
12000
12001         New module 'nl_langinfo'.
12002         * lib/nl_langinfo.c: New file.
12003         * m4/nl_langinfo.m4: New file.
12004         * modules/nl_langinfo: New file.
12005         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
12006
12007 2009-12-11  Bruno Haible  <bruno@clisp.org>
12008
12009         Tests for module 'langinfo'.
12010         * modules/langinfo-tests: New file.
12011         * tests/test-langinfo.c: New file.
12012
12013         New module 'langinfo'.
12014         * lib/langinfo.in.h: New file.
12015         * m4/langinfo_h.m4: New file.
12016         * modules/langinfo: New file.
12017         * doc/posix-headers/langinfo.texi: Mention the new module.
12018
12019 2009-12-11  Bruno Haible  <bruno@clisp.org>
12020
12021         * lib/config.charset: Untabify.
12022
12023 2009-12-11  Bruno Haible  <bruno@clisp.org>
12024
12025         * modules/unistd-safer (configure.ac): Drop indicator macro.
12026
12027 2009-12-11  Bruno Haible  <bruno@clisp.org>
12028
12029         Move pipe2-safer code to its own file.
12030         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
12031         * lib/pipe-safer.c (pipe2_safer): Remove function.
12032         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
12033         (Makefile.am): Add it to lib_SOURCES.
12034
12035 2009-12-10  Bruno Haible  <bruno@clisp.org>
12036
12037         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
12038
12039 2009-12-10  Bruno Haible  <bruno@clisp.org>
12040
12041         Declare which arguments expect non-NULL values, for GCC and clang.
12042         * build-aux/arg-nonnull.h: New file.
12043         * modules/arg-nonnull: New file.
12044         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
12045         (inet_ntop, inet_pton): Use it.
12046         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
12047         (closedir, dirfd, opendir, scandir, alphasort): Use it.
12048         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
12049         (open, openat): Use it.
12050         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
12051         (fnmatch): Use it.
12052         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
12053         (getopt, getopt_long, getopt_long_only): Use it.
12054         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
12055         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
12056         Use it.
12057         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
12058         (iconv_open): Use it.
12059         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
12060         (strtoimax, strtoumax): Use it.
12061         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
12062         (duplocale): Use it.
12063         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
12064         (frexp, frexpl): Use it.
12065         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
12066         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
12067         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
12068         (tsearch, tfind, tdelete, twalk): Use it.
12069         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
12070         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12071         sigpending): Use it.
12072         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
12073         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12074         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12075         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12076         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12077         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12078         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12079         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12080         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12081         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12082         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12083         Use it.
12084         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
12085         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
12086         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
12087         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
12088         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
12089         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
12090         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
12091         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
12092         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
12093         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
12094         strtoull, unsetenv): Use it.
12095         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
12096         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12097         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12098         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
12099         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
12100         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
12101         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
12102         (strcasecmp, strncasecmp): Use it.
12103         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
12104         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
12105         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
12106         rpl_setsockopt): Use it.
12107         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
12108         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
12109         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
12110         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
12111         (gettimeofday): Use it.
12112         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
12113         (times): Use it.
12114         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
12115         (uname): Use it.
12116         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
12117         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
12118         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
12119         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
12120         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
12121         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
12122         unlinkat, write): Use it.
12123         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
12124         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
12125         * lib/argv-iter.h: Include arg-nonnull.h.
12126         (_ATTRIBUTE_NONNULL_): Remove macro.
12127         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
12128         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
12129         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
12130         optimization.
12131         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
12132         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
12133         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
12134         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
12135         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
12136         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
12137         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
12138         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
12139         * modules/arpa_inet (Depends-on): Add arg-nonnull.
12140         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
12141         * modules/dirent (Depends-on): Add arg-nonnull.
12142         (Makefile.am): Insert arg-nonnull.h into dirent.h.
12143         * modules/fcntl-h (Depends-on): Add arg-nonnull.
12144         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
12145         * modules/fnmatch (Depends-on): Add arg-nonnull.
12146         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
12147         * modules/getopt-posix (Depends-on): Add arg-nonnull.
12148         (Makefile.am): Insert arg-nonnull.h into getopt.h.
12149         * modules/glob (Depends-on): Add arg-nonnull.
12150         (Makefile.am): Insert arg-nonnull.h into glob.h.
12151         * modules/iconv_open (Depends-on): Add arg-nonnull.
12152         (Makefile.am): Insert arg-nonnull.h into iconv.h.
12153         * modules/inttypes (Depends-on): Add arg-nonnull.
12154         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
12155         * modules/locale (Depends-on): Add arg-nonnull.
12156         (Makefile.am): Insert arg-nonnull.h into locale.h.
12157         * modules/math (Depends-on): Add arg-nonnull.
12158         (Makefile.am): Insert arg-nonnull.h into math.h.
12159         * modules/netdb (Depends-on): Add arg-nonnull.
12160         (Makefile.am): Insert arg-nonnull.h into netdb.h.
12161         * modules/search (Depends-on): Add arg-nonnull.
12162         (Makefile.am): Insert arg-nonnull.h into search.h.
12163         * modules/signal (Depends-on): Add arg-nonnull.
12164         (Makefile.am): Insert arg-nonnull.h into signal.h.
12165         * modules/spawn (Depends-on): Add arg-nonnull.
12166         (Makefile.am): Insert arg-nonnull.h into spawn.h.
12167         * modules/stdio (Depends-on): Add arg-nonnull.
12168         (Makefile.am): Insert arg-nonnull.h into stdio.h.
12169         * modules/stdlib (Depends-on): Add arg-nonnull.
12170         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
12171         * modules/string (Depends-on): Add arg-nonnull.
12172         (Makefile.am): Insert arg-nonnull.h into string.h.
12173         * modules/strings (Depends-on): Add arg-nonnull.
12174         (Makefile.am): Insert arg-nonnull.h into strings.h.
12175         * modules/sys_socket (Depends-on): Add arg-nonnull.
12176         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
12177         * modules/sys_stat (Depends-on): Add arg-nonnull.
12178         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
12179         * modules/sys_time (Depends-on): Add arg-nonnull.
12180         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
12181         * modules/sys_times (Depends-on): Add arg-nonnull.
12182         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
12183         * modules/sys_utsname (Depends-on): Add arg-nonnull.
12184         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
12185         * modules/time (Depends-on): Add arg-nonnull.
12186         (Makefile.am): Insert arg-nonnull.h into time.h.
12187         * modules/unistd (Depends-on): Add arg-nonnull.
12188         (Makefile.am): Insert arg-nonnull.h into unistd.h.
12189         * modules/wchar (Depends-on): Add arg-nonnull.
12190         (Makefile.am): Insert arg-nonnull.h into wchar.h.
12191         * modules/argv-iter (Depends-on): Add arg-nonnull.
12192         * tests/test-canonicalize.c (null_ptr): New function.
12193         (main): Use it.
12194         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
12195         (main): Use it.
12196         * tests/test-memmem.c (null_ptr): New function.
12197         (main): Use it.
12198         Reported by Jim Meyering.
12199
12200 2009-12-10  Bruno Haible  <bruno@clisp.org>
12201
12202         Use spaces for indentation, not tabs.
12203         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12204         * m4/*.m4: Untabify.
12205         * build-aux/*.h: Untabify.
12206         * tests/**/*.[hc]: Untabify.
12207         * README: New section "Indent with spaces, not TABs", based on
12208         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
12209         * NEWS: Mention the change.
12210
12211 2009-12-10  Bruno Haible  <bruno@clisp.org>
12212
12213         pty test: Fix link error.
12214         * modules/pty-tests (Makefile.am): Add the default LDADD value to
12215         test_pty_LDADD.
12216
12217 2009-12-07  Simon Josefsson  <simon@josefsson.org>
12218
12219         * modules/pty: New file.
12220         * modules/pty-tests: New file.
12221         * m4/pty.m4: New file.
12222         * tests/test-pty.c: New file.
12223         * doc/glibc-headers/pty.texi: Modified.
12224         * doc/glibc-functions/forkpty.texi: Modified.
12225         * doc/glibc-functions/openpty.texi: Modified.
12226
12227 2009-12-10  Bruno Haible  <bruno@clisp.org>
12228
12229         Avoid syntax error in C++ mode.
12230         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
12231
12232 2009-12-10  Bruno Haible  <bruno@clisp.org>
12233
12234         Use sed with option -e.
12235         * gnulib-tool (func_version, func_emit_copyright_notice,
12236         func_emit_initmacro_end, func_import, func_create_testdir): Pass
12237         option -e to sed.
12238         * modules/link-warning (Makefile.am): Likewise.
12239
12240 2009-12-10  Jim Meyering  <meyering@redhat.com>
12241
12242         mgetgroups: do not write bytes beyond end of malloc'd buffer
12243         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
12244         username, we call getgroups with a one-element-shorter buffer,
12245         but still told it the length was original, max_n_groups.
12246
12247 2009-12-09  Eric Blake  <ebb9@byu.net>
12248
12249         cloexec: relax license
12250         * modules/cloexec (Maintainer): Add myself.
12251         (License): Use LGPL, not GPL.
12252
12253         link-warning: optimize generation
12254         * modules/link-warning (Makefile.am): Reduce process usage.
12255
12256 2009-12-09  Bruno Haible  <bruno@clisp.org>
12257
12258         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
12259         workaround was added on 2009-11-17.
12260
12261 2009-12-09  Jim Meyering  <meyering@redhat.com>
12262             Bruno Haible  <bruno@clisp.org>
12263
12264         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
12265         * modules/link-warning (Makefile.am): Make the comment-removing sed
12266         command more robust in the face of bootstrap-prepended comment lines.
12267
12268 2009-12-09  Bruno Haible  <bruno@clisp.org>
12269
12270         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
12271         most one group.
12272
12273 2009-12-09  Simon Josefsson <simon@josefsson.org>
12274             Bruno Haible  <bruno@clisp.org>
12275
12276         * build-aux/link-warning.h: Add copyright notice.
12277         * modules/link-warning (Makefile.am): Generate link-warning.h from
12278         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
12279         * NEWS: Mention change in link-warning module.
12280         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
12281         * modules/dirent (Makefile.am): Add dependency to dirent.h.
12282         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
12283         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
12284         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
12285         * modules/math (Makefile.am): Add dependency to math.h.
12286         * modules/search (Makefile.am): Add dependency to search.h.
12287         * modules/signal (Makefile.am): Add dependency to signal.h.
12288         * modules/spawn (Makefile.am): Add dependency to spawn.h.
12289         * modules/stdio (Makefile.am): Add dependency to stdio.h.
12290         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
12291         * modules/string (Makefile.am): Add dependency to string.h.
12292         * modules/strings (Makefile.am): Add dependency to strings.h.
12293         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
12294         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
12295         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
12296         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
12297         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
12298         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
12299         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
12300         * modules/unistd (Makefile.am): Add dependency to unistd.h.
12301         * modules/wchar (Makefile.am): Add dependency to wchar.h.
12302
12303 2009-12-09  Bruno Haible  <bruno@clisp.org>
12304
12305         fchdir: Optimize away rpl_fstat when possible.
12306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
12307         REPLACE_OPEN_DIRECTORY.
12308         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
12309
12310 2009-12-09  Bruno Haible  <bruno@clisp.org>
12311
12312         * lib/fchdir.c: Update comment.
12313
12314 2009-12-09  Bruno Haible  <bruno@clisp.org>
12315
12316         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
12317
12318 2009-12-08  Eric Blake  <ebb9@byu.net>
12319
12320         fchdir: avoid memory leak on re-registration.
12321         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
12322
12323 2009-12-08  Jim Meyering  <meyering@redhat.com>
12324
12325         init.sh: avoid Solaris 10 /bin/sh portability problem
12326         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
12327         sourced script:
12328           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
12329           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
12330           bar
12331         tests/init.sh relied on that, accepting a --set-path=DIR argument,
12332         and two tests used that idiom.
12333         * tests/init.sh: Update suggested usage comments.
12334         (path_prepend_): New function, to be used in place
12335         of the --src-path=DIR option.
12336         (setup_): Move PATH-prepending code into path_prepend_.
12337         * tests/test-pread.sh: Adapt to new usage.
12338         * tests/test-xalloc-die.sh: Likewise.
12339
12340 2009-12-08  Simon Josefsson  <simon@josefsson.org>
12341
12342         * doc/gnulib.texi (Glibc pty.h): Add.
12343         * doc/glibc-functions/forkpty.texi: Add.
12344         * doc/glibc-functions/openpty.texi: Add.
12345         Suggested by Bruno Haible.
12346
12347 2009-12-08  Eric Blake  <ebb9@byu.net>
12348
12349         fchdir: fix logic bugs
12350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
12351         * tests/test-fchdir.c (main): Enhance test.
12352         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
12353         is in use.
12354
12355         dup2: fix logic bugs
12356         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
12357         REPLACE_DUP2 to decide when rpl_dup2 is needed.
12358         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
12359         exists.
12360         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
12361
12362 2009-12-07  Eric Blake  <ebb9@byu.net>
12363
12364         unlink: fix m4 detection
12365         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
12366
12367         unistd-safer: add unit test
12368         * modules/unistd-safer-tests: New file.
12369         * tests/test-dup-safer.c: Likewise.
12370         * tests/test-cloexec.c (setmode): Avoid compiler warning.
12371         * tests/test-dup2.c (setmode): Likewise.
12372         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
12373
12374         cloexec: preserve text vs. binary across dup_cloexec
12375         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
12376         mode.
12377         * modules/dup2-tests (Depends-on): Add binary-io.
12378         * modules/cloexec-tests (Depends-on): Likewise.
12379         * tests/test-dup2.c (setmode, is_mode): New helpers.
12380         (main): Add tests that translation mode is preserved.
12381         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
12382         Reported by Bruno Haible.
12383
12384         mgetgroups: reduce duplicate listings
12385         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
12386         resulting array.
12387         * tests/test-chown.h (test_chown): Simplify client.
12388         * tests/test-lchown.h (test_lchown): Likewise.
12389
12390 2009-12-06  Bruno Haible  <bruno@clisp.org>
12391
12392         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
12393         value.
12394
12395 2009-12-06  Bruno Haible  <bruno@clisp.org>
12396
12397         * lib/progname.c: Include stdio.h, stdlib.h.
12398         (set_program_name): Reject a NULL argument.
12399
12400 2009-12-05  Eric Blake  <ebb9@byu.net>
12401
12402         pipe2-safer: new module
12403         * modules/pipe2-safer: New file.
12404         * lib/unistd-safer.h (pipe2_safer): New prototype.
12405         * lib/unistd--.h (pipe2): New wrapper.
12406         * lib/pipe-safer.c (pipe2_safer): New function.
12407         * modules/pipe (Depends-on): Add pipe2-safer.
12408         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
12409
12410         stdlib-safer: preserve cloexec flag for mkostemp[s]
12411         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
12412         fd_safer_flag.
12413
12414         unistd-safer: allow preservation of cloexec status via flag
12415         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
12416         prototypes.
12417         * lib/dup-safer.c (dup_safer_flag): New function.
12418         * lib/fd-safer.c (fd_safer_flag): Likewise.
12419         * modules/cloexec (configure.ac): Set witness.
12420
12421         test-dup2: enhance test
12422         * modules/dup2-tests (Depends-on): Add cloexec.
12423         * tests/test-dup2.c (main): Enhance test.
12424
12425         cloexec: add dup_cloexec
12426         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
12427         header and comments.
12428         * lib/cloexec.c (set_cloexec_flag): Add comments.
12429         (dup_cloexec): New function, with mingw implementation borrowed
12430         from...
12431         * lib/w32spawn.h (dup_noinherit): ...here.
12432         * modules/execute (Depends-on): Add cloexec.
12433         * modules/pipe (Depends-on): Likewise.
12434         * modules/cloexec (Depends-on): Add dup2.
12435         * modules/cloexec-tests (Files): New file.
12436         * tests/test-cloexec.c: Likewise.
12437
12438         test-xalloc-die: fix test for mingw
12439         * modules/xalloc-die-tests (Files): Add tests/init.sh.
12440         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
12441         directory and .exe suffix off argv[0] output.
12442
12443         test-fseeko: fix test for mingw
12444         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
12445         than undefining fseek, so test will pass on mingw.
12446
12447 2009-12-05  Bruno Haible  <bruno@clisp.org>
12448
12449         * lib/progname.h (set_program_name): Clarify specification.
12450         * lib/progname.c (set_program_name): Likewise.
12451         Reported by Jim Meyering.
12452
12453 2009-12-05  Jim Meyering  <meyering@redhat.com>
12454
12455         maint.mk: backslash-escape parens in default regexp
12456         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
12457         backslash-escape the literal parentheses.
12458
12459         maint.mk: news-date-check: use grep -E
12460         * top/maint.mk (today): Define a Make variable, not a...
12461         (news-date-check): ...shell variable.
12462         (news-date-regexp): Use the Make variable.
12463         Use grep's -E option.  Change the failing diagnostic to mention
12464         the variable, $(news-date-regexp).
12465
12466 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
12467
12468         maintainer-makefile: allow customization of NEWS entry format
12469         * top/maint.mk (news-date-regexp): New overridable variable.
12470         (news-date-check): Use it.
12471
12472 2009-12-04  Eric Blake  <ebb9@byu.net>
12473
12474         mgetgroups: add xgetgroups, and avoid ENOSYS failures
12475         * lib/mgetgroups.h (xgetgroups): New prototype.
12476         * lib/mgetgroups.c (xgetgroups): New wrapper.
12477         (mgetgroups): Handle ENOSYS.
12478         * modules/mgetgroups (Depends-on): Add realloc.
12479         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
12480
12481         mgetgroups: avoid argument promotion issues with -1
12482         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
12483         for invalid gid_t.
12484         * tests/test-chown.h (getegid, test_chown): Likewise.
12485         * tests/test-lchown.h (getegid, test_lchown): Likewise.
12486
12487 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
12488
12489         exclude: Fix header file problems.
12490         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
12491
12492 2009-12-01  Jim Meyering  <meyering@redhat.com>
12493
12494         fts: fts_open: do not let an empty string cause immediate failure
12495         This is required in support of GNU rm, for which the command
12496         "rm A '' B" must process and remove both A and B, in spite of
12497         the empty string argument.
12498         * lib/fts.c (fts_open): Do not let the presence of an empty string
12499         cause fts_open to fail immediately.  Most fts-using tools must be
12500         able to process all arguments, in order, and can be expected to
12501         diagnose such arguments themselves.
12502
12503 2009-11-30  Eric Blake  <ebb9@byu.net>
12504
12505         utimens: fix compilation error
12506         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
12507         Declare variable at right scope.
12508
12509 2009-11-29  Jim Meyering  <meyering@redhat.com>
12510
12511         bootstrap: handle perl-5.11's changed --version output
12512         * build-aux/bootstrap (get_version): Handle perl separately,
12513         since perl-5.11's --version output is different.
12514
12515 2009-11-28  Jim Meyering  <meyering@redhat.com>
12516
12517         userspec: depend on the inttostr module, too
12518         * modules/userspec (Depends-on): Add inttostr.
12519
12520         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
12521         * lib/userspec.c (parse_with_separator): Do not accept a user ID
12522         number of MAXUID when it evaluates to (uid_t) -1.
12523         Likewise for group ID.  Reported by Matt McCutchen in
12524         <http://savannah.gnu.org/bugs/?28113>
12525
12526         userspec: reformat to use spaces, not TABs
12527         * lib/userspec.c: Expand TABs to spaces.
12528         Add Emacs' "indent-tabs-mode: nil" hint.
12529
12530 2009-11-27  Eric Blake  <ebb9@byu.net>
12531
12532         getopt-gnu: flush out another BSD bug
12533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
12534         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
12535         flush out BSD bug.
12536         * tests/test-getopt.h (test_getopt): End lists with NULL.
12537         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12538         (test_getopt_long_posix): Enhance test.
12539         * modules/getopt-posix-tests (Depends-on): Add stdbool.
12540         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
12541         getopt-gnu.
12542         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12543         Likewise.
12544
12545 2009-11-27  Simon Josefsson  <simon@josefsson.org>
12546
12547         * modules/idpriv-droptemp-tests (Notice): Fix text.
12548
12549 2009-11-27  Jim Meyering  <meyering@redhat.com>
12550
12551         test-xalloc-die: avoid spurious failure due to libtool argv difference
12552         In a libtool-enabled project, this test would fail due to a difference
12553         in the emitted program name, e.g.,
12554         -test-xalloc-die: memory exhausted
12555         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
12556         Use program to avoid that.
12557         * modules/xalloc-die-tests (Depends-on): Add progname.
12558         * tests/test-xalloc-die.c: Include progname.h".
12559         (program_name): Remove decl.
12560         (main): Call set_program_name.
12561         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
12562
12563 2009-11-26  Richard Jones  <rjones@redhat.com>
12564
12565         w32sock: leave win32 error in place.
12566         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
12567
12568 2009-11-26  Eric Blake  <ebb9@byu.net>
12569
12570         init.sh: suggest to use skip_ and fail_ functions in comments
12571         * tests/init.sh: Add a sentence.
12572
12573 2009-11-25  Bruno Haible  <bruno@clisp.org>
12574
12575         init.sh: add documentation in comments
12576         * tests/init.sh: Add some developer and user documentation.
12577
12578 2009-11-26  Jim Meyering  <meyering@redhat.com>
12579
12580         init.sh: accommodate even those who specify bogus srcdir manually
12581         * tests/init.sh: Normally, srcdir is guaranteed by automake and
12582         configure-time tests to be sanitized, so that there is no need to
12583         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
12584         (with no double quotes) suffices.  However, since tests may be
12585         invoked manually, and since you may explicitly set srcdir to the
12586         name of a directory containing spaces, do quote its uses here.
12587         * tests/test-pread.sh: Likewise.
12588         Suggested by Bruno Haible.
12589
12590         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12591         * tests/test-pread.sh: Write no data into the pipe, because
12592         test-pread actually reads none.  This avoids a diagnostic,
12593         "bash: echo: write error: Broken pipe", that arises in the unusual
12594         event something is ignoring SIGPIPE, and might be interpreted
12595         as some sort of failure.  Reported by Bruno Haible.
12596
12597 2009-11-25  Jim Meyering  <meyering@redhat.com>
12598
12599         test-pread: cover failure with ESPIPE and EINVAL
12600         * tests/test-pread.c (main): Test for failure, too.
12601         * tests/test-pread.sh: Invoke with stdin on a pipe.
12602         Suggested by Eric Blake.
12603
12604         pread: improvement and fix
12605         * modules/pread (Depends-on): Depend on lseek, for portability to
12606         e.g., mingw.  Suggested by Eric Blake.
12607         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12608
12609         unistd.in.h: correct declaration of pread
12610         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12611         Reported by Richard W.M. Jones.
12612
12613         test-pread.sh: distribute the test script
12614         * modules/pread-tests (Files): Include test-pread.sh.
12615
12616         test-pread.sh: clean up
12617         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12618         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12619         That is unnecessary, since it's always ".".
12620         Suggestion from Eric Blake.
12621
12622         test-pread.sh: make executable
12623         * tests/test-pread.sh: Set executable bit.
12624         Reported by Eric Blake.
12625
12626         correct typo in test-pread.sh
12627         * tests/test-pread.sh: Add #! line.
12628
12629         test pread
12630         * tests/test-pread.c: New file.
12631         * tests/test-pread.sh: Likewise.
12632         * modules/pread-tests: Likewise.
12633
12634         pread: new module
12635         * modules/pread: New file.
12636         * lib/unistd.in.h (pread): Define/declare.
12637         * lib/pread.c (pread): New file.
12638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12639         * modules/unistd (Makefile.am): Substitute witnesses.
12640         * doc/posix-functions/pread.texi (pread): Update.
12641         * MODULES.html.sh: Add pread.
12642
12643 2009-11-25  Jim Meyering  <meyering@redhat.com>
12644
12645         tests/init.sh: new file to be used via most *.sh tests
12646         * tests/init.sh: New file.
12647
12648 2009-11-25  Eric Blake  <ebb9@byu.net>
12649
12650         utimens: work around older Linux failure with symlinks
12651         * lib/utimens.c (lutimensat_works_really): New variable.
12652         (fdutimens, lutimens): Use it to manage kernels that support
12653         nanosecond times on files, but not on symlinks.
12654         Reported by Ondřej Vašík.
12655
12656         utimes: fix configure grammar
12657         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12658
12659 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12660
12661         regex: Fix fastmap for multibyte character ranges.
12662         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12663         characters when a multibyte character range is included.
12664
12665 2009-11-22  Andy Wingo  <wingo@pobox.com>
12666
12667         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12668         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12669
12670 2009-11-24  Bruno Haible  <bruno@clisp.org>
12671
12672         doc: Most *_l functions exist in MacOS X 10.5.
12673         * doc/posix-functions/duplocale.texi: Update platforms list.
12674         * doc/posix-functions/freelocale.texi: Likewise.
12675         * doc/posix-functions/newlocale.texi: Likewise.
12676         * doc/posix-functions/uselocale.texi: Likewise.
12677         * doc/posix-functions/isalnum_l.texi: Likewise.
12678         * doc/posix-functions/isalpha_l.texi: Likewise.
12679         * doc/posix-functions/isblank_l.texi: Likewise.
12680         * doc/posix-functions/iscntrl_l.texi: Likewise.
12681         * doc/posix-functions/isdigit_l.texi: Likewise.
12682         * doc/posix-functions/isgraph_l.texi: Likewise.
12683         * doc/posix-functions/islower_l.texi: Likewise.
12684         * doc/posix-functions/isprint_l.texi: Likewise.
12685         * doc/posix-functions/ispunct_l.texi: Likewise.
12686         * doc/posix-functions/isspace_l.texi: Likewise.
12687         * doc/posix-functions/isupper_l.texi: Likewise.
12688         * doc/posix-functions/iswalnum_l.texi: Likewise.
12689         * doc/posix-functions/iswalpha_l.texi: Likewise.
12690         * doc/posix-functions/iswblank_l.texi: Likewise.
12691         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12692         * doc/posix-functions/iswctype_l.texi: Likewise.
12693         * doc/posix-functions/iswdigit_l.texi: Likewise.
12694         * doc/posix-functions/iswgraph_l.texi: Likewise.
12695         * doc/posix-functions/iswlower_l.texi: Likewise.
12696         * doc/posix-functions/iswprint_l.texi: Likewise.
12697         * doc/posix-functions/iswpunct_l.texi: Likewise.
12698         * doc/posix-functions/iswspace_l.texi: Likewise.
12699         * doc/posix-functions/iswupper_l.texi: Likewise.
12700         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12701         * doc/posix-functions/isxdigit_l.texi: Likewise.
12702         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12703         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12704         * doc/posix-functions/strcoll_l.texi: Likewise.
12705         * doc/posix-functions/strfmon_l.texi: Likewise.
12706         * doc/posix-functions/strftime_l.texi: Likewise.
12707         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12708         * doc/posix-functions/strxfrm_l.texi: Likewise.
12709         * doc/posix-functions/tolower_l.texi: Likewise.
12710         * doc/posix-functions/toupper_l.texi: Likewise.
12711         * doc/posix-functions/towctrans_l.texi: Likewise.
12712         * doc/posix-functions/towlower_l.texi: Likewise.
12713         * doc/posix-functions/towupper_l.texi: Likewise.
12714         * doc/posix-functions/wcscoll_l.texi: Likewise.
12715         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12716         * doc/posix-functions/wctrans_l.texi: Likewise.
12717         * doc/posix-functions/wctype_l.texi: Likewise.
12718         * doc/glibc-functions/strptime_l.texi: Likewise.
12719         * doc/glibc-functions/strtod_l.texi: Likewise.
12720         * doc/glibc-functions/strtof_l.texi: Likewise.
12721         * doc/glibc-functions/strtol_l.texi: Likewise.
12722         * doc/glibc-functions/strtold_l.texi: Likewise.
12723         * doc/glibc-functions/strtoll_l.texi: Likewise.
12724         * doc/glibc-functions/strtoul_l.texi: Likewise.
12725         * doc/glibc-functions/strtoull_l.texi: Likewise.
12726         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12727         * doc/glibc-functions/wcstod_l.texi: Likewise.
12728         * doc/glibc-functions/wcstof_l.texi: Likewise.
12729         * doc/glibc-functions/wcstol_l.texi: Likewise.
12730         * doc/glibc-functions/wcstold_l.texi: Likewise.
12731         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12732         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12733         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12734
12735 2009-11-24  Bruno Haible  <bruno@clisp.org>
12736
12737         duplocale: Fix logic bug.
12738         * lib/duplocale.c: Don't include <langinfo.h>.
12739         (_NL_LOCALE_NAME): Remove macro.
12740         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12741         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12742
12743 2009-11-23  Jim Meyering  <meyering@redhat.com>
12744
12745         test-update-copyright: don't hard-code /usr/bin/perl
12746         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12747         perl to print the current year.  Gilles Espinasse reported that
12748         the replaced use of perl was hard-coded as /usr/bin/perl.
12749
12750 2009-11-23  Bruno Haible  <bruno@clisp.org>
12751
12752         duplocale: Add support for glibc 2.3.x.
12753         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12754
12755 2009-11-22  Bruno Haible  <bruno@clisp.org>
12756
12757         vasnprintf: Tiny optimization.
12758         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12759         MacOS X.
12760
12761 2009-11-22  Bruno Haible  <bruno@clisp.org>
12762
12763         Tests for module 'duplocale'.
12764         * modules/duplocale-tests: New file.
12765         * tests/test-duplocale.c: New file.
12766
12767         New module 'duplocale'.
12768         * m4/duplocale.m4: New file.
12769         * lib/locale.in.h (duplocale): New declaration.
12770         * lib/duplocale.c: New file.
12771         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12772         gl_LOCALE_H_DEFAULTS): New macros.
12773         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12774         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12775         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12776         REPLACE_DUPLOCALE.
12777         * modules/duplocale: New file.
12778         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12779
12780 2009-11-22  Bruno Haible  <bruno@clisp.org>
12781
12782         * modules/locale-tests (configure.ac): Test for newlocale function.
12783         * tests/test-locale.c: When the system has extended locale functions,
12784         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12785
12786         locale: Make locale_t available when possible.
12787         * lib/locale.in.h: Include <xlocale.h> when it exists.
12788         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12789         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12790         * modules/locale (Depends-on): Add extensions.
12791         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12792         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12793
12794 2009-11-22  Bruno Haible  <bruno@clisp.org>
12795
12796         Add comments.
12797         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12798         invocation.
12799         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12800         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12801         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12802
12803 2009-11-22  Bruno Haible  <bruno@clisp.org>
12804
12805         error: account for the possibility of freopen (stdout).
12806         * lib/error.c: Include <unistd.h>.
12807         (flush_stdout): New function, extracted from error and error_at_line.
12808         Determine stdout's fd dynamically.
12809         (error, error_at_line): Invoke flush_stdout.
12810         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12811         * modules/error (Depends-on): Add unistd.
12812
12813 2009-11-22  Bruno Haible  <bruno@clisp.org>
12814
12815         diffseq: Add comment.
12816         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12817
12818 2009-11-22  Jim Meyering  <meyering@redhat.com>
12819
12820         c-stack: avoid defining an unused static function
12821         * lib/c-stack.c (find_stack_direction): Do not define this function
12822         when it will not be used.
12823
12824         diffseq: avoid spurious gcc warnings
12825         * lib/diffseq.h (IF_LINT2): Define.
12826         (compareseq): Use it to initialize two members of "part".
12827         This avoids two used-uninitialized warnings.
12828
12829 2009-11-21  Jim Meyering  <meyering@redhat.com>
12830
12831         c-stack: avoid "ignoring return value of `write'" warning
12832         * lib/c-stack.c: Include "ignore-value.h".
12833         (die): Explicitly ignore each write return value.
12834         * modules/c-stack (Depends-on): Add ignore-value.
12835
12836 2009-11-21  Bruno Haible  <bruno@clisp.org>
12837
12838         diffseq: reduce scope of variable 'best'.
12839         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
12840         variable, earlier used for two different purposes.
12841
12842 2009-11-21  Jim Meyering  <meyering@redhat.com>
12843
12844         diffseq: remove useless assignment to "best"
12845         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
12846         assignment.  At that point "best" is already guaranteed to be zero.
12847
12848 2009-11-20  Eric Blake  <ebb9@byu.net>
12849
12850         build: mention ftp redirector in release announcements
12851         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
12852         values that used to come from cfg.mk; mention FTP redirect URL.
12853         * build-aux/announce-gen: Mention the mirror list.
12854         Suggested by Karl Berry.
12855
12856         nanosleep: improve port to mingw
12857         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
12858         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
12859         LIB_NANOSLEEP, but only when needed.
12860         * modules/select (Link): Document LIBSOCKET.
12861         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
12862         enough.
12863
12864         nanosleep: work around cygwin bug
12865         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
12866         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
12867         bug.
12868         (getnow): Delete, not needed.
12869         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
12870         LIB_CLOCK_GETTIME.
12871         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
12872         clock-time, gettime.
12873         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
12874         bug.
12875         * modules/nanosleep-tests: New test.
12876         * tests/test-nanosleep.c: New file.
12877
12878         sleep: work around cygwin bug
12879         * lib/sleep.c (rpl_sleep): Work around the bug.
12880         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
12881         (gl_PREREQ_SLEEP): Delete unused macro.
12882         * modules/sleep (Depends-on): Add verify.
12883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12884         * modules/unistd (Makefile.am): Substitute witness.
12885         * lib/unistd.in.h (sleep): Update prototype.
12886         * doc/posix-functions/sleep.texi (sleep): Document the bug.
12887         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
12888         * modules/sleep-tests (Depends-on): Check for alarm.
12889
12890 2009-11-20  Jim Meyering  <meyering@redhat.com>
12891
12892         maint.mk: improve sc_prohibit_magic_number_exit
12893         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
12894         so it does not match uses like System.exit(1).
12895         Add comments showing how to correct all offenders.
12896
12897 2009-11-19  Eric Blake  <ebb9@byu.net>
12898
12899         xalloc-die-tests: add missing library
12900         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
12901
12902         test-xvasprintf: silence compiler warnings
12903         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
12904         empty string from gcc.
12905
12906 2009-11-19  Jim Meyering  <meyering@redhat.com>
12907
12908         xfreopen: new module, from coreutils
12909         * modules/xfreopen: New module.
12910         * lib/xfreopen.c: New file.
12911         * lib/xfreopen.h: New file.
12912         * MODULES.html.sh (File stream based Input/Output"): Add it.
12913
12914 2009-11-19  Eric Blake  <ebb9@byu.net>
12915
12916         manywarnings: depend on warnings
12917         * modules/manywarnings (Depends-on): Add warnings.
12918
12919         build: avoid compiler warnings
12920         * lib/select.c (rpl_select): Delete unused variable.
12921         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
12922
12923 2009-11-18  Eric Blake  <ebb9@byu.net>
12924
12925         tests: avoid false negative with --with-packager
12926         * tests/test-version-etc.sh: Discard packager information.
12927         * tests/test-argp-version-etc-1.sh: Likewise.
12928         Reported by Mike Frysinger.
12929
12930         utimens: fix regression on Solaris
12931         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
12932         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
12933         can only change fd timestamps via futimesat.  Instead, use an
12934         additional witness macro to avoid BSD bug.
12935         Reported by Jim Meyering.
12936
12937 2009-11-17  Eric Blake  <ebb9@byu.net>
12938
12939         usleep: use it to simplify tests
12940         * modules/stat-time-tests (Depends-on): Add usleep.
12941         (configure.ac): Drop usleep check.
12942         * modules/chown-tests (Depends-on, configure.ac): Likewise.
12943         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
12944         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
12945         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
12946         * modules/openat-tests (Depends-on, configure.ac): Likewise.
12947         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
12948         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
12949         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
12950         Likewise.
12951         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
12952         * tests/test-lchown.h (nap): Likewise.
12953         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
12954         * tests/test-stat-time.c (nap): Likewise.
12955         * tests/test-utimens-common.h (nap): Update comments.
12956
12957         usleep: new module
12958         * modules/usleep: New file.
12959         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
12960         * lib/usleep.c (usleep): Likewise.
12961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
12962         * modules/unistd (Makefile.am): Substitute witnesses.
12963         * lib/unistd.in.h (usleep): Add declaration.
12964         * doc/pastposix-functions/usleep.texi (usleep): Document this.
12965         * MODULES.html.sh (Date and time): Likewise.
12966         * modules/usleep-tests (Depends-on): New test.
12967         * tests/test-usleep.c: New file.
12968
12969         chown: work around OpenBSD bug
12970         * lib/chown.c (rpl_chown): Work around the bug.
12971         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
12972         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
12973         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
12974         * modules/chown (Depends-on): Add stdbool.
12975         * modules/lchown (Depends-on): Likewise.
12976         * doc/posix-functions/chown.texi (chown): Document the bug.
12977         * doc/posix-functions/lchown.texi (lchown): Likewise.
12978         * tests/test-lchown.h (test_chown): Relax test.
12979
12980         mkstemp: avoid conflict with C++ keyword template
12981         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
12982         * lib/mkostemp.c (mkostemp): Likewise.
12983         * lib/mkostemps.c (mkostemps): Likewise.
12984         * lib/mkstemp.c (mkstemp): Likewise.
12985         * lib/mkstemps.c (mkstemps): Likewise.
12986
12987         xalloc-die-tests: optimize
12988         * tests/test-xalloc-die.sh: Reduce number of processes.
12989
12990 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12991
12992         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
12993         patch from ludo@gnu.org (Ludovic Courtès).
12994
12995 2009-11-17  Jim Meyering  <meyering@redhat.com>
12996
12997         version-etc: use proper license string
12998         * modules/version-etc (License): Use LGPL, not LGPLv3+.
12999         * modules/version-etc-fsf: Likewise.
13000
13001 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13002
13003         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
13004         printed to stdout.  Deal with EOL differences.
13005
13006 2009-11-17  Eric Blake  <ebb9@byu.net>
13007
13008         unsetenv: work around Solaris bug
13009         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
13010         * lib/unsetenv.c (rpl_unsetenv): Work around it.
13011         Reported by Jim Meyering.
13012
13013         vasnprintf: avoid compiler warnings
13014         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
13015         variables.
13016         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
13017
13018 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13019
13020         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
13021         settings since xalloc-die is no longer the self test,
13022         xalloc-die.sh is.
13023
13024 2009-11-17  Jim Meyering  <meyering@redhat.com>
13025
13026         test-xalloc-die.sh: make the code agree with the commit log
13027         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
13028         at the end, just in case you happen to have a test-xalloc-die
13029         program in some other PATH directory.
13030
13031         test-xalloc-die.sh: fix a portability bug
13032         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
13033         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
13034         Otherwise, argv[0] (as often seen in diagnostics) would be too
13035         system-dependent, sometimes with, and sometimes without the leading "./".
13036
13037         version-etc-fsf: relax license to LGPLv3+
13038         * modules/version-etc-fsf (License): Relax license.
13039
13040 2009-11-16  Eric Blake  <ebb9@byu.net>
13041
13042         xalloc-die-tests: avoid printing null pointer
13043         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
13044         shell script.
13045         * tests/test-xalloc-die.c (program_name): Declare.
13046         * tests/test-xalloc-die.sh (tmpfiles): New file.
13047
13048         setenv, unsetenv: work around various bugs
13049         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
13050         (setenv) [HAVE_SETENV]: Work around bugs.
13051         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
13052         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
13053         for bugs.
13054         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
13055         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
13056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
13057         * modules/stdlib (Makefile.am): Update substitutions.
13058         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
13059         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
13060         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13061         * modules/setenv-tests: New test.
13062         * modules/unsetenv-tests: Likewise.
13063         * tests/test-setenv.c: New file.
13064         * tests/test-unsetenv.c: Likewise.
13065
13066 2009-11-16  Jim Meyering  <meyering@redhat.com>
13067
13068         version-etc: relax license to LGPLv3+
13069         * modules/version-etc (License): Relax license.
13070
13071         better AC_REQUIRE expanded-before-required-warning avoidance
13072         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
13073         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
13074         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
13075         which is no longer needed.
13076
13077 2009-11-16  Eric Blake  <ebb9@byu.net>
13078
13079         test-freading: clean up temporary file
13080         * tests/test-freading.c (main): Remove file on success, and use
13081         ASSERT more liberally.
13082         Reported by Jim Meyering.
13083
13084 2009-11-16  Jim Meyering  <meyering@redhat.com>
13085
13086         avoid new AC_REQUIRE expanded-before-required warnings
13087         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
13088         merely using it.
13089         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
13090         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
13091
13092 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13093
13094         * tests/test-xalloc-die.c: New file.
13095         * modules/xalloc-die-tests: New file.
13096         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
13097         XFAIL_TESTS so it can be appended by modules.
13098
13099 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13100
13101         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
13102         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
13103
13104 2009-11-14  Eric Blake  <ebb9@byu.net>
13105
13106         fnmatch: avoid compiler warning
13107         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
13108         to silence compiler warning about mismatch signedness in ?:.
13109         Reported by Robert Millan.
13110
13111         intprops: add double-inclusion guard
13112         * lib/intprops.h: Allow idempotent includes.
13113         Suggested by Bruce Korb.
13114
13115         openat: detect Solaris fchownat bug
13116         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
13117         penalizing glibc chownat when only lchownat is broken.
13118         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
13119         trailing slash bugs.
13120         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
13121         * modules/openat-tests (Files): Include more files.
13122         (Depends-on): Add mgetgroups, sleep, stat-time.
13123         (configure.ac): Add additional checks.
13124         (Makefile.am): Build new test.
13125         * tests/test-fchownat.c: New file.
13126
13127         lchown: detect Solaris and FreeBSD bug
13128         * lib/lchown.c (rpl_lchown): Work around bug.
13129         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
13130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13131         * modules/unistd (Makefile.am): Populate it.
13132         * lib/unistd.in.h (lchown): Update declaration.
13133         * doc/posix-functions/lchown.texi (lchown): Document the bug.
13134         * modules/lchown-tests: New file.
13135         * tests/test-lchown.h (test_lchown): Likewise.
13136         * tests/test-lchown.c (main): Likewise.
13137
13138         chown: detect Solaris and FreeBSD bug
13139         * lib/chown.c (rpl_chown): Work around bug.
13140         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
13141         (gl_PREREQ_CHOWN): Delete.
13142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13143         * modules/unistd (Makefile.am): Populate it.
13144         * lib/unistd.in.h (chown): Update declaration.
13145         * lib/lchown.c (chown): Update client.
13146         * modules/lchown (Depends-on): Add lstat.
13147         * doc/posix-functions/chown.texi (chown): Document the bug.
13148         * doc/posix-functions/getgroups.texi (getgroups): Document
13149         getgroups pitfall.
13150         * modules/chown-tests: New file.
13151         * tests/test-chown.h (test_chown): Likewise.
13152         * tests/test-chown.c (main): Likewise.
13153
13154 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
13155
13156         gnulib-tool: correctly detect absence of m4 directories
13157         * gnulib-tool: Avoid extra newline on data passed to wc -l.
13158
13159 2009-11-14  Jim Meyering  <meyering@redhat.com>
13160
13161         maint.mk: Prohibit inclusion of "xalloc.h" without use.
13162         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13163
13164 2009-11-14  John W. Eaton  <jwe@gnu.org>
13165
13166         strftime.h: wrap funtion declaration in extern "C" block
13167         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
13168
13169 2009-11-13  Eric Blake  <ebb9@byu.net>
13170
13171         getgroups: avoid compiler warning
13172         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
13173
13174         getgroups: work around FreeBSD bug
13175         * lib/getgroups.c (rpl_getgroups): Work around the bug.
13176         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
13177         * doc/posix-functions/getgroups.texi (getgroups): Document it.
13178         * tests/test-getgroups.c (main): Fix buffer overrun.
13179
13180         getgroups: avoid compilation failure
13181         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
13182         * modules/getgroups (Depends-on): Add stdint.
13183
13184 2009-11-13  Jim Meyering  <meyering@redhat.com>
13185
13186         test-getgroups: avoid compilation failure
13187         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
13188
13189 2009-11-13  Eric Blake  <ebb9@byu.net>
13190
13191         mgetgroups: new module, taken from coreutils
13192         * modules/mgetgroups: New file.
13193         * lib/mgetgroups.h: Likewise.
13194         * lib/mgetgroups.c (mgetgroups): Likewise.
13195         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
13196         * MODULES.html.sh (Users and groups): Mention it.
13197
13198         getgroups: don't expose GETGROUPS_T to user
13199         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
13200         an element at a time if GETGROUPS_T is wrong size.
13201         * lib/getugroups.h (getugroups): Change signature.
13202         * lib/unistd.in.h (getgroups): Likewise.
13203         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
13204         signature needs fixing.
13205         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
13206         AC_TYPE_GETGROUPS.
13207         * modules/group-member (Depends-on): Add getgroups.
13208         * lib/group-member.c (group_info, get_group_info): Use gid_t.
13209         (group_member): Rely on getgroups replacement.
13210         * lib/getugroups.c (getugroups): Use gid_t.
13211         * tests/test-getgroups.c (main): Likewise.
13212         * NEWS: Mention the signature change.
13213         * doc/posix-functions/getgroups.texi (getgroups): Mention the
13214         problem with signature.
13215         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
13216         GETGROUPS_T is still useful for setgroups.
13217
13218         getgroups, getugroups: provide stubs for mingw
13219         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
13220         * lib/getugroups.c (getugroups): Likewise.
13221         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
13222         function.  Modernize replacement scheme.
13223         (gl_PREREQ_GETGROUPS): Delete.
13224         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
13225         * modules/getgroups (configure.ac): Declare witness.
13226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13227         * modules/unistd (Depends-on): Substitute witness.
13228         * lib/unistd.in.h (getgroups): Declare replacement.
13229
13230         getgroups: avoid calling exit
13231         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
13232         drop xalloc.
13233         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
13234         dependencies.
13235         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
13236         exiting, in the rare case of malloc failure.
13237
13238         getgroups: fix logic error
13239         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
13240         has more than 20 groups.
13241         * modules/getgroups-tests: New test.
13242         * tests/test-getgroups.c: New file.
13243
13244 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13245
13246         * tests/test-base64.c: Improve.
13247
13248 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13249
13250         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
13251         Blake <ebb9@byu.net>.
13252
13253 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13254
13255         * tests/test-xvasprintf.c: Add %s%s related checks.
13256
13257 2009-11-12  Eric Blake  <ebb9@byu.net>
13258
13259         version-etc: match standards.texi style
13260         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
13261         and use <> only for URLs.
13262
13263 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
13264
13265         fts: do not fail on a submount during traversal
13266         * lib/fts.c (fts_build): Read the stat info again after opening
13267         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
13268         Original report at http://bugzilla.redhat.com/501848.
13269
13270 2009-11-12  Jim Meyering  <meyering@redhat.com>
13271
13272         bootstrap: sync from coreutils
13273         * build-aux/bootstrap (bootstrap_epilogue): New function.
13274         Use git_modules_config in one more place.  This make bootstrap's
13275         --gnulib-srcdir option more useful for testing.
13276
13277         bootstrap: generalize autoheader check
13278         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
13279         AC_CONFIG_HEADERS.
13280
13281 2009-11-11  Eric Blake  <ebb9@byu.net>
13282
13283         mkfifoat: use new modules for Solaris and BSD bugs
13284         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
13285         * lib/mkfifoat.c (mknodat): Split...
13286         * lib/mknodat.c (mknodat): ...into new file.
13287         * modules/mkfifoat (Files): Ship new file.
13288         (Depends-on): Add mkfifo, mknod.
13289         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
13290         (Depends-on): Add symlink.
13291         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
13292         redundant with test_mkfifo.h.
13293         (do_mkfifoat, do_mknodat): New helpers.
13294
13295         mknod: new module
13296         * modules/mknod: New file.
13297         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
13298         * lib/mknod.c (mknod): Likewise.
13299         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13300         defaults.
13301         * modules/sys_stat (Makefile.am): Substitute them.
13302         * lib/sys_stat.in.h (mknod): Declare replacement.
13303         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13304         Document it.
13305         * doc/posix-functions/mknod.texi (mknod): Likewise.
13306         * modules/mknod-tests: New test.
13307         * tests/test-mknod.c: Likewise.
13308
13309         mkfifo: new module
13310         * modules/mkfifo: New file.
13311         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13312         * lib/mkfifo.c (mkfifo): Likewise.
13313         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13314         defaults.
13315         * modules/sys_stat (Makefile.am): Substitute them.
13316         * lib/sys_stat.in.h (mkfifo): Declare replacement.
13317         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13318         Document it.
13319         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
13320         * modules/mkfifo-tests: New test.
13321         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
13322         from test-mkfifoat.c.
13323         * tests/test-mkfifo.c: New file.
13324
13325         readlink: detect FreeBSD bug
13326         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
13327         slash on symlink.
13328         * doc/posix-functions/readlink.texi (readlink): Document the bug.
13329         * tests/test-readlink.h (test_readlink): Enhance test.
13330
13331         symlink: detect FreeBSD bug
13332         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
13333         slash on symlink.
13334         * doc/posix-functions/symlink.texi (symlink): Document the bug.
13335         * tests/test-symlink.h (test_symlink): Enhance test.
13336
13337 2009-11-10  Eric Blake  <ebb9@byu.net>
13338
13339         link: detect FreeBSD bug
13340         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
13341         symlink.
13342         * doc/posix-functions/link.texi (link): Document the bug.
13343         * tests/test-link.h (test_link): Enhance test.
13344         * tests/test-linkat.c (main): Update caller.
13345
13346         unlink, remove: detect FreeBSD bug
13347         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
13348         slash on symlink.
13349         * doc/posix-functions/unlink.texi (unlink): Document the bug.
13350         * doc/posix-functions/remove.texi (remove): Likewise.
13351         * tests/test-unlink.h (test_unlink): Enhance test.
13352         * tests/test-remove.c (main): Likewise.
13353
13354 2009-11-09  Eric Blake  <ebb9@byu.net>
13355
13356         rename: detect FreeBSD bug
13357         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
13358         slash on symlink.
13359         * modules/renameat-tests (Depends-on): Add filenamecat.
13360         * tests/test-rename.h (test_rename): Allow one more errno.
13361         * tests/test-renameat.c (main): Likewise.
13362         * doc/posix-functions/rename.texi (rename): Document the bug.
13363
13364         open: detect FreeBSD bug
13365         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
13366         symlink.
13367         * doc/posix-functions/open.texi (open): Document the bug.
13368         * doc/posix-functions/utimes.texi (utimes): Likewise.
13369         * tests/test-open.h (test_open): Add parameters, and test symlink
13370         handling.
13371         * tests/test-open.c (main): Adjust caller.
13372         * tests/test-fcntl-safer.c (main): Likewise.
13373         * modules/open-tests (Depends-on): Add stdbool, symlink.
13374         * modules/fcntl-safer-tests (Depends-on): Likewise.
13375         * tests/test-openat.c (main): Add test-open tests.
13376
13377         stat: detect FreeBSD bug
13378         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
13379         symlink.
13380         * doc/posix-functions/stat.texi (stat): Document the bug.
13381         * tests/test-stat.h (test_stat_func): Add argument.
13382         * tests/test-stat.c (main): Adjust caller.
13383         * tests/test-fstatat.c (main): Likewise.
13384         * modules/stat-tests (Depends-on): Add stdbool, symlink.
13385         Reported by Jim Meyering.
13386
13387 2009-11-09  James Youngman  <jay@gnu.org>
13388
13389         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
13390         * lib/strftime.c: Correct placement of #include "ignore-value.h".
13391
13392 2009-11-08  Jim Meyering  <meyering@redhat.com>
13393
13394         utimens: remove invalid futimesat call
13395         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
13396         It used the file descriptor of the target file as the DIR_FD
13397         parameter and NULL as the file name.  That caused failure with
13398         errno == EFAULT on FreeBSD-8.0-rc2
13399
13400 2009-11-07  Eric Blake  <ebb9@byu.net>
13401
13402         fflush, freadseek: use fseeko, not fseek
13403         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13404         (clear_ungetc_buffer): Avoid potential problems on large files.
13405         * lib/freadseek.c (freadseek): Likewise.
13406         * modules/freadseek (Depends-on): Add fseeko.
13407         * modules/fseek (configure.ac): Set a witness.
13408         * tests/test-fflush.c (main): Use fseeko.
13409         * tests/test-fpurge.c (fseek): Disable link warning.
13410         * tests/test-freadable.c (fseek): Likewise.
13411         * tests/test-freading.c (fseek): Likewise.
13412         * tests/test-fseeko.c (fseek): Likewise.
13413         * tests/test-ftell.c (fseek): Likewise.
13414         * tests/test-ftello.c (fseek): Likewise.
13415         * tests/test-fwritable.c (fseek): Likewise.
13416         * tests/test-fwriting.c (fseek): Likewise.
13417
13418 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13419
13420         * modules/memchr (Depends-on): Drop getpagesize dependency.
13421
13422 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13423
13424         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
13425         Reported by Ludovic Courtès.
13426         * build-aux/pmccabe2html: Improve example usage.
13427         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
13428
13429 2009-11-06  Jim Meyering  <meyering@redhat.com>
13430
13431         do-release-commit-and-tag: New module.
13432         Automate the release-commit and tag process.
13433         * build-aux/do-release-commit-and-tag: New script, from coreutils.
13434         * modules/do-release-commit-and-tag: New file.
13435         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13436
13437 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13438
13439         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
13440         because test-select.c uses inet_pton.
13441
13442 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13443
13444         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
13445         GETADDRINFO_LIB.  Bump serial number.
13446         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
13447         Suggested by Eric Blake <ebb9@byu.net>.
13448
13449 2009-11-05  Eric Blake  <ebb9@byu.net>
13450
13451         strtod: detect darwin bug
13452         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
13453         Reported by Leo Davis.
13454
13455         freopen-safer: new module
13456         * modules/freopen-safer: New module.
13457         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
13458         * lib/freopen-safer.c (freopen_safer): New file.
13459         * lib/stdio-safer.h (freopen_safer): New declaration.
13460         * lib/stdio--.h (freopen): New override.
13461         * MODULES.html.sh (File stream based Input/Output): Mention it.
13462         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
13463         freopen-safer module.
13464         * doc/posix-functions/stderr.texi (stderr): Likewise.
13465         * doc/posix-functions/stdin.texi (stdin): Likewise.
13466         * doc/posix-functions/stdout.texi (stdout): Likewise.
13467         * modules/freopen-safer-tests: New test.
13468         * tests/test-reopen-safer.c: New file.
13469
13470 2009-11-05  Jim Meyering  <meyering@redhat.com>
13471
13472         maint.mk: Prohibit inclusion of "close-stream.h" without use.
13473         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13474
13475 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13476
13477         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
13478
13479 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13480
13481         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
13482
13483 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13484
13485         Fix link error.
13486         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13487         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13488
13489 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13490
13491         * tests/test-func.c: Also test value of __func__.
13492
13493 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13494
13495         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
13496         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
13497
13498 2009-11-05  Bruno Haible  <bruno@clisp.org>
13499
13500         Fix link error.
13501         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13502         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13503         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
13504
13505 2009-11-05  Bruno Haible  <bruno@clisp.org>
13506
13507         Tests for module 'inet_pton'.
13508         * modules/inet_pton-tests: New file.
13509         * tests/test-inet_pton.c: New file.
13510
13511 2009-11-05  Bruno Haible  <bruno@clisp.org>
13512
13513         Tests for module 'inet_ntop'.
13514         * modules/inet_ntop-tests: New file.
13515         * tests/test-inet_ntop.c: New file.
13516
13517 2009-11-04  Eric Blake  <ebb9@byu.net>
13518
13519         stdlib-safer: wrap all mkstemp variants
13520         * modules/mkostemp (configure.ac): Set witness.
13521         * modules/mkostemps (configure.ac): Likewise.
13522         * modules/mkstemps (configure.ac): Likewise.
13523         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
13524         (mkstemps_safer): Wrap more functions.
13525         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
13526         wrapping.
13527         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
13528         (mkstemps_safer): Implement the wrappers.
13529
13530         mkstemps, mkostemps: new modules
13531         * modules/mkostemps: New module.
13532         * modules/mkstemps: Likewise.
13533         * lib/mkostemps.c (mkostemps): New file.
13534         * lib/mkstemps.c (mkstemps): Likewise.
13535         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
13536         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
13537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
13538         * modules/stdlib (Makefile.am): Substitute them.
13539         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
13540         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
13541         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13542         * doc/gnulib.texi (Glibc stdlib.h): Include them.
13543         * MODULES.html.sh (File system functions): Mention them.
13544
13545         tempname: resync from glibc
13546         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
13547         same values for __GT_FILE as glibc.  Abort even when assertions
13548         are disabled.
13549         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
13550         match its value otherwise.  Allow idempotent inclusion.
13551         * lib/mkdtemp.c (mkdtemp): Adjust caller.
13552         * lib/mkostemp.c (mkostemp): Likewise.
13553         * lib/mkstemp.c (mkstemp): Likewise.
13554         * lib/tmpfile.c (tmpfile): Likewise.
13555         * NEWS: Document this.
13556
13557         utimens: fix use of futimens on older Linux
13558         * lib/utimens.c (fdutimens): Use updated, rather than original,
13559         timespec to avoid bug in older Linux kernel.
13560         Reported by Simon Josefsson.
13561
13562 2009-11-04  Bruno Haible  <bruno@clisp.org>
13563
13564         Make num_processors more flexible and consistent.
13565         * lib/nproc.h (enum nproc_query): New type.
13566         (num_processors): Add a 'query' argument.
13567         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
13568         (num_processors): Add a 'query' argument. Test the value of the
13569         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
13570         mingw, count the number of CPUs available for the current process.
13571         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
13572         Check for sched_getaffinity and sched_getaffinity_np.
13573         * modules/nproc (Depends-on): Add c-ctype, extensions.
13574         * NEWS: Mention the change.
13575
13576 2009-11-03  Bruno Haible  <bruno@clisp.org>
13577
13578         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
13579
13580 2009-11-03  Jim Meyering  <meyering@redhat.com>
13581
13582         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
13583         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
13584         if it is defined.
13585
13586 2009-11-02  Eric Blake  <ebb9@byu.net>
13587
13588         mktime, timegm: share common declaration
13589         * lib/mktime-internal.h: New file.
13590         * lib/mktime.c: Use it rather than open-coding a declaration.
13591         * lib/timegm.c: Likewise.
13592         * modules/mktime (Files): Ship it.
13593         * modules/timegm (Files): Likewise.
13594         Suggested by Bruno Haible.
13595
13596         test-update-copyright: update test to match script changes
13597         * tests/test-update-copyright.sh: Avoid hard-coding perl
13598         location.  Don't update *.bak created by earlier runs.
13599
13600 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13601             Simon Josefsson  <simon@josefsson.org>
13602             Bruno Haible  <bruno@clisp.org>
13603
13604         Fix link error on Solaris 8.
13605         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13606         also in libnsl. Define also INET_PTON_LIB.
13607         * modules/inet_pton (Link): New section.
13608
13609 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13610             Bruno Haible  <bruno@clisp.org>
13611
13612         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13613         * modules/inet_ntop (Link): New section.
13614         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13615
13616 2009-11-02  Eric Blake  <ebb9@byu.net>
13617
13618         maint: avoid compiler warnings in m4 macros
13619         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13620         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13621
13622 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13623
13624         * m4/pmccabe2html.m4: Remove file.
13625         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13626         function.  Change maintainer.
13627         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13628         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13629         Courtès).
13630
13631 2009-10-31  Eric Blake  <ebb9@byu.net>
13632
13633         fseeko: fix m4 regression
13634         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13635         regression from 2009-10-27.
13636         Reported by Ralf Wildenhues.
13637
13638 2009-10-31  Jim Meyering  <meyering@redhat.com>
13639
13640         inttostr: aesthetics and improved (compile-time) safety
13641         Define inttype_is_signed rather than inttype_is_unsigned,
13642         since the sole use is via "#if inttype_is_signed".
13643         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13644         inttype_is_unsigned.
13645         * lib/offtostr.c (inttype_is_signed): Likewise.
13646         * lib/uinttostr.c (inttype_is_signed): Likewise.
13647         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13648         * lib/inttostr.c (inttostr): Use verify to cross-check the
13649         inttype_is_signed value and the signedness of the actual type.
13650         * modules/inttostr (Depends-on): Add verify.
13651
13652 2009-10-30  Eric Blake  <ebb9@byu.net>
13653
13654         build: avoid compiler warnings
13655         * lib/fchmodat.c (lchmod): Mark unused variables.
13656         * lib/getopt.c (_getopt_initialize): Likewise.
13657         * lib/mktime.c (__mktime_internal): Provide prototype.
13658         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13659         older gcc that do not understand #pragma GCC diagnostic.
13660         * lib/uinttostr.c (inttype_is_unsigned): Define.
13661         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13662
13663 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13664
13665         stat: fix compilation on AIX
13666         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13667         only see struct stat64.
13668
13669 2009-10-30  Eric Blake  <ebb9@byu.net>
13670
13671         exclude: make more robust
13672         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13673         rather than masking a coding bug.
13674         Suggested by Bruno Haible.
13675
13676 2009-10-30  Jim Meyering  <meyering@redhat.com>
13677
13678         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13679         Rather than putting #!/usr/bin/perl on the first line,
13680         start with a variant of what's recommended by "man perlrun" that
13681         invokes the first "perl" program from your shell's search path.
13682         * build-aux/gitlog-to-changelog: Replace #!... as above.
13683         Add a "Local Variables" perl mode setting.
13684         Prompted by a patch from Ludovic Courtès.
13685         Improved by Eric Blake.
13686         * build-aux/useless-if-before-free: Likewise.
13687         * build-aux/announce-gen: Likewise.
13688         * build-aux/update-copyright: Likewise.
13689
13690 2009-10-29  Eric Blake  <ebb9@byu.net>
13691
13692         filenamecat-lgpl: adjust clients
13693         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13694         filenamecat.
13695         * modules/renameat (Depends-on): Likewise.
13696
13697         filenamecat: split into filenamecat-lgpl
13698         * modules/filenamecat-lgpl: New module.
13699         * modules/filenamecat (Files): Move library-safe files into
13700         filenamecat-lgpl.
13701         (Depends-on): Add filenamecat-lgpl.
13702         (configure.ac): Declare witness.
13703         * lib/filenamecat.h (file_name_concat): Only declare when using
13704         GPL module.
13705         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13706         Move...
13707         * lib/filenamecat-lgpl.c: ...into new file.
13708         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13709         (gl_FILE_NAME_CONCAT): Use it.
13710         * MODULES.html.sh (File system functions): Mention new module.
13711
13712         argp: avoid memory leak
13713         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13714         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13715         base_name, since the latter malloc()s and can call exit().
13716         Leak introduced 2006-07-03.
13717
13718         dirname-lgpl: adjust clients that don't need full dirname
13719         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13720         * modules/filenamecat (Depends-on): Likewise.
13721         * modules/linkat (Depends-on): Likewise.
13722         * modules/mkancesdirs (Depends-on): Likewise.
13723         * modules/mkdir (Depends-on): Likewise.
13724         * modules/openat (Depends-on): Likewise.
13725         * modules/savewd (Depends-on): Likewise.
13726         * modules/rename (Depends-on): Likewise.
13727         (License): Relax license.
13728         * modules/mkdir-tests (Depends-on): Drop progname.
13729         (Makefile.am): Delete unneeded LDADD.
13730         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13731
13732         dirname: split into dirname-lgpl
13733         * modules/dirname-lgpl: New module.
13734         * modules/dirname (Files): Move library-safe files into
13735         dirname-lgpl.
13736         (Depends-on): Add dirname-lgpl.
13737         (configure.ac): Declare witness.
13738         * modules/double-slash-root (License): Relax license.
13739         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13740         module.
13741         * lib/dirname.c (dir_len, mdir_name): Move...
13742         * lib/dirname-lgpl.c: ...into new file.
13743         * lib/basename.c (last_component, base_len): Move...
13744         * lib/basename-lgpl.c: ...into new file.
13745         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13746         (gl_DIRNAME): Use it.
13747         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13748         Mention new module.
13749         * modules/dirname-tests (Depends-on): Add progname.
13750         * tests/test-dirname.c (program_name): Delete.
13751
13752         mkdir: make safe for libraries
13753         * modules/mkdir (Depends-on): Drop xalloc.
13754         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13755         exit.
13756
13757         tests: avoid some compiler warnings
13758         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13759         literals.
13760         * tests/test-memchr.c (main): Avoid type mismatch.
13761         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13762         * tests/test-base64.c (main): Likewise.
13763         * tests/test-getdelim.c (main): Likewise.
13764         * tests/test-gethostname.c (main): Likewise.
13765         * tests/test-getline.c (main): Likewise.
13766         * tests/test-netinet_in.c (main): Likewise.
13767         * tests/test-select.c (open_server_socket, main): Likewise.
13768         * tests/test-select-stdin.c (main): Likewise.
13769         * tests/test-sockets.c (main): Likewise.
13770         * tests/test-strsignal.c (main): Likewise.
13771         * tests/test-sys_select.c (main): Likewise.
13772         * tests/test-sys_socket.c (main): Likewise.
13773         * tests/test-u64.c (main): Likewise.
13774         * tests/test-xfprintf-posix.c (main): Likewise.
13775         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13776
13777         sockets: avoid compiler warning
13778         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13779
13780         maint: detect usage(1) and other suspicious exits
13781         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13782
13783 2009-10-29  Jim Meyering  <meyering@redhat.com>
13784
13785         timespec: long-to-int truncation could make timespec_cmp malfunction
13786         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13787         a multiple of 2^32 nanoseconds as no difference.
13788
13789 2009-10-28  Jim Meyering  <meyering@redhat.com>
13790
13791         fprintftime: wrap macro code argument in "do {...} while(0)"
13792         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13793         cpy macro must be a statement that can be followed by a semicolon.
13794         Now that the else clause contains a comment and is hence longer
13795         than one line, I require curly braces.  That in turn requires
13796         that we wrap this code block in the standard do...while(0).
13797
13798         fprintftime: remove stray semicolon from previous change
13799         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13800
13801         fprintftime: avoid a warning about ignored fwrite return value
13802         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13803         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13804         that is unsafe.
13805         * modules/fprintftime (Depends-on): Add ignore-value.
13806
13807         exclude: avoid an unwarranted warning
13808         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13809
13810 2009-10-27  Eric Blake  <ebb9@byu.net>
13811
13812         fseek: avoid compilation failure when fflush is replaced
13813         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13814         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13815         module is in use.
13816         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13817         module is not in use; since REPLACE_FSEEK worked otherwise.
13818         (GNULIB_FTELLO): Likewise for ftell.
13819         Reported by Ian Beckwith and others.
13820
13821 2009-10-27  Bruno Haible  <bruno@clisp.org>
13822
13823         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13824         Reported by Jim Meyering.
13825
13826 2009-10-27  Jim Meyering  <jim@meyering.net>
13827             Bruno Haible  <bruno@clisp.org>
13828
13829         Avoid warning despite dropping the return value of fwrite.
13830         * lib/unicodeio.c: Include ignore-value.h.
13831         (fwrite_success_callback): Explicitly ignore fwrite's return value.
13832         * modules/unicodeio (Depends-on): Add ignore-value.
13833
13834 2009-10-26  Eric Blake  <ebb9@byu.net>
13835
13836         areadlinkat: fix fallback path
13837         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
13838         pointer and zero.
13839
13840 2009-10-22  Pádraig Brady  <P@draigBrady.com>
13841
13842         Use a better IO block size for modern systems
13843         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
13844         * lib/md2.c: Likewise.
13845         * lib/md4.c: Likewise.
13846         * lib/md5.c: Likewise.
13847         * lib/sha1.c: Likewise.
13848         * lib/sha256.c: Likewise.
13849         * lib/sha512.c: Likewise.
13850
13851 2009-10-22  Eric Blake  <ebb9@byu.net>
13852
13853         tests: avoid several compiler warnings
13854         * tests/test-getcwd.c (main): Avoid buffer underflow.
13855         * tests/test-getdate.c (main): String literals are not safe with
13856         putenv, so use setenv.  Declare unused argument.
13857         * modules/getdate-tests (Depends-on): Add setenv.
13858         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
13859         problems with string literals in char *.
13860         * tests/test-hash.c (main): Avoid shadowing declaration.
13861         (insert_new): Treat string literals as char const *.
13862         * tests/test-getopt.h (test_getopt): Likewise.
13863         (getopt_loop): Alter types to minimize casting elsewhere.
13864         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
13865         (test_getopt_long_posix): Likewise.
13866         (do_getopt_long): Add wrapper to minimize casting.
13867         * tests/test-atexit.c (clear_temp_file): Use void.
13868         * tests/test-areadlink-with-size.c (main): Declare unused
13869         arguments.
13870         * tests/test-areadlink.c (main): Likewise.
13871         * tests/test-areadlinkat-with-size.c (main): Likewise.
13872         * tests/test-areadlinkat.c (main): Likewise.
13873         * tests/test-canonicalize-lgpl.c (main): Likewise.
13874         * tests/test-canonicalize.c (main): Likewise.
13875         * tests/test-dirent-safer.c (main): Likewise.
13876         * tests/test-dirname.c (main): Likewise.
13877         * tests/test-dup2.c (main): Likewise.
13878         * tests/test-fchdir.c (main): Likewise.
13879         * tests/test-fcntl-h.c (main): Likewise.
13880         * tests/test-fcntl-safer.c (main): Likewise.
13881         * tests/test-fdopendir.c (main): Likewise.
13882         * tests/test-fdutimensat.c (main): Likewise.
13883         * tests/test-fflush.c (main): Likewise.
13884         * tests/test-filenamecat.c (main): Likewise.
13885         * tests/test-filevercmp.c (main): Likewise.
13886         * tests/test-fopen-safer.c (main): Likewise.
13887         * tests/test-fopen.c (main): Likewise.
13888         * tests/test-fpending.c (main): Likewise.
13889         * tests/test-fpurge.c (main): Likewise.
13890         * tests/test-freading.c (main): Likewise.
13891         * tests/test-fstatat.c (main): Likewise.
13892         * tests/test-fsync.c (main): Likewise.
13893         * tests/test-futimens.c (main): Likewise.
13894         * tests/test-getndelim2.c (main): Likewise.
13895         * tests/test-gettimeofday.c (main): Likewise.
13896         * tests/test-getopt.c (main): Likewise.
13897         * tests/test-i-ring.c (main): Likewise.
13898         * tests/test-inttypes.c (main): Likewise.
13899         * tests/test-link.c (main): Likewise.
13900         * tests/test-lstat.c (main): Likewise.
13901         * tests/test-math.c (main): Likewise.
13902         * tests/test-md5.c (main): Likewise.
13903         * tests/test-memchr2.c (main): Likewise.
13904         * tests/test-memrchr.c (main): Likewise.
13905         * tests/test-mkdir.c (main): Likewise.
13906         * tests/test-mkdirat.c (main): Likewise.
13907         * tests/test-mkfifoat.c (main): Likewise.
13908         * tests/test-open.c (main): Likewise.
13909         * tests/test-openat-safer.c (main): Likewise.
13910         * tests/test-openat.c (main): Likewise.
13911         * tests/test-quotearg.c (main): Likewise.
13912         * tests/test-rawmemchr.c (main): Likewise.
13913         * tests/test-readlink.c (main): Likewise.
13914         * tests/test-remove.c (main): Likewise.
13915         * tests/test-rename.c (main): Likewise.
13916         * tests/test-renameat.c (main): Likewise.
13917         * tests/test-rmdir.c (main): Likewise.
13918         * tests/test-sha1.c (main): Likewise.
13919         * tests/test-signal.c (main): Likewise.
13920         * tests/test-sigaction.c (main): Likewise.
13921         * tests/test-stat.c (main): Likewise.
13922         * tests/test-stat-time.c (main): Likewise.
13923         * tests/test-stddef.c (main): Likewise.
13924         * tests/test-stdint.c (main): Likewise.
13925         * tests/test-stdio.c (main): Likewise.
13926         * tests/test-stdlib.c (main): Likewise.
13927         * tests/test-strchrnul.c (main): Likewise.
13928         * tests/test-strerror.c (main): Likewise.
13929         * tests/test-string.c (main): Likewise.
13930         * tests/test-strtod.c (main): Likewise.
13931         * tests/test-strverscmp.c (main): Likewise.
13932         * tests/test-symlink.c (main): Likewise.
13933         * tests/test-symlinkat.c (main): Likewise.
13934         * tests/test-sys_stat.c (main): Likewise.
13935         * tests/test-sys_time.c (main): Likewise.
13936         * tests/test-time.c (main): Likewise.
13937         * tests/test-unistd.c (main): Likewise.
13938         * tests/test-unlink.c (main): Likewise.
13939         * tests/test-unlinkat.c (main): Likewise.
13940         * tests/test-utimens.c (main): Likewise.
13941         * tests/test-utimensat.c (main): Likewise.
13942         * tests/test-version-etc.c (main): Likewise.
13943         * tests/test-wchar.c (main): Likewise.
13944         * tests/test-wctype.c (main): Likewise.
13945         * tests/test-xprintf-posix.c (main): Likewise.
13946         * tests/test-posixtm.c (main): Likewise.
13947         (STREQ): Delete unused macro.
13948         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
13949         shadowed variables.
13950         * tests/test-memchr.c (main): Likewise.
13951
13952 2009-10-21  Eric Blake  <ebb9@byu.net>
13953
13954         areadlinkat: avoid failure on older glibc
13955         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
13956         rather than mis-comparing 0 against FUNC_RESULT of char*.
13957
13958 2009-10-21  Bruno Haible  <bruno@clisp.org>
13959
13960         * modules/stpncpy (License): Relicense under LGPLv2+.
13961         Reported by David Lutterkort <lutter@redhat.com>.
13962
13963 2009-10-20  Eric Blake  <ebb9@byu.net>
13964
13965         utimensat: work around Solaris 9 bug
13966         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
13967         has trailing slash bugs.
13968         * tests/test-lutimens.h (test_lutimens): Enhance test.
13969         * tests/test-utimens.h (test_utimens): Likewise.
13970         * doc/posix-functions/utime.texi (utime): Enhance documentation.
13971         * doc/posix-functions/utimes.texi (utimes): Likewise.
13972         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13973         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
13974         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
13975         * doc/posix-functions/futimens.texi (futimens): Likewise.
13976
13977         fdutimensat: new module
13978         * modules/fdutimensat: New file.
13979         * lib/fdutimensat.c (fdutimensat): Likewise.
13980         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
13981         * MODULES.html.sh (File system functions): Mention module.
13982         * modules/fdutimensat-tests: New test.
13983         * tests/test-fdutimensat.c: Likewise.
13984
13985         doc: regenerate INSTALL
13986         * doc/INSTALL: Reflect recent autoconf update.
13987         * doc/INSTALL.ISO: Likewise.
13988         * doc/INSTALL.UTF-8: Likewise.
13989
13990 2009-10-20  Pádraig Brady  <P@draigBrady.com>
13991
13992         acl: warn if ACL support is not detected
13993         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
13994
13995 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
13996
13997         * lib/nproc.h: Add extern "C" block for C++.
13998
13999 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
14000             Bruno Haible  <bruno@clisp.org>
14001
14002         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
14003         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
14004         * doc/posix-functions/isalpha.texi: Likewise.
14005         * doc/posix-functions/isblank.texi: Likewise.
14006         * doc/posix-functions/iscntrl.texi: Likewise.
14007         * doc/posix-functions/isdigit.texi: Likewise.
14008         * doc/posix-functions/isgraph.texi: Likewise.
14009         * doc/posix-functions/islower.texi: Likewise.
14010         * doc/posix-functions/isprint.texi: Likewise.
14011         * doc/posix-functions/ispunct.texi: Likewise.
14012         * doc/posix-functions/isspace.texi: Likewise.
14013         * doc/posix-functions/isupper.texi: Likewise.
14014         * doc/posix-functions/isxdigit.texi: Likewise.
14015
14016 2009-10-18  Bruno Haible  <bruno@clisp.org>
14017
14018         Tests for module 'isblank'.
14019         * modules/isblank-tests: New file.
14020         * tests/test-isblank.c: New file.
14021
14022         New module 'isblank'.
14023         * lib/isblank.c: New file.
14024         * m4/isblank.m4: New file.
14025         * modules/isblank: New file.
14026         * doc/posix-functions/isblank.texi: Mention the new module.
14027
14028 2009-10-18  Bruno Haible  <bruno@clisp.org>
14029
14030         New module 'ctype'.
14031         * lib/ctype.in.h: New file.
14032         * m4/ctype.m4: New file.
14033         * modules/ctype: New file.
14034         * doc/posix-headers/ctype.texi: Mention the new module.
14035
14036 2009-10-18  Jim Meyering  <meyering@redhat.com>
14037
14038         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
14039         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
14040         right after its initialization, rather than farther down.
14041         Keeping these in close proximity makes it easier to ensure
14042         that each such variable is initialized.  E.g.,
14043
14044             LIB_CLOCK_GETTIME=
14045             AC_SUBST([LIB_CLOCK_GETTIME])
14046
14047         This change also increments these serial numbers.
14048         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
14049         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14051
14052 2009-10-18  Bruno Haible  <bruno@clisp.org>
14053
14054         Don't let environment variables perturb build.
14055         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
14056         (gl_PREREQ_GETHRXTIME): ... not here.
14057
14058 2009-10-18  Bruno Haible  <bruno@clisp.org>
14059
14060         Avoid symlink attack in localcharset module.
14061         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
14062         (O_NOFOLLOW): Define fallback.
14063         (get_charset_aliases): Don't open the file if it is a symbolic link.
14064         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
14065         gl_FCNTL_H.
14066         (gl_FCNTL_H): Require it.
14067         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
14068         * modules/localcharset (Files): Add m4/fcntl_h.m4.
14069         Reported by Fergal Glynn <fglynn@veracode.com>.
14070
14071 2009-10-18  Bruno Haible  <bruno@clisp.org>
14072
14073         Implement nproc for mingw.
14074         * lib/nproc.c: Include <windows.h>
14075         (num_processors): On native Windows platforms, try GetSystemInfo.
14076
14077 2009-10-18  Bruno Haible  <bruno@clisp.org>
14078
14079         Implement nproc for IRIX.
14080         * lib/nproc.c: Include <sys/sysmp.h>.
14081         (num_processors): On IRIX systems, try sysmp.
14082         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
14083
14084 2009-10-18  Bruno Haible  <bruno@clisp.org>
14085
14086         Implement nproc for HP-UX.
14087         * lib/nproc.c: Include <sys/pstat.h>
14088         (num_processors): On HP-UX systems, try pstat_getdynamic.
14089         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
14090         pstat_getdynamic.
14091
14092 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
14093             Bruno Haible  <bruno@clisp.org>
14094
14095         Implement nproc for NetBSD, OpenBSD.
14096         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
14097         (ARRAY_SIZE): New macro.
14098         (num_processors): On BSD systems, try sysctl of HW_NCPU.
14099         * m4/nproc.m4: New file.
14100         * modules/nproc (Files): Add m4/nproc.m4.
14101         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
14102         (Makefile.am): Instead, augment lib_SOURCES.
14103
14104 2009-10-18  Bruno Haible  <bruno@clisp.org>
14105
14106         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
14107         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
14108         sys/param.h.
14109
14110 2009-10-16  Eric Blake  <ebb9@byu.net>
14111
14112         utimensat: new module
14113         * modules/utimensat: New file.
14114         * lib/utimensat.c (utimensat): Likewise.
14115         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14116         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
14117         so we can work around Linux bugs.
14118         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14119         * modules/sys_stat (Makefile.am): Substitute them.
14120         * lib/sys_stat.in.h (utimensat): Declare it.
14121         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14122         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14123         * modules/utimensat-tests: New test.
14124         * tests/test-utimensat.c: Likewise.
14125
14126         utimens: let lutimens work on non-symlinks
14127         * lib/utimens.c (lutimens): Fall back to utimens rather than
14128         failing with ENOSYS, when file is not a symlink.
14129         (utimens): Reduce redirection.
14130         * tests/test-lutimens.h (test_lutimens): Update test to cover
14131         non-symlinks.
14132         * tests/test-utimens.h (test_utimens): Update test to cover
14133         symlinks.
14134         * tests/test-utimens.c (main): Update caller.
14135
14136         utimens: cache whether utimensat syscall works
14137         * lib/utimens.c (utimensat_works_really): New cache variable.
14138         (fdutimens, lutimens): Use it to avoid failing syscall.
14139
14140         test-stat-time, test-utimens: improve portability
14141         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
14142         ext4 on alpha, and for cygwin.
14143         * tests/test-utimens-common.h: New file.
14144         (nap): Factor delays into single function.
14145         * tests/test-lutimens.h (test_lutimens): Use new header.
14146         * tests/test-futimens.h (test_futimens): Likewise.
14147         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
14148         timestamps to occur from same machine, as was done previously for
14149         test_utimens.
14150         * modules/utimens-tests (Files): Ship new file.
14151         * modules/futimens-tests (Files): Likewise.
14152         Reported in part by Jim Meyering.
14153
14154         sys_stat: sort replacement declarations
14155         * lib/sys_stat.in.h: Sort declarations.
14156         * lib/futimens.c (futimens): Fix typo.
14157
14158 2009-10-15  Jim Meyering  <meyering@redhat.com>
14159
14160         don't let environment settings perturb build
14161         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
14162         could cause a configure-time and/or build-time malfunction.
14163         Typically, a configure-time function-in-library test is performed
14164         via code like this:
14165
14166           LIB_VAR=
14167           AC_SUBST([LIB_VAR])
14168           prefix_saved_LIBS=$LIBS
14169             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
14170                        [test "$ac_cv_search_FUNC" = "none required" ||
14171                         LIB_VAR=$ac_cv_search_FUNC])
14172           LIBS=$prefix_saved_LIBS
14173
14174         However, in each of the files affected by this change, the LIB_VAR=
14175         initialization was omitted.  Thus, when set in the environment, its
14176         value would propagate into generated Makefiles when FUNC is not found
14177         in LIB_NAME.
14178         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
14179         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14181
14182 2009-10-14  Eric Blake  <ebb9@byu.net>
14183
14184         fchdir: avoid infinite recursion in mingw
14185         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
14186         recursing.
14187
14188         test-stat-time: port to mingw
14189         * tests/test-stat-time.c (force_unlink): Return a value.
14190         (test_ctime) [W32]: Fix compilation error.
14191         (nap): Don't call usleep with too large an argument.  Use
14192         force_unlink.
14193         * doc/pastposix-functions/usleep.texi (usleep): Document the
14194         portability issue.
14195
14196 2009-10-13  Jim Meyering  <meyering@redhat.com>
14197
14198         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
14199         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
14200         * modules/pipe-filter-ii: Likewise.
14201         * modules/sys_socket-tests: Likewise.
14202         * modules/tsearch-tests: Likewise.
14203         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
14204         (check): Depend on it.
14205
14206 2009-10-12  Eric Blake  <ebb9@byu.net>
14207
14208         utimens-tests: port to NFS file systems
14209         * tests/test-utimens.h (test_utimens): Refactor utimecmp
14210         comparisons to avoid spurious failures from timestamp drift
14211         between NFS machines.
14212
14213 2009-10-12  Eric Blake  <ebb9@byu.net>
14214
14215         stat-time-tests: minor cleanups
14216         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
14217         * tests/test-stat-time.c (nap): Separate assignment from call.
14218         Suggested by Paolo Bonzini and Bruno Haible.
14219
14220         sys_stat: guarantee struct timespec
14221         * lib/sys_stat.in.h (includes): Always include <time.h>
14222         * modules/sys_stat (Depends-on): Add time.
14223         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
14224         mode_t permission values.
14225         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
14226         get at subsecond timestamps.
14227
14228 2009-10-10  Eric Blake  <ebb9@byu.net>
14229
14230         futimens: new module
14231         * modules/futimens: New file.
14232         * lib/futimens.c (futimens): Likewise.
14233         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
14234         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
14235         we can work around Linux bugs.
14236         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14237         * modules/sys_stat (Makefile.am): Substitute them.
14238         * lib/sys_stat.in.h (futimens): Declare it.
14239         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14240         * doc/posix-functions/futimens.texi (futimens): Likewise.
14241         * modules/futimens-tests: New test.
14242         * tests/test-futimens.c: Likewise.
14243
14244         utimens: introduce fdutimens
14245         * lib/utimens.h (fdutimens): New prototype.
14246         * lib/utimens.c (gl_futimens): Move guts...
14247         (fdutimens): ...to new interface.
14248         * tests/test-utimens.c (do_fdutimens): Use it.
14249
14250         utimens: add UTIME_NOW and UTIME_OMIT support
14251         * lib/utimens.c (validate_timespec, update_timespec): New helper
14252         functions.
14253         (gl_futimens, lutimens): Use them.
14254         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
14255         stdbool, sys_stat.
14256         (Link): Mention resulting library dependency.
14257         * modules/utimecmp (Link): Likewise.
14258         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
14259         (Makefile.am): Pick up library dependency.
14260         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
14261         definition.
14262         * tests/test-sys_stat.c: Test the definitions.
14263         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
14264         * NEWS: Document library dependency.
14265
14266         utimecmp: support symlink timestamps
14267         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
14268         hashing when possible.  Use pathconf when available.
14269         (SYSCALL_RESOLUTION): Recognize tighter resolution.
14270         * modules/utimecmp (Depends-on): Add lstat.
14271
14272         utimens: add lutimens interface
14273         * lib/utimens.c (lutimens): New function.
14274         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
14275         * lib/utimens.h (lutimens): Declare new interface.
14276         * tests/test-utimens.c (main): Enhance test.
14277         * tests/test-lutimens.h (test_lutimens): New file.
14278         * modules/utimens-tests (Files): Distribute it.
14279         (Depends-on): Add symlink.
14280         (configure.ac): Check for usleep.
14281
14282         utimens: validate futimens usage
14283         * lib/utimens.c (gl_futimens): Require valid fd up front, using
14284         fewer syscalls on failure later on.  Avoid compiler warning on
14285         mingw.
14286         * modules/utimens (Depends-on): Add dup2.
14287
14288         utimens: add test
14289         * modules/utimens-tests: New test.
14290         * tests/test-utimens.h: New file.
14291         * tests/test-futimens.h: Likewise.
14292         * tests/test-utimens.c: Likewise.
14293
14294         doc: mention timestamp portability issues
14295         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
14296         instead.
14297         * doc/posix-functions/utime.texi (utime): Likewise.
14298         * doc/posix-functions/utimes.texi (utimes): Likewise.
14299         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
14300         instead.
14301         * doc/posix-functions/futimens.texi (futimens): Mention utimens
14302         module.
14303         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14304         Mention weakness with symlink timestamps.
14305         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
14306         to utimensat/futimens instead.
14307         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
14308
14309         test-dup2: enhance test
14310         * tests/test-dup2.c (main): Also check AT_FDCWD.
14311
14312         test-stat-time: avoid more spurious failures
14313         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
14314         xfs; and avoid race if the two timestamps cross quantization edge.
14315
14316         relocatable: prefer 'file system' over 'filesystem'
14317         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
14318         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
14319         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
14320         * doc/relocatable.texi (Enabling Relocatability): Likewise.
14321         * lib/relocatable.c (compute_curr_prefix): Likewise.
14322
14323 2009-10-10  Jim Meyering  <meyering@redhat.com>
14324
14325         stat-time-tests: check for the usleep function
14326         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
14327
14328 2009-10-10  Bruno Haible  <bruno@clisp.org>
14329
14330         * modules/xnanosleep: Put the Link section after the Include section.
14331
14332 2009-10-09  Eric Blake  <ebb9@byu.net>
14333
14334         dup2: work around FreeBSD 6.1 bug
14335         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
14336         * doc/posix-functions/dup2.texi (dup2): Document it.
14337         Reported by Nelson H. F. Beebe and Jim Meyering.
14338
14339         test-stat-time: port to buggy NFS clients
14340         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
14341         (test_ctime): Also skip test if mtime and ctime are skewed.
14342
14343         maint: prefer 'file system' over 'filesystem'
14344         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14345         * doc/posix-functions/lstat.texi (lstat): Likewise.
14346         * lib/file-has-acl.c (file_has_acl): Likewise.
14347         * lib/fwriteerror.c [TEST]: Likewise.
14348         * tests/test-areadlink.h (test_areadlink): Likewise.
14349         * tests/test-areadlinkat-with-size.c (main): Likewise.
14350         * tests/test-areadlinkat.c (main): Likewise.
14351         * tests/test-canonicalize-lgpl.c (main): Likewise.
14352         * tests/test-canonicalize.c (main): Likewise.
14353         * tests/test-fstatat.c (main): Likewise.
14354         * tests/test-linkat.c (main): Likewise.
14355         * tests/test-lstat.h (test_lstat_func): Likewise.
14356         * tests/test-mkdir.h (test_mkdir): Likewise.
14357         * tests/test-readlink.h (test_readlink): Likewise.
14358         * tests/test-remove.c (main): Likewise.
14359         * tests/test-rename.h (test_rename): Likewise.
14360         * tests/test-renameat.c (main): Likewise.
14361         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14362         * tests/test-symlink.h (test_symlink): Likewise.
14363         * tests/test-symlinkat.c (main): Likewise.
14364         * tests/test-unlink.h (test_unlink_func): Likewise.
14365         * tests/test-unlinkat.c (main): Likewise.
14366
14367         maint: make realtime library usage explicit
14368         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
14369         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
14370         * modules/settime (Link): Likewise.
14371         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
14372
14373         test-stat-time: speed up execution
14374         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
14375         warning on mingw.
14376         (nap): New helper function.
14377         (prepare_test): Use it to reduce sleep time.
14378         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
14379         execution.
14380         * modules/stat-time-tests (configure.ac): Check for usleep.
14381
14382 2009-10-09  Jim Meyering  <meyering@redhat.com>
14383
14384         selinux-h: always use getfilecon wrappers
14385         * lib/getfilecon.c: New file.
14386         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
14387         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
14388         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
14389         (fgetfilecon): Provide a stub.
14390         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
14391         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
14392         file unconditionally.
14393         When <selinux/selinux.h> is found, arrange to use wrappers.
14394         * modules/selinux-h (Files): Add getfilecon.c.
14395         (Makefile.am): Substitute include-next-related bits
14396         into the now-always-generated selinux/selinux.h file.
14397         * doc/glibc-functions/lgetfilecon.texi: New file.
14398         * doc/glibc-functions/fgetfilecon.texi: New file.
14399         * doc/glibc-functions/getfilecon.texi: New file.
14400         * doc/glibc-functions/getfilecon-desc.texi: New file.
14401         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
14402         which to pull in the new files.
14403         * MODULES.html.sh (Misc): Add selinux-h.
14404
14405 2009-10-08  Jim Meyering  <meyering@redhat.com>
14406
14407         unistd: fix comment typo
14408         * lib/unistd.in.h (euidaccess): Fix a comment typo.
14409
14410 2009-10-08  Eric Blake  <ebb9@byu.net>
14411
14412         areadlink: use SIZE_MAX consistently
14413         * modules/areadlink (Depends-on): Add stdint.
14414         * modules/areadlink-with-size (Depends-on): Likewise.
14415         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
14416         gives NULL; drop sys/types, since unistd gives size_t; and add
14417         stdint for SIZE_MAX.
14418         (SIZE_MAX): Rely on headers.
14419         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
14420         and add stdint.
14421         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
14422         (SIZE_MAX): Likewise.
14423         (INITIAL_BUF_SIZE): Turn into enum.
14424         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
14425
14426 2009-10-08  Jim Meyering  <meyering@redhat.com>
14427
14428         areadlinkat: avoid compilation failure
14429         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
14430         Fix typo in comment.
14431
14432 2009-10-07  Eric Blake  <ebb9@byu.net>
14433
14434         areadlinkat-with-size: new module
14435         * modules/areadlinkat-with-size: New module.
14436         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
14437         * lib/areadlink.h (areadlinkat): Declare it.
14438         * MODULES.html.sh (File system functions): Mention it.
14439         * modules/areadlinkat-with-size-tests: New test.
14440         * tests/test-areadlinkat-with-size.c: New file.
14441
14442         xreadlinkat: new module
14443         * modules/xreadlinkat: New module.
14444         * lib/xreadlinkat.c (xreadlinkat): New file.
14445         * lib/xreadlink.h (xreadlinkat): Declare it.
14446         * MODULES.html.sh (File system functions): Mention it.
14447
14448         areadlinkat: new module
14449         * lib/at-func.c (FUNC_FAIL): New define.
14450         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
14451         * modules/areadlinkat: New module.
14452         * lib/linkat.c (areadlinkat): Move...
14453         * lib/areadlinkat.c (areadlinkat): ...to new file.
14454         * lib/areadlink.h (areadlinkat): Declare it.
14455         * modules/linkat (Depends-on): Add areadlinkat.
14456         * MODULES.html.sh (File system functions): Mention it.
14457         * modules/areadlinkat-tests: New test.
14458         * tests/test-areadlinkat.c: New file.
14459
14460         areadlink, areadlink-with-size: add tests
14461         * modules/areadlink-tests: New test.
14462         * modules/areadlink-with-size-tests: Likewise.
14463         * tests/test-areadlink.h: New file.
14464         * tests/test-areadlink.c: Likewise.
14465         * tests/test-areadlink-with-size.c: Likewise.
14466
14467         maint: minor cleanups
14468         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
14469         _UNUSED_PARAMETER_ instead.
14470         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
14471         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
14472         * modules/linkat-tests (Files): Distribute test-link.h.
14473
14474         openat, utimens: whitespace cleanup
14475         * lib/openat.c: Prefer space throughout, rather than mix of 8
14476         spaces vs. tabs.
14477         * lib/at-func.c: Likewise.
14478         * lib/utimens.c: Likewise.
14479
14480         openat: avoid using wrong fd
14481         * lib/openat.c (openat_permissive): Reject user's fd if saving the
14482         working directory chooses same fd.
14483         * lib/at-func.c (AT_FUNC_NAME): Likewise.
14484
14485         mkdir, mkdirat: fix cygwin 1.5.x bug
14486         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
14487         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
14488         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
14489         bug.
14490         (gl_PREREQ_MKDIR): Delete unused macro.
14491         * modules/mkdir (Files): Track file rename.
14492         (configure.ac): Update macro name.
14493         * modules/openat (Depends-on): Add mkdir.
14494         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
14495
14496         mkdir, mkdirat: add tests
14497         * modules/mkdir-tests: New test.
14498         * tests/test-mkdir.h: New file.
14499         * tests/test-mkdir.c: Likewise.
14500         * tests/test-mkdirat.c: Likewise.
14501         * modules/openat-tests (Files): Add new files.
14502         (Makefile.am): Run new test.
14503
14504 2009-10-06  Eric Blake  <ebb9@byu.net>
14505
14506         doc: tweak *at function documentation
14507         * doc/posix-functions/faccessat.texi (faccessat): Mention
14508         known issue with replacement.
14509         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
14510         * doc/posix-functions/linkat.texi (linkat): Likewise.
14511         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14512         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14513         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14514         * doc/posix-functions/renameat.texi (renameat): Likewise.
14515         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14516
14517         openat: fix GNU/Hurd bug in unlinkat
14518         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
14519         broken.
14520         * doc/posix-functions/unlink.texi (unlink): Document this.
14521         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
14522
14523         fdopendir: fix GNU/Hurd bug
14524         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
14525         allowing non-directory fds.
14526         * lib/fdopendir.c (rpl_fdopendir): Work around it.
14527         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14528         * modules/dirent (Makefile.am): Substitute it.
14529         * lib/dirent.in.h (fdopendir): Declare replacement.
14530         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
14531         * tests/test-fdopendir.c (main): Test something other than
14532         /dev/null, since on Hurd that behaves like a directory.
14533
14534         test-symlink: port to GNU/Hurd
14535         * tests/test-symlink.h (test_symlink): Relax expected errno.
14536
14537         doc: tweak more cygwin information
14538         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
14539         now compatible with glibc.
14540         * doc/posix-functions/getopt.texi (getopt): Likewise.
14541
14542         getopt-gnu: add another test
14543         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
14544         guarantee behavior relied on by m4.
14545         * tests/test-getopt.c (main): Use it.
14546         * modules/getopt-posix-tests (Depends-on): Add setenv.
14547         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
14548
14549         getopt: fix compilation on darwin
14550         * lib/getopt.in.h (includes): Leave breadcrumbs during system
14551         include.
14552         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
14553         Reported by Ludovic Courtès.
14554
14555 2009-10-06  Bruno Haible  <bruno@clisp.org>
14556
14557         * modules/size_max (Description): Discourage its use.
14558         Reported by Simon Josefsson.
14559
14560 2009-10-06  Jim Meyering  <meyering@redhat.com>
14561
14562         linkat: avoid compilation failure
14563         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
14564
14565 2009-10-05  Eric Blake  <ebb9@byu.net>
14566
14567         linkat: support Linux 2.6.17
14568         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
14569         linkat on Linux, but allow cache variable override.
14570         * lib/linkat.c (rpl_linkat): Define override.
14571         * modules/linkat (Depends-on): Add symlinkat.
14572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
14573         * modules/unistd (Makefile.am): Substitute it.
14574         * lib/unistd.in.h (linkat): Declare replacement.
14575         Reported by Pádraig Brady.
14576
14577         quotearg: port test to systems with C.UTF-8 locale
14578         * tests/test-quotearg.c (struct result_strings): Add another
14579         member, differentiating between C.ASCII and C.UTF-8 handling.
14580         (compare_strings): Add parameter.
14581         (main): Adjust all callers.
14582
14583         getopt: avoid clash with FreeBSD _getopt_internal
14584         * lib/getopt.in.h (_getopt_internal): Override the name.
14585         * lib/getopt_int.h (includes): Pick up any overrides.
14586         Reported by Reuben Thomas.
14587
14588         hash: allow C89 compilation
14589         * lib/hash.c (check_tuning): Move declaration before statement.
14590         Reported by Reuben Thomas.
14591
14592 2009-10-05  Karl Berry  <karl@gnu.org>
14593
14594         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14595
14596 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14597             Bruno Haible  <bruno@clisp.org>
14598
14599         * lib/uname.c (uname): Use a table-driven algorithm to compute
14600         Windows NT versions.
14601
14602 2009-10-04  Bruno Haible  <bruno@clisp.org>
14603
14604         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14605         program_invocation_short_name.
14606         * modules/progname (configure.ac): Test for presence of
14607         program_invocation_short_name.
14608         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14609
14610 2009-10-04  Bruno Haible  <bruno@clisp.org>
14611
14612         * lib/progname.c (set_program_name): Fix comment.
14613         Reported by Jim Meyering.
14614
14615 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14616             Bruno Haible  <bruno@clisp.org>
14617
14618         * lib/uname.c: Include <string.h>.
14619         (uname): Do only one call to GetVersionEx in the common case.
14620
14621 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14622             Bruno Haible  <bruno@clisp.org>
14623
14624         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14625         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14626         (uname): Add support for Windows CE and various non-x86 CPU types.
14627
14628 2009-10-03  Bruno Haible  <bruno@clisp.org>
14629
14630         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14631         invocation to tests/configure.ac.
14632         Reported by Ian Beckwith <ianb@erislabs.net>.
14633
14634 2009-10-02  Eric Blake  <ebb9@byu.net>
14635
14636         fchdir: avoid compiler warning
14637         * lib/fchdir.c (canonicalize_file_name)
14638         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14639
14640         test-open: support mingw errno values
14641         * tests/test-open.h (test_open): Relax test.
14642         * tests/test-fopen.h (test_fopen): Likewise.
14643         * tests/test-openat-safer.c (main): Likewise.
14644
14645         open: fix opening directory on mingw
14646         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14647
14648         test-open: on GNU/Hurd, /dev/null is a directory
14649         * tests/test-fopen.h (main): Rename...
14650         (test_fopen): ...to this.  Use a guaranteed non-directory when
14651         confirming open behavior on trailing slash.
14652         * tests/test-openat-safer.c (main): Likewise.
14653         * tests/test-open.h (main): Likewise....
14654         (test_open): ...to this.
14655         * tests/test-fopen.c (main): Adjust caller.
14656         * tests/test-fopen-safer.c (main): Likewise.
14657         * tests/test-open.c (main): Likewise.
14658         * tests/test-fcntl-safer.c (main): Likewise.
14659         Reported by Samuel Thibault.
14660
14661         rename, fchdir: don't ignore chdir failure
14662         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14663         * lib/rename.c (rpl_rename) [W32]: Likewise.
14664         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14665         an empty destination directory if source cannot be renamed,
14666         although there is still possibility for failure.
14667         * doc/posix-functions/rename.texi (rename): Document the race.
14668         Reported by Jim Meyering.
14669
14670         maint: cleanup whitespace in recent commits
14671         * lib/rename.c (rpl_rename): Remove tabs.
14672         * tests/test-link.h (test_link): Likewise.
14673         * lib/fchdir.c (get_name): Likewise.
14674         Reported by Jim Meyering.
14675
14676 2009-10-02  Ben Pfaff  <blp@gnu.org>
14677
14678         relocatable-prog-wrapper: Add missing dependency on
14679         double-slash-root.
14680         * modules/relocatable-prog-wrapper: Add dependency.
14681         Reported by Ian Beckwith <ianb@erislabs.net>.
14682
14683 2009-10-02  Eric Blake  <ebb9@byu.net>
14684
14685         renameat: fix Solaris bugs
14686         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14687         needed fixing.
14688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14689         * modules/stdio (Makefile.am): Substitute it.
14690         * lib/stdio.in.h (renameat): Declare replacement.
14691         * lib/renameat.c (rpl_renameat): Implement fix.
14692
14693         renameat: new module
14694         * modules/renameat: New file.
14695         * lib/renameat.c (renameat): Likewise.
14696         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14698         * modules/stdio (Makefile.am): Substitute them.
14699         * lib/stdio.in.h (renameat): Declare it.
14700         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14701         * doc/posix-functions/renameat.texi (renameat): Likewise.
14702         * modules/renameat-tests: New test.
14703         * tests/test-renameat.c: Likewise.
14704
14705         rename: fix mingw bugs
14706         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14707         directory overwrite bugs.
14708
14709         rename: fix another cygwin 1.5 bug
14710         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14711         checks.
14712         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14713         unnecessary cygwin workarounds.  Also work around bug with moving
14714         full directory onto an empty one.
14715         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14716
14717         rename-dest-slash: merge into rename module
14718         * modules/rename-dest-slash (Status): Mark obsolete.
14719         (Depends-on): Add rename.
14720         (Files): Let rename do it all.
14721         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14722         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14723         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14724         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14725         * lib/rename.c (rpl_rename): Update comments.
14726
14727         rename: fix cygwin 1.5.x bugs
14728         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14729         * lib/rename.c (rpl_rename): Work around them.
14730         * modules/rename (Depends-on): Add same-inode.
14731
14732         rename: fix Solaris 10 bug
14733         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14734         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14735         was the only bug.
14736
14737         rename: fix Solaris 9 bug
14738         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14739         on non-directory.  Avoid calling exit.
14740         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14741         strdup.
14742         * modules/rename-tests (Depends-on): Drop lstat.
14743         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14744         (gl_PREREQ_RENAME): Delete unused macro.
14745
14746         rename-dest-slash: fix NetBSD bug
14747         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14748         links.
14749         * modules/rename-dest-slash (Depends-on): Add same-inode.
14750
14751         rename-tests: new test, exposes several platform bugs
14752         * modules/rename-tests: New file.
14753         * tests/test-rename.h: Likewise.
14754         * tests/test-rename.c: Likewise.
14755         * doc/posix-functions/rename.texi (rename): Improve documentation,
14756         including bugs that will eventually be fixed in gnulib.
14757
14758 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14759
14760         * lib/uname.c: Include <stdlib.h>
14761         (uname): Assume version info is available.
14762
14763 2009-10-02  Jim Meyering  <meyering@redhat.com>
14764
14765         gnu-web-doc-update: correct --help output
14766         * build-aux/gnu-web-doc-update: Make --help output relevant.
14767
14768         gnu-web-doc-update: add standard options
14769         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14770
14771         gnu-web-doc-update: New module.
14772         Use this script to automatically update the on-line web documentation
14773         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14774         * modules/gnu-web-doc-update: New file, from coreutils.
14775         * build-aux/gnu-web-doc-update: New script.
14776
14777 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14778
14779         link: LoadLibrary is not needed.
14780         * lib/link.c: Use GetModuleHandle.
14781
14782 2009-10-01  Eric Blake  <ebb9@byu.net>
14783
14784         getopt: bump serial number
14785         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14786         change.
14787
14788         tests: tighten link, rmdir, and remove tests
14789         * tests/test-link.h (includes): No need to use <config.h> here.
14790         Clean up if directory hard link was created, otherwise test for
14791         trailing '.'.
14792         * tests/test-linkat.c (main): Simplify.
14793         * tests/test-remove.c (main): Enhance test for trailing '.'.
14794         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14795
14796 2009-10-01  Jim Meyering  <meyering@redhat.com>
14797
14798         maint.mk: requiring "make major" was annoying, for a "minor" release.
14799         What is intended is "stable", to contrast with alpha and beta,
14800         so require "make stable", not "make major".
14801         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14802         (get_tool_versions): Likewise.
14803         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14804
14805 2009-09-30  Ben Pfaff  <blp@gnu.org>
14806
14807         Fix broken build of replacement for Windows tmpfile().
14808         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14809         flags argument added along with the 'mkostemp' module.
14810
14811 2009-09-28  Bruno Haible  <bruno@clisp.org>
14812
14813         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14814         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14815         to 'remove_elt'.
14816         (gl_list_remove): Update.
14817         * lib/gl_list.c (gl_list_remove): Update.
14818         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14819         to 'remove_elt'.
14820         (gl_oset_remove): Update.
14821         * lib/gl_list.c (gl_oset_remove): Update.
14822         Reported by Eric Blake.
14823
14824 2009-09-28  Eric Blake  <ebb9@byu.net>
14825
14826         doc: mention yet more cygwin 1.7 status
14827         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14828         cygwin.
14829         * doc/glibc-functions/execvpe.texi (execvpe): New file.
14830         * doc/gnulib.texi (Glibc unistd.h): Mention it.
14831
14832         argp: fix test failure
14833         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
14834         that are not upper-case.  Pass correct range to tolower.
14835
14836 2009-09-27  Jim Meyering  <meyering@redhat.com>
14837
14838         test-yesno: work around sparc-dash here-document infelicity
14839         Without this change, the literal \177 byte in a here document
14840         would make dash 0.5.5.1-3 access uninitialized memory.
14841         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
14842         Instead, use a marker, "@", and filter through tr to create the desired
14843         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
14844
14845 2009-09-27  Bruno Haible  <bruno@clisp.org>
14846
14847         Disable untested support for new flavours of ACLs on AIX.
14848         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
14849         progress.
14850         * lib/set-mode-acl.c (qset_acl): Likewise.
14851
14852 2008-12-07  Bruno Haible  <bruno@clisp.org>
14853
14854         Add support for new flavours of ACLs on AIX. (Untested.)
14855         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
14856         (file_has_acl): Add support for newer AIX.
14857         * lib/set-mode-acl.c (qset_acl): Likewise.
14858         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
14859         Rainer Tammer <tammer@tammer.net>.
14860
14861 2009-09-26  Eric Blake  <ebb9@byu.net>
14862
14863         argp: fix compilation of getopt
14864         * lib/getopt.in.h (includes): Use different guard than glibc.
14865         Reported by Sergey Poznyakoff.
14866
14867         doc: mention more cygwin 1.7 status
14868         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
14869         bug.
14870         * doc/posix-functions/execl.texi (execl): Likewise.
14871         * doc/posix-functions/execle.texi (execle): Likewise.
14872         * doc/posix-functions/execlp.texi (execlp): Likewise.
14873         * doc/posix-functions/execv.texi (execv): Likewise.
14874         * doc/posix-functions/execve.texi (execve): Likewise.
14875         * doc/posix-functions/execvp.texi (execvp): Likewise.
14876         * doc/glibc-functions/canonicalize_file_name.texi
14877         (canonicalize_file_name): Cygwin 1.7 now provides this.
14878         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
14879         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
14880         on AT_SYMLINK_NOFOLLOW.
14881
14882 2009-09-24  Eric Blake  <ebb9@byu.net>
14883
14884         test-linkat: make test more robust
14885         * tests/test-linkat.c (main): Avoid collision with EEXIST.
14886
14887         getopt: fix inclusion guards for cygwin
14888         * modules/getopt-posix (Depends-on): Add include-next.
14889         (Makefile.am): Substitute more items in replacement header.
14890         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
14891         <getopt.h>.
14892         * lib/getopt.in.h (includes): Use split inclusion guard, and
14893         prefer <getopt.h> over include <unistd.h> when one is present.
14894         (option): Also override name of 'struct option'.
14895
14896         same-inode: revert prior change; it is not yet ready
14897         * NEWS: Undo mention of this change.
14898         * lib/same-inode.h (same-inode.h): Undo tri-state change.
14899         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14900         * lib/cycle-check.c (cycle_check): Likewise.
14901         * lib/same.c (same_name): Likewise.
14902         * lib/at-func2.c (at_func2): Likewise.
14903
14904 2009-09-23  Eric Blake  <ebb9@byu.net>
14905
14906         linkat: new module
14907         * modules/linkat: New file.
14908         * lib/at-func2.c (at_func2): Likewise.
14909         * lib/linkat.c (linkat): Likewise.
14910         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14911         * lib/openat-priv.h (at_func2): Add declaration.
14912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14913         * modules/unistd (Makefile.am): Substitute them.
14914         * lib/unistd.in.h (linkat): Declare it.
14915         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14916         * doc/posix-functions/linkat.texi (linkat): Likewise.
14917         * doc/posix-functions/link.texi (link): Tweak wording.
14918         * tests/test-link.c (main): Move guts...
14919         * tests/test-link.h (test_link): ...into new file.
14920         * modules/linkat-tests: New test.
14921         * tests/test-linkat.c: Likewise.
14922         * modules/link-tests (Files): Ship new file.
14923         (Depends-on): Add stdbool.
14924
14925         dirname: add library-safe mdir_name
14926         * lib/dirname.h (mdir_name): New prototype.
14927         * lib/dirname.c (dir_name): Move guts...
14928         (mdir_name): ...to new function that avoids xalloc_die.
14929
14930         fchdir: another mingw fix
14931         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
14932         * lib/fchdir.c (get_name): New helper method; skips canonicalize
14933         on mingw (where it has not yet been ported), and make it optional
14934         elsewhere.
14935         (_gl_register_fd): Use it.
14936
14937         same-inode: make SAME_INODE tri-state, to port to mingw
14938         * NEWS: Mention this change.
14939         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
14940         st_ino always being 0.
14941         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14942         * lib/cycle-check.c (cycle_check): Likewise.
14943         * lib/same.c (same_name): Likewise.
14944
14945         lstat: avoid mingw compilation error
14946         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
14947         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
14948         lstat ourselves.
14949         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
14950         was adequate.
14951         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
14952         the checks for lstat.
14953         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
14954
14955         link: fix test failure on Solaris 9
14956         * lib/link.c (rpl_link): Don't assume link will catch bogus
14957         trailing slash on source.
14958
14959         test-symlinkat: enhance test
14960         * tests/test-readlink.c (main): Move guts...
14961         * tests/test-readlink.h (test_readlink): ...into new file.
14962         * tests/test-symlink.c (main): Move guts...
14963         * tests/test-symlink.h (test_symlink): ...into new file.
14964         * tests/test-symlinkat.c (main): Use new files for further
14965         coverage.
14966         (do_symlink, do_readlink): New helper functions.
14967         * modules/symlink-tests (Files): Ship new file.
14968         (Depends-on): Add stdbool.
14969         * modules/readlink-tests (Files): Ship new file.
14970         (Depends-on): Add stdbool.
14971         * modules/symlinkat-tests (Files): Use new files.
14972
14973 2009-09-23  Eric Blake  <ebb9@byu.net>
14974
14975         readlink: document portability issue with symlink length
14976         * doc/posix-functions/lstat.texi (lstat): Mention that some file
14977         systems have bogus st_size on symlinks, and mention the
14978         areadlink-with-size module.
14979         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14980         * doc/posix-functions/readlink.texi (readlink): Mention the
14981         areadlink module, and ERANGE failure.
14982         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14983         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
14984
14985         readlink: fix Solaris 9 bug with trailing slash
14986         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
14987         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
14988         * doc/posix-functions/readlink.texi (readlink): Document this.
14989         * modules/readlink-tests: New test.
14990         * tests/test-readlink.c: Likewise.
14991
14992         readlink: fix cygwin 1.5.x bug with return type
14993         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
14994         * lib/unistd.in.h (readlink): Use ssize_t.
14995         * lib/readlink.c (readlink): Likewise.
14996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14997         * modules/unistd (Makefile.am): Substitute it.
14998         * lib/unistd.in.h (readlink): Declare replacement.
14999         * doc/posix-functions/readlink.texi (readlink): Document this.
15000
15001         symlink: use throughout gnulib
15002         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
15003         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
15004         symlink is not used.
15005         * modules/symlinkat (Depends-on): Add symlink.
15006         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15007         * modules/canonicalize-tests (Depends-on): Likewise.
15008         * modules/lstat-tests (Depends-on): Likewise.
15009         * modules/openat-tests (Depends-on): Likewise.
15010         * modules/remove-tests (Depends-on): Likewise.
15011         * modules/rmdir-tests (Depends-on): Likewise.
15012         * modules/unlink-tests (Depends-on): Likewise.
15013         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
15014         * tests/test-canonicalize.c (symlink): Likewise.
15015         * tests/test-fstatat.c (symlink): Likewise.
15016         * tests/test-lstat.c (symlink): Likewise.
15017         * tests/test-remove.c (symlink): Likewise.
15018         * tests/test-rmdir.c (symlink): Likewise.
15019         * tests/test-unlink.c (symlink): Likewise.
15020         * tests/test-unlinkat.c (symlink): Likewise.
15021
15022         symlink: new module, for Solaris 9 bug
15023         * modules/symlink: New file.
15024         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15025         * lib/symlink.c: Likewise.
15026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15027         * modules/unistd (Makefile.am): Substitute them.
15028         * lib/unistd.in.h (symlink): Declare replacement.
15029         * MODULES.html.sh (File system functions): Mention it.
15030         * doc/posix-functions/symlink.texi (symlink): Likewise.
15031         * modules/symlink-tests: New test.
15032         * tests/test-symlink.c: Likewise.
15033
15034 2009-09-23  Bruno Haible  <bruno@clisp.org>
15035
15036         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
15037         when needed.
15038         Test case: gnulib-tool --import --with-tests atexit inttypes.
15039         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
15040
15041 2009-09-23  Bruno Haible  <bruno@clisp.org>
15042
15043         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
15044         subcommand, not in a subshell.
15045
15046 2009-09-22  Eric Blake  <ebb9@byu.net>
15047
15048         unistd: sort replacement declarations
15049         * lib/unistd.in.h: Sort declarations.
15050
15051         open, openat: minor optimization
15052         * lib/open.c (open): If open succeeded, len is non-zero.
15053         * lib/openat.c (rpl_openat): Likewise.
15054
15055         link-follow: ensure correct result
15056         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
15057         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
15058         distinguish between possible failures.
15059
15060 2009-09-21  Eric Blake  <ebb9@byu.net>
15061
15062         fts: avoid compiler warning
15063         * lib/fts.c (dirent_inode_sort_may_be_useful)
15064         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
15065
15066 2009-09-19  Bruno Haible  <bruno@clisp.org>
15067
15068         * lib/progreloc.c (canonicalize_file_name): New declaration.
15069
15070 2009-09-19  Eric Blake  <ebb9@byu.net>
15071
15072         link: fix quoting
15073         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
15074
15075         openat: fix openat bugs on Solaris 9
15076         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
15077         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
15078         * modules/openat (Depends-on): Add open.
15079         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
15080         * modules/fcntl-h (Makefile.am): Substitute it.
15081         * lib/fcntl.in.h (openat): Declare replacement.
15082         * doc/posix-functions/openat.texi (openat): Document this.
15083
15084         openat: move fstatat and unlinkat into correct files
15085         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
15086         compiled.
15087         * lib/openat.c (fstatat, unlinkat): Move...
15088         * lib/fstatat.c (fstatat): ...into correct files.
15089         * lib/unlinkat.c (unlinkat): Likewise.
15090
15091         openat: fix unlinkat bugs on Solaris 9
15092         * lib/unlinkat.c (unlinkat): New file.
15093         * modules/openat (Depends-on): Add unlink.
15094         (Files): Distribute it.
15095         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
15096         trailing slash behavior is broken.
15097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15098         * modules/unistd (Makefile.am): Substitute it.
15099         * lib/unistd.in.h (unlinkat): Declare replacement.
15100         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
15101
15102         openat: fix fstatat bugs on Solaris 9
15103         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
15104         stat.
15105         * doc/posix-functions/fstatat.texi (fstatat): Document this.
15106
15107         test-unlinkat: enhance test, to expose Solaris 9 bug
15108         * tests/test-unlink.c (main): Factor guts...
15109         * tests/test-unlink.h (test_rmdir_func): ...into new file.
15110         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
15111         * tests/test-rmdir.c (main): Adjust caller.
15112         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
15113         (unlinker): New helper function.
15114         (rmdirat): Enhance check.
15115         * modules/rmdir-tests (Depends-on): Add stdbool.
15116         * modules/unlink-tests (Depends-on): Likewise.
15117         (Files): Add test-unlink.h.
15118         * modules/openat-tests (Files): Likewise.
15119         (Depends-on): Add unlinkdir.
15120
15121         test-fstatat: new test, to expose Solaris 9 bugs
15122         * tests/test-stat.c (main): Factor guts...
15123         * tests/test-stat.h (test_stat_func): ...into new file.
15124         * tests/test-lstat.c (main): Factor guts...
15125         * tests/test-lstat.h (test_lstat_func): ...into new file.
15126         * tests/test-fstatat.c: New file.
15127         * modules/stat-tests (Files): Add test-stat.h.
15128         * modules/lstat-tests (Files): Add test-lstat.h.
15129         (Depends-on): Add stdbool.
15130         * modules/openat-tests (Depends-on): Add pathmax.
15131         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
15132         (Makefile.am): Run new test.
15133
15134         remove: new module, for mingw and Solaris 9 bugs
15135         * modules/remove: New file.
15136         * lib/remove.c: Likewise.
15137         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
15138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15139         * modules/stdio (Makefile.am): Use them.
15140         * lib/stdio.in.h (remove): Declare replacement.
15141         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15142         * doc/posix-functions/remove.texi (remove): Likewise.
15143         * modules/remove-tests: New test.
15144         * tests/test-remove.c: Likewise.
15145
15146         unlink: new module, for Solaris 9 bug
15147         * modules/unlink: New file.
15148         * lib/unlink.c: Likewise.
15149         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15151         * modules/unistd (Makefile.am): Use them.
15152         * lib/unistd.in.h (stat): Declare replacement.
15153         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15154         * doc/posix-functions/unlink.texi (unlink): Likewise.
15155         * modules/unlink-tests: New test.
15156         * tests/test-unlink.c: Likewise.
15157
15158         lstat: fix Solaris 9 bug
15159         * lib/lstat.c (lstat): Also check for trailing slash on
15160         non-symlink, non-directories.  Use stat module to simplify logic.
15161         * doc/posix-functions/lstat.texi (lstat): Document it.
15162         * modules/lstat-tests (Depends-on): Add errno, same-inode.
15163         (configure.ac): Check for symlink.
15164         * tests/test-lstat.c (main): Add more tests.
15165
15166         stat: add as dependency to other modules
15167         * modules/chown (Depends-on): Add stat.
15168         * modules/euidaccess (Depends-on): Likewise.
15169         * modules/fchdir (Depends-on): Likewise.
15170         * modules/isdir (Depends-on): Likewise.
15171         * modules/link (Depends-on): Likewise.
15172         * modules/lstat (Depends-on): Likewise.
15173         * modules/mkdir-p (Depends-on): Likewise.
15174         * modules/modechange (Depends-on): Likewise.
15175         * modules/open (Depends-on): Likewise.
15176         * modules/readlink (Depends-on): Likewise.
15177         * modules/same (Depends-on): Likewise.
15178
15179         stat: fix Solaris 9 bug
15180         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
15181         slash.
15182         * lib/stat.c (rpl_stat): Work around it.
15183         * doc/posix-functions/stat.texi (stat): Update documentation.
15184
15185         stat: new module, for mingw bug
15186         * modules/stat: New file.
15187         * lib/stat.c: Likewise.
15188         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15189         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15190         * modules/sys_stat (Makefile.am): Use them.
15191         * lib/sys_stat.in.h (stat): Declare replacement.
15192         * lib/openat.c (fstatat): Deal with lstat and stat being function
15193         macros.
15194         * modules/openat (Depends-on): Add inline.
15195         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15196         * doc/posix-functions/stat.texi (stat): Likewise.
15197         * modules/stat-tests: New test.
15198         * tests/test-stat.c: Likewise.
15199
15200 2009-09-19  Jim Meyering  <meyering@redhat.com>
15201
15202         syntax-check: detect unnecessary inclusion of canonicalize.h
15203         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
15204
15205 2009-09-19  Eric Blake  <ebb9@byu.net>
15206
15207         canonicalize-lgpl: adjust clients to use correct header
15208         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15209         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
15210         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
15211         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
15212         * lib/progreloc.c (includes): Likewise.
15213
15214 2009-09-19  Jim Meyering  <meyering@redhat.com>
15215
15216         test-posixtm.c: correct a comment
15217         * tests/test-posixtm.c: Correct first-line comment.
15218         Spotted by Eric Blake.
15219
15220 2009-09-16  Jim Meyering  <meyering@redhat.com>
15221
15222         posixtm-tests: make T const-correct; add a test case
15223         * tests/test-posixtm.c (T): Declare const.
15224         Add a test for -(2^31+1).
15225         Remove useless can-succeed-only-in-2002 test.
15226
15227         posixtm-tests: adjust the sole failing test
15228         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
15229         expected output matches what mktime now produces.  Cross-checked via
15230         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
15231
15232         posixtm: move #ifdef'd tests into a new module
15233         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
15234         * tests/test-posixtm.c: ... this new file.
15235         * modules/posixtm-tests: New module.
15236
15237 2009-09-19  Eric Blake  <ebb9@byu.net>
15238
15239         openat: simplify use of at-func.c
15240         * lib/at-func.c (includes): Include prerequisites here, to
15241         simplify requirements on client files.
15242         * lib/openat-priv.h: Add double-inclusion guard.
15243         * lib/faccessat.c (includes): Simplify.
15244         * lib/fchmodat.c (includes): Likewise.
15245         * lib/fchownat.c (includes): Likewise.
15246         * lib/mkdirat.c (includes): Likewise.
15247         * lib/mkfifoat.c (includes): Likewise.
15248         * lib/symlinkat.c (includes): Likewise.
15249
15250         openat: allow return of fd 0
15251         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
15252         * modules/save-cwd (Depends-on): Replace fcntl-safer with
15253         unistd-safer.
15254         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
15255         <fcntl.h>; this module does not leak fds.
15256         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
15257         must be allowed to return 0, leaving openat_safer to add the
15258         safety.
15259         (openat_permissive): Avoid writing to just-opened fd 2 if
15260         restoring the current directory fails.
15261         * lib/openat-die.c (openat_restore_fail): Add comment.
15262         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
15263         (save_cwd): Guarantee safe fd, but without use of open_safer.
15264         * tests/test-openat.c: New test.
15265         * modules/openat-tests (Files, Makefile.am): Distribute and build
15266         new file.
15267
15268         relocatable-prog-wrapper: fix build
15269         * modules/relocatable-prog-wrapper (Files): Update name of
15270         canonicalize m4 file, broken on 2009-09-17.
15271         Reported by emad hajjar <aleppos@hotmail.com>.
15272
15273 2009-09-19  Bruno Haible  <bruno@clisp.org>
15274
15275         * lib/safe-alloc.h: Use the standard header with GPL copyright.
15276         * lib/safe-alloc.c: Likewise.
15277         Reported by Ian Beckwith <ianb@erislabs.net>.
15278
15279 2009-09-18  Bruno Haible  <bruno@clisp.org>
15280
15281         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
15282         Reported by <erobles@sensacd.com.mx>.
15283
15284 2009-09-17  Eric Blake  <ebb9@byu.net>
15285
15286         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
15287         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
15288         slashes when checking if last component is missing.
15289         * tests/test-canonicalize.c (main): Test this.
15290
15291         canonicalize, canonicalize-lgpl: honor // if distinct from /
15292         * modules/canonicalize (Files): Add double-slash-root.m4.
15293         * modules/canonicalize-lgpl (Files): Likewise.
15294         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15295         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
15296         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
15297         fallback definition.
15298         (canonicalize_filename_mode): Use it to protect //.
15299         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
15300         (__realpath): Likewise.
15301         * tests/test-canonicalize.c (main): Test this.
15302         * tests/test-canonicalize-lgpl.c (main): Likewise.
15303         * modules/canonicalize-tests (Depends-on): Add same-inode.
15304         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15305
15306         canonicalize-lgpl: fix glibc bug with trailing slash
15307         * m4/canonicalize-lgpl.m4: Move contents...
15308         * m4/canonicalize.m4: ...here.
15309         (gl_CANONICALIZE_LGPL): Factor realpath check...
15310         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
15311         glibc 2.3.5 bug, fixed 2005-04-27.
15312         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
15313         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
15314         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
15315         * modules/canonicalize-lgpl (Files): Manage file rename.
15316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15317         * modules/stdlib (Makefile.am): Substitute witness.
15318         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
15319         is needed.
15320         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
15321         replacement is required.
15322         * lib/canonicalize.c (canonicalize_file_name): Likewise.
15323         * doc/glibc-functions/canonicalize_file_name.texi
15324         (canonicalize_file_name): Document this.
15325         * doc/posix-functions/realpath.texi (realpath): Likewise.
15326
15327         canonicalize-lgpl: reject non-directory with trailing slash
15328         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
15329         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
15330         catches failures in glibc 2.3.5.
15331         * tests/test-canonicalize.c (main): Likewise.
15332
15333         canonicalize-lgpl: use native realpath if it works
15334         * lib/canonicalize-lgpl.c (realpath): Guard with
15335         FUNC_REALPATH_WORKS.
15336         * lib/stdlib.in.h (realpath): Make declaration optional based on
15337         HAVE_REALPATH.
15338         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
15339         native realpath works.
15340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15341         * modules/stdlib (Makefile.am): Substitute witness.
15342
15343         canonicalize, canonicalize-lgpl: use <stdlib.h>
15344         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
15345         (Include): Mention <stdlib.h>.
15346         (configure.ac): Mention functions we provide.
15347         * modules/canonicalize (configure.ac): Likewise.
15348         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
15349         realpath if canonicalize_file_name is missing.
15350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
15351         * modules/stdlib (Makefile.am): Substitute witnesses.
15352         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
15353         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
15354         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
15355         * NEWS: Document this.
15356         * doc/glibc-functions/canonicalize_file_name.texi
15357         (canonicalize_file_name): Likewise.
15358         * doc/posix-functions/realpath.texi (realpath): Likewise.
15359         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
15360
15361         test-canonicalize: consolidate into single C program
15362         * tests/test-canonicalize.sh: Delete; move setup into...
15363         * tests/test-canonicalize.c (main): ...the program, making it
15364         easier to run in debugger.  Add some tests.
15365         * modules/canonicalize-tests (Files): Remove unused file.
15366         (Depends-on): Add progname.
15367         (configure.ac, Makefile.am): Simplify.
15368
15369         test-canonicalize-lgpl: consolidate into single C program
15370         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
15371         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
15372         easier to run in debugger.  Add some tests.
15373         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
15374         (configure.ac, Makefile.am): Simplify.
15375
15376         canonicalize: avoid resolvepath
15377         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
15378         unnecessary checks.
15379         * lib/canonicalize.c (includes): Simplify.
15380         (canonicalize_file_name): Drop resolvepath implementation.
15381         * modules/canonicalize (Depends-on): Drop filenamecat.
15382
15383         canonicalize: don't lose errno
15384         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
15385         over calls to free.
15386
15387         canonicalize: simplify errno handling
15388         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
15389         assignment.
15390
15391         canonicalize, canonicalize-lgpl: update module dependencies
15392         * modules/canonicalize (Depends-on): Add extensions, lstat,
15393         pathmax, stdlib.
15394         (Files): Drop pathmax.h.
15395         (configure.ac): Adjust macro name.
15396         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
15397         lstat, stdlib, sys_stat.
15398         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
15399         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
15400         extensions.
15401         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
15402         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
15403         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
15404         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
15405         declaration, if available.
15406         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
15407         we can rely on the readlink module.
15408         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
15409         (includes): Use <unistd.h> unconditionally.
15410
15411 2009-09-17  Eric Blake  <ebb9@byu.net>
15412
15413         maint: make Include sections of modules consistent
15414         * modules/alloca: Use only header name; no need to list #include.
15415         * modules/alloca-opt: Likewise.
15416         * modules/arpa_inet: Likewise.
15417         * modules/canon-host: Likewise.
15418         * modules/configmake: Likewise.
15419         * modules/dirent: Likewise.
15420         * modules/eealloc: Likewise.
15421         * modules/environ: Likewise.
15422         * modules/fchdir: Likewise.
15423         * modules/fcntl: Likewise.
15424         * modules/fcntl-h: Likewise.
15425         * modules/gethrxtime: Likewise.
15426         * modules/gettime: Likewise.
15427         * modules/ignore-value: Likewise.
15428         * modules/inet_ntop: Likewise.
15429         * modules/inet_pton: Likewise.
15430         * modules/inttypes: Likewise.
15431         * modules/isnand-nolibm: Likewise.
15432         * modules/isnanf-nolibm: Likewise.
15433         * modules/mbchar: Likewise.
15434         * modules/mbfile: Likewise.
15435         * modules/mbiter: Likewise.
15436         * modules/mbuiter: Likewise.
15437         * modules/netdb: Likewise.
15438         * modules/netinet_in: Likewise.
15439         * modules/nproc: Likewise.
15440         * modules/pagealign_alloc: Likewise.
15441         * modules/poll: Likewise.
15442         * modules/printf-frexp: Likewise.
15443         * modules/pthread: Likewise.
15444         * modules/putenv: Likewise.
15445         * modules/random_r: Likewise.
15446         * modules/relocatable-prog: Likewise.
15447         * modules/search: Likewise.
15448         * modules/select: Likewise.
15449         * modules/selinux-h: Likewise.
15450         * modules/settime: Likewise.
15451         * modules/signal: Likewise.
15452         * modules/size_max: Likewise.
15453         * modules/socklen: Likewise.
15454         * modules/ssize_t: Likewise.
15455         * modules/stdarg: Likewise.
15456         * modules/stdbool: Likewise.
15457         * modules/stddef: Likewise.
15458         * modules/stdint: Likewise.
15459         * modules/stdio: Likewise.
15460         * modules/stdlib: Likewise.
15461         * modules/string: Likewise.
15462         * modules/strings: Likewise.
15463         * modules/sys_file: Likewise.
15464         * modules/sys_ioctl: Likewise.
15465         * modules/sys_select: Likewise.
15466         * modules/sys_socket: Likewise.
15467         * modules/sys_stat: Likewise.
15468         * modules/sys_time: Likewise.
15469         * modules/sys_times: Likewise.
15470         * modules/sys_utsname: Likewise.
15471         * modules/sys_wait: Likewise.
15472         * modules/sysexits: Likewise.
15473         * modules/time: Likewise.
15474         * modules/times: Likewise.
15475         * modules/tmpfile: Likewise.
15476         * modules/trim: Likewise.
15477         * modules/unistd: Likewise.
15478         * modules/wchar: Likewise.
15479         * modules/wctype: Likewise.
15480
15481 2009-09-17  Bruno Haible  <bruno@clisp.org>
15482
15483         Make getdate.y compile on QNX and NetBSD 5 / i386.
15484         * m4/getdate.m4 (gl_GETDATE): Conditionally define
15485         TIME_T_FITS_IN_LONG_INT.
15486         * lib/getdate.y (long_time_t): New type.
15487         (relative_time): Change type of 'seconds' field to long_time_t.
15488         (get_date): Update types of local variables. Check against overflow
15489         during conversion from long_time_t to time_t.
15490         Reported by Matt Kraai <kraai@ftbfs.org>
15491         and Hasso Tepper <hasso@netbsd.org>.
15492
15493 2009-09-17  Bruno Haible  <bruno@clisp.org>
15494
15495         * modules/COPYING: Update copyright years.
15496         * modules/README: Likeiwse.
15497         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
15498         Reported by Ian Beckwith <ianb@erislabs.net>.
15499
15500 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15501
15502         * users.txt: Update references for gnuit package.
15503
15504 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15505
15506         * m4/getdelim.m4: Fix typo in copyright line.
15507
15508 2009-09-17  Bruno Haible  <bruno@clisp.org>
15509
15510         * lib/atoll.c: Use the standard header with GPL copyright.
15511         * lib/argz.in.h: Likewise.
15512         * lib/glob.c: Likewise.
15513         * lib/glob-libc.h: Likewise.
15514         * lib/random_r.c: Likewise.
15515         * lib/siglist.h: Likewise.
15516         * lib/strsignal.c: Likewise.
15517         Reported by Ian Beckwith <ianb@erislabs.net>.
15518
15519 2009-09-17  Eric Blake  <ebb9@byu.net>
15520
15521         rmdir: ensure correct dependency order
15522         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
15523
15524 2009-09-17  Bruno Haible  <bruno@clisp.org>
15525
15526         Disable assertion that fails on NetBSD 5 / i386.
15527         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
15528         Reported by Sam Steingold <sds@gnu.org>
15529         and Hasso Tepper <hasso@netbsd.org>.
15530
15531 2009-09-16  Eric Blake  <ebb9@byu.net>
15532
15533         unlinkdir: port to mingw
15534         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
15535         on which no one can unlink a directory.
15536
15537         stdlib: sort witness names
15538         * modules/stdlib (Makefile.am): Sort replacements.
15539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15540         * lib/stdlib.in.h: Likewise.
15541
15542         parse-duration-tests: avoid link failure
15543         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
15544         LIBINTL.
15545         Reported by Tom G. Christensen.
15546
15547         openat-tests: ensure unlinkat behaves like rmdir
15548         * tests/test-rmdir.c (main): Factor guts...
15549         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
15550         * modules/rmdir-tests (Files): Ship new file.
15551         * modules/openat-tests: New test.
15552         * tests/test-unlinkat.c: Likewise.
15553
15554         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
15555         * modules/rmdir-errno (Status, Notice): Now obsolete.
15556
15557         rmdir: work around cygwin 1.5.x and mingw bugs
15558         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
15559         * lib/rmdir.c (rmdir): Work around it.
15560         * modules/rmdir (Status, Notice): No longer obsolete.
15561         (Files): Add dos.m4.
15562         (Depends-on): Add unistd.
15563         (configure.ac): Set witnesses.
15564         (License): Relax to LGPLv2+.
15565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
15566         * modules/unistd (Makefile.am): Substitute witnesses.
15567         * lib/unistd.in.h (rmdir): Declare replacement.
15568         * doc/posix-functions/rmdir.texi (rmdir): Document this.
15569         * modules/rmdir-tests: New tests.
15570         * tests/test-rmdir.c: Likewise.
15571
15572 2009-09-15  Eric Blake  <ebb9@byu.net>
15573
15574         fchdir: improve use of replacement functions
15575         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
15576         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
15577         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
15578         REPLACE_CLOSEDIR.
15579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
15580         * modules/sys_stat (Makefile.am): Substitute correct witness.
15581         * modules/dirent (Makefile.am): Likewise.
15582         * modules/unistd (Makefile.am): Likewise.
15583         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
15584         * lib/unistd.in.h (dup): Likewise.
15585         * lib/sys_stat.in.h (fstat): Likewise.
15586
15587         maint: ignore gnulib-tool temp files
15588         * .gitignore: Ignore files created during gnulib-tool --test.
15589
15590 2009-09-13  Jim Meyering  <meyering@redhat.com>
15591
15592         posixtm: don't reject a time that specify "60" as the number of seconds
15593         * lib/posixtm.c (posixtime): The code to reject invalid dates
15594         would also reject a time specified with the .60 suffix.
15595         But POSIX allows that, in order to accommodate leap seconds.
15596         So don't reject it.
15597         (main): Adjust tests accordingly.
15598         * modules/posixtm (Depends-on): Add stpcpy.
15599
15600 2009-09-11  Jim Meyering  <meyering@redhat.com>
15601
15602         announce-gen: include [$release_type] in emitted Subject:
15603         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15604         e.g., [stable] in the emitted Subject: line.
15605
15606 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15607
15608         Remove obsolete macros from several modules.
15609         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15610         obsolete Autoconf macros with their modern counterparts.
15611         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15612         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15613         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15614         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15615         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15616         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15617         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15618         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15619         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15620         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15621         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15622         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15623         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15624         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15625         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15626         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15627         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15628         * m4/time_r.m4 (gl_TIME_R): Likewise.
15629         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15630         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15631         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15632
15633         Fix copyright header in build-aux scripts.
15634         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15635         recommendation.
15636         * build-aux/ncftpput-ftp: Likewise.
15637         * build-aux/update-copyright: Likewise.
15638
15639 2009-09-09  Eric Blake  <ebb9@byu.net>
15640
15641         test-link: allow Linux choice of errno
15642         * tests/test-link.c (main): Relax test for alternate error.
15643
15644         strndup: fix improper m4 caching
15645         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15646         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15647         (gl_PREREQ_STRNDUP): Delete.
15648         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15649         * modules/string (Makefile.am): Substitute it.
15650         * lib/string.in.h (strndup): Modernize prototype.
15651
15652         getcwd: port to mingw
15653         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15654         different from the POSIX assumptions made throughout the getcwd
15655         module; fortunately, the mingw getcwd does not need replacement.
15656         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15657         * modules/getcwd-tests: New test.
15658         * tests/test-getcwd.c: Likewise.
15659
15660         link: fix platform bugs
15661         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15662         * lib/link.c (link): Work around them.  Fix related mingw bug.
15663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15664         * modules/unistd (Makefile.am): Substitute it.
15665         * lib/unistd.in.h (link): Declare replacement.
15666         * doc/posix-functions/link.texi (link): Document this.
15667         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15668
15669         test-link: consolidate into single C program, test more cases
15670         * tests/test-link.sh: Delete.
15671         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15672         at least Cygwin and Solaris.
15673         * modules/link-tests (Files): Remove unused file.
15674         (Depends-on): Add errno, sys_stat.
15675         (Makefile.am): Simplify.
15676
15677 2009-09-08  Bruno Haible  <bruno@clisp.org>
15678
15679         Work around towlower, towupper bug on mingw.
15680         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15681         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15682         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15683         * doc/posix-functions/towupper.texi: Likewise.
15684         Reported by Eric Blake.
15685
15686 2009-09-08  Jim Meyering  <meyering@redhat.com>
15687
15688         build: don't try to run autoheader if we don't use it
15689         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15690         is not used in configure.ac.
15691
15692 2009-09-08  Eric Blake  <ebb9@byu.net>
15693
15694         euidaccess: fix compilation error
15695         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15696
15697         rawmemchr: relax license
15698         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15699         okay.
15700         Reported by Jim Meyering.
15701
15702         mkfifoat: new module
15703         * modules/mkfifoat: New file.
15704         * lib/mkfifoat.c: Likewise.
15705         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15706         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15707         * modules/sys_stat (Makefile.am): Use them.
15708         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15709         * MODULES.html.sh (File system functions): Mention module.
15710         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15711         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15712         * modules/mkfifoat-tests: New test.
15713         * tests/test-mkfifoat.c: Likewise.
15714
15715         strchrnul: relax license
15716         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15717         okay.
15718         Reported by Jim Meyering.
15719
15720 2009-09-08  Eric Blake  <ebb9@byu.net>
15721
15722         fstatat: fix compilation on Solaris
15723         * lib/fstatat.c (includes): Add fcntl.h.
15724         Reported by Pádraig Brady.
15725
15726 2009-09-07  Eric Blake  <ebb9@byu.net>
15727
15728         rename: modernize replacement
15729         * modules/rename (Depends-on): Add stdio.
15730         (configure.ac): Declare witness.
15731         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15732         stdio take care of replacement.
15733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15734         * modules/stdio (Makefile.am): Substitute them.
15735         * lib/stdio.in.h (rename): Declare replacement.
15736         * lib/rename.c (includes): Allow cross-compilation to non-windows
15737         machines.
15738         * doc/posix-functions/rename.texi (rename): Improve
15739         documentation.
15740
15741         stdio: sort witness names
15742         * modules/stdio (Makefile.am): Sort replacements.
15743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15744         * lib/stdio.in.h: Likewise.
15745
15746         getcwd: minor cleanups
15747         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15748         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15749
15750         openat: provide more convenience names
15751         * modules/faccessat (configure.ac): Add C witness.
15752         * lib/unistd.in.h (readlinkat): Fix typo.
15753         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15754         convenience wrappers.
15755         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15756         wrappers in syntax checks.
15757
15758 2009-09-06  Eric Blake  <ebb9@byu.net>
15759
15760         doc: fix comments in recent patches
15761         * lib/faccessat.c: Mention correct function.
15762         * lib/fchmodat.c: Likewise.
15763         * lib/fchownat.c: Likewise.
15764         * lib/symlinkat.c: Likewise.
15765         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15766         constants.
15767
15768         faccessat, symlinkat: continue cleanup of previous patch
15769         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15770         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15771         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15773         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15774         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15775         set.
15776
15777 2009-09-06  Bruno Haible  <bruno@clisp.org>
15778
15779         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15780         (fstatat): Declare if GNULIB_FSTATAT is set.
15781         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15782         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15783         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15784         * modules/fcntl-h (Files): Remove m4/openat.m4.
15785         * modules/sys_stat (Files): Remove m4/openat.m4.
15786         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15787         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15788         * modules/unistd (Files): Remove m4/openat.m4.
15789         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15790         GNULIB_OPENAT.
15791         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15792         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15793         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15794         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15795         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15796         gl_OPENAT_DEFAULTS.
15797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15798         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15799         Don't require gl_OPENAT_DEFAULTS.
15800         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15801         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15802         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15803         (gl_OPENAT_DEFAULTS): Remove macro.
15804
15805 2009-09-06  Bruno Haible  <bruno@clisp.org>
15806
15807         * modules/openat (configure.ac): Remove unneeded witness.
15808
15809 2009-09-06  Bruno Haible  <bruno@clisp.org>
15810
15811         Set errno to ENOSYS when a function is entirely unsupported.
15812         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15813         EOPNOTSUPP.
15814         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15815         * modules/chown (Depends-on): Remove errno.
15816
15817 2009-09-06  Bruno Haible  <bruno@clisp.org>
15818
15819         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15820
15821 2009-09-06  Bruno Haible  <bruno@clisp.org>
15822
15823         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15824
15825 2009-09-06  Ben Pfaff  <blp@gnu.org>
15826             Bruno Haible  <bruno@clisp.org>
15827
15828         Work around a glibc bug in strtok_r.
15829         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
15830         Undefine if UNDEFINE_STRTOK_R is set.
15831         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
15832         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15833         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
15834         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
15835         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
15836         UNDEFINE_STRTOK_R.
15837         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
15838
15839 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15840
15841         exclude: minor fix
15842         * lib/exclude.c: Include wctype.h
15843
15844 2009-09-06  Akim Demaille  <demaille@gostai.com>
15845
15846         bootstrap: improve error message
15847         * build-aux/bootstrap (find_tool): Upon failure, report the list
15848         of candidates.
15849         Honor the initial value of the envvar.
15850
15851 2009-09-05  Eric Blake  <ebb9@byu.net>
15852
15853         symlinkat: new module
15854         * modules/symlinkat: New file.
15855         * lib/symlinkat.c: Likewise.
15856         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15858         * modules/unistd (Makefile.am): Use them.
15859         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
15860         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
15861         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
15862         * MODULES.html.sh (File system functions): Mention module.
15863         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15864         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15865         * modules/symlinkat-tests: New test.
15866         * tests/test-symlinkat.c: Likewise.
15867
15868         test-openat-safer: add more checks
15869         * tests/test-openat-safer.c (main): Check more code paths.
15870
15871 2009-09-05  Jim Meyering  <meyering@redhat.com>
15872
15873         syntax-check: detect unnecessary inclusion of openat.h
15874         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
15875
15876 2009-09-05  Bruno Haible  <bruno@clisp.org>
15877
15878         Support towlower, towupper.
15879         * doc/posix-functions/towlower.texi: Mention module wctype.
15880         * doc/posix-functions/towupper.texi: Likewise.
15881         * lib/wctype.in.h (towlower, towupper): New functions.
15882         * tests/test-wctype.c: Include stdio.h, stdlib.h.
15883         (ASSERT): New macro.
15884         (e): New variable.
15885         (main): Test also towlower, towupper. Test WEOF argument.
15886         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15887
15888 2009-09-05  Bruno Haible  <bruno@clisp.org>
15889
15890         Fix conversion behaviour when the input is invalid.
15891         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
15892         mark occurring in first pass of indirect conversion.
15893         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
15894         input.
15895         Found by clang's static analyzer.
15896
15897 2009-09-05  Bruno Haible  <bruno@clisp.org>
15898
15899         * tests/test-striconveh.c (main): Test indirect conversion on platforms
15900         where direct conversion is possible.
15901
15902 2009-09-04  Eric Blake  <ebb9@byu.net>
15903
15904         openat: fail with ENOENT on empty name
15905         * lib/openat-proc.c (openat_proc_name): Special-case the empty
15906         buffer.
15907
15908         link-follow: fix logic bug in prior patch
15909         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
15910         reversed sense of yes and no in prior patch.  Avoid confusing
15911         compilation failure with desired semantics.
15912
15913         link-follow: accomodate mingw and cross-compilation
15914         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
15915         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
15916         cross-compilation results to -1, to make linkat easier to
15917         implement when cross-compiling.  Trivially support mingw.
15918         * modules/link-follow (configure.ac): Call new name.
15919         * NEWS: Mention this.
15920
15921 2009-09-03  Eric Blake  <ebb9@byu.net>
15922
15923         faccessat: compile replacement
15924         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
15925         needed.
15926
15927         fts: fix compilation error
15928         * lib/fts.c (includes): Re-add "openat.h", for
15929         openat_needs_fchdir.
15930
15931         faccessat: new module
15932         * modules/faccessat: New file.
15933         * lib/faccessat.c: Likewise.
15934         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15936         * modules/unistd (Makefile.am): Use it.
15937         * lib/unistd.in.h (faccessat): Declare it.
15938         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
15939         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
15940         * MODULES.html.sh (File system functions): Mention it.
15941         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
15942         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15943
15944         euidaccess: prefer POSIX over non-standard implementation
15945         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
15946         * lib/euidaccess.c (euidaccess): Use it if available.
15947
15948         openat: make template easier to use
15949         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
15950         AT_FUNC_F2 to be undefined.
15951         (VALIDATE_FLAG): New macro; use it to reject bad flags.
15952         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
15953         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
15954         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
15955         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
15956         Likewise.
15957         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
15958         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
15959         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
15960         Likewise.
15961
15962         openat: declare in POSIX headers
15963         * NEWS: Mention this.
15964         * modules/openat (configure.ac): Declare witnesses.
15965         (Depends-on): Add fcntl-h, sys_stat, unistd.
15966         (Include): Mention correct headers.
15967         * modules/fcntl-h (Depends-on): Add link-warning.
15968         (Files): Add openat.m4.
15969         (Makefile.am): Substitute witnesses.
15970         * modules/sys_stat (Files, Makefile.am): Likewise.
15971         * modules/unistd (Files, Makefile.am): Likewise.
15972         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
15973         (gl_OPENAT_DEFAULTS): New macro.
15974         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
15975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
15976         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
15977         (SYS_STAT_H): Remove unused variable.
15978         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
15979         * lib/fcntl--.h (includes): Remove unneeded header.
15980         * lib/openat-safer.c (includes): Likewise.
15981         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
15982         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
15983         appropriate headers.
15984         (__OPENAT_PREFIX): Delete.
15985         * lib/fcntl.in.h (openat): Provide declaration.
15986         (AT_FDCWD): Fix Solaris bug.
15987         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
15988         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
15989         * lib/fchmodat.c (includes):  Adjust to find declaration.
15990         * lib/fchownat.c (includes): Likewise.
15991         * lib/mkdirat.c (includes): Likewise.
15992         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
15993         still visible.
15994
15995 2009-09-02  Eric Blake  <ebb9@byu.net>
15996
15997         errno: use consistently
15998         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
15999         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
16000         * lib/canonicalize.c (ELOOP): Likewise.
16001         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
16002         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
16003         * lib/lchown.c (EOPNOTSUPP): Likewise.
16004         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
16005         * lib/savewd.c (ESTALE): Likewise.
16006         * lib/settime.c (ENOSYS): Likewise.
16007         * lib/utimens.c (ENOSYS): Likewise.
16008         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
16009         * lib/chdir-safer.c (ELOOP): Likewise.
16010         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
16011         * modules/c-stack (Depends-on): Add errno.
16012         * modules/canonicalize (Depends-on): Likewise.
16013         * modules/chdir-safer (Depends-on): Likewise.
16014         * modules/fdopendir (Depends-on): Likewise.
16015         * modules/inet_ntop (Depends-on): Likewise.
16016         * modules/inet_pton (Depends-on): Likewise.
16017         * modules/lchown (Depends-on): Likewise.
16018         * modules/openat (Depends-on): Likewise.
16019         * modules/savewd (Depends-on): Likewise.
16020         * modules/settime (Depends-on): Likewise.
16021         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
16022
16023         fts: avoid leaking fds
16024         * modules/fts (Depends-on): Add cloexec.
16025         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
16026         flag.
16027
16028         fts: make directory fds more robust
16029         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
16030         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
16031
16032         backupfile, chdir-long, fts, savedir: make safer
16033         * lib/backupfile.c (includes): Use "dirent--.h", since
16034         numbered_backup can write to stderr during readdir.
16035         * lib/savedir.c (includes): Likewise.
16036         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
16037         emulation can write to stderr on failure.
16038         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
16039         * lib/getcwd.c: Document why opendir_safer is unused.
16040         * lib/glob.c: Likewise.
16041         * lib/scandir.c: Likewise.
16042         * lib/openat-proc.c: Likewise, for open_safer.
16043         * modules/backupfile (Depends-on): Add dirent-safer.
16044         * modules/savedir (Depends-on): Likewise.
16045         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
16046         * modules/chdir-long (Depends-on): Add openat-safer.
16047
16048         openat-safer: new module
16049         * modules/openat-safer: New file.
16050         * lib/openat-safer.c: Likewise.
16051         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
16052         * lib/fcntl-safer.h (openat_safer): Declare.
16053         * lib/fcntl--.h (openat): Override.
16054         * MODULES.html.sh (File descriptor based I/O): Mention it.
16055         * lib/openat.h: Add double-inclusion guards.
16056         * lib/openat.c (includes): Only include "fcntl-safer.h", not
16057         "fcntl--.h", so we can implement openat.
16058         * modules/openat-safer-tests: New test.
16059         * tests/test-openat-safer.c: New file.
16060
16061         dirent-safer: new module
16062         * modules/dirent-safer: New file.
16063         * lib/dirent--.h: Likewise.
16064         * lib/dirent-safer.h: Likewise.
16065         * lib/opendir-safer.c: Likewise.
16066         * m4/dirent-safer.m4: Likewise.
16067         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
16068         * modules/dirent-safer-tests: New test.
16069         * tests/test-dirent-safer.c: New file.
16070         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
16071
16072         fdopendir: optimize on mingw
16073         * lib/unistd.in.h (_gl_directory_name): New prototype.
16074         * lib/fchdir.c (_gl_directory_name): Implement it.
16075         (fchdir): Use it to simplify implementation.
16076         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
16077         fchdir, when available, to avoid calling [f]chdir().
16078
16079         fdopendir: split into its own module
16080         * lib/openat.c (fdopendir): Move...
16081         * lib/fdopendir.c: ...into new file.
16082         * modules/fdopendir: New module.
16083         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
16084         * modules/openat (Depends-on): Add fdopendir.
16085         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
16086         fdopendir here.
16087         * modules/savedir (Depends-on): Only need fdopendir, not full
16088         openat.
16089         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
16090         * lib/openat.h (fdopendir): Drop prototype.
16091         * lib/dirent.in.h (fdopendir): Provide prototype.
16092         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
16093         * modules/dirent (Makefile.am): Substitute them.
16094         * MODULES.html.sh (File system functions): Mention it.
16095         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
16096         * modules/fdopendir-tests: New file.
16097         * tests/test-fdopendir.c: Likewise.
16098
16099         fchdir: use more consistent macro convention
16100         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
16101         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
16102         REPLACE_FCHDIR, rather than relying on config.h macros.
16103         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
16104         inside a single make-time REPLACE_FCHDIR block, rather than using
16105         the config.h FCHDIR_REPLACEMENT.
16106         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
16107         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
16108         Manage fstat replacement.
16109         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
16110         REPLACE_FCHDIR.
16111         * modules/sys_stat (Files): Add m4/unistd_h.m4.
16112         (Makefile.am): Substitute REPLACE_FCHDIR.
16113         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
16114         FCHDIR_REPLACEMENT.
16115         * lib/dup-safer.c (dup_safer): Likewise.
16116         * lib/dup2.c (rpl_dup2): Likewise.
16117         * lib/dup3.c (rpl_dup3): Likewise.
16118         * lib/open.c (rpl_open): Likewise.
16119
16120         fchdir: simplify error handling, and support dup3
16121         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
16122         stdbool, malloc-posix, realloc-posix.
16123         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
16124         (ensure_dirs_slot): Return false on allocation failure.
16125         (rpl_dup2): Delete.
16126         (_gl_register_dup): New function.
16127         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
16128         (_gl_register_fd): Close fd on allocation failure.
16129         * lib/fcntl.in.h (_gl_register_fd): Update signature.
16130         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
16131         prototype.
16132         (rpl_dup2_fchdir): Delete prototype.
16133         * lib/open.c (open): Update caller.
16134         * lib/dup2.c (dup2): Track fchdir metadata.
16135         * lib/dup3.c (dup3): Likewise.
16136         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
16137         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
16138
16139 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16140
16141         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
16142         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
16143         don't pass arguments to AC_OUTPUT.
16144
16145 2009-09-02  Bruno Haible  <bruno@clisp.org>
16146
16147         * modules/mkdtemp (License): Relicense under LGPLv2+.
16148         Reported by Paolo Bonzini.
16149
16150 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16151
16152         Replace uses of obsolete autoconf macros in Jim's modules.
16153         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
16154         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
16155         can evoke a warning from autoconf when run with -Wobsolete
16156         enabled.  They were declared obsolete for good reasons (see
16157         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
16158         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
16159         should not continue using the deprecated macros.
16160         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
16161         obsolete Autoconf macros with modern counterparts.
16162         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16163         * m4/dos.m4 (gl_AC_DOS): Likewise.
16164         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
16165         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16166         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
16167         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
16168         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
16169         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
16170         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
16171         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
16172         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16173         Likewise.
16174         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16175         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16176         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
16177         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
16178         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16179         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16180
16181 2009-09-01  Eric Blake  <ebb9@byu.net>
16182
16183         fchdir: fix off-by-one bug in previous patch
16184         * lib/fchdir.c (rpl_fstat): Use correct bounds.
16185         (_gl_unregister_fd): Delete useless if.
16186
16187 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
16188
16189         maint.mk: sort the list of syntax-check rules
16190         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
16191         easier to get a sense of progress when the rules are run sequentially
16192         and take a long time.
16193
16194 2009-09-01  Simon Josefsson  <simon@josefsson.org>
16195
16196         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
16197         * modules/netinet_in: Likewise.
16198         * modules/sys_file: Likewise.
16199         * modules/sys_ioctl: Likewise.
16200         * modules/sys_select: Likewise.
16201         * modules/sys_socket: Likewise.
16202         * modules/sys_stat: Likewise.
16203         * modules/sys_time: Likewise.
16204         * modules/sys_times: Likewise.
16205         * modules/sys_utsname: Likewise.
16206         * modules/sys_wait: Likewise.
16207
16208 2009-09-01  Jim Meyering  <meyering@redhat.com>
16209
16210         fts: help ensure that return values are not ignored
16211         * lib/fts_.h (__GNUC_PREREQ): Define.
16212         (__attribute_warn_unused_result__): Define.
16213         (fts_children, fts_close, fts_open, fts_read): Declare with
16214         __attribute_warn_unused_result__.
16215
16216         fts: fts_close now fails also when closing a dir file descriptor fails
16217         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
16218         and propagate to caller, along with errno.
16219
16220         announce-gen: correct formatting in --help output
16221         * build-aux/announce-gen (usage): Move the one-line description in
16222         --help output "up", to where it belongs, just after Usage:.
16223
16224 2009-08-31  Eric Blake  <ebb9@byu.net>
16225
16226         fchdir: port to mingw
16227         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
16228         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
16229         opened, then use a substitute.
16230         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
16231         replacement.
16232         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
16233         (_gl_register_fd): No need to check stat if open already filters
16234         all directories.
16235         (fchdir): Fix error condition to match POSIX.
16236         * modules/fchdir (Depends-on): Add sys_stat.
16237         * doc/posix-functions/open.texi (open): Document the limitation.
16238         * modules/fchdir-tests: New file.
16239         * tests/test-fchdir.c: Likewise.
16240
16241         canonicalize: allow cross-testing from cygwin to mingw
16242         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
16243         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
16244         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
16245         Likewise.
16246         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
16247         target does not support symlinks.
16248         * tests/test-canonicalize-lgpl.sh: Likewise.
16249
16250         chown: avoid compilation warning on mingw
16251         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
16252         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
16253         mingw.
16254         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16255         * modules/chown (Depends-on): Add errno.
16256
16257 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16258
16259         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
16260         command.
16261
16262 2009-08-31  Jim Meyering  <meyering@redhat.com>
16263
16264         canonicalize: remove useless initialization
16265         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
16266         initialization of local, "end".
16267
16268 2009-08-30  Bruno Haible  <bruno@clisp.org>
16269
16270         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
16271         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
16272         ENOSYS.
16273
16274 2009-08-30  Bruno Haible  <bruno@clisp.org>
16275
16276         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
16277         /usr/xpg4/bin/tr when it exists.
16278         * tests/test-pipe-filter-gi1.sh: Likewise.
16279
16280 2009-08-30  Bruno Haible  <bruno@clisp.org>
16281
16282         Work around deficient /usr/bin/id program on Solaris.
16283         * tests/test-file-has-acl.sh (ID): New variable.
16284         * tests/test-set-mode-acl.sh (ID): Likewise.
16285         * tests/test-copy-acl.sh (ID): Likewise.
16286         * tests/test-copy-file.sh (ID): Likewise.
16287
16288 2009-08-30  Bruno Haible  <bruno@clisp.org>
16289
16290         New module 'xstriconveh'.
16291         * lib/xstriconveh.h: New file.
16292         * lib/xstriconveh.c: New file.
16293         * modules/xstriconveh: New file.
16294
16295 2009-08-30  Bruno Haible  <bruno@clisp.org>
16296
16297         Make it easier to use mem_cd_iconveh.
16298         * lib/striconveh.h (iconveh_t): New type.
16299         (iconveh_open, iconveh_close): New declarations.
16300         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16301         with a single 'const iconveh_t *' argument.
16302         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
16303         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16304         with a single 'const iconveh_t *' argument.
16305         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
16306         * tests/test-striconveh.c (main): Update.
16307         * NEWS: Mention the change.
16308
16309 2009-08-30  Bruno Haible  <bruno@clisp.org>
16310
16311         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
16312         problem.
16313
16314 2009-08-30  Bruno Haible  <bruno@clisp.org>
16315
16316         Work around iconv_open problem on Solaris.
16317         * lib/iconv_open-solaris.gperf: New file.
16318         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
16319         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
16320         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
16321         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
16322         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
16323         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
16324
16325 2009-08-29  Jim Meyering  <meyering@redhat.com>
16326
16327         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
16328         * top/maint.mk (cvs-check): Remove target; it was just an alias
16329         to the better-named vc-diff-check.
16330         (maintainer-distcheck): Remove rule.  It was used only from
16331         the (alpha/beta/major) target, and all of its commands but one
16332         were coreutils-specific.
16333         (vc-dist): Remove rule.
16334         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
16335         Run vc-diff-check, not vc-dist.
16336         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
16337
16338 2009-08-27  Bruno Haible  <bruno@clisp.org>
16339
16340         * tests/test-bitrotate.c (main): Remove test that uses a shift count
16341         of 0.
16342
16343 2009-08-27  Bruno Haible  <bruno@clisp.org>
16344
16345         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
16346         compilers.
16347         * doc/func.texi: Document the SunPRO C bug.
16348
16349 2009-08-27  Bruno Haible  <bruno@clisp.org>
16350
16351         Fix link error on Solaris.
16352         * tests/test-parse-duration.c (xstrdup): Remove function.
16353
16354 2009-08-26  Pádraig Brady  <P@draigbrady.com>
16355
16356         ignore-value: handle pointer types, too
16357         * lib/ignore-value.h (__attribute__): Remove definition.
16358         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
16359         of a more concise and more-often effective "(void) i" statement.
16360         (ignore_ptr): New function to suppress warnings from functions that
16361         return pointers, and to make it explicit that one function doesn't
16362         handle all cases.
16363
16364 2009-08-25  Bruno Haible  <bruno@clisp.org>
16365
16366         dup2: work around a Linux bug.
16367         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
16368         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
16369         * doc/posix-functions/dup2.texi: Mention the Linux bug.
16370         Reported by Simon Josefsson.
16371
16372 2009-08-25  Jim Meyering  <meyering@redhat.com>
16373
16374         libguestfs uses gnulib
16375         * users.txt: Add libguestfs.
16376
16377 2009-08-24  Eric Blake  <ebb9@byu.net>
16378
16379         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
16380         * lib/pipe2.c (includes): Add binary-io.h.
16381         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
16382
16383 2009-08-24  Bruno Haible  <bruno@clisp.org>
16384
16385         Tolerate declared but missing accept4 syscall.
16386         * lib/accept4.c (accept4): Invoke original accept4 function first, if
16387         available.
16388         * lib/sys_socket.in.h (accept4): If the function is already present,
16389         override it.
16390         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
16391         * modules/accept4 (Makefile.am): Compile accept4.c always.
16392         Reported by Paolo Bonzini and Eric Blake.
16393
16394 2009-08-23  Bruno Haible  <bruno@clisp.org>
16395
16396         New module 'accept4'.
16397         * lib/sys_socket.in.h (accept4): New declaration.
16398         * lib/accept4.c: New file.
16399         * m4/accept4.m4: New file.
16400         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16401         GNULIB_ACCEPT4, HAVE_ACCEPT4.
16402         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
16403         HAVE_ACCEPT4.
16404         * modules/accept4: New file.
16405         * doc/glibc-functions/accept4.texi: Mention the new module.
16406
16407 2009-08-24  Jim Meyering  <meyering@redhat.com>
16408
16409         progname: also set global program_invocation_name, when possible
16410         Before this change, a libtool-enabled program that calls glibc's
16411         error function would report the program name as
16412         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
16413         * modules/progname (configure.ac): Check for a declaration of
16414         program_invocation_name.
16415         * lib/progname.c:  Include <errno.h>.
16416         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
16417         Set program_invocation_name.
16418
16419 2009-08-23  Bruno Haible  <bruno@clisp.org>
16420
16421         * lib/dup3.c: Include <string.h>.
16422
16423 2009-08-23  Bruno Haible  <bruno@clisp.org>
16424
16425         * lib/dup3.c (dup3): Test only once whether the system actually exists.
16426         * lib/pipe2.c (pipe2): Likewise.
16427         Suggested by Eric Blake.
16428
16429 2009-08-23  Bruno Haible  <bruno@clisp.org>
16430
16431         Tolerate declared but missing dup3 syscall.
16432         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
16433         * lib/unistd.in.h (dup3): If the function is already present,
16434         override it.
16435         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
16436         * modules/dup3 (Makefile.am): Compile dup3.c always.
16437         Reported by Paolo Bonzini.
16438
16439 2009-08-23  Bruno Haible  <bruno@clisp.org>
16440
16441         Tolerate declared but missing pipe2 syscall.
16442         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
16443         available.
16444         * lib/unistd.in.h (pipe2): If the function is already present,
16445         override it.
16446         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
16447         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
16448         Reported by Paolo Bonzini.
16449
16450 2009-08-23  Bruno Haible  <bruno@clisp.org>
16451
16452         * lib/pipe2.c (pipe2): Move #ifs inside function.
16453
16454 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16455
16456         quotearg: document limitations of quote_these_too
16457         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
16458         those limitations are created.
16459         * lib/quotearg.h (set_char_quoting): Document that digits and
16460         letters that are special after backslash are not permitted.
16461         (quotearg_char): Cross-reference set_char_quoting documentation.
16462
16463 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
16464
16465         quotearg: implement custom_quoting_style
16466         * lib/quotearg.c: (struct quoting_options): Add left_quote and
16467         right_quote fields.
16468         (set_custom_quoting): New public function.
16469         (quotearg_buffer_restyled): Add left_quote and right_quote
16470         arguments, handle them very much like locale quoting, and update
16471         all uses.
16472         (quotearg_n_custom): New public function.
16473         (quotearg_n_custom_mem): New public function.
16474         (quotearg_custom): New public function.
16475         (quotearg_custom_mem): New public function.
16476         * lib/quotearg.h: Prototype and document new public functions.
16477         (enum quoting_style): For escape_quoting_style and
16478         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
16479         ignored even though they're otherwise like c_quoting_style.
16480         Add custom_quoting_style member and document with comparison to
16481         clocale_quoting_style.
16482         * tests/test-quotearg.c (custom_quotes): New array.
16483         (custom_results): New array.
16484         (main): Extend to test custom quoting.
16485
16486 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16487
16488         quotearg: fix right quote escaping when it's in quote_these_too
16489         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
16490         quote, be sure to prepend only one backslash.
16491         * tests/test-quotearg.c (use_quote_double_quotes): New function.
16492         (main): Test it.
16493
16494 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16495
16496         quotearg-tests: test escaping of embedded locale quotes
16497         * tests/test-quotearg.c (struct result_strings): Add member for
16498         new input.
16499         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
16500         (inputs): Add new input.
16501         (results_g): Add expected results.
16502         (flag_results): Likewise.
16503         (locale_results): Likewise.
16504         (compare_strings): Check those.
16505
16506 2009-08-23  Bruno Haible  <bruno@clisp.org>
16507
16508         Tests for module 'dup3'.
16509         * modules/dup3-tests: New file.
16510         * tests/test-dup3.c: New file.
16511
16512         New module 'dup3'.
16513         * lib/unistd.in.h (dup3): New declaration.
16514         * lib/dup3.c: New file.
16515         * m4/dup3.m4: New file.
16516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
16517         HAVE_DUP3.
16518         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
16519         * modules/dup3: New file.
16520         * doc/glibc-functions/dup3.texi: Mention the new module.
16521
16522 2009-08-23  Bruno Haible  <bruno@clisp.org>
16523
16524         Tweak the dup2 test.
16525         * tests/test-dup2.c (main): Create the test file empty. Verify that an
16526         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
16527         the test file is still empty. Fix argument order of lseek.
16528
16529 2009-08-23  Bruno Haible  <bruno@clisp.org>
16530
16531         Avoid test link errors when the modules getopt-gnu, gettext are used.
16532         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
16533         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16534
16535 2009-08-23  Bruno Haible  <bruno@clisp.org>
16536
16537         Fix getdtablesize() on mingw.
16538         * lib/getdtablesize.c (getdtablesize): Implement differently.
16539         * lib/unistd.in.h (getdtablesize): Improve comment.
16540
16541 2009-08-23  Bruno Haible  <bruno@clisp.org>
16542
16543         New module 'mkostemp'.
16544         Based on Ulrich Drepper's 2007-08-10 change in glibc.
16545         * lib/stdlib.in.h (mksotemp): New declaration.
16546         * lib/mkostemp.c: New file, from glibc with modifications.
16547         * lib/tempname.h (GT_FILE): Remove outdated comment.
16548         (gen_tempname): Add flags argument.
16549         * lib/tempname.c (__GT_BIGFILE): Remove macro.
16550         (__GT_FILE): Map to 1.
16551         (small_open, large_open): Remove macros.
16552         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
16553         * lib/mkstemp.c (mkstemp): Update.
16554         * lib/mkdtemp.c (mkdtemp): Likewise.
16555         * m4/mkostemp.m4: New file.
16556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
16557         HAVE_MKOSTEMP.
16558         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
16559         HAVE_MKOSTEMP.
16560         * modules/mkostemp: New file, based on modules/mkstemp.
16561         * doc/glibc-functions/mkostemp.texi: Mention the new module.
16562         * NEWS: Mention the change.
16563
16564 2009-08-23  Bruno Haible  <bruno@clisp.org>
16565
16566         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
16567         Reported by Eric Blake.
16568
16569 2009-08-23  Bruno Haible  <bruno@clisp.org>
16570
16571         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
16572         Reported by Eric Blake.
16573
16574 2009-08-23  Bruno Haible  <bruno@clisp.org>
16575
16576         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
16577         * modules/pipe2 (Depends-on): Likewise.
16578
16579 2009-08-23  Eric Blake  <ebb9@byu.net>
16580
16581         fcntl-h: add O_TTY_INIT support
16582         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
16583         * tests/test-fcntl-h.c (o): Test it.
16584         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16585
16586         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16587         * modules/fcntl: Move <fcntl.h> header replacement...
16588         * modules/fcntl-h: ...to new name, so as not to collide with
16589         like-named function.
16590         * tests/test-fcntl.c: Rename...
16591         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16592         * modules/fcntl-tests: Rename...
16593         * modules/fcntl-h-tests: ...to this.  Update test file name.
16594         * modules/chdir-long (Depends-on): Update clients.
16595         * modules/chdir-safer (Depends-on): Likewise.
16596         * modules/fcntl-safer (Depends-on): Likewise.
16597         * modules/fts (Depends-on): Likewise.
16598         * modules/mkancesdirs (Depends-on): Likewise.
16599         * modules/mkdir-p (Depends-on): Likewise.
16600         * modules/open (Depends-on): Likewise.
16601         * modules/savewd (Depends-on): Likewise.
16602         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16603         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16604
16605 2009-08-22  Bruno Haible  <bruno@clisp.org>
16606
16607         * modules/binary-io (License): Relicense under LGPL.
16608         * modules/pipe2 (License): Likewise.
16609
16610 2009-08-22  Bruno Haible  <bruno@clisp.org>
16611
16612         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16613         return value.
16614         * lib/pipe-filter-gi.c (filter_init): Likewise.
16615         Reported by Eric Blake.
16616
16617 2009-08-22  Bruno Haible  <bruno@clisp.org>
16618
16619         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16620         * modules/pipe (Depends-on): Add pipe2.
16621
16622 2009-08-22  Bruno Haible  <bruno@clisp.org>
16623
16624         Tests for module 'pipe2'.
16625         * modules/pipe2-tests: New file.
16626         * tests/test-pipe2.c: New file.
16627
16628         New module 'pipe2'.
16629         * lib/unistd.in.h (pipe2): New declaration.
16630         * lib/pipe2.c: New file.
16631         * m4/pipe2.m4: New file.
16632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16633         HAVE_PIPE2.
16634         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16635         * modules/pipe2: New file.
16636         * doc/glibc-functions/pipe2.texi: Mention the new module.
16637
16638 2009-08-22  Bruno Haible  <bruno@clisp.org>
16639
16640         Reference some new glibc functions.
16641         * doc/glibc-functions/accept4.texi: New file.
16642         * doc/glibc-functions/dup3.texi: New file.
16643         * doc/glibc-functions/mkostemp.texi: New file.
16644         * doc/glibc-functions/pipe2.texi: New file.
16645         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16646         (Glibc sys/socket.h): Refer to accept4.
16647         (Glibc unistd.h): Refer to dup3, pipe2.
16648         Reported by Eric Blake.
16649
16650 2009-08-22  Jim Meyering  <meyering@redhat.com>
16651             Bruno Haible  <bruno@clisp.org>
16652
16653         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16654         This makes it so packages using automake-1.11's silent-rules option
16655         can print e.g., a single "GEN    configmake.h" line, rather than
16656         the 30+ statements that perform the job.  If you want to see the
16657         actual commands, you can still run "make V=1".
16658         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16659         so that make output is abbreviated when those variables are defined
16660         appropriately.
16661         * modules/argz: Likewise.
16662         * modules/arpa_inet: Likewise.
16663         * modules/byteswap: Likewise.
16664         * modules/configmake: Likewise.
16665         * modules/dirent: Likewise.
16666         * modules/errno: Likewise.
16667         * modules/fcntl: Likewise.
16668         * modules/float: Likewise.
16669         * modules/fnmatch: Likewise.
16670         * modules/getopt-posix: Likewise.
16671         * modules/glob: Likewise.
16672         * modules/iconv_open: Likewise.
16673         * modules/inttypes: Likewise.
16674         * modules/localcharset: Likewise.
16675         * modules/locale: Likewise.
16676         * modules/math: Likewise.
16677         * modules/netdb: Likewise.
16678         * modules/netinet_in: Likewise.
16679         * modules/poll: Likewise.
16680         * modules/posix_spawnp-tests: Likewise.
16681         * modules/sched: Likewise.
16682         * modules/search: Likewise.
16683         * modules/selinux-h: Likewise.
16684         * modules/signal: Likewise.
16685         * modules/spawn: Likewise.
16686         * modules/stdarg: Likewise.
16687         * modules/stdbool: Likewise.
16688         * modules/stddef: Likewise.
16689         * modules/stdint: Likewise.
16690         * modules/stdio: Likewise.
16691         * modules/stdlib: Likewise.
16692         * modules/string: Likewise.
16693         * modules/strings: Likewise.
16694         * modules/sys_file: Likewise.
16695         * modules/sys_ioctl: Likewise.
16696         * modules/sys_select: Likewise.
16697         * modules/sys_socket: Likewise.
16698         * modules/sys_stat: Likewise.
16699         * modules/sys_time: Likewise.
16700         * modules/sys_times: Likewise.
16701         * modules/sys_utsname: Likewise.
16702         * modules/sys_wait: Likewise.
16703         * modules/sysexits: Likewise.
16704         * modules/time: Likewise.
16705         * modules/unistd: Likewise.
16706         * modules/wchar: Likewise.
16707         * modules/wctype: Likewise.
16708
16709 2009-08-22  Jim Meyering  <meyering@redhat.com>
16710
16711         announce-gen: detect write failure
16712         * build-aux/announce-gen: Add Coda at end.
16713         Remove equivalent-but-more-verbose block at top.
16714
16715 2009-08-19  Akim Demaille  <demaille@gostai.com>
16716
16717         bootstrap: --help to stdout.
16718         * bootstrap (usage): Don't send --help to stderr.
16719         Use a here doc instead of a long string.
16720
16721 2009-08-21  Eric Blake  <ebb9@byu.net>
16722
16723         test-popen-safer: split from test-popen
16724         * tests/test-popen.c (main): Move...
16725         * tests/test-popen.h: ...into new file.
16726         * tests/test-popen-safer2.c: New file.
16727         * modules/popen-tests (Files): Add test-popen.h.
16728         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16729         Suggested by Bruno Haible.
16730
16731         test-fcntl-safer: split from test-open
16732         * tests/test-open.c (main): Move...
16733         * tests/test-open.h: ...into new file.
16734         * tests/test-fcntl-safer.c: New file.
16735         * modules/open-tests (Files): Add test-open.h.
16736         * modules/fcntl-safer-tests: New file.
16737         Suggested by Bruno Haible.
16738
16739         test-fopen-safer: split from test-fopen
16740         * tests/test-fopen.c (main): Move...
16741         * tests/test-fopen.h: ...into new file.
16742         * tests/test-fopen-safer.c: New file.
16743         * modules/fopen-tests (Files): Add test-fopen.h.
16744         * modules/fopen-safer-tests: New file.
16745         Suggested by Bruno Haible.
16746
16747 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16748
16749         popen-safer: test O_CLOEXEC at run-time.
16750         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16751
16752 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16753
16754         fcntl: move more flags to the header
16755         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16756         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16757         * lib/fcntl.in.h: Do both things here.
16758
16759 2009-08-21  Jim Meyering  <meyering@redhat.com>
16760
16761         consistently remove $@-t before redirecting to it
16762         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16763         * modules/alloca-opt: Likewise.
16764         * modules/byteswap: Likewise.
16765         * modules/fnmatch: Likewise.
16766         * modules/getopt-posix: Likewise.
16767         * modules/glob: Likewise.
16768         * modules/poll: Likewise.
16769         * modules/posix_spawnp-tests: Likewise.
16770         * modules/sys_socket: Likewise.
16771         * modules/sysexits: Likewise.
16772
16773 2009-08-21  Eric Blake  <ebb9@byu.net>
16774
16775         popen: simplify access to original popen
16776         * lib/popen.c (rpl_popen): No need to worry about popen being a
16777         macro.
16778         Reported by Bruno Haible.
16779
16780 2009-08-20  Eric Blake  <ebb9@byu.net>
16781
16782         build: avoid some compiler warnings
16783         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16784         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16785         type.
16786         (new_exclude_segment, excluded_file_pattern_p)
16787         (excluded_file_name_p): Reduce scope.
16788         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16789         old-style declaration.
16790
16791 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16792
16793         * tests/test-exclude1.sh: Handle Windows EOL.
16794         * tests/test-exclude2.sh: Likewise.
16795         * tests/test-exclude3.sh: Likewise.
16796         * tests/test-exclude4.sh: Likewise.
16797         * tests/test-exclude5.sh: Likewise.
16798         * tests/test-exclude6.sh: Likewise.
16799         * tests/test-exclude7.sh: Likewise.
16800
16801 2009-08-19  Akim Demaille  <demaille@gostai.com>
16802
16803         bootstrap: find sha1sum when named gsha1sum.
16804         * bootstrap (find_tool): New.
16805         ($SHA1SUM): New.
16806         Use it.
16807
16808 2009-08-20  Jim Meyering  <meyering@redhat.com>
16809
16810         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16811         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16812         expression that converts "." in a file name to "\." in the resulting
16813         regexp.  Start with a dummy statement, so that prior shell variable
16814         definitions are expanded portably.  Reported by Simon Josefsson.
16815
16816 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16817
16818         Fix polling for writeability of a screen buffer.
16819         * lib/poll.c: Distinguish input and screen buffers for the
16820         Win32 implementation.
16821         * lib/select.c: Likewise.
16822
16823 2009-08-19  Eric Blake  <ebb9@byu.net>
16824
16825         popen-safer: prevent popen from clobbering std descriptors
16826         * modules/popen-safer: New file.
16827         * lib/popen-safer.c: Likewise.
16828         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
16829         * lib/stdio--.h (popen): Provide override.
16830         * lib/stdio-safer.h (popen_safer): Provide declaration.
16831         * tests/test-popen.c (includes): Partially test this.
16832         * modules/popen-safer-tests: New file, for more tests.
16833         * tests/test-popen-safer.c: Likewise.
16834         * MODULES.html.sh (file stream based Input/Output): Mention it.
16835
16836         tests: test some of the *-safer modules
16837         * modules/fopen-safer (Depends-on): Add fopen.
16838         * modules/fcntl-safer (Depends-on): Add fcntl.
16839         * modules/stdlib-safer (Depends-on): Add stdlib.
16840         (configure.ac): Set indicator.
16841         * modules/unistd-safer (configure.ac): Likewise.
16842         * modules/tmpfile-safer (configure.ac): Likewise.
16843         (Depends-on): Add tmpfile.
16844         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
16845         active.
16846         * tests/test-fopen.c (includes): Test safer versions when they are
16847         in use.
16848         * tests/test-open.c (includes): Likewise.
16849
16850         popen: fix cygwin 1.5 bug when stdin closed
16851         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
16852         * modules/popen: New file.
16853         * modules/popen-tests: Likewise.
16854         * tests/test-popen.c: Likewise.
16855         * m4/popen.m4: Likewise.
16856         * lib/popen.c: Likewise.
16857         * lib/stdio.in.h (popen): New declaration.
16858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
16859         * modules/stdio (Makefile.am): Likewise.
16860         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
16861
16862 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
16863
16864         maint.mk: give full control over update-copyright exclusions
16865         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
16866         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
16867         (update-copyright): Don't force inclusion of top-level
16868         ChangeLog.  Don't force exclusion of all COPYING files, but make
16869         them the default exclusion instead.
16870
16871 2009-08-16  Bruno Haible  <bruno@clisp.org>
16872
16873         Fix test failures on Solaris 10.
16874         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
16875         tests when Solaris iconv() is used.
16876         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16877         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16878         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16879         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16880         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16881
16882 2009-08-16  Bruno Haible  <bruno@clisp.org>
16883
16884         Fix test failures on Solaris 10.
16885         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
16886         'tr' program and pass it as first argument.
16887         * tests/test-pipe-filter-gi1.sh: Likewise.
16888         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
16889         program as first argument.
16890         * tests/test-pipe-filter-gi1.c (main): Likewise.
16891
16892 2009-08-16  Eric Blake  <ebb9@byu.net>
16893
16894         fpurge: fix previous commits
16895         * modules/fpurge (Makefile.am): Make replacement conditional,
16896         partially reverting 2007-04-29 change; missed in previous
16897         attempt.
16898         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
16899         is missing.
16900
16901 2009-08-16  Bruno Haible  <bruno@clisp.org>
16902
16903         Clarify fpurge's effect on the file position.
16904         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
16905         * tests/test-fpurge.c (main): Make a second pass for checking the file
16906         position.
16907
16908 2009-08-16  Bruno Haible  <bruno@clisp.org>
16909
16910         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
16911         declaration of fpurge is missing.
16912         * tests/test-fpurge.c (main): Check that the file has not more contents
16913         than expected. Close the file before removing it.
16914
16915 2009-08-15  Eric Blake  <ebb9@byu.net>
16916
16917         fpurge: don't wrap working cygwin implementation
16918         * lib/fpurge.c (fpurge): Fix comment typo.
16919         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
16920         1.7 to avoid replacement.
16921         * tests/test-fpurge.c (main): Enhance test.
16922
16923 2009-08-15  Eric Blake  <ebb9@byu.net>
16924         and Jim Meyering  <meyering@redhat.com>
16925
16926         test-update-copyright: skip if perl is insufficient
16927         * tests/test-update-copyright.sh: Failure to run maintainer tool
16928         should not cause testsuite failure on cygwin 1.5.
16929
16930 2009-08-14  Eric Blake  <ebb9@byu.net>
16931
16932         doc: mention more functions added in cygwin 1.7.0
16933         * doc/posix-headers/limits.texi (limits.h): Update for recent
16934         cygwin additions.
16935         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
16936         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16937         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
16938         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
16939         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
16940
16941 2009-08-14  Eric Blake  <ebb9@byu.net>
16942
16943         maint.mk: simplify update-copyright rule
16944         * top/maint.mk (update-copyright-local): Delete, and document how
16945         to do it in cfg.mk instead.
16946         (update-copyright-exclude-regexp): Delete, and document how to do
16947         it in .x-update-copyright instead.
16948         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
16949         exclude ChangeLog.
16950
16951 2009-08-14  Bruno Haible  <bruno@clisp.org>
16952
16953         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
16954
16955 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16956
16957         maint.mk: support update-copyright-env
16958         * top/maint.mk (update-copyright-env): Define place-holder.
16959         (update-copyright): Expand $(update-copyright-env) before
16960         invoking update-copyright.
16961
16962 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16963
16964         update-copyright: implement forced reformatting
16965         * build-aux/update-copyright: Implement and document
16966         UPDATE_COPYRIGHT_FORCE.
16967         * tests/test-update-copyright.sh: Test it.
16968
16969 2009-08-14  Eric Blake  <ebb9@byu.net>
16970         and Bruno Haible  <bruno@clisp.org>
16971
16972         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
16973         * tests/test-locale.c: Revert previous patch related to NULL.
16974         * tests/test-stdio.c: Likewise.
16975         * tests/test-stdlib.c: Likewise.
16976         * tests/test-string.c: Likewise.
16977         * tests/test-unistd.c: Likewise.
16978         * modules/time-tests (Depends-on): Add verify.
16979         * modules/wchar-tests (Depends-on): Likewise.
16980         * tests/test-time.c: Test for NULL compliance.
16981         * tests/test-wchar.c: Likewise.
16982         * modules/locale (Depends-on): Add stddef.
16983         * modules/stdio (Depends-on): Likewise.
16984         * modules/stdlib (Depends-on): Likewise.
16985         * modules/string (Depends-on): Likewise.
16986         * modules/time (Depends-on): Likewise.
16987         * modules/unistd (Depends-on): Likewise.
16988         * modules/wchar (Depends-on): Likewise.
16989         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
16990         * lib/stdlib.in.h (includes): Likewise.
16991         * lib/string.in.h (includes): Likewise.
16992         * lib/time.in.h (includes): Likewise.
16993         * lib/unistd.in.h (includes): Likewise.
16994         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
16995         replaced.
16996         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16997         * m4/stddef_h.m4: New file.
16998         * modules/stddef: Likewise.
16999         * lib/stddef.in.h: Likewise.
17000         * modules/stddef-tests: Likewise.
17001         * tests/test-stddef.c: Likewise.
17002         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
17003         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
17004         * doc/posix-headers/locale.texi (locale.h): Likewise.
17005         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
17006         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17007         * doc/posix-headers/string.texi (string.h): Likewise.
17008         * doc/posix-headers/time.texi (time.h): Likewise.
17009         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
17010         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
17011
17012 2009-08-14  Eric Blake  <ebb9@byu.net>
17013
17014         doc: improve git diff of texinfo files
17015         * .gitattributes: Add rule for *.texi files, with hint on how to
17016         use it.
17017         Copied from m4, and based on a report by Bruno Haible.
17018
17019 2009-08-14  Bruno Haible  <bruno@clisp.org>
17020
17021         Disable multithread support by default on Cygwin 1.5.x for real.
17022         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
17023
17024 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17025
17026         update-copyright: much ado about intervals
17027         * build-aux/update-copyright: Implement and document
17028         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
17029         of copyright year intervals.
17030         Also, document UPDATE_COPYRIGHT_YEAR.
17031         * tests/test-update-copyright.sh: Test it.
17032
17033         update-copyright: convert 2-digit to 4-digit years
17034         * build-aux/update-copyright: Implement and document.
17035         * tests/test-update-copyright.sh: Update.
17036
17037 2009-08-14  Jim Meyering  <meyering@redhat.com>
17038
17039         test-exclude: avoid coreutils "make check" failure
17040         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
17041         just as in test-argmatch.c.
17042
17043 2009-08-13  Eric Blake  <ebb9@byu.net>
17044
17045         test-dup2: fix bad assumption
17046         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
17047         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
17048
17049         test-version-etc: fix CRLF portability issue
17050         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
17051         recognize \r.
17052         * tests/test-argp-version-etc-1.sh: Likewise.
17053
17054         getopt: update client modules
17055         * modules/argp (Depends-on): Use getopt-gnu.
17056         * modules/git-merge-changelog (Depends-on): Likewise.
17057         * modules/long-options (Depends-on): Likewise.
17058         * modules/xstrtol (Depends-on): Likewise.
17059
17060 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17061
17062         * tests/test-version-etc.sh: Don't fail on different
17063         project/version.  Don't fail on CRLF differences.  Rewrite to use
17064         multiple -e instead of multiple sed forks, suggested by Eric Blake
17065         <ebb9@byu.net>.
17066         * tests/test-argp-version-etc-1.sh: Likewise.
17067
17068 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17069
17070         * tests/test-version-etc.sh: Don't fail on different
17071         project/version.
17072
17073 2009-08-12  Bruno Haible  <bruno@clisp.org>
17074
17075         Tests for modules 'getopt-posix', 'getopt-gnu'.
17076         * modules/getopt-posix-tests: New file.
17077         * tests/test-getopt.c: New file.
17078         * tests/test-getopt.h: New file.
17079         * tests/test-getopt_long.h: New file.
17080
17081         New modules 'getopt-posix', 'getopt-gnu'.
17082         * modules/getopt-gnu: New file, renamed from modules/getopt.
17083         * modules/getopt-posix: New file.
17084         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
17085         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
17086         (gl_GETOPT): Remove macro.
17087         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
17088         Disable the test against BSD systems that declare optreset. Test
17089         against mingw bug. Test against lack of support of optional arguments
17090         on many platforms.
17091         * doc/glibc-headers/getopt.texi: Update module name and list of
17092         relevant platforms.
17093         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
17094         'getopt-gnu' and more portability problems.
17095         * NEWS: Mention the changes.
17096
17097 2009-08-12  Bruno Haible  <bruno@clisp.org>
17098
17099         Ensure that optarg etc. get declared by <unistd.h>.
17100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
17101         AC_USE_SYSTEM_EXTENSIONS.
17102         * modules/getopt (Depends-on): Add 'extensions'.
17103
17104 2009-08-12  Bruno Haible  <bruno@clisp.org>
17105
17106         Avoid test link errors.
17107         * modules/pipe-filter-ii-tests (Makefile.am): Define
17108         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
17109         * modules/pipe-filter-gi-tests (Makefile.am): Define
17110         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
17111         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17112
17113 2009-08-12  Bruno Haible  <bruno@clisp.org>
17114
17115         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
17116         gl_GETOPT_SUBSTITUTE before.
17117         (gl_GETOPT): Use it.
17118         * m4/argp.m4 (gl_ARGP): Update.
17119         Reported by Sergey Poznyakoff.
17120
17121         * m4/getopt.m4: Reorder macros.
17122         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
17123         (gl_GETOPT_SUBSTITUTE): Remove macro.
17124
17125 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17126
17127         Minor improvement in gitlog-to-changelog
17128
17129         * build-aux/gitlog-to-changelog: New option `--format' makes
17130         output format string configurable.
17131
17132 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17133
17134         Optimize exclude: use hash tables for non-wildcard patterns.
17135
17136         * lib/exclude.c: Include hash.h and mbuiter.h
17137         (struct exclude_pattern, exclude_segment): New data types.
17138         (struct exclude): Rewrite.
17139         (fnmatch_pattern_has_wildcards): New function.
17140         (new_exclude_segment, free_exclude_segment): New functions.
17141         (excluded_file_pattern_p, excluded_file_name_p): New functions.
17142         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
17143         * lib/exclude.h (is_fnmatch_pattern): New prototype.
17144         * modules/exclude: Depend on hash and mbuiter.
17145
17146         * modules/exclude-tests: New file.
17147         * tests/test-exclude.c: New file.
17148         * tests/test-exclude1.sh: New file.
17149         * tests/test-exclude2.sh: New file.
17150         * tests/test-exclude3.sh: New file.
17151         * tests/test-exclude4.sh: New file.
17152         * tests/test-exclude5.sh: New file.
17153         * tests/test-exclude6.sh: New file.
17154         * tests/test-exclude7.sh: New file.
17155
17156 2009-08-12  Bruno Haible  <bruno@clisp.org>
17157
17158         Ensure that getopt() gets declared by <unistd.h>.
17159         * lib/unistd.in.h: Conditionally include getopt.h.
17160         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
17161         Set GNULIB_UNISTD_H_GETOPT.
17162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17163         GNULIB_UNISTD_H_GETOPT.
17164         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
17165
17166 2009-08-12  Bruno Haible  <bruno@clisp.org>
17167
17168         Clarify logic.
17169         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
17170         gl_replace_getopt instead of GETOPT_H.
17171
17172 2009-08-12  Bruno Haible  <bruno@clisp.org>
17173
17174         * m4/getopt.m4: Add comments.
17175
17176 2009-08-12  Bruno Haible  <bruno@clisp.org>
17177
17178         Disable multithread support by default on Cygwin 1.5.x.
17179         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
17180         set gl_use_threads=no if not specified otherwise.
17181
17182 2009-08-11  Bruno Haible  <bruno@clisp.org>
17183
17184         Avoid compilation error on NetBSD 5.0.
17185         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
17186         * tests/test-stdio.c: Likewise.
17187         * tests/test-stdlib.c: Likewise.
17188         * tests/test-string.c: Likewise.
17189         * tests/test-unistd.c: Likewise.
17190         Reported by Greg Troxel <gdt@ir.bbn.com>
17191         at <https://savannah.gnu.org/support/?106973>.
17192
17193 2009-08-11  Bruno Haible  <bruno@clisp.org>
17194
17195         * modules/dup2-tests (Depends-on): Remove close.
17196
17197         Undo 2009-07-19 commit.
17198         * modules/acl-tests (Depends-on): Remove close.
17199         * modules/binary-io-tests (Depends-on): Likewise.
17200         * modules/closein-tests (Depends-on): Likewise.
17201         * modules/flock-tests (Depends-on): Likewise.
17202         * modules/fsync-tests (Depends-on): Likewise.
17203         * modules/lseek-tests (Depends-on): Likewise.
17204         * modules/pipe-tests (Depends-on): Likewise.
17205         * modules/posix_spawn-tests (Depends-on): Likewise.
17206         * modules/posix_spawnp-tests (Depends-on): Likewise.
17207         * modules/stat-time-tests (Depends-on): Likewise.
17208         * modules/yesno-tests (Depends-on): Likewise.
17209
17210 2009-08-10  Bruno Haible  <bruno@clisp.org>
17211
17212         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
17213
17214 2009-08-10  Bruno Haible  <bruno@clisp.org>
17215
17216         Fix a gcc warning.
17217         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
17218
17219 2009-08-10  Bruno Haible  <bruno@clisp.org>
17220
17221         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
17222         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
17223         not only the first time.
17224         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
17225         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
17226         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
17227         is 1, not only the the first time.
17228
17229 2009-08-10  Bruno Haible  <bruno@clisp.org>
17230
17231         Make it possible to use module 'gethostname' without module 'close'.
17232         * lib/unistd.in.h (close): Evoke a link error only if
17233         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17235         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17236         * modules/unistd (Makefile.am): Substitute
17237         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17238         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
17239         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17240         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17241         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17242         * modules/sys_ioctl (Makefile.am): Substitute
17243         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17244         * modules/socket (configure.ac): On native Windows, set
17245         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
17246         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17247         Reported by Sam Steingold <sds@gnu.org>.
17248
17249 2009-08-10  Bruno Haible  <bruno@clisp.org>
17250
17251         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
17252         * modules/ioctl (configure.ac): Likewise.
17253
17254 2009-08-10  Bruno Haible  <bruno@clisp.org>
17255
17256         Avoid collision between gnulib wrapper and libintl wrapper.
17257         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
17258         already defined in intl/printf.c.
17259         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
17260         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
17261
17262 2009-08-09  Bruno Haible  <bruno@clisp.org>
17263
17264         Make <sys/select.h> really self-contained, also on Solaris 10.
17265         * lib/sys_select.in.h: Include <string.h>.
17266         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
17267         Solaris 10 problem.
17268         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
17269         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
17270         Reported by Jim Meyering.
17271
17272 2009-08-09  Bruno Haible  <bruno@clisp.org>
17273
17274         Avoid warnings from 'aclocal' that are due to a use of macro name
17275         AM_XGETTEXT_OPTION that is not defined in automake.
17276         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
17277         automake.
17278         * modules/error (configure.ac): Likewise.
17279         * modules/propername (configure.ac): Likewise.
17280         * modules/vasprintf (configure.ac): Likewise.
17281         * modules/verror (configure.ac): Likewise.
17282         * modules/xprintf (configure.ac): Likewise.
17283         * modules/xvasprintf (configure.ac): Likewise.
17284
17285 2009-08-08  Bruno Haible  <bruno@clisp.org>
17286
17287         Avoid compilation error in C++ mode.
17288         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
17289         Reported by Sam Steingold <sds@gnu.org>.
17290
17291 2009-08-08  Bruno Haible  <bruno@clisp.org>
17292
17293         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
17294         for the various Unix platforms.
17295         * doc/posix-headers/limits.texi: Update platforms list regarding
17296         HOST_NAME_MAX.
17297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17298
17299 2009-08-07  Jim Meyering  <meyering@redhat.com>
17300
17301         selinux-at: fix typo in a comment
17302         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
17303         Spotted by Paolo Bonzini.
17304
17305         selinux-at: remove redundant m4 code, add documentation
17306         * modules/selinux-at (configure.ac): Remove redundant code.
17307         LIB_SELINUX is already set via the dependent module, selinux-h.
17308         (Include): Add quotes around selinux-at.h.
17309         * lib/selinux-at.h: Add documentation.
17310         Reported by Bruno Haible in
17311         http://marc.info/?l=gnulib-bug&m=124958988300749
17312
17313 2009-08-07  Bruno Haible  <bruno@clisp.org>
17314
17315         Avoid link error on MacOS X 10.3 and 10.4.
17316         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
17317         on non-ELF systems.
17318         * lib/argp-pv.c (argp_program_version): Likewise.
17319         Reported by Simon Josefsson.
17320
17321 2009-08-07  Simon Josefsson  <simon@josefsson.org>
17322
17323         * tests/test-version-etc.sh: Use $EXEEXT.
17324
17325 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
17326
17327         update-copyright: update documentation to point to maint.mk
17328         * build-aux/update-copyright: Here.
17329
17330 2009-08-06  Jim Meyering  <meyering@redhat.com>
17331
17332         maint.mk: support update-copyright-local
17333         * top/maint.mk (update-copyright-local): Define place-holder.
17334         (update-copyright): Depend on $(update-copyright-local).
17335
17336 2009-08-06  Jim Meyering  <meyering@redhat.com>
17337
17338         selinux-at: new module
17339         Initially written for coreutils, this module will soon be
17340         used by findutils, too.
17341         * MODULES.html.sh [Misc]: Add selinux-at.
17342         * lib/selinux-at.h: New file, from coreutils.
17343         * lib/selinux-at.c: Likewise.
17344         * modules/selinux-at: Likewise.
17345         (License): Change from LGPL to GPL, since it depends
17346         on the GPL'd openat module.
17347
17348         doc: update README
17349         * README: Remove references to cogito.
17350         Remove cvs-repo-updating instructions from 2007.
17351         Don't imply that CVS is better if you have limited disk space.
17352
17353 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17354
17355         update-copyright: support C-style comments
17356         * build-aux/update-copyright: Implement and document.
17357         * tests/test-update-copyright.sh: Test.
17358
17359 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17360
17361         update-copyright: support omitted "(C)"
17362         * build-aux/update-copyright: Implement and document.  Also,
17363         allow variable whitespace before "(C)".
17364         * tests/test-update-copyright.sh: Test.
17365
17366 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17367
17368         update-copyright: don't trip on non-FSF copyright statements
17369         * build-aux/update-copyright: Fix so that the first correctly
17370         formatted FSF copyright statement is recognized no matter what
17371         appears before it.  Update documentation.
17372         * tests/test-update-copyright.sh: Test that.
17373
17374 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17375
17376         update-copyright: clean up code a little
17377         * build-aux/update-copyright: Append "_re" to the name of any
17378         variable holding a regular expression.
17379         Replace "old" and "new" with "stmt" in variable names.
17380         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
17381         handled correctly.
17382         Format code more consistently.
17383
17384 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17385
17386         update-copyright-tests: improve portability
17387         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
17388         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
17389
17390 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17391
17392         update-copyright: support @copyright{} and &copy;
17393         * build-aux/update-copyright: Implement and document.
17394         * tests/test-update-copyright.sh: Test.
17395
17396 2009-08-04  Jim Meyering  <meyering@redhat.com>
17397
17398         update-copyright-tests: correctly test EOL=\r\n handling
17399         * tests/test-update-copyright.sh: Put \r at the end of some lines
17400         for the dos-eol tests.  Based on a patch by Joel E. Denny.
17401
17402         maint.mk: make update-copyright exclusion list more configurable
17403         * top/maint.mk (update-copyright): Default to excluding COPYING,
17404         but allow an override, in case someone does want to update that file.
17405
17406         maint.mk: don't update copyright date in COPYING
17407         * top/maint.mk (update-copyright): Exclude COPYING.
17408
17409         maint.mk: add a copyright-updating rule
17410         * top/maint.mk (update-copyright): New rule.
17411         Derived from coreutils/Makefile.am.
17412
17413         update-copyright: rename some variables
17414         * build-aux/update-copyright: Rename a few variables for clarity.
17415         Tweak syntax.  List Joel E. Denny as coauthor.
17416
17417 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17418
17419         update-copyright: fix bug for 2-digit last year and add tests
17420         * build-aux/update-copyright: Fix bug.
17421         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
17422         specified.
17423         * modules/update-copyright-tests: New
17424         * tests/test-update-copyright.sh: New.
17425
17426 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17427
17428         update-copyright: handle leading tabs in line prefix
17429         * build-aux/update-copyright: Count leading tabs as 8 spaces
17430         when computing margin.  This helps with the formatting of
17431         ChangeLogs, for example.
17432         Fix documentation a little.
17433
17434 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17435
17436         update-copyright: support EOL=\r\n
17437         * build-aux/update-copyright: Implement that.
17438
17439 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17440
17441         update-copyright: automatically format copyright statements
17442         * build-aux/update-copyright: Implement that.
17443         Also, be a little more predictable and safer by always failing
17444         when the full copyright format is not perfectly recognized as an
17445         unbroken whole.  Discussed at
17446         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
17447         Rewrite documentation.
17448
17449 2009-08-03  Bruno Haible  <bruno@clisp.org>
17450
17451         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
17452
17453 2009-08-02  Bruno Haible  <bruno@clisp.org>
17454
17455         Tests for module 'uname'.
17456         * modules/uname-tests: New file.
17457         * tests/test-uname.c: New file.
17458
17459         New module 'uname'.
17460         * lib/uname.c: New file.
17461         * m4/uname.m4: New file.
17462         * modules/uname: New file.
17463         * doc/posix-functions/uname.texi: Mention the new module.
17464
17465 2009-08-02  Bruno Haible  <bruno@clisp.org>
17466
17467         Tests for module 'sys_utsname'.
17468         * modules/sys_utsname-tests: New file.
17469         * tests/test-sys_utsname.c: New file.
17470
17471         New module 'sys_utsname'.
17472         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
17473         * m4/sys_utsname_h.m4: New file.
17474         * modules/sys_utsname: New file.
17475         * doc/posix-headers/sys_utsname.texi: Mention the new module.
17476
17477 2009-08-02  Bruno Haible  <bruno@clisp.org>
17478
17479         Implicitly initialize the sockets library.
17480         * lib/gethostname.c: Include sockets.h.
17481         (rpl_gethostname): Invoke gl_sockets_startup.
17482         * lib/socket.c: Include sockets.h.
17483         (rpl_socket): Invoke gl_sockets_startup.
17484         * modules/gethostname (Depends-on): Add sockets.
17485         * modules/socket (Depends-on): Likewise.
17486         * tests/test-poll.c: Don't include sockets.h.
17487         (main): Don't invoke gl_sockets_startup.
17488         * tests/test-select.c: Don't include sockets.h.
17489         (main): Don't invoke gl_sockets_startup.
17490
17491 2009-08-02  Bruno Haible  <bruno@clisp.org>
17492
17493         Allow multiple calls to gl_sockets_startup.
17494         * lib/sockets.c (initialized_sockets_version): New variable.
17495         (gl_sockets_startup): Do nothing if already called for this or a higher
17496         version.
17497         (gl_sockets_cleanup): Reset initialized_sockets_version.
17498
17499 2009-08-03  Simon Josefsson  <simon@josefsson.org>
17500
17501         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
17502         different project/version.
17503
17504 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
17505             Bruno Haible  <bruno@clisp.org>
17506
17507         Tests for module 'pipe-filter-gi'.
17508         * modules/pipe-filter-gi-tests: New file.
17509         * tests/test-pipe-filter-gi1.sh: New file.
17510         * tests/test-pipe-filter-gi1.c: New file.
17511         * tests/test-pipe-filter-gi2.sh: New file.
17512         * tests/test-pipe-filter-gi2-main.c: New file.
17513         * tests/test-pipe-filter-gi2-child.c: New file.
17514
17515         New module 'pipe-filter-gi'.
17516         * lib/pipe-filter-gi.c: New file.
17517         * modules/pipe-filter-gi: New file.
17518
17519 2009-08-02  Bruno Haible  <bruno@clisp.org>
17520             Paolo Bonzini  <bonzini@gnu.org>
17521
17522         Tests for module 'pipe-filter-ii'.
17523         * modules/pipe-filter-ii-tests: New file.
17524         * tests/test-pipe-filter-ii1.sh: New file.
17525         * tests/test-pipe-filter-ii1.c: New file.
17526         * tests/test-pipe-filter-ii2.sh: New file.
17527         * tests/test-pipe-filter-ii2-main.c: New file.
17528         * tests/test-pipe-filter-ii2-child.c: New file.
17529
17530         New module 'pipe-filter-ii'.
17531         * lib/pipe-filter.h: New file.
17532         * lib/pipe-filter-ii.c: New file.
17533         * lib/pipe-filter-aux.h: New file.
17534         * modules/pipe-filter-ii: New file.
17535
17536 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17537
17538         * lib/gc-libgcrypt.c: Change copyright to FSF.
17539         * lib/gc-gnulib.c: Likewise.
17540
17541 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
17542
17543         * lib/gethostname.c: Include limits.h.
17544
17545 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17546             Bruno Haible  <bruno@clisp.org>
17547
17548         Ensure HOST_NAME_MAX as part of the gethostname module.
17549         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
17550         define also HOST_NAME_MAX.
17551         * tests/test-gethostname.c: Include <limits.h>.
17552         (main): Check also HOST_NAME_MAX.
17553         * doc/posix-headers/limits.texi: Document the mingw problem.
17554
17555 2009-08-02  Bruno Haible  <bruno@clisp.org>
17556
17557         * lib/gethostname.c (gethostname): Fix handling of large len argument.
17558         Add comments.
17559
17560 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17561
17562         * lib/gethostname.c: Add Windows wrapper.
17563         * m4/gethostname.m4: Look for gethostname in -lws2_32.
17564         * modules/gethostname: Depend on sys_socket & errno, for also
17565         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
17566         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
17567
17568 2009-07-31  Jim Meyering  <meyering@redhat.com>
17569
17570         getloadavg: fix symbol name in comment
17571         * lib/getloadavg.c: Correct a typo I introduced when adding
17572         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
17573         Matt Kraai spotted the problem.
17574
17575 2009-07-29  Matt Kraai  <mkraai@beckman.com>
17576
17577         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
17578         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
17579         code also if ! defined N_NAME_POINTER.
17580         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
17581         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
17582         but the n_name member is a 12-byte array.
17583
17584 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17585
17586         update-copyright: generalize comment handling
17587         * build-aux/update-copyright: Handle copyright statements
17588         within more comment styles.
17589         Document usage.
17590         Report any file with an external copyright holder or parse failure.
17591
17592 2009-07-29  Jim Meyering  <meyering@redhat.com>
17593
17594         mktime: correct setting of REPLACE_MKTIME
17595         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17596
17597         update-copyright: new module
17598         * modules/update-copyright: New file.
17599         * build-aux/update-copyright: New file.
17600         * MODULES.html.sh (maint+release support): Add update-copyright.
17601
17602 2009-07-27  Bruno Haible  <bruno@clisp.org>
17603
17604         Fix compilation error when <ctime> is used and mktime is replaced.
17605         * lib/time.in.h (mktime): New declaration.
17606         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17607         REPLACE_MKTIME instead of defining mktime in config.h.
17608         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17609         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17610         Reported by Ross McFarland <rwmcfa1@neces.com>.
17611
17612 2009-07-27  Bruno Haible  <bruno@clisp.org>
17613
17614         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17615         Reported by Matt Kraai <mkraai@beckman.com>.
17616
17617 2009-07-25  Jim Meyering  <meyering@redhat.com>
17618
17619         maint.mk: avoid warnings about missing files
17620         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17621         diagnostic when .prev-version does not exist.
17622         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17623         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17624         nonexistent cfg.mk.
17625         Suggestions from Simon Josefsson.
17626
17627 2009-07-25  Bruno Haible  <bruno@clisp.org>
17628
17629         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17630         defined as macros. Needed on QNX 6.4.1.
17631         Reported by Matt Kraai <mkraai@beckman.com>.
17632
17633 2009-07-23  Jim Meyering  <meyering@redhat.com>
17634
17635         maint.mk: invoke "make dist" with a working value of XZ_OPT
17636         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17637
17638 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17639
17640         Make fseeko.c compile on QNX.
17641         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17642
17643 2009-07-22  Peter Simons  <simons@cryp.to>
17644
17645         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17646         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17647         * lib/md4.h: Likewise.
17648         * lib/md5.h: Likewise.
17649         * lib/sha1.h: Likewise.
17650         * lib/sha256.h: Likewise.
17651         * lib/sha512.h: Likewise.
17652
17653         tests-sha1: don't assign literal string to 'char *' variable
17654         * tests/test-sha1.c (main): Declare locals with "const" to match
17655         attributes of the right hand side.
17656
17657 2009-07-21  Eric Blake  <ebb9@byu.net>
17658
17659         dup2: fix more mingw problems
17660         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17661         fd to itself.
17662         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17663         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17664         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17665         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17666         care of mingw bugs.
17667
17668 2009-07-21  Jim Meyering  <meyering@redhat.com>
17669
17670         vc-list-files: avoid failure when /bin/sh is dash
17671         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17672         On some Debian based systems, /bin/sh is a symlink to dash, and running
17673         this command would omit the "/" following each 'tests' prefix:
17674           dash -x build-aux/vc-list-files -C . tests
17675         That is because bash and dash work differently:
17676           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17677           bash ok
17678           dash odd
17679
17680 2009-07-21  Eric Blake  <ebb9@byu.net>
17681
17682         dup2-tests: test previous patch
17683         * modules/dup2-tests: New file.
17684         * tests/test-dup2.c: Likewise.
17685         * tests/test-open.c (main): Avoid unspecified behavior.
17686         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17687         test.
17688
17689         dup2: work around mingw and cygwin 1.5 bug
17690         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17692         * modules/unistd (Makefile.am): Substitute it.
17693         * lib/unistd.in.h (dup2): Declare the replacement.
17694         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17695         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17696         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17697         * modules/execute (Depends-on): Add dup2.
17698         * modules/fseterr (Depends-on): Likewise.
17699         * modules/pipe (Depends-on): Likewise.
17700         * modules/posix_spawn-internal (Depends-on): Likewise.
17701
17702 2009-07-21  Bruno Haible  <bruno@clisp.org>
17703
17704         * modules/.gitattributes: New file.
17705
17706 2009-07-20  Bruno Haible  <bruno@clisp.org>
17707
17708         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17709         (main): Use it.
17710
17711 2009-07-20  Eric Blake  <ebb9@byu.net>
17712
17713         test-pipe: make a bit more robust.
17714         * tests/test-pipe.c (myerr): Allow error messages regardless of
17715         what we do to stderr.
17716         (test_pipe): Rearrange to avoid deadlock.
17717         (child_main): Try a larger read, to ensure we avoided deadlock.
17718         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17719         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17720         if misused.
17721
17722 2009-07-19  Jim Meyering  <meyering@redhat.com>
17723
17724         fts: avoid false-positive cycle-detection
17725         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17726         for each new command line argument.
17727
17728 2009-07-19  Bruno Haible  <bruno@clisp.org>
17729
17730         Fix build error on mingw with the modules sys_select and unistd.
17731         * modules/acl-tests (Depends-on): Add close.
17732         * modules/binary-io-tests (Depends-on): Likewise.
17733         * modules/closein-tests (Depends-on): Likewise.
17734         * modules/flock-tests (Depends-on): Likewise.
17735         * modules/fsync-tests (Depends-on): Likewise.
17736         * modules/lseek-tests (Depends-on): Likewise.
17737         * modules/pipe-tests (Depends-on): Likewise.
17738         * modules/posix_spawn-tests (Depends-on): Likewise.
17739         * modules/posix_spawnp-tests (Depends-on): Likewise.
17740         * modules/stat-time-tests (Depends-on): Likewise.
17741         * modules/yesno-tests (Depends-on): Likewise.
17742
17743 2009-07-19  Bruno Haible  <bruno@clisp.org>
17744
17745         Unify conditionals.
17746         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17747         macros, not at the compiler macros.
17748         * lib/pipe.c: Likewise.
17749         * lib/execute.c: Likewise.
17750         * lib/spawni.c: Likewise.
17751
17752 2009-07-19  Bruno Haible  <bruno@clisp.org>
17753
17754         Fix handling of closed stdin/stdout/stderr on mingw.
17755         * lib/w32spawn.h: Include unistd.h.
17756         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17757         file descriptor with O_NOINHERIT flag.
17758         (fd_safer_noinherit): New function, based on fd-safer.c.
17759         (dup_safer_noinherit): New function, based on dup-safer.c.
17760         (undup_safer_noinherit): New function.
17761         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17762         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17763         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17764         instead of fd_safer.
17765         * tests/test-pipe.c: Include <windows.h>.
17766         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17767
17768         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17769         from main.
17770         (test_pipe): Pass an extra argument for disambiguation.
17771         (main): Invoke parent_main or child_main.
17772
17773         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17774         consistently.
17775
17776 2009-07-18  Eric Blake  <ebb9@byu.net>
17777
17778         test-pipe: fix mingw build
17779         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17780
17781 2009-07-18  Bruno Haible  <bruno@clisp.org>
17782
17783         * modules/pipe-tests (Makefile.am): Fix typo.
17784
17785 2009-07-18  Eric Blake  <ebb9@byu.net>
17786
17787         error: fix mingw build
17788         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17789         Reported by Bruno Haible.
17790
17791         error: avoid undefined use of stdout
17792         * lib/error.c (error, error_at_line): Check that fd 1 is open
17793         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17794         is handling faults and the close_stdout module wants to report the
17795         detection of closed stdout as an error.
17796
17797 2009-07-17  Eric Blake  <ebb9@byu.net>
17798
17799         pipe: be robust in face of closed fds
17800         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17801         should cause child to misbehave.
17802         * modules/pipe-tests: New module.
17803         * tests/test-pipe.c: New file.
17804         * tests/test-pipe.sh: New file.
17805         Reported by Akim Demaille.
17806
17807 2009-07-14  Bruno Haible  <bruno@clisp.org>
17808
17809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17810         Reported by anonymous kc.
17811
17812 2009-07-07  Jim Meyering  <meyering@redhat.com>
17813
17814         maint.mk: don't look for translatable strings in *.m4 or *.mk
17815         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17816         when searching for translatable strings.
17817
17818 2009-07-05  Jim Meyering  <meyering@redhat.com>
17819
17820         remove superfluous parentheses in STREQ definition
17821         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17822         * lib/getugroups.c (STREQ): Likewise.
17823         * lib/fnmatch.c (STREQ): Likewise.
17824         Spotted by Bruno Haible.
17825
17826 2009-07-04  Jim Meyering  <meyering@redhat.com>
17827
17828         argv-iter: new module
17829         * MODULES.html.sh: Add argv-iter.
17830         * lib/argv-iter.c, lib/argv-iter.h: New files.
17831         * modules/argv-iter: New file.
17832         * modules/argv-iter-tests: New file.
17833         * tests/test-argv-iter.c: Test it.
17834
17835 2009-07-04  Bruno Haible  <bruno@clisp.org>
17836
17837         Fix assertion.
17838         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
17839         contains more exact copies of a given entry than file2, leave the extra
17840         copies unpaired rather than aborting.
17841         Reported by Eric Blake.
17842
17843 2009-07-02  Bruno Haible  <bruno@clisp.org>
17844
17845         Speedup git-merge-changelog for git cherry-pick.
17846         * lib/git-merge-changelog.c (struct entries_mapping): New type.
17847         (entries_mapping_get): New function, extracted from compute_mapping.
17848         (entries_mapping_reverse_get): New function.
17849         (compute_mapping): Add a 'full' argument. Return the result in a
17850         'struct entries_mapping'.
17851         (main): Update. Access the mappings through entries_mapping_get.
17852         Reported by Eric Blake.
17853
17854 2009-07-02  Bruno Haible  <bruno@clisp.org>
17855
17856         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
17857         best_i.
17858
17859 2009-07-02  Bruno Haible  <bruno@clisp.org>
17860
17861         Speed up approximate search for matching ChangeLog entries.
17862         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
17863         argument. Call fstrcmp_bounded instead of fstrcmp.
17864         (compute_mapping, try_split_merged_entry, main): Update callers.
17865
17866 2009-07-02  Bruno Haible  <bruno@clisp.org>
17867
17868         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
17869
17870 2009-06-30  Bruno Haible  <bruno@clisp.org>
17871
17872         Reduce the number of uc_is_cased calls.
17873         * lib/unicase.h (casing_suffix_context_t): Add
17874         'first_char_except_ignorable' field.
17875         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
17876         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
17877         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
17878         Update initializer.
17879         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
17880         case-ignorable characters.
17881         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
17882         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
17883         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
17884         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
17885         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
17886
17887 2009-06-30  Bruno Haible  <bruno@clisp.org>
17888
17889         Tests for module 'unicase/ignorable'.
17890         * modules/unicase/ignorable-tests: New file.
17891         * tests/unicase/test-ignorable.c: New file, generated by
17892         gen-uni-tables.
17893
17894         Tests for module 'unicase/cased'.
17895         * modules/unicase/cased-tests: New file.
17896         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
17897         * tests/unicase/test-predicate-part1.h: New file, derived from
17898         tests/unictype/test-predicate-part1.h.
17899         * tests/unicase/test-predicate-part2.h: New file, same as
17900         tests/unictype/test-predicate-part2.h.
17901
17902         Fix evaluation of "Before C" condition of FINAL_SIGMA.
17903         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
17904         (output_casing_properties): New function.
17905         (main): Call it.
17906         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
17907         * lib/unicase/cased.c: Include unictype/bitmap.h.
17908         (uc_is_cased): Define through a bitmap lookup.
17909         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
17910         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
17911         (uc_is_case_ignorable): Define through a bitmap lookup.
17912         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
17913         lib/unictype/bitmap.h.
17914         (Depends-on): Add inline. Clean up.
17915         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
17916         lib/unictype/bitmap.h.
17917         (Depends-on): Add inline. Clean up.
17918         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
17919         recognition.
17920         * tests/unicase/test-u16-tolower.c (main): Likewise.
17921         * tests/unicase/test-u32-tolower.c (main): Likewise.
17922
17923 2009-06-30  Bruno Haible  <bruno@clisp.org>
17924
17925         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
17926         * lib/unicase/u16-casemap.c: Likewise.
17927         * lib/unicase/u32-casemap.c: Likewise.
17928
17929 2009-06-29  Bruno Haible  <bruno@clisp.org>
17930
17931         Define u32_casefold as a wrapper around u32_ct_casefold.
17932         * lib/unicase/u32-casefold.c: Update.
17933         * modules/unicase/u32-casefold (Depends-on): Add
17934         unicase/u32-ct-casefold, unicase/empty-prefix-context,
17935         unicase/empty-suffix-context. Clean up.
17936
17937         Define u16_casefold as a wrapper around u16_ct_casefold.
17938         * lib/unicase/u16-casefold.c: Update.
17939         * modules/unicase/u16-casefold (Depends-on): Add
17940         unicase/u16-ct-casefold, unicase/empty-prefix-context,
17941         unicase/empty-suffix-context. Clean up.
17942
17943         Define u8_casefold as a wrapper around u8_ct_casefold.
17944         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
17945         * lib/unicase/u8-casefold.c: Update.
17946         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
17947         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17948
17949         Define u32_totitle as a wrapper around u32_ct_totitle.
17950         * lib/unicase/u32-totitle.c: Update.
17951         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
17952         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17953
17954         Define u16_totitle as a wrapper around u16_ct_totitle.
17955         * lib/unicase/u16-totitle.c: Update.
17956         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
17957         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17958
17959         Define u8_totitle as a wrapper around u8_ct_totitle.
17960         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
17961         functions.
17962         (FUNC): Delegate to U_CT_TOTITLE.
17963         * lib/unicase/u8-totitle.c: Update.
17964         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
17965         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17966
17967         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
17968         invocation.
17969         * modules/unicase/u32-tolower (Depends-on): Add
17970         unicase/empty-prefix-context, unicase/empty-suffix-context.
17971
17972         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
17973         invocation.
17974         * modules/unicase/u16-tolower (Depends-on): Add
17975         unicase/empty-prefix-context, unicase/empty-suffix-context.
17976
17977         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
17978         * modules/unicase/u8-tolower (Depends-on): Add
17979         unicase/empty-prefix-context, unicase/empty-suffix-context.
17980
17981         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
17982         invocation.
17983         * modules/unicase/u32-toupper (Depends-on): Add
17984         unicase/empty-prefix-context, unicase/empty-suffix-context.
17985
17986         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
17987         invocation.
17988         * modules/unicase/u16-toupper (Depends-on): Add
17989         unicase/empty-prefix-context, unicase/empty-suffix-context.
17990
17991         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
17992         * modules/unicase/u8-toupper (Depends-on): Add
17993         unicase/empty-prefix-context, unicase/empty-suffix-context.
17994
17995         New module 'unicase/u32-ct-casefold'.
17996         * lib/unicase/u32-ct-casefold.c: New file.
17997         * modules/unicase/u32-ct-casefold: New file.
17998
17999         New module 'unicase/u16-ct-casefold'.
18000         * lib/unicase/u16-ct-casefold.c: New file.
18001         * modules/unicase/u16-ct-casefold: New file.
18002
18003         New module 'unicase/u8-ct-casefold'.
18004         * lib/unicase/u8-ct-casefold.c: New file.
18005         * lib/unicase/u-ct-casefold.h: New file, derived from
18006         lib/unicase/u-casefold.h.
18007         * modules/unicase/u8-ct-casefold: New file.
18008
18009         New module 'unicase/u32-ct-totitle'.
18010         * lib/unicase/u32-ct-totitle.c: New file.
18011         * modules/unicase/u32-ct-totitle: New file.
18012
18013         New module 'unicase/u16-ct-totitle'.
18014         * lib/unicase/u16-ct-totitle.c: New file.
18015         * modules/unicase/u16-ct-totitle: New file.
18016
18017         New module 'unicase/u8-ct-totitle'.
18018         * lib/unicase/u8-ct-totitle.c: New file.
18019         * lib/unicase/u-ct-totitle.h: New file, derived from
18020         lib/unicase/u-totitle.h.
18021         * modules/unicase/u8-ct-totitle: New file.
18022
18023         New module 'unicase/u32-ct-tolower'.
18024         * lib/unicase/u32-ct-tolower.c: New file.
18025         * modules/unicase/u32-ct-tolower: New file.
18026
18027         New module 'unicase/u16-ct-tolower'.
18028         * lib/unicase/u16-ct-tolower.c: New file.
18029         * modules/unicase/u16-ct-tolower: New file.
18030
18031         New module 'unicase/u8-ct-tolower'.
18032         * lib/unicase/u8-ct-tolower.c: New file.
18033         * modules/unicase/u8-ct-tolower: New file.
18034
18035         New module 'unicase/u32-ct-toupper'.
18036         * lib/unicase/u32-ct-toupper.c: New file.
18037         * modules/unicase/u32-ct-toupper: New file.
18038
18039         New module 'unicase/u16-ct-toupper'.
18040         * lib/unicase/u16-ct-toupper.c: New file.
18041         * modules/unicase/u16-ct-toupper: New file.
18042
18043         New module 'unicase/u8-ct-toupper'.
18044         * lib/unicase/u8-ct-toupper.c: New file.
18045         * modules/unicase/u8-ct-toupper: New file.
18046
18047         Add context arguments to u*_casemap functions.
18048         * lib/unicase/unicasemap.h: Include unicase.h.
18049         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
18050         suffix_context arguments.
18051         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
18052         functions.
18053         (FUNC): Add prefix_context and suffix_context arguments. Use
18054         uc_is_cased and uc_is_case_ignorable.
18055         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
18056         * lib/unicase/u16-casemap.c: Likewise.
18057         * lib/unicase/u32-casemap.c: Likewise.
18058         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
18059         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18060         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
18061         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18062         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
18063         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18064
18065         New module 'unicase/u32-suffix-context'.
18066         * lib/unicase/u32-suffix-context.c: New file.
18067         * modules/unicase/u32-suffix-context: New file.
18068
18069         New module 'unicase/u16-suffix-context'.
18070         * lib/unicase/u16-suffix-context.c: New file.
18071         * modules/unicase/u16-suffix-context: New file.
18072
18073         New module 'unicase/u8-suffix-context'.
18074         * lib/unicase/u8-suffix-context.c: New file.
18075         * lib/unicase/u-suffix-context.h: New file.
18076         * modules/unicase/u8-suffix-context: New file.
18077
18078         New module 'unicase/empty-suffix-context'.
18079         * lib/unicase/empty-suffix-context.c: New file.
18080         * modules/unicase/empty-suffix-context: New file.
18081
18082         New module 'unicase/u32-prefix-context'.
18083         * lib/unicase/u32-prefix-context.c: New file.
18084         * modules/unicase/u32-prefix-context: New file.
18085
18086         New module 'unicase/u16-prefix-context'.
18087         * lib/unicase/u16-prefix-context.c: New file.
18088         * modules/unicase/u16-prefix-context: New file.
18089
18090         New module 'unicase/u8-prefix-context'.
18091         * lib/unicase/u8-prefix-context.c: New file.
18092         * lib/unicase/u-prefix-context.h: New file.
18093         * lib/unicase/context.h: New file.
18094         * modules/unicase/u8-prefix-context: New file.
18095
18096         New module 'unicase/empty-prefix-context'.
18097         * lib/unicase/empty-prefix-context.c: New file.
18098         * modules/unicase/empty-prefix-context: New file.
18099
18100         New module 'unicase/ignorable'.
18101         * lib/unicase/ignorable.c: New file.
18102         * modules/unicase/ignorable: New file.
18103
18104         New module 'unicase/cased'.
18105         * lib/unicase/caseprop.h: New file.
18106         * lib/unicase/cased.c: New file.
18107         * modules/unicase/cased: New file.
18108
18109         New functions for case mapping of substrings.
18110         * lib/unicase.h (casing_prefix_context_t): New type.
18111         (unicase_empty_prefix_context): New variable.
18112         (u8_casing_prefix_context, u16_casing_prefix_context,
18113         u32_casing_prefix_context, u8_casing_prefixes_context,
18114         u16_casing_prefixes_context, u32_casing_prefixes_context): New
18115         declarations.
18116         (casing_suffix_context_t): New type.
18117         (unicase_empty_suffix_context): New variable.
18118         (u8_casing_suffix_context, u16_casing_suffix_context,
18119         u32_casing_suffix_context, u8_casing_suffixes_context,
18120         u16_casing_suffixes_context, u32_casing_suffixes_context,
18121         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
18122         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
18123         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
18124         declarations.
18125
18126 2009-06-28  Jim Meyering  <meyering@redhat.com>
18127
18128         boostrap: indent only with spaces
18129         * build-aux/bootstrap: Indent only with spaces, never TABs.
18130
18131         bootstrap: split long lines
18132         * build-aux/bootstrap: Keep line length < 80.
18133
18134         bootstrap: sync from coreutils
18135         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
18136         just as autoreconf does.  Verify a list of prerequisite
18137         package-name,version-number pairs if defined in bootstrap.conf.
18138         Refer to README-prereq, if prerequisites are not satisfied.
18139
18140 2009-06-27  Eric Blake  <ebb9@byu.net>
18141
18142         tests: add test for bogus NULL definition
18143         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
18144         * tests/test-stdlib.c: Likewise.
18145         * tests/test-string.c: Likewise.
18146         * tests/test-locale.c: Likewise.
18147         * tests/test-unistd.c: Likewise.
18148         * modules/stdio-tests (Depends-on): Add verify.
18149         * modules/stdlib-tests (Depends-on): Likewise.
18150         * modules/string-tests (Depends-on): Likewise.
18151         * modules/locale-tests (Depends-on): Likewise.
18152         * modules/unistd-tests (Depends-on): Likewise.
18153
18154 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
18155
18156         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
18157         self-explaining comment.
18158         * m4/selinux-selinux-h: Update serial.
18159         (gl_LIBSELINUX): New macro, adding a warning for missing development
18160         packages to code extracted from...
18161         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
18162         Add warning for missing development packages here, too.
18163
18164 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
18165
18166         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
18167
18168 2009-06-25  Eric Blake  <ebb9@byu.net>
18169
18170         version-etc: fix regression
18171         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
18172         gcc.
18173         (version_etc): Use it, to catch bugs with trailing NULL.
18174         * lib/version-etc.c (version_etc_arn): Delete unused argument.
18175         (version_etc_va): Fix logic bug.
18176         * modules/version-etc-tests: Add test.
18177         * tests/test-version-etc.c: New file.
18178         * tests/test-version-etc.sh: Likewise.
18179
18180 2009-06-25  Sam Steingold  <sds@gnu.org>
18181
18182         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
18183         mbtowc declaration.
18184
18185 2009-06-25  Eric Blake  <ebb9@byu.net>
18186
18187         fpurge: migrate into <stdio.h>
18188         * lib/fpurge.h: Delete...
18189         * lib/stdio.in.h (fpurge): ...and declare here, instead.
18190         * lib/fpurge.c (fpurge): Change declaring header.
18191         * modules/fpurge (Files): Drop deleted file.
18192         (Depends-on): Add stdio.
18193         (configure.ac): Set witness.
18194         * modules/stdio (Makefile.am): Support fpurge macros.
18195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18196         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
18197         * lib/fflush.c: Update client.
18198         * tests/test-fpurge.c: Likewise.
18199         * NEWS: Mention the change.
18200
18201 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18202
18203         * lib/argp-version-etc.c (program_authors): Add const
18204         qualifier.
18205         * lib/version-etc.c: Fix typos in the comments.
18206         * modules/argp-version-etc: Depends on version-etc.
18207
18208 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18209
18210         argp-version-etc: new module.
18211
18212         * lib/argp-version-etc.c: New file.
18213         * lib/argp-version-etc.h: New file.
18214         * modules/argp-version-etc: New file.
18215         * modules/argp-version-etc-tests: New file.
18216         * tests/test-argp-version-etc.c: New test.
18217         * tests/test-argp-version-etc-1.sh: New test.
18218
18219 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18220
18221         Provide additional interfaces and documentation for version-etc
18222         module.
18223
18224         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
18225         interfaces.
18226         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
18227         prototypes.
18228
18229 2009-06-24  Bruno Haible  <bruno@clisp.org>
18230
18231         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
18232         HAVE_LIB${NAME} macro.
18233         Reported by Sam Steingold <sds@gnu.org>.
18234
18235 2009-06-23  Simon Josefsson  <simon@josefsson.org>
18236
18237         * modules/hash-tests (test_hash_LDADD): Link to libintl when
18238         needed.
18239
18240 2009-06-21  Bruno Haible  <bruno@clisp.org>
18241
18242         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
18243         work.
18244         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
18245         together with LIB${NAME}, LTLIB${NAME}.
18246         Reported by Sam Steingold <sds@gnu.org>.
18247
18248 2009-06-20  Jim Meyering  <meyering@redhat.com>
18249
18250         tests: make sc_require_test_exit_idiom more generic
18251         * top/maint.mk (Exit_witness_file): New overridable variable.
18252         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
18253         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
18254
18255 2009-06-19  Jim Meyering  <meyering@redhat.com>
18256
18257         hash: reverse order of src/dst parameters in an internal interface
18258         * lib/hash.c (transfer_entries): Reverse order of parameters to
18259         put DST before SRC.  Adjust callers.
18260
18261         tests: test-hash: avoid wholesale duplication
18262         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
18263         Instead, use a loop and add a single conditional.
18264
18265         tests: test-hash: allow seed selection via a command line argument
18266         * tests/test-hash.c (get_seed): New function.
18267         (main): Use it.
18268
18269 2009-06-19  Eric Blake  <ebb9@byu.net>
18270
18271         hash: avoid memory leak on allocation failure
18272         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
18273         failure.  Factor repeated algorithm...
18274         (transfer_entries): ...into new helper routine.
18275         (hash_delete): React to hash_rehash return value.
18276
18277         hash: reduce memory pressure in hash_rehash no-op case
18278         * lib/hash.c (next_prime): Avoid overflow.
18279         (hash_initialize): Factor bucket size computation...
18280         (compute_bucket_size): ...into new helper function.
18281         (hash_rehash): Use new function and open coding to reduce memory
18282         pressure, and avoid a memory leak in USE_OBSTACK code.
18283         Reported by Jim Meyering.
18284
18285 2009-06-18  Eric Blake  <ebb9@byu.net>
18286
18287         hash: make rotation more obvious
18288         * modules/hash (Depends-on): Add bitrotate and stdint.
18289         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
18290         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
18291         (SIZE_MAX): Rely on headers for definition.
18292         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
18293         (raw_hasher): Use rotr_sz.
18294         Suggested by Jim Meyering.
18295
18296         hash: fix memory leak in last patch
18297         * lib/hash.c (hash_rehash): Avoid memory leak.
18298
18299         hash: avoid no-op rehashing
18300         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
18301
18302         hash: provide default callback functions
18303         * lib/hash.c (raw_hasher, raw_comparator): New functions.
18304         (hash_initialize): Use them as defaults.
18305         * tests/test-hash.c (main): Test this.
18306
18307         hash: minor optimization
18308         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
18309         when possible.
18310         (hash_initialize): Document this promise.
18311         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
18312         * tests/test-hash.c (hash_compare_strings): Test this.
18313
18314 2009-06-18  Bruno Haible  <bruno@clisp.org>
18315
18316         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
18317         going to be replaced anyway.
18318
18319 2009-06-18  Bruno Haible  <bruno@clisp.org>
18320
18321         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
18322         in one place.
18323         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
18324         be replaced anyway.
18325
18326 2009-06-18  Eric Blake  <ebb9@byu.net>
18327
18328         hash: check for resize before insertion
18329         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
18330         threshold before insertion, so that a pathological hash_rehash
18331         that fills every bucket can still trigger another rehash.
18332
18333 2009-06-18  Jim Meyering  <meyering@redhat.com>
18334
18335         hash-tests: add a loop around the small tests
18336         * tests/test-hash.c (main): Repeat small tests with selected
18337         small initial table sizes.
18338
18339 2009-06-17  Eric Blake  <ebb9@byu.net>
18340
18341         hash: minor cleanups
18342         * lib/hash.h (hash_entry): Make opaque, by moving...
18343         * lib/hash.c (hash_entry): ...here.
18344         (hash_insert): Clarify restrictions on what can be inserted.
18345         (hash_get_next): Clarify when it is safe to remove an element
18346         during traversal.
18347         (check_tuning): Skip verification when tuning is known safe.
18348         (hash_initialize): Clarify restrictions on tuning.
18349
18350 2009-06-17  Jim Meyering  <jim@meyering.net>
18351         and Eric Blake  <ebb9@byu.net>
18352
18353         hash-tests: new module
18354         * modules/hash-tests: New file.
18355         * tests/test-hash.c: New file.
18356
18357 2009-06-17  Eric Blake  <ebb9@byu.net>
18358
18359         strstr-simple: document new module
18360         * MODULES.html.sh: Document new module.
18361
18362         strstr, strcasestr: replace on platforms with broken memchr
18363         * modules/strstr: Split into...
18364         * modules/strstr-simple: ...new module that does not care about
18365         performance, but does care about glibc bug.
18366         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
18367         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
18368         if platform memchr is broken, per Debian bug 521737.
18369         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
18370         memchr.
18371         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
18372         * doc/posix-functions/strstr.texi (strstr): Document the fix.
18373         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18374         * modules/mountlist (Depends-on): Add strstr-simple.
18375         * modules/gen-uni-tables (Depends-on): Likewise.
18376         * modules/argz (Depends-on): Add strstr.
18377
18378 2009-06-17  Bruno Haible  <bruno@clisp.org>
18379
18380         * modules/posix_spawn-internal (Depends-on): Add errno.
18381
18382 2009-06-17  Bruno Haible  <bruno@clisp.org>
18383
18384         Define missing ESTALE on Interix 3.5.
18385         * lib/errno.in.h (ESTALE): Assign a value if missing.
18386         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
18387         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
18388         missing.
18389         * doc/posix-headers/errno.texi: Mention the Interix bug.
18390         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
18391
18392 2009-06-15  Eric Blake  <ebb9@byu.net>
18393
18394         memchr, memchr2: add valgrind exception
18395         * lib/memchr.valgrind: New file.
18396         * lib/memchr2.valgrind: New file.
18397         * modules/memchr (Files): Distribute valgrind file.
18398         * modules/memchr2 (Files): Likewise.
18399
18400         docs: memchr is no longer obsolete
18401         * MODULES.html.sh: Move memchr from obsolete to string.h section.
18402         * lib/string.in.h (memchr): Simplify logic.
18403
18404 2009-06-14  Jim Meyering  <meyering@redhat.com>
18405
18406         link-follow: fix the "checking..." message to not mention trailing slash
18407         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
18408         never considered trailing slashes.
18409
18410 2009-06-14  Bruno Haible  <bruno@clisp.org>
18411
18412         * m4/memchr.m4: Mention also the bug on IA-64.
18413         * doc/posix-functions/memchr.texi: Likewise.
18414
18415 2009-06-12  Eric Blake  <ebb9@byu.net>
18416
18417         memchr: detect broken x86_64 and alpha implementations
18418         * modules/memchr-tests (Depends-on): Move mmap detection...
18419         * modules/memchr (Depends-on): ...here.
18420         (configure.ac): Set indicator.
18421         * lib/string.in.h (memchr): Declare replacement.
18422         * modules/string (Makefile.am): Trigger replacement.
18423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18424         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
18425         bugs.
18426         * doc/posix-functions/memchr.texi (memchr): Document the bug.
18427         * modules/getpagesize (License): Relax license.
18428
18429 2009-06-11  Bruno Haible  <bruno@clisp.org>
18430
18431         * lib/idpriv.h: Add more references.
18432
18433 2009-06-08  Bruno Haible  <bruno@clisp.org>
18434
18435         Tests for module 'idpriv-droptemp'.
18436         * modules/idpriv-droptemp-tests: New file.
18437         * tests/test-idpriv-droptemp.sh: New file.
18438         * tests/test-idpriv-droptemp.su.sh: New file.
18439         * tests/test-idpriv-droptemp.c: New file.
18440
18441         New module 'idpriv-droptemp'.
18442         * lib/idpriv-droptemp.c: New file.
18443         * modules/idpriv-droptemp: New file.
18444
18445 2009-06-08  Bruno Haible  <bruno@clisp.org>
18446
18447         Tests for module 'idpriv-drop'.
18448         * modules/idpriv-drop-tests: New file.
18449         * tests/test-idpriv-drop.sh: New file.
18450         * tests/test-idpriv-drop.su.sh: New file.
18451         * tests/test-idpriv-drop.c: New file.
18452
18453         New module 'idpriv-drop'.
18454         * lib/idpriv.h: New file.
18455         * lib-idpriv-drop.c: New file.
18456         * m4/idpriv.m4: New file.
18457         * modules/idpriv-drop: New file.
18458
18459 2009-06-08  Bruno Haible  <bruno@clisp.org>
18460
18461         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
18462         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18463         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18464         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18465         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18466         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18467         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18468
18469 2009-06-08  Eric Blake  <ebb9@byu.net>
18470
18471         test-strstr: use memory fence, when possible
18472         * tests/test-strstr.c (main): Use memory fence, in order to be
18473         more likely to trigger Debian bug 521737.
18474         * modules/strstr-tests (Files): Pull in additional files.
18475
18476         memchr: no longer obsolete, for wider field testing
18477         * modules/memchr (Status, Notice): Delete, this module is no
18478         longer obsolete.
18479         * modules/vasnprintf (Depends-on): Add memchr.
18480
18481 2009-06-07  Jim Meyering  <meyering@redhat.com>
18482
18483         hash: declare some functions with the warn_unused_result attribute
18484         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
18485
18486 2009-06-07  Bruno Haible  <bruno@clisp.org>
18487
18488         * tests/test-alignof.c: Don't test int64_t if it does not exist.
18489         Reported by Eric Blake.
18490
18491 2009-06-06  Eric Blake  <ebb9@byu.net>
18492
18493         test-alignof: fix typo with long double
18494         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
18495         compiler error.
18496
18497 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
18498
18499         Escape non-texinfo { and }s.
18500         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
18501         markup error.
18502
18503 2009-06-04  Jim Meyering  <meyering@redhat.com>
18504
18505         gitlog-to-changelog: don't infloop on an empty commit log
18506         * build-aux/gitlog-to-changelog: Warn about an empty log message.
18507         Reported by Boris Petersen <transacid@centerim.org>.
18508
18509 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
18510
18511         version-etc: extend for packagers
18512         Add three new configure options, intended for packagers:
18513           --with-packager="packager name"
18514           --with-packager-version="packager-specific version"
18515           --with-packager-bug-reports="packager bug reporting"
18516         An example with coreutils:
18517           $ ./configure \
18518             --with-packager=Gentoo \
18519             --with-packager-bug-report=http://bugs.gentoo.org/ \
18520             --with-packager-version="patchset 1.6"
18521           $ ./src/ls --version | head -n2
18522           ls (GNU coreutils) 7.1-dirty
18523           Packaged by Gentoo (patchset 1.6)
18524         Note that the bug reporting info via --help doesn't show up because
18525         coreutils uses its own custom emit_bug_reporting_address() implementation
18526         in src/system.h.  If it didn't, it'd look like:
18527           $ ./src/ls --help | tail -n4
18528           Report bugs to <bug-coreutils@gnu.org>.
18529           Report Gentoo bugs to <http://bugs.gentoo.org/>.
18530           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
18531           General help using GNU software: <http://www.gnu.org/gethelp/>.
18532         * lib/version-etc.c: Print new information, if provided.
18533         * m4/version-etc.m4: New file.
18534         * modules/version-etc (Files): Add m4/version-etc.m4.
18535         (configure.ac): Add gl_VERSION_ETC.
18536
18537 2009-05-31  Bruno Haible  <bruno@clisp.org>
18538
18539         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
18540         and 'int64_t'.
18541         * modules/alignof-tests (Dependencies): Add stdint.
18542         Reported by Eric Blake.
18543
18544 2009-05-31  Bruno Haible  <bruno@clisp.org>
18545
18546         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
18547         restriction due to compiler bugs.
18548         Reported by Eric Blake.
18549
18550 2009-05-31  Simon Josefsson  <simon@josefsson.org>
18551             Bruno Haible  <bruno@clisp.org>
18552
18553         Fix test-alignof failure.
18554         * lib/alignof.h (alignof_slot): New macro.
18555         (alignof_type): New macro, with the same semantics as the previous
18556         'alignof'.
18557         (alignof): Alias to alignof_slot.
18558         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
18559         check that the results are usable as constant expressions.
18560
18561 2009-05-31  Bruno Haible  <bruno@clisp.org>
18562
18563         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
18564         * tests/test-memchr.c (main): Check that memchr does not read past the
18565         first occurrence of the byte.
18566         * tests/test-strstr.c (main): Update comment.
18567         Suggested by Eric Blake.
18568
18569 2009-05-30  Bruno Haible  <bruno@clisp.org>
18570
18571         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
18572         detail how to use dumpbin.
18573         Reported by David Byron <dbyron@dbyron.com>.
18574
18575 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18576
18577         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
18578
18579 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18580
18581         * m4/manywarnings.m4: Add GCC 4.4 warnings.
18582
18583 2009-05-28  Bruno Haible  <bruno@clisp.org>
18584
18585         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18586         build-aux/ files.
18587
18588 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18589
18590         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18591
18592 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18593
18594         * gnulib-tool (sed_transform_main_lib_file)
18595         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18596         regexps.
18597
18598 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18599
18600         * tests/test-strstr.c: Add another self-test.
18601         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18602         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18603
18604 2009-05-23  Bruno Haible  <bruno@clisp.org>
18605
18606         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18607         change.
18608
18609 2009-05-21  Bruno Haible  <bruno@clisp.org>
18610
18611         Simplify use of mode_t varargs.
18612         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18613         uses 'mode_t' or 'int'.
18614         * lib/openat.c (openat): Likewise.
18615         * lib/open-safer.c (open_safer): Likewise.
18616         * m4/mode_t.m4: New file.
18617         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18618         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18619         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18620         * modules/open (Files): Add m4/mode_t.m4.
18621         * modules/openat (Files): Likewise.
18622         * modules/fcntl-safer (Files): Likewise.
18623         Suggested by Eric Blake.
18624
18625 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18626
18627         * doc/glibc-functions/fallocate.texi: New file.
18628         * doc/gnulib.texi: Include it.
18629
18630 2009-05-21  Eric Blake  <ebb9@byu.net>
18631             Bruno Haible  <bruno@clisp.org>
18632
18633         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18634         invocations.
18635         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18636
18637 2009-05-21  Eric Blake  <ebb9@byu.net>
18638             Bruno Haible  <bruno@clisp.org>
18639
18640         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18641         include_next. Fix of 2008-11-20 commit.
18642         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18643         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18644         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18645         NEXT_MATH_H.
18646         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18647         instead of NEXT_MATH_H.
18648
18649 2009-05-21  Bruno Haible  <bruno@clisp.org>
18650
18651         Avoid redefinition warnings for SIZE_MAX.
18652         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18653         Reported by Simon Josefsson.
18654
18655 2009-05-21  Bruno Haible  <bruno@clisp.org>
18656
18657         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18658         AC_CACHE_VAL.
18659
18660 2009-05-20  Bruno Haible  <bruno@clisp.org>
18661
18662         Make zeroptr.h work on mingw.
18663         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18664         mprotect.
18665         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18666         * modules/memchr2-tests (configure.ac): Likewise.
18667         * modules/memcmp-tests (configure.ac): Likewise.
18668         * modules/memmem-tests (configure.ac): Likewise.
18669         * modules/memrchr-tests (configure.ac): Likewise.
18670         Reported by Simon Josefsson.
18671
18672 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18673
18674         * tests/test-glob.c: Include string.h for strcmp prototype.
18675
18676 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18677
18678         * modules/getdelim (Depends-on): Add explicit stdint, although it
18679         was implicitly already pulled in via realloc-posix.
18680         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18681
18682 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18683
18684         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18685         G. Christensen" <tgc@jupiterrise.com>.
18686         * m4/sys_socket_h.m4: Check for sa_family_t.
18687         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18688         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18689         * tests/test-sys_socket.c: Check that sa_family_t works.
18690
18691 2009-05-18  Eric Blake  <ebb9@byu.net>
18692
18693         maint.mk: allow gnulib_dir in VPATH build
18694         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18695
18696 2009-05-15  Jim Meyering  <meyering@redhat.com>
18697
18698         maint.mk: Give gnulib_dir a default definition.
18699         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18700         Thus, most packages no longer need to specify this variable in cfg.mk
18701
18702 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18703
18704         rename.m4: fix typos that would make non-mingw cross-configure fail
18705         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18706
18707 2009-05-13  Eric Blake  <ebb9@byu.net>
18708
18709         mmap-anon: avoid out-of-order autoconf expansion
18710         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18711         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18712         * modules/memchr-tests (Depends-on): Add extensions.
18713         * modules/memchr2-tests (Depends-on): Add extensions.
18714         * modules/memcmp-tests (Depends-on): Add extensions.
18715         * modules/memmem-tests (Depends-on): Add extensions.
18716         * modules/memrchr-tests (Depends-on): Add extensions.
18717
18718 2009-05-13  Bruno Haible  <bruno@clisp.org>
18719
18720         Make some tests ISO C 99 compliant.
18721         * tests/zerosize-ptr.h: New file.
18722         * tests/test-memchr.c: Include zerosize-ptr.h.
18723         (main): Use a zero-size object pointer instead of NULL.
18724         * tests/test-memchr2.c: Include zerosize-ptr.h.
18725         (main): Use a zero-size object pointer instead of NULL.
18726         * tests/test-memcmp.c: Include zerosize-ptr.h.
18727         (main): Use a zero-size object pointer instead of NULL.
18728         * tests/test-memmem.c: Include zerosize-ptr.h.
18729         (main): Use a zero-size object pointer instead of NULL.
18730         * tests/test-memrchr.c: Include zerosize-ptr.h.
18731         (main): Use a zero-size object pointer instead of NULL.
18732         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
18733         m4/mmap-anon.m4.
18734         (Depends-on): Add getpagesize.
18735         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18736         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
18737         m4/mmap-anon.m4.
18738         (Depends-on): Add getpagesize.
18739         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18740         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
18741         m4/mmap-anon.m4.
18742         (Depends-on): Add getpagesize.
18743         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18744         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
18745         m4/mmap-anon.m4.
18746         (Depends-on): Add getpagesize.
18747         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18748         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18749         m4/mmap-anon.m4.
18750         (Depends-on): Add getpagesize.
18751         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18752
18753 2009-05-12  Bruno Haible  <bruno@clisp.org>
18754
18755         Tests for module 'alignof'.
18756         * modules/alignof-tests: New file.
18757         * tests/test-alignof.c: New file.
18758
18759 2009-05-12  Bruno Haible  <bruno@clisp.org>
18760
18761         Fix alignof macro.
18762         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18763         vendor compilers that are always correct.
18764
18765 2009-05-12  Bruno Haible  <bruno@clisp.org>
18766
18767         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18768         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18769         not whether its fully works.
18770
18771 2009-05-12  Bruno Haible  <bruno@clisp.org>
18772
18773         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18774
18775 2009-05-12  Jim Meyering  <meyering@redhat.com>
18776
18777         * top/maint.mk: Adjust backslash alignment.
18778
18779 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18780
18781         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18782
18783 2009-05-11  Eric Blake  <ebb9@byu.net>
18784
18785         argp: avoid undefined behavior
18786         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18787         macros.
18788
18789 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18790
18791         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18792         user.name to prevent git commit from complaining.
18793
18794 2009-05-10  Bruno Haible  <bruno@clisp.org>
18795
18796         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18797         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18798         it rewrites every file name only once.
18799         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18800
18801 2009-05-08  Bruno Haible  <bruno@clisp.org>
18802
18803         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18804         instead of 'max'.
18805
18806 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18807
18808         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18809         sockaddr_storage test.
18810
18811 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18812
18813         * modules/sys_socket (Makefile.am): Substitute
18814         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18815         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18816         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18817         * tests/test-sys_socket.c: Check sockaddr_storage.
18818
18819 2009-05-08  Bruno Haible  <bruno@clisp.org>
18820
18821         New module 'alignof'.
18822         * lib/alignof.h: New file.
18823         * modules/alignof: New file.
18824
18825 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18826             Bruno Haible  <bruno@clisp.org>
18827
18828         Fix test-file-has-acl on FreeBSD.
18829         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
18830         mask is implicitly added.
18831         * tests/test-file-has-acl.c: Include <signal.h>.
18832         (main): Terminate the test after 5 seconds.
18833         * modules/acl-tests (configure.ac): Check for alarm function.
18834
18835 2009-05-04  Bruno Haible  <bruno@clisp.org>
18836
18837         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
18838         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
18839         * modules/errno (configure.ac): Drop AC_REQUIRE.
18840         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
18841         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
18842
18843 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18844
18845         * modules/glob-tests: New module.
18846         * tests/test-glob.c: Add.
18847
18848 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18849
18850         * modules/fnmatch-tests: New module.
18851         * tests/test-fnmatch.c: Add.
18852
18853 2009-05-04  Eric Blake  <ebb9@byu.net>
18854
18855         maint: make the new no-submodule-changes rule VPATH-safe
18856         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
18857
18858 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18859             Bruno Haible  <bruno@clisp.org>
18860
18861         acl: Fix infinite loop on FreeBSD.
18862         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
18863         of return value from acl_get_entry.
18864         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
18865         Likewise.
18866
18867 2009-05-03  Bruno Haible  <bruno@clisp.org>
18868
18869         * lib/acl-internal.h (acl_entries): Clarify return value.
18870         * lib/acl_entries.c (acl_entries): Likewise.
18871
18872 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18873
18874         Bug fix in acl module.
18875         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
18876
18877 2009-05-03  Bruno Haible  <bruno@clisp.org>
18878
18879         Create gperf-generated file in the source dir, not in the build dir.
18880         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
18881         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
18882         * modules/unicase/locale-language (unicase/locale-languages.h):
18883         Likewise.
18884         * modules/unicase/special-casing (unicase/special-casing-table.h):
18885         Likewise.
18886         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
18887         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
18888         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
18889         Reported by Ralf Wildenhues.
18890
18891 2009-05-03  Bruno Haible  <bruno@clisp.org>
18892
18893         * modules/fnmatch (Description, configure.ac): Taken from
18894         fnmatch-posix.
18895         * modules/fnmatch-posix: Turn into a symbolic reference to the
18896         'fnmatch' module, and deprecate.
18897         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
18898
18899 2009-05-03  Bruno Haible  <bruno@clisp.org>
18900
18901         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
18902         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
18903         Reported by Ralf Wildenhues.
18904
18905 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18906
18907         * m4/fnmatch.m4: Fix fnmatch re-define.
18908
18909 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18910
18911         priv-set: new module and tests; adapt write-any-file
18912         * lib/priv-set.c: New file.
18913         * lib/priv-set.h: New file.
18914         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
18915         * lib/write-any-file.c: Simplify by using priv-set module.
18916         * m4/priv-set.m4: New file.
18917         * modules/priv-set: New file.
18918         * modules/unlinkdir: Add dependency on priv-set module.
18919         * modules/write-any-file: Likewise.
18920
18921         Tests for module 'priv-set'.
18922         * modules/priv-set-tests: New file.
18923         * tests/test-priv-set.c: New file.
18924
18925 2009-05-03  Jim Meyering  <meyering@redhat.com>
18926             Bruno Haible  <bruno@clisp.org>
18927
18928         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
18929         use the converted UTF-8 variant of the name instead.
18930
18931 2009-05-03  Jim Meyering  <meyering@redhat.com>
18932
18933         tests: tighten some getdate tests
18934         * tests/test-getdate.c (main): Tighten tests: require equality,
18935         not just greater than.  Set TZ envvar to UTC0.
18936
18937 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18938
18939         getdate: correctly interpret "next monday" when run on a Monday
18940         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
18941         that e.g., "next tues" (when run on a tuesday) results in a date
18942         that is one week in the future, and not today's date.
18943         I.e., add a week when the wday is the same as the current one.
18944         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
18945         and earlier by Martin Bernreuther and Jan Minář.
18946         * tests/test-getdate.c (main): Check that "next DAY" is always in
18947         the future and that "last DAY" is always in the past.
18948
18949 2009-05-02  Jim Meyering  <meyering@redhat.com>
18950
18951         build: ensure that a release build fails when a submodule is unclean
18952         * top/maint.mk (no-submodule-changes): New rule.
18953         (alpha beta major): Depend on it.
18954
18955 2009-05-02  Bruno Haible  <bruno@clisp.org>
18956
18957         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
18958         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
18959         shell variable gl_fnmatch_required to detect which variant is
18960         requested.
18961         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
18962         gl_FUNC_FNMATCH_POSIX.
18963         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
18964         exclude fnmatch-posix.
18965
18966 2009-05-02  Bruno Haible  <bruno@clisp.org>
18967
18968         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
18969         * modules/mbsrtowcs (License): Change to LGPLv2+.
18970         * modules/strnlen1 (License): Likewise.
18971         Reported by Simon Josefsson.
18972
18973 2009-05-02  Bruno Haible  <bruno@clisp.org>
18974
18975         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
18976         "cross".
18977         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
18978         gnulib-tool was called with option --source-base=lib.
18979
18980 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18981
18982         Use automake *-local hooks without commands, for extensibility.
18983         * modules/localcharset (Makefile.am): Rename install-exec-local
18984         rule to install-exec-localcharset, and make it a prerequisite of
18985         install-exec-local.  Likewise, rename the uninstall-local rule to
18986         uninstall-localcharset, and make it a prerequisite of the former.
18987
18988 2009-05-01  Bruno Haible  <bruno@clisp.org>
18989
18990         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
18991         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18992         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
18993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
18994         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
18995         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
18996         m4/locale-zh.m4, m4/codeset.m4.
18997
18998         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18999         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
19000         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19001         m4/locale-zh.m4.
19002
19003         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
19004         REPLACE_WCRTOMB if mbstate_t must be replaced.
19005         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
19006         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
19007
19008 2009-05-01  Bruno Haible  <bruno@clisp.org>
19009
19010         Avoid compiler warnings when redefining macros defined by <libintl.h>.
19011         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
19012         dngettext, dcngettext, textdomain, bindtextdomain,
19013         bind_textdomain_codeset): Undefine before redefining.
19014
19015 2009-04-30  Bruno Haible  <bruno@clisp.org>
19016
19017         Fix bug introduced on 2009-04-25.
19018         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
19019         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
19020         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
19021         is defined.
19022         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
19023         is defined.
19024         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
19025         is defined.
19026         Reported by Elbert_Pol <elbert.pol@gmail.com>.
19027
19028 2009-04-28  Bruno Haible  <bruno@clisp.org>
19029
19030         Comment tweaks.
19031         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
19032         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
19033         * lib/unicase.h (u*_casexfrm): Likewise.
19034         Reported by Paolo Bonzini.
19035
19036 2009-04-28  Bruno Haible  <bruno@clisp.org>
19037
19038         Fix a compilation error.
19039         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
19040         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19041         Reported by Jim Meyering.
19042
19043 2009-04-27  Bruno Haible  <bruno@clisp.org>
19044
19045         New module 'libunistring'.
19046         * modules/libunistring: New file.
19047         * m4/libunistring.m4: New file.
19048         * MODULES.html.sh (Unicode string functions): Add it.
19049
19050 2009-04-27  Eric Blake  <ebb9@byu.net>
19051
19052         maint.mk: allow package-specific header to provide <config.h>
19053         * top/maint.mk (sc_require_config_h): New variable.
19054         (sc_require_config_h, sc_require_config_h_first): Use it.
19055
19056 2009-04-27  Simon Josefsson  <simon@josefsson.org>
19057
19058         * top/maint.mk (sc_avoid_if_before_free): Except
19059         useless-if-before-free script.
19060
19061 2009-04-27  Eric Blake  <ebb9@byu.net>
19062
19063         maintainer-makefile: depend on all required helper scripts
19064         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
19065         useless-if-before-free.
19066         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
19067         version, rather than assuming gnulib checkout is available.
19068         Reported by Simen Josefsson.
19069
19070 2009-04-26  Bruno Haible  <bruno@clisp.org>
19071
19072         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
19073         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
19074         "../" or "..".
19075
19076 2009-04-26  Bruno Haible  <bruno@clisp.org>
19077
19078         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
19079         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
19080         AC_LIB_HAVE_LINKFLAGS.
19081
19082 2009-04-26  Bruno Haible  <bruno@clisp.org>
19083
19084         Simplify calling convention of u*_conv_from_encoding.
19085         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
19086         u32_conv_from_encoding): Expect a resultbuf argument and return the
19087         result directly as a pointer.
19088         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
19089         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
19090         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
19091         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
19092         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
19093         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19094         Update.
19095         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
19096         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
19097         * lib/vasnprintf.c (VASNPRINTF): Update.
19098         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
19099         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
19100         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
19101         * NEWS: Mention the change.
19102
19103 2009-04-26  Bruno Haible  <bruno@clisp.org>
19104
19105         Simplify calling convention of u*_conv_to_encoding.
19106         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19107         u32_conv_to_encoding): Expect a resultbuf argument and return the
19108         result directly as a pointer.
19109         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19110         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
19111         freeing scaled_offsets if mem_iconveha failed.
19112         * lib/unicase/u-casexfrm.h (FUNC): Update.
19113         * lib/uninorm/u-normxfrm.h (FUNC): Update.
19114         * lib/vasnprintf.c (VASNPRINTF): Update.
19115         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
19116         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
19117         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
19118         * NEWS: Mention the change.
19119
19120 2009-04-26  Bruno Haible  <bruno@clisp.org>
19121
19122         Avoid test failures on AIX and OSF/1.
19123         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
19124         malloc(0).
19125         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19126         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19127         Likewise.
19128         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
19129         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
19130         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
19131         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
19132         * doc/posix-functions/malloc.texi: Document the portability problem
19133         related to malloc(0).
19134
19135 2009-04-26  Bruno Haible  <bruno@clisp.org>
19136
19137         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
19138         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
19139         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
19140
19141 2009-04-25  Bruno Haible  <bruno@clisp.org>
19142
19143         Avoid link error when creating a namespace clean library.
19144         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
19145         as macro with arguments if already defined as an alias.
19146         * lib/signbitf.c (gl_signbitf): Don't undefine.
19147         * lib/signbitd.c (gl_signbitd): Don't undefine.
19148         * lib/signbitl.c (gl_signbitl): Don't undefine.
19149
19150 2009-04-25  Jim Meyering  <meyering@redhat.com>
19151
19152         vc-list-files: fix another quoting bug
19153         * build-aux/vc-list-files: Avoid sed backslash expansion
19154         of pathological directory names.
19155
19156 2009-04-25  Eric Blake  <ebb9@byu.net>
19157
19158         vc-list-files: fix shell quoting error
19159         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
19160         timestamp.
19161
19162 2009-04-25  Jim Meyering  <meyering@redhat.com>
19163
19164         vc-list-files: restore lost functionality with subdir argument
19165         * build-aux/vc-list-files: When given a non-"." sub-directory
19166         argument, substitute the $dir/ prefix back onto each resulting name.
19167         Otherwise, coreutils' root_tests check would fail.
19168
19169 2009-04-24  Eric Blake  <ebb9@byu.net>
19170
19171         vc-list-files: ignore git symlinks
19172         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
19173         than ls-files, to ignore git symlinks.
19174
19175         maint.mk: import improvements from m4
19176         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
19177         (move_if_change): Delete unused macro.
19178         (news-date-check, vc-diff-check): Support VPATH builds.
19179         (announcement): Likewise.  Split --bootstrap-tools list...
19180         (boostrap-tools): ...into separate list, which can be overridden
19181         in cfg.mk.
19182         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
19183         requiring dependency on useless-if-before-free module.
19184         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
19185         Support VPATH builds.
19186
19187 2009-04-24  Jim Meyering  <meyering@redhat.com>
19188
19189         maint.mk: remove coreutils-specific rules and variables
19190         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
19191         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
19192         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
19193
19194         maint.mk: remove obsolete rule
19195         * top/maint.mk (rel-check): Remove rule.
19196         (WGET, WGETFLAGS): Remove now-unused variables.
19197
19198 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19199
19200         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
19201         consistency.
19202
19203         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
19204         '$(PATH_SEPARATOR)' instead of ':'.
19205
19206 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19207
19208         * lib/getopt1.c (main): Use 'const' for static array.
19209
19210 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19211
19212         * top/maint.mk: Sync with coreutils.
19213         * NEWS: Explain incompatibilities.
19214
19215 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19216             Bruno Haible  <bruno@clisp.org>
19217
19218         Fix cross-compilation results.
19219         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
19220         statement, as third argument of AC_TRY_RUN.
19221         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19222         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19223         Likewise.
19224         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19225         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19226         Likewise.
19227         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19228         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
19229         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
19230
19231 2009-04-20  Bruno Haible  <bruno@clisp.org>
19232
19233         Avoid test failure on mingw.
19234         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
19235
19236 2009-04-20  Bruno Haible  <bruno@clisp.org>
19237
19238         Avoid compilation error on mingw.
19239         * modules/localename-tests (Depends-on): Add locale.
19240
19241 2009-04-19  Bruno Haible  <bruno@clisp.org>
19242
19243         Support for building a shared library on Windows platforms.
19244         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
19245         (main): Test the presence of UNINORM_NFC here.
19246         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
19247         (main): Test the presence of UNINORM_NFD here.
19248         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
19249         (main): Test the presence of UNINORM_NFKC here.
19250         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
19251         (main): Test the presence of UNINORM_NFKD here.
19252
19253 2009-04-19  Bruno Haible  <bruno@clisp.org>
19254
19255         Avoid a compiler warning.
19256         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
19257         Change type of variable 'sequence'.
19258
19259 2009-04-19  Bruno Haible  <bruno@clisp.org>
19260
19261         * modules/configmake (Makefile.am): When the contents of configmake.h
19262         does not change, arrange to preserve its modification time.
19263
19264 2009-04-17  Simon Josefsson  <simon@josefsson.org>
19265
19266         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
19267         gettext domain.
19268
19269 2009-04-16  Jim Meyering  <meyering@redhat.com>
19270
19271         useless-if-before-free: improve conversion code
19272         * build-aux/useless-if-before-free: Adjust code-in-comment to match
19273         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
19274
19275 2009-04-14  Bruno Haible  <bruno@clisp.org>
19276
19277         * modules/fcntl (Depends-on): Add extensions.
19278         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
19279
19280 2009-04-12  Ben Pfaff  <blp@gnu.org>
19281
19282         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
19283         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
19284
19285 2009-03-20  Ben Pfaff  <blp@gnu.org>
19286
19287         Make rename replace existing destinations on Windows.
19288         * m4/rename.m4: Add test for Mingw.
19289         * lib/rename.c: Add rename replacement that uses MoveFileEx with
19290         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
19291         * doc/posix-functions/rename.texi: Document.
19292
19293 2009-04-10  Bruno Haible  <bruno@clisp.org>
19294
19295         New include file "iconveh.h".
19296         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
19297         * lib/striconveh.h: Include it.
19298         (enum iconv_ilseq_handler): Remove definition.
19299         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
19300         striconveh.h.
19301         * lib/striconveha.c: Include striconveh.h.
19302         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
19303         * modules/striconveh (Files): Add lib/iconveh.h.
19304         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
19305         lib/striconveh.h.
19306
19307 2009-04-10  Bruno Haible  <bruno@clisp.org>
19308
19309         * lib/uniconv.h: Update comment.
19310
19311 2009-04-10  Bruno Haible  <bruno@clisp.org>
19312
19313         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
19314         always.
19315         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19316         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19317         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19318         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
19319         "unistring-notinline.h", so that the function gets defined always.
19320         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19321         * lib/unistr/u8-uctomb.c: Likewise.
19322         * lib/unistr/u16-mbtouc.c: Likewise.
19323         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19324         * lib/unistr/u16-uctomb.c: Likewise.
19325         * lib/unistr/u32-mbtouc.c: Likewise.
19326         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19327         * lib/unistr/u32-uctomb.c: Likewise.
19328
19329 2009-04-10  Bruno Haible  <bruno@clisp.org>
19330
19331         Mark 'utime' obsolete.
19332         * modules/utime (Status, Notice): New sections.
19333         Suggested by Jim Meyering.
19334
19335         Fix cross-compile guess for utime test.
19336         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
19337         autoconf.
19338         * doc/posix-functions/utime.texi: Give more precisions.
19339         Reported by Jan <ipif@ymail.com>.
19340
19341 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
19342
19343         filevercmp: correct today's change
19344         * lib/filevercmp.c: Also handle coreutils' test inputs.
19345         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
19346
19347         Fix regression in 'filevercmp' module. Thanks Sven Joachim
19348         for reporting it.
19349         * lib/filevercmp.c: Special handle for "", "." and "..".
19350         * tests/test-filevercmp.c: Enlarge the set suite.
19351
19352 2009-04-07  Jim Meyering  <meyering@redhat.com>
19353
19354         useless-if-before-free: show how to remove braced useless free, too
19355         * build-aux/useless-if-before-free: still only in a comment, though.
19356
19357 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
19358
19359         maint.mk: import changes to syntax-check macros from coreutils
19360         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
19361         Use them in the relevant macros.
19362
19363 2009-04-06  Bruno Haible  <bruno@clisp.org>
19364
19365         Fix unportable use of bit-fields.
19366         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
19367         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
19368         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
19369
19370 2009-04-06  Bruno Haible  <bruno@clisp.org>
19371
19372         Avoid test failures on AIX and OSF/1.
19373         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
19374         that malloc(0) = NULL.
19375         * tests/unicase/test-u8-tolower.c (check): Likewise.
19376         * tests/unicase/test-u8-totitle.c (check): Likewise.
19377         * tests/unicase/test-u8-toupper.c (check): Likewise.
19378         * tests/unicase/test-u16-casefold.c (check): Likewise.
19379         * tests/unicase/test-u16-tolower.c (check): Likewise.
19380         * tests/unicase/test-u16-totitle.c (check): Likewise.
19381         * tests/unicase/test-u16-toupper.c (check): Likewise.
19382         * tests/unicase/test-u32-casefold.c (check): Likewise.
19383         * tests/unicase/test-u32-tolower.c (check): Likewise.
19384         * tests/unicase/test-u32-totitle.c (check): Likewise.
19385         * tests/unicase/test-u32-toupper.c (check): Likewise.
19386         * tests/uninorm/test-u8-nfc.c (check): Likewise.
19387         * tests/uninorm/test-u8-nfd.c (check): Likewise.
19388         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
19389         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
19390         * tests/uninorm/test-u16-nfc.c (check): Likewise.
19391         * tests/uninorm/test-u16-nfd.c (check): Likewise.
19392         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
19393         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
19394         * tests/uninorm/test-u32-nfc.c (check): Likewise.
19395         * tests/uninorm/test-u32-nfd.c (check): Likewise.
19396         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
19397         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
19398
19399 2009-04-05  Bruno Haible  <bruno@clisp.org>
19400
19401         Work around an autoconf limitation.
19402         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
19403         comment line if it would be longer than 3 KB.
19404
19405 2009-04-05  Bruno Haible  <bruno@clisp.org>
19406
19407         Avoid test failure with libiconv-1.13.
19408         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
19409         of the expected test results.
19410
19411 2009-04-05  Bruno Haible  <bruno@clisp.org>
19412
19413         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
19414         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
19415         that it should be installed.
19416
19417 2009-04-05  Bruno Haible  <bruno@clisp.org>
19418
19419         * gnulib-tool: New option --copy-file.
19420         (func_usage): Document it.
19421         (func_dest_tmpfilename): Moved out of func_import.
19422         (func_add_file, func_update_file): New functions, extracted from
19423         func_import.
19424         (func_import): Update.
19425
19426 2009-04-05  Karl Berry  <karl@gnu.org>
19427
19428         * README: prominently mention gnulib-tool.
19429         Rearrange sections so getting the code is near the top.
19430
19431 2009-04-05  Bruno Haible  <bruno@clisp.org>
19432
19433         * lib/unicase.h: Mention u*_cmp2.
19434         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19435         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
19436         * lib/unicase/ulc-casecmp.c: Likewise.
19437         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
19438         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
19439         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
19440         unistr/u8-cmp.
19441         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
19442         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
19443         unistr/u16-cmp.
19444         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
19445         unistr/u32-cmp.
19446
19447         * lib/uninorm.h: Mention u*_cmp2.
19448         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19449         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
19450         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
19451         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
19452         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
19453         unistr/u8-cmp.
19454         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
19455         unistr/u16-cmp.
19456         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
19457         unistr/u32-cmp.
19458
19459         New module 'unistr/u32-cmp2'.
19460         * lib/unistr/u32-cmp2.c: New file.
19461         * modules/unistr/u32-cmp2: New file.
19462
19463         New module 'unistr/u16-cmp2'.
19464         * lib/unistr/u16-cmp2.c: New file.
19465         * modules/unistr/u16-cmp2: New file.
19466
19467         New module 'unistr/u8-cmp2'.
19468         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
19469         * lib/unistr/u8-cmp2.c: New file.
19470         * lib/unistr/u-cmp2.h: New file.
19471         * modules/unistr/u8-cmp2: New file.
19472
19473 2009-04-05  Bruno Haible  <bruno@clisp.org>
19474
19475         * lib/unictype.h (uc_property_is_valid): New macro.
19476         * tests/unictype/test-pr_byname.c (main): Use it.
19477
19478         * lib/unistr.h: Doc fixes.
19479         * lib/uniconv.h: Doc fixes.
19480         * lib/unictype.h: Doc fixes.
19481
19482 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19483
19484         Port coreutils 7.2 to Solaris 8.
19485
19486         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
19487         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
19488         for Solaris 8.  This is a bit of a hack, as it means it's the
19489         caller's responsibility to add -lnsl if needed, but most likely it
19490         won't be needed since only getaddrinfo uses this and getaddrinfo
19491         isn't needed on Solaris 8.
19492
19493         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
19494         problem to Solaris 8 encountered with coreutils 7.2, which
19495         resulted in a message "fnmatch.c:292: warning: passing argument 4
19496         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
19497         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
19498
19499 2009-04-03  Simon Josefsson  <simon@josefsson.org>
19500
19501         * m4/ld-version-script.m4: Add FIXME comment.
19502
19503 2009-04-02  Simon Josefsson  <simon@josefsson.org>
19504
19505         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
19506         SOVERSION variable.
19507
19508 2009-04-02  Bruno Haible  <bruno@clisp.org>
19509
19510         * Makefile (info, html, dvi, pdf): Combine the rules.
19511         Suggested by Jim Meyering.
19512
19513 2009-04-01  Bruno Haible  <bruno@clisp.org>
19514
19515         * Makefile (info, html, dvi, pdf): New targets.
19516         Reported by Reuben Thomas <rrt@sc3d.org>.
19517
19518 2009-04-01  Bruno Haible  <bruno@clisp.org>
19519
19520         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
19521         can be put into PATH.
19522         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
19523
19524 2009-04-01  Bruno Haible  <bruno@clisp.org>
19525
19526         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
19527
19528 2009-04-01  Bruno Haible  <bruno@clisp.org>
19529
19530         Rename module 'visibility'.
19531         * modules/lib-symbol-visibility: Renamed from modules/visibility.
19532         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
19533         * doc/gnulib.texi: Update.
19534         * MODULES.html.sh (Misc): Update.
19535         * NEWS: Mention the change.
19536
19537 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19538
19539         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
19540         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
19541         Eric Blake <ebb9@byu.net> for review.
19542         * MODULES.html.sh: Add lib-msvc-compat.
19543         * doc/gnulib.texi: Link to new section.
19544         * m4/ld-output-def.m4: New file.
19545         * doc/ld-output-def.texi: New file.
19546
19547 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19548
19549         Rename ld-version-script to lib-symbol-versions.  Suggested by
19550         Bruno Haible <bruno@clisp.org>.
19551         * modules/ld-version-script: Renamed to lib-symbol-versions.
19552         * doc/ld-version-script.texi: Fix module name.
19553         * MODULES.html.sh: Add lib-symbol-versions.
19554
19555 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19556
19557         * modules/u64-tests: New file.
19558         * tests/test-u64.c: New file.
19559
19560 2009-03-04  Simon Josefsson  <simon@josefsson.org>
19561
19562         * MODULES.html.sh: Mention u64.
19563         * modules/u64: New module.
19564         * modules/crypto/sha512: Depend on u64 module instead of providing
19565         u64.h.
19566
19567 2009-03-27  Eric Blake  <ebb9@byu.net>
19568
19569         test-strerror: make debugging EAI_SYSTEM easier
19570         * modules/getaddrinfo-tests (Depends-on): Add strerror.
19571         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
19572         failure was EAI_SYSTEM.
19573
19574 2009-03-25  Bruno Haible  <bruno@clisp.org>
19575
19576         Fix a problem with --enable-relocatable on Solaris 7.
19577         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
19578         since 2008-02-24.
19579
19580 2009-03-25  Eric Blake  <ebb9@byu.net>
19581
19582         test-sockets: avoid gcc warning
19583         * tests/test-sockets.c (main): Silence compiler warning.
19584
19585 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19586
19587         New modules nproc, pthread, contributed by Glen Lenker.
19588
19589         * MODULES.html.sh: Add pthread, nproc.
19590         * lib/nproc.c: New file.
19591         * lib/nproc.h: New file.
19592         * lib/pthread.in.h: New file.
19593         * m4/pthread.m4: New file.
19594         * modules/nproc: New file.
19595         * modules/pthread: New file.
19596
19597 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19598
19599         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19600         New variable.
19601
19602 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19603
19604         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19605         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19606         * tests/test-filevercmp.c: Add tests for backup suffixes.
19607
19608 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19609
19610         * modules/stdlib (Depends-on): Add stdint, needed when defining
19611         struct random_data on, for example, HP-UX 10.20.  Reported by
19612         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19613
19614 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19615
19616         * lib/readline.c (readline): Call fflush on stdout after printing
19617         prompt.
19618
19619 2009-03-20  Bruno Haible  <bruno@clisp.org>
19620
19621         Remove dependency from 'close' module to -lws2_32 on native Windows.
19622         * lib/close-hook.h: New file.
19623         * lib/close-hook.c: New file.
19624         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19625         w32sock.h.
19626         (_gl_close_fd_maybe_socket): Remove function.
19627         (rpl_close): Invoke execute_all_close_hooks instead of
19628         _gl_close_fd_maybe_socket.
19629         * lib/sockets.c: Include close-hook.h, w32sock.h.
19630         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19631         (close_sockets_hook): New variable.
19632         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19633         (gl_sockets_cleanup): Unregister it.
19634         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19635         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19636         * modules/close-hook: New file.
19637         * modules/close (Files): Remove lib/w32sock.h.
19638         (Depends-on): Add close-hook.
19639         (Link): Remove section.
19640         * modules/sockets (Files): Add lib/w32sock.h.
19641         (Depends-on): Add close-hook.
19642         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19643         invocation.
19644         * NEWS: Mention that LIB_CLOSE is gone.
19645
19646 2009-03-23  Eric Blake  <ebb9@byu.net>
19647
19648         signal-tests: test previous patch
19649         * tests/test-signal.c: New file.
19650         * modules/signal-tests: Likewise.
19651
19652         signal.h: always support 'volatile sig_atomic_t'
19653         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19654         (gl_SIGNAL_H_DEFAULTS): Add a default.
19655         * modules/signal (Makefile.am): Substitute if needed.
19656         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19657         users can blindly add volatile.
19658         * doc/posix-headers/signal.texi (signal.h): Document it.
19659         Reported by Matthew Woehlke.
19660
19661 2009-03-23  Jim Meyering  <meyering@redhat.com>
19662
19663         pathmax: PATH_MAX: use pathconf only when available
19664         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19665         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19666         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19667         This avoids a link failure in a PSP cross-compilation environment
19668         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19669
19670         * lib/vasnprintf.c (divide): Fix typo in comment.
19671
19672 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19673
19674         * gnulib-tool (func_filter_filelist): Fix comment.
19675
19676 2009-03-20  Bruno Haible  <bruno@clisp.org>
19677
19678         Make sockets.h self-contained.
19679         * lib/sockets.c: Include sockets.h first.
19680         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19681
19682 2009-03-19  Eric Blake  <ebb9@byu.net>
19683
19684         doc: mention more functions added in cygwin 1.7.0
19685         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19686         addition.
19687         * doc/posix-functions/log2f.texi: Likewise.
19688
19689 2009-03-19  Jim Meyering  <meyering@redhat.com>
19690
19691         fsusage: avoid syntax error due to statement-before-declaration
19692         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19693         after all declarations.  Reported by Matthew Woehlke in
19694         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19695
19696 2009-03-18  Eric Blake  <ebb9@byu.net>
19697
19698         build-aux/compile: sync from automake
19699         * build-aux/compile: New file, from automake.
19700         * config/srclist.txt: Mention build-aux/compile.
19701
19702 2009-03-17  Bruno Haible  <bruno@clisp.org>
19703
19704         * lib/git-merge-changelog.c: Fix typo in comment.
19705         Reported by Reuben Thomas <rrt@sc3d.org>.
19706
19707 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19708
19709         * m4/regex.m4: update and improve help for
19710         --without-included-regex.
19711
19712 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19713
19714         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19715         failure on missing include files.
19716
19717 2009-03-17  Eric Blake  <ebb9@byu.net>
19718
19719         doc: mention more functions added in cygwin 1.7.0
19720         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19721         addition.
19722         * doc/posix-functions/fwscanf.texi: Likewise.
19723         * doc/posix-functions/swprintf.texi: Likewise.
19724         * doc/posix-functions/swscanf.texi: Likewise.
19725         * doc/posix-functions/vfwprintf.texi: Likewise.
19726         * doc/posix-functions/vfwscanf.texi: Likewise.
19727         * doc/posix-functions/vswprintf.texi: Likewise.
19728         * doc/posix-functions/vswscanf.texi: Likewise.
19729         * doc/posix-functions/vwprintf.texi: Likewise.
19730         * doc/posix-functions/vwscanf.texi: Likewise.
19731         * doc/posix-functions/wcscasecmp.texi: Likewise.
19732         * doc/posix-functions/wcsdup.texi: Likewise.
19733         * doc/posix-functions/wcsftime.texi: Likewise.
19734         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19735         * doc/posix-functions/wprintf.texi: Likewise.
19736         * doc/posix-functions/wscanf.texi: Likewise.
19737         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19738
19739 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19740
19741         maint.mk: really add $(AM_MAKEFLAGS)
19742         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19743         was inadvertently omitted in the last commit.
19744         Spotted by Bruno Haible.
19745
19746         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19747         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19748         $(AM_MAKEFLAGS)' rather than plain `make'.
19749
19750         gnulib-tool: execute $MAKE not make
19751         * gnulib-tool: Default $MAKE to 'make'.
19752         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19753         than make.  Initialize $MAKE in the do-autobuild script.
19754
19755         gnulib-tool: use $MAKE not make in generated files
19756         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19757         make, in generated files.  Initialize $MAKE in the do-autobuild
19758         script.
19759
19760         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19761
19762         GNUmakefile: disable parallelism only for multiple, recursive targets
19763         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19764         additions in the Makefile.
19765         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19766         by Automake.
19767         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19768         are listed on the command line and at least one of them is
19769         listed in $(ALL_RECURSIVE_TARGETS).
19770
19771 2009-03-14  Bruno Haible  <bruno@clisp.org>
19772
19773         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19774         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19775         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19776         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19777         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19778         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19779         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19780         unistr/u8-uctomb.
19781         * modules/unistr/u8-strchr (Depends-on): Likewise.
19782         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19783         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19784         unistr/u16-uctomb.
19785         * modules/unistr/u16-strchr (Depends-on): Likewise.
19786         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19787
19788 2009-03-12  Bruno Haible  <bruno@clisp.org>
19789
19790         Work around select() bug on Interix 3.5.
19791         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19792         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19793         * m4/select.m4: New file.
19794         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19795         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19796         * modules/select (Files): Add m4/select.m4.
19797         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19798         * modules/nanosleep (Depends-on): Add select.
19799         * modules/poll (Depends-on): Likewise.
19800         * doc/posix-functions/select.texi: Mention the Interix bug.
19801         Reported by Markus Duft <mduft@gentoo.org>.
19802
19803         * lib/select.c: Renamed from lib/winsock-select.c.
19804         * modules/select (Files): Add lib/select.c, remove
19805         lib/winsock-select.c.
19806         (configure.ac): Update.
19807
19808 2009-03-12  Jim Meyering  <meyering@redhat.com>
19809
19810         avoid gcc warnings about unused macro definitions
19811         * lib/readtokens.c (STREQ): Remove unused definition.
19812         * lib/xmalloc.c (SIZE_MAX): Likewise.
19813         * lib/openat-die.c (N_): Likewise.
19814         * lib/mountlist.c (SIZE_MAX): Remove definition.
19815         Instead, include <stdint.h>.
19816         * lib/readutmp.c: Likewise.
19817         * modules/readutmp (Depends-on): Add stdint.
19818         * modules/mountlist (Depends-on): Add stdint.
19819         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19820
19821 2009-03-10  Bruno Haible  <bruno@clisp.org>
19822
19823         Tests for module 'mbmemcasecoll'.
19824         * modules/mbmemcasecoll-tests: New file.
19825         * tests/test-mbmemcasecoll1.sh: New file.
19826         * tests/test-mbmemcasecoll2.sh: New file.
19827         * tests/test-mbmemcasecoll3.sh: New file.
19828         * tests/test-mbmemcasecoll.c: New file.
19829
19830         New module 'mbmemcasecoll'.
19831         * lib/mbmemcasecoll.h: New file.
19832         * lib/mbmemcasecoll.c: New file.
19833         * modules/mbmemcasecoll: New file.
19834
19835         * tests/test-mbmemcasecmp.h: New file, extracted from
19836         tests/test-mbmemcasecmp.c.
19837         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
19838         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
19839         (main): Update.
19840         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
19841
19842 2009-03-09  Bruno Haible  <bruno@clisp.org>
19843
19844         Tests for module 'mbmemcasecmp'.
19845         * modules/mbmemcasecmp-tests: New file.
19846         * tests/test-mbmemcasecmp1.sh: New file.
19847         * tests/test-mbmemcasecmp2.sh: New file.
19848         * tests/test-mbmemcasecmp3.sh: New file.
19849         * tests/test-mbmemcasecmp.c: New file.
19850
19851         New module 'mbmemcasecmp'.
19852         * lib/mbmemcasecmp.h: New file.
19853         * lib/mbmemcasecmp.c: New file.
19854         * modules/mbmemcasecmp: New file.
19855
19856 2009-03-09  Bruno Haible  <bruno@clisp.org>
19857
19858         Tests for module 'unicase/ulc-casecoll'.
19859         * modules/unicase/ulc-casecoll-tests: New file.
19860         * tests/unicase/test-ulc-casecoll1.sh: New file.
19861         * tests/unicase/test-ulc-casecoll2.sh: New file.
19862         * tests/unicase/test-ulc-casecoll.c: New file.
19863
19864         New module 'unicase/ulc-casecoll'.
19865         * lib/unicase.h (ulc_casecoll): New declaration.
19866         * lib/unicase/ulc-casecoll.c: New file.
19867         * modules/unicase/ulc-casecoll: New file.
19868
19869         New module 'unicase/ulc-casexfrm'.
19870         * lib/unicase.h (ulc_casexfrm): New declaration.
19871         * lib/unicase/ulc-casexfrm.c: New file.
19872         * modules/unicase/ulc-casexfrm: New file.
19873
19874 2009-03-09  Bruno Haible  <bruno@clisp.org>
19875
19876         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
19877         invocations.
19878
19879         * m4/mbscasecmp.m4: Remove file.
19880         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
19881         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
19882
19883         * m4/mbscasestr.m4: Remove file.
19884         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
19885         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
19886
19887         * m4/mbschr.m4: Remove file.
19888         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
19889         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
19890
19891         * m4/mbscspn.m4: Remove file.
19892         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
19893         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
19894
19895         * m4/mbslen.m4: Remove file.
19896         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
19897         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
19898
19899         * m4/mbsncasecmp.m4: Remove file.
19900         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
19901         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
19902
19903         * m4/mbsnlen.m4: Remove file.
19904         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
19905         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
19906
19907         * m4/mbspbrk.m4: Remove file.
19908         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
19909         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
19910
19911         * m4/mbspcasecmp.m4: Remove file.
19912         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
19913         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
19914
19915         * m4/mbsrchr.m4: Remove file.
19916         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
19917         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
19918
19919         * m4/mbssep.m4: Remove file.
19920         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
19921         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
19922
19923         * m4/mbsspn.m4: Remove file.
19924         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
19925         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
19926
19927         * m4/mbsstr.m4: Remove file.
19928         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
19929         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
19930
19931         * m4/mbstok_r.m4: Remove file.
19932         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
19933         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
19934
19935         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
19936
19937         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
19938         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
19939
19940         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
19941
19942 2009-03-08  Bruno Haible  <bruno@clisp.org>
19943
19944         Tests for module 'unicase/ulc-casecmp'.
19945         * modules/unicase/ulc-casecmp-tests: New file.
19946         * tests/unicase/test-ulc-casecmp1.sh: New file.
19947         * tests/unicase/test-ulc-casecmp2.sh: New file.
19948         * tests/unicase/test-ulc-casecmp.c: New file.
19949
19950         New module 'unicase/ulc-casecmp'.
19951         * lib/unicase.h (ulc_casecmp): New declaration.
19952         * lib/unicase/ulc-casecmp.c: New file.
19953         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
19954         'const SRC_UNIT *'.
19955         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
19956         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
19957         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
19958         * modules/unicase/ulc-casecmp: New file.
19959
19960         Tests for module 'unicase/u32-is-cased'.
19961         * modules/unicase/u32-is-cased-tests: New file.
19962         * tests/unicase/test-u32-is-cased.c: New file.
19963
19964         Tests for module 'unicase/u16-is-cased'.
19965         * modules/unicase/u16-is-cased-tests: New file.
19966         * tests/unicase/test-u16-is-cased.c: New file.
19967
19968         Tests for module 'unicase/u8-is-cased'.
19969         * modules/unicase/u8-is-cased-tests: New file.
19970         * tests/unicase/test-u8-is-cased.c: New file.
19971         * tests/unicase/test-is-cased.h: New file.
19972
19973         New module 'unicase/u32-is-cased'.
19974         * lib/unicase/u32-is-cased.c: New file.
19975         * modules/unicase/u32-is-cased: New file.
19976
19977         New module 'unicase/u16-is-cased'.
19978         * lib/unicase/u16-is-cased.c: New file.
19979         * modules/unicase/u16-is-cased: New file.
19980
19981         New module 'unicase/u8-is-cased'.
19982         * lib/unicase/u8-is-cased.c: New file.
19983         * lib/unicase/u-is-cased.h: New file.
19984         * modules/unicase/u8-is-cased: New file.
19985
19986         Tests for module 'unicase/u32-is-casefolded'.
19987         * modules/unicase/u32-is-casefolded-tests: New file.
19988         * tests/unicase/test-u32-is-casefolded.c: New file.
19989
19990         Tests for module 'unicase/u16-is-casefolded'.
19991         * modules/unicase/u16-is-casefolded-tests: New file.
19992         * tests/unicase/test-u16-is-casefolded.c: New file.
19993
19994         Tests for module 'unicase/u8-is-casefolded'.
19995         * modules/unicase/u8-is-casefolded-tests: New file.
19996         * tests/unicase/test-u8-is-casefolded.c: New file.
19997         * tests/unicase/test-is-casefolded.h: New file.
19998
19999         New module 'unicase/u32-is-casefolded'.
20000         * lib/unicase/u32-is-casefolded.c: New file.
20001         * modules/unicase/u32-is-casefolded: New file.
20002
20003         New module 'unicase/u16-is-casefolded'.
20004         * lib/unicase/u16-is-casefolded.c: New file.
20005         * modules/unicase/u16-is-casefolded: New file.
20006
20007         New module 'unicase/u8-is-casefolded'.
20008         * lib/unicase/u8-is-casefolded.c: New file.
20009         * modules/unicase/u8-is-casefolded: New file.
20010
20011         Tests for module 'unicase/u32-is-titlecase'.
20012         * modules/unicase/u32-is-titlecase-tests: New file.
20013         * tests/unicase/test-u32-is-titlecase.c: New file.
20014
20015         Tests for module 'unicase/u16-is-titlecase'.
20016         * modules/unicase/u16-is-titlecase-tests: New file.
20017         * tests/unicase/test-u16-is-titlecase.c: New file.
20018
20019         Tests for module 'unicase/u8-is-titlecase'.
20020         * modules/unicase/u8-is-titlecase-tests: New file.
20021         * tests/unicase/test-u8-is-titlecase.c: New file.
20022         * tests/unicase/test-is-titlecase.h: New file.
20023
20024         New module 'unicase/u32-is-titlecase'.
20025         * lib/unicase/u32-is-titlecase.c: New file.
20026         * modules/unicase/u32-is-titlecase: New file.
20027
20028         New module 'unicase/u16-is-titlecase'.
20029         * lib/unicase/u16-is-titlecase.c: New file.
20030         * modules/unicase/u16-is-titlecase: New file.
20031
20032         New module 'unicase/u8-is-titlecase'.
20033         * lib/unicase/u8-is-titlecase.c: New file.
20034         * modules/unicase/u8-is-titlecase: New file.
20035
20036         Tests for module 'unicase/u32-is-lowercase'.
20037         * modules/unicase/u32-is-lowercase-tests: New file.
20038         * tests/unicase/test-u32-is-lowercase.c: New file.
20039
20040         Tests for module 'unicase/u16-is-lowercase'.
20041         * modules/unicase/u16-is-lowercase-tests: New file.
20042         * tests/unicase/test-u16-is-lowercase.c: New file.
20043
20044         Tests for module 'unicase/u8-is-lowercase'.
20045         * modules/unicase/u8-is-lowercase-tests: New file.
20046         * tests/unicase/test-u8-is-lowercase.c: New file.
20047         * tests/unicase/test-is-lowercase.h: New file.
20048
20049         New module 'unicase/u32-is-lowercase'.
20050         * lib/unicase/u32-is-lowercase.c: New file.
20051         * modules/unicase/u32-is-lowercase: New file.
20052
20053         New module 'unicase/u16-is-lowercase'.
20054         * lib/unicase/u16-is-lowercase.c: New file.
20055         * modules/unicase/u16-is-lowercase: New file.
20056
20057         New module 'unicase/u8-is-lowercase'.
20058         * lib/unicase/u8-is-lowercase.c: New file.
20059         * modules/unicase/u8-is-lowercase: New file.
20060
20061         Tests for module 'unicase/u32-is-uppercase'.
20062         * modules/unicase/u32-is-uppercase-tests: New file.
20063         * tests/unicase/test-u32-is-uppercase.c: New file.
20064
20065         Tests for module 'unicase/u16-is-uppercase'.
20066         * modules/unicase/u16-is-uppercase-tests: New file.
20067         * tests/unicase/test-u16-is-uppercase.c: New file.
20068
20069         Tests for module 'unicase/u8-is-uppercase'.
20070         * modules/unicase/u8-is-uppercase-tests: New file.
20071         * tests/unicase/test-u8-is-uppercase.c: New file.
20072         * tests/unicase/test-is-uppercase.h: New file.
20073
20074         New module 'unicase/u32-is-uppercase'.
20075         * lib/unicase/u32-is-uppercase.c: New file.
20076         * modules/unicase/u32-is-uppercase: New file.
20077
20078         New module 'unicase/u16-is-uppercase'.
20079         * lib/unicase/u16-is-uppercase.c: New file.
20080         * modules/unicase/u16-is-uppercase: New file.
20081
20082         New module 'unicase/u8-is-uppercase'.
20083         * lib/unicase/u8-is-uppercase.c: New file.
20084         * modules/unicase/u8-is-uppercase: New file.
20085
20086         New module 'unicase/u32-is-invariant'.
20087         * lib/unicase/u32-is-invariant.c: New file.
20088         * modules/unicase/u32-is-invariant: New file.
20089
20090         New module 'unicase/u16-is-invariant'.
20091         * lib/unicase/u16-is-invariant.c: New file.
20092         * modules/unicase/u16-is-invariant: New file.
20093
20094         New module 'unicase/u8-is-invariant'.
20095         * lib/unicase/u8-is-invariant.c: New file.
20096         * lib/unicase/invariant.h: New file.
20097         * lib/unicase/u-is-invariant.h: New file.
20098         * modules/unicase/u8-is-invariant: New file.
20099
20100         Tests for module 'unicase/u32-casecoll'.
20101         * modules/unicase/u32-casecoll-tests: New file.
20102         * tests/unicase/test-u32-casecoll.c: New file.
20103
20104         Tests for module 'unicase/u16-casecoll'.
20105         * modules/unicase/u16-casecoll-tests: New file.
20106         * tests/unicase/test-u16-casecoll.c: New file.
20107
20108         Tests for module 'unicase/u8-casecoll'.
20109         * modules/unicase/u8-casecoll-tests: New file.
20110         * tests/unicase/test-u8-casecoll.c: New file.
20111
20112         New module 'unicase/u32-casecoll'.
20113         * lib/unicase/u32-casecoll.c: New file.
20114         * modules/unicase/u32-casecoll: New file.
20115
20116         New module 'unicase/u16-casecoll'.
20117         * lib/unicase/u16-casecoll.c: New file.
20118         * modules/unicase/u16-casecoll: New file.
20119
20120         New module 'unicase/u8-casecoll'.
20121         * lib/unicase/u8-casecoll.c: New file.
20122         * lib/unicase/u-casecoll.h: New file.
20123         * modules/unicase/u8-casecoll: New file.
20124
20125         New module 'unicase/u32-casexfrm'.
20126         * lib/unicase/u32-casexfrm.c: New file.
20127         * modules/unicase/u32-casexfrm: New file.
20128
20129         New module 'unicase/u16-casexfrm'.
20130         * lib/unicase/u16-casexfrm.c: New file.
20131         * modules/unicase/u16-casexfrm: New file.
20132
20133         New module 'unicase/u8-casexfrm'.
20134         * lib/unicase/u8-casexfrm.c: New file.
20135         * lib/unicase/u-casexfrm.h: New file.
20136         * modules/unicase/u8-casexfrm: New file.
20137
20138         Tests for module 'unicase/u32-casecmp'.
20139         * modules/unicase/u32-casecmp-tests: New file.
20140         * tests/unicase/test-u32-casecmp.c: New file.
20141
20142         Tests for module 'unicase/u16-casecmp'.
20143         * modules/unicase/u16-casecmp-tests: New file.
20144         * tests/unicase/test-u16-casecmp.c: New file.
20145
20146         Tests for module 'unicase/u8-casecmp'.
20147         * modules/unicase/u8-casecmp-tests: New file.
20148         * tests/unicase/test-u8-casecmp.c: New file.
20149         * tests/unicase/test-casecmp.h: New file.
20150
20151         New module 'unicase/u32-casecmp'.
20152         * lib/unicase/u32-casecmp.c: New file.
20153         * modules/unicase/u32-casecmp: New file.
20154
20155         New module 'unicase/u16-casecmp'.
20156         * lib/unicase/u16-casecmp.c: New file.
20157         * modules/unicase/u16-casecmp: New file.
20158
20159         New module 'unicase/u8-casecmp'.
20160         * lib/unicase/u8-casecmp.c: New file.
20161         * lib/unicase/u-casecmp.h: New file.
20162         * modules/unicase/u8-casecmp: New file.
20163
20164         Tests for module 'unicase/u32-casefold'.
20165         * modules/unicase/u32-casefold-tests: New file.
20166         * tests/unicase/test-u32-casefold.c: New file.
20167
20168         Tests for module 'unicase/u16-casefold'.
20169         * modules/unicase/u16-casefold-tests: New file.
20170         * tests/unicase/test-u16-casefold.c: New file.
20171
20172         Tests for module 'unicase/u8-casefold'.
20173         * modules/unicase/u8-casefold-tests: New file.
20174         * tests/unicase/test-u8-casefold.c: New file.
20175
20176         New module 'unicase/u32-casefold'.
20177         * lib/unicase/u32-casefold.c: New file.
20178         * modules/unicase/u32-casefold: New file.
20179
20180         New module 'unicase/u16-casefold'.
20181         * lib/unicase/u16-casefold.c: New file.
20182         * modules/unicase/u16-casefold: New file.
20183
20184         New module 'unicase/u8-casefold'.
20185         * lib/unicase/u8-casefold.c: New file.
20186         * lib/unicase/u-casefold.h: New file.
20187         * modules/unicase/u8-casefold: New file.
20188
20189         New module 'unicase/tocasefold'.
20190         * lib/unicase/casefold.h: New file.
20191         * lib/unicase/tocasefold.c: New file.
20192         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
20193         * modules/unicase/tocasefold: New file.
20194
20195         Tests for module 'unicase/u32-totitle'.
20196         * modules/unicase/u32-totitle-tests: New file.
20197         * tests/unicase/test-u32-totitle.c: New file.
20198
20199         Tests for module 'unicase/u16-totitle'.
20200         * modules/unicase/u16-totitle-tests: New file.
20201         * tests/unicase/test-u16-totitle.c: New file.
20202
20203         Tests for module 'unicase/u8-totitle'.
20204         * modules/unicase/u8-totitle-tests: New file.
20205         * tests/unicase/test-u8-totitle.c: New file.
20206
20207         New module 'unicase/u32-totitle'.
20208         * lib/unicase/u32-totitle.c: New file.
20209         * modules/unicase/u32-totitle: New file.
20210
20211         New module 'unicase/u16-totitle'.
20212         * lib/unicase/u16-totitle.c: New file.
20213         * modules/unicase/u16-totitle: New file.
20214
20215         New module 'unicase/u8-totitle'.
20216         * lib/unicase/u8-totitle.c: New file.
20217         * lib/unicase/u-totitle.h: New file.
20218         * modules/unicase/u8-totitle: New file.
20219
20220         Tests for module 'unicase/u32-tolower'.
20221         * modules/unicase/u32-tolower-tests: New file.
20222         * tests/unicase/test-u32-tolower.c: New file.
20223
20224         Tests for module 'unicase/u16-tolower'.
20225         * modules/unicase/u16-tolower-tests: New file.
20226         * tests/unicase/test-u16-tolower.c: New file.
20227
20228         Tests for module 'unicase/u8-tolower'.
20229         * modules/unicase/u8-tolower-tests: New file.
20230         * tests/unicase/test-u8-tolower.c: New file.
20231
20232         New module 'unicase/u32-tolower'.
20233         * lib/unicase/u32-tolower.c: New file.
20234         * modules/unicase/u32-tolower: New file.
20235
20236         New module 'unicase/u16-tolower'.
20237         * lib/unicase/u16-tolower.c: New file.
20238         * modules/unicase/u16-tolower: New file.
20239
20240         New module 'unicase/u8-tolower'.
20241         * lib/unicase/u8-tolower.c: New file.
20242         * modules/unicase/u8-tolower: New file.
20243
20244         Tests for module 'unicase/u32-toupper'.
20245         * modules/unicase/u32-toupper-tests: New file.
20246         * tests/unicase/test-u32-toupper.c: New file.
20247
20248         Tests for module 'unicase/u16-toupper'.
20249         * modules/unicase/u16-toupper-tests: New file.
20250         * tests/unicase/test-u16-toupper.c: New file.
20251
20252         Tests for module 'unicase/u8-toupper'.
20253         * modules/unicase/u8-toupper-tests: New file.
20254         * tests/unicase/test-u8-toupper.c: New file.
20255
20256         New module 'unicase/u32-toupper'.
20257         * lib/unicase/u32-toupper.c: New file.
20258         * modules/unicase/u32-toupper: New file.
20259
20260         New module 'unicase/u16-toupper'.
20261         * lib/unicase/u16-toupper.c: New file.
20262         * modules/unicase/u16-toupper: New file.
20263
20264         New module 'unicase/u8-toupper'.
20265         * lib/unicase/u8-toupper.c: New file.
20266         * modules/unicase/u8-toupper: New file.
20267
20268         New module 'unicase/u32-casemap'.
20269         * lib/unicase/u32-casemap.c: New file.
20270         * modules/unicase/u32-casemap: New file.
20271
20272         New module 'unicase/u16-casemap'.
20273         * lib/unicase/u16-casemap.c: New file.
20274         * modules/unicase/u16-casemap: New file.
20275
20276         New module 'unicase/u8-casemap'.
20277         * lib/unicase/unicasemap.h: New file.
20278         * lib/unicase/u8-casemap.c: New file.
20279         * lib/unicase/u-casemap.h: New file.
20280         * modules/unicase/u8-casemap: New file.
20281
20282         New module 'unicase/special-casing'.
20283         * lib/unicase/special-casing.h: New file.
20284         * lib/unicase/special-casing.c: New file.
20285         * lib/unicase/special-casing-table.gperf: New file, generated by
20286         gen-uni-tables.c.
20287         * modules/unicase/special-casing: New file.
20288
20289         Tests for module 'unicase/locale-language'.
20290         * modules/unicase/locale-language-tests: New file.
20291         * tests/unicase/test-locale-language.sh: New file.
20292         * tests/unicase/test-locale-language.c: New file.
20293
20294         New module 'unicase/locale-language'.
20295         * lib/unicase/locale-language.c: New file.
20296         * lib/unicase/locale-languages.gperf: New file.
20297         * modules/unicase/locale-language: New file.
20298
20299         Generate more tables for case conversion and case folding.
20300         * lib/gen-uni-tables.c (SCC_*): New enum items.
20301         (struct special_casing_rule): New type.
20302         (casing_rules, num_casing_rules, allocated_casing_rules): New
20303         variables.
20304         (add_casing_rule, fill_casing_rules): New functions.
20305         (struct casefold_rule): New type.
20306         (casefolding_rules, num_casefolding_rules,
20307         allocated_casefolding_rules): New variables.
20308         (fill_casefolding_rules): New function.
20309         (unicode_casefold): New variable.
20310         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
20311         sort_casing_rules, output_casing_rules): New functions.
20312         (main): Accept to more arguments: SpecialCasing.txt and
20313         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
20314         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
20315         Output mapping for casefolding.
20316
20317         * lib/unicase.h: Include stdbool.h, uninorm.h.
20318         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
20319         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
20320         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
20321         arguments.
20322         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
20323         resultp arguments.
20324         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
20325         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
20326         resultp arguments.
20327         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
20328         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
20329         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
20330         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
20331         declarations.
20332         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
20333
20334 2009-03-08  Bruno Haible  <bruno@clisp.org>
20335
20336         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20337         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
20338         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
20339         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20340
20341 2009-03-07  Bruno Haible  <bruno@clisp.org>
20342
20343         Adjust u*_normcmp, u*_normcoll API.
20344         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20345         u16_normcoll, u32_normcoll): Change failure conventions.
20346         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
20347         errno and return -1.
20348         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20349
20350 2009-03-07  Bruno Haible  <bruno@clisp.org>
20351
20352         Tests for module 'uninorm/u32-normcoll'.
20353         * modules/uninorm/u32-normcoll-tests: New file.
20354         * tests/uninorm/test-u32-normcoll.c: New file.
20355
20356         Tests for module 'uninorm/u16-normcoll'.
20357         * modules/uninorm/u16-normcoll-tests: New file.
20358         * tests/uninorm/test-u16-normcoll.c: New file.
20359
20360         Tests for module 'uninorm/u8-normcoll'.
20361         * modules/uninorm/u8-normcoll-tests: New file.
20362         * tests/uninorm/test-u8-normcoll.c: New file.
20363
20364 2009-03-07  Bruno Haible  <bruno@clisp.org>
20365
20366         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
20367         tests/uninorm/test-u32-normcmp.c.
20368         * tests/uninorm/test-u32-normcmp.c: Include it.
20369         (test_nonascii): New function, extracted from main. Add some more
20370         tests.
20371         (main): Invoke test_ascii and test_nonascii.
20372         * modules/uninorm/u32-normcmp-tests (Files): Add
20373         tests/uninorm/test-u32-normcmp.h.
20374         (Depends-on): Remove uninorm/u32-normcmp.
20375
20376         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
20377         tests/uninorm/test-u16-normcmp.c.
20378         * tests/uninorm/test-u16-normcmp.c: Include it.
20379         (test_nonascii): New function, extracted from main. Add some more
20380         tests.
20381         (main): Invoke test_ascii and test_nonascii.
20382         * modules/uninorm/u16-normcmp-tests (Files): Add
20383         tests/uninorm/test-u16-normcmp.h.
20384         (Depends-on): Remove uninorm/u16-normcmp.
20385
20386         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
20387         tests/uninorm/test-u8-normcmp.c.
20388         * tests/uninorm/test-u8-normcmp.c: Include it.
20389         (test_nonascii): New function, extracted from main. Add some more
20390         tests.
20391         (main): Invoke test_ascii and test_nonascii.
20392         * modules/uninorm/u8-normcmp-tests (Files): Add
20393         tests/uninorm/test-u8-normcmp.h.
20394         (Depends-on): Remove uninorm/u8-normcmp.
20395
20396 2009-03-07  Bruno Haible  <bruno@clisp.org>
20397
20398         New module 'uninorm/u32-normcoll'.
20399         * lib/uninorm/u32-normcoll.c: New file.
20400         * modules/uninorm/u32-normcoll: New file.
20401
20402         New module 'uninorm/u16-normcoll'.
20403         * lib/uninorm/u16-normcoll.c: New file.
20404         * modules/uninorm/u16-normcoll: New file.
20405
20406         New module 'uninorm/u8-normcoll'.
20407         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
20408         declarations.
20409         * lib/uninorm/u8-normcoll.c: New file.
20410         * lib/uninorm/u-normcoll.h: New file.
20411         * modules/uninorm/u8-normcoll: New file.
20412
20413         New module 'uninorm/u32-normxfrm'.
20414         * lib/uninorm/u32-normxfrm.c: New file.
20415         * modules/uninorm/u32-normxfrm: New file.
20416
20417         New module 'uninorm/u16-normxfrm'.
20418         * lib/uninorm/u16-normxfrm.c: New file.
20419         * modules/uninorm/u16-normxfrm: New file.
20420
20421         New module 'uninorm/u8-normxfrm'.
20422         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
20423         declarations.
20424         * lib/uninorm/u8-normxfrm.c: New file.
20425         * lib/uninorm/u-normxfrm.h: New file.
20426         * modules/uninorm/u8-normxfrm: New file.
20427
20428 2009-03-07  Bruno Haible  <bruno@clisp.org>
20429
20430         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
20431         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
20432         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
20433
20434 2009-03-07  Bruno Haible  <bruno@clisp.org>
20435
20436         New module 'memxfrm'.
20437         * lib/memxfrm.h: New file.
20438         * lib/memxfrm.c: New file.
20439         * modules/memxfrm: New file.
20440
20441 2009-03-07  Bruno Haible  <bruno@clisp.org>
20442
20443         New module 'memcmp2'.
20444         * lib/memcmp2.h: New file.
20445         * lib/memcmp2.c: New file.
20446         * modules/memcmp2: New file.
20447
20448 2009-03-07  Bruno Haible  <bruno@clisp.org>
20449
20450         Tests for module 'uninorm/decomposing-form'.
20451         * modules/uninorm/decomposing-form-tests: New file.
20452         * tests/uninorm/test-decomposing-form.c: New file.
20453
20454         New module 'uninorm/decomposing-form'.
20455         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
20456         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
20457         Add 'decomposing_variant' field.
20458         * lib/uninorm/decomposing-form.c: New file.
20459         * lib/uninorm/nfc.c (uninorm_nfc): Update.
20460         * lib/uninorm/nfd.c (uninorm_nfd): Update.
20461         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
20462         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
20463         * modules/uninorm/decomposing-form: New file.
20464         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
20465         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
20466
20467 2009-03-07  Bruno Haible  <bruno@clisp.org>
20468
20469         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
20470         strings.
20471
20472 2009-03-06  Bruno Haible  <bruno@clisp.org>
20473
20474         Tests for module 'uninorm/u32-normcmp'.
20475         * tests/uninorm/test-u32-normcmp.c: New file.
20476         * modules/uninorm/u32-normcmp-tests: New file.
20477
20478         Tests for module 'uninorm/u16-normcmp'.
20479         * tests/uninorm/test-u16-normcmp.c: New file.
20480         * modules/uninorm/u16-normcmp-tests: New file.
20481
20482         Tests for module 'uninorm/u8-normcmp'.
20483         * tests/uninorm/test-u8-normcmp.c: New file.
20484         * modules/uninorm/u8-normcmp-tests: New file.
20485
20486         New module 'uninorm/u32-normcmp'.
20487         * lib/uninorm/u32-normcmp.c: New file.
20488         * modules/uninorm/u32-normcmp: New file.
20489
20490         New module 'uninorm/u16-normcmp'.
20491         * lib/uninorm/u16-normcmp.c: New file.
20492         * modules/uninorm/u16-normcmp: New file.
20493
20494         New module 'uninorm/u8-normcmp'.
20495         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
20496         declarations.
20497         * lib/uninorm/u8-normcmp.c: New file.
20498         * lib/uninorm/u-normcmp.h: New file.
20499         * modules/uninorm/u8-normcmp: New file.
20500
20501 2009-03-06  Bruno Haible  <bruno@clisp.org>
20502
20503         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
20504         Reported by Eric Blake.
20505
20506 2009-03-06  Eric Blake  <ebb9@byu.net>
20507             Bruno Haible  <bruno@clisp.org>
20508
20509         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
20510         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
20511         condition.
20512         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20513         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
20514         condition.
20515         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20516
20517 2009-03-06  Eric Blake  <ebb9@byu.net>
20518
20519         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
20520         to avoid compiler warnings.
20521         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
20522
20523 2009-03-05  Bruno Haible  <bruno@clisp.org>
20524
20525         * tests/test-ftell.c (main): Disable test beyond end of file on
20526         FreeMiNT.
20527         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20528
20529 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
20530
20531         * lib/filevercmp.c: Move hidden files up in ordering.
20532         * tests/test-filevercmp.c: Add tests for hidden files.
20533
20534 2009-03-04  Bruno Haible  <bruno@clisp.org>
20535
20536         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
20537         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
20538         AM_CFLAGS.
20539         Reported by Simon Josefsson.
20540
20541 2009-03-03  Bruno Haible  <bruno@clisp.org>
20542
20543         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
20544         Reported by Simon Josefsson.
20545
20546         * doc/ld-version-script.texi: Update node reference.
20547
20548 2009-03-03  Bruno Haible  <bruno@clisp.org>
20549
20550         * modules/visibility (License): Change to 'unlimited'.
20551         Suggested by Simon Josefsson.
20552
20553 2009-03-03  Jim Meyering  <meyering@redhat.com>
20554
20555         unlinkdir: cannot_unlink_dir may modify process state
20556         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
20557         it's neither thread-safe nor appropriate for use in a library.
20558
20559 2009-03-03  Eric Blake  <ebb9@byu.net>
20560
20561         test-closein: silence test under Darwin
20562         * tests/test-closein.sh: Ignore stderr from cat, since we don't
20563         care if it dies from EPIPE or EBADF.
20564
20565 2009-03-03  Bruno Haible  <bruno@clisp.org>
20566
20567         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
20568         earlier.
20569         * doc/visibility.texi: Fix @node and @section.
20570
20571 2009-03-03  Simon Josefsson  <simon@josefsson.org>
20572
20573         * doc/gnulib.texi: Link to sections for ld version script and
20574         visibility.
20575         * doc/visibility.texi: Add @node and @section.
20576         * modules/ld-version-script: New module.
20577         * m4/ld-version-script.m4: New file.
20578         * doc/ld-version-script.texi: New file.
20579
20580 2009-03-02  David Lutterkort  <lutter@redhat.com>
20581
20582         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
20583         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20584
20585 2009-03-02  Bruno Haible  <bruno@clisp.org>
20586
20587         * doc/visibility.texi: Mention libtool's -export-symbols option.
20588
20589 2009-03-02  Jim Meyering  <meyering@redhat.com>
20590
20591         announce-gen: new option: --no-print-checksums
20592         * build-aux/announce-gen (usage): Describe it.
20593         (print_checksums): Print a newline here, not in the [*] footnote.
20594         (main): Honor it.
20595
20596 2009-03-01  Bruno Haible  <bruno@clisp.org>
20597
20598         Use socklen_t in the native Windows replacements prototypes.
20599         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20600         instead of 'int'.
20601         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20602         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20603         * modules/getsockopt (Depends-on): Add socklen.
20604         * modules/setsockopt (Depends-on): Add socklen.
20605
20606 2009-03-01  Bruno Haible  <bruno@clisp.org>
20607
20608         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20609         least 4.2.
20610
20611 2009-03-01  Eric Blake  <ebb9@byu.net>
20612             Bruno Haible  <bruno@clisp.org>
20613
20614         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20615         error messages.
20616         * lib/wait-process.c (wait_subprocess): Omit error message about
20617         deadly signal sent to the child of termsigp != NULL.
20618
20619 2009-03-01  Eric Blake  <ebb9@byu.net>
20620
20621         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20622
20623 2009-03-01  Bruno Haible  <bruno@clisp.org>
20624
20625         Avoid a gcc warning.
20626         * tests/test-sched.c (b): Make global.
20627         Reported by Eric Blake.
20628
20629 2009-01-19  Martin Lambers  <marlam@marlam.de>
20630
20631         Provide POSIX semantics for socket timeout options on W32.
20632         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20633         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20634         * modules/setsockopt: Depend on sys_time module for struct timeval.
20635         * modules/getsockopt: Depend on sys_time module for struct timeval.
20636
20637 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20638
20639         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20640         __USE_GNU, for consistency with netdb.in.h.
20641         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20642
20643 2009-03-01  Bruno Haible  <bruno@clisp.org>
20644
20645         More support for FreeMiNT.
20646         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20647         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20648
20649 2009-03-01  Bruno Haible  <bruno@clisp.org>
20650
20651         More support for FreeMiNT.
20652         * lib/fpurge.c (fpurge): Correct last commit.
20653         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20654
20655 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20656
20657         Fix unportable awk script in vc-list-files.
20658         * build-aux/vc-list-files: In the replacement awk script, use
20659         substr with a second argument of 1, not zero.
20660         Report by Simon Josefsson.
20661
20662 2009-02-28  Bruno Haible  <bruno@clisp.org>
20663
20664         More support for FreeMiNT.
20665         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20666         to FreeMiNT today.
20667         * lib/fwriting.c (fwriting): Likewise.
20668         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20669
20670 2009-02-28  Bruno Haible  <bruno@clisp.org>
20671
20672         * tests/test-freadseek.c (main): Disable test beyond end of file on
20673         FreeMiNT.
20674         * tests/test-ftello.c (main): Likewise.
20675         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20676
20677 2009-02-28  Bruno Haible  <bruno@clisp.org>
20678
20679         Add tentative support for FreeMiNT.
20680         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20681         * lib/fpurge.c (fpurge): Likewise.
20682         * lib/freadable.c (freadable): Likewise.
20683         * lib/freading.c (freading): Likewise.
20684         * lib/freadptr.c (freadptr): Likewise.
20685         * lib/freadseek.c (freadptrinc): Likewise.
20686         * lib/fseeko.c (rpl_fseeko): Likewise.
20687         * lib/fseterr.c (fseterr): Likewise.
20688         * lib/fwritable.c (fwritable): Likewise.
20689         * lib/fwriting.c (fwriting): Likewise.
20690         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20691         Hourihane.
20692         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20693
20694 2009-02-28  Bruno Haible  <bruno@clisp.org>
20695
20696         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20697         SIGCHLD.
20698         Reported by Jim Meyering.
20699
20700 2009-02-28  Bruno Haible  <bruno@clisp.org>
20701
20702         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20703         Mention the results of these tests on various platforms.
20704         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20705         order.
20706         * doc/posix-functions/printf.texi: Likewise.
20707         * doc/posix-functions/snprintf.texi: Likewise.
20708         * doc/posix-functions/sprintf.texi: Likewise.
20709         * doc/posix-functions/vfprintf.texi: Likewise.
20710         * doc/posix-functions/vprintf.texi: Likewise.
20711         * doc/posix-functions/vsnprintf.texi: Likewise.
20712         * doc/posix-functions/vsprintf.texi: Likewise.
20713         * doc/glibc-functions/obstack_printf.texi: Likewise.
20714         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20715
20716 2009-02-28  Bruno Haible  <bruno@clisp.org>
20717
20718         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20719         Reported by Loïc Minier <lool@dooz.org>.
20720
20721 2009-02-27  Bruno Haible  <bruno@clisp.org>
20722
20723         * gnulib-tool (func_import): Make the sed expression used to create the
20724         sed script for updating the .gitignore file POSIX compliant.
20725         Reported by Eric Blake.
20726
20727 2009-02-27  Bruno Haible  <bruno@clisp.org>
20728
20729         * gnulib-tool (sed): Don't alias as "sed --posix".
20730         Reported by Eric Blake.
20731
20732 2009-02-27  Bruno Haible  <bruno@clisp.org>
20733
20734         Avoid test link errors.
20735         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20736         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20737         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20738         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20739         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20740
20741 2009-02-27  Bruno Haible  <bruno@clisp.org>
20742
20743         Avoid spurious "(cached)" in configure output.
20744         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20745         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20746         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20747         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20748         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20749         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20750         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20751         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20752         Reported by Eric Blake.
20753
20754 2009-02-27  Eric Blake  <ebb9@byu.net>
20755
20756         printf: fix regression in previous patch
20757         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20758
20759 2009-02-27  Bruno Haible  <bruno@clisp.org>
20760
20761         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20762         value.
20763         * lib/stdint.in.h: Likewise.
20764         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20765
20766 2009-02-27  Eric Blake  <ebb9@byu.net>
20767
20768         doc: mention more functions added in cygwin 1.7.0
20769         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20770         addition.
20771         * doc/posix-functions/open_wmemstream.texi: Likewise.
20772         * doc/posix-functions/wcsnlen.texi: Likewise.
20773         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20774         * doc/posix-functions/wcstod.texi: Likewise.
20775         * doc/posix-functions/wcstof.texi: Likewise.
20776         * doc/posix-functions/wcstoimax.texi: Likewise.
20777         * doc/posix-functions/wcstok.texi: Likewise.
20778         * doc/posix-functions/wcstoumax.texi: Likewise.
20779
20780         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20781         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20782         * doc/posix-functions/fprintf.texi: Update.
20783         * doc/posix-functions/printf.texi: Update.
20784         * doc/posix-functions/snprintf.texi: Update.
20785         * doc/posix-functions/sprintf.texi: Update.
20786         * doc/posix-functions/vfprintf.texi: Update.
20787         * doc/posix-functions/vprintf.texi: Update.
20788         * doc/posix-functions/vsnprintf.texi: Update.
20789         * doc/posix-functions/vsprintf.texi: Update.
20790         * doc/glibc-functions/obstack_printf.texi: Update.
20791         * doc/glibc-functions/obstack_vprintf.texi: Update.
20792
20793 2009-02-26  Eric Blake  <ebb9@byu.net>
20794
20795         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20796         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20797         compilation bug by using runtime conversion.
20798         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20799         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20800         * modules/ceill-tests (Files): Use nan.h.
20801         * modules/floorl-tests (Files): Likewise.
20802         * modules/frexpl-tests (Files): Likewise.
20803         * modules/isnanl-tests (Files): Likewise.
20804         * modules/ldexpl-tests (Files): Likewise.
20805         * modules/roundl-tests (Files): Likewise.
20806         * modules/truncl-tests (Files): Likewise.
20807         * tests/test-ceill.c (main): Use a working NaN.
20808         * tests/test-floorl.c (main): Likewise.
20809         * tests/test-frexpl.c (main): Likewise.
20810         * tests/test-isnan.c (test_long_double): Likewise.
20811         * tests/test-isnanl.h (main): Likewise.
20812         * tests/test-ldexpl.h (main): Likewise.
20813         * tests/test-roundl.h (main): Likewise.
20814         * tests/test-truncl.h (main): Likewise.
20815         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20816
20817 2009-02-26  Eric Blake  <ebb9@byu.net>
20818             Bruno Haible  <bruno@clisp.org>
20819
20820         Work around a *printf bug with %ls on Solaris.
20821         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20822         precision is specified, sprintf stops converting the wide string
20823         argument when the number of bytes that have been produced by this
20824         conversion equals or exceeds the precision.
20825         * doc/posix-functions/fprintf.texi: Update.
20826         * doc/posix-functions/printf.texi: Update.
20827         * doc/posix-functions/snprintf.texi: Update.
20828         * doc/posix-functions/sprintf.texi: Update.
20829         * doc/posix-functions/vfprintf.texi: Update.
20830         * doc/posix-functions/vprintf.texi: Update.
20831         * doc/posix-functions/vsnprintf.texi: Update.
20832         * doc/posix-functions/vsprintf.texi: Update.
20833         * doc/glibc-functions/obstack_printf.texi: Update.
20834         * doc/glibc-functions/obstack_vprintf.texi: Update.
20835
20836 2009-02-26  Eric Blake  <ebb9@byu.net>
20837
20838         stdlib: favor compiler check of random.h
20839         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
20840         to avoid an ObjC random.h installed by Swarm.
20841
20842 2009-02-26  Bruno Haible  <bruno@clisp.org>
20843
20844         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
20845         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
20846         Reported by Gary V. Vaughan <gary@gnu.org>.
20847
20848 2009-02-26  Bruno Haible  <bruno@clisp.org>
20849
20850         Fix *printf behaviour regarding the %ls directive.
20851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
20852         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
20853         NEED_PRINTF_DIRECTIVE_LS.
20854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
20855         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20856         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20857         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
20858         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
20859         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
20860         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20861         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20862         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20863         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20864         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20865         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
20866         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20867         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20868         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20869         * doc/posix-functions/fprintf.texi: Update.
20870         * doc/posix-functions/printf.texi: Update.
20871         * doc/posix-functions/snprintf.texi: Update.
20872         * doc/posix-functions/sprintf.texi: Update.
20873         * doc/posix-functions/vfprintf.texi: Update.
20874         * doc/posix-functions/vprintf.texi: Update.
20875         * doc/posix-functions/vsnprintf.texi: Update.
20876         * doc/posix-functions/vsprintf.texi: Update.
20877         * doc/glibc-functions/obstack_printf.texi: Update.
20878         * doc/glibc-functions/obstack_vprintf.texi: Update.
20879         Reported by Eric Blake.
20880
20881 2009-02-25  Bruno Haible  <bruno@clisp.org>
20882
20883         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
20884         with known value.
20885         Reported by Gary V. Vaughan <gary@gnu.org>.
20886
20887 2009-02-25  Bruno Haible  <bruno@clisp.org>
20888
20889         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
20890         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
20891         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
20892         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
20893         Reported by Gary V. Vaughan <gary@gnu.org>.
20894
20895 2009-02-25  Bruno Haible  <bruno@clisp.org>
20896
20897         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
20898         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
20899         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
20900         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
20901         Reported by Gary V. Vaughan <gary@gnu.org>.
20902
20903 2009-02-25  Eric Blake  <ebb9@byu.net>
20904
20905         tests: skip fseek/ftell tests if ungetc is broken
20906         * m4/ungetc.m4: New file.
20907         * modules/fseek-tests: Split test, so ungetc dependency is
20908         separate from rest of test.
20909         * modules/fseeko-tests: Likewise.
20910         * modules/ftell-tests: Likewise.
20911         * modules/ftello-tests: Likewise.
20912         * tests/test-fseek.c (main): Isolate ungetc dependency.
20913         * tests/test-fseeko.c (main): Likewise.
20914         * tests/test-ftell.c (main): Likewise.
20915         * tests/test-ftello.c (main): Likewise.
20916         * tests/test-fseek2.sh: New file.
20917         * tests/test-fseeko2.sh: Likewise.
20918         * tests/test-ftell2.sh: Likewise.
20919         * tests/test-ftello2.sh: Likewise.
20920
20921 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
20922
20923         test-getaddrinfo: fix usage of skip return code 77
20924         * tests/test-gettaddrinfo.c: Return skip code 77 only
20925         for first occurance of skip (4x77 is not 77)
20926
20927 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
20928
20929         strtod: avoid C99 decl-after-statement
20930         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
20931
20932 2009-02-24  Eric Blake  <ebb9@byu.net>
20933
20934         strtod: detect HP-UX 11.31 bug
20935         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
20936         Reported by Gary V. Vaughan.
20937
20938 2009-02-23  Bruno Haible  <bruno@clisp.org>
20939
20940         Fix invalid read past end of memory block.
20941         * lib/vasnprintf.c (DCHAR_SET): Define.
20942         (local_wcslen): Define only when needed.
20943         (local_strnlen, local_wcsnlen): New functions.
20944         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
20945         directives that involve a conversion ourselves.
20946         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
20947         wcsnlen, mbrtowc, wcrtomb.
20948         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
20949         * tests/test-vasprintf-posix.c (test_function): Likewise.
20950         * tests/test-snprintf-posix.h (test_function): Likewise.
20951         * tests/test-sprintf-posix.h (test_function): Likewise.
20952         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20953
20954 2009-02-22  Bruno Haible  <bruno@clisp.org>
20955
20956         Implement new clarified decomposition of Hangul syllables.
20957         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
20958         of type LTV, return only a pairwise decomposition.
20959         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
20960         Likewise.
20961         * tests/uninorm/test-decomposition.c (main): Updated expected result.
20962         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
20963         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
20964
20965 2009-02-22  Bruno Haible  <bruno@clisp.org>
20966
20967         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
20968         zero-length results and shrink excess allocated memory.
20969         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
20970         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
20971         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
20972         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
20973         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
20974         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
20975         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
20976         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
20977         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
20978         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
20979         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
20980         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
20981
20982 2009-02-21  Bruno Haible  <bruno@clisp.org>
20983
20984         * doc/gnulib.texi: Include safe-alloc.texi earlier.
20985         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
20986         spaces after a period. Put a space between a macro name and its
20987         argument list. Trivial rewordings.
20988         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
20989         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
20990         (main): Return 0 explicitly.
20991
20992 2009-02-21  Bruno Haible  <bruno@clisp.org>
20993
20994         Tests for module 'uninorm/filter'.
20995         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
20996         * modules/uninorm/filter-tests: New file.
20997
20998         New module 'uninorm/filter'.
20999         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
21000         uninorm_filter_flush, uninorm_filter_free): New declarations.
21001         * lib/uninorm/uninorm-filter.c: New file.
21002         * modules/uninorm/filter: New file.
21003
21004 2009-02-21  Bruno Haible  <bruno@clisp.org>
21005
21006         Tests for module 'uninorm/nfkc'.
21007         * tests/uninorm/test-nfkc.c: New file.
21008         * tests/uninorm/test-u8-nfkc.c: New file.
21009         * tests/uninorm/test-u16-nfkc.c: New file.
21010         * tests/uninorm/test-u32-nfkc.c: New file.
21011         * tests/uninorm/test-u32-nfkc-big.sh: New file.
21012         * tests/uninorm/test-u32-nfkc-big.c: New file.
21013         * modules/uninorm/nfkc-tests: New file.
21014
21015         New module 'uninorm/nfkc'.
21016         * lib/uninorm/nfkc.c: New file.
21017         * modules/uninorm/nfkc: New file.
21018
21019         Tests for module 'uninorm/nfkd'.
21020         * tests/uninorm/test-nfkd.c: New file.
21021         * tests/uninorm/test-u8-nfkd.c: New file.
21022         * tests/uninorm/test-u16-nfkd.c: New file.
21023         * tests/uninorm/test-u32-nfkd.c: New file.
21024         * tests/uninorm/test-u32-nfkd-big.sh: New file.
21025         * tests/uninorm/test-u32-nfkd-big.c: New file.
21026         * modules/uninorm/nfkd-tests: New file.
21027
21028         New module 'uninorm/nfkd'.
21029         * lib/uninorm/nfkd.c: New file.
21030         * modules/uninorm/nfkd: New file.
21031
21032         Tests for module 'uninorm/nfc'.
21033         * tests/uninorm/test-nfc.c: New file.
21034         * tests/uninorm/test-u8-nfc.c: New file.
21035         * tests/uninorm/test-u16-nfc.c: New file.
21036         * tests/uninorm/test-u32-nfc.c: New file.
21037         * tests/uninorm/test-u32-nfc-big.sh: New file.
21038         * tests/uninorm/test-u32-nfc-big.c: New file.
21039         * modules/uninorm/nfc-tests: New file.
21040
21041         New module 'uninorm/nfc'.
21042         * lib/uninorm/nfc.c: New file.
21043         * modules/uninorm/nfc: New file.
21044
21045         Tests for module 'uninorm/nfd'.
21046         * tests/uninorm/test-nfd.c: New file.
21047         * tests/uninorm/test-u8-nfd.c: New file.
21048         * tests/uninorm/test-u16-nfd.c: New file.
21049         * tests/uninorm/test-u32-nfd.c: New file.
21050         * tests/uninorm/test-u32-nfd-big.sh: New file.
21051         * tests/uninorm/test-u32-nfd-big.c: New file.
21052         * tests/uninorm/test-u32-normalize-big.h: New file.
21053         * tests/uninorm/test-u32-normalize-big.c: New file.
21054         * tests/uninorm/NormalizationTest.txt: New file, created from
21055         Unicode 5.1.0 NormalizationTest.txt.
21056         * modules/uninorm/nfd-tests: New file.
21057
21058         New module 'uninorm/nfd'.
21059         * lib/uninorm/nfd.c: New file.
21060         * modules/uninorm/nfd: New file.
21061
21062         New module 'uninorm/u32-normalize'.
21063         * lib/uninorm/u32-normalize.c: New file.
21064         * modules/uninorm/u32-normalize: New file.
21065
21066         New module 'uninorm/u16-normalize'.
21067         * lib/uninorm/u16-normalize.c: New file.
21068         * modules/uninorm/u16-normalize: New file.
21069
21070         New module 'uninorm/u8-normalize'.
21071         * lib/uninorm/u8-normalize.c: New file.
21072         * lib/uninorm/normalize-internal.h: New file.
21073         * lib/uninorm/u-normalize-internal.h: New file.
21074         * modules/uninorm/u8-normalize: New file.
21075
21076         New module 'uninorm/decompose-internal'.
21077         * lib/uninorm/decompose-internal.c: New file.
21078         * modules/uninorm/decompose-internal: New file.
21079
21080         Tests for module 'uninorm/composition'.
21081         * tests/uninorm/test-composition.c: New file.
21082         * modules/uninorm/composition-tests: New file.
21083
21084         New module 'uninorm/composition'.
21085         * lib/uninorm/composition.c: New file.
21086         * lib/uninorm/composition-table.gperf: New file, generated by
21087         gen-uni-tables.
21088         * modules/uninorm/composition: New file.
21089
21090         Tests for module 'uninorm/compat-decomposition'.
21091         * tests/uninorm/test-compat-decomposition.c: New file.
21092         * modules/uninorm/compat-decomposition-tests: New file.
21093
21094         New module 'uninorm/compat-decomposition'.
21095         * lib/uninorm/decompose-internal.h: New file.
21096         * lib/uninorm/compat-decomposition.c: New file.
21097         * modules/uninorm/compat-decomposition: New file.
21098
21099         Tests for module 'uninorm/canonical-decomposition'.
21100         * tests/uninorm/test-canonical-decomposition.c: New file.
21101         * modules/uninorm/canonical-decomposition-tests: New file.
21102
21103         New module 'uninorm/canonical-decomposition'.
21104         * lib/uninorm/canonical-decomposition.c: New file.
21105         * modules/uninorm/canonical-decomposition: New file.
21106
21107         Tests for module 'uninorm/decomposition'.
21108         * tests/uninorm/test-decomposition.c: New file.
21109         * modules/uninorm/decomposition-tests: New file.
21110
21111         New module 'uninorm/decomposition'.
21112         * lib/uninorm/decomposition.c: New file.
21113         * modules/uninorm/decomposition: New file.
21114
21115         New module 'uninorm/decomposition-table'.
21116         * lib/uninorm/decomposition-table.h: New file.
21117         * lib/uninorm/decomposition-table.c: New file.
21118         * lib/uninorm/decomposition-table1.h: New file, generated by
21119         gen-uni-tables.
21120         * lib/uninorm/decomposition-table2.h: New file, generated by
21121         gen-uni-tables.
21122         * modules/uninorm/decomposition-table: New file.
21123
21124         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
21125         (UC_DECOMP_*): New enumeration items.
21126         (get_decomposition): New function.
21127         (struct decomp_table): New type.
21128         (output_decomposition, output_decomposition_tables): New functions.
21129         (unicode_composition_exclusions): New variable.
21130         (fill_composition_exclusions, debug_output_composition_tables): New
21131         functions.
21132         (main): Accept one more argument. Invoke fill_composition_exclusions.
21133         Output decomposition and composition tables.
21134
21135         New module 'uninorm/base'.
21136         * lib/uninorm.h: New file.
21137         * lib/unictype.h: Update comment.
21138         * modules/uninorm/base: New file.
21139
21140 2009-02-21  David Lutterkort  <lutter@redhat.com>
21141
21142         Tests for module 'safe-alloc'.
21143         * tests/test-safe-alloc.c: New file.
21144         * modules/safe-alloc-tests: New file.
21145
21146         New module 'safe-alloc'.
21147         * lib/safe-alloc.h: New file.
21148         * lib/safe-alloc.c: New file.
21149         * m4/safe-alloc.m4: New file.
21150         * modules/safe-alloc: New file.
21151         * doc/safe-alloc.texi: New file.
21152         * doc/gnulib.texi: Include it.
21153         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21154         safe-alloc.
21155
21156 2009-02-18  Bruno Haible  <bruno@clisp.org>
21157
21158         Fix link error on non-glibc systems.
21159         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
21160         variable.
21161         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21162
21163 2009-02-18  Jim Meyering  <meyering@redhat.com>
21164
21165         fts: avoid used-uninitialized error due to recent change
21166         * lib/fts.c (fts_read): Guard uses of the new member,
21167         parent->fts_n_dirs_remaining, since it's not relevant for
21168         the parent of a directory specified on the command-line.
21169
21170 2009-02-17  James Youngman  <jay@gnu.org>
21171             Bruno Haible  <bruno@clisp.org>
21172
21173         * m4/include_next.m4: Reformulate comment.
21174
21175 2009-02-16  Jim Meyering  <meyering@redhat.com>
21176
21177         fts: add #if guards so that the fts_lgpl module still builds
21178         * lib/fts.c: Guard just-added hash-table-using parts with
21179         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
21180         Reported by Simon Josefsson.
21181
21182 2009-02-15  Bruno Haible  <bruno@clisp.org>
21183
21184         * modules/array-mergesort-tests: New file.
21185         * tests/test-array-mergesort.c: New file.
21186
21187         New module 'array-mergesort'.
21188         * modules/array-mergesort: New file.
21189         * lib/array-mergesort.h: New file.
21190
21191 2009-02-15  Bruno Haible  <bruno@clisp.org>
21192
21193         Fix 2009-02-07 commit.
21194         * lib/gen-uni-tables.c (output_predicate, output_category,
21195         output_combclass, output_bidi_category, output_decimal_digit,
21196         output_digit, output_numeric, output_mirror, output_scripts,
21197         output_ident_category, output_simple_mapping): Fix format directives.
21198         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
21199
21200 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
21201
21202         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
21203         fixes are available from IBM.
21204
21205 2009-02-13  Jim Meyering  <meyering@redhat.com>
21206
21207         fts: arrange not to stat non-directories in more cases
21208         This makes GNU find (when it doesn't need to stat each file)
21209         *much* more efficient at traversing reiserfs file systems.
21210         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
21211         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
21212         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
21213         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
21214         (leaf_optimization_applies): New function.
21215         (LCO_hash, LCO_compare): New helper functions.
21216         (link_count_optimize_ok): New function.
21217         (fts_stat): Initialize new member (if dir).
21218         (fts_read): Decrement parent's fts_n_dirs_remaining count if
21219         we've just stat'ed a directory.  Skip the stat call when possible.
21220         ---
21221         Note this AFS-related exchange:
21222         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
21223         and note find's pioctl call in find/fstype.c.
21224         But that is necessary only if you want to enable the
21225         optimization for AFS, and for now, I don't.
21226
21227         fts: move a function definition "up" (no semantic change)
21228         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
21229         "up" to precede upcoming use of a related function.
21230
21231 2009-02-11  Jim Meyering  <meyering@redhat.com>
21232
21233         fts: correct internal computation of nlinks (optimization-related)
21234         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
21235         whether the current entry is a directory, so don't test it.
21236
21237 2009-02-10  Bruno Haible  <bruno@clisp.org>
21238
21239         Tests for module 'uniwbrk/ulc-wordbreaks'.
21240         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
21241         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
21242         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
21243
21244         Tests for module 'uniwbrk/u32-wordbreaks'.
21245         * modules/uniwbrk/u32-wordbreaks-tests: New file.
21246         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
21247
21248         Tests for module 'uniwbrk/u16-wordbreaks'.
21249         * modules/uniwbrk/u16-wordbreaks-tests: New file.
21250         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
21251
21252         Tests for module 'uniwbrk/u8-wordbreaks'.
21253         * modules/uniwbrk/u8-wordbreaks-tests: New file.
21254         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
21255
21256 2009-02-10  Bruno Haible  <bruno@clisp.org>
21257
21258         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
21259         property.
21260         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
21261         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
21262         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
21263
21264 2009-02-10  Simon Josefsson  <simon@josefsson.org>
21265
21266         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
21267         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
21268
21269 2009-02-10  Bruno Haible  <bruno@clisp.org>
21270
21271         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
21272         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
21273         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
21274         * lib/unilbrk/u8-possible-linebreaks.c: Update.
21275         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
21276         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
21277
21278 2009-02-09  Simon Josefsson  <simon@josefsson.org>
21279
21280         * lib/sockets.h (gl_fd_to_handle): New function.
21281
21282         * tests/test-sockets.c: Call gl_fd_to_handle.
21283
21284 2009-02-09  Bruno Haible  <bruno@clisp.org>
21285
21286         * doc/havelib.texi: Document the conventions on bi-arch systems.
21287
21288 2009-02-08  Bruno Haible  <bruno@clisp.org>
21289
21290         Document the AC_LIB_LINKFLAGS macro.
21291         * doc/havelib.texi: New file, mostly written on 2005-05-24.
21292         * doc/gnulib.texi: Include it.
21293
21294 2009-02-08  Bruno Haible  <bruno@clisp.org>
21295
21296         Fix wrong order of sections, compared to TOC.
21297         * doc/gnulib.texi: Include relocatable-maint.texi after the
21298         "Regular expressions" node, not before.
21299
21300 2009-02-08  Bruno Haible  <bruno@clisp.org>
21301
21302         Tests for module 'unicase/totitle'.
21303         * modules/unicase/totitle-tests: New file.
21304
21305         Tests for module 'unicase/tolower'.
21306         * modules/unicase/tolower-tests: New file.
21307
21308         Tests for module 'unicase/toupper'.
21309         * modules/unicase/toupper-tests: New file.
21310         * tests/unicase/test-mapping-part1.h: New file.
21311         * tests/unicase/test-mapping-part2.h: New file.
21312
21313         New module 'unicase/totitle'.
21314         * modules/unicase/totitle: New file.
21315         * lib/unicase/totitle.c: New file.
21316
21317         New module 'unicase/tolower'.
21318         * modules/unicase/tolower: New file.
21319         * lib/unicase/tolower.c: New file.
21320
21321         New module 'unicase/toupper'.
21322         * modules/unicase/toupper: New file.
21323         * lib/unicase/toupper.c: New file.
21324         * lib/unicase/simple-mapping.h: New file.
21325
21326         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
21327         (mapping_table): New structure.
21328         (output_simple_mapping): New function.
21329         (main): Invoke output_simple_mapping_test and output_simple_mapping.
21330         * modules/gen-uni-tables (Description): Update.
21331         * lib/unicase/toupper.h: New file, automatically generated by
21332         gen-uni-tables.
21333         * lib/unicase/tolower.h: New file, automatically generated by
21334         gen-uni-tables.
21335         * lib/unicase/totitle.h: New file, automatically generated by
21336         gen-uni-tables.
21337         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
21338         gen-uni-tables.
21339         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
21340         gen-uni-tables.
21341         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
21342         gen-uni-tables.
21343
21344         New module 'unicase/base'.
21345         * modules/unicase/base: New file.
21346         * lib/unicase.h: New file.
21347
21348 2009-02-08  Bruno Haible  <bruno@clisp.org>
21349
21350         New module 'uniwbrk/ulc-wordbreaks'.
21351         * modules/uniwbrk/ulc-wordbreaks: New file.
21352         * lib/uniwbrk/ulc-wordbreaks.c: New file.
21353
21354         New module 'uniwbrk/u32-wordbreaks'.
21355         * modules/uniwbrk/u32-wordbreaks: New file.
21356         * lib/uniwbrk/u32-wordbreaks.c: New file.
21357
21358         New module 'uniwbrk/u16-wordbreaks'.
21359         * modules/uniwbrk/u16-wordbreaks: New file.
21360         * lib/uniwbrk/u16-wordbreaks.c: New file.
21361
21362         New module 'uniwbrk/u8-wordbreaks'.
21363         * modules/uniwbrk/u8-wordbreaks: New file.
21364         * lib/uniwbrk/u8-wordbreaks.c: New file.
21365         * lib/uniwbrk/u-wordbreaks.h: New file.
21366
21367         New module 'uniwbrk/table'.
21368         * modules/uniwbrk/table: New file.
21369         * lib/uniwbrk/wbrktable.h: New file.
21370         * lib/uniwbrk/wbrktable.c: New file.
21371
21372         New module 'uniwbrk/wordbreak-property'.
21373         * modules/uniwbrk/wordbreak-property: New file.
21374         * lib/uniwbrk/wordbreak-property.c: New file.
21375
21376         * lib/gen-uni-tables.c (WBP_*): New enum items.
21377         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
21378         (unicode_org_wbp): New variable.
21379         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
21380         New functions.
21381         (wbp_table): New structure.
21382         (output_wbp, output_wbrk_tables): New functions.
21383         (main): Accept additional argument. Invoke fill_org_wbp,
21384         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
21385         output_wbrk_tables.
21386         * modules/gen-uni-tables (Description): Update.
21387         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
21388         gen-uni-tables.
21389
21390         New module 'uniwbrk/base'.
21391         * modules/uniwbrk/base: New file.
21392         * lib/uniwbrk.h: New file.
21393
21394 2009-02-08  Bruno Haible  <bruno@clisp.org>
21395
21396         Update to Unicode 5.1.0.
21397         * lib/gen-uni-tables.c (is_property_alphabetic): Include
21398         U+2185..U+2188.
21399         (is_property_default_ignorable_code_point): Don't include characters
21400         of category Cc or Cs and not-a-characters.
21401         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
21402         U+0D79, U+109E, U+109F, U+A60C.
21403         * lib/unictype/bidi_of.h: Regenerated.
21404         * lib/unictype/blocks.h: Regenerated.
21405         * lib/unictype/categ_C.h: Regenerated.
21406         * lib/unictype/categ_Cf.h: Regenerated.
21407         * lib/unictype/categ_Cn.h: Regenerated.
21408         * lib/unictype/categ_L.h: Regenerated.
21409         * lib/unictype/categ_Ll.h: Regenerated.
21410         * lib/unictype/categ_Lm.h: Regenerated.
21411         * lib/unictype/categ_Lo.h: Regenerated.
21412         * lib/unictype/categ_Lu.h: Regenerated.
21413         * lib/unictype/categ_M.h: Regenerated.
21414         * lib/unictype/categ_Mc.h: Regenerated.
21415         * lib/unictype/categ_Me.h: Regenerated.
21416         * lib/unictype/categ_Mn.h: Regenerated.
21417         * lib/unictype/categ_N.h: Regenerated.
21418         * lib/unictype/categ_Nd.h: Regenerated.
21419         * lib/unictype/categ_Nl.h: Regenerated.
21420         * lib/unictype/categ_No.h: Regenerated.
21421         * lib/unictype/categ_P.h: Regenerated.
21422         * lib/unictype/categ_Pd.h: Regenerated.
21423         * lib/unictype/categ_Pe.h: Regenerated.
21424         * lib/unictype/categ_Pf.h: Regenerated.
21425         * lib/unictype/categ_Pi.h: Regenerated.
21426         * lib/unictype/categ_Po.h: Regenerated.
21427         * lib/unictype/categ_Ps.h: Regenerated.
21428         * lib/unictype/categ_S.h: Regenerated.
21429         * lib/unictype/categ_Sk.h: Regenerated.
21430         * lib/unictype/categ_Sm.h: Regenerated.
21431         * lib/unictype/categ_So.h: Regenerated.
21432         * lib/unictype/categ_of.h: Regenerated.
21433         * lib/unictype/combining.h: Regenerated.
21434         * lib/unictype/ctype_alnum.h: Regenerated.
21435         * lib/unictype/ctype_alpha.h: Regenerated.
21436         * lib/unictype/ctype_graph.h: Regenerated.
21437         * lib/unictype/ctype_lower.h: Regenerated.
21438         * lib/unictype/ctype_print.h: Regenerated.
21439         * lib/unictype/ctype_punct.h: Regenerated.
21440         * lib/unictype/ctype_upper.h: Regenerated.
21441         * lib/unictype/decdigit.h: Regenerated.
21442         * lib/unictype/digit.h: Regenerated.
21443         * lib/unictype/mirror.h: Regenerated.
21444         * lib/unictype/numeric.h: Regenerated.
21445         * lib/unictype/pr_alphabetic.h: Regenerated.
21446         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
21447         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
21448         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
21449         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
21450         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
21451         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
21452         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
21453         * lib/unictype/pr_combining.h: Regenerated.
21454         * lib/unictype/pr_dash.h: Regenerated.
21455         * lib/unictype/pr_decimal_digit.h: Regenerated.
21456         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
21457         * lib/unictype/pr_deprecated.h: Regenerated.
21458         * lib/unictype/pr_diacritic.h: Regenerated.
21459         * lib/unictype/pr_extender.h: Regenerated.
21460         * lib/unictype/pr_format_control.h: Regenerated.
21461         * lib/unictype/pr_grapheme_base.h: Regenerated.
21462         * lib/unictype/pr_grapheme_extend.h: Regenerated.
21463         * lib/unictype/pr_grapheme_link.h: Regenerated.
21464         * lib/unictype/pr_id_continue.h: Regenerated.
21465         * lib/unictype/pr_id_start.h: Regenerated.
21466         * lib/unictype/pr_ideographic.h: Regenerated.
21467         * lib/unictype/pr_ignorable_control.h: Regenerated.
21468         * lib/unictype/pr_lowercase.h: Regenerated.
21469         * lib/unictype/pr_math.h: Regenerated.
21470         * lib/unictype/pr_numeric.h: Regenerated.
21471         * lib/unictype/pr_other_alphabetic.h: Regenerated.
21472         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
21473         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
21474         * lib/unictype/pr_other_id_continue.h: Regenerated.
21475         * lib/unictype/pr_other_lowercase.h: Regenerated.
21476         * lib/unictype/pr_other_math.h: Regenerated.
21477         * lib/unictype/pr_punctuation.h: Regenerated.
21478         * lib/unictype/pr_sentence_terminal.h: Regenerated.
21479         * lib/unictype/pr_soft_dotted.h: Regenerated.
21480         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
21481         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
21482         * lib/unictype/pr_unified_ideograph.h: Regenerated.
21483         * lib/unictype/pr_uppercase.h: Regenerated.
21484         * lib/unictype/pr_xid_continue.h: Regenerated.
21485         * lib/unictype/pr_xid_start.h: Regenerated.
21486         * lib/unictype/pr_zero_width.h: Regenerated.
21487         * lib/unictype/scripts.h: Regenerated.
21488         * lib/unictype/scripts_byname.gperf: Regenerated.
21489         * lib/unictype/sy_java_ident.h: Regenerated.
21490         * lib/unilbrk/lbrkprop1.h: Regenerated.
21491         * lib/unilbrk/lbrkprop2.h: Regenerated.
21492         * tests/unictype/test-categ_C.c: Regenerated.
21493         * tests/unictype/test-categ_Cf.c: Regenerated.
21494         * tests/unictype/test-categ_Cn.c: Regenerated.
21495         * tests/unictype/test-categ_L.c: Regenerated.
21496         * tests/unictype/test-categ_Ll.c: Regenerated.
21497         * tests/unictype/test-categ_Lm.c: Regenerated.
21498         * tests/unictype/test-categ_Lo.c: Regenerated.
21499         * tests/unictype/test-categ_Lu.c: Regenerated.
21500         * tests/unictype/test-categ_M.c: Regenerated.
21501         * tests/unictype/test-categ_Mc.c: Regenerated.
21502         * tests/unictype/test-categ_Me.c: Regenerated.
21503         * tests/unictype/test-categ_Mn.c: Regenerated.
21504         * tests/unictype/test-categ_N.c: Regenerated.
21505         * tests/unictype/test-categ_Nd.c: Regenerated.
21506         * tests/unictype/test-categ_Nl.c: Regenerated.
21507         * tests/unictype/test-categ_No.c: Regenerated.
21508         * tests/unictype/test-categ_P.c: Regenerated.
21509         * tests/unictype/test-categ_Pd.c: Regenerated.
21510         * tests/unictype/test-categ_Pe.c: Regenerated.
21511         * tests/unictype/test-categ_Pf.c: Regenerated.
21512         * tests/unictype/test-categ_Pi.c: Regenerated.
21513         * tests/unictype/test-categ_Po.c: Regenerated.
21514         * tests/unictype/test-categ_Ps.c: Regenerated.
21515         * tests/unictype/test-categ_S.c: Regenerated.
21516         * tests/unictype/test-categ_Sk.c: Regenerated.
21517         * tests/unictype/test-categ_Sm.c: Regenerated.
21518         * tests/unictype/test-categ_So.c: Regenerated.
21519         * tests/unictype/test-ctype_alnum.c: Regenerated.
21520         * tests/unictype/test-ctype_alpha.c: Regenerated.
21521         * tests/unictype/test-ctype_graph.c: Regenerated.
21522         * tests/unictype/test-ctype_lower.c: Regenerated.
21523         * tests/unictype/test-ctype_print.c: Regenerated.
21524         * tests/unictype/test-ctype_punct.c: Regenerated.
21525         * tests/unictype/test-ctype_upper.c: Regenerated.
21526         * tests/unictype/test-decdigit.h: Regenerated.
21527         * tests/unictype/test-digit.h: Regenerated.
21528         * tests/unictype/test-numeric.h: Regenerated.
21529         * tests/unictype/test-pr_alphabetic.c: Regenerated.
21530         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
21531         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
21532         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
21533         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
21534         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
21535         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
21536         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
21537         * tests/unictype/test-pr_combining.c: Regenerated.
21538         * tests/unictype/test-pr_dash.c: Regenerated.
21539         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
21540         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
21541         * tests/unictype/test-pr_deprecated.c: Regenerated.
21542         * tests/unictype/test-pr_diacritic.c: Regenerated.
21543         * tests/unictype/test-pr_extender.c: Regenerated.
21544         * tests/unictype/test-pr_format_control.c: Regenerated.
21545         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
21546         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
21547         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
21548         * tests/unictype/test-pr_id_continue.c: Regenerated.
21549         * tests/unictype/test-pr_id_start.c: Regenerated.
21550         * tests/unictype/test-pr_ideographic.c: Regenerated.
21551         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
21552         * tests/unictype/test-pr_lowercase.c: Regenerated.
21553         * tests/unictype/test-pr_math.c: Regenerated.
21554         * tests/unictype/test-pr_numeric.c: Regenerated.
21555         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
21556         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
21557         Regenerated.
21558         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
21559         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
21560         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
21561         * tests/unictype/test-pr_other_math.c: Regenerated.
21562         * tests/unictype/test-pr_punctuation.c: Regenerated.
21563         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
21564         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
21565         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
21566         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
21567         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
21568         * tests/unictype/test-pr_uppercase.c: Regenerated.
21569         * tests/unictype/test-pr_xid_continue.c: Regenerated.
21570         * tests/unictype/test-pr_xid_start.c: Regenerated.
21571         * tests/unictype/test-pr_zero_width.c: Regenerated.
21572
21573         Update to Unicode 5.1.0.
21574         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
21575         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
21576         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
21577         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
21578         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
21579         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
21580         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
21581         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
21582         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
21583         (nonspacing_table_ind): Update.
21584         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21585
21586         Update to Unicode 5.1.0.
21587         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21588         code transform.
21589         * lib/uniname/uniname.c (unicode_character_name,
21590         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21591         * lib/uniname/uninames.h: Regenerated.
21592         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21593
21594 2009-02-07  Bruno Haible  <bruno@clisp.org>
21595
21596         Merge gen-ctype and gen-lbrk into a single program.
21597         * lib/gen-uni-tables.c: New file, incorporating
21598         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21599         Add directory prefixes to the names of the generated files.
21600         * lib/unictype/gen-ctype.c: Remove file.
21601         * lib/unilbrk/gen-lbrk.c: Remove file.
21602         * modules/gen-uni-tables: New file.
21603         * modules/unictype/gen-ctype: Remove file.
21604         * modules/unilbrk/gen-lbrk: Remove file.
21605
21606 2009-02-07  Bruno Haible  <bruno@clisp.org>
21607
21608         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21609
21610         New module 'unistr/u32-strcoll'.
21611         * modules/unistr/u32-strcoll: New file.
21612         * lib/unistr/u32-strcoll.c: New file.
21613
21614         New module 'unistr/u16-strcoll'.
21615         * modules/unistr/u16-strcoll: New file.
21616         * lib/unistr/u16-strcoll.c: New file.
21617
21618         New module 'unistr/u8-strcoll'.
21619         * modules/unistr/u8-strcoll: New file.
21620         * lib/unistr/u8-strcoll.c: New file.
21621         * lib/unistr/u-strcoll.h: New file.
21622
21623 2009-02-07  Bruno Haible  <bruno@clisp.org>
21624
21625         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21626         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21627         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21628         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21629         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21630         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21631
21632 2009-02-07  Bruno Haible  <bruno@clisp.org>
21633
21634         Make 64-bit clean.
21635         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21636         output_combclass, output_bidi_category, output_decimal_digit,
21637         output_digit, output_numeric, output_mirror, output_scripts,
21638         output_ident_category): Use proper width specifier in format strings.
21639
21640 2009-02-07  Bruno Haible  <bruno@clisp.org>
21641
21642         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21643         failure behaviour.
21644
21645 2009-02-07  Jim Meyering  <meyering@redhat.com>
21646
21647         regex: avoid compilation failure with upcoming gcc-4.4
21648         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21649         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21650         "... error: integer overflow in preprocessor expression".
21651
21652 2009-02-05  Ben Pfaff  <blp@gnu.org>
21653
21654         Fix link errors on Windows when close module is used.
21655         * modules/close: Add $(LIB_CLOSE) to Link section.
21656         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21657         $(LIB_CLOSE) on Windows.
21658
21659 2009-02-05  Jim Meyering  <meyering@redhat.com>
21660
21661         still avoid unused-parameter warnings, but do it cleanly
21662         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21663         (get_fs_usage): Cast to void instead.
21664         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21665         (dev_from_mount_options, read_file_system_list): Cast to void.
21666         Prompted by Bruno Haible.
21667
21668 2009-02-04  Jim Meyering  <meyering@redhat.com>
21669
21670         fsusage.c: correct copyright year
21671         * lib/fsusage.c: Reflect year in which the change is pushed into
21672
21673         avoid misc. warnings
21674         * lib/fsusage.c (UNUSED_PARAM): Define.
21675         (get_fs_usage): Mark parameter "disk" as unused.
21676         * lib/getugroups.c (getgrent): Use "void" in prototype.
21677         * lib/mountlist.c: Mark unused parameters.
21678         (read_file_system_list): Declare a local with "const".
21679         * lib/nanosleep.c (getnow): Declare static.
21680         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21681
21682         dirfd: set errno upon failure
21683         * lib/dirfd.c: Include <errno.h>.
21684         Set errno to ENOTSUP when returning -1.
21685         * modules/dirfd (Depends-on): Add errno.
21686         Suggested by John Kodis <kodis@comcast.net>.
21687
21688 2009-02-01  Bruno Haible  <bruno@clisp.org>
21689
21690         Don't assume sizeof (long) >= sizeof (void *).
21691         * lib/memcmp.c: Include stdint.h.
21692         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21693         srcp2 to 'const byte *'.
21694         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21695         types to uintptr_t.
21696         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21697         * modules/memcmp (Depends-on): Add stdint.
21698         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21699
21700 2009-01-30  Eric Blake  <ebb9@byu.net>
21701
21702         fix more require-before-expand issues
21703         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21704         expand, AC_PROG_AWK.
21705         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21706
21707 2009-01-28  Eric Blake  <ebb9@byu.net>
21708
21709         version-etc: use consistent URL formatting
21710         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21711         Improve formatting.  Use fputs for string without %.
21712
21713 2009-01-28  Jim Meyering  <meyering@redhat.com>
21714
21715         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21716         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21717         "underquoted definition of NAME" from autoconf-2.59.
21718
21719 2009-01-28  Bruno Haible  <bruno@clisp.org>
21720
21721         * doc/gnulib.texi: Add "Obsolete modules" to index.
21722
21723 2009-01-28  Jim Meyering  <meyering@redhat.com>
21724
21725         useless-if-before-free: recognize more variants
21726         * build-aux/useless-if-before-free: Also recognize e.g.,
21727         if (NULL != p) free (p);
21728
21729 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21730
21731         test-getaddrinfo: skip (don't fail) this test when there's no network
21732         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21733         on the presumption that it means you lack network access.
21734
21735 2009-01-26  Jim Meyering  <meyering@redhat.com>
21736
21737         fflush: avoid warnings on modern systems
21738         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21739         pos and result, into scopes where they're used.
21740
21741 2009-01-26  Eric Blake  <ebb9@byu.net>
21742
21743         Silence warning reintroduced by recent extensions patch.
21744         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21745         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21746         autoconf.
21747
21748         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21749         * m4/00gnulib.m4: New file.
21750         * gnulib-tool (func_get_filelist): Always use it.
21751         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21752         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21753
21754 2009-01-25  Bruno Haible  <bruno@clisp.org>
21755
21756         Make test-quotearg work on MacOS X and AIX.
21757         * tests/test-quotearg.sh: New file.
21758         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21759         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21760         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21761         include <libintl.h>.
21762         (fake_locale): Remove variable.
21763         (gettext, dgettext, dcgettext): Remove functions.
21764         (main): Instead of setting a fake locale, set a real locale. Call
21765         textdomain and bindtextdomain.
21766         * modules/quotearg-tests (Files): Add the new files.
21767         (Depends-on): Add gettext, setenv, unsetenv.
21768         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21769         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21770         Augment TESTS_ENVIRONMENT.
21771
21772 2009-01-25  Bruno Haible  <bruno@clisp.org>
21773
21774         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21775         fr_FR.ISO8859-1 locale on MacOS X.
21776         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21777         ja_JP.eucJP locale on MacOS X.
21778         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21779         zh_CN.GB18030 locale on MacOS X.
21780
21781 2009-01-25  Bruno Haible  <bruno@clisp.org>
21782
21783         Avoid link errors on MacOS X 10.3.
21784         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21785         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21786
21787 2009-01-25  Bruno Haible  <bruno@clisp.org>
21788
21789         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21790         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21791         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21792         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21793         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21794         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21795         posix_spawnattr_init, posix_spawnattr_setsigmask,
21796         posix_spawnattr_setflags, posix_spawnattr_destroy.
21797
21798         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21799         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21800         * modules/execute (Files): Remove m4/posix_spawn.m4.
21801         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21802         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21803         posix_spawnattr_init, posix_spawnattr_setsigmask,
21804         posix_spawnattr_setflags, posix_spawnattr_destroy.
21805
21806 2009-01-25  Bruno Haible  <bruno@clisp.org>
21807
21808         * lib/glthread/threadlib.c: Include <stdlib.h>.
21809
21810 2009-01-25  Bruno Haible  <bruno@clisp.org>
21811
21812         * lib/glthread/threadlib.c (dummy): New declaration.
21813
21814 2009-01-25  Bruno Haible  <bruno@clisp.org>
21815
21816         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21817         multibyte characters also for the GB18030 encoding. Don't crash when
21818         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21819
21820 2009-01-25  Bruno Haible  <bruno@clisp.org>
21821
21822         Avoid redefining 'struct random_data' on OSF/1 5.1.
21823         * lib/stdlib.in.h: Include <random.h> if it exists.
21824         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21825         HAVE_RANDOM_H. Include <random.h> when testing whether
21826         'struct random_data' exists.
21827         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21828
21829 2009-01-25  Bruno Haible  <bruno@clisp.org>
21830
21831         Don't install charset.alias on MacOS X >= 10.3.
21832         * lib/localcharset.c (DARWIN7): New macro.
21833         (get_charset_aliases): Hardcode the result for Darwin7.
21834         * modules/localcharset (install-exec-local): Don't install
21835         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
21836
21837 2009-01-25  Bruno Haible  <bruno@clisp.org>
21838
21839         Don't install charset.alias on mingw and Cygwin.
21840         * modules/localcharset (install-exec-local): Don't install
21841         charset.alias on mingw and Cygwin, if the file does not yet exist.
21842         The result for these platforms is hardcoded in localcharset.c.
21843
21844 2009-01-25  Bruno Haible  <bruno@clisp.org>
21845
21846         Make it possible again to use AC_GNU_SOURCE together with gnulib.
21847         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
21848         before requiring AC_USE_SYSTEM_EXTENSIONS.
21849
21850 2009-01-25  Jim Meyering  <meyering@redhat.com>
21851
21852         c-strtod: avoid warnings
21853         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
21854         "assignment discards qualifiers from pointer target type" warnings.
21855
21856 2009-01-24  Bruno Haible  <bruno@clisp.org>
21857
21858         Add support for non-UTF-8 locales on MacOS X.
21859         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
21860         canonical encodings. For Darwin 7 and newer, don't map traditional
21861         encodings to UTF-8.
21862         Reported by Vincent Lefevre <vincent@vinc17.org>
21863         at <http://savannah.gnu.org/bugs/?25235>.
21864
21865 2009-01-24  Bruno Haible  <bruno@clisp.org>
21866
21867         * doc/gnulib.texi (Obsolete modules): New section.
21868         Reported by Mike Frysinger <vapier@gentoo.org>.
21869
21870 2009-01-24  Bruno Haible  <bruno@clisp.org>
21871
21872         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
21873         (%.dvi): New rule.
21874
21875 2009-01-24  Bruno Haible  <bruno@clisp.org>
21876
21877         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
21878         Reported by Eric Blake.
21879
21880 2009-01-24  Bruno Haible  <bruno@clisp.org>
21881
21882         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
21883         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
21884         Reported by Gary V. Vaughan <gary@gnu.org>.
21885
21886 2009-01-24  Bruno Haible  <bruno@clisp.org>
21887
21888         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
21889
21890 2009-01-23  Bruno Haible  <bruno@clisp.org>
21891
21892         Make c-strtod, c-strtold usable in libraries.
21893         * lib/c-strtod.c: Include string.h instead of xalloc.h.
21894         (C_STRTOD): Call strdup instead of xstrdup.
21895         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
21896         * modules/c-strtold (Depends-on): Likewise.
21897         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
21898         * NEWS: Mention the change.
21899         Reported by Michael Gold <mgold@ncf.ca>.
21900
21901 2009-01-23  Jim Meyering  <meyering@redhat.com>
21902
21903         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
21904         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
21905         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
21906
21907 2009-01-23  Simon Josefsson  <simon@josefsson.org>
21908
21909         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
21910         GNU CoreUtils.
21911         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
21912         * modules/version-etc (Description): Update.
21913
21914 2009-01-22  Bruno Haible  <bruno@clisp.org>
21915
21916         Cache the C locale object.
21917         * lib/c-strtod.c (c_locale_cache): New variable.
21918         (c_locale): New function.
21919         (C_STRTOD): Use it, and don't call freelocale.
21920         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
21921         Suggested by Paolo Bonzini.
21922
21923 2009-01-21  Bruno Haible  <bruno@clisp.org>
21924
21925         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
21926         conditions other than overflow.
21927
21928 2009-01-21  Bruno Haible  <bruno@clisp.org>
21929
21930         * lib/c-strtod.c: Include errno.h.
21931         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
21932         value from STRTOD_L and STRTOD.
21933
21934 2009-01-21  Bruno Haible  <bruno@clisp.org>
21935         and Jim Meyering  <meyering@redhat.com>
21936
21937         nanosleep: skip configure test (fail it) for apple universal builds
21938         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
21939         universal builds, assume that nanosleep does not work.
21940         * modules/nanosleep (Depends-on): Add multiarch.
21941
21942         mktime: skip configure test (fail it) for apple universal builds
21943         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
21944         universal builds, assume that mktime does not work.
21945         * modules/mktime (Depends-on): Add multiarch.
21946
21947 2009-01-21  Eric Blake  <ebb9@byu.net>
21948
21949         multiarch: avoid expand-before-require warning
21950         * modules/multiarch (configure.ac): Require, rather than expand,
21951         gl_MULTIARCH.
21952         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
21953         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
21954         enforce that all clients require it.  Partial reversion of
21955         2008-12-29 patch.
21956
21957         error: avoid expand-before-require warning
21958         * modules/errno (configure.ac): Require, rather than expand,
21959         gl_HEADER_ERRNO_H.
21960         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
21961         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
21962         enforce that all clients require it.
21963
21964         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
21965         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
21966         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
21967         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
21968
21969 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
21970
21971         Revert:
21972         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21973
21974         regex: do not depend on obsolete modules.
21975         * modules/regex: Remove memcmp and memmove.
21976
21977 2009-01-20  Bruno Haible  <bruno@clisp.org>
21978
21979         Make the 'link' module link on Windows NT 4.
21980         * lib/link.c (_WIN32_WINNT): Don't define.
21981         (CreateHardLinkFuncType): New type.
21982         (CreateHardLinkFunc, initialized): New variables.
21983         (initialize): New function.
21984         (link): Invoke CreateHardLink indirectly through the function pointer.
21985
21986 2009-01-20  Bruno Haible  <bruno@clisp.org>
21987
21988         Fix compilation failure on mingw.
21989         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
21990
21991 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
21992
21993         * doc/c-strtod.texi: Mention a couple of restrictions.
21994
21995 2009-01-20  Jim Meyering  <meyering@redhat.com>
21996
21997         gettimeofday: move more declarations out of functions
21998         * lib/gettimeofday.c: Move extern declarations of tzset and
21999         gmtime out of containing functions.  Prompted by Bruno Haible.
22000
22001 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22002
22003         regex: do not depend on obsolete modules.
22004         * modules/regex: Remove memcmp and memmove.
22005
22006 2009-01-19  Bruno Haible  <bruno@clisp.org>
22007
22008         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22009         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
22010         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22011         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
22012         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
22013
22014 2009-01-19  Bruno Haible  <bruno@clisp.org>
22015
22016         * tests/test-link.c: Include <errno.h>.
22017         (main): Exit with code 77 when a hard link cannot be created due to
22018         the file system.
22019         * tests/test-link.sh: Skip test when a hard link cannot be created due
22020         to the file system.
22021         Suggested by Eric Blake.
22022
22023 2009-01-19  Martin Lambers  <marlam@marlam.de>
22024
22025         * modules/link-tests: New file.
22026         * tests/test-link.sh: New file.
22027         * tests/test-link.c: New file.
22028
22029 2009-01-19  Eric Blake  <ebb9@byu.net>
22030
22031         doc: mention another function added in cygwin 1.7.0
22032         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
22033         Another new function in cygwin 1.7.
22034
22035 2009-01-19  Bruno Haible  <bruno@clisp.org>
22036
22037         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22038         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
22039         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
22040         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22041         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22042         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22043         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22044         * m4/md4.m4 (gl_MD4): Likewise.
22045         * m4/md5.m4 (gl_MD5): Likewise.
22046         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
22047         * m4/sha1.m4 (gl_SHA1): Likewise.
22048         * m4/sha256.m4 (gl_SHA256): Likewise.
22049         * m4/sha512.m4 (gl_SHA512): Likewise.
22050
22051 2009-01-19  Bruno Haible  <bruno@clisp.org>
22052
22053         * modules/uniname/uniname-tests (Depends-on): Add progname.
22054         * tests/uniname/test-uninames.c: Include progname.h.
22055         (main): Call set_program_name.
22056
22057         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
22058         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
22059         (main): Call set_program_name.
22060
22061         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
22062         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
22063         (main): Call set_program_name.
22064
22065         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
22066         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
22067         (main): Call set_program_name.
22068
22069         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
22070         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
22071         (main): Call set_program_name.
22072
22073         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
22074         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
22075         (main): Call set_program_name.
22076
22077         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
22078         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
22079         (main): Call set_program_name.
22080
22081         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
22082         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
22083         (main): Call set_program_name.
22084
22085         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
22086         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
22087         (main): Call set_program_name.
22088
22089 2009-01-19  Eric Blake  <ebb9@byu.net>
22090
22091         test-unistd: test previous patch
22092         * tests/test-unistd.c: Test *_FILENO macros.
22093
22094         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
22095         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22096         Guarantee a definition.
22097         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
22098         * modules/unistd-safer (Depends-on): Add dependency on unistd.
22099         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
22100         * lib/dup-safer.c (STDERR_FILENO): Likewise.
22101         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22102         Likewise.
22103         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
22104         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
22105         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22106         Likewise.
22107         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
22108         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
22109         (STDERR_FILENO): Likewise.
22110         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
22111         (STDERR_FILENO): Likewise.
22112         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
22113         (STDERR_FILENO): Likewise.
22114         Reported by Elbert Pol.
22115
22116 2009-01-19  Eric Blake  <ebb9@byu.net>
22117
22118         doc: mention more functions added in cygwin 1.7.0
22119         * doc/posix-functions/abort.texi (abort): Update wording related
22120         to cygwin.
22121         * doc/posix-functions/daylight.texi (daylight): Likewise.
22122         * doc/posix-functions/optarg.texi (optarg): Likewise.
22123         * doc/posix-functions/optarg.texi (opterr): Likewise.
22124         * doc/posix-functions/optarg.texi (optind): Likewise.
22125         * doc/posix-functions/optarg.texi (optopt): Likewise.
22126         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
22127         worked in 1.5.x, and was withdrawn in 1.7.
22128         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
22129         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
22130         cygwin versions.
22131         * doc/posix-functions/perror.texi (perror): Likewise.
22132         * doc/posix-functions/printf.texi (printf): Likewise.
22133         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
22134         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
22135         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
22136         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
22137         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22138         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
22139         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22140         Likewise.
22141         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22142         Likewise.
22143         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
22144         this function.
22145         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
22146         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
22147         Likewise.
22148         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
22149         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
22150         * doc/posix-functions/confstr.texi (confstr): Likewise.
22151         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
22152         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
22153         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
22154         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
22155         * doc/posix-functions/fputws.texi (fputws): Likewise.
22156         * doc/posix-functions/fwide.texi (fwide): Likewise.
22157         * doc/posix-functions/getwc.texi (getwc): Likewise.
22158         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
22159         * doc/posix-functions/putwc.texi (putwc): Likewise.
22160         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
22161         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
22162         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
22163         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
22164         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
22165         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
22166         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
22167         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
22168         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
22169         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
22170         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
22171
22172 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22173
22174         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
22175         * lib/ioctl.c: Include <sys/ioctl.h>.
22176
22177 2009-01-19  Simon Josefsson  <simon@josefsson.org>
22178
22179         * modules/getdate-tests (Depends-on): Add progname.
22180         * tests/test-getdate.c: Use progname module, to avoid link errors
22181         on non-glibc systems.
22182
22183 2009-01-18  Simon Josefsson  <simon@josefsson.org>
22184
22185         * modules/filenamecat-tests (Depends-on): Add progname.
22186         * modules/fstrcmp-tests (Depends-on): Likewise.
22187
22188         * tests/test-filenamecat.c: Use progname module, to avoid link
22189         errors on non-glibc systems.
22190         * tests/test-fstrcmp.c: Likewise.
22191
22192 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22193
22194         gettimeofday: avoid warning: nested extern declaration of 'localtime'
22195         * lib/gettimeofday.c: Move extern declaration out of function.
22196
22197 2009-01-18  Bruno Haible  <bruno@clisp.org>
22198
22199         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
22200         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
22201         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
22202
22203 2009-01-18  Bruno Haible  <bruno@clisp.org>
22204
22205         * lib/strftime.c (MEMPCPY): Remove unused macro.
22206         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
22207
22208 2009-01-18  Martin Lambers  <marlam@marlam.de>
22209
22210         New module 'link'.
22211         * lib/unistd.in.h (link): New declaration.
22212         * lib/link.c: New file.
22213         * m4/link.m4: New file.
22214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
22215         HAVE_LINK.
22216         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
22217         * modules/link: New file.
22218         * doc/posix-functions/link.texi: Mention the new module.
22219
22220 2009-01-18  Bruno Haible  <bruno@clisp.org>
22221
22222         * tests/test-avltree_list.c (main): Call set_program_name.
22223         * tests/test-avltree_oset.c (main): Likewise.
22224         * tests/test-obstack-printf.c: Include progname.h.
22225         (main): Call set_program_name.
22226         * tests/test-quotearg.c: Include progname.h.
22227         (main): Call set_program_name.
22228         * tests/test-xmemdup0.c: Include progname.h.
22229         (main): Call set_program_name.
22230
22231 2009-01-18  Bruno Haible  <bruno@clisp.org>
22232
22233         New module 'alphasort'.
22234         * lib/dirent.in.h (alphasort): New declaration.
22235         * lib/alphasort.c: New file, from glibc with modifications.
22236         * m4/alphasort.m4: New file.
22237         * modules/alphasort: New file.
22238         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
22239         HAVE_ALPHASORT.
22240         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
22241         HAVE_ALPHASORT.
22242         * doc/posix-functions/alphasort.texi: Mention the new module and the
22243         portability problems.
22244
22245 2009-01-18  Bruno Haible  <bruno@clisp.org>
22246
22247         New module 'scandir'.
22248         * lib/dirent.in.h (scandir): New declaration.
22249         * lib/scandir.c: New file, from glibc with modifications.
22250         * m4/scandir.m4: New file.
22251         * modules/scandir: New file.
22252         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
22253         HAVE_SCANDIR.
22254         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
22255         HAVE_SCANDIR.
22256         * doc/posix-functions/scandir.texi: Mention the new module and the
22257         portability problems.
22258
22259 2009-01-17  Bruno Haible  <bruno@clisp.org>
22260
22261         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
22262         Update documentation.
22263         (func_remove_suffix): Escape all dots in the suffix. Update
22264         documentation.
22265         (func_filter_filelist): Update documentation.
22266         Reported by Ralf Wildenhues.
22267
22268 2009-01-17  Bruno Haible  <bruno@clisp.org>
22269
22270         * modules/dprintf-posix-tests: New file.
22271         * tests/test-dprintf-posix.sh: New file.
22272         * tests/test-dprintf-posix.c: New file.
22273
22274         New modules 'dprintf', 'dprintf-posix'.
22275         * lib/stdio.in.h (dprintf): New declaration.
22276         * lib/dprintf.c: New file.
22277         * m4/dprintf.m4: New file.
22278         * m4/dprintf-posix.m4: New file.
22279         * modules/dprintf: New file.
22280         * modules/dprintf-posix: New file.
22281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
22282         HAVE_DPRINTF, REPLACE_DPRINTF.
22283         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
22284         HAVE_DPRINTF, REPLACE_DPRINTF.
22285         * doc/posix-functions/dprintf.texi: Mention the new modules.
22286
22287 2009-01-17  Bruno Haible  <bruno@clisp.org>
22288
22289         * modules/vdprintf-posix-tests: New file.
22290         * tests/test-vdprintf-posix.sh: New file.
22291         * tests/test-vdprintf-posix.c: New file.
22292
22293         New modules 'vdprintf', 'vdprintf-posix'.
22294         * lib/stdio.in.h (vdprintf): New declaration.
22295         * lib/vdprintf.c: New file.
22296         * m4/vdprintf.m4: New file.
22297         * m4/vdprintf-posix.m4: New file.
22298         * modules/vdprintf: New file.
22299         * modules/vdprintf-posix: New file.
22300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
22301         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22302         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
22303         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22304         * doc/posix-functions/vdprintf.texi: Mention the new modules.
22305
22306 2009-01-17  Bruno Haible  <bruno@clisp.org>
22307
22308         Fix replacement of fopen on mingw.
22309         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
22310         mingw.
22311
22312 2009-01-17  Bruno Haible  <bruno@clisp.org>
22313
22314         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
22315         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
22316
22317 2009-01-17  Bruno Haible  <bruno@clisp.org>
22318
22319         Avoid test-fflush2.sh failure on mingw.
22320         * tests/test-fflush2.c: Include binary-io.h.
22321         (main): Put standard input into binary mode.
22322         * modules/fflush-tests (Depends-on): Add binary-io.
22323
22324 2009-01-17  Bruno Haible  <bruno@clisp.org>
22325
22326         * lib/wchar.in.h: In another particular situation, include only the
22327         system's <wchar.h> file.
22328         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
22329         Reported by Albert Chin-A-Young <china@thewrittenword.com>
22330         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
22331
22332 2009-01-17  Bruno Haible  <bruno@clisp.org>
22333
22334         Support for stripping executables in --enable-relocatable.
22335         * build-aux/install-reloc: Expect one more argument, or an environment
22336         variable RELOC_STRIP_PROG. If set, strip the destination program and
22337         its wrapper.
22338         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
22339         RELOC_STRIP_PROG.
22340         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
22341         to set RELOCATABLE_STRIP.
22342         * NEWS: Mention the new Makefile requirement.
22343
22344 2009-01-17  Bruno Haible  <bruno@clisp.org>
22345
22346         * build-aux/install-reloc: Remove debugging information left over by
22347         C compiler on MacOS X.
22348
22349 2009-01-17  Bruno Haible  <bruno@clisp.org>
22350
22351         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
22352         * lib/progreloc.c (find_executable): Fix type of pointer passed to
22353         _NSGetExecutablePath.
22354
22355 2009-01-16  Jim Meyering  <meyering@redhat.com>
22356
22357         strerror: avoid warnings about discarding "const"
22358         * lib/strerror.c (rpl_strerror): Instead of returning a const
22359         string from each and every "case", use a variable, and add a single
22360         cast after the switch.
22361
22362 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
22363
22364         * lib/arpa_inet.in.h: Add extern "C" block for C++.
22365
22366 2009-01-16  Bruno Haible  <bruno@clisp.org>
22367
22368         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
22369         array initializer syntax that also works in C++ mode.
22370         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22371
22372 2009-01-16  Jim Meyering  <meyering@redhat.com>
22373
22374         poll: suppress a warning
22375         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
22376         to ignore "...unsigned expression < 0 is always false" warnings.
22377
22378 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
22379
22380         poll: remove declarations of unused variables
22381         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
22382         sockbuf and optlen.
22383
22384 2009-01-15  Bruno Haible  <bruno@clisp.org>
22385
22386         Make fflush-after-ungetc POSIX compliant on BSD systems.
22387         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
22388         (clear_ungetc_buffer): Implement also for other systems.
22389         (rpl_fflush): On glibc systems, invoke
22390         clear_ungetc_buffer_preserving_position. Otherwise, invoke
22391         clear_ungetc_buffer after fetching the stream's position, not before.
22392
22393 2009-01-15  Bruno Haible  <bruno@clisp.org>
22394
22395         Make fflush-after-ungetc POSIX compliant on glibc systems.
22396         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
22397         after ungetc.
22398         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
22399         (rpl_fflush): On glibc systems, simply call the system's fflush
22400         function after clearing the ungetc buffer.
22401         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
22402         Instead, lseek only to the end of file, then use the system's fseeko
22403         for the rest. On glibc systems, reset the EOF indicator bit.
22404
22405 2009-01-15  Jim Meyering  <meyering@redhat.com>
22406
22407         openmp.m4: revert quote-adding change, for portability to older autoconf
22408         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
22409         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
22410         Simon Josefsson noticed the problem when using autoconf-2.61.
22411
22412 2009-01-15  Bruno Haible  <bruno@clisp.org>
22413
22414         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
22415         * tests/test-fflush2.c (ASSERT): Always fail.
22416         (main): Add two tests for fflush() after ungetc(), taking into account
22417         the Austin Group's clarification.
22418         Suggested by Eric Blake.
22419
22420 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
22421
22422         mktime.m4: remove K&R-style function prototypes
22423         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
22424         for the Sun C++ compiler.
22425
22426 2009-01-14  Bruno Haible  <bruno@clisp.org>
22427
22428         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
22429         while including <wchar.h>.
22430         * lib/wchar.in.h: In two particular situations on HP-UX, include only
22431         the system's <wchar.h> file.
22432         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22433
22434 2009-01-14  Bruno Haible  <bruno@clisp.org>
22435
22436         * m4/csharp.m4: Don't mention gettext on the serial number line.
22437         * m4/csharpexec.m4: Likewise.
22438         * m4/eaccess.m4: Likewise.
22439         * m4/javaexec.m4: Likewise.
22440         * m4/sig_atomic_t.m4: Likewise.
22441         * m4/tmpdir.m4: Likewise.
22442         * m4/intldir.m4: Bump gettext version.
22443         * m4/lib-ld.m4: Likewise.
22444
22445 2009-01-14  Bruno Haible  <bruno@clisp.org>
22446
22447         * lib/progname.c (set_program_name): Add more comments.
22448         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22449
22450 2009-01-14  Simon Josefsson  <simon@josefsson.org>
22451
22452         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
22453         were sys/stat.h does not define it.
22454
22455 2009-01-14  Jim Meyering  <meyering@redhat.com>
22456
22457         many *.m4 files: improve m4 quoting
22458         99% of this change was performed by running the following commands:
22459         git ls-files | grep '\.m4$' | xargs perl -pi \
22460           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
22461           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22462           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22463           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
22464         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
22465         The remainder were to add Copyright dates, increment serial numbers,
22466         undo some changes in comments, exclude m4/intl.m4, and add quotes
22467         around the "1" in ",1" where the unusual spacing prohibited the
22468         above regexps from doing the job.  For more details, see
22469         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
22470         * m4/acl.m4: Modified.
22471         * m4/afs.m4: Likewise.
22472         * m4/alloca.m4: Likewise.
22473         * m4/argp.m4: Likewise.
22474         * m4/argz.m4: Likewise.
22475         * m4/atexit.m4: Likewise.
22476         * m4/bison-i18n.m4: Likewise.
22477         * m4/bison.m4: Likewise.
22478         * m4/byteswap.m4: Likewise.
22479         * m4/c-stack.m4: Likewise.
22480         * m4/c-strtod.m4: Likewise.
22481         * m4/calloc.m4: Likewise.
22482         * m4/canonicalize-lgpl.m4: Likewise.
22483         * m4/chown.m4: Likewise.
22484         * m4/clock_time.m4: Likewise.
22485         * m4/codeset.m4: Likewise.
22486         * m4/copy-file.m4: Likewise.
22487         * m4/csharp.m4: Likewise.
22488         * m4/csharpcomp.m4: Likewise.
22489         * m4/csharpexec.m4: Likewise.
22490         * m4/d-ino.m4: Likewise.
22491         * m4/d-type.m4: Likewise.
22492         * m4/dirfd.m4: Likewise.
22493         * m4/double-slash-root.m4: Likewise.
22494         * m4/eaccess.m4: Likewise.
22495         * m4/eealloc.m4: Likewise.
22496         * m4/environ.m4: Likewise.
22497         * m4/errno_h.m4: Likewise.
22498         * m4/euidaccess.m4: Likewise.
22499         * m4/execute.m4: Likewise.
22500         * m4/fatal-signal.m4: Likewise.
22501         * m4/fchdir.m4: Likewise.
22502         * m4/fcntl_h.m4: Likewise.
22503         * m4/fileblocks.m4: Likewise.
22504         * m4/filenamecat.m4: Likewise.
22505         * m4/findprog.m4: Likewise.
22506         * m4/flexmember.m4: Likewise.
22507         * m4/fnmatch.m4: Likewise.
22508         * m4/fopen.m4: Likewise.
22509         * m4/fpending.m4: Likewise.
22510         * m4/fprintf-posix.m4: Likewise.
22511         * m4/free.m4: Likewise.
22512         * m4/frexp.m4: Likewise.
22513         * m4/frexpl.m4: Likewise.
22514         * m4/fsusage.m4: Likewise.
22515         * m4/ftruncate.m4: Likewise.
22516         * m4/gc-camellia.m4: Likewise.
22517         * m4/gc-random.m4: Likewise.
22518         * m4/gc.m4: Likewise.
22519         * m4/getaddrinfo.m4: Likewise.
22520         * m4/getcwd-abort-bug.m4: Likewise.
22521         * m4/getcwd-path-max.m4: Likewise.
22522         * m4/getdate.m4: Likewise.
22523         * m4/getdomainname.m4: Likewise.
22524         * m4/getgroups.m4: Likewise.
22525         * m4/gethostname.m4: Likewise.
22526         * m4/gethrxtime.m4: Likewise.
22527         * m4/getline.m4: Likewise.
22528         * m4/getloadavg.m4: Likewise.
22529         * m4/getndelim2.m4: Likewise.
22530         * m4/getpass.m4: Likewise.
22531         * m4/gettext.m4: Likewise.
22532         * m4/gettime.m4: Likewise.
22533         * m4/gettimeofday.m4: Likewise.
22534         * m4/gnulib-common.m4: Likewise.
22535         * m4/group-member.m4: Likewise.
22536         * m4/host-os.m4: Likewise.
22537         * m4/iconv.m4: Likewise.
22538         * m4/iconv_open.m4: Likewise.
22539         * m4/inet_ntop.m4: Likewise.
22540         * m4/inet_pton.m4: Likewise.
22541         * m4/inline.m4: Likewise.
22542         * m4/intldir.m4: Likewise.
22543         * m4/intlmacosx.m4: Likewise.
22544         * m4/intmax.m4: Likewise.
22545         * m4/intmax_t.m4: Likewise.
22546         * m4/inttypes.m4: Likewise.
22547         * m4/inttypes_h.m4: Likewise.
22548         * m4/inttypes-pri.m4: Likewise.
22549         * m4/isapipe.m4: Likewise.
22550         * m4/isnand.m4: Likewise.
22551         * m4/isnanf.m4: Likewise.
22552         * m4/isnanl.m4: Likewise.
22553         * m4/javacomp.m4: Likewise.
22554         * m4/javaexec.m4: Likewise.
22555         * m4/jm-winsz1.m4: Likewise.
22556         * m4/jm-winsz2.m4: Likewise.
22557         * m4/lchown.m4: Likewise.
22558         * m4/lcmessage.m4: Likewise.
22559         * m4/ldexpl.m4: Likewise.
22560         * m4/lib-ld.m4: Likewise.
22561         * m4/lib-link.m4: Likewise.
22562         * m4/libsigsegv.m4: Likewise.
22563         * m4/link-follow.m4: Likewise.
22564         * m4/localcharset.m4: Likewise.
22565         * m4/locale-fr.m4: Likewise.
22566         * m4/locale-ja.m4: Likewise.
22567         * m4/locale-tr.m4: Likewise.
22568         * m4/locale-zh.m4: Likewise.
22569         * m4/lock.m4: Likewise.
22570         * m4/longlong.m4: Likewise.
22571         * m4/ls-mntd-fs.m4: Likewise.
22572         * m4/lstat.m4: Likewise.
22573         * m4/malloc.m4: Likewise.
22574         * m4/mathl.m4: Likewise.
22575         * m4/mbrtowc.m4: Likewise.
22576         * m4/mbstate_t.m4: Likewise.
22577         * m4/mbswidth.m4: Likewise.
22578         * m4/memchr.m4: Likewise.
22579         * m4/memcmp.m4: Likewise.
22580         * m4/memcpy.m4: Likewise.
22581         * m4/memmem.m4: Likewise.
22582         * m4/memmove.m4: Likewise.
22583         * m4/mempcpy.m4: Likewise.
22584         * m4/memrchr.m4: Likewise.
22585         * m4/memset.m4: Likewise.
22586         * m4/minmax.m4: Likewise.
22587         * m4/mkdir-slash.m4: Likewise.
22588         * m4/mkdtemp.m4: Likewise.
22589         * m4/mktime.m4: Likewise.
22590         * m4/mmap-anon.m4: Likewise.
22591         * m4/mountlist.m4: Likewise.
22592         * m4/nanosleep.m4: Likewise.
22593         * m4/nls.m4: Likewise.
22594         * m4/nocrash.m4: Likewise.
22595         * m4/open.m4: Likewise.
22596         * m4/openat.m4: Likewise.
22597         * m4/openmp.m4: Likewise.
22598         * m4/pathmax.m4: Likewise.
22599         * m4/perl.m4: Likewise.
22600         * m4/physmem.m4: Likewise.
22601         * m4/pipe.m4: Likewise.
22602         * m4/po.m4: Likewise.
22603         * m4/poll.m4: Likewise.
22604         * m4/posixtm.m4: Likewise.
22605         * m4/posixver.m4: Likewise.
22606         * m4/printf-frexp.m4: Likewise.
22607         * m4/printf-frexpl.m4: Likewise.
22608         * m4/printf-posix.m4: Likewise.
22609         * m4/printf-posix-rpl.m4: Likewise.
22610         * m4/printf.m4: Likewise.
22611         * m4/progtest.m4: Likewise.
22612         * m4/putenv.m4: Likewise.
22613         * m4/readline.m4: Likewise.
22614         * m4/readlink.m4: Likewise.
22615         * m4/readutmp.m4: Likewise.
22616         * m4/realloc.m4: Likewise.
22617         * m4/regex.m4: Likewise.
22618         * m4/relocatable.m4: Likewise.
22619         * m4/relocatable-lib.m4: Likewise.
22620         * m4/rename-dest-slash.m4: Likewise.
22621         * m4/rename.m4: Likewise.
22622         * m4/rmdir-errno.m4: Likewise.
22623         * m4/rmdir.m4: Likewise.
22624         * m4/roundf.m4: Likewise.
22625         * m4/roundl.m4: Likewise.
22626         * m4/rpmatch.m4: Likewise.
22627         * m4/save-cwd.m4: Likewise.
22628         * m4/selinux-selinux-h.m4: Likewise.
22629         * m4/setenv.m4: Likewise.
22630         * m4/settime.m4: Likewise.
22631         * m4/sig2str.m4: Likewise.
22632         * m4/sig_atomic_t.m4: Likewise.
22633         * m4/signalblocking.m4: Likewise.
22634         * m4/signbit.m4: Likewise.
22635         * m4/sigpipe.m4: Likewise.
22636         * m4/sockets.m4: Likewise.
22637         * m4/sockpfaf.m4: Likewise.
22638         * m4/st_dm_mode.m4: Likewise.
22639         * m4/stat-time.m4: Likewise.
22640         * m4/stdbool.m4: Likewise.
22641         * m4/stdint.m4: Likewise.
22642         * m4/stdint_h.m4: Likewise.
22643         * m4/stpcpy.m4: Likewise.
22644         * m4/stpncpy.m4: Likewise.
22645         * m4/strcase.m4: Likewise.
22646         * m4/strchrnul.m4: Likewise.
22647         * m4/strcspn.m4: Likewise.
22648         * m4/strdup.m4: Likewise.
22649         * m4/strftime.m4: Likewise.
22650         * m4/strndup.m4: Likewise.
22651         * m4/strnlen.m4: Likewise.
22652         * m4/strpbrk.m4: Likewise.
22653         * m4/strptime.m4: Likewise.
22654         * m4/strsep.m4: Likewise.
22655         * m4/strtod.m4: Likewise.
22656         * m4/strtoimax.m4: Likewise.
22657         * m4/strtok_r.m4: Likewise.
22658         * m4/strtol.m4: Likewise.
22659         * m4/strtoll.m4: Likewise.
22660         * m4/strtoul.m4: Likewise.
22661         * m4/strtoull.m4: Likewise.
22662         * m4/strtoumax.m4: Likewise.
22663         * m4/strverscmp.m4: Likewise.
22664         * m4/threadlib.m4: Likewise.
22665         * m4/timegm.m4: Likewise.
22666         * m4/tm_gmtoff.m4: Likewise.
22667         * m4/tmpdir.m4: Likewise.
22668         * m4/tmpfile.m4: Likewise.
22669         * m4/tzset.m4: Likewise.
22670         * m4/uintmax_t.m4: Likewise.
22671         * m4/unlinkdir.m4: Likewise.
22672         * m4/unlocked-io.m4: Likewise.
22673         * m4/uptime.m4: Likewise.
22674         * m4/userspec.m4: Likewise.
22675         * m4/utimbuf.m4: Likewise.
22676         * m4/utime.m4: Likewise.
22677         * m4/utimes-null.m4: Likewise.
22678         * m4/utimes.m4: Likewise.
22679         * m4/vararrays.m4: Likewise.
22680         * m4/vasnprintf.m4: Likewise.
22681         * m4/vfprintf-posix.m4: Likewise.
22682         * m4/vprintf-posix.m4: Likewise.
22683         * m4/wait-process.m4: Likewise.
22684         * m4/wchar_t.m4: Likewise.
22685         * m4/wint_t.m4: Likewise.
22686         * m4/write-any-file.m4: Likewise.
22687         * m4/yield.m4: Likewise.
22688
22689 2009-01-13  Bruno Haible  <bruno@clisp.org>
22690
22691         Avoid test-copy-file.sh failures when ACL support insufficient.
22692         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22693         TESTS_ENVIRONMENT.
22694         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22695         Reported by Jim Meyering.
22696
22697 2009-01-13  Bruno Haible  <bruno@clisp.org>
22698
22699         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22700         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22701         * modules/unistdio/u8-printf-parse (Files): Likewise.
22702         * modules/unistdio/u32-printf-parse (Files): Likewise.
22703         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22704
22705 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22706
22707         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22708         and m4/inttypes_h.m4 too.
22709
22710 2009-01-12  Eric Blake  <ebb9@byu.net>
22711
22712         tests: IRIX 6.2 cc can't compile -0.0 into .data
22713         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22714         rather than at compile-time.
22715         * tests/test-floorl.c (minus_zero): Likewise.
22716         * tests/test-frexpl.c (minus_zero): Likewise.
22717         * tests/test-isnan.c (minus_zerol): Likewise.
22718         * tests/test-isnanl.h (minus_zero): Likewise.
22719         * tests/test-ldexpl.c (minus_zero): Likewise.
22720         * tests/test-roundl.c (minus_zero): Likewise.
22721         * tests/test-signbit.c (minus_zerol): Likewise.
22722         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22723         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22724         * tests/test-truncl.c (minus_zero): Likewise.
22725         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22726         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22727         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22728
22729 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22730
22731         regex: fix glibc bug 9697
22732         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22733         handling.
22734
22735 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22736
22737         regex: fix glibc bug 697
22738         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22739         being NULL also if there are no backreferences.
22740
22741 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22742
22743         regex: merge glibc changes
22744         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22745         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22746         re_string_skip_chars, re_string_reconstruct): Likewise.
22747         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22748
22749 2009-01-07  Jim Meyering  <meyering@redhat.com>
22750
22751         poll: filter through cppi
22752         * lib/poll.c: Indent cpp directives to reflect nesting.
22753
22754 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22755
22756         poll: don't return uninitialized
22757         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22758
22759 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22760
22761         avoid compile failure on AIX 6.1
22762         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22763         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22764
22765 2009-01-04  Jim Meyering  <meyering@redhat.com>
22766
22767         remove duplicate inclusion of <stdio.h>
22768         * tests/test-fprintf-posix.c: Likewise.
22769         * tests/test-printf-posix.c: Likewise.
22770         * tests/test-snprintf-posix.c: Likewise.
22771         * tests/test-sprintf-posix.c: Likewise.
22772         * tests/test-vasprintf-posix.c: Likewise.
22773         * tests/test-vfprintf-posix.c: Likewise.
22774         * tests/test-vprintf-posix.c: Likewise.
22775         * tests/test-vsnprintf-posix.c: Likewise.
22776         * tests/test-vsprintf-posix.c: Likewise.
22777
22778 2009-01-03  Jim Meyering  <meyering@redhat.com>
22779
22780         gnulib-tool: fix sed-based filtering
22781         * gnulib-tool (func_filter_filelist): Remove extra backslash
22782         in sed_fff_filter definition.
22783
22784 2009-01-02  Jim Meyering  <meyering@redhat.com>
22785
22786         strftime: avoid compilation failure on Solaris 2.6
22787         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22788         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22789         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22790         be available.  Reported by Tom G. Christensen.  Details in
22791         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22792
22793 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22794             Bruno Haible  <bruno@clisp.org>
22795
22796         Speed up gnulib-tool by doing more string processing through shell
22797         built-ins.
22798         * gnulib-tool (fast_func_append): New variable.
22799         (func_remove_prefix, func_remove_suffix): New functions.
22800         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22801         (func_filter_filelist): New function.
22802         (func_get_dependencies): Use func_remove_suffix instead of sed.
22803         (func_get_automake_snippet): Use func_filter_filelist instead of a
22804         subshell and sed invocation.
22805
22806 2009-01-01  Bruno Haible  <bruno@clisp.org>
22807
22808         Fix a security bug.
22809         * gnulib-tool (func_import, import, update): Don't allow the characters
22810         '"', '$', '`', '\' in macro arguments that become part of commands that
22811         are evaluated.
22812
22813 2009-01-01  Bruno Haible  <bruno@clisp.org>
22814
22815         * gnulib-tool (func_reset_sigpipe): Add more comments.
22816
22817 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22818
22819         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22820         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22821         already know the answer.
22822
22823 2009-01-01  Jim Meyering  <meyering@redhat.com>
22824
22825         * lib/version-etc.c (version_etc_va): Update copyright year.
22826
22827 2008-12-30  Bruno Haible  <bruno@clisp.org>
22828
22829         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
22830         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
22831         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
22832
22833 2008-12-29  Eric Blake  <ebb9@byu.net>
22834
22835         multiarch: avoid autoconf AC_REQUIRE bug
22836         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
22837         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
22838         2.63 and older.
22839         Reported by Bruno Haible, and analyzed in
22840         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
22841
22842 2008-12-29  Bruno Haible  <bruno@clisp.org>
22843
22844         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
22845         files in subdirectories correctly.
22846         Reported by Ralf Wildenhues.
22847
22848 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22849
22850         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
22851         rather than 'join FILE -', for Solaris join.
22852
22853 2008-12-29  Bruno Haible  <bruno@clisp.org>
22854
22855         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
22856         quoting.
22857         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22858         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22859         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22860         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
22861         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22862         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22863         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22864         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22865         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22866         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22867         * m4/nls.m4 (AM_NLS): Likewise.
22868         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
22869         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22870         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22871         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22872         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22873         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22874         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
22875         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22876         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22877         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22878         * m4/xsize.m4 (gl_XSIZE): Likewise.
22879         Suggested by Jim Meyering.
22880
22881 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22882
22883         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
22884         * lib/parse-duration.c: use a switch instead of cascading if's.
22885
22886 2008-12-29  Eric Blake  <ebb9@byu.net>
22887
22888         wchar.h: supply WEOF on Irix 5.3
22889         * lib/wchar.in.h (wint_t): Also supply WEOF.
22890         * lib/wctype.in.h (wint_t): Likewise.
22891         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
22892         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
22893         Reported by Tom G. Christensen.
22894
22895 2008-12-26  Bruno Haible  <bruno@clisp.org>
22896
22897         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
22898         i486, i586, i686.
22899
22900 2008-12-26  Bruno Haible  <bruno@clisp.org>
22901
22902         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
22903
22904 2008-12-26  Bruno Haible  <bruno@clisp.org>
22905
22906         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
22907         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
22908         not __STDC_CONSTANT_MACROS.
22909         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
22910
22911 2008-12-25  Bruno Haible  <bruno@clisp.org>
22912
22913         Add support for universal builds to vasnprintf.
22914         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
22915         universal builds, guess no.
22916         * modules/vasnprintf-posix (Depends-on): Add multiarch.
22917         * modules/vasprintf-posix (Depends-on): Likewise.
22918         * modules/fprintf-posix (Depends-on): Likewise.
22919         * modules/vfprintf-posix (Depends-on): Likewise.
22920         * modules/snprintf-posix (Depends-on): Likewise.
22921         * modules/vsnprintf-posix (Depends-on): Likewise.
22922         * modules/sprintf-posix (Depends-on): Likewise.
22923         * modules/vsprintf-posix (Depends-on): Likewise.
22924         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22925         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22926         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22927         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22928         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22929         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22930         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22931
22932         Add support for universal builds to <inttypes.h>.
22933         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
22934         _SCNu64_PREFIX): In Apple
22935         universal builds, define directly, using _LP64.
22936         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
22937         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
22938         * modules/inttypes (Depends-on): Add multiarch.
22939         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22940
22941         Add support for universal builds to <stdint.h>.
22942         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
22943         universal builds, define directly, using _LP64.
22944         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
22945         Apple universal builds, don't test for the size and suffix of ptrdiff_t
22946         and size_t.
22947         * modules/stdint (Depends-on): Add multiarch.
22948         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22949
22950         New module 'multiarch'.
22951         * modules/multiarch: New file.
22952         * m4/multiarch.m4: New file.
22953
22954 2008-12-25  Bruno Haible  <bruno@clisp.org>
22955
22956         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
22957
22958 2008-12-25  Bruno Haible  <bruno@clisp.org>
22959
22960         * modules/btowc (License): Relicense under LGPLv2+.
22961         * modules/mbsinit (License): Likewise.
22962         * modules/mbrtowc (License): Likewise.
22963         * modules/wcrtomb (License): Likewise.
22964         * modules/streq (License): Likewise.
22965         Reported by David Lutterkort <lutter@redhat.com>.
22966
22967 2008-12-23  Bruno Haible  <bruno@clisp.org>
22968
22969         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
22970
22971 2008-12-23  Bruno Haible  <bruno@clisp.org>
22972
22973         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
22974         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
22975         GETADDRINFO_LIB, not in LIBS.
22976         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
22977         * modules/canon-host (Link): Likewise.
22978         * NEWS: Mention the change.
22979         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
22980         GETADDRINFO_LIB.
22981
22982 2008-12-22  Bruno Haible  <bruno@clisp.org>
22983
22984         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
22985         * doc/posix-functions/iswalpha_l.texi: Likewise.
22986         * doc/posix-functions/iswblank_l.texi: Likewise.
22987         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22988         * doc/posix-functions/iswctype_l.texi: Likewise.
22989         * doc/posix-functions/iswdigit_l.texi: Likewise.
22990         * doc/posix-functions/iswgraph_l.texi: Likewise.
22991         * doc/posix-functions/iswlower_l.texi: Likewise.
22992         * doc/posix-functions/iswprint_l.texi: Likewise.
22993         * doc/posix-functions/iswpunct_l.texi: Likewise.
22994         * doc/posix-functions/iswspace_l.texi: Likewise.
22995         * doc/posix-functions/iswupper_l.texi: Likewise.
22996         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22997         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
22998         * doc/posix-functions/open_wmemstream.texi: Likewise.
22999         * doc/posix-functions/swscanf.texi: Likewise.
23000         * doc/posix-functions/towctrans_l.texi: Likewise.
23001         * doc/posix-functions/towlower.texi: Likewise.
23002         * doc/posix-functions/towlower_l.texi: Likewise.
23003         * doc/posix-functions/towupper.texi: Likewise.
23004         * doc/posix-functions/towupper_l.texi: Likewise.
23005         * doc/posix-functions/vfwprintf.texi: Likewise.
23006         * doc/posix-functions/vfwscanf.texi: Likewise.
23007         * doc/posix-functions/vswscanf.texi: Likewise.
23008         * doc/posix-functions/vwprintf.texi: Likewise.
23009         * doc/posix-functions/vwscanf.texi: Likewise.
23010         * doc/posix-functions/wcpcpy.texi: Likewise.
23011         * doc/posix-functions/wcpncpy.texi: Likewise.
23012         * doc/posix-functions/wcscasecmp.texi: Likewise.
23013         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
23014         * doc/posix-functions/wcscoll_l.texi: Likewise.
23015         * doc/posix-functions/wcsdup.texi: Likewise.
23016         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23017         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
23018         * doc/posix-functions/wcsnlen.texi: Likewise.
23019         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23020         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23021         * doc/posix-functions/wctrans_l.texi: Likewise.
23022         * doc/posix-functions/wctype_l.texi: Likewise.
23023         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
23024         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
23025         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
23026         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
23027         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
23028         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
23029         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
23030         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
23031         * doc/glibc-functions/wcschrnul.texi: Likewise.
23032         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23033         * doc/glibc-functions/wcstod_l.texi: Likewise.
23034         * doc/glibc-functions/wcstof_l.texi: Likewise.
23035         * doc/glibc-functions/wcstol_l.texi: Likewise.
23036         * doc/glibc-functions/wcstold_l.texi: Likewise.
23037         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23038         * doc/glibc-functions/wcstoq.texi: Likewise.
23039         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23040         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23041         * doc/glibc-functions/wcstouq.texi: Likewise.
23042         * doc/glibc-functions/wmempcpy.texi: Likewise.
23043
23044 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
23045             Eric Blake  <ebb9@byu.net>
23046             Paolo Bonzini  <bonzini@gnu.org>
23047             Bruno Haible  <bruno@clisp.org>
23048
23049         Make c-stack work on Haiku.
23050         * lib/c-stack.c (SA_ONSTACK): Define fallback.
23051         (c_stack_action): Use SA_ONSTACK flag.
23052
23053 2008-12-22  Bruno Haible  <bruno@clisp.org>
23054
23055         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
23056
23057 2008-12-22  Bruno Haible  <bruno@clisp.org>
23058
23059         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
23060         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
23061         being overridden.
23062         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
23063         New macros.
23064         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
23065         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
23066         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
23067         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
23068
23069 2008-12-22  Bruno Haible  <bruno@clisp.org>
23070
23071         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
23072         from test code.
23073
23074 2008-12-22  Eric Blake  <ebb9@byu.net>
23075
23076         Avoid gcc warnings on cygwin.
23077         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23078         Avoid unused variable.
23079         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23080         Likewise.
23081
23082 2008-12-22  Bruno Haible  <bruno@clisp.org>
23083
23084         Remove HAVE_MBRTOWC conditionals.
23085         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
23086         (mbscasecmp): Assume mbrtowc function.
23087         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
23088         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
23089         * lib/mbschr.c: Include mbuiter.h unconditionally.
23090         (mbschr): Assume mbrtowc function.
23091         * lib/mbscspn.c: Include mbuiter.h unconditionally.
23092         (mbscspn): Assume mbrtowc function.
23093         * lib/mbslen.c: Include mbuiter.h unconditionally.
23094         (mbslen): Assume mbrtowc function.
23095         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
23096         (mbsncasecmp): Assume mbrtowc function.
23097         * lib/mbsnlen.c: Include mbiter.h unconditionally.
23098         (mbsnlen): Assume mbrtowc function.
23099         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
23100         (mbspbrk): Assume mbrtowc function.
23101         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
23102         (mbspcasecmp): Assume mbrtowc function.
23103         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
23104         (mbsrchr): Assume mbrtowc function.
23105         * lib/mbssep.c: Include mbuiter.h unconditionally.
23106         (mbssep): Assume mbrtowc function.
23107         * lib/mbsspn.c: Include mbuiter.h unconditionally.
23108         (mbsspn): Assume mbrtowc function.
23109         * lib/mbsstr.c: Include mbuiter.h unconditionally.
23110         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
23111         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
23112         (mbstok_r): Assume mbrtowc function.
23113         * lib/propername.c: Include mbuiter.h unconditionally.
23114         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
23115         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
23116         (trim2): Assume mbrtowc function.
23117         * lib/mbswidth.c (mbsinit): Remove fallback definition.
23118         (mbsnwidth): Assume mbrtowc function.
23119         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
23120         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
23121         fallback definitions.
23122         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
23123
23124 2008-12-22  Bruno Haible  <bruno@clisp.org>
23125
23126         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
23127
23128 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
23129
23130         * modules/regex: Request emulations for the mb*/wc* functions we need.
23131         * m4/regex.m4: Don't look for those functions here.
23132         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
23133
23134 2008-12-22  Bruno Haible  <bruno@clisp.org>
23135
23136         * modules/fnmatch (Depends-on): Remove duplicated dependency.
23137
23138 2008-12-21  Bruno Haible  <bruno@clisp.org>
23139
23140         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
23141         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
23142         (Include): Remove conditionalization.
23143         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
23144         (Include): Remove conditionalization.
23145         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
23146         (Include): Remove conditionalization.
23147         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
23148         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23149         * NEWS: Mention the change.
23150         Reported by Alan Hourihane <alanh@fairlite.co.uk>
23151         via Sergey Poznyakoff <gray@gnu.org.ua>.
23152
23153 2008-12-21  Bruno Haible  <bruno@clisp.org>
23154
23155         * MODULES.html.sh (Extended multibyte and wide character utilities
23156         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
23157         wcrtomb, wcsrtombs.
23158         (Support for systems lacking POSIX:2008): Add accept, bind, close,
23159         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
23160         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
23161         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
23162
23163 2008-12-21  Bruno Haible  <bruno@clisp.org>
23164
23165         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
23166
23167 2008-12-21  Bruno Haible  <bruno@clisp.org>
23168
23169         * modules/wcsnrtombs-tests: New file.
23170         * tests/test-wcsnrtombs1.sh: New file.
23171         * tests/test-wcsnrtombs2.sh: New file.
23172         * tests/test-wcsnrtombs3.sh: New file.
23173         * tests/test-wcsnrtombs4.sh: New file.
23174         * tests/test-wcsnrtombs.c: New file.
23175
23176         New module 'wcsnrtombs'.
23177         * lib/wchar.in.h (wcsnrtombs): New declaration.
23178         * lib/wcsnrtombs.c: New file.
23179         * lib/wcsrtombs-state.c: New file.
23180         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
23181         (internal_state): Remove variable.
23182         * m4/wcsnrtombs.m4: New file.
23183         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
23184         compilation units.
23185         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
23186         HAVE_WCSNRTOMBS.
23187         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
23188         HAVE_WCSNRTOMBS.
23189         * modules/wcsnrtombs: New file.
23190         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
23191         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
23192
23193 2008-12-21  Bruno Haible  <bruno@clisp.org>
23194
23195         * modules/wcsrtombs-tests: New file.
23196         * tests/test-wcsrtombs1.sh: New file.
23197         * tests/test-wcsrtombs2.sh: New file.
23198         * tests/test-wcsrtombs3.sh: New file.
23199         * tests/test-wcsrtombs4.sh: New file.
23200         * tests/test-wcsrtombs.c: New file.
23201
23202         New module 'wcsrtombs'.
23203         * lib/wchar.in.h (wcsrtombs): New declaration.
23204         * lib/wcsrtombs.c: New file.
23205         * m4/wcsrtombs.m4: New file.
23206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
23207         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23208         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
23209         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23210         * modules/wcsrtombs: New file.
23211         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
23212         bugs.
23213
23214 2008-12-21  Bruno Haible  <bruno@clisp.org>
23215
23216         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
23217         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
23218         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
23219         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
23220         if not correct.
23221         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
23222         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
23223         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23224         m4/locale-zh.m4, m4/codeset.m4.
23225         * doc/posix-functions/wcrtomb.texi: Document the bug.
23226
23227 2008-12-21  Bruno Haible  <bruno@clisp.org>
23228
23229         Work around a btowc() bug on IRIX 6.5.
23230         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
23231         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
23232         REPLACE_WTOBC if not.
23233         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
23234         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
23235         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
23236
23237 2008-12-21  Bruno Haible  <bruno@clisp.org>
23238
23239         * modules/wcrtomb-tests: New file.
23240         * tests/test-wcrtomb.sh: New file.
23241         * tests/test-wcrtomb.c: New file.
23242
23243         New module 'wcrtomb'.
23244         * lib/wchar.in.h (wcrtomb): New declaration.
23245         * lib/wcrtomb.c: New file.
23246         * m4/wcrtomb.m4: New file.
23247         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
23248         HAVE_WCRTOMB.
23249         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
23250         HAVE_WCRTOMB.
23251         * modules/wcrtomb: New file.
23252         * doc/posix-functions/wcrtomb.texi: Mention the new module.
23253
23254 2008-12-21  Bruno Haible  <bruno@clisp.org>
23255
23256         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
23257         * modules/mbsrtowcs (Files): Likewise.
23258         * modules/wctob (Files): Likewise.
23259         * modules/c-strcase-tests (Files): Likewise.
23260         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23261         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23262         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23263         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23264         * modules/vasnprintf-posix-tests (Files): Likewise.
23265
23266 2008-12-21  William Pursell  <bill.pursell@gmail.com>
23267
23268         gitlog-to-changelog: pass all command-line arguments to git-log
23269         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
23270         it is sometimes convenient to filter the commits in various ways.
23271         gitlog-to-changelog only allows --since to specify a start date,
23272         but git-log itself supports many other filtering mechanisms.
23273         At the moment, I want to filter by branch name.  Rather than
23274         adding a --branch option to gitlog-to-changelog, it seems more
23275         flexible to simply pass all options directly to git-log and let
23276         git do the work.  Notice that this effectively makes --since a
23277         redundant option for gitlog-to-changelog, but removing it would
23278         require current usage to change since calls would then require
23279         an additional '--'.
23280
23281 2008-12-21  Bruno Haible  <bruno@clisp.org>
23282
23283         * modules/mbsnrtowcs-tests: New file.
23284         * tests/test-mbsnrtowcs1.sh: New file.
23285         * tests/test-mbsnrtowcs2.sh: New file.
23286         * tests/test-mbsnrtowcs3.sh: New file.
23287         * tests/test-mbsnrtowcs4.sh: New file.
23288         * tests/test-mbsnrtowcs.c: New file.
23289
23290         New module 'mbsnrtowcs'.
23291         * lib/wchar.in.h (mbsnrtowcs): New declaration.
23292         * lib/mbsnrtowcs.c: New file.
23293         * lib/mbsrtowcs-state.c: New file.
23294         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
23295         (internal_state): Remove variable.
23296         * m4/mbsnrtowcs.m4: New file.
23297         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
23298         compilation units.
23299         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
23300         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23301         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
23302         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23303         * modules/mbsnrtowcs: New file.
23304         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
23305         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
23306         portability problem.
23307
23308 2008-12-21  Bruno Haible  <bruno@clisp.org>
23309
23310         Work around mbsrtowcs bug.
23311         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
23312         (gl_FUNC_MBSRTOWCS): Invoke it.
23313         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23314         m4/locale-zh.m4.
23315         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
23316
23317 2008-12-21  Bruno Haible  <bruno@clisp.org>
23318
23319         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
23320
23321 2008-12-21  Bruno Haible  <bruno@clisp.org>
23322
23323         Update doc for AIX.
23324         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
23325         16-bit wchar_t type.
23326         * doc/posix-functions/btowc.texi: Likewise.
23327         * doc/posix-functions/fgetwc.texi: Likewise.
23328         * doc/posix-functions/fgetws.texi: Likewise.
23329         * doc/posix-functions/fputwc.texi: Likewise.
23330         * doc/posix-functions/fputws.texi: Likewise.
23331         * doc/posix-functions/fwide.texi: Likewise.
23332         * doc/posix-functions/fwprintf.texi: Likewise.
23333         * doc/posix-functions/fwscanf.texi: Likewise.
23334         * doc/posix-functions/getwchar.texi: Likewise.
23335         * doc/posix-functions/getwc.texi: Likewise.
23336         * doc/posix-functions/iswalnum.texi: Likewise.
23337         * doc/posix-functions/iswalpha.texi: Likewise.
23338         * doc/posix-functions/iswblank.texi: Likewise.
23339         * doc/posix-functions/iswcntrl.texi: Likewise.
23340         * doc/posix-functions/iswctype.texi: Likewise.
23341         * doc/posix-functions/iswdigit.texi: Likewise.
23342         * doc/posix-functions/iswgraph.texi: Likewise.
23343         * doc/posix-functions/iswlower.texi: Likewise.
23344         * doc/posix-functions/iswprint.texi: Likewise.
23345         * doc/posix-functions/iswpunct.texi: Likewise.
23346         * doc/posix-functions/iswspace.texi: Likewise.
23347         * doc/posix-functions/iswupper.texi: Likewise.
23348         * doc/posix-functions/iswxdigit.texi: Likewise.
23349         * doc/posix-functions/mbrtowc.texi: Likewise.
23350         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23351         * doc/posix-functions/mbstowcs.texi: Likewise.
23352         * doc/posix-functions/mbtowc.texi: Likewise.
23353         * doc/posix-functions/putwchar.texi: Likewise.
23354         * doc/posix-functions/putwc.texi: Likewise.
23355         * doc/posix-functions/swprintf.texi: Likewise.
23356         * doc/posix-functions/tolower.texi: Likewise.
23357         * doc/posix-functions/toupper.texi: Likewise.
23358         * doc/posix-functions/towctrans.texi: Likewise.
23359         * doc/posix-functions/ungetwc.texi: Likewise.
23360         * doc/posix-functions/vswprintf.texi: Likewise.
23361         * doc/posix-functions/wcrtomb.texi: Likewise.
23362         * doc/posix-functions/wcscat.texi: Likewise.
23363         * doc/posix-functions/wcschr.texi: Likewise.
23364         * doc/posix-functions/wcscmp.texi: Likewise.
23365         * doc/posix-functions/wcscoll.texi: Likewise.
23366         * doc/posix-functions/wcscpy.texi: Likewise.
23367         * doc/posix-functions/wcscspn.texi: Likewise.
23368         * doc/posix-functions/wcsftime.texi: Likewise.
23369         * doc/posix-functions/wcslen.texi: Likewise.
23370         * doc/posix-functions/wcsncat.texi: Likewise.
23371         * doc/posix-functions/wcsncmp.texi: Likewise.
23372         * doc/posix-functions/wcsncpy.texi: Likewise.
23373         * doc/posix-functions/wcspbrk.texi: Likewise.
23374         * doc/posix-functions/wcsrchr.texi: Likewise.
23375         * doc/posix-functions/wcsrtombs.texi: Likewise.
23376         * doc/posix-functions/wcsspn.texi: Likewise.
23377         * doc/posix-functions/wcsstr.texi: Likewise.
23378         * doc/posix-functions/wcstod.texi: Likewise.
23379         * doc/posix-functions/wcstof.texi: Likewise.
23380         * doc/posix-functions/wcstoimax.texi: Likewise.
23381         * doc/posix-functions/wcstok.texi: Likewise.
23382         * doc/posix-functions/wcstold.texi: Likewise.
23383         * doc/posix-functions/wcstoll.texi: Likewise.
23384         * doc/posix-functions/wcstol.texi: Likewise.
23385         * doc/posix-functions/wcstombs.texi: Likewise.
23386         * doc/posix-functions/wcstoull.texi: Likewise.
23387         * doc/posix-functions/wcstoul.texi: Likewise.
23388         * doc/posix-functions/wcstoumax.texi: Likewise.
23389         * doc/posix-functions/wcswidth.texi: Likewise.
23390         * doc/posix-functions/wcsxfrm.texi: Likewise.
23391         * doc/posix-functions/wctob.texi: Likewise.
23392         * doc/posix-functions/wctomb.texi: Likewise.
23393         * doc/posix-functions/wctrans.texi: Likewise.
23394         * doc/posix-functions/wctype.texi: Likewise.
23395         * doc/posix-functions/wcwidth.texi: Likewise.
23396         * doc/posix-functions/wmemchr.texi: Likewise.
23397         * doc/posix-functions/wmemcmp.texi: Likewise.
23398         * doc/posix-functions/wmemcpy.texi: Likewise.
23399         * doc/posix-functions/wmemmove.texi: Likewise.
23400         * doc/posix-functions/wmemset.texi: Likewise.
23401         * doc/posix-functions/wprintf.texi: Likewise.
23402         * doc/posix-functions/wscanf.texi: Likewise.
23403
23404 2008-12-21  Bruno Haible  <bruno@clisp.org>
23405
23406         Update doc for HP-UX 11.11.
23407         * doc/posix-functions/btowc.texi: Clarify that the function is missing
23408         in HP-UX version 11.00, not in all versions of HP-UX 11.
23409         * doc/posix-functions/fwide.texi: Likewise.
23410         * doc/posix-functions/fwprintf.texi: Likewise.
23411         * doc/posix-functions/fwscanf.texi: Likewise.
23412         * doc/posix-functions/inet_ntop.texi: Likewise.
23413         * doc/posix-functions/inet_pton.texi: Likewise.
23414         * doc/posix-functions/mbrlen.texi: Likewise.
23415         * doc/posix-functions/mbrtowc.texi: Likewise.
23416         * doc/posix-functions/mbsinit.texi: Likewise.
23417         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23418         * doc/posix-functions/swprintf.texi: Likewise.
23419         * doc/posix-functions/swscanf.texi: Likewise.
23420         * doc/posix-functions/towctrans.texi: Likewise.
23421         * doc/posix-functions/vfwprintf.texi: Likewise.
23422         * doc/posix-functions/vswprintf.texi: Likewise.
23423         * doc/posix-functions/vwprintf.texi: Likewise.
23424         * doc/posix-functions/wcrtomb.texi: Likewise.
23425         * doc/posix-functions/wcsrtombs.texi: Likewise.
23426         * doc/posix-functions/wcsstr.texi: Likewise.
23427         * doc/posix-functions/wctob.texi: Likewise.
23428         * doc/posix-functions/wctrans.texi: Likewise.
23429         * doc/posix-functions/wmemchr.texi: Likewise.
23430         * doc/posix-functions/wmemcmp.texi: Likewise.
23431         * doc/posix-functions/wmemcpy.texi: Likewise.
23432         * doc/posix-functions/wmemmove.texi: Likewise.
23433         * doc/posix-functions/wmemset.texi: Likewise.
23434         * doc/posix-functions/wprintf.texi: Likewise.
23435         * doc/posix-functions/wscanf.texi: Likewise.
23436
23437 2008-12-21  Bruno Haible  <bruno@clisp.org>
23438
23439         Work around a portability problem.
23440         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
23441         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
23442
23443 2008-12-20  Bruno Haible  <bruno@clisp.org>
23444
23445         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
23446         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
23447         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
23448         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
23449         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
23450
23451         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
23452         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
23453         set.
23454         (GNULIB_defined_mbstate_t): New macro.
23455         (mbsinit): Redefine if REPLACE_MBSINIT is set.
23456         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
23457         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
23458         reuses the system's mbrtowc function but works around the bugs.
23459         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
23460         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
23461         macros.
23462         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
23463         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
23464         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
23465         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
23466         REPLACE_MBSINIT if mbsinit needs to be overridden.
23467         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
23468         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23469         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
23470         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23471         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23472         m4/locale-zh.m4.
23473         (Depends): Add mbsinit.
23474         * modules/mbsinit (Depends): Add mbrtowc.
23475         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
23476
23477 2008-12-20  Bruno Haible  <bruno@clisp.org>
23478
23479         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
23480         so that there are no conversion errors on AIX.
23481         * tests/test-mbsrtowcs.c (main): LIkewise.
23482
23483 2008-12-20  Bruno Haible  <bruno@clisp.org>
23484
23485         Work around wctob bug on Solaris <= 9.
23486         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
23487         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
23488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
23489         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
23490         * modules/wctob (Files): Add m4/locale-fr.m4.
23491         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
23492
23493 2008-12-20  Bruno Haible  <bruno@clisp.org>
23494
23495         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
23496         /dev/null.
23497         * tests/test-select-in.sh: Likewise.
23498         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23499
23500 2008-12-20  Bruno Haible  <bruno@clisp.org>
23501
23502         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
23503         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
23504         Cygwin 1.5.x.
23505
23506 2008-12-20  Bruno Haible  <bruno@clisp.org>
23507
23508         Ensure mbstate_t is defined on HP-UX 11.11.
23509         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
23510         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
23511         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
23512         AC_USE_SYSTEM_EXTENSIONS.
23513         * modules/fnmatch (Depends-on): Add extensions.
23514         * modules/mbrlen (Depends-on): Likewise.
23515         * modules/mbrtowc (Depends-on): Likewise.
23516         * modules/mbsinit (Depends-on): Likewise.
23517         * modules/mbsrtowcs (Depends-on): Likewise.
23518         * modules/mbswidth (Depends-on): Likewise.
23519         * modules/quotearg (Depends-on): Likewise.
23520         * modules/strftime (Depends-on): Likewise.
23521
23522 2008-12-20  Bruno Haible  <bruno@clisp.org>
23523
23524         Ensure wctob is declared on IRIX 6.5.
23525         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
23526         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
23527         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
23528         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
23529         of HAVE_WCTOB.
23530         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
23531         HAVE_WCTOB.
23532         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
23533
23534 2008-12-19  Bruno Haible  <bruno@clisp.org>
23535
23536         * modules/mbsrtowcs-tests: New file.
23537         * tests/test-mbsrtowcs1.sh: New file.
23538         * tests/test-mbsrtowcs2.sh: New file.
23539         * tests/test-mbsrtowcs3.sh: New file.
23540         * tests/test-mbsrtowcs4.sh: New file.
23541         * tests/test-mbsrtowcs.c: New file.
23542
23543         New module 'mbsrtowcs'.
23544         * lib/wchar.in.h (mbsrtowcs): New declaration.
23545         * lib/mbsrtowcs.c: New file.
23546         * m4/mbsrtowcs.m4: New file.
23547         * modules/mbsrtowcs: New file.
23548         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
23549         HAVE_MBSRTOWCS.
23550         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
23551         HAVE_MBSRTOWCS.
23552         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
23553
23554 2008-12-19  Bruno Haible  <bruno@clisp.org>
23555
23556         New module 'mbrlen'.
23557         * lib/wchar.in.h (mbrlen): New declaration.
23558         * lib/mbrlen.c: New file.
23559         * m4/mbrlen.m4: New file.
23560         * modules/mbrlen: New file.
23561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23562         HAVE_MBRLEN.
23563         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
23564         HAVE_MBRLEN.
23565         * doc/posix-functions/mbrlen.texi: Document the new module.
23566
23567 2008-12-19  Bruno Haible  <bruno@clisp.org>
23568
23569         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
23570         * modules/mbrtowc (Depends-on): Add verify.
23571         Suggested by Paul Eggert.
23572
23573 2008-12-18  Bruno Haible  <bruno@clisp.org>
23574
23575         * modules/mbsinit-tests: New file.
23576         * tests/test-mbsinit.sh: New file.
23577         * tests/test-mbsinit.c: New file.
23578
23579 2008-12-18  Bruno Haible  <bruno@clisp.org>
23580
23581         * modules/mbrtowc-tests: New file.
23582         * tests/test-mbrtowc1.sh: New file.
23583         * tests/test-mbrtowc2.sh: New file.
23584         * tests/test-mbrtowc3.sh: New file.
23585         * tests/test-mbrtowc4.sh: New file.
23586         * tests/test-mbrtowc.c: New file.
23587
23588         New module 'mbrtowc'.
23589         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23590         mbsinit and mbrtowc.
23591         (mbrtowc): New declaration.
23592         * lib/mbrtowc.c: New file.
23593         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23594         * modules/mbrtowc: New file.
23595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23596         HAVE_MBRTOWC.
23597         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23598         HAVE_MBRTOWC.
23599         * doc/posix-functions/mbrtowc.texi: Document the new module.
23600
23601 2008-12-18  Bruno Haible  <bruno@clisp.org>
23602
23603         New module 'wctob'.
23604         * lib/wchar.in.h (wctob): New declaration.
23605         * lib/wctob.c: New file.
23606         * m4/wctob.m4: New file.
23607         * modules/wctob: New file.
23608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23609         HAVE_WCTOB.
23610         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23611         * doc/posix-functions/wctob.texi: Document the new module.
23612
23613 2008-12-18  Bruno Haible  <bruno@clisp.org>
23614
23615         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23616         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23617
23618 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23619
23620         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23621         G. Christensen" <tgc@jupiterrise.com>.
23622
23623         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23624         G. Christensen" <tgc@jupiterrise.com>.
23625
23626         * lib/flock.c: Need to include string.h.  Reported by "Tom
23627         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23628         <ebb9@byu.net>.
23629
23630 2008-12-18  Bruno Haible  <bruno@clisp.org>
23631
23632         * m4/locale-ja.m4: New file, from GNU gettext.
23633
23634 2008-12-17  Bruno Haible  <bruno@clisp.org>
23635
23636         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23637         Suggested by Eric Blake.
23638
23639 2008-12-17  Bruno Haible  <bruno@clisp.org>
23640
23641         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23642
23643 2008-12-17  Bruno Haible  <bruno@clisp.org>
23644
23645         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23646         * modules/mbsinit (Depends-on): Add verify.
23647         Suggested by Paul Eggert.
23648
23649 2008-12-17  Bruno Haible  <bruno@clisp.org>
23650
23651         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23652         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23653         gl_FUNC_MBRTOWC.
23654         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23655         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23656         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23657         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23658         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23659         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23660         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23661         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23662         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23663         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23664         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23665         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23666         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23667         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23668         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23669         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23670         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23671         * modules/trim (configure.ac): Likewise.
23672
23673 2008-12-17  Bruno Haible  <bruno@clisp.org>
23674
23675         * modules/btowc-tests: New file.
23676         * tests/test-btowc1.sh: New file.
23677         * tests/test-btowc2.sh: New file.
23678         * tests/test-btowc.c: New file.
23679
23680         New module 'btowc'.
23681         * lib/wchar.in.h (btowc): New declaration.
23682         * lib/btowc.c: New file.
23683         * m4/btowc.m4: New file.
23684         * modules/btowc: New file.
23685         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23686         HAVE_BTOWC.
23687         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23688         * doc/posix-functions/btowc.texi: Document the new module.
23689
23690 2008-12-17  Bruno Haible  <bruno@clisp.org>
23691
23692         New module 'mbsinit'.
23693         * lib/wchar.in.h (mbsinit): New declaration.
23694         * lib/mbsinit.c: New file.
23695         * m4/mbsinit.m4: New file.
23696         * modules/mbsinit: New file.
23697         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23698         HAVE_MBSINIT.
23699         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23700         HAVE_MBSINIT.
23701         * doc/posix-functions/mbsinit.texi: Document the new module.
23702
23703 2008-12-16  Bruno Haible  <bruno@clisp.org>
23704
23705         * lib/unistd.in.h: Add comment.
23706         * tests/test-environ.c: Don't include <stdlib.h>.
23707
23708 2008-12-16  Bruno Haible  <bruno@clisp.org>
23709
23710         * lib/parse-duration.h (parse_duration): Document return value
23711         convention.
23712         * lib/parse-duration.c: Include specification header first. Add
23713         comments.
23714         (_): Remove macro.
23715         (parse_year_month_day, parse_hour_minute_second): Move side effects
23716         outside of strchr call.
23717         (parse_non_iso8601): Move side effects outside of isspace call.
23718         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23719         call.
23720
23721 2008-12-16  Bruno Haible  <bruno@clisp.org>
23722
23723         * tests/test-parse-duration.sh: Produce no output when the test
23724         succeeds.
23725
23726 2008-12-16  Bruno Haible  <bruno@clisp.org>
23727
23728         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23729         expressions.
23730
23731 2008-12-15  Bruno Haible  <bruno@clisp.org>
23732
23733         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23734         * doc/glibc-functions/flistxattr.texi: Likewise.
23735         * doc/glibc-functions/fopencookie.texi: Likewise.
23736         * doc/glibc-functions/fremovexattr.texi: Likewise.
23737         * doc/glibc-functions/fsetxattr.texi: Likewise.
23738         * doc/glibc-functions/getxattr.texi: Likewise.
23739         * doc/glibc-functions/lgetxattr.texi: Likewise.
23740         * doc/glibc-functions/listxattr.texi: Likewise.
23741         * doc/glibc-functions/llistxattr.texi: Likewise.
23742         * doc/glibc-functions/lremovexattr.texi: Likewise.
23743         * doc/glibc-functions/lsetxattr.texi: Likewise.
23744         * doc/glibc-functions/removexattr.texi: Likewise.
23745         * doc/glibc-functions/setxattr.texi: Likewise.
23746         * doc/posix-functions/open_memstream.texi: Likewise.
23747
23748 2008-12-15  Eric Blake  <ebb9@byu.net>
23749
23750         Update doc for cygwin 1.7.
23751         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23752         functions.
23753         * doc/posix-functions/fchmodat.texi: Likewise.
23754         * doc/posix-functions/fchownat.texi: Likewise.
23755         * doc/posix-functions/fdopendir.texi: Likewise.
23756         * doc/posix-functions/fmemopen.texi: Likewise.
23757         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23758         * doc/posix-functions/fstatat.texi: Likewise.
23759         * doc/posix-functions/futimens.texi: Likewise.
23760         * doc/posix-functions/gai_strerror.texi: Likewise.
23761         * doc/posix-functions/getaddrinfo.texi: Likewise.
23762         * doc/posix-functions/getnameinfo.texi: Likewise.
23763         * doc/posix-functions/if_freenameindex.texi: Likewise.
23764         * doc/posix-functions/if_indextoname.texi: Likewise.
23765         * doc/posix-functions/if_nameindex.texi: Likewise.
23766         * doc/posix-functions/if_nametoindex.texi: Likewise.
23767         * doc/posix-functions/insque.texi: Likewise.
23768         * doc/posix-functions/linkat.texi: Likewise.
23769         * doc/posix-functions/llrint.texi: Likewise.
23770         * doc/posix-functions/llrintf.texi: Likewise.
23771         * doc/posix-functions/llrintl.texi: Likewise.
23772         * doc/posix-functions/lockf.texi: Likewise.
23773         * doc/posix-functions/lrintl.texi: Likewise.
23774         * doc/posix-functions/mkdirat.texi: Likewise.
23775         * doc/posix-functions/mkfifoat.texi: Likewise.
23776         * doc/posix-functions/mknodat.texi: Likewise.
23777         * doc/posix-functions/mq_close.texi: Likewise.
23778         * doc/posix-functions/mq_getattr.texi: Likewise.
23779         * doc/posix-functions/mq_notify.texi: Likewise.
23780         * doc/posix-functions/mq_open.texi: Likewise.
23781         * doc/posix-functions/mq_receive.texi: Likewise.
23782         * doc/posix-functions/mq_send.texi: Likewise.
23783         * doc/posix-functions/mq_setattr.texi: Likewise.
23784         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23785         * doc/posix-functions/mq_timedsend.texi: Likewise.
23786         * doc/posix-functions/mq_unlink.texi: Likewise.
23787         * doc/posix-functions/open_memstream.texi: Likewise.
23788         * doc/posix-functions/openat.texi: Likewise.
23789         * doc/posix-functions/posix_fadvise.texi: Likewise.
23790         * doc/posix-functions/posix_fallocate.texi: Likewise.
23791         * doc/posix-functions/posix_madvise.texi: Likewise.
23792         * doc/posix-functions/posix_memalign.texi: Likewise.
23793         * doc/posix-functions/posix_openpt.texi: Likewise.
23794         * doc/posix-functions/readlinkat.texi: Likewise.
23795         * doc/posix-functions/remque.texi: Likewise.
23796         * doc/posix-functions/renameat.texi: Likewise.
23797         * doc/posix-functions/rintl.texi: Likewise.
23798         * doc/posix-functions/sem_unlink.texi: Likewise.
23799         * doc/posix-functions/shm_open.texi: Likewise.
23800         * doc/posix-functions/shm_unlink.texi: Likewise.
23801         * doc/posix-functions/signgam.texi: Likewise.
23802         * doc/posix-functions/sigset.texi: Likewise.
23803         * doc/posix-functions/stpcpy.texi: Likewise.
23804         * doc/posix-functions/stpncpy.texi: Likewise.
23805         * doc/posix-functions/strerror.texi: Likewise.
23806         * doc/posix-functions/strtod.texi: Likewise.
23807         * doc/posix-functions/symlinkat.texi: Likewise.
23808         * doc/posix-functions/unlinkat.texi: Likewise.
23809         * doc/posix-functions/utimensat.texi: Likewise.
23810         * doc/glibc-functions/bindresvport.texi: Likewise.
23811         * doc/glibc-functions/dn_expand.texi: Likewise.
23812         * doc/glibc-functions/exp10.texi: Likewise.
23813         * doc/glibc-functions/exp10f.texi: Likewise.
23814         * doc/glibc-functions/fgetxattr.texi: Likewise.
23815         * doc/glibc-functions/flistxattr.texi: Likewise.
23816         * doc/glibc-functions/fopencookie.texi: Likewise.
23817         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23818         * doc/glibc-functions/fremovexattr.texi: Likewise.
23819         * doc/glibc-functions/fsetxattr.texi: Likewise.
23820         * doc/glibc-functions/getifaddrs.texi: Likewise.
23821         * doc/glibc-functions/getxattr.texi: Likewise.
23822         * doc/glibc-functions/lgetxattr.texi: Likewise.
23823         * doc/glibc-functions/listxattr.texi: Likewise.
23824         * doc/glibc-functions/llistxattr.texi: Likewise.
23825         * doc/glibc-functions/lremovexattr.texi: Likewise.
23826         * doc/glibc-functions/lsetxattr.texi: Likewise.
23827         * doc/glibc-functions/pow10.texi: Likewise.
23828         * doc/glibc-functions/pow10f.texi: Likewise.
23829         * doc/glibc-functions/rcmd_af.texi: Likewise.
23830         * doc/glibc-functions/removexattr.texi: Likewise.
23831         * doc/glibc-functions/res_init.texi: Likewise.
23832         * doc/glibc-functions/res_mkquery.texi: Likewise.
23833         * doc/glibc-functions/res_query.texi: Likewise.
23834         * doc/glibc-functions/res_querydomain.texi: Likewise.
23835         * doc/glibc-functions/res_send.texi: Likewise.
23836         * doc/glibc-functions/rresvport_af.texi: Likewise.
23837         * doc/glibc-functions/setxattr.texi: Likewise.
23838         * doc/glibc-functions/strcasestr.texi: Likewise.
23839
23840 2008-12-15  Bruno Haible  <bruno@clisp.org>
23841
23842         Fix compilation error on OSF/1 4.0.
23843         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
23844         <sys/time.h>, simply delegate to the system header.
23845         Reported by Daniel Richard G. <oss@teragram.com>.
23846
23847 2008-12-15  Bruno Haible  <bruno@clisp.org>
23848
23849         * doc/posix-functions/openat.texi: Mention the 'openat' module.
23850         * doc/posix-functions/fchmodat.texi: Likewise.
23851         * doc/posix-functions/fchownat.texi: Likewise.
23852         * doc/posix-functions/fdopendir.texi: Likewise.
23853         * doc/posix-functions/fstatat.texi: Likewise.
23854         * doc/posix-functions/mkdirat.texi: Likewise.
23855         * doc/posix-functions/unlinkat.texi: Likewise.
23856
23857 2008-12-14  Bruno Haible  <bruno@clisp.org>
23858
23859         Update doc for POSIX:2008.
23860         * doc/posix-functions/faccessat.texi: New file.
23861         * doc/posix-functions/fchmodat.texi: New file.
23862         * doc/posix-functions/fchownat.texi: New file.
23863         * doc/posix-functions/fdopendir.texi: New file.
23864         * doc/posix-functions/fstatat.texi: New file.
23865         * doc/posix-functions/futimens.texi: New file.
23866         * doc/posix-functions/linkat.texi: New file.
23867         * doc/posix-functions/mkdirat.texi: New file.
23868         * doc/posix-functions/mkfifoat.texi: New file.
23869         * doc/posix-functions/mknodat.texi: New file.
23870         * doc/posix-functions/open_wmemstream.texi: New file.
23871         * doc/posix-functions/openat.texi: New file.
23872         * doc/posix-functions/psiginfo.texi: New file.
23873         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
23874         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
23875         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
23876         * doc/posix-functions/readlinkat.texi: New file.
23877         * doc/posix-functions/renameat.texi: New file.
23878         * doc/posix-functions/strerror_l.texi: New file.
23879         * doc/posix-functions/symlinkat.texi: New file.
23880         * doc/posix-functions/unlinkat.texi: New file.
23881         * doc/posix-functions/utimensat.texi: New file.
23882         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23883
23884 2008-12-14  Bruno Haible  <bruno@clisp.org>
23885
23886         Update doc for POSIX:2008.
23887         * doc/posix-functions/alphasort.texi: Renamed from
23888         doc/glibc-functions/alphasort.texi.
23889         * doc/posix-functions/dirfd.texi: Renamed from
23890         doc/glibc-functions/dirfd.texi.
23891         * doc/posix-functions/dprintf.texi: Renamed from
23892         doc/glibc-functions/dprintf.texi.
23893         * doc/posix-functions/duplocale.texi: Renamed from
23894         doc/glibc-functions/duplocale.texi.
23895         * doc/posix-functions/fexecve.texi: Renamed from
23896         doc/glibc-functions/fexecve.texi.
23897         * doc/posix-functions/fmemopen.texi: Renamed from
23898         doc/glibc-functions/fmemopen.texi.
23899         * doc/posix-functions/freelocale.texi: Renamed from
23900         doc/glibc-functions/freelocale.texi.
23901         * doc/posix-functions/getdate_err.texi: Renamed from
23902         doc/glibc-functions/getdate_err.texi.
23903         * doc/posix-functions/isalnum_l.texi: Renamed from
23904         doc/glibc-functions/isalnum_l.texi.
23905         * doc/posix-functions/isalpha_l.texi: Renamed from
23906         doc/glibc-functions/isalpha_l.texi.
23907         * doc/posix-functions/isblank_l.texi: Renamed from
23908         doc/glibc-functions/isblank_l.texi.
23909         * doc/posix-functions/iscntrl_l.texi: Renamed from
23910         doc/glibc-functions/iscntrl_l.texi.
23911         * doc/posix-functions/isdigit_l.texi: Renamed from
23912         doc/glibc-functions/isdigit_l.texi.
23913         * doc/posix-functions/isgraph_l.texi: Renamed from
23914         doc/glibc-functions/isgraph_l.texi.
23915         * doc/posix-functions/islower_l.texi: Renamed from
23916         doc/glibc-functions/islower_l.texi.
23917         * doc/posix-functions/isprint_l.texi: Renamed from
23918         doc/glibc-functions/isprint_l.texi.
23919         * doc/posix-functions/ispunct_l.texi: Renamed from
23920         doc/glibc-functions/ispunct_l.texi.
23921         * doc/posix-functions/isspace_l.texi: Renamed from
23922         doc/glibc-functions/isspace_l.texi.
23923         * doc/posix-functions/isupper_l.texi: Renamed from
23924         doc/glibc-functions/isupper_l.texi.
23925         * doc/posix-functions/iswalnum_l.texi: Renamed from
23926         doc/glibc-functions/iswalnum_l.texi.
23927         * doc/posix-functions/iswalpha_l.texi: Renamed from
23928         doc/glibc-functions/iswalpha_l.texi.
23929         * doc/posix-functions/iswblank_l.texi: Renamed from
23930         doc/glibc-functions/iswblank_l.texi.
23931         * doc/posix-functions/iswcntrl_l.texi: Renamed from
23932         doc/glibc-functions/iswcntrl_l.texi.
23933         * doc/posix-functions/iswctype_l.texi: Renamed from
23934         doc/glibc-functions/iswctype_l.texi.
23935         * doc/posix-functions/iswdigit_l.texi: Renamed from
23936         doc/glibc-functions/iswdigit_l.texi.
23937         * doc/posix-functions/iswgraph_l.texi: Renamed from
23938         doc/glibc-functions/iswgraph_l.texi.
23939         * doc/posix-functions/iswlower_l.texi: Renamed from
23940         doc/glibc-functions/iswlower_l.texi.
23941         * doc/posix-functions/iswprint_l.texi: Renamed from
23942         doc/glibc-functions/iswprint_l.texi.
23943         * doc/posix-functions/iswpunct_l.texi: Renamed from
23944         doc/glibc-functions/iswpunct_l.texi.
23945         * doc/posix-functions/iswspace_l.texi: Renamed from
23946         doc/glibc-functions/iswspace_l.texi.
23947         * doc/posix-functions/iswupper_l.texi: Renamed from
23948         doc/glibc-functions/iswupper_l.texi.
23949         * doc/posix-functions/iswxdigit_l.texi: Renamed from
23950         doc/glibc-functions/iswxdigit_l.texi.
23951         * doc/posix-functions/isxdigit_l.texi: Renamed from
23952         doc/glibc-functions/isxdigit_l.texi.
23953         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
23954         doc/glibc-functions/mbsnrtowcs.texi.
23955         * doc/posix-functions/mkdtemp.texi: Renamed from
23956         doc/glibc-functions/mkdtemp.texi.
23957         * doc/posix-functions/newlocale.texi: Renamed from
23958         doc/glibc-functions/newlocale.texi.
23959         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
23960         doc/glibc-functions/nl_langinfo_l.texi.
23961         * doc/posix-functions/open_memstream.texi: Renamed from
23962         doc/glibc-functions/open_memstream.texi.
23963         * doc/posix-functions/opterr.texi: Renamed from
23964         doc/glibc-functions/opterr.texi.
23965         * doc/posix-functions/optind.texi: Renamed from
23966         doc/glibc-functions/optind.texi.
23967         * doc/posix-functions/optopt.texi: Renamed from
23968         doc/glibc-functions/optopt.texi.
23969         * doc/posix-functions/psignal.texi: Renamed from
23970         doc/glibc-functions/psignal.texi.
23971         * doc/posix-functions/scandir.texi: Renamed from
23972         doc/glibc-functions/scandir.texi.
23973         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
23974         doc/glibc-functions/sched_get_priority_min.texi.
23975         * doc/posix-functions/signgam.texi: Renamed from
23976         doc/glibc-functions/signgam.texi.
23977         * doc/posix-functions/stpcpy.texi: Renamed from
23978         doc/glibc-functions/stpcpy.texi.
23979         * doc/posix-functions/stpncpy.texi: Renamed from
23980         doc/glibc-functions/stpncpy.texi.
23981         * doc/posix-functions/strcasecmp_l.texi: Renamed from
23982         doc/glibc-functions/strcasecmp_l.texi.
23983         * doc/posix-functions/strcoll_l.texi: Renamed from
23984         doc/glibc-functions/strcoll_l.texi.
23985         * doc/posix-functions/strfmon_l.texi: Renamed from
23986         doc/glibc-functions/strfmon_l.texi.
23987         * doc/posix-functions/strftime_l.texi: Renamed from
23988         doc/glibc-functions/strftime_l.texi.
23989         * doc/posix-functions/strncasecmp_l.texi: Renamed from
23990         doc/glibc-functions/strncasecmp_l.texi.
23991         * doc/posix-functions/strndup.texi: Renamed from
23992         doc/glibc-functions/strndup.texi.
23993         * doc/posix-functions/strnlen.texi: Renamed from
23994         doc/glibc-functions/strnlen.texi.
23995         * doc/posix-functions/strsignal.texi: Renamed from
23996         doc/glibc-functions/strsignal.texi.
23997         * doc/posix-functions/strxfrm_l.texi: Renamed from
23998         doc/glibc-functions/strxfrm_l.texi.
23999         * doc/posix-functions/timer_gettime.texi: Renamed from
24000         doc/glibc-functions/timer_gettime.texi.
24001         * doc/posix-functions/tolower_l.texi: Renamed from
24002         doc/glibc-functions/tolower_l.texi.
24003         * doc/posix-functions/toupper_l.texi: Renamed from
24004         doc/glibc-functions/toupper_l.texi.
24005         * doc/posix-functions/towctrans_l.texi: Renamed from
24006         doc/glibc-functions/towctrans_l.texi.
24007         * doc/posix-functions/towlower_l.texi: Renamed from
24008         doc/glibc-functions/towlower_l.texi.
24009         * doc/posix-functions/towupper_l.texi: Renamed from
24010         doc/glibc-functions/towupper_l.texi.
24011         * doc/posix-functions/uselocale.texi: Renamed from
24012         doc/glibc-functions/uselocale.texi.
24013         * doc/posix-functions/vdprintf.texi: Renamed from
24014         doc/glibc-functions/vdprintf.texi.
24015         * doc/posix-functions/wcpcpy.texi:
24016         Renamed from doc/glibc-functions/wcpcpy.texi.
24017         * doc/posix-functions/wcpncpy.texi: Renamed from
24018         doc/glibc-functions/wcpncpy.texi.
24019         * doc/posix-functions/wcscasecmp.texi: Renamed from
24020         doc/glibc-functions/wcscasecmp.texi.
24021         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
24022         doc/glibc-functions/wcscasecmp_l.texi.
24023         * doc/posix-functions/wcscoll_l.texi: Renamed from
24024         doc/glibc-functions/wcscoll_l.texi.
24025         * doc/posix-functions/wcsdup.texi: Renamed from
24026         doc/glibc-functions/wcsdup.texi.
24027         * doc/posix-functions/wcsncasecmp.texi: Renamed from
24028         doc/glibc-functions/wcsncasecmp.texi.
24029         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
24030         doc/glibc-functions/wcsncasecmp_l.texi.
24031         * doc/posix-functions/wcsnlen.texi: Renamed from
24032         doc/glibc-functions/wcsnlen.texi.
24033         * doc/posix-functions/wcsnrtombs.texi: Renamed from
24034         doc/glibc-functions/wcsnrtombs.texi.
24035         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
24036         doc/glibc-functions/wcsxfrm_l.texi.
24037         * doc/posix-functions/wctrans_l.texi: Renamed from
24038         doc/glibc-functions/wctrans_l.texi.
24039         * doc/posix-functions/wctype_l.texi: Renamed from
24040         doc/glibc-functions/wctype_l.texi.
24041         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24042         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
24043         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
24044         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
24045         these subsections.
24046         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
24047         Remove sections.
24048
24049 2008-12-14  Bruno Haible  <bruno@clisp.org>
24050
24051         Update doc for POSIX:2008.
24052         * doc/posix-functions/*.texi: Update URL of POSIX specification.
24053
24054 2008-12-14  Bruno Haible  <bruno@clisp.org>
24055
24056         Update doc for POSIX:2008.
24057         * doc/pastposix-functions/bcmp.texi: Renamed from
24058         doc/posix-functions/bcmp.texi.
24059         * doc/pastposix-functions/bcopy.texi: Renamed from
24060         doc/posix-functions/bcopy.texi.
24061         * doc/pastposix-functions/bsd_signal.texi: Renamed from
24062         doc/posix-functions/bsd_signal.texi.
24063         * doc/pastposix-functions/bzero.texi: Renamed from
24064         doc/posix-functions/bzero.texi.
24065         * doc/pastposix-functions/ecvt.texi: Renamed from
24066         doc/posix-functions/ecvt.texi.
24067         * doc/pastposix-functions/fcvt.texi: Renamed from
24068         doc/posix-functions/fcvt.texi.
24069         * doc/pastposix-functions/ftime.texi: Renamed from
24070         doc/posix-functions/ftime.texi.
24071         * doc/pastposix-functions/gcvt.texi: Renamed from
24072         doc/posix-functions/gcvt.texi.
24073         * doc/pastposix-functions/getcontext.texi: Renamed from
24074         doc/posix-functions/getcontext.texi.
24075         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
24076         doc/posix-functions/gethostbyaddr.texi.
24077         * doc/pastposix-functions/gethostbyname.texi: Renamed from
24078         doc/posix-functions/gethostbyname.texi.
24079         * doc/pastposix-functions/getwd.texi: Renamed from
24080         doc/posix-functions/getwd.texi.
24081         * doc/pastposix-functions/h_errno.texi: Renamed from
24082         doc/posix-functions/h_errno.texi.
24083         * doc/pastposix-functions/index.texi: Renamed from
24084         doc/posix-functions/index.texi.
24085         * doc/pastposix-functions/makecontext.texi: Renamed from
24086         doc/posix-functions/makecontext.texi.
24087         * doc/pastposix-functions/mktemp.texi: Renamed from
24088         doc/posix-functions/mktemp.texi.
24089         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
24090         doc/posix-functions/pthread_attr_getstackaddr.texi.
24091         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
24092         doc/posix-functions/pthread_attr_setstackaddr.texi.
24093         * doc/pastposix-functions/rindex.texi: Renamed from
24094         doc/posix-functions/rindex.texi.
24095         * doc/pastposix-functions/scalb.texi: Renamed from
24096         doc/posix-functions/scalb.texi.
24097         * doc/pastposix-functions/setcontext.texi: Renamed from
24098         doc/posix-functions/setcontext.texi.
24099         * doc/pastposix-functions/swapcontext.texi: Renamed from
24100         doc/posix-functions/swapcontext.texi.
24101         * doc/pastposix-functions/ualarm.texi: Renamed from
24102         doc/posix-functions/ualarm.texi.
24103         * doc/pastposix-functions/usleep.texi: Renamed from
24104         doc/posix-functions/usleep.texi.
24105         * doc/pastposix-functions/vfork.texi: Renamed from
24106         doc/posix-functions/vfork.texi.
24107         * doc/pastposix-functions/wcswcs.texi: Renamed from
24108         doc/posix-functions/wcswcs.texi.
24109         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
24110         (Function Substitutes): Update.
24111
24112 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24113
24114         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
24115         m4/strerror.m4.
24116
24117 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24118             Bruno Haible  <bruno@clisp.org>
24119
24120         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
24121
24122 2008-12-13  Bruno Haible  <bruno@clisp.org>
24123
24124         * modules/strtoull (Depends-on): Remove unistd.
24125
24126 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24127
24128         * modules/strtoull (Depends-on): Add stdlib.
24129
24130 2008-12-11  Simon Josefsson  <simon@josefsson.org>
24131
24132         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
24133
24134 2008-12-10  Jim Meyering  <meyering@redhat.com>
24135
24136         gl_ASSERT: don't say assertions are disabled when they're not
24137         * m4/assert.m4 (gl_ASSERT): Do not make configure report
24138         "checking whether to enable assertions... no", when they are in
24139         fact enabled.  This is solely a bug in the output of configure.
24140         In spite of saying "no", NDEBUG was not defined in that case.
24141         Also, as noted by Eric Blake, leave assertions enabled upon
24142         --enable-assert=INVALID.
24143
24144 2008-12-10  Bruno Haible  <bruno@clisp.org>
24145
24146         Change MODULES.html to refer to POSIX:2008 where possible.
24147         * MODULES.html.sh (POSIX2008_URL): New variable.
24148         (posix_headers): Remove sys/timeb, ucontext.
24149         (posix2001_headers): New variable.
24150         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
24151         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
24152         index, makecontext, mktemp, pthread_attr_getstackaddr,
24153         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
24154         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
24155         (posix2001_functions): New variable.
24156         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
24157         otherwise.
24158
24159 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24160
24161         add missing include to parse-duration.c
24162         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
24163         * modules/parse-duration (Depends-on): Add xalloc.
24164
24165         fix sed script reading maint.mk
24166         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
24167         (syntax-check-rules): Use it.
24168
24169 2008-12-09  Bruno Haible  <bruno@clisp.org>
24170
24171         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
24172         MacOS X 10.4/PowerPC.
24173         Reported by Simon Josefsson.
24174
24175 2008-12-08  Jim Meyering  <meyering@redhat.com>
24176
24177         work around mingw's lack of some S_IF definitions
24178         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
24179         Reported by Simon Josefsson.
24180
24181 2008-12-08  Bruno Haible  <bruno@clisp.org>
24182
24183         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
24184         applied to variables. Needed on MacOS X 10.4/PowerPC.
24185         Reported by Simon Josefsson.
24186
24187 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
24188         and Eric Blake  <ebb9@byu.net>
24189
24190         assert: honor --enable-assert
24191         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
24192         order to honor --enable-assert, rather than treating it as a
24193         synonym for --disable-assert.
24194
24195 2008-12-08  Jim Meyering  <meyering@redhat.com>
24196
24197         * lib/posixtm.c: Remove now-useless declaration of mktime.
24198
24199         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
24200
24201 2008-12-07  Bruno Haible  <bruno@clisp.org>
24202
24203         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
24204         test_once): Mark functions as static.
24205         * tests/test-tls.c (test_tls): Likewise.
24206
24207 2008-12-07  Bruno Haible  <bruno@clisp.org>
24208
24209         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
24210         iconv_register_autodetect.
24211
24212 2008-12-07  Jim Meyering  <meyering@redhat.com>
24213
24214         posixtm.c: avoid a warning
24215         * lib/posixtm.c (posixtime): Don't initialize tm0.
24216         It's no longer needed to placate gcc4's -Wuninitialized,
24217         and the attempt to placate would elicit a new warning.
24218
24219         unicodeio.c: mark unused parameters
24220         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24221         (fallback_failure_callback): Likewise.
24222
24223 2008-12-07  Bruno Haible  <bruno@clisp.org>
24224
24225         * gnulib-tool (func_create_testdir): When building the tests
24226         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
24227         Reported by Simon Josefsson.
24228
24229 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24230
24231         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
24232
24233 2008-12-06  Bruno Haible  <bruno@clisp.org>
24234
24235         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
24236         Suggested by Eric Blake.
24237
24238 2008-12-06  Bruno Haible  <bruno@clisp.org>
24239
24240         Fix a c-stack test failure on MacOS X.
24241         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
24242         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
24243         handler for SIGBUS as well.
24244         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
24245         install a signal handler for SIGBUS as well.
24246         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
24247
24248 2008-12-06  Bruno Haible  <bruno@clisp.org>
24249
24250         Advocacy documentation.
24251         * doc/gnulib-intro.texi (Benefits): New section.
24252         * doc/gnulib.texi: Update.
24253
24254 2008-12-06  Bruno Haible  <bruno@clisp.org>
24255
24256         Document the 'manywarnings' module.
24257         * doc/manywarnings.texi: New file.
24258         * doc/gnulib.texi: Include it.
24259
24260 2008-12-05  Eric Blake  <ebb9@byu.net>
24261
24262         tests: silence some gcc warnings
24263         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
24264         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
24265         type mismatches.
24266
24267 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24268             Bruno Haible  <bruno@clisp.org>
24269
24270         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
24271
24272 2008-11-29  Jim Meyering  <meyering@redhat.com>
24273
24274         unicodeio.c: mark unused parameters
24275         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24276         (fallback_failure_callback): Likewise.
24277
24278         fts: fix a thinko
24279         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
24280         (set_stat_type): Return S_IF*-valued "type" directly.
24281         Prompted by James Youngman's spotting a related bug.
24282         Confirmed by further testing through find.
24283
24284         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
24285         * lib/fts.c (D_TYPE): Define.
24286         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
24287         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
24288         (s_ifmt_shift_bits): New function.
24289         (set_stat_type): New function.
24290         (fts_build): When not calling fts_stat, call set_stat_type
24291         to propagate dirent.d_type info to fts_read caller.
24292         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
24293         fts_statp->st_mode type information may be valid.
24294
24295 2008-11-28  Simon Josefsson  <simon@josefsson.org>
24296
24297         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
24298         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
24299         <sds@gnu.org>.
24300
24301 2008-11-20  Bruno Haible  <bruno@clisp.org>
24302
24303         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
24304         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
24305         INCLUDE_NEXT.
24306         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
24307         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
24308         * modules/math (Makefile.am): Substitute
24309         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
24310         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24311
24312 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24313             Bruno Haible  <bruno@clisp.org>
24314
24315         * lib/stdint.in.h: Define all type macros so that their expansion is
24316         a single typedef'ed token. Fixes a compilation failure in Boost which
24317         does "using ::int8_t;".
24318
24319 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24320
24321         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
24322         gl_MANYWARN_ALL_GCC.
24323         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
24324         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
24325         * modules/manywarnings: New file.
24326         * MODULES.html.sh: Mention manywarnings module.
24327
24328 2008-11-18  Bruno Haible  <bruno@clisp.org>
24329
24330         * doc/gnulib-tool.texi (Unit tests): New section.
24331
24332 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24333
24334         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
24335         paths like 'lib/po/foo.po'.
24336
24337 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24338
24339         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
24340         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
24341
24342 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24343
24344         * m4/warnings.m4: Use CPPFLAGS to really check whether the
24345         parameter works.
24346
24347 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24348
24349         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
24350
24351 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24352
24353         * modules/parse-duration-tests: New file.
24354         * tests/test-parse-duration.sh: New file.
24355         * tests/test-parse-duration.c: New file.
24356
24357         New module 'parse-duration'.
24358         * lib/parse-duration.h: New file.
24359         * lib/parse-duration.c: New file.
24360         * modules/parse-duration: New file.
24361
24362 2008-11-17  Bruno Haible  <bruno@clisp.org>
24363
24364         * tests/test-select-out.sh: Comment out the first pipe test.
24365         Reported by Simon Josefsson.
24366
24367 2008-11-17  Bruno Haible  <bruno@clisp.org>
24368
24369         * modules/getaddrinfo (Depends-on): Add servent, hostent.
24370         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
24371         gl_HOSTENT.
24372
24373 2008-11-17  Bruno Haible  <bruno@clisp.org>
24374
24375         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
24376         -lnetwork and -lnet. Needed for Haiku and BeOS.
24377
24378 2008-11-16  Bruno Haible  <bruno@clisp.org>
24379
24380         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
24381
24382 2008-11-16  Bruno Haible  <bruno@clisp.org>
24383
24384         Avoid test failure on Haiku.
24385         * tests/test-fsync.c: Include <errno.h>.
24386         (main): Don't require that fsync (0) fails.
24387
24388 2008-11-15  Bruno Haible  <bruno@clisp.org>
24389
24390         New module 'hostent'.
24391         * modules/hostent: New file.
24392         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
24393
24394 2008-11-15  Bruno Haible  <bruno@clisp.org>
24395
24396         New module 'servent'.
24397         * modules/servent: New file.
24398         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
24399
24400 2008-11-15  Bruno Haible  <bruno@clisp.org>
24401
24402         Avoid generating same test program with two different rules.
24403         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
24404         test-frexp to test-frexp-nolibm.
24405         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
24406         test-frexpl to test-frexpl-nolibm.
24407
24408 2008-11-15  Bruno Haible  <bruno@clisp.org>
24409
24410         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
24411         $(FREXPL_LIBM).
24412
24413 2008-11-15  Bruno Haible  <bruno@clisp.org>
24414
24415         * lib/netdb.in.h: Activate the definitions also when the system's
24416         <netdb.h> has 'struct addrinfo'.
24417         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
24418         EAI_OVERFLOW or AI_NUMERICSERV.
24419         * doc/posix-headers/netdb.texi: Document the problem.
24420
24421 2008-11-15  Bruno Haible  <bruno@clisp.org>
24422
24423         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
24424
24425         Make the 'sched' module work on platforms where <sched.h> exists but
24426         is incomplete (such as Haiku).
24427         * lib/sched.in.h; Include the system's <sched.h> if it exists.
24428         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
24429         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
24430         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
24431         HAVE_STRUCT_SCHED_PARAM.
24432         * modules/sched (Depends-on): Add include_next.
24433         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
24434         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
24435         * doc/posix-headers/sched.texi: Document the issue.
24436
24437 2008-11-13  Jim Meyering  <meyering@redhat.com>
24438
24439         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
24440         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
24441         test would fail due to the difference in the Report bugs to ...
24442         line.  The expected address is empty, "<>", while the actual
24443         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
24444
24445 2008-11-12  Bruno Haible  <bruno@clisp.org>
24446
24447         lstat: don't compile lstat.c on systems lacking lstat
24448         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
24449         which don't have lstat; this is handled by lib/sys_stat.in.h already.
24450         Reported by Daniel P. Berrange via Jim Meyering.
24451
24452 2008-11-12  Jim Meyering  <meyering@redhat.com>
24453
24454         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
24455
24456 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24457
24458         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
24459         instead.
24460
24461 2008-11-12  Bruno Haible  <bruno@clisp.org>
24462
24463         * lib/unicodeio.c: Include unistr.h.
24464         (utf8_wctomb): Remove function.
24465         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
24466
24467 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24468
24469         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
24470         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
24471         <bruno@clisp.org>.
24472         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
24473
24474 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24475
24476         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
24477         * doc/gnulib.texi: Add section for warnings.
24478
24479 2008-11-11  Bruno Haible  <bruno@clisp.org>
24480
24481         * lib/sockets.h: Add a comment.
24482
24483 2008-11-11  Karl Berry  <karl@gnu.org>
24484
24485         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
24486
24487 2008-11-11  Eric Blake  <ebb9@byu.net>
24488
24489         fdl.texi: avoid git symlinks
24490         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
24491
24492 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24493
24494         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
24495
24496 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24497
24498         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
24499         (gl_WARN_ADD): Substitute $2 if literal.
24500
24501 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24502
24503         * m4/warning.m4: Remove.
24504
24505 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24506
24507         * m4/warnings.m4: Almost complete rewrite. :-)
24508
24509 2008-11-10  Simon Josefsson  <simon@josefsson.org>
24510
24511         * modules/warnings: New module.
24512         * m4/warnings.m4: New file.
24513         * MODULES.html.sh: Mention warnings module.
24514         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
24515         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24516
24517 2008-11-10  Eric Blake  <ebb9@byu.net>
24518
24519         fdl.texi: make a symlink to the latest version
24520         * doc/standards.texi: Revert today's earlier change.
24521         * doc/fdl-1.2.texi: Rename from old fdl.texi...
24522         * doc/fdl.texi: ...and replace this with a symlink to the newer
24523         fdl-1.3.texi.
24524
24525 2008-11-10  Bruno Haible  <bruno@clisp.org>
24526
24527         * tests/test-select-fd.c (main): Accept the result file name as fourth
24528         argument.
24529         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
24530         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
24531
24532 2008-11-10  Bruno Haible  <bruno@clisp.org>
24533
24534         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
24535         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
24536         as autoconf-substituted macros.
24537         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
24538         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
24539         gl_NETDB_H_DEFAULTS. Set these variables.
24540         * modules/netdb (Makefile.am): Substitute these variables.
24541
24542 2008-11-10  Eric Blake  <ebb9@byu.net>
24543
24544         standards.texi: include correct file for FDL 1.3
24545         * doc/standards.texi (GNU Free Documentation License): Change
24546         include file to pull in FDL 1.3, not 1.2.
24547
24548         fdl.texi: revert accidental change to license
24549         * doc/fdl.texi: This is FDL 1.2, not 1.3.
24550
24551 2008-11-10  Bruno Haible  <bruno@clisp.org>
24552
24553         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
24554         cross-compiling guesses also when the native compile gives no result.
24555
24556 2008-11-10  Bruno Haible  <bruno@clisp.org>
24557
24558         * lib/spawni.c (__spawni): Force variable into the stack.
24559
24560 2008-11-10  Bruno Haible  <bruno@clisp.org>
24561
24562         Add support for Haiku.
24563         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
24564         glibc and BeOS, but also on Haiku.
24565         * lib/fpurge.c (fpurge): Likewise.
24566         * lib/freadable.c (freadable): Likewise.
24567         * lib/freadahead.c (freadahead): Likewise.
24568         * lib/freading.c (freading): Likewise.
24569         * lib/freadptr.c (freadptr): Likewise.
24570         * lib/freadseek.c (freadptrinc): Likewise.
24571         * lib/fseeko.c (rpl_fseeko): Likewise.
24572         * lib/fseterr.c (fseterr): Likewise.
24573         * lib/fwritable.c (fwritable): Likewise.
24574         * lib/fwriting.c (fwriting): Likewise.
24575         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
24576
24577 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24578
24579         * lib/config.charset: Treat Haiku like BeOS.
24580
24581 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24582
24583         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
24584         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24585
24586 2008-11-08  Bruno Haible  <bruno@clisp.org>
24587
24588         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24589         AC_CACHE_CHECK.
24590
24591 2008-11-08  Bruno Haible  <bruno@clisp.org>
24592
24593         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24594
24595 2008-11-08  Bruno Haible  <bruno@clisp.org>
24596
24597         * tests/test-select-fd.c: New file.
24598         * tests/test-select-in.sh: New file.
24599         * tests/test-select-out.sh: New file.
24600         * tests/test-select-stdin.c: New file.
24601         * modules/select-tests (Files): Add the new files.
24602         (Depends-on): Add gettimeofday.
24603         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24604         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24605         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24606
24607 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24608             Bruno Haible  <bruno@clisp.org>
24609
24610         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24611
24612 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24613
24614         * build-aux/pmccabe2html: Added support for C++ source files.
24615
24616 2008-11-05  Ben Pfaff  <blp@gnu.org>
24617
24618         Fix lib/close.c build on Windows.
24619         * modules/close (Files): Add lib/w32sock.h.
24620
24621 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24622
24623         Accept Bison's NEWS format.
24624         * build-aux/announce-gen (print_news_deltas): Tweak
24625         $re_prefix.
24626
24627 2008-11-04  Bruno Haible  <bruno@clisp.org>
24628
24629         * modules/random_r (Maintainer): Add glibc.
24630
24631 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24632
24633         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24634         by karl@freefriends.org (Karl Berry).
24635         * doc/alloca.texi: Likewise.
24636         * doc/c-ctype.texi: Likewise.
24637         * doc/c-strcase.texi: Likewise.
24638         * doc/c-strcaseeq.texi: Likewise.
24639         * doc/c-strcasestr.texi: Likewise.
24640         * doc/c-strstr.texi: Likewise.
24641         * doc/c-strtod.texi: Likewise.
24642         * doc/c-strtold.texi: Likewise.
24643         * doc/ctime.texi: Likewise.
24644         * doc/error.texi: Likewise.
24645         * doc/fdl.texi: Likewise.
24646         * doc/gcd.texi: Likewise.
24647         * doc/getdate.texi: Likewise.
24648         * doc/gnulib-intro.texi: Likewise.
24649         * doc/gnulib-tool.texi: Likewise.
24650         * doc/gnulib.texi: Likewise.
24651         * doc/inet_ntoa.texi: Likewise.
24652         * doc/maintain.texi: Likewise.
24653         * doc/make-stds.texi: Likewise.
24654         * doc/quote.texi: Likewise.
24655         * doc/regexprops-generic.texi: Likewise.
24656         * doc/standards.texi: Likewise.
24657         * doc/verify.texi: Likewise.
24658         * doc/visibility.texi: Likewise.
24659         * doc/gnulib.texi (GNU Free Documentation License): Include
24660         fdl-1.3.texi instead of fdl.texi.
24661
24662 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24663
24664         * doc/fdl-1.3.texi: New file, from
24665         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24666         * modules/fdl-1.3: Add.
24667         * MODULES.html.sh: Add fdl-1.3.
24668
24669 2008-11-03  Bruno Haible  <bruno@clisp.org>
24670
24671         Make determination of absolute name of header file work with AIX xlc.
24672         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24673         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24674         preprocessing.
24675         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24676         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24677
24678 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24679
24680         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24681         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24682         <ludo@gnu.org>.
24683
24684 2008-11-02  Bruno Haible  <bruno@clisp.org>
24685
24686         Mark 'strpbrk' obsolete.
24687         * modules/strpbrk (Status, Notice): New sections.
24688         * modules/strtok_r (Depends-on): Add strpbrk.
24689
24690 2008-11-02  Bruno Haible  <bruno@clisp.org>
24691
24692         Mark 'strdup' obsolete.
24693         * modules/strdup (Status, Notice): New sections.
24694         * modules/findprog (Depends-on): Add strdup.
24695         * modules/getaddrinfo (Depends-on): Likewise.
24696         * modules/localename (Depends-on): Likewise.
24697         * modules/relocatable-lib (Depends-on): Likewise.
24698         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24699         * modules/relocatable-prog (Depends-on): Likewise.
24700         * modules/trim (Depends-on): Likewise.
24701         * modules/unictype/gen-ctype (Depends-on): Likewise.
24702         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24703
24704 2008-11-02  Bruno Haible  <bruno@clisp.org>
24705
24706         Mark 'strcspn' obsolete.
24707         * modules/strcspn (Status, Notice): New sections.
24708
24709 2008-11-02  Bruno Haible  <bruno@clisp.org>
24710
24711         Mark 'rmdir' obsolete.
24712         * modules/rmdir (Status, Notice): New sections.
24713         * modules/clean-temp (Depends-on): Add rmdir.
24714         * modules/openat (Depends-on): Likewise.
24715
24716 2008-11-02  Bruno Haible  <bruno@clisp.org>
24717
24718         Mark 'raise' obsolete.
24719         * modules/raise (Status, Notice): New sections.
24720         (Include): Specify <signal.h>.
24721         * modules/stdio (Depends-on): Add raise.
24722         * modules/write (Depends-on): Likewise.
24723
24724 2008-11-02  Bruno Haible  <bruno@clisp.org>
24725
24726         Mark 'memset' obsolete.
24727         * modules/memset (Status, Notice): New sections.
24728
24729 2008-11-02  Bruno Haible  <bruno@clisp.org>
24730
24731         Mark 'memmove' obsolete.
24732         * modules/memmove (Status, Notice): New sections.
24733         * modules/argp (Depends-on): Add memmove.
24734         * modules/argz (Depends-on): Likewise.
24735         * modules/canonicalize (Depends-on): Likewise.
24736         * modules/canonicalize-lgpl (Depends-on): Likewise.
24737         * modules/fts (Depends-on): Likewise.
24738         * modules/getcwd (Depends-on): Likewise.
24739         * modules/human (Depends-on): Likewise.
24740         * modules/regex (Depends-on): Likewise.
24741         * modules/striconveh (Depends-on): Likewise.
24742         * modules/trim (Depends-on): Likewise.
24743         * modules/unistr/u8-move (Depends-on): Likewise.
24744         * modules/unistr/u16-move (Depends-on): Likewise.
24745         * modules/unistr/u32-move (Depends-on): Likewise.
24746
24747 2008-11-02  Bruno Haible  <bruno@clisp.org>
24748
24749         Mark 'memcpy' obsolete.
24750         * modules/memcpy (Status, Notice): New sections.
24751
24752 2008-11-02  Bruno Haible  <bruno@clisp.org>
24753
24754         Mark 'memcmp' obsolete.
24755         * modules/memcmp (Status, Notice): New sections.
24756         * modules/argmatch (Depends-on): Add memchr.
24757         * modules/backupfile (Depends-on): Likewise.
24758         * modules/c-strcasestr (Depends-on): Likewise.
24759         * modules/crypto/des (Depends-on): Likewise.
24760         * modules/csharpcomp (Depends-on): Likewise.
24761         * modules/fnmatch (Depends-on): Likewise.
24762         * modules/git-merge-changelog (Depends-on): Likewise.
24763         * modules/isnand (Depends-on): Likewise.
24764         * modules/isnand-nolibm (Depends-on): Likewise.
24765         * modules/isnanf (Depends-on): Likewise.
24766         * modules/isnanf-nolibm (Depends-on): Likewise.
24767         * modules/isnanl (Depends-on): Likewise.
24768         * modules/isnanl-nolibm (Depends-on): Likewise.
24769         * modules/mbchar (Depends-on): Likewise.
24770         * modules/memcoll (Depends-on): Likewise.
24771         * modules/quotearg (Depends-on): Likewise.
24772         * modules/regex (Depends-on): Likewise.
24773         * modules/relocatable-prog (Depends-on): Likewise.
24774         * modules/same (Depends-on): Likewise.
24775         * modules/signbit (Depends-on): Likewise.
24776         * modules/strcasestr-simple (Depends-on): Likewise.
24777         * modules/unictype/gen-ctype (Depends-on): Likewise.
24778         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24779         * modules/uniname/uniname (Depends-on): Likewise.
24780         * modules/unistr/u8-cmp (Depends-on): Likewise.
24781
24782 2008-11-02  Bruno Haible  <bruno@clisp.org>
24783
24784         Mark 'memchr' obsolete.
24785         * modules/memchr (Status, Notice): New sections.
24786         * modules/argp (Depends-on): Add memchr.
24787         * modules/base64 (Depends-on): Likewise.
24788         * modules/c-strcasestr (Depends-on): Likewise.
24789         * modules/chdir-long (Depends-on): Likewise.
24790         * modules/fnmatch (Depends-on): Likewise.
24791         * modules/getsubopt (Depends-on): Likewise.
24792         * modules/git-merge-changelog (Depends-on): Likewise.
24793         * modules/glob (Depends-on): Likewise.
24794         * modules/strcasestr-simple (Depends-on): Likewise.
24795         * modules/strnlen (Depends-on): Likewise.
24796
24797 2008-11-02  Bruno Haible  <bruno@clisp.org>
24798
24799         Mark 'atexit' obsolete.
24800         * modules/atexit (Status, Notice): New sections.
24801         * modules/chdir-long (Depends-on): Add atexit.
24802         * modules/wait-process (Depends-on): Likewise.
24803
24804 2008-11-02  Bruno Haible  <bruno@clisp.org>
24805
24806         * gnulib-tool: New option --with-obsolete.
24807         (func_usage): Document it.
24808         (func_modules_transitive_closure): Drop obsolete dependencies if
24809         incobsolete is not true.
24810         (func_import): Read and save the incobsolete variable to the cache.
24811
24812 2008-11-02  Bruno Haible  <bruno@clisp.org>
24813
24814         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24815         * gnulib-tool: New option --extract-status.
24816         (func_usage): Document it.
24817         (sed_extract_prog): Recognize it.
24818         (func_get_status): New function.
24819
24820 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24821
24822         * modules/sockets (License): Change from LGPL to LGPLv2+.
24823
24824 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24825
24826         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24827
24828 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24829
24830         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24831         Mention times and sys_times.
24832         * modules/sys_times, modules/sys_times-tests: New modules.
24833         * modules/times, modules/times-tests: Likewise
24834         * m4/sys_times_h.m4: New file.
24835         * lib/sys_times.in.h: Likewise
24836         * lib/times.c: Likewise.
24837         * tests/test-sys_times.c: Likewise.
24838         * tests/test-times.c: Likewise.
24839         * doc/posix-headers/sys_times.texi: Update.
24840         * doc/posix-functions/times.texi: Update.
24841
24842 2008-10-28  Jim Meyering  <meyering@redhat.com>
24843
24844         * modules/tempname (Depends-on): Add lstat.
24845
24846         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
24847
24848 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24849
24850         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
24851         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
24852         using idiom used elsewhere in gnulib.
24853
24854 2008-10-27  Jim Meyering  <meyering@redhat.com>
24855
24856         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
24857
24858 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24859
24860         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
24861         TESTS_ENVIRONMENT, for shell scripts that needs to call built
24862         programs.
24863         * tests/test-argp-2.sh: Use $EXEEXT when needed.
24864
24865 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24866
24867         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
24868
24869 2008-10-27  Bruno Haible  <bruno@clisp.org>
24870
24871         * tests/test-lstat.c: Include <stdio.h>.
24872
24873 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24874
24875         * modules/lstat-tests: New module.
24876         * tests/test-lstat.c: New file.
24877
24878 2008-10-26  Jim Meyering  <meyering@redhat.com>
24879
24880         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
24881
24882 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24883             Bruno Haible  <bruno@clisp.org>
24884
24885         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
24886         * modules/configmake (Include): Add a note that the include must come
24887         after all system headers.
24888         * lib/javaversion.c: Include configmake.h after all other includes.
24889
24890 2008-10-26  Bruno Haible  <bruno@clisp.org>
24891
24892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
24893         HAVE_STRUCT_RANDOM_DATA to 1.
24894         (gl_STDLIB_H): Simplify.
24895
24896 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24897
24898         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
24899         substitute HAVE_STRUCT_RANDOM_DATA.
24900         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
24901         random_data.
24902         * modules/stdlib (Makefile.am): Substitute
24903         HAVE_STRUCT_RANDOM_DATA.
24904
24905 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24906
24907         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
24908         * doc/gnulib-intro.texi (Copyright): Likewise.
24909
24910 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24911
24912         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
24913         findings.
24914
24915 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
24916             Bruno Haible  <bruno@clisp.org>
24917
24918         * lib/unistd.in.h: Include <winsock2.h>.
24919         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
24920         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
24921         Provide dummy declarations.
24922         (gethostname): Override.
24923         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
24924         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
24925         gl_PREREQ_SYS_H_WINSOCK2.
24926         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
24927         * doc/posix-functions/gethostname.texi: More details.
24928
24929 2008-10-25  Bruno Haible  <bruno@clisp.org>
24930
24931         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24932         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
24933         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
24934
24935         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
24936         here ...
24937         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
24938         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
24939         gl_UNISTD_H_DEFAULTS.
24940
24941 2008-10-25  Eric Blake  <ebb9@byu.net>
24942
24943         signbit: avoid spurious compiler failure
24944         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
24945         declarations inside function.
24946
24947 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24948             Bruno Haible  <bruno@clisp.org>
24949
24950         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
24951         * modules/random_r (Depends-on): Add stdint.
24952
24953 2008-10-24  Bruno Haible  <bruno@clisp.org>
24954
24955         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
24956         Eggert.
24957         * modules/strerror (License): Likewise.
24958
24959 2008-10-24  Jim Meyering  <meyering@redhat.com>
24960
24961         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
24962         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
24963
24964 2008-10-24  Eric Blake  <ebb9@byu.net>
24965
24966         getgroups: fix compilation when getgroups is available
24967         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
24968         but with <config.h> override of getgroups disabled.
24969
24970 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24971
24972         * doc/gnulib.texi (Header files): Add note about C++ problems.
24973         Explained by Bruno Haible <bruno@clisp.org>.
24974
24975 2008-10-23  Bruno Haible  <bruno@clisp.org>
24976
24977         Define a dummy SA_NODEFER macro on Interix.
24978         * lib/signal.in.h (SA_NODEFER): Define fallback.
24979         Reported by Aleksey Cheusov <cheusov@tut.by> via
24980         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
24981
24982 2008-10-23  Bruno Haible  <bruno@clisp.org>
24983
24984         * modules/freadahead (License): Change to LGPLv2+.
24985         Suggested by Simon Josefsson.
24986
24987 2008-10-23  Jim Meyering  <meyering@redhat.com>
24988
24989         random_r: new module
24990         * modules/random_r: New file.
24991         * m4/random_r.m4: New file.
24992         * lib/random_r.c: New file, from glibc.
24993         * modules/random_r-tests: New file.
24994         * tests/test-random_r.c: New file.
24995         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
24996          Declare.
24997         (RAND_MAX): Define.
24998         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
24999         * modules/stdlib: Substitute them, too.
25000         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
25001         * doc/glibc-functions/initstate_r.texi: Mention the new module.
25002         * doc/glibc-functions/random_r.texi: Likewise.
25003         * doc/glibc-functions/setstate_r.texi: Likewise.
25004         * doc/glibc-functions/srandom_r.texi: Likewise.
25005         * config/srclist.txt: Mention it.
25006
25007 2008-10-23  David Lutterkort  <lutter@redhat.com>
25008
25009         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
25010         link requirement
25011
25012 2008-10-23  Jim Meyering  <meyering@redhat.com>
25013
25014         selinux-h: mark parameters of stub functions as intentionally unused
25015         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
25016         * lib/se-context.in.h: Likewise.
25017
25018 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25019
25020         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
25021
25022 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25023
25024         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
25025
25026 2008-10-22  Eric Blake  <ebb9@byu.net>
25027
25028         glthread/thread: avoid compiler warning
25029         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
25030         Add unreachable abort to silence compiler.
25031
25032 2008-10-22  Eric Blake  <ebb9@byu.net>
25033
25034         netdb: also supply struct addrinfo for cygwin 1.5.x
25035         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
25036         older cygwin.
25037         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
25038         cygwin.
25039         * doc/posix-headers/netdb.texi (netdb.h): Document this.
25040
25041 2008-10-22  Bruno Haible  <bruno@clisp.org>
25042
25043         * users.txt: Update entry about pspp.
25044
25045 2008-10-21  Bruno Haible  <bruno@clisp.org>
25046
25047         Simplification.
25048         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
25049         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
25050
25051         Simplification.
25052         * lib/ioctl.c (ioctl): Don't undefine.
25053         * lib/socket.c (socket): Don't undefine.
25054
25055         Remove unused module indicator macros.
25056         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
25057         GNULIB_$1 as a C macro.
25058
25059         * doc/posix-functions/close.texi: Undo last change.
25060         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
25061         Windows platforms.
25062
25063 2008-10-21  Bruno Haible  <bruno@clisp.org>
25064
25065         Add gethostname() declaration to <unistd.h>.
25066         * lib/unistd.in.h (gethostname): New declaration.
25067         * lib/gethostname.c: Include <unistd.h>.
25068         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
25069         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
25070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
25071         and HAVE_GETHOSTNAME.
25072         * modules/gethostname (Depends-on): Add unistd.
25073         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25074         (Include): Specify <unistd.h>.
25075         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
25076         HAVE_GETHOSTNAME.
25077         * tests/test-gethostname.c: Include <unistd.h> first.
25078
25079 2008-10-21  Bruno Haible  <bruno@clisp.org>
25080
25081         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
25082         * modules/select-tests (Depends-on): Likewise.
25083         Reported by Simon Josefsson.
25084
25085 2008-10-21  Simon Josefsson  <simon@josefsson.org>
25086
25087         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
25088         * lib/accept.c: New file, based on winsock.c.
25089         * lib/bind.c: New file, based on winsock.c.
25090         * lib/connect.c: New file, based on winsock.c.
25091         * lib/getpeername.c: New file, based on winsock.c.
25092         * lib/getsockname.c: New file, based on winsock.c.
25093         * lib/getsockopt.c: New file, based on winsock.c.
25094         * lib/ioctl.c: New file, based on winsock.c.
25095         * lib/listen.c: New file, based on winsock.c.
25096         * lib/recv.c: New file, based on winsock.c.
25097         * lib/recvfrom.c: New file, based on winsock.c.
25098         * lib/send.c: New file, based on winsock.c.
25099         * lib/sendto.c: New file, based on winsock.c.
25100         * lib/setsockopt.c: New file, based on winsock.c.
25101         * lib/shutdown.c: New file, based on winsock.c.
25102         * lib/socket.c: New file, based on winsock.c.
25103         * lib/w32sock.h: New file, based on winsock.c.
25104         * lib/winsock.c: Remove file.
25105         * modules/accept: Likewise.
25106         * modules/bind: Likewise.
25107         * modules/connect: Likewise.
25108         * modules/getpeername: Likewise.
25109         * modules/getsockname: Likewise.
25110         * modules/getsockopt: Likewise.
25111         * modules/ioctl: Likewise.
25112         * modules/listen: Likewise.
25113         * modules/recv: Likewise.
25114         * modules/recvfrom: Likewise.
25115         * modules/send: Likewise.
25116         * modules/sendto: Likewise.
25117         * modules/setsockopt: Likewise.
25118         * modules/shutdown: Likewise.
25119         * modules/socket: Use socket.c instead of winsock.c.
25120         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
25121         * doc/posix-functions/accept.texi: Doc fix.
25122         * doc/posix-functions/bind.texi: Doc fix.
25123         * doc/posix-functions/close.texi: Doc fix.
25124         * doc/posix-functions/connect.texi: Doc fix.
25125         * doc/posix-functions/getpeername.texi: Doc fix.
25126         * doc/posix-functions/getsockname.texi: Doc fix.
25127         * doc/posix-functions/getsockopt.texi: Doc fix.
25128         * doc/posix-functions/ioctl.texi: Doc fix.
25129         * doc/posix-functions/listen.texi: Doc fix.
25130         * doc/posix-functions/recv.texi: Doc fix.
25131         * doc/posix-functions/recvfrom.texi: Doc fix.
25132         * doc/posix-functions/send.texi: Doc fix.
25133         * doc/posix-functions/sendto.texi: Doc fix.
25134         * doc/posix-functions/setsockopt.texi: Doc fix.
25135         * doc/posix-functions/shutdown.texi: Doc fix.
25136         * doc/posix-functions/socket.texi: Doc fix.
25137
25138 2008-10-20  Bruno Haible  <bruno@clisp.org>
25139
25140         Take into account the role of SIGABRT_COMPAT on Windows 2008.
25141         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
25142         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
25143         as an alias for SIGABRT.
25144         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
25145         (sigaction): Map it to SIGABRT.
25146         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
25147
25148 2008-10-20  Bruno Haible  <bruno@clisp.org>
25149
25150         * lib/fts.c: Don't include lstat.h.
25151         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
25152
25153         Move the lstat() declaration to <sys/stat.h>.
25154         * lib/lstat.h: Remove file.
25155         * lib/sys_stat.in.h: Add special invocation convention.
25156         (lstat): New declaration.
25157         * lib/lstat.c (orig_lstat): New function.
25158         (rpl_lstat): Use orig_lstat instead of lstat.
25159         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
25160         AC_C_INLINE. Set REPLACE_LSTAT.
25161         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
25162         and REPLACE_LSTAT.
25163         * modules/lstat (Files): Remove lib/lstat.h.
25164         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25165         (Include): Specify <sys/stat.h> instead of lstat.h.
25166         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
25167         REPLACE_LSTAT.
25168         * NEWS: Mention the change.
25169
25170 2008-10-20  Bruno Haible  <bruno@clisp.org>
25171
25172         * modules/posix_spawn-tests: New file.
25173         * tests/test-posix_spawn3.c: New file.
25174
25175 2008-10-20  Bruno Haible  <bruno@clisp.org>
25176
25177         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
25178         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25179         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
25180         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25181         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
25182
25183 2008-10-20  Bruno Haible  <bruno@clisp.org>
25184
25185         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
25186         of posix_spawn on AIX 5.3.
25187
25188 2008-10-20  Bruno Haible  <bruno@clisp.org>
25189
25190         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
25191
25192 2008-10-20  Bruno Haible  <bruno@clisp.org>
25193
25194         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
25195         of AC_LANG_PROGRAM.
25196
25197 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25198
25199         * lib/netdb.in.h: Don't define GNU specific constants until they
25200         are supported or needed.  Reported by Bruno Haible
25201         <bruno@clisp.org>.
25202
25203 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25204
25205         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
25206
25207 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25208
25209         * lib/getaddrinfo.h: Remove file.
25210         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
25211         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
25212         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
25213         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
25214         * modules/netdb: Substitute GNULIB_GETADDRINFO.
25215         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
25216         * tests/test-getaddrinfo.c: Likewise.
25217         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
25218         * NEWS: Mention change.
25219
25220 2008-10-19  Bruno Haible  <bruno@clisp.org>
25221
25222         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
25223
25224 2008-10-19  Bruno Haible  <bruno@clisp.org>
25225
25226         * lib/wait-process.c: Include simply <sys/wait.h>.
25227         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
25228         WIFSTOPPED): Remove fallback definitions.
25229         * modules/wait-process (Depends-on): Add sys_wait.
25230
25231         New module 'sys_wait'.
25232         * modules/sys_wait: New file.
25233         * lib/sys_wait.in.h: New file, partially copied from
25234         lib/wait-process.c.
25235         * m4/sys_wait_h.m4: New file.
25236         * doc/posix-headers/sys_wait.texi: Mention the new module.
25237
25238 2008-10-19  Bruno Haible  <bruno@clisp.org>
25239
25240         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
25241
25242 2008-10-19  Bruno Haible  <bruno@clisp.org>
25243
25244         Assume that waitpid() fills an 'int' status, not a 'union wait'.
25245         * lib/wait-process.c (WAIT_T): Remove type.
25246         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
25247         (wait_subprocess): Update.
25248
25249 2008-10-19  Bruno Haible  <bruno@clisp.org>
25250
25251         New module 'atoll'.
25252         * modules/atoll: New file.
25253         * lib/stdlib.in.h (atoll): New declaration.
25254         * lib/atoll.c: New file, from glibc with modifications.
25255         * m4/atoll.m4: New file.
25256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
25257         HAVE_ATOLL.
25258         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
25259         * doc/posix-functions/atoll.texi: Mention the new module.
25260
25261 2008-10-19  Bruno Haible  <bruno@clisp.org>
25262
25263         Add strtoull() declaration to <stdlib.h>.
25264         * lib/stdlib.in.h (strtoull): New declaration.
25265         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25266         Set HAVE_STRTOULL.
25267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
25268         HAVE_STRTOULL.
25269         * modules/strtoull (Depends-on): Add stdlib.
25270         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25271         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
25272         HAVE_STRTOULL.
25273
25274 2008-10-19  Bruno Haible  <bruno@clisp.org>
25275
25276         Add strtoll() declaration to <stdlib.h>.
25277         * lib/stdlib.in.h (strtoll): New declaration.
25278         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25279         Set HAVE_STRTOLL.
25280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
25281         HAVE_STRTOLL.
25282         * modules/strtoll (Depends-on): Add stdlib.
25283         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25284         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
25285
25286 2008-10-19  Bruno Haible  <bruno@clisp.org>
25287
25288         * modules/bcopy (Depends-on): Add strings.
25289         (Include): Specify <strings.h>.
25290
25291 2008-10-19  Bruno Haible  <bruno@clisp.org>
25292
25293         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
25294
25295 2008-10-19  Bruno Haible  <bruno@clisp.org>
25296
25297         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
25298         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
25299         mingw.
25300
25301 2008-10-19  Bruno Haible  <bruno@clisp.org>
25302
25303         * lib/atanl.c: Don't include isnanl.h.
25304         * lib/cosl.c: Likewise.
25305         * lib/ldexpl.c: Likewise.
25306         * lib/logl.c: Likewise.
25307         * lib/sinl.c: Likewise.
25308         * lib/sqrtl.c: Likewise.
25309         * lib/tanl.c: Likewise.
25310
25311         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
25312         * lib/isnanf.h: Remove file.
25313         * lib/isnand.h: Remove file.
25314         * lib/isnanl.h: Remove file.
25315         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
25316         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
25317         macros.
25318         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
25319         HAVE_ISNANF, don't define it as a C macro.
25320         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
25321         HAVE_ISNAND, don't define it as a C macro.
25322         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
25323         HAVE_ISNANL, don't define it as a C macro.
25324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
25325         HAVE_ISNAN[FDL].
25326         * modules/isnanf (Files): Remove lib/isnanf.h.
25327         (Depends-on): Add math.
25328         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25329         (Include): Specify <math.h> instead of isnanf.h.
25330         * modules/isnand (Files): Remove lib/isnand.h.
25331         (Depends-on): Add math.
25332         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25333         (Include): Specify <math.h> instead of isnand.h.
25334         * modules/isnanl (Files): Remove lib/isnanl.h.
25335         (Depends-on): Add math.
25336         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25337         (Include): Specify <math.h> instead of isnanl.h.
25338         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
25339         HAVE_ISNAN[FDL].
25340         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
25341         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
25342         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
25343         * NEWS: Mention the change.
25344
25345 2008-10-18  Bruno Haible  <bruno@clisp.org>
25346
25347         Add getusershell(), setusershell(), endusershell() declarations to
25348         <unistd.h>.
25349         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
25350         declarations.
25351         * lib/getusershell.c: Include unistd.h.
25352         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
25353         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25354         HAVE_GETUSERSHELL.
25355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
25356         and HAVE_GETUSERSHELL.
25357         * modules/getusershell (Depends-on): Add unistd, extensions.
25358         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25359         (Include): Specify <unistd.h>.
25360         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
25361         HAVE_GETUSERSHELL.
25362
25363 2008-10-18  Bruno Haible  <bruno@clisp.org>
25364
25365         Add a getloadavg() declaration to <stdlib.h>.
25366         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
25367         getloadavg declaration.
25368         (getloadavg): New declaration.
25369         * lib/getloadavg.c: Include <stdlib.h> first.
25370         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
25371         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
25372         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
25373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
25374         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25375         * modules/getloadavg (Depends-on): Add stdlib, extensions.
25376         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25377         (Include): Specify <stdlib.h>.
25378         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
25379         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25380
25381 2008-10-18  Bruno Haible  <bruno@clisp.org>
25382
25383         * lib/dirchownmod.c: Don't include lchmod.h.
25384
25385         Move the lchmod() declaration to <sys/stat.h>.
25386         * lib/lchmod.h: Remove file.
25387         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
25388         (lchmod): New declaration, moved here from lib/lchown.h.
25389         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
25390         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
25391         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
25392         and HAVE_LCHMOD.
25393         * modules/lchmod (Files): Remove lib/lchmod.h.
25394         (Depends-on): Add sys_stat, extensions.
25395         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25396         (Include): Specify <sys/stat.h> instead of lchmod.h.
25397         * modules/sys_stat (Depends-on): Add link-warning.
25398         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
25399         definition of GL_LINK_WARNING.
25400         * NEWS: Mention the change.
25401
25402 2008-10-18  Bruno Haible  <bruno@clisp.org>
25403
25404         * lib/fchdir.c: Don't include dirfd.h.
25405         * lib/fts.c: Likewise.
25406         * lib/getcwd.c: Likewise.
25407         * lib/glob.c: Likewise.
25408
25409         Move the dirfd() declaration to <dirent.h>.
25410         * lib/dirfd.h: Remove file.
25411         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
25412         (dirfd): New declaration.
25413         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
25414         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
25415         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
25416         HAVE_DECL_DIRFD.
25417         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
25418         HAVE_DECL_DIRFD.
25419         * modules/dirfd (Files): Remove lib/dirfd.h.
25420         (Depends-on): Add dirent, extensions.
25421         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
25422         (Include): Specify <dirent.h> instead of dirfd.h.
25423         * modules/dirent (Depends-on): Add link-warning.
25424         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
25425         definition of GL_LINK_WARNING.
25426         * NEWS: Mention the change.
25427
25428 2008-10-18  Bruno Haible  <bruno@clisp.org>
25429
25430         Move the euidaccess() declaration to <unistd.h>.
25431         * lib/euidaccess.h: Remove file.
25432         * lib/unistd.in.h (euidaccess): New declaration.
25433         * lib/euidaccess.c: Don't include euidaccess.h.
25434         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
25435         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
25436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
25437         and HAVE_EUIDACCESS.
25438         * modules/euidaccess (Files): Remove lib/euidaccess.h.
25439         (Depends-on): Add unistd.
25440         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25441         (Include): Specify <unistd.h> instead of euidaccess.h.
25442         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
25443         HAVE_EUIDACCESS.
25444         * NEWS: Mention the change.
25445
25446 2008-10-18  Bruno Haible  <bruno@clisp.org>
25447
25448         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
25449
25450         Move the getdomainname() declaration to <unistd.h>.
25451         * lib/getdomainname.h: Remove file.
25452         * lib/unistd.in.h (getdomainname): New declaration.
25453         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
25454         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25455         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25456         HAVE_GETDOMAINNAME.
25457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25458         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
25459         * modules/getdomainname (Files): Remove lib/getdomainname.h.
25460         (Depends-on): Add unistd, extensions.
25461         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25462         (Includes): Specify <unistd.h> instead of getdomainname.h.
25463         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
25464         HAVE_GETDOMAINNAME.
25465         * NEWS: Mention the change.
25466
25467 2008-10-18  Bruno Haible  <bruno@clisp.org>
25468
25469         * modules/dirent: New file.
25470         * m4/dirent_h.m4: New file.
25471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
25472         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
25473         * modules/fchdir (Files): Remove lib/dirent.in.h.
25474         (Depends-on): Add dirent.
25475         (Makefile.am): Move rules to modules/dirent.
25476         * doc/posix-headers/dirent.texi: Mention the new module.
25477
25478 2008-10-18  Bruno Haible  <bruno@clisp.org>
25479
25480         Avoid -Wunused-parameter warnings in public gnulib header files.
25481         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
25482         macro.
25483         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
25484
25485 2008-10-18  Bruno Haible  <bruno@clisp.org>
25486
25487         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
25488         * doc/glibc-functions/error.texi: Mention the module 'error'.
25489         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
25490         * doc/glibc-functions/getdomainname.texi: Mention the module
25491         'getdomainname'.
25492         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
25493         * doc/glibc-functions/getpagesize.texi: Mention the module
25494         'getpagesize'.
25495         * doc/glibc-functions/getusershell.texi: Mention the module
25496         'getusershell'.
25497         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
25498         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
25499         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
25500         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
25501         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
25502         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
25503         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
25504         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
25505         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
25506         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
25507         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
25508         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
25509         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
25510         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
25511
25512 2008-10-17  Bruno Haible  <bruno@clisp.org>
25513
25514         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
25515         HP-UX and IRIX, use -0.0L.
25516         * tests/test-ceill.c (minus_zero): Likewise.
25517         * tests/test-floorl.c (minus_zero): Likewise.
25518         * tests/test-frexpl.c (minus_zero): Likewise.
25519         * tests/test-isnan.c (minus_zerol): Likewise.
25520         * tests/test-isnanl.h (minus_zero): Likewise.
25521         * tests/test-ldexpl.c (minus_zero): Likewise.
25522         * tests/test-roundl.c (minus_zero): Likewise.
25523         * tests/test-signbit.c (minus_zerol): Likewise.
25524         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25525         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25526         * tests/test-truncl.c (minus_zero): Likewise.
25527         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25528         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25529         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
25530         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25531
25532 2008-10-17  Bruno Haible  <bruno@clisp.org>
25533
25534         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
25535         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
25536         that it gets activated only for gcc >= 3.0.
25537         * lib/dirent.in.h: Likewise.
25538         * lib/errno.in.h: Likewise.
25539         * lib/fcntl.in.h: Likewise.
25540         * lib/float.in.h: Likewise.
25541         * lib/iconv.in.h: Likewise.
25542         * lib/inttypes.in.h: Likewise.
25543         * lib/locale.in.h: Likewise.
25544         * lib/math.in.h: Likewise.
25545         * lib/netdb.in.h: Likewise.
25546         * lib/netinet_in.in.h: Likewise.
25547         * lib/search.in.h: Likewise.
25548         * lib/signal.in.h: Likewise.
25549         * lib/spawn.in.h: Likewise.
25550         * lib/stdarg.in.h: Likewise.
25551         * lib/stdint.in.h: Likewise.
25552         * lib/stdio.in.h: Likewise.
25553         * lib/stdlib.in.h: Likewise.
25554         * lib/string.in.h: Likewise.
25555         * lib/strings.in.h: Likewise.
25556         * lib/sys_file.in.h: Likewise.
25557         * lib/sys_ioctl.in.h: Likewise.
25558         * lib/sys_select.in.h: Likewise.
25559         * lib/sys_socket.in.h: Likewise.
25560         * lib/sys_stat.in.h: Likewise.
25561         * lib/sys_time.in.h: Likewise.
25562         * lib/sysexits.in.h: Likewise.
25563         * lib/time.in.h: Likewise.
25564         * lib/unistd.in.h: Likewise.
25565         * lib/wchar.in.h: Likewise.
25566         * lib/wctype.in.h: Likewise.
25567         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25568
25569 2008-10-17  Jim Meyering  <meyering@redhat.com>
25570
25571         ignore-value: don't depend on inline module
25572         * modules/ignore-value (Depends-on): Remove 'inline'.
25573         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
25574         Suggestion from Bruno Haible.
25575
25576 2008-10-17  Bruno Haible  <bruno@clisp.org>
25577
25578         New implementation of condition variables for Win32.
25579         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
25580         (gl_linked_waitqueue_t): New type.
25581         (gl_cond_t): Use it.
25582         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
25583         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
25584         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25585         (glthread_cond_init_func, glthread_cond_wait_func,
25586         glthread_cond_timedwait_func, glthread_cond_signal_func,
25587         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25588         Reimplemented on the basis of gl_linked_waitqueue_t.
25589         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25590         gl_waitqueue_t.
25591         (gl_rwlock_t): Update.
25592         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25593
25594 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25595
25596         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25597         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25598
25599 2008-10-17  Jim Meyering  <meyering@redhat.com>
25600
25601         ignore-value: new module
25602         * modules/ignore-value: New file.
25603         * lib/ignore-value.h: New file.
25604         * MODULES.html.sh (Compiler warning management): New section,
25605         just for this module.  More to come.
25606
25607 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25608
25609         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25610         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25611         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25612
25613 2008-10-16  Jim Meyering  <meyering@redhat.com>
25614
25615         openat-die.c: avoid 'no previous prototype' warning
25616         * lib/openat-die.c: Include "openat.h".
25617         Reported by Reuben Thomas <rrt@sc3d.org>.
25618
25619 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25620
25621         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25622         * lib/netdb.in.h: Fix typo.
25623         Reported by Bruno Haible  <bruno@clisp.org>
25624
25625         * lib/netdb.in.h: Include sys/socket.h for platforms without
25626         netdb.h, to get structures like hostent on MinGW.
25627         * modules/netdb (Depends-on): Add sys_socket.
25628
25629 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25630
25631         * modules/netdb, modules/netdb-tests: New file.
25632         * m4/netdb_h.m4: New file.
25633         * lib/netdb.in.h: Add, currently just an empty file pending
25634         definitions.
25635         * tests/test-netdb.c: New file.
25636         * doc/posix-headers/netdb.texi: Mention that we replace it if
25637         needed.
25638         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25639         netdb.
25640
25641 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25642
25643         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25644         with code.
25645
25646 2008-10-13  Bruno Haible  <bruno@clisp.org>
25647
25648         * lib/glthread/cond.c (glthread_cond_wait_func,
25649         glthread_cond_timedwait_func): Add a comment.
25650
25651 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25652
25653         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25654         * tests/test-select.c: Likewise,
25655
25656 2008-10-13  Bruno Haible  <bruno@clisp.org>
25657
25658         * lib/glthread/cond.c (glthread_cond_wait_func,
25659         glthread_cond_timedwait_func): Fix variable name.
25660         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25661
25662 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25663
25664         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25665         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25666         struct sockaddr.sa_len.
25667         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25668
25669 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25670
25671         * build-aux/pmccabe2html: Add css and css_url parameters.
25672
25673 2008-10-12  Bruno Haible  <bruno@clisp.org>
25674
25675         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25676         calling aclx_get.
25677         Reported by Rainer Tammer <tammer@tammer.net>.
25678
25679 2008-10-12  Bruno Haible  <bruno@clisp.org>
25680
25681         Use msvcrt aware primitives for creation/termination of Win32 threads.
25682         * lib/glthread/thread.c: Include <process.h>.
25683         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25684         (wrapper_func): Update signature.
25685         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25686
25687 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25688             Bruno Haible  <bruno@clisp.org>
25689
25690         Provide a Win32 implementation of the 'cond' module.
25691         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25692         * lib/glthread/cond.c (glthread_cond_init_func,
25693         glthread_cond_wait_func, glthread_cond_timedwait_func,
25694         glthread_cond_signal_func, glthread_cond_broadcast_func,
25695         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25696         * modules/cond (Dependencies): Add gettimeofday.
25697
25698 2008-10-11  Bruno Haible  <bruno@clisp.org>
25699
25700         Make sleep work on older versions of mingw.
25701         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25702         only whether it exists.
25703         * doc/posix-functions/sleep.texi: Mention the problem with older
25704         versions of mingw.
25705
25706 2008-10-11  Bruno Haible  <bruno@clisp.org>
25707
25708         New module 'shutdown'.
25709         * modules/shutdown: New file.
25710         * lib/sys_socket.in.h (shutdown): New declaration.
25711         * lib/winsock.c (shutdown): New function.
25712         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25713         GNULIB_SHUTDOWN.
25714         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25715         * doc/posix-functions/shutdown.texi: Document the new module.
25716
25717 2008-10-11  Jim Meyering  <meyering@redhat.com>
25718
25719         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25720
25721 2008-10-11  Bruno Haible  <bruno@clisp.org>
25722
25723         New module 'fclose'.
25724         * modules/fclose: New file.
25725         * lib/stdio.in.h (fclose): New declaration.
25726         * lib/fclose.c: New file.
25727         * m4/fclose.m4: New file.
25728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25729         REPLACE_FCLOSE.
25730         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25731         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25732         REPLACE_FCLOSE.
25733         * modules/close (Depends-on): fclose.
25734         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25735
25736 2008-10-11  Bruno Haible  <bruno@clisp.org>
25737
25738         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25739         set errno and don't call _close.
25740
25741 2008-10-10  Bruno Haible  <bruno@clisp.org>
25742
25743         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25744         ACL, not afterwards. Fixes test failure on Cygwin.
25745
25746 2008-10-09  Ben Pfaff  <blp@gnu.org>
25747
25748         * build-aux/announce-gen: Fix gnulib version related part of usage
25749         message.  Die with a useful error message if no tarballs are
25750         found.
25751
25752 2008-10-10  Jim Meyering  <meyering@redhat.com>
25753
25754         bootstrap: use git's --depth=N option only if it's supported
25755         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25756         recognize the --depth option.  Reported by Pádraig Brady.
25757
25758 2008-10-09  Bruno Haible  <bruno@clisp.org>
25759
25760         New module 'ioctl'.
25761         * modules/ioctl: New file.
25762         * lib/sys_socket.in.h (ioctl): Remove declaration.
25763         * lib/winsock.c: Include <sys/ioctl.h>.
25764         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25765         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25766         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25767         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25768         * doc/posix-functions/ioctl.texi: Mention the new module.
25769
25770 2008-10-09  Bruno Haible  <bruno@clisp.org>
25771
25772         New module 'sys_ioctl'.
25773         * lib/sys_ioctl.in.h: New file.
25774         * m4/sys_ioctl_h.m4: New file.
25775         * modules/sys_ioctl: New file.
25776         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25777
25778 2008-10-09  Bruno Haible  <bruno@clisp.org>
25779
25780         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25781         * lib/winsock.c: Include <stdarg.h>.
25782         (rpl_ioctl): Change to second argument 'int' and then varargs.
25783
25784 2008-10-09  Bruno Haible  <bruno@clisp.org>
25785
25786         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25787         when the sys_socket module is present and the system has <winsock2.h>.
25788
25789 2008-10-09  Bruno Haible  <bruno@clisp.org>
25790
25791         * doc/posix-functions/close.texi: Mention module 'close' instead of
25792         module 'sys_socket'.
25793
25794 2008-10-09  Bruno Haible  <bruno@clisp.org>
25795
25796         * doc/glibc-headers/sys_ioctl.texi: New file.
25797         * doc/gnulib.texi: Include it.
25798
25799 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25800             Bruno Haible  <bruno@clisp.org>
25801
25802         Combine the two replacements of 'close'.
25803         * lib/sys_socket.in.h (close): Define to a reminder to include
25804         <unistd.h>.
25805         (_gl_close_fd_maybe_socket): New declaration.
25806         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25807         * lib/winsock.c (close): Remove undefinition.
25808         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25809         needed for the gnulib module 'close'.
25810         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25811         define to an error symbol or to a warning, if suitable.
25812         * lib/close.c: Include <sys/socket.h>.
25813         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25814         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25815         UNISTD_H_HAVE_WINSOCK2_H.
25816         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25818         UNISTD_H_HAVE_WINSOCK2_H.
25819         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25820         (configure.ac): Set a module indicator.
25821         (Makefile.am): Substitute GNULIB_CLOSE.
25822         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25823         * modules/poll-tests (Depends-on): Add close.
25824         * modules/select-tests (Depends-on): Likewise.
25825
25826 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25827             Bruno Haible  <bruno@clisp.org>
25828
25829         New module 'close'.
25830         * modules/close: New file.
25831         * lib/unistd.in.h (close): Move declaration out of the
25832         FCHDIR_REPLACEMENT scope.
25833         (_gl_unregister_fd): New declaration.
25834         * lib/close.c: New file.
25835         * lib/fchdir.c (rpl_close): Remove function.
25836         * m4/close.m4: New file.
25837         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25838         close.
25839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
25840         REPLACE_CLOSE.
25841         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
25842         REPLACE_CLOSE.
25843         * modules/fchdir (Depends-on): Add close.
25844
25845 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25846             Bruno Haible  <bruno@clisp.org>
25847
25848         * lib/fcntl.in.h (open): Simplify conditionals.
25849         (_gl_register_fd): New declaration.
25850         * lib/fchdir.c (rpl_open): Remove function.
25851         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
25852         also.
25853         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
25854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25855         open.
25856
25857 2008-10-09  Jim Meyering  <meyering@redhat.com>
25858
25859         GNUmakefile: use the more name-space-friendly "_version"
25860         * top/GNUmakefile (_dummy): Update.
25861         (_version): Rename from "version".
25862
25863 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25864             Bruno Haible  <bruno@clisp.org>
25865
25866         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
25867         rpl_close.
25868         (_gl_register_fd): New function, extracted from rpl_open.
25869         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
25870         (rpl_open, rpl_opendir): Use _gl_register_fd.
25871
25872 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25873
25874         Fix organization of 'open' replacement.
25875         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
25876         (gl_FUNC_OPEN): Use it.
25877         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
25878
25879 2008-10-08  Bruno Haible  <bruno@clisp.org>
25880
25881         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
25882
25883 2008-10-08  Simon Josefsson  <simon@josefsson.org>
25884
25885         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
25886         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
25887         listen).
25888
25889 2008-10-08  Eric Blake  <ebb9@byu.net>
25890
25891         GNUmakefile: add 'make version' target
25892         * top/GNUmakefile (_curr-ver): Split version update rules...
25893         (version): ...into a target.
25894
25895 2008-10-07  Bruno Haible  <bruno@clisp.org>
25896
25897         Use a more portable replacement expression for -0.0L.
25898         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
25899         instead of -0.0L. Fix m4 quotation.
25900
25901         * tests/test-signbit.c: Include <float.h>.
25902         (minus_zero): New variable.
25903         (test_signbitl): Use minus_zero instead of -zero.
25904         * modules/signbit-tests (Depends-on): Add float.
25905
25906         * tests/test-ceill.c: Include <float.h>.
25907         (zero): Remove variable.
25908         (minus_zero): New variable.
25909         (main): Use minus_zero instead of -zero.
25910         * modules/ceill-tests (Depends-on): Add float.
25911
25912         * tests/test-floorl.c: Include <float.h>.
25913         (zero): Remove variable.
25914         (minus_zero): New variable.
25915         (main): Use minus_zero instead of -zero.
25916         * modules/floorl-tests (Depends-on): Add float.
25917
25918         * tests/test-roundl.c: Include <float.h>.
25919         (zero): Remove variable.
25920         (minus_zero): New variable.
25921         (main): Use minus_zero instead of -zero.
25922         * modules/roundl-tests (Depends-on): Add float.
25923
25924         * tests/test-truncl.c: Include <float.h>.
25925         (zero): Remove variable.
25926         (minus_zero): New variable.
25927         (main): Use minus_zero instead of -zero.
25928         * modules/truncl-tests (Depends-on): Add float.
25929
25930         * tests/test-frexpl.c (zero): Remove variable.
25931         (minus_zero): New variable.
25932         (main): Use minus_zero instead of -zero.
25933         * modules/frexpl-tests (Depends-on): Add float.
25934
25935         * tests/test-isnan.c (zerol): Remove variable.
25936         (minus_zerol): New variable.
25937         (test_long_double): Use minus_zerol instead of -zerol.
25938         * modules/isnan-tests (Depends-on): Add float.
25939
25940         * tests/test-isnanl.h (zero): Remove variable.
25941         (minus_zero): New variable.
25942         (main): Use minus_zero instead of -zero.
25943         * modules/isnanl-nolibm-tests (Depends-on): Add float.
25944         * modules/isnanl-tests (Depends-on): Add float.
25945
25946         * tests/test-ldexpl.c (zero): Remove variable.
25947         (minus_zero): New variable.
25948         (main): Use minus_zero instead of -zero.
25949         * modules/ldexpl-tests (Depends-on): Add float.
25950
25951         * tests/test-snprintf-posix.h (zerol): Remove variable.
25952         (minus_zerol): New variable.
25953         (test_function): Use minus_zerol instead of -zerol.
25954         * modules/snprintf-posix-tests (Depends-on): Add float.
25955         * modules/vsnprintf-posix-tests (Depends-on): Add float.
25956
25957         * tests/test-sprintf-posix.h (zerol): Remove variable.
25958         (minus_zerol): New variable.
25959         (test_function): Use minus_zerol instead of -zerol.
25960         * modules/sprintf-posix-tests (Depends-on): Add float.
25961         * modules/vsprintf-posix-tests (Depends-on): Add float.
25962
25963         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
25964         (minus_zerol): New variable.
25965         (test_function): Use minus_zerol instead of -zerol.
25966         * modules/vasnprintf-posix-tests (Depends-on): Add float.
25967
25968         * tests/test-vasprintf-posix.c (zerol): Remove variable.
25969         (minus_zerol): New variable.
25970         (test_function): Use minus_zerol instead of -zerol.
25971         * modules/vasprintf-posix-tests (Depends-on): Add float.
25972
25973 2008-10-07  Simon Josefsson  <simon@josefsson.org>
25974
25975         * MODULES.html.sh (Support for building documentation): Mention
25976         pmccabe2html.  Sort entries.
25977
25978         Add pmccabe2html module, from gnupdf.
25979         * build-aux/pmccabe.css: New file.
25980         * build-aux/pmccabe2html: New file.
25981         * m4/pmccabe2html.m4: New file.
25982         * modules/pmccabe2html: New file.
25983
25984 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
25985
25986         flock: new module
25987         * MODULES.html.sh: Add to list of modules.
25988         * lib/flock.c: flock implementation for Windows and Unix systems
25989         which have fcntl.
25990         * doc/glibc-functions/flock.texi: Update documentation.
25991         * lib/sys_file.in.h: <sys/file.h> header file.
25992         * m4/flock.m4: M4 macros.
25993         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
25994         * modules/flock: flock module.
25995         * modules/flock-tests: flock tests module.
25996         * modules/sys_file: sys/file.h module.
25997         * tests/test-flock.c: test suite for flock.
25998
25999 2008-10-06  Jim Meyering  <meyering@redhat.com>
26000
26001         bootstrap: check for LT_INIT more portably still ;-)
26002         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
26003         Spotted by Bruno Haible.
26004
26005 2008-10-06  Eric Blake  <ebb9@byu.net>
26006
26007         test-signbit: avoid tripping Irix cc bug on -0.0L
26008         * tests/test-signbit.c (minus_zerol): Delete, and replace with
26009         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
26010         entire testsuite consistent and avoids an Irix 6.2 bug.
26011
26012 2008-10-05  Bruno Haible  <bruno@clisp.org>
26013             Jim Meyering  <jim@meyering.net>
26014
26015         Add an option for ignoring EPIPE during close_stdout.
26016         * lib/closeout.h: Include <stdbool.h>.
26017         (close_stdout_set_ignore_EPIPE): New declaration.
26018         * lib/closeout.c: Include <stdbool.h>.
26019         (ignore_EPIPE): New variable.
26020         (close_stdout_set_ignore_EPIPE): New function.
26021         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
26022         * lib/close-stream.c (close_stream): Mention the possible EPIPE
26023         failure.
26024         * modules/closeout (Depends-on): Add stdbool.
26025
26026 2008-10-05  Bruno Haible  <bruno@clisp.org>
26027
26028         * modules/accept: New file.
26029         * modules/bind: New file.
26030         * modules/connect: New file.
26031         * modules/getpeername: New file.
26032         * modules/getsockname: New file.
26033         * modules/getsockopt: New file.
26034         * modules/listen: New file.
26035         * modules/recv: New file.
26036         * modules/recvfrom: New file.
26037         * modules/send: New file.
26038         * modules/sendto: New file.
26039         * modules/setsockopt: New file.
26040         * modules/socket: New file.
26041         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
26042         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26043         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
26044         the particular module is requested. Add a link warning when the
26045         particular module is not requested.
26046         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
26047         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
26048         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
26049         the particular module is requested.
26050         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
26051         gl_SYS_SOCKET_H_DEFAULTS): New macros.
26052         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
26053         * modules/sys_socket (Depends-on): Add link-warning.
26054         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
26055         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
26056         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
26057         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
26058         GL_LINK_WARNING.
26059         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
26060         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
26061         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
26062         * doc/posix-functions/getpeername.texi: Mention the new module
26063         'getpeername'.
26064         * doc/posix-functions/getsockname.texi: Mention the new module
26065         'getsockname'.
26066         * doc/posix-functions/getsockopt.texi: Mention the new module
26067         'getsockopt'.
26068         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
26069         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
26070         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
26071         * doc/posix-functions/send.texi: Mention the new module 'send'.
26072         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
26073         * doc/posix-functions/setsockopt.texi: Mention the new module
26074         'setsockopt'.
26075         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
26076         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
26077         listen, connect, accept.
26078         * modules/select-tests (Depends-on): Likewise.
26079
26080 2008-10-05  Bruno Haible  <bruno@clisp.org>
26081
26082         * lib/winsock.c (strerror): Remove unused #undef.
26083         (rpl_close): Remove unused local variable.
26084
26085         * modules/sys_socket (Depends-on); Add errno.
26086
26087 2008-10-05  Bruno Haible  <bruno@clisp.org>
26088
26089         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
26090         (select): Add a link warning when the 'select' module is not used.
26091         * modules/sys_select (Depends-on): Add link-warning.
26092         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
26093         Suggested by Paolo Bonzini.
26094
26095 2008-10-05  Jim Meyering  <meyering@redhat.com>
26096
26097         bootstrap: check for LT_INIT more portably
26098         * build-aux/bootstrap: Avoid using grep -E, since it's not
26099         portable enough.  Suggestion from Bruno Haible.
26100
26101 2008-10-05  Bruno Haible  <bruno@clisp.org>
26102
26103         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
26104         as being fixed by gnulib.
26105
26106 2008-10-05  Bruno Haible  <bruno@clisp.org>
26107
26108         * modules/select-tests: New file, mostly copied from
26109         modules/sys_select-tests.
26110         * tests/test-select.c: New file, mostly copied from
26111         tests/test-sys_select.c.
26112         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
26113         * modules/sys_select-tests (Depends-on): Remove all dependencies.
26114         (Makefile.am): Remove test_sys_select_LDADD.
26115
26116         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
26117         to an undefined symbol, for an error message.
26118         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
26119         (gl_SYS_SELECT_H_DEFAULTS): New macro.
26120         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
26121         winsock-select.c here.
26122         * modules/sys_select (Files): Remove lib/winsock-select.c.
26123         (Depends-on): Remove alloca.
26124         (Makefile.am): Substitute GNULIB_SELECT.
26125         * modules/select: New file.
26126         * doc/posix-functions/select.texi: Update.
26127
26128 2008-10-05  Bruno Haible  <bruno@clisp.org>
26129
26130         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
26131         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
26132         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
26133         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
26134         getdtablesize.
26135         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
26136         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
26137
26138 2008-10-05  Bruno Haible  <bruno@clisp.org>
26139
26140         * modules/getdtablesize-tests: New file.
26141         * tests/test-getdtablesize.c: New file.
26142
26143         New module 'getdtablesize'.
26144         * lib/unistd.in.h (getdtablesize): New declaration.
26145         * lib/getdtablesize.c: New file.
26146         * m4/getdtablesize.m4: New file.
26147         * modules/getdtablesize: New file.
26148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26149         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
26150         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
26151         HAVE_GETDTABLESIZE.
26152         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
26153
26154 2008-10-05  Bruno Haible  <bruno@clisp.org>
26155
26156         * modules/sched (Makefile.am): Fix typo.
26157         Reported by Simon Josefsson.
26158
26159 2008-10-05  Jim Meyering  <meyering@redhat.com>
26160
26161         bootstrap: check for LT_INIT, too
26162         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
26163         are deprecated.  Suggestion from Ralf Wildenhues.
26164
26165 2008-10-05  Bruno Haible  <bruno@clisp.org>
26166
26167         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
26168         overriding them by ours.
26169         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
26170
26171 2008-10-05  Jim Meyering  <meyering@redhat.com>
26172
26173         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
26174         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
26175         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
26176
26177 2008-10-04  Bruno Haible  <bruno@clisp.org>
26178
26179         * modules/dup2 (License): Change to LGPLv2+.
26180         * modules/sleep (License): Likewise.
26181         * modules/perror (License): Likewise.
26182         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
26183         Blake.
26184         * modules/signal (License): Likewise.
26185         * modules/sigprocmask (License): Likewise.
26186         * modules/raise (License): Change to LGPLv2+, with approval by Jim
26187         Meyering.
26188
26189 2008-10-04  Bruno Haible  <bruno@clisp.org>
26190
26191         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
26192         Reported by Rainer Tammer <tammer@tammer.net>.
26193
26194 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
26195             Bruno Haible  <bruno@clisp.org>
26196
26197         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
26198         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
26199         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
26200
26201 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
26202
26203         filevercmp: new module
26204         * lib/filevercmp.h: New function filevercmp comparing version strings.
26205         * lib/filevercmp.c: Implementation of filevercmp function.
26206         * modules/filevercmp: Module metadata.
26207         * tests/test-filevercmp.c: Unit test for new module.
26208         * modules/filevercmp-tests: Unit test metadata.
26209         * MODULES.html.sh: Add filevercmp module.
26210
26211 2008-10-03  Bruno Haible  <bruno@clisp.org>
26212
26213         * lib/c-ctype.h: Add comment.
26214         Reported by Jim Meyering.
26215
26216 2008-10-02  Bruno Haible  <bruno@clisp.org>
26217
26218         * modules/posix_spawn-internal (Depends-on): Add 'open'.
26219
26220 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26221
26222         * build-aux/bootstrap: Allow renaming bootstrap, and change the
26223         name of bootstrap.conf accordingly.
26224
26225 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26226
26227         * build-aux/bootstrap: Install git-merge-changelog configuration
26228         items into .gitconfig if needed.
26229
26230 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26231
26232         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
26233         git repository, and initialize/update it accordingly.
26234
26235 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
26236
26237         * modules/fsync-tests: New file.
26238         * tests/test-fsync.c: New file.
26239
26240         New module 'fsync'.
26241         * lib/fsync.c: New file.
26242         * m4/fsync.m4: New file.
26243         * modules/fsync: New file.
26244         * lib/unistd.in.h (fsync): New declaration.
26245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
26246         GNULIB_FSYNC and HAVE_FSYNC.
26247         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
26248         * MODULES.html.sh (posix_functions): Add fsync.
26249         * doc/posix-functions/fsync.texi: Mention the new module.
26250
26251 2008-10-02  Jim Meyering  <meyering@redhat.com>
26252
26253         fts.c: sync with similar code from coreutils' remove.c
26254         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
26255         Guard also with "#if defined __linux__", since for now at least,
26256         this code is Linux-kernel-specific.
26257
26258 2008-10-02  Jim Meyering  <meyering@redhat.com>
26259
26260         fts: bug fixes
26261         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
26262         Include <sys/vfs.h>, not <sys/statfs.h>.
26263
26264         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
26265         Include <sys/vfs.h>, not <sys/statfs.h>.
26266
26267 2008-10-01  Bruno Haible  <bruno@clisp.org>
26268
26269         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
26270         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
26271         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
26272         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
26273         * doc/posix-functions/posix_spawnp.texi: Likewise.
26274         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
26275         whether posix_spawn actually works.
26276         * m4/pipe.m4 (gl_PIPE): Likewise.
26277         * modules/execute (Files): Add m4/posix_spawn.m4.
26278         * modules/pipe (Files): Add m4/posix_spawn.m4.
26279         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
26280
26281 2008-10-01  Jim Meyering  <meyering@redhat.com>
26282
26283         remove trailing spaces
26284         * NEWS: Likewise.
26285         * lib/poll.c (poll): Likewise.
26286         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
26287         * lib/winsock.c (rpl_close): Likewise.
26288         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
26289         * modules/yield: Likewise.
26290         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
26291         * tests/test-sys_select.c (connect_to_socket): Likewise.
26292
26293         fts.c: adjust a new interface to be more generally useful
26294         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
26295         (fts_build): Adjust caller.
26296
26297 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26298
26299         * modules/cond-tests: New file.
26300         * tests/test-cond.c: New file.
26301
26302 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26303             Bruno Haible  <bruno@clisp.org>
26304
26305         * modules/cond (Dependencies): Add errno, time.
26306         * lib/glthread/cond.h: Include <time.h>.
26307         (gl_cond_define, gl_cond_define_initialized): Use the same definition
26308         across platforms.
26309
26310 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26311             Bruno Haible  <bruno@clisp.org>
26312
26313         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
26314
26315 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26316             Bruno Haible  <bruno@clisp.org>
26317
26318         * modules/tls-tests (Depends-on): Add thread, yield.
26319         (configure.ac): Remove all checks.
26320         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
26321         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26322         gl_thread_self): Remove definitions. Include glthread/thread.h and
26323         glthread/yield.h instead.
26324         (test_tls): Pass an additional NULL argument to gl_thread_join.
26325
26326 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26327             Bruno Haible  <bruno@clisp.org>
26328
26329         * modules/lock-tests (Depends-on): Add thread, yield.
26330         (configure.ac): Remove all checks.
26331         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
26332         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26333         gl_thread_self): Remove definitions. Include glthread/thread.h and
26334         glthread/yield.h instead.
26335         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
26336         additional NULL argument to gl_thread_join.
26337
26338 2008-09-30  Bruno Haible  <bruno@clisp.org>
26339
26340         Fix the Win32 implementation of the 'thread' module.
26341         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
26342         pointer type.
26343         (gl_thread_self): Invoke gl_thread_self_func.
26344         (gl_thread_self_func): New declaration.
26345         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
26346         (do_init_self_key, init_self_key): New functions.
26347         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
26348         Remove some fields.
26349         (running_threads, running_lock): Remove variables.
26350         (get_current_thread_handle): New function.
26351         (gl_thread_self_func, wrapper_func, glthread_create_func,
26352         glthread_join_func, gl_thread_exit_func): Largely rewritten and
26353         simplified.
26354
26355 2008-09-30  Bruno Haible  <bruno@clisp.org>
26356
26357         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
26358         files.
26359
26360 2008-09-30  Jim Meyering  <meyering@redhat.com>
26361
26362         fts.m4: correct the test for statfs.f_type
26363         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
26364         when checking for statfs.f_type.
26365
26366 2008-09-15  Simon Josefsson  <simon@josefsson.org>
26367
26368         tests: avoid some compiler warnings
26369         * tests/test-memchr.c (main): Pass NULL indirectly.
26370         * tests/test-getdate.c (main): Remove unused variable 'ret'.
26371
26372 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
26373
26374         getdate.y: disallow countable dayshifts like "4 yesterday ago"
26375         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
26376         exactly specified dayshifts.
26377         (dayshift): New rule.
26378         (rel): Add dayshift.
26379         (relative_time_table) [tomorrow, yesterday, today, now]:
26380         Use tDAY_SHIFT in place of tDAY_UNIT.
26381         * tests/test-getdate.c: Add tests for now-disallowed countable
26382         dayshifts, e.g., "4 yesterday ago".
26383
26384 2008-09-29  Bruno Haible  <bruno@clisp.org>
26385
26386         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
26387         * tests/test-posix_spawn1.in.sh: Renamed from
26388         tests/test-posix_spawn.in.sh.
26389         * tests/test-posix_spawn2.c: New file.
26390         * tests/test-posix_spawn2.in.sh: New file.
26391         * modules/posix_spawnp-tests (Files): Update.
26392         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
26393
26394 2008-09-29  Bruno Haible  <bruno@clisp.org>
26395
26396         Propagate effects of putenv/setenv/unsetenv to child processes.
26397         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
26398         * lib/pipe.c (create_pipe): Likewise.
26399
26400 2008-09-29  Bruno Haible  <bruno@clisp.org>
26401
26402         Enable use of shell scripts as executables in mingw.
26403         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
26404         run the program as a shell script.
26405         * lib/pipe.c (create_pipe): Likewise.
26406         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
26407         resulting array.
26408
26409 2008-09-29  Eric Blake  <ebb9@byu.net>
26410
26411         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
26412
26413 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
26414
26415         * doc/posix-functions/accept.texi: Update mingw problems.
26416         * doc/posix-functions/bind.texi: Update mingw problems.
26417         * doc/posix-functions/close.texi: Update mingw problems.
26418         * doc/posix-functions/connect.texi: Update mingw problems.
26419         * doc/posix-functions/getpeername.texi: Update mingw problems.
26420         * doc/posix-functions/getsockname.texi: Update mingw problems.
26421         * doc/posix-functions/getsockopt.texi: Update mingw problems.
26422         * doc/posix-functions/ioctl.texi: Update mingw problems.
26423         * doc/posix-functions/listen.texi: Update mingw problems.
26424         * doc/posix-functions/recv.texi: Update mingw problems.
26425         * doc/posix-functions/recvfrom.texi: Update mingw problems.
26426         * doc/posix-functions/select.texi: Update mingw problems.
26427         * doc/posix-functions/send.texi: Update mingw problems.
26428         * doc/posix-functions/sendto.texi: Update mingw problems.
26429         * doc/posix-functions/setsockopt.texi: Update mingw problems.
26430         * doc/posix-functions/socket.texi: Update mingw problems.
26431
26432 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
26433             Bruno Haible  <bruno@clisp.org>
26434
26435         * lib/sys_select.in.h: Include sys/time.h.
26436         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
26437         * modules/sys_select: Depend on sys_time.
26438         * tests/test-sys_select.c: Test that sys/select.h defines struct
26439         timeval fully.
26440
26441 2008-09-29  Bruno Haible  <bruno@clisp.org>
26442
26443         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
26444         * lib/sys_select.in.h: Likewise.
26445
26446 2008-09-29  Bruno Haible  <bruno@clisp.org>
26447
26448         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
26449
26450 2008-09-29  Bruno Haible  <bruno@clisp.org>
26451
26452         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
26453         Set LIBSOCKET instead of augmenting LIBS.
26454         * modules/sockets (Link): New section.
26455         * modules/sockets-tests (test_sockets_LDADD): New variable.
26456         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
26457         * modules/poll-tests (test_poll_LDADD): New variable.
26458         * NEWS: Document the change.
26459
26460 2008-09-29  Bruno Haible  <bruno@clisp.org>
26461
26462         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
26463         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
26464         ARPA_INET_H directly.
26465         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26466
26467 2008-09-28  Bruno Haible  <bruno@clisp.org>
26468
26469         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
26470         from gl_HEADER_SYS_SOCKET.
26471         (gl_HEADER_SYS_SOCKET): Invoke it.
26472         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26473
26474 2008-09-28  Bruno Haible  <bruno@clisp.org>
26475
26476         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
26477         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
26478         Needed on OSF/1 4.0.
26479
26480 2008-09-28  Bruno Haible  <bruno@clisp.org>
26481
26482         Override open more carefully.
26483         * lib/open.c (orig_open): New function.
26484         (rpl_open): Use orig_open instead of open.
26485         * lib/fcntl.in.h: Add special invocation convention.
26486         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
26487         (gl_FUNC_OPEN): Invoke it.
26488
26489         Override freopen more carefully.
26490         * lib/freopen.c (orig_freopen): New function.
26491         (rpl_freopen): Use orig_freopen instead of freopen.
26492         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
26493         (gl_FUNC_FREOPEN): Invoke it.
26494
26495         Override fopen more carefully.
26496         * lib/fopen.c (orig_fopen): New function.
26497         (rpl_fopen): Use orig_fopen instead of fopen.
26498         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
26499         (gl_FUNC_FOPEN): Invoke it.
26500         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
26501
26502 2008-09-28  Bruno Haible  <bruno@clisp.org>
26503
26504         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
26505         SIGPIPE.
26506
26507 2008-09-28  Bruno Haible  <bruno@clisp.org>
26508
26509         * tests/test-sigaction.c (handler, main): Disable the check whether
26510         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
26511         glibc systems with LinuxThreads.
26512
26513 2008-09-28  Bruno Haible  <bruno@clisp.org>
26514
26515         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
26516
26517         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
26518         with AIX xlc.
26519         * lib/fcntl.in.h (open): Likewise.
26520         Reported by Rainer Tammer <tammer@tammer.net>.
26521
26522 2008-09-28  Bruno Haible  <bruno@clisp.org>
26523
26524         * modules/posix_spawnp-tests: New file.
26525         * tests/test-posix_spawn.c: New file.
26526         * tests/test-posix_spawn.in.sh: New file.
26527
26528         New module 'posix_spawnp'.
26529         * modules/posix_spawnp: New file.
26530         * lib/spawnp.c: New file, from GNU libc with modifications.
26531         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
26532
26533         New module 'posix_spawn'.
26534         * modules/posix_spawn: New file.
26535         * lib/spawn.c: New file, from GNU libc with modifications.
26536         * doc/posix-functions/posix_spawn.texi: Mention the new module.
26537
26538         New module 'posix_spawnattr_destroy'.
26539         * modules/posix_spawnattr_destroy: New file.
26540         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
26541         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
26542         module.
26543
26544         New module 'posix_spawnattr_setsigmask'.
26545         * modules/posix_spawnattr_setsigmask: New file.
26546         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
26547         modifications.
26548         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
26549         new module.
26550
26551         New module 'posix_spawnattr_getsigmask'.
26552         * modules/posix_spawnattr_getsigmask: New file.
26553         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
26554         modifications.
26555         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
26556         new module.
26557
26558         New module 'posix_spawnattr_setsigdefault'.
26559         * modules/posix_spawnattr_setsigdefault: New file.
26560         * lib/spawnattr_setdefault.c: New file, from GNU libc with
26561         modifications.
26562         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
26563         new module.
26564
26565         New module 'posix_spawnattr_getsigdefault'.
26566         * modules/posix_spawnattr_getsigdefault: New file.
26567         * lib/spawnattr_getdefault.c: New file, from GNU libc with
26568         modifications.
26569         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
26570         new module.
26571
26572         New module 'posix_spawnattr_setschedpolicy'.
26573         * modules/posix_spawnattr_setschedpolicy: New file.
26574         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
26575         modifications.
26576         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
26577         new module.
26578
26579         New module 'posix_spawnattr_getschedpolicy'.
26580         * modules/posix_spawnattr_getschedpolicy: New file.
26581         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
26582         modifications.
26583         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
26584         new module.
26585
26586         New module 'posix_spawnattr_setschedparam'.
26587         * modules/posix_spawnattr_setschedparam: New file.
26588         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26589         modifications.
26590         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26591         new module.
26592
26593         New module 'posix_spawnattr_getschedparam'.
26594         * modules/posix_spawnattr_getschedparam: New file.
26595         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26596         modifications.
26597         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26598         new module.
26599
26600         New module 'posix_spawnattr_setpgroup'.
26601         * modules/posix_spawnattr_setpgroup: New file.
26602         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26603         modifications.
26604         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26605         module.
26606
26607         New module 'posix_spawnattr_getpgroup'.
26608         * modules/posix_spawnattr_getpgroup: New file.
26609         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26610         modifications.
26611         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26612         module.
26613
26614         New module 'posix_spawnattr_setflags'.
26615         * modules/posix_spawnattr_setflags: New file.
26616         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26617         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26618         module.
26619
26620         New module 'posix_spawnattr_getflags'.
26621         * modules/posix_spawnattr_getflags: New file.
26622         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26623         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26624         module.
26625
26626         New module 'posix_spawnattr_init'.
26627         * modules/posix_spawnattr_init: New file.
26628         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26629         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26630         module.
26631
26632         New module 'posix_spawn_file_actions_destroy'.
26633         * modules/posix_spawn_file_actions_destroy: New file.
26634         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26635         modifications.
26636         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26637         the new module.
26638
26639         New module 'posix_spawn_file_actions_addopen'.
26640         * modules/posix_spawn_file_actions_addopen: New file.
26641         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26642         modifications.
26643         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26644         the new module.
26645
26646         New module 'posix_spawn_file_actions_adddup2'.
26647         * modules/posix_spawn_file_actions_adddup2: New file.
26648         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26649         modifications.
26650         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26651         the new module.
26652
26653         New module 'posix_spawn_file_actions_addclose'.
26654         * modules/posix_spawn_file_actions_addclose: New file.
26655         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26656         modifications.
26657         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26658         the new module.
26659
26660         New module 'posix_spawn_file_actions_init'.
26661         * modules/posix_spawn_file_actions_init: New file.
26662         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26663         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26664         new module.
26665
26666         New module 'posix_spawn-internal'.
26667         * modules/posix_spawn-internal: New file.
26668         * lib/spawn_int.h: New file, from GNU libc with modifications.
26669         * lib/spawni.c: New file, from GNU libc with modifications.
26670         * m4/posix_spawn.m4: New file.
26671
26672         New module 'spawn'.
26673         * modules/spawn: New file.
26674         * lib/spawn.in.h: New file, from GNU libc with modifications.
26675         * m4/spawn_h.m4: New file.
26676         * doc/posix-headers/spawn.texi: Mention the new module.
26677
26678 2008-09-28  Bruno Haible  <bruno@clisp.org>
26679
26680         * modules/sched-tests: New file.
26681         * tests/test-sched.c: New file.
26682
26683         New module 'sched'.
26684         * modules/sched: New file.
26685         * lib/sched.in.h: New file.
26686         * m4/sched_h.m4: New file.
26687         * doc/posix-headers/sched.texi: Mention the new module.
26688
26689 2008-09-27  Eric Blake  <ebb9@byu.net>
26690
26691         Fix previous patch, and tweak references to $0.
26692         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26693         (func_version, func_gnulib_dir): Don't call this program
26694         gnulib-tool.
26695         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26696         with using $0 in function.
26697         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26698         (func_fatal_error): Reuse the name the user invoked us with.
26699
26700 2008-09-27  Bruno Haible  <bruno@clisp.org>
26701
26702         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26703         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26704         (gl_ICONV_H): Not here.
26705         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26706         instead of assigning ICONV_H directly.
26707
26708         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26709         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26710         WCHAR_H directly.
26711
26712 2008-09-27  Bruno Haible  <bruno@clisp.org>
26713
26714         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26715         * modules/arpa_inet (Depends-on): Add link-warning.
26716         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26717         * modules/unistd (Makefile.am): Likewise.
26718
26719 2008-09-26  Bruno Haible  <bruno@clisp.org>
26720
26721         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26722         variables.
26723         (func_version): Essentially copied from gnulib-tool.
26724         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26725         func_readlink): Copied from gnulib-tool.
26726
26727 2008-09-26  Bruno Haible  <bruno@clisp.org>
26728
26729         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26730         invoking git-version-gen.
26731
26732 2008-09-26  Bruno Haible  <bruno@clisp.org>
26733
26734         * posix-modules: Update to directory names changed on 2008-01-19.
26735         Remove commas in output before splitting into words. No more need to
26736         avoid 'ftruncate' since 2007-02-19.
26737
26738 2008-09-26  Bruno Haible  <bruno@clisp.org>
26739
26740         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26741
26742 2008-09-26  Bruno Haible  <bruno@clisp.org>
26743
26744         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26745         * modules/fwriteerror (Depends-on): Add errno.
26746
26747 2008-09-26  Bruno Haible  <bruno@clisp.org>
26748
26749         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26750         * tests/test-vc-list-files-cvs.sh: Likewise.
26751
26752 2008-09-26  Bruno Haible  <bruno@clisp.org>
26753
26754         * doc/posix-headers/sys_resource.texi: Reorder items.
26755
26756 2008-09-26  Jim Meyering  <meyering@redhat.com>
26757
26758         fts: tweak inode comparison function
26759         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26760         inode numbers, as documented.
26761
26762         fts: sort dirent entries on inode number before traversing
26763         This avoids a quadratic, seek-related performance penalty when
26764         operating on a directory containing many entries (measurable at 10k;
26765         3.5 hours at 2 million entries with a cold cache) on certain types
26766         of file systems, including ext3 and ext4, but not tmpfs.
26767         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26768         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26769         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26770         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26771         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26772         (fts_build): Set the stat.st_ino member from D_INO.
26773         If it is likely to be useful, sort dirent entries on inode number.
26774
26775         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26776         and the struct statfs.f_type member.
26777         * modules/fts (Depends-on): Add d-ino.
26778
26779 2008-09-26  Bruno Haible  <bruno@clisp.org>
26780
26781         * modules/sigpipe-die (Depends-on): Add sigpipe.
26782
26783         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26784         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26785         and GNULIB_STDIO_H_SIGPIPE are set.
26786         * lib/stdio-write.c: New file.
26787         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26788         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26789         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26790         REPLACE_STDIO_WRITE_FUNCS.
26791         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26792         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26793         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26794         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26795         * modules/stdio (Files): Add lib/stdio-write.c.
26796         (Makefile.am): Substitute 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         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26801         REPLACE_FPRINTF_POSIX.
26802         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26803         REPLACE_PRINTF_POSIX.
26804         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26805         REPLACE_VFPRINTF_POSIX.
26806         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26807         REPLACE_VPRINTF_POSIX.
26808         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26809         SIGPIPE issue.
26810         * doc/posix-functions/fputc.texi: Likewise.
26811         * doc/posix-functions/fputs.texi: Likewise.
26812         * doc/posix-functions/fwrite.texi: Likewise.
26813         * doc/posix-functions/printf.texi: Likewise.
26814         * doc/posix-functions/putc.texi: Likewise.
26815         * doc/posix-functions/putchar.texi: Likewise.
26816         * doc/posix-functions/puts.texi: Likewise.
26817         * doc/posix-functions/vfprintf.texi: Likewise.
26818         * doc/posix-functions/vprintf.texi: Likewise.
26819
26820         * modules/safe-write (Depends-on): Add write.
26821
26822         * modules/sigpipe-tests: New file.
26823         * tests/test-sigpipe.c: New file.
26824         * tests/test-sigpipe.sh: New file.
26825
26826         * modules/write: New file.
26827         * lib/unistd.in.h: Include <sys/types.h>.
26828         (write): New declaration.
26829         * lib/write.c: New file.
26830         * m4/write.m4: New file.
26831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26832         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
26833         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
26834         GNULIB_WRITE, REPLACE_WRITE.
26835         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
26836         and the SIGPIPE issue.
26837
26838         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
26839         (raise): New declaration.
26840         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
26841         (ext_signal): New function.
26842         (rpl_raise): New function.
26843         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26844         GNULIB_SIGNAL_H_SIGPIPE.
26845         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
26846         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
26847
26848         * modules/sigpipe: New file.
26849         * m4/sigpipe.m4: New file.
26850
26851 2008-09-25  Derek Price  <derek@ximbiot.com>
26852             Bruno Haible  <bruno@clisp.org>
26853
26854         * gnulib-tool (func_import): Report all license incompatibilities, not
26855         just the first one.
26856
26857 2008-09-25  Bruno Haible  <bruno@clisp.org>
26858
26859         * gnulib-tool (func_import): When computing the edits, consider not
26860         only the Makefile.ams that exist but also those that will be generated.
26861
26862 2008-09-25  Simon Josefsson  <simon@josefsson.org>
26863
26864         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
26865         fixes gnulib-tool --test warning about duplicate dependency.
26866
26867 2008-09-25  Bruno Haible  <bruno@clisp.org>
26868
26869         * gnulib-tool: Don't ask the user to perform edits in the generated
26870         Makefile.ams.
26871         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
26872         apply to the Makefile.am being generated.
26873         (func_emit_tests_Makefile_am): Execute edits that apply to the
26874         Makefile.am being generated.
26875         (func_import): Setup list of Makefile.am edits before emitting the
26876         Makefile.ams, not at the end.
26877         (func_create_testdir): Update.
26878         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26879
26880 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26881
26882         * gnulib-tool (func_import): Store the --tests-base option in the
26883         comment in gnulib-cache.m4.
26884
26885 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
26886
26887         * NEWS: Document increased portability that sys_select now provides.
26888
26889         * lib/sys_select.in.h: Install select wrapper.
26890         * lib/sys_socket.in.h: Use more descriptive name when there is no
26891         select wrapper.
26892         * lib/winsock-select.c: New.
26893         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
26894         Require gl_HEADER_SYS_SOCKET.
26895         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
26896         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
26897         * tests/test-sys_select.c: Add functional tests.
26898
26899 2008-09-24  Eric Blake  <ebb9@byu.net>
26900
26901         open, fopen: close fd leak in last patch
26902         * lib/open.c (rpl_open): Close fd before returning error.
26903         * lib/fopen.c (rpl_fopen): Close fd before returning error.
26904         * doc/posix-functions/open.texi (open): Document that Irix also
26905         has the bug.
26906         * doc/posix-functions/fopen.texi (fopen): Likewise.
26907         Reported by Paolo Bonzini.
26908
26909 2008-09-24  Bruno Haible  <bruno@clisp.org>
26910
26911         Ensure that a filename ending in a slash cannot be used to access a
26912         non-directory.
26913         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
26914         to check whether it's really a directory.
26915         * lib/fopen.c: Include fcntl.h, unistd.h.
26916         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
26917         and fdopen().
26918         * modules/fopen (Depends-on): Add unistd.
26919         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
26920         * tests/test-fopen.c (main): Likewise.
26921         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
26922         * doc/posix-functions/fopen.texi: Likewise.
26923         Reported by Eric Blake.
26924
26925 2008-09-23  Eric Blake  <ebb9@byu.net>
26926
26927         c-stack: avoid compiler optimizations when provoking overflow
26928         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
26929         recursion harder to optimize, to ensure a stack overflow occurs.
26930         * tests/test-c-stack.c (recurse): Likewise.
26931         Borrowed from libsigsegv.
26932
26933         c-stack: work around Irix sigaltstack bug
26934         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
26935         whether sigaltstack uses wrong end of stack_t (copied in part from
26936         libsigsegv).
26937         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
26938         Irix bug, without requiring an over-allocation.
26939         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
26940         bug.
26941
26942         fopen: document mingw bug on directories
26943         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
26944         not allowing a stream visiting a directory, even though reading
26945         from such a stream is not portable.
26946
26947 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26948
26949         * lib/poll.c: Rewrite.
26950         * modules/poll: Depend on alloca.
26951
26952 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26953
26954         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
26955         instead define prototypes for a full set of wrappers.  Ensure
26956         that Cygwin does not use the compatibility code, which is only
26957         for MinGW.
26958         * lib/winsock.c: New.
26959         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
26960         * modules/sys_socket: Add lib/winsock.c.
26961
26962         * modules/poll-tests: Add errno and perror.
26963         * tests/test-poll.c: Use ioctl, not ioctlsocket.
26964
26965 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26966
26967         * tests/test-poll.c: Downgrade minimum needed Winsock version.
26968
26969 2008-09-23  Bruno Haible  <bruno@clisp.org>
26970
26971         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
26972         * doc/glibc-functions/*: Likewise.
26973
26974 2008-09-23  Simon Josefsson  <simon@josefsson.org>
26975
26976         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
26977         success.
26978
26979 2008-09-22  Eric Blake  <ebb9@byu.net>
26980             Bruno Haible  <bruno@clisp.org>
26981
26982         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
26983         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
26984         supply %A but mishandle pseudo-NaN.
26985         Reported by Simon Josefsson.
26986
26987 2008-09-21  Bruno Haible  <bruno@clisp.org>
26988
26989         * tests/test-lock.c (main): Tweak skip message.
26990         * tests/test-tls.c (main): Likewise.
26991
26992 2008-09-21  Bruno Haible  <bruno@clisp.org>
26993
26994         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
26995         whether 'struct sigaction' has sa_sigaction here...
26996         (gl_PREREQ_SIG_HANDLER_H): ... not here.
26997         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
26998
26999 2008-09-21  Bruno Haible  <bruno@clisp.org>
27000
27001         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
27002         section.
27003         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
27004         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
27005         the new section.
27006         (Support for obsolete systems lacking POSIX:2001): New section.
27007         (String handling <string.h>): Move strdup to the new section.
27008         Suggested by Simon Josefsson and Paolo Bonzini.
27009
27010 2008-09-21  Bruno Haible  <bruno@clisp.org>
27011
27012         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
27013         exponents in %e and %g results on 'long double'. Needed for mingw's
27014         improved *printf functions.
27015         * tests/test-vasprintf-posix.c (test_function): Likewise.
27016         * tests/test-snprintf-posix.h (test_function): Likewise.
27017         * tests/test-sprintf-posix.h (test_function): Likewise.
27018         Reported by Eric Blake.
27019
27020 2008-09-21  Bruno Haible  <bruno@clisp.org>
27021
27022         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
27023         * tests/test-sprintf-posix.h (test_function): Likewise.
27024
27025 2008-09-21  Bruno Haible  <bruno@clisp.org>
27026
27027         * modules/getpass (Depends-on): Add strdup-posix.
27028
27029         New module 'strdup-posix'.
27030         * modules/strdup-posix: New file.
27031         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
27032         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
27033         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27034         REPLACE_STRDUP.
27035         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
27036         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
27037         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27038         strdup-posix.
27039
27040         * modules/strdup (Depends-on): Remove malloc-posix.
27041
27042 2008-09-20  Bruno Haible  <bruno@clisp.org>
27043
27044         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
27045         Wildenhues.
27046
27047 2008-09-20  Bruno Haible  <bruno@clisp.org>
27048
27049         Ensure that wint_t gets defined on IRIX 5.3.
27050         * lib/wchar.in.h (wint_t): Define if not defined by the system.
27051         * lib/wctype.in.h (wint_t): Likewise.
27052         (__wctype_wint_t): Remove type.
27053         (isw*): Use wint_t instead of __wctype_wint_t.
27054         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
27055         * modules/wchar (Files): Add m4/wint_t.m4.
27056         (Makefile.am): Substitute HAVE_WINT_T.
27057         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
27058         * tests/test-wctype.c: Check that wint_t is defined.
27059         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
27060         * doc/posix-headers/wctype.texi: Likewise.
27061         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27062
27063 2008-09-18  Bruno Haible  <bruno@clisp.org>
27064
27065         * gnulib-tool (func_exit): Update comment.
27066
27067 2008-09-18  Simon Josefsson  <simon@josefsson.org>
27068
27069         * modules/getaddrinfo (Depends-on): Remove strdup, this module
27070         assumes strdup exists and does not depend on strdup to return
27071         ENOMEM on out of memory conditions.
27072
27073 2008-09-18  Bruno Haible  <bruno@clisp.org>
27074
27075         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
27076         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
27077         digits for the exponent.
27078
27079 2008-09-18  Jim Meyering  <meyering@redhat.com>
27080             Bruno Haible  <bruno@clisp.org>
27081
27082         * lib/vasnprintf.c (decimal_point_char): Define also if
27083         NEED_PRINTF_INFINITE_LONG_DOUBLE.
27084
27085 2008-09-16  Bruno Haible  <bruno@clisp.org>
27086         and Eric Blake  <ebb9@byu.net>
27087
27088         vasnprintf: support Irix 5.3
27089         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
27090         that mishandle long double infinity.
27091         Reported by Tom G. Christensen.
27092
27093 2008-09-16  Bruno Haible  <bruno@clisp.org>
27094
27095         * doc/glibc-functions/scandir.texi: Mention the function is missing on
27096         Solaris 9.
27097         * doc/glibc-functions/alphasort.texi: Likewise.
27098         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
27099
27100 2008-09-16  Jim Meyering  <meyering@redhat.com>
27101
27102         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
27103         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
27104         a umask modification leak out of a subshell.  Otherwise, the
27105         opensolaris /bin/sh would be accepted and thus cause unwarranted
27106         failures in the coreutils test suite.
27107
27108 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
27109
27110         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
27111         to succeed.
27112
27113 2008-09-16  Jim Meyering  <meyering@redhat.com>
27114
27115         avoid spurious test failure when library is built without ACL support
27116         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
27117         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
27118         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
27119         * tests/test-copy-acl.sh: Likewise.
27120
27121 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27122
27123         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
27124         based on character occurrence counts.
27125
27126 2008-09-15  Eric Blake  <ebb9@byu.net>
27127
27128         tests: avoid some compiler warnings
27129         * tests/test-memchr.c (main): Pass NULL indirectly.
27130         * tests/test-closein.c (main): Avoid unused variable.
27131
27132 2008-09-15  Bruno Haible  <bruno@clisp.org>
27133
27134         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
27135         are missing on OpenBSD 4.0 individually.
27136         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27137
27138 2008-09-15  Bruno Haible  <bruno@clisp.org>
27139
27140         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
27141         * doc/posix-functions/strerror.texi: Mention also Cygwin.
27142         * doc/posix-functions/perror.texi: Likewise.
27143         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
27144         is missing.
27145         Reported by Eric Blake.
27146
27147         * lib/errno.in.h: Use replacement values >= 2000.
27148         Reported by Eric Blake.
27149
27150 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27151
27152         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
27153         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
27154         limit.
27155         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
27156         compareseq was aborted.
27157
27158 2008-09-14  Bruno Haible  <bruno@clisp.org>
27159
27160         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
27161         yvec_edit_count.
27162         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
27163         (fstrcmp_bounded): Simplify result computation accordingly.
27164
27165 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27166
27167         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
27168         (fstrcmp): Define in terms of fstrcmp_bounded.
27169         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
27170         lower_bound argument.
27171         Return quickly if the result is certainly < lower_bound.
27172         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
27173
27174 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27175
27176         * lib/diffseq.h (EARLY_ABORT): New macro.
27177         (compareseq): Change return type to bool. Return true when EARLY_ABORT
27178         evaluates to true.
27179
27180 2008-09-14  Bruno Haible  <bruno@clisp.org>
27181
27182         * modules/perror-tests: New file.
27183         * tests/test-perror.sh: New file.
27184         * tests/test-perror.c: New file.
27185
27186         New module 'perror'.
27187         * lib/stdio.in.h (perror): New declaration.
27188         * lib/perror.c: New file.
27189         * m4/perror.m4: New file.
27190         * modules/perror: New file.
27191         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
27192         * doc/posix-functions/perror.texi: Mention the perror module.
27193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
27194         REPLACE_PERROR.
27195         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
27196         REPLACE_PERROR.
27197
27198 2008-09-14  Bruno Haible  <bruno@clisp.org>
27199
27200         * modules/stdio (Makefile.am): Reorder to match the order in
27201         lib/stdio.in.h.
27202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27203
27204 2008-09-13  Bruno Haible  <bruno@clisp.org>
27205
27206         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
27207
27208 2008-09-13  Bruno Haible  <bruno@clisp.org>
27209
27210         Extend strerror to cover the added errno values.
27211         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
27212         (rpl_strerror): Provide error messages for the added errno values and
27213         for the WSA* values.
27214         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
27215         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
27216         strerror.
27217         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
27218         * modules/strerror (Depends-on): Add errno.
27219         * doc/posix-functions/strerror.texi: Document the change.
27220         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
27221         and EOVERFLOW.
27222
27223 2008-09-13  Bruno Haible  <bruno@clisp.org>
27224
27225         * modules/EOVERFLOW: Remove file.
27226         * m4/eoverflow.m4: Remove file.
27227         * modules/EOVERFLOW-tests: Remove file.
27228         * tests/test-EOVERFLOW.c: Remove file.
27229         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
27230         * modules/ftell (Depends-on): Likewise.
27231         * modules/getdelim (Depends-on): Likewise.
27232         * modules/getugroups (Depends-on): Likewise.
27233         * modules/poll (Depends-on): Likewise.
27234         * modules/snprintf (Depends-on): Likewise.
27235         * modules/sprintf-posix (Depends-on): Likewise.
27236         * modules/vasnprintf (Depends-on): Likewise.
27237         * modules/vasprintf (Depends-on): Likewise.
27238         * modules/vfprintf-posix (Depends-on): Likewise.
27239         * modules/vsnprintf (Depends-on): Likewise.
27240         * modules/vsprintf-posix (Depends-on): Likewise.
27241         * modules/xvasprintf (Depends-on): Likewise.
27242         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27243         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
27244         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
27245         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
27246         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27247         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
27248         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
27249         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
27250         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27251         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
27252         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
27253         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
27254         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27255         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
27256         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
27257         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
27258         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27259         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
27260         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
27261         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
27262         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27263         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
27264         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
27265         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
27266         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
27267         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27268         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
27269         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
27270         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
27271         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
27272         * MODULES.html.sh: Remove EOVERFLOW.
27273         * NEWS: Mention the change.
27274
27275 2008-09-13  Bruno Haible  <bruno@clisp.org>
27276
27277         * modules/errno-tests: New file.
27278         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
27279
27280         * lib/errno.in.h: New file.
27281         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
27282         * modules/errno: New file.
27283         * doc/posix-headers/errno.texi: Update documentation.
27284         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
27285
27286 2008-09-13  Bruno Haible  <bruno@clisp.org>
27287
27288         * tests/test-poll.c: Use #if for native Windows, rather than testing
27289         __MSVCRT__.
27290
27291 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27292             Bruno Haible  <bruno@clisp.org>
27293
27294         * lib/glob.c: Don't include <pwd.h> on native Windows.
27295         (WINDOWS32): New macro.
27296         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
27297
27298 2008-09-13  Bruno Haible  <bruno@clisp.org>
27299
27300         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
27301         (ETIMEDOUT): Remove macro.
27302         (glthread_cond_timedwait_multithreaded): New declaration.
27303         (glthread_cond_timedwait): Use it.
27304         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
27305         (glthread_cond_timedwait_multithreaded): New function.
27306
27307 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27308
27309         * modules/poll-tests: Do not check for io.h.
27310         * tests/test-poll.c: Check for __MSVCRT__ instead.
27311
27312 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27313
27314         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
27315         * modules/poll-tests: Add inet_pton, stdbool, sockets.
27316         * tests/test-poll.c: Use them.  Use _pipe on Windows.
27317
27318 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27319
27320         * modules/poll-tests: New.
27321         * tests/test-poll.c: New.
27322
27323 2008-09-12  Eric Blake  <ebb9@byu.net>
27324
27325         frexp: test for NetBSD failure on -0.0
27326         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
27327         not all, bugs from NetBSD 3.0 have been fixed.
27328         * doc/posix-functions/frexp.texi (frexp): Document bug.
27329         Reported by Thomas Klausner.
27330
27331         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
27332         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
27333         literal -0.0.
27334         Reported by Jonathan C. Patschke <jp@centtech.com>.
27335
27336 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27337
27338         * lib/glthread/cond.h: Use dummy implementation also if
27339         USE_WIN32_THREADS.
27340
27341 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27342
27343         * modules/fnmatch-posix (License): Change to LGPLv2+.
27344         * modules/fnmatch-gnu (License): Likewise.
27345
27346 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27347
27348         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
27349
27350 2008-09-11  Jim Meyering  <meyering@redhat.com>
27351
27352         * users.txt: Add gtk-vnc.
27353
27354 2008-09-08  Simon Josefsson  <simon@josefsson.org>
27355
27356         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
27357         rotate amounts.
27358
27359         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
27360         required for 16-bit and 8-bit rotates.
27361         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
27362         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
27363         UINT8_MAX instead of hard-coded constants.
27364         Suggested by Paul Eggert.
27365
27366 2008-09-07  Bruno Haible  <bruno@clisp.org>
27367
27368         * tests/test-striconveh.c (main): Check behaviour when converting from
27369         UTF-7.
27370
27371         Make striconveh work better with stateful encodings.
27372         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
27373         that iconv does not increment the inptr when returning -1/EINVAL.
27374
27375 2008-09-07  Bruno Haible  <bruno@clisp.org>
27376
27377         * build-aux/config.rpath: Update according to libtool-2.2.6.
27378         * build-aux/config.libpath: Likewise.
27379
27380 2008-09-06  Bruno Haible  <bruno@clisp.org>
27381
27382         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
27383         * lib/freadptr.c (freadptr): Likewise.
27384         * lib/freadseek.c (freadptrinc): Likewise.
27385         Reported by Simon Josefsson.
27386
27387 2008-09-06  Bruno Haible  <bruno@clisp.org>
27388
27389         * modules/freadptr (License): Change to LGPLv2+.
27390         * modules/freadseek (License): Likewise.
27391         Suggested by Eric Blake.
27392
27393         * modules/memchr2 (License): Change to LGPLv2+.
27394         Approved by Eric Blake.
27395
27396 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27397             Bruno Haible  <bruno@clisp.org>
27398
27399         Make gnulib-tool work with native 'sed' on AIX.
27400         * gnulib-tool (sed_noop): New variable.
27401         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
27402         func_add_or_update, func_create_testdir): Use it to initialize sed
27403         script variables.
27404         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27405
27406 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
27407             Bruno Haible  <bruno@clisp.org>
27408
27409         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
27410         also works after #include directives.
27411
27412 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
27413
27414         getdate.y: reject an out-of-range timezone value
27415         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
27416         the range [-24...+24].  When specified with only one or two digits,
27417         * tests/test-getdate.c: Tests for the fix.
27418         * doc/getdate.texi: Document this change.
27419
27420 2008-09-03  Bruno Haible  <bruno@clisp.org>
27421
27422         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
27423
27424 2008-09-02  Simon Josefsson  <simon@josefsson.org>
27425
27426         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
27427         <bruce.korb@gmail.com> with ideas from Ben Pfaff
27428         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
27429         Blake <ebb9@byu.net>.
27430
27431         * tests/test-bitrotate.c: Add more test vectors.
27432
27433 2008-09-02  Eric Blake  <ebb9@byu.net>
27434
27435         vasnprintf-posix: handle large precision via %.*d
27436         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
27437         when handling it ourselves.
27438         * tests/test-vasnprintf-posix.c (test_function): Add test.
27439         * tests/test-snprintf-posix.h (test_function): Likewise.
27440         * tests/test-sprintf-posix.h (test_function): Likewise.
27441         * tests/test-vasprintf-posix.c (test_function): Likewise.
27442         Reported by Alain Guibert.
27443
27444 2008-09-01  Eric Blake  <ebb9@byu.net>
27445
27446         c-stack: make configure-time check more robust
27447         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
27448         successful sigaction call.
27449         Reported by Tom G. Christensen.
27450
27451 2008-09-01  Bruno Haible  <bruno@clisp.org>
27452
27453         New module 'findprog-lgpl'.
27454         * modules/findprog-lgpl: New file.
27455         * lib/findprog-lgpl.c: New file.
27456         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
27457         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
27458         to decide whether to use strdup or xstrdup, concatenated_filename or
27459         xconcatenated_filename.
27460
27461 2008-09-01  Bruno Haible  <bruno@clisp.org>
27462
27463         Split module 'concat-filename' into 'concat-filename' (LGPL) and
27464         'xconcat-filename' (GPL).
27465         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
27466         (License): Change to LGPLv2+.
27467         * modules/xconcat-filename: New file.
27468         * lib/concat-filename.h (concatenated_filename): Change specification.
27469         (xconcatenated_filename): New declaration.
27470         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
27471         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
27472         memory situations.
27473         * lib/xconcat-filename.c: New file.
27474         * NEWS: Mention the change.
27475         * lib/findprog.c: Include concat-filename.h, not filename.h.
27476         (find_in_path): Use xconcatenated_filename instead of
27477         concatenated_filename.
27478         * lib/javacomp.c: Include concat-filename.h, not filename.h.
27479         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27480         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27481         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27482         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
27483         instead of concatenated_filename.
27484         * lib/javaexec.c: Include concat-filename.h, not filename.h.
27485         (execute_java_class): Use xconcatenated_filename instead of
27486         concatenated_filename.
27487         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
27488         * modules/javacomp (Depends-on): Likewise.
27489         * modules/javaexec (Depends-on): Likewise.
27490
27491 2008-09-01  Bruno Haible  <bruno@clisp.org>
27492
27493         Split module 'filename' into 'filename' and 'concat-filename'.
27494         * modules/filename: Keep only lib/filename.h.
27495         (License): Change to LGPLv2+.
27496         * modules/concat-filename: New file, extracted from modules/filename.
27497         * lib/filename.h (concatenated_filename): Remove declaration.
27498         * lib/concat-filename.h: New file, extracted from lib/filename.h.
27499         * lib/concat-filename.c: Include concat-filename.h.
27500         * NEWS: Mention the change.
27501
27502 2008-09-01  Simon Josefsson  <simon@josefsson.org>
27503
27504         * lib/bitrotate.h (rotl8, rotr8): Add.
27505
27506         * modules/bitrotate (configure.ac): Need
27507         AC_REQUIRE([AC_C_INLINE]).
27508         (Description): Mention stdint.h.  Reported by Bruno Haible
27509         <bruno@clisp.org>.
27510
27511         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
27512         Paolo Bonzini <bonzini@gnu.org>.
27513
27514 2008-08-31  Bruno Haible  <bruno@clisp.org>
27515
27516         Assume Solaris specific bi-arch conventions on Solaris systems.
27517         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
27518         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
27519         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
27520         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
27521         like acl_libdirstem.
27522         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
27523         acl_libdirstem.
27524         * NEWS: Mention the change.
27525         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
27526
27527 2008-08-31  Jim Meyering  <meyering@redhat.com>
27528
27529         * lib/strftime.h: Add comments describing the two added arguments.
27530
27531         remove duplicate #include directives
27532         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
27533         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
27534
27535 2008-08-31  Bruno Haible  <bruno@clisp.org>
27536
27537         New module 'sigpipe-die'.
27538         * modules/sigpipe-die: New file.
27539         * lib/sigpipe-die.h: New file.
27540         * lib/sigpipe-die.c: New file.
27541         * MODULES.html.sh (Signal handling): Add sigpipe-die.
27542
27543 2008-08-31  Bruno Haible  <bruno@clisp.org>
27544
27545         Don't override previously installed signal handlers.
27546         * lib/fatal-signal.c (saved_sigactions): New variable.
27547         (uninstall_handlers): Reset the signal to the saved handler, not
27548         to SIG_DFL (except when ignored).
27549         (install_handlers): Save the previous handlers.
27550
27551 2008-08-30  Bruno Haible  <bruno@clisp.org>
27552
27553         * gnulib-tool (func_reset_sigpipe): New function.
27554         (func_get_automake_snippet, func_modules_transitive_closure,
27555         func_import): Invoke it before a join command that reads from stdin,
27556         to avoid "echo: write error: Broken pipe" error messages on stderr.
27557         Reported by Sam Steingold <sds@gnu.org>.
27558
27559 2008-08-30  Bruno Haible  <bruno@clisp.org>
27560
27561         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
27562         Code copied from m4/open.m4.
27563         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
27564         access and the filename ends in a slash. Code copied from lib/open.c.
27565         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
27566         * tests/test-fopen.c (main): Check against bug with trailing slash.
27567
27568 2008-08-29  Bruno Haible  <bruno@clisp.org>
27569
27570         Avoid some "gcc -pedantic" warnings.
27571         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
27572         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
27573         * lib/dirent.in.h: Likewise.
27574         * lib/fcntl.in.h: Likewise.
27575         * lib/float.in.h: Likewise.
27576         * lib/iconv.in.h: Likewise.
27577         * lib/inttypes.in.h: Likewise.
27578         * lib/locale.in.h: Likewise.
27579         * lib/math.in.h: Likewise.
27580         * lib/netinet_in.in.h: Likewise.
27581         * lib/search.in.h: Likewise.
27582         * lib/signal.in.h: Likewise.
27583         * lib/stdarg.in.h: Likewise.
27584         * lib/stdint.in.h: Likewise.
27585         * lib/stdio.in.h: Likewise.
27586         * lib/stdlib.in.h: Likewise.
27587         * lib/string.in.h: Likewise.
27588         * lib/strings.in.h: Likewise.
27589         * lib/sys_select.in.h: Likewise.
27590         * lib/sys_socket.in.h: Likewise.
27591         * lib/sys_stat.in.h: Likewise.
27592         * lib/sys_time.in.h: Likewise.
27593         * lib/sysexits.in.h: Likewise.
27594         * lib/time.in.h: Likewise.
27595         * lib/unistd.in.h: Likewise.
27596         * lib/wchar.in.h: Likewise.
27597         * lib/wctype.in.h: Likewise.
27598         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27599         * modules/fchdir (Makefile.am): Likewise.
27600         * modules/fcntl (Makefile.am): Likewise.
27601         * modules/float (Makefile.am): Likewise.
27602         * modules/iconv_open (Makefile.am): Likewise.
27603         * modules/inttypes (Makefile.am): Likewise.
27604         * modules/locale (Makefile.am): Likewise.
27605         * modules/math (Makefile.am): Likewise.
27606         * modules/netinet_in (Makefile.am): Likewise.
27607         * modules/search (Makefile.am): Likewise.
27608         * modules/signal (Makefile.am): Likewise.
27609         * modules/stdarg (Makefile.am): Likewise.
27610         * modules/stdint (Makefile.am): Likewise.
27611         * modules/stdio (Makefile.am): Likewise.
27612         * modules/stdlib (Makefile.am): Likewise.
27613         * modules/string (Makefile.am): Likewise.
27614         * modules/strings (Makefile.am): Likewise.
27615         * modules/sys_select (Makefile.am): Likewise.
27616         * modules/sys_socket (Makefile.am): Likewise.
27617         * modules/sys_stat (Makefile.am): Likewise.
27618         * modules/sys_time (Makefile.am): Likewise.
27619         * modules/sysexits (Makefile.am): Likewise.
27620         * modules/time (Makefile.am): Likewise.
27621         * modules/unistd (Makefile.am): Likewise.
27622         * modules/wchar (Makefile.am): Likewise.
27623         * modules/wctype (Makefile.am): Likewise.
27624         Reported by Reuben Thomas <rrt@sc3d.org>.
27625
27626 2008-08-29  Bruno Haible  <bruno@clisp.org>
27627
27628         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27629         any more.
27630
27631 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27632
27633         * MODULES.html.sh (Misc): Add bitrotate.
27634
27635         * modules/bitrotate: New file.
27636
27637         * lib/bitrotate.h: New file.
27638
27639         * modules/bitrotate-tests: New file.
27640
27641         * tests/test-bitrotate.c: New file.
27642
27643         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27644         on the bitrotate module.
27645
27646         * lib/arctwo.c: Use new bitrotate module.
27647
27648 2008-08-29  Jim Meyering  <meyering@redhat.com>
27649
27650         bootstrap: merge changes from coreutils
27651         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27652         of copied files.  Remove a kludge, now that this is fixed.
27653         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27654         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27655         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27656
27657 2008-08-29  Bruno Haible  <bruno@clisp.org>
27658
27659         * MODULES.html.sh: Remove --cvs-urls option.
27660
27661 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27662
27663         maint.mk: adjust to file name change
27664         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27665
27666 2008-08-28  Jim Meyering  <meyering@redhat.com>
27667
27668         * modules/getndelim2 (License): Relicense to LGPLv2+.
27669         Approved by Richard Stallman for the version of 1995, and by
27670         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27671
27672 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27673
27674         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27675         dummy if one is not available.  Do not touch them if
27676         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27677         (getc_maybe_unlocked): New.
27678         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27679
27680 2008-08-26  Eric Blake  <ebb9@byu.net>
27681
27682         doc/INSTALL: resync from autoconf
27683         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27684         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27685         moving...
27686         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27687         * INSTALL: Regenerate.
27688         * INSTALL.ISO: New file.
27689         * INSTALL.UTF-8: Likewise.
27690
27691 2008-08-26  Jim Meyering  <meyering@redhat.com>
27692
27693         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27694         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27695         these definitions conditional, so that they may be overridden, too.
27696
27697 2008-08-26  Bruno Haible  <bruno@clisp.org>
27698
27699         Generate INSTALL file variants with prettier quotes.
27700         * doc/Makefile (INSTALL_PRELUDE): New macro.
27701         (INSTALL): Use it.
27702         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27703
27704 2008-08-26  Bruno Haible  <bruno@clisp.org>
27705
27706         Run makeinfo in an English locale.
27707         * doc/Makefile (MAKEINFO): New variable.
27708
27709 2008-08-26  Bruno Haible  <bruno@clisp.org>
27710
27711         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27712         Suggested by Eric Blake.
27713
27714 2008-08-25  Bruno Haible  <bruno@clisp.org>
27715
27716         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27717
27718 2008-08-25  Eric Blake  <ebb9@byu.net>
27719
27720         c-stack: test that stack overflow can be caught
27721         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27722         that platform allows handling stack overflow; at least OS/2 EMX
27723         has sigaltstack, but crashes before transferring control to
27724         handler on stack overflow.
27725         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27726         check for HAVE_STACK_OVERFLOW_HANDLING.
27727         Reported by Elbert Pol.
27728
27729 2008-08-25  Bruno Haible  <bruno@clisp.org>
27730
27731         * doc/posix-functions/strftime.texi: Fix description of strftime
27732         module.
27733
27734 2008-08-24  Bruno Haible  <bruno@clisp.org>
27735
27736         * tests/uniwidth/test-uc_width2.c: New file.
27737         * tests/uniwidth/test-uc_width2.sh: New file.
27738         * modules/uniwidth/width-tests (Files): Add the new files.
27739         (TESTS): Add uniwidth/test-uc_width2.sh.
27740         (TESTS_ENVIRONMENT): New variable.
27741         (check_PROGRAMS): Add test-uc_width2.
27742         (test_uc_width2_SOURCES): New variable.
27743
27744         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27745         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27746         not 0x00AB.
27747         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27748
27749 2008-08-22  Eric Blake  <ebb9@byu.net>
27750
27751         test-lock, test-tls: mention why a test is skipped
27752         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27753         skipped.
27754         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27755
27756         count-one-bits: relax license
27757         * modules/count-one-bits (License): Relicense to LGPLv2+.
27758         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27759
27760 2008-08-22  Andreas Schwab  <schwab@suse.de>
27761
27762         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27763         Remove spurious space in assignment.
27764
27765 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27766
27767         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27768         Paul Eggert <eggert@CS.UCLA.EDU>.
27769
27770 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27771
27772         * modules/gettext: Add m4/threadlib.m4.
27773
27774 2008-08-19  Eric Blake  <ebb9@byu.net>
27775
27776         test-c-stack: fix compilation failure on FreeBSD 5.0
27777         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27778         headers before <sys/resource.h>.
27779         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27780         the bug.
27781         Reported by Nelson H. F. Beebe.
27782
27783         strverscmp: migrate from "strverscmp.h" to <string.h>
27784         * modules/string (Makefile.am): Add new hooks.
27785         * modules/strverscmp (Files): Remove strverscmp.h.
27786         (Depends-on): Add string.
27787         (configure.ac): Add indicator.
27788         (Include): Mention new header.
27789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27790         defaults.
27791         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27792         results.
27793         * lib/strverscmp.h: Delete.
27794         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27795         * tests/test-strverscmp.c (includes): Adjust client.
27796         * lib/check-version.c (includes): Likewise.
27797         * NEWS: Document the change.
27798
27799         strverscmp: add unit test
27800         * modules/strverscmp-tests: New file.
27801         * tests/test-strverscmp.c: Likewise.
27802
27803 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27804
27805         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27806         regarding Windows crypto stuff, from Mono.
27807
27808 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27809
27810         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27811         if present, for intel RND.  Return error on failures.
27812
27813 2008-08-18  Ben Pfaff  <blp@gnu.org>
27814
27815         gitlog-to-changelog: give better diagnostic for failed pipe-open
27816         * build-aux/gitlog-to-changelog: Improve error message: suggest
27817         that the version of Git may be too old.
27818
27819 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27820
27821         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27822         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27823
27824 2008-08-18  Bruno Haible  <bruno@clisp.org>
27825
27826         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27827         pthread_in_use().
27828
27829 2008-08-18  Bruno Haible  <bruno@clisp.org>
27830
27831         * lib/glthread/threadlib.c: Include <pthread.h>.
27832
27833 2008-08-18  Bruno Haible  <bruno@clisp.org>
27834
27835         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
27836         glthread_recursive_lock_* macros.
27837         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
27838         Fix syntax error.
27839
27840 2008-08-18  Bruno Haible  <bruno@clisp.org>
27841
27842         * lib/glthread/thread.c: Avoid forcing a context switch right after
27843         thread creation.
27844
27845 2008-08-17  Bruno Haible  <bruno@clisp.org>
27846
27847         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
27848         * lib/glthread/thread.h: Provide Win32 specific implementation.
27849         * modules/thread (Files): Add lib/glthread/thread.c.
27850         (Depends-on): Add lock.
27851         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
27852
27853 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27854
27855         New module 'yield'.
27856         * modules/yield: New file.
27857         * lib/glthread/yield.h: New file.
27858         * m4/yield.m4: New file.
27859         * MODULES.html.sh (Multithreading): Add yield.
27860
27861 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27862
27863         New module 'thread'.
27864         * modules/thread: New file.
27865         * lib/glthread/thread.h: New file.
27866         * m4/thread.m4: New file.
27867         * MODULES.html.sh (Multithreading): Add thread.
27868
27869 2008-08-17  Bruno Haible  <bruno@clisp.org>
27870
27871         * lib/glthread/lock.h: Include <stdlib.h> always.
27872         * lib/glthread/tls.h: Likewise.
27873         * lib/glthread/cond.h: Likewise.
27874
27875 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27876
27877         New module 'cond'.
27878         * modules/cond: New file.
27879         * lib/glthread/cond.h: New file.
27880         * lib/glthread/cond.c: New file.
27881         * m4/cond.m4: New file.
27882         * MODULES.html.sh (Multithreading): Add cond.
27883
27884 2008-08-16  Eric Blake  <ebb9@byu.net>
27885
27886         c-stack: fix regression on Irix 5.3 from 2008-06-21
27887         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
27888         sa_sigaction...
27889         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
27890         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
27891         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
27892         * modules/signal (Makefile.am): Use the value.
27893         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
27894         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
27895         * doc/posix-headers/signal.texi (signal.h): Document this
27896         portability issue.
27897         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
27898         Reported by Tom G. Christensen.
27899
27900 2008-08-17  Bruno Haible  <bruno@clisp.org>
27901
27902         New module 'threadlib'.
27903         * modules/threadlib: New file.
27904         * lib/glthread/threadlib.c: New file, extracted from
27905         lib/glthread/lock.c.
27906         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
27907         functions.
27908         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
27909         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
27910         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
27911         macros.
27912         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
27913         (gl_DISABLE_THREADS): Remove macro.
27914         * modules/lock (Files): Remove build-aux/config.rpath.
27915         (Depends-on): Remove havelib. Add threadlib.
27916         (configure.ac-early): Remove section.
27917         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
27918         * modules/tls (Depends-on): Remove lock. Add threadlib.
27919         (Link): New section, copied from threadlib.
27920         * MODULES.html.sh (Multithreading): Add threadlib.
27921
27922 2008-08-14  Bruno Haible  <bruno@clisp.org>
27923
27924         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
27925         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
27926         glthread_rwlock_unlock, glthread_rwlock_destroy,
27927         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
27928         glthread_recursive_lock_destroy): Define as macros always.
27929         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
27930         glthread_lock_lock.
27931         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
27932         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
27933         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
27934         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
27935         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
27936         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
27937         (glthread_recursive_lock_lock_func): Renamed from
27938         glthread_recursive_lock_lock.
27939         (glthread_recursive_lock_unlock_func): Renamed from
27940         glthread_recursive_lock_unlock.
27941         (glthread_recursive_lock_destroy_func): Renamed from
27942         glthread_recursive_lock_destroy.
27943
27944 2008-08-14  Bruno Haible  <bruno@clisp.org>
27945
27946         * lib/glthread/lock.h: Renamed from lib/lock.h.
27947         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
27948         * lib/glthread/tls.h: Renamed from lib/tls.h.
27949         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
27950         * lib/fstrcmp.c: Update includes.
27951         * lib/strsignal.c: Update includes.
27952         * modules/lock (Files, Makefile.am): Update.
27953         (Include): Change to "glthread/lock.h".
27954         * modules/tls (Files, Makefile.am): Update.
27955         (Include): Change to "glthread/tls.h".
27956         * tests/test-lock.c: Update includes.
27957         * tests/test-tls.c: Update includes.
27958         * NEWS: Mention the renamed header files.
27959
27960 2008-08-11  Jim Meyering  <meyering@redhat.com>
27961
27962         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
27963
27964 2008-08-11  Eric Blake  <ebb9@byu.net>
27965
27966         test-c-stack: avoid C99-ism
27967         * tests/test-c-stack.c (main): Fix whitespace, move declaration
27968         before statement.
27969         Reported by Alain Guibert.
27970
27971 2008-08-10  Jim Meyering  <meyering@redhat.com>
27972
27973         ensure that return value of uinttostr et al are not ignored
27974         * lib/inttostr.h (__GNUC_PREREQ): Define.
27975         (__attribute_warn_unused_result__): Define.
27976         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
27977
27978 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
27979
27980         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
27981         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
27982
27983 2008-08-07  Jim Meyering  <meyering@redhat.com>
27984
27985         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
27986
27987         * modules/mkstemp (License): Relicense under LGPLv2+.
27988         * modules/tempname (License): Likewise.
27989
27990 2008-08-06  Bruno Haible  <bruno@clisp.org>
27991
27992         * lib/poll.c (poll): Further micro-optimization.
27993
27994 2008-08-06  Jim Meyering  <meyering@redhat.com>
27995
27996         inet_pton.c: use locale-independent tolower
27997         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
27998         (inet_pton6): Use c_tolower rather than tolower.
27999         * modules/inet_pton (Depends-on): Add c-ctype.
28000
28001 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
28002
28003         * lib/poll.c (poll): Avoid division when timeout is 0, cache
28004         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
28005
28006 2008-08-06  Jim Meyering  <meyering@redhat.com>
28007
28008         * modules/inet_pton (License): Relicense under LGPLv2+.
28009
28010 2008-08-03  Bruno Haible  <bruno@clisp.org>
28011
28012         Additional non-aborting API for lock and tls.
28013         * lib/lock.h: Include <errno.h>.
28014         (glthread_lock_init): New macro/function.
28015         (gl_lock_init): Define as wrapper around glthread_lock_init.
28016         (glthread_lock_lock): New macro/function.
28017         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
28018         (glthread_lock_unlock): New macro/function.
28019         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
28020         (glthread_lock_destroy): New macro/function.
28021         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
28022         (glthread_rwlock_init): New macro/function.
28023         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
28024         (glthread_rwlock_rdlock): New macro/function.
28025         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
28026         (glthread_rwlock_wrlock): New macro/function.
28027         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
28028         (glthread_rwlock_unlock): New macro/function.
28029         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
28030         (glthread_rwlock_destroy): New macro/function.
28031         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
28032         (glthread_recursive_lock_init): New macro/function.
28033         (gl_recursive_lock_init): Define as wrapper around
28034         glthread_recursive_lock_init.
28035         (glthread_recursive_lock_lock): New macro/function.
28036         (gl_recursive_lock_lock): Define as wrapper around
28037         glthread_recursive_lock_lock.
28038         (glthread_recursive_lock_unlock): New macro/function.
28039         (gl_recursive_lock_unlock): Define as wrapper around
28040         glthread_recursive_lock_unlock.
28041         (glthread_recursive_lock_destroy): New macro/function.
28042         (gl_recursive_lock_destroy): Define as wrapper around
28043         glthread_recursive_lock_destroy.
28044         (glthread_once): New macro/function.
28045         (gl_once): Define as wrapper around glthread_once.
28046         Update function declarations.
28047         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
28048         glthread_rwlock_init. Return error code.
28049         (glthread_rwlock_rdlock_multithreaded): Renamed from
28050         glthread_rwlock_rdlock. Return error code.
28051         (glthread_rwlock_wrlock_multithreaded): Renamed from
28052         glthread_rwlock_wrlock. Return error code.
28053         (glthread_rwlock_unlock_multithreaded): Renamed from
28054         glthread_rwlock_unlock. Return error code.
28055         (glthread_rwlock_destroy_multithreaded): Renamed from
28056         glthread_rwlock_destroy. Return error code.
28057         (glthread_recursive_lock_init_multithreaded): Renamed from
28058         glthread_recursive_lock_init. Return error code.
28059         (glthread_recursive_lock_lock_multithreaded): Renamed from
28060         glthread_recursive_lock_lock. Return error code.
28061         (glthread_recursive_lock_unlock_multithreaded): Renamed from
28062         glthread_recursive_lock_unlock. Return error code.
28063         (glthread_recursive_lock_destroy_multithreaded): Renamed from
28064         glthread_recursive_lock_destroy. Return error code.
28065         (glthread_once_call): Make static.
28066         (glthread_once_multithreaded): Renamed from glthread_once.
28067         * lib/tls.h: Include <errno.h>.
28068         (glthread_tls_key_init): New macro/function.
28069         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
28070         (glthread_tls_set): New macro/function.
28071         (gl_tls_set): Define as wrapper around glthread_tls_set.
28072         (glthread_tls_key_destroy): New macro/function.
28073         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
28074         Update function declarations.
28075         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
28076         glthread_tls_get.
28077         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28078
28079 2008-08-04  Eric Blake  <ebb9@byu.net>
28080
28081         gnumakefile: use space, not TAB, outside of targets
28082         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
28083
28084 2008-08-02  Jim Meyering  <meyering@redhat.com>
28085
28086         getdate.y: avoid locale-dependent date parsing failure
28087         In Turkish locales, getdate would fail to recognize keywords
28088         containing a lowercase "i".  The solution is not to rely on
28089         locale-sensitive case-conversion.
28090         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
28091         (lookup_word): Use c_toupper in place of toupper.
28092         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
28093         Reported by Vefa Bicakci <bicave@superonline.com> in
28094         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
28095         * modules/getdate (Depends-on): Add c-ctype.
28096
28097 2008-08-02  Bruno Haible  <bruno@clisp.org>
28098
28099         * gnulib-tool (func_import): When updating or creating a .gitignore
28100         file, prepend each added line with a slash, and ignore leading slashes
28101         from the existing lines.
28102         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28103
28104 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28105
28106         Portability fix for GNU make 3.79.1.
28107         * top/GNUmakefile: Avoid 'else COND', which older GNU make
28108         versions do not understand.
28109
28110 2008-08-01  Bruno Haible  <bruno@clisp.org>
28111
28112         Work around bug of HP-UX 10.20 cc with -0.0 literal.
28113         * tests/test-isnanf.h (zero): New variable.
28114         (main): Avoid literal -0.0f.
28115         * tests/test-isnand.h (zero): New variable.
28116         (main): Avoid literal -0.0.
28117         * tests/test-isnanl.h (zero): New variable.
28118         (main): Avoid literal -0.0L.
28119         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
28120         (test_float, test_double, test_long_double): Avoid literals -0.0f,
28121         -0.0, -0.0L.
28122         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
28123         (test_signbitd): Avoid literal -0.0.
28124         (test_signbitl): Avoid literal -0.0L.
28125         * tests/test-ceilf1.c (zero): New variable.
28126         (main): Avoid literal -0.0f.
28127         * tests/test-ceill.c (zero): New variable.
28128         (main): Avoid literal -0.0L.
28129         * tests/test-floorf1.c (zero): New variable.
28130         (main): Avoid literal -0.0f.
28131         * tests/test-floorl.c (zero): New variable.
28132         (main): Avoid literal -0.0L.
28133         * tests/test-roundf1.c (zero): New variable.
28134         (main): Avoid literal -0.0f.
28135         * tests/test-round1.c (zero): New variable.
28136         (main): Avoid literal -0.0.
28137         * tests/test-roundl.c (zero): New variable.
28138         (main): Avoid literal -0.0L.
28139         * tests/test-truncf1.c (zero): New variable.
28140         (main): Avoid literal -0.0f.
28141         * tests/test-trunc1.c (zero): New variable.
28142         (main): Avoid literal -0.0.
28143         * tests/test-truncl.c (zero): New variable.
28144         (main): Avoid literal -0.0L.
28145         * tests/test-frexp.c (zero): New variable.
28146         (main): Avoid literal -0.0.
28147         * tests/test-frexpl.c (zero): New variable.
28148         (main): Avoid literal -0.0L.
28149         * tests/test-ldexpl.c (zero): New variable.
28150         (main): Avoid literal -0.0L.
28151         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28152         (zerod, zerol): New variables.
28153         (test_function): Avoid literals -0.0, -0.0L.
28154         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28155         (zerod, zerol): New variables.
28156         (test_function): Avoid literals -0.0, -0.0L.
28157         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28158         (zerod, zerol): New variables.
28159         (test_function): Avoid literals -0.0, -0.0L.
28160         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28161         (zerod, zerol): New variables.
28162         (test_function): Avoid literals -0.0, -0.0L.
28163         * tests/test-strtod.c (zero): New variable.
28164         (main): Avoid literal -0.0.
28165         Reported by Jonathan C. Patschke <jp@centtech.com>.
28166
28167 2008-07-31  Jim Meyering  <meyering@redhat.com>
28168
28169         sha256.h: correct definition of SHA224_DIGEST_SIZE
28170         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
28171         Reported by Paulie Pena IV <paulie4@gmail.com>.
28172         Define as 224 / 8, rather than as a literal.
28173         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
28174         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
28175         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
28176
28177 2008-07-31  Bruno Haible  <bruno@clisp.org>
28178
28179         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
28180         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
28181         Reported by Jonathan Patschke <jp@centtech.com>.
28182
28183 2008-07-31  Bruno Haible  <bruno@clisp.org>
28184
28185         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
28186         Reported by Paolo Bonzini <bonzini@gnu.org>.
28187
28188 2008-07-30  Eric Blake  <ebb9@byu.net>
28189
28190         test-strtod: allow compilation without -lm
28191         * tests/test-strtod.c (main): Avoid link dependence on fabs.
28192         Reported by Dennis Clarke <blastwave@gmail.com>.
28193
28194 2008-07-28  Jim Meyering  <meyering@redhat.com>
28195
28196         bootstrap: work also when there are no .po files in po/
28197         * build-aux/bootstrap (update_po_files): Complete the change
28198         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
28199
28200 2008-07-27  Jim Meyering  <meyering@redhat.com>
28201
28202         * users.txt: Add zile.
28203
28204 2008-07-26  Ben Pfaff  <blp@gnu.org>
28205
28206         Add missing dependencies on new m4/exponent[fdl].m4 files.
28207         * modules/isnanf-nolibm: Add m4/exponentf.m4.
28208         * modules/isnand-nolibm: Add m4/exponentd.m4.
28209         * modules/isnanl-nolibm: Add m4/exponentl.m4.
28210         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
28211         m4/isnan[fdl].m4, because the macros actually used moved.
28212         Reported by Jim Meyering.
28213
28214 2008-07-14  Ben Pfaff  <blp@gnu.org>
28215
28216         Add isinf module.
28217         * lib/isinf.c: New file.
28218         * lib/math.in.h: Define isinf macro if we have decided to replace
28219         it.
28220         * m4/isinf.m4: New file.
28221         * m4/math_h.m4: Initialize and substitute variables for isinf
28222         module.
28223         * modules/isinf: New file.
28224         * modules/isinf-tests: New file.
28225         * modules/math: Add substitutions for new module.
28226         * tests/test-isinf.c: New file.
28227         * doc/posix-functions/isinf.texi: Mention new module.
28228         * MODULES.html.sh: Mention new module.
28229
28230 2008-07-14  Ben Pfaff  <blp@gnu.org>
28231
28232         Factor out some macros for use by additional modules.
28233         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
28234         exponentf.m4.
28235         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
28236         exponentd.m4.
28237         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
28238         file exponentl.m4.
28239         * m4/exponentf.m4: New file.
28240         * m4/exponentd.m4: New file.
28241         * m4/exponentl.m4: New file.
28242         * modules/isnanf: Use new file m4/exponentf.m4.
28243         * modules/isnand: Use new file m4/exponentd.m4.
28244         * modules/isnanl: Use new file m4/exponentl.m4.
28245
28246 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
28247
28248         mktime.c: normalize tp->tm_isdst value to -1/0/1.
28249         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
28250         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
28251         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
28252
28253         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
28254         readlink on platforms without PATH_MAX.
28255
28256 2008-07-21  Eric Blake  <ebb9@byu.net>
28257
28258         Warn, not fail, on stale version.
28259         * top/GNUmakefile (_curr-ver): Tone down previous patch.
28260
28261         Don't allow installation with stale devel version number.
28262         * top/GNUmakefile (_is-install-target): New macro.
28263         (_curr-ver): Forbid installation with stale version number.
28264
28265 2008-07-20  Bruno Haible  <bruno@clisp.org>
28266
28267         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
28268         TESTS_ENVIRONMENT.
28269         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
28270
28271 2008-07-20  Bruno Haible  <bruno@clisp.org>
28272
28273         * lib/c-stack.h (c_stack_action): Add documentation.
28274         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
28275
28276 2008-07-20  Bruno Haible  <bruno@clisp.org>
28277
28278         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
28279         * modules/readlink (License): Likewise.
28280
28281 2008-07-17  Eric Blake  <ebb9@byu.net>
28282
28283         * modules/c-stack (Link): Fix typo.
28284
28285         Make c-stack use libsigsegv, when available.
28286         * modules/c-stack (Depends-on): Add libsigsegv.
28287         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
28288         needed.
28289         * lib/c-stack.c (SIGSTKSZ): Define fallback.
28290         (segv_handler, overflow_handler, c_stack_action)
28291         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
28292         implementation when libsigsegv is available, but only when using
28293         the library is necessary.
28294         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
28295         comment, explaining why XSI check fails on Linux.
28296         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
28297         * tests/test-c-stack2.sh: Tweak skip message.
28298         * NEWS: Document new link-time requirements.
28299
28300 2008-07-16  Eric Blake  <ebb9@byu.net>
28301
28302         c-stack: Expose false positives when not using libsigsegv.
28303         * modules/c-stack-tests (Files): Expand test.
28304         * tests/test-c-stack.c (main): Add means to conditionally trigger
28305         non-overflow SIGSEGV.
28306         * tests/test-c-stack2.sh: New file.
28307
28308 2008-07-14  Bruno Haible  <bruno@clisp.org>
28309
28310         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
28311         Reported by Eric Blake.
28312
28313 2008-07-14  Sam Steingold  <sds@gnu.org>
28314             Bruno Haible  <bruno@clisp.org>
28315
28316         New module libsigsegv.
28317         * modules/libsigsegv: New file.
28318         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
28319         modifications.
28320         * MODULES.html.sh (Signal handling): New section.
28321
28322 2008-07-14  Bruno Haible  <bruno@clisp.org>
28323
28324         * modules/unictype/ctype-* (Description): Add the word "function".
28325         Improves the resulting doc in MODULES.html.
28326
28327 2008-07-12  Ben Pfaff  <blp@gnu.org>
28328
28329         Add longlong module.
28330         * modules/longlong: New file.
28331
28332 2008-07-12  Bruno Haible  <bruno@clisp.org>
28333
28334         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
28335         to empty.
28336
28337 2008-07-10  Ben Pfaff  <blp@gnu.org>
28338
28339         Add isnan module.
28340         * doc/posix-functions/isnan.texi: Mention new module.
28341         * lib/math.in.h: Define isnan macro if we have decided to replace
28342         it.
28343         * m4/isnan.m4: New file.
28344         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
28345         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
28346         also.
28347         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
28348         redundancy.
28349         * m4/math_h.m4: Initialize and substitute variables for isnan
28350         module.
28351         * modules/isnan: New file.
28352         * modules/isnan-tests: New file.
28353         * modules/math: Add substitutions for new module.
28354         * tests/test-isnan.c: New file.
28355         * MODULES.html.sh: Mention new module.
28356
28357 2008-07-10  Ben Pfaff  <blp@gnu.org>
28358
28359         Add isnanf module.
28360         * lib/isnanf.m4: New file.
28361         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
28362         (gl_HAVE_ISNANF_IN_LIBM): New macro.
28363         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
28364         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
28365         * modules/isnanf: New file.
28366         * modules/isnanf-tests: New file.
28367         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
28368         files.
28369         * tests/test-isnanf-nolibm.c: factored most of its contents into
28370         new file tests/test-isnanf.h.
28371         * tests/test-isnanf.h: New file.
28372         * tests/test-isnanf.c: New file.
28373         * MODULES.html.sh: Mention new module.
28374         * doc/glibc-functions/isnanf.texi: Mention new module.
28375
28376 2008-07-10  Ben Pfaff  <blp@gnu.org>
28377
28378         Add isnand module.
28379         * lib/isnand.h: New file.
28380         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
28381         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
28382         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
28383         functionality also.
28384         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
28385         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
28386         (gl_HAVE_ISNAND_IN_LIBM): New macro.
28387         * modules/isnand: New file.
28388         * modules/isnand-tests: New file.
28389         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
28390         files.
28391         * tests/test-isnand-nolibm.c: factored most of its contents into
28392         new file tests/test-isnand.h.
28393         * tests/test-isnand.h: New file.
28394         * tests/test-isnand.c: New file.
28395         * MODULES.html.sh: Mention new module.
28396
28397 2008-07-10  Ben Pfaff  <blp@gnu.org>
28398
28399         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
28400         * lib/isnand.h: Rename lib/isnand-nolibm.h.
28401         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
28402         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
28403         * modules/isnanf-nolibm: Update references to renamed files.
28404         * modules/isnand-nolibm: Likewise.
28405         * modules/isnanf-nolibm-tests: Likewise.
28406         * modules/isnand-nolibm-tests: Likewise.
28407         * lib/frexp.c: Likewise.
28408         * lib/isfinite.c: Likewise.
28409         * lib/signbitd.c: Likewise.
28410         * lib/signbitf.c: Likewise.
28411         * lib/vasnprintf.c: Likewise.
28412         * tests/test-ceilf1.c: Likewise.
28413         * tests/test-ceilf2.c: Likewise.
28414         * tests/test-floorf1.c: Likewise.
28415         * tests/test-floorf2.c: Likewise.
28416         * tests/test-frexp.c: Likewise.
28417         * tests/test-round1.c: Likewise.
28418         * tests/test-round2.c: Likewise.
28419         * tests/test-roundf1.c: Likewise.
28420         * tests/test-strtod.c: Likewise.
28421         * tests/test-trunc1.c: Likewise.
28422         * tests/test-trunc2.c: Likewise.
28423         * tests/test-truncf1.c: Likewise.
28424         * tests/test-truncf2.c: Likewise.
28425         * NEWS: Mention the renamed header files.
28426
28427 2008-07-11  Jim Meyering  <meyering@redhat.com>
28428
28429         vc-list-files: make the last-resort awk code more portable
28430         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
28431         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
28432         does not support it.
28433
28434 2008-07-10  Eric Blake  <ebb9@byu.net>
28435
28436         Work with tar's bootstrap.
28437         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
28438         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
28439         an m4 comment.
28440
28441 2008-07-09  Jim Meyering  <meyering@redhat.com>
28442
28443         posix-shell.m4: fix typo that made this test malfunction
28444         * m4/posix-shell.m4: Remove capitalization in variable name.
28445
28446 2008-07-08  Bruno Haible  <bruno@clisp.org>
28447
28448         * m4/onceonly.m4: Update comments.
28449         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28450
28451 2008-07-04  Jim Meyering  <meyering@redhat.com>
28452
28453         * users.txt: Add vc-dwim.
28454         (bison, coreutils): Use the gitweb URL.
28455
28456 2008-07-03  Jim Meyering  <meyering@redhat.com>
28457
28458         * users.txt: Add libffcall.  From Sam Steingold.
28459
28460 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
28461
28462         getdate.y: do not ignore TZ with relative day, month or year offset
28463         * lib/getdate.y (get_date): Move the tz-handling block to follow the
28464         relative-date-handling, since otherwise, the latter would clobber the
28465         sole output (an updated Start value) of the tz-handling block.
28466         * tests/test-getdate.c: Tests for the fix
28467
28468 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28469
28470         Recognize 'foo_LIBRARIES += libgnu.a'.
28471         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
28472         makefile snippet has already specified an installation location,
28473         also using '+='.
28474
28475 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
28476
28477         getdate.y: factor out common actions
28478         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
28479         Use them in place of open-coded actions.
28480
28481 2008-07-01  Simon Josefsson  <simon@josefsson.org>
28482
28483         Add self-test for getdate module.
28484         * modules/getdate-tests: New file.
28485         * tests/test-getdate.c: New file.
28486
28487 2008-06-29  Bruno Haible  <bruno@clisp.org>
28488
28489         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
28490         .gitignore.
28491         Reported by Sylvain Beucler <beuc@beuc.net>.
28492
28493 2008-06-29  Bruno Haible  <bruno@clisp.org>
28494
28495         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
28496         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
28497
28498 2008-06-29  Bruno Haible  <bruno@clisp.org>
28499
28500         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
28501         EXTRA_DIST.
28502         Reported by Sylvain Beucler <beuc@beuc.net>.
28503
28504 2008-06-26  Jim Meyering  <meyering@redhat.com>
28505
28506         make several modules depend on the "open" module
28507         This provides slightly increased consistency when opening-for-write
28508         the name of a non-directory spelled with a trailing slash.
28509         * modules/chdir-safer: Likewise.
28510         * modules/chown: Likewise.
28511         * modules/clean-temp: Likewise.
28512         * modules/copy-file: Likewise.
28513         * modules/fchdir: Likewise.
28514         * modules/fcntl-safer: Likewise.
28515         * modules/pipe: Likewise.
28516         * modules/utime: Likewise.
28517         Prompted by Eric Blake and Bruno Haible.
28518
28519 2008-06-24  Andreas Schwab  <schwab@suse.de>
28520
28521         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
28522         literals can be used as initializers for global variables.
28523
28524 2008-06-23  Eric Blake  <ebb9@byu.net>
28525
28526         Make gnulib-cache.m4 easier to diff.
28527         * gnulib-tool (func_import): Allow newlines when reading cached
28528         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
28529
28530 2008-06-23  Bruno Haible  <bruno@clisp.org>
28531
28532         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
28533         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
28534         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
28535         m4/signalblocking.m4.
28536         (gl_PREREQ_SIGACTION): Don't invoke it.
28537         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
28538         gl_PREREQ_SIG_HANDLER_H.
28539         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28540         Don't check for sigaction here.
28541
28542 2008-06-23  Bruno Haible  <bruno@clisp.org>
28543
28544         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
28545         (install_handlers): Don't set the SA_RESETHAND flag.
28546
28547 2008-06-23  Bruno Haible  <bruno@clisp.org>
28548
28549         * m4/sigaction.m4: Comment fixes.
28550         * lib/signal.in.h: Likewise.
28551
28552 2008-06-23  Eric Blake  <ebb9@byu.net>
28553
28554         Fix typo.
28555         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
28556
28557         Avoid SA_ namespace.
28558         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
28559         Reported by Ralf Wildenhues.
28560
28561         Avoid test failure due to SA_RESTORER.
28562         * tests/test-sigaction.c (SA_MASK): New macro.
28563         (main): Avoid failing due to extension flags being set.
28564         Reported by Jim Meyering.
28565
28566         Revert use of sig-handler.h in sigprocmask.c.
28567         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
28568         it requires the existence of struct sigaction.
28569         * lib/sigprocmask.c (handler_t): Restore typedef.
28570         (rpl_signal, old_handlers): Use local type.
28571
28572 2008-06-22  Bruno Haible  <bruno@clisp.org>
28573
28574         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
28575         conditionally.
28576         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28577
28578 2008-06-22  Bruno Haible  <bruno@clisp.org>
28579
28580         * doc/posix-functions/siginterrupt.texi: Move note.
28581
28582         * lib/signal.in.h (SA_RESTART): New macro.
28583         * lib/sigaction.c: Update comment.
28584
28585         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28586
28587         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28588         (gl_PREREQ_SIGPROCMASK): Invoke it.
28589         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28590
28591         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28592
28593         * lib/sigprocmask.c: Update a comment.
28594
28595 2008-06-21  Eric Blake  <ebb9@byu.net>
28596
28597         Use sigaction module rather than signal().
28598         * modules/c-stack (Depends-on): Add sigaction.
28599         * modules/fatal-signal (Depends-on): Likewise.
28600         * modules/nanosleep (Depends-on): Likewise.
28601         * modules/sigprocmask (Files): Add sig-handler.h.
28602         * modules/sigaction (Files): Likewise.
28603         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28604         Eggert.
28605         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28606         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28607         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28608         (init_fatal_signals): Likewise.
28609         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28610         (siginterrupt): Delete fallback.
28611         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28612         instead.
28613         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28614         siginterrupt.
28615
28616         New module sigaction, for mingw.
28617         * modules/sigaction: New module...
28618         * modules/sigaction-tests: ...and its test.
28619         * m4/sigaction.m4: New file.
28620         * lib/sigaction.c: Likewise.
28621         * tests/test-sigaction.c: Likewise.
28622         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28623         * modules/signal (Makefile.am): Likewise.
28624         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28625         needed.
28626         * doc/posix-headers/signal.texi (signal.h): Mention provided
28627         types.
28628         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28629         that sigaction is preferable.
28630         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28631         module.
28632         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28633         sigaction.
28634
28635         Improve robustness of sigprocmask by overriding signal.
28636         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28637         is in use.
28638         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28639         (SIGKILL, SIGSTOP): Provide fallbacks.
28640         (rpl_signal): Implement.
28641         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28642         signal can be called inside handlers.
28643
28644         Fix nanosleep module on mingw.
28645         * modules/nanosleep (Depends-on): Add sys_select.
28646         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28647
28648         Fix licensing of sigprocmask.
28649         * modules/raise (License): Relicense as LGPL.
28650
28651 2008-06-21  Bruno Haible  <bruno@clisp.org>
28652
28653         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28654         result if it contains question marks.
28655         Reported by Michael Geng <linux@michaelgeng.de>.
28656
28657 2008-06-19  Bruno Haible  <bruno@clisp.org>
28658
28659         Fix CVS-ism.
28660         * doc/gnulib.texi: Include updated-stamp.texi.
28661         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28662         (updated-stamp.texi): New rule.
28663         (gnulib.info): Depend on it.
28664         * doc/.gitignore: Add updated-stamp.texi.
28665         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28666
28667 2008-06-19  Bruno Haible  <bruno@clisp.org>
28668
28669         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28670         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28671
28672 2008-06-19  Eric Blake  <ebb9@byu.net>
28673
28674         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28675         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28676         Reported by Stepan Kasal.
28677
28678 2008-06-18  Bruno Haible  <bruno@clisp.org>
28679
28680         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28681         Reported by Eric Blake.
28682
28683 2008-06-18  Eric Blake  <ebb9@byu.net>
28684
28685         Work around cygwin 1.5.25 strsignal bug.
28686         * tests/test-strsignal.c: Allow for const char *.
28687         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28688
28689 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28690
28691         * users.txt: Update URL to article and add author/date
28692         information.
28693
28694 2008-06-17  Bruno Haible  <bruno@clisp.org>
28695
28696         New macro gl_DISABLE_THREADS.
28697         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28698         if the user did not pass --enable-threads or --disable-threads option.
28699         (gl_DISABLE_THREADS): New macro.
28700         Reported by Eric Blake <ebb9@byu.net>.
28701
28702 2008-06-17  Bruno Haible  <bruno@clisp.org>
28703
28704         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28705         when the macro ignores it.
28706         Based on a patch by Eric Blake <ebb9@byu.net>.
28707
28708 2008-06-17  Bruno Haible  <bruno@clisp.org>
28709
28710         * modules/tls (License): Change to LGPLv2+.
28711         Reported by Eric Blake.
28712
28713 2008-06-17  Eric Blake  <ebb9@byu.net>
28714
28715         Simplify c-stack prerequisites.
28716         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28717         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28718         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28719         check.
28720         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28721         <sys/resource.h>.
28722
28723         Move c-stack test into testsuite.
28724         * modules/c-stack-tests: New file.
28725         * lib/c-stack.c [DEBUG]: Move test program...
28726         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28727         fail test if sigaltstack is lacking.
28728         * tests/test-c-stack.sh: New driver file.
28729
28730 2008-06-16  Eric Blake  <ebb9@byu.net>
28731
28732         Use raise module consistently.
28733         * modules/fatal-signal (Depends-on): Add raise.
28734         * modules/sigprocmask (Depends-on): Likewise.
28735         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28736         * lib/sigprocmask.c (sigprocmask): Likewise.
28737         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28738         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28739
28740         Fix compliance bug in sigpending.
28741         * lib/sigprocmask.c (sigpending): Return pending array via
28742         parameter, not return value.
28743
28744 2008-06-14  Eric Blake  <ebb9@byu.net>
28745
28746         Improve obstack-printf test code.
28747         * tests/test-obstack-printf.c (test_function): Fix comment, and
28748         simplify usage of obstack_* in macros.  Add a test for coverage.
28749         Reported by Bruno Haible.
28750
28751 2008-06-14  Bruno Haible  <bruno@clisp.org>
28752
28753         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28754         array size as a constant, not as a const variable.
28755         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28756         AC_USE_SYSTEM_EXTENSIONS.
28757         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28758         Test whether the obstack_printf function actually exists.
28759         * modules/obstack-printf (Depends-on): Add extensions.
28760         (Include): Remove obstack.h.
28761         * modules/obstack-printf-posix (Depends-on): Add extensions.
28762         (Include): Remove obstack.h.
28763
28764 2008-06-13  Eric Blake  <ebb9@byu.net>
28765
28766         Add obstack-printf and obstack-printf-posix modules.
28767         * modules/obstack-printf: New file.
28768         * modules/obstack-printf-posix: Likewise.
28769         * MODULES.html.sh (Misc): Mention them.
28770         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28771         Likewise.
28772         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28773         Likewise.
28774         * modules/stdio (Makefile.am): Accomodate new modules.
28775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28776         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28777         Declare.
28778         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28779         functions.
28780         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28781         (gl_REPLACE_OBSTACK_PRINTF): New macros
28782         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28783         * tests/test-obstack-printf.c: New file.
28784         * modules/obstack-printf-tests: Likewise.
28785         * modules/obstack-printf-posix-tests: Likewise.
28786
28787 2008-06-11  Bruno Haible  <bruno@clisp.org>
28788
28789         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28790         * lib/open.c: Include errno.h.
28791         (open): Fail when attempting to write to a file that has a trailing
28792         slash.
28793         * tests/test-open.c (main): Test against trailing slash bug.
28794         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28795
28796 2008-06-10  Bruno Haible  <bruno@clisp.org>
28797
28798         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28799         for $? to work inside the trap command, with various /bin/sh-s.
28800         * tests/test-vc-list-files-cvs.sh: Likewise.
28801
28802 2008-06-10  Bruno Haible  <bruno@clisp.org>
28803
28804         * lib/acl-internal.h: Don't include gettext.h here.
28805         * lib/set-mode-acl.c: Include gettext.h here.
28806         * lib/copy-acl.c: Likewise.
28807
28808 2008-06-10  Bruno Haible  <bruno@clisp.org>
28809
28810         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28811         * lib/wait-process.c (wait_subprocess): Likewise.
28812         * lib/execute.h (execute): Add termsigp argument.
28813         * lib/execute.c (execute): Likewise.
28814         * lib/csharpcomp.c (compile_csharp_using_pnet,
28815         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28816         * lib/csharpexec.c (execute_csharp_using_pnet,
28817         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28818         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28819         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28820         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28821         is_jikes_present): Update.
28822         * lib/javaexec.c (execute_java_class): Update.
28823         * lib/javaversion.c (execute_and_read_line): Update.
28824         * NEWS: Document the changes.
28825         Reported by Eric Blake.
28826
28827 2008-06-10  Eric Blake  <ebb9@byu.net>
28828
28829         Add missing include.
28830         * tests/test-strstr.c (includes): Add <signal.h>.
28831         * tests/test-strcasestr.c (includes): Likewise.
28832         * tests/test-memmem.c (includes): Likewise.
28833
28834 2008-06-10  Bruno Haible  <bruno@clisp.org>
28835
28836         * lib/wait-process.c (wait_subprocess): Add an assertion.
28837
28838 2008-06-10  Bruno Haible  <bruno@clisp.org>
28839
28840         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
28841
28842 2008-06-10  Bruno Haible  <bruno@clisp.org>
28843
28844         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
28845         using alarm().
28846         * tests/test-strcasestr.c (main): Likewise.
28847         * tests/test-strstr.c (main): Likewise.
28848
28849 2008-06-09  Bruno Haible  <bruno@clisp.org>
28850
28851         Work around the Solaris 10 ACE ACLs ABI change.
28852         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
28853         declare if ACL_NO_TRIVIAL is present.
28854         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
28855         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
28856         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
28857         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
28858         define if ACL_NO_TRIVIAL is present.
28859         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
28860         and use the current ABI.
28861         (file_has_acl): Use same #if condition as elsewhere.
28862         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
28863         in use, and use the current ABI.
28864         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
28865         Reported by Jim Meyering.
28866
28867 2008-06-09  Eric Blake  <ebb9@byu.net>
28868
28869         Work around environments that (stupidly) ignore SIGALRM.
28870         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
28871         before using alarm().
28872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28873         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28874         Reported by Ian Beckwith <ianb@erislabs.net>.
28875
28876         Produce autobuild blurb earlier in log.
28877         * modules/autobuild (configure.ac-early): Move AB_INIT here.
28878
28879 2008-06-09  Jim Meyering  <meyering@redhat.com>
28880         and Ondřej Vašík  <ovasik@redhat.com>
28881
28882         utimens.c: correct kernel bug work-around
28883         Ondřej Vašík found that the invalid return value of 280 indicates
28884         failure, not success, and the kernel bug we're trying to work
28885         around affects not just the utimensat call, but also the fallback
28886         futimens call.
28887         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
28888         not success.
28889         [HAVE_FUTIMENS]: Use the same work-around, here.
28890
28891 2008-06-09  Jim Meyering  <meyering@redhat.com>
28892
28893         add more guards around definition of ACE_-related code
28894         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
28895         ALLOW and ACE_OWNER are also defined.
28896
28897 2008-06-08  Bruno Haible  <bruno@clisp.org>
28898
28899         * lib/acl-internal.h: Add me as co-author.
28900         * lib/file-has-acl.c: Likewise.
28901         * lib/set-mode-acl.c: Likewise.
28902         * lib/copy-acl.c: Likewise.
28903
28904 2008-06-08  Bruno Haible  <bruno@clisp.org>
28905
28906         Add support for AIX ACLs.
28907         * lib/acl-internal.h (acl_nontrivial): New declaration.
28908         * lib/file-has-acl.c (acl_nontrivial): New function.
28909         (file_has_acl): Add implementation using AIX 4 ACL API.
28910         * lib/set-mode-acl.c (qset_acl): Likewise.
28911         * lib/copy-acl.c (qcopy_acl): Likewise.
28912
28913 2008-06-08  Bruno Haible  <bruno@clisp.org>
28914
28915         Add support for HP-UX ACLs.
28916         * lib/acl-internal.h (acl_nontrivial): New declaration.
28917         * lib/file-has-acl.c (acl_nontrivial): New function.
28918         (file_has_acl): Add implementation using HP-UX 11 ACL API.
28919         * lib/set-mode-acl.c (qset_acl): Likewise.
28920         * lib/copy-acl.c (qcopy_acl): Likewise.
28921
28922 2008-06-08  Bruno Haible  <bruno@clisp.org>
28923
28924         Add support for Cygwin ACLs.
28925         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
28926         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
28927         the chmod_or_fchmod call.
28928         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
28929
28930 2008-06-08  Bruno Haible  <bruno@clisp.org>
28931
28932         Fix bug with setuid modes in Solaris 10+ code.
28933         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
28934         succeeded, when the mode contains some special bits.
28935
28936 2008-06-08  Bruno Haible  <bruno@clisp.org>
28937
28938         Add support for Solaris 7..10 ACLs.
28939         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
28940         declarations.
28941         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
28942         functions.
28943         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
28944         * lib/set-mode-acl.c (qset_acl): Likewise.
28945         * lib/copy-acl.c (qcopy_acl): Likewise.
28946
28947 2008-06-08  Bruno Haible  <bruno@clisp.org>
28948
28949         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
28950         declaration.
28951         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
28952         (acl_access_nontrivial): Remove MacOS X case.
28953         (file_has_acl): Use acl_extended_nontrivial.
28954         * lib/copy-acl.c (qcopy_acl): Likewise.
28955
28956 2008-06-08  Bruno Haible  <bruno@clisp.org>
28957
28958         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
28959
28960 2008-06-08  Jim Meyering  <meyering@redhat.com>
28961
28962         * modules/acl (Maintainer): Add Bruno Haible.
28963
28964 2008-06-07  Bruno Haible  <bruno@clisp.org>
28965
28966         Improve support for Tru64 ACLs.
28967         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
28968         ACL on OSF/1.
28969
28970 2008-06-07  Bruno Haible  <bruno@clisp.org>
28971
28972         Add support for MacOS X ACLs.
28973         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
28974         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
28975         * lib/set-mode-acl.c (qset_acl): Likewise.
28976         * lib/copy-acl.c (qcopy_acl): Likewise.
28977
28978 2008-06-07  Bruno Haible  <bruno@clisp.org>
28979
28980         Fix memory leak introduced on 2008-05-22.
28981         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
28982         use.
28983
28984 2008-06-07  Bruno Haible  <bruno@clisp.org>
28985
28986         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
28987         to construct an empty ACL.
28988
28989 2008-06-07  Bruno Haible  <bruno@clisp.org>
28990
28991         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
28992         precisely.
28993         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
28994
28995 2008-06-07  Bruno Haible  <bruno@clisp.org>
28996
28997         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
28998         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
28999
29000 2008-06-07  Bruno Haible  <bruno@clisp.org>
29001
29002         * doc/posix-functions/_setjmp.texi: Explain the use of this function
29003         regardless of POSIX.
29004         * doc/posix-functions/_longjmp.texi: Likewise.
29005         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
29006         SystemV platform in this case.
29007
29008 2008-06-06  Eric Blake  <ebb9@byu.net>
29009
29010         Document abort() bugs.
29011         * doc/posix-functions/abort.texi (abort): Mention anomalies.
29012
29013         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
29014         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
29015         sigsetjmp.
29016         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
29017         siglongjmp, but only as a macro.
29018         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
29019         is obsolete.
29020         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
29021
29022         Tweak documentation to cover cygwin argz bugs.
29023         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
29024         argz bug fix; no code change needed since no cygwin releases
29025         occurred between the last fix and the bug being tested.
29026         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
29027         module and recently fixed cygwin bugs.
29028         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
29029         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
29030         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
29031         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
29032         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
29033         Likewise.
29034         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
29035         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
29036         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
29037         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
29038         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
29039         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
29040         Likewise.
29041
29042         Avoid gcc warning on cygwin.
29043         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
29044         !ACL_NO_TRIVIAL]: Avoid unused variable.
29045
29046 2008-06-05  Eric Blake  <ebb9@byu.net>
29047
29048         Be tolerant of UNKNOWN version in gnulib-tool test dir.
29049         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
29050         git-version-gen fails to come up with a version.
29051         Reported by Simon Josefsson.
29052
29053 2008-06-05  Jim Meyering  <meyering@redhat.com>
29054             Paul Eggert  <eggert@cs.ucla.edu>
29055
29056         utimens.c: work around a probable Linux kernel bug
29057         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
29058         appears to be a kernel bug that causes utimensat to return 280
29059         instead of 0, indicating success.
29060
29061 2008-06-04  Bruno Haible  <bruno@clisp.org>
29062
29063         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
29064         2008-06-01 commit.
29065
29066 2008-06-04  Bruno Haible  <bruno@clisp.org>
29067
29068         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
29069         * lib/file-has-acl.c (acl_access_nontrivial): New function.
29070         (file_has_acl): Use it. Save errno afterwards.
29071         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
29072
29073 2008-06-03  Bruno Haible  <bruno@clisp.org>
29074
29075         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
29076         draft code. Simplify #ifs.
29077         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
29078         Put Solaris code after POSIX-draft code. Fix comments regarding
29079         Solaris 10, HP-UX. Mention Cygwin.
29080         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
29081
29082 2008-06-03  Eric Blake  <ebb9@byu.net>
29083
29084         Provide fallback for older kernels.
29085         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
29086         Provide runtime fallback if kernel lacks support.
29087         Reported by Mike Frysinger.
29088
29089 2008-06-02  Bruno Haible  <bruno@clisp.org>
29090
29091         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
29092         it exists.
29093
29094 2008-06-02  Bruno Haible  <bruno@clisp.org>
29095
29096         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
29097         * lib/copy-acl.c (qcopy_acl): Update comment.
29098
29099 2008-06-02  Bruno Haible  <bruno@clisp.org>
29100
29101         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
29102         like ACL APIs.
29103
29104 2008-06-02  Bruno Haible  <bruno@clisp.org>
29105
29106         * tests/test-file-has-acl.sh: Use different code for Cygwin.
29107         * tests/test-set-mode-acl.sh: Likewise.
29108         * tests/test-copy-acl.sh: Likewise.
29109         * tests/test-copy-file.sh: Likewise.
29110
29111 2008-06-02  Bruno Haible  <bruno@clisp.org>
29112
29113         * tests/test-file-has-acl.sh: Remove unused code.
29114
29115 2008-06-01  Bruno Haible  <bruno@clisp.org>
29116
29117         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
29118         (copy_acl): Just a wrapper around qcopy_acl that emits the error
29119         messages.
29120         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
29121
29122 2008-06-01  Bruno Haible  <bruno@clisp.org>
29123
29124         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
29125         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
29126         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
29127         APIs.
29128         * modules/acl-tests (configure.ac): Remove tests now contained in
29129         m4/acl.m4.
29130
29131 2008-06-02  Jim Meyering  <meyering@redhat.com>
29132
29133         announce-gen: use a better key-server host name
29134         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
29135         it may be more consistently reliable.  Suggested by Werner Koch
29136         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
29137
29138 2008-06-01  Bruno Haible  <bruno@clisp.org>
29139
29140         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
29141         Reported by Voroskoi Andras <voroskoi@gmail.com>.
29142
29143 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
29144
29145         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
29146
29147 2008-06-01  Bruno Haible  <bruno@clisp.org>
29148
29149         New ACL tests.
29150         * tests/test-file-has-acl.sh: New file.
29151         * tests/test-file-has-acl.c: New file.
29152         * tests/test-set-mode-acl.sh: New file.
29153         * tests/test-set-mode-acl.c: New file.
29154         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
29155         * tests/test-copy-acl.c: New file.
29156         * modules/acl-tests: New file, based on modules/copy-file-tests.
29157         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
29158         (Depends-on): Add acl-tests.
29159         (configure.ac): Remove checks.
29160         (Makefile.am): Don't create test-sameacls program here any more.
29161
29162 2008-06-01  Bruno Haible  <bruno@clisp.org>
29163
29164         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
29165         * tests/test-sameacls.c: Include progname.h.
29166         (main): Invoke set_program_name. Portability fixes for MacOS X,
29167         Solaris, HP-UX.
29168
29169 2008-06-01  Bruno Haible  <bruno@clisp.org>
29170
29171         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
29172         function.
29173         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
29174
29175 2008-06-01  Bruno Haible  <bruno@clisp.org>
29176
29177         * modules/rpmatch (Depends-on): Add strdup.
29178
29179 2008-06-01  Bruno Haible  <bruno@clisp.org>
29180
29181         * lib/pipe.c: Include unistd-safer.h.
29182         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
29183         * modules/pipe (Depends-on): Add unistd-safer.
29184
29185 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29186
29187         * modules/autobuild (configure.ac): Call AB_INIT.
29188
29189 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29190
29191         * tests/test-getaddrinfo.c: Don't print debug messages by default.
29192         Suggested by Bruno Haible <bruno@clisp.org>.
29193
29194 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29195
29196         * tests/test-base64.c: Cast size_t to unsigned long when invoking
29197         printf.  Use %lu instead of %d.  Reported by Bruno Haible
29198         <bruno@clisp.org>.
29199
29200 2008-05-29  Eric Blake  <ebb9@byu.net>
29201
29202         Prefer new POSIX 200x interfaces over futimesat.
29203         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
29204         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
29205         when available.
29206         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
29207
29208 2008-05-28  Bruno Haible  <bruno@clisp.org>
29209
29210         * modules/stpcpy (License): Change to LGPLv2+.
29211         Requested by David Lutterkort <dlutter@redhat.com>.
29212
29213 2008-05-27  Bruno Haible  <bruno@clisp.org>
29214
29215         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
29216         current mingw.
29217         Reported by Jose E. Marchesi <jemarch@gnu.org>.
29218
29219 2008-05-27  Bruno Haible  <bruno@clisp.org>
29220
29221         * modules/iconv_open (Link): New section, from module 'iconv'.
29222         * modules/striconv (Link): Likewise.
29223         * modules/striconveh (Link): Likewise.
29224         * modules/xstriconv (Link): Likewise.
29225         * modules/unicodeio (Link): Likewise.
29226         * modules/propername (Link): Likewise.
29227         Reported by Jim Meyering.
29228
29229 2008-05-26  Jim Meyering  <meyering@redhat.com>
29230
29231         sha256: do not artificially restrict buffer length to be < 2^32
29232         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
29233         uint32_t to size_t.
29234         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
29235         to match.
29236
29237         avoid unaligned access errors, e.g., on sparc
29238         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
29239         direct access through a possibly-unaligned uint64* pointer.
29240         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
29241         direct access through a possibly-unaligned uint32* pointer.
29242         Prompted by this patch from Tom "spot" Callaway:
29243         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
29244
29245         sha512.c: fix typo in comment
29246         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
29247
29248 2008-05-25  Bruno Haible  <bruno@clisp.org>
29249
29250         * lib/set-mode-acl.c: Renamed from lib/acl.c.
29251         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
29252         (Makefile.am): Update lib_SOURCES.
29253
29254 2008-05-25  Bruno Haible  <bruno@clisp.org>
29255
29256         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
29257
29258 2008-05-25  Jim Meyering  <meyering@redhat.com>
29259
29260         useless-if-before-free: freed expr may have white-space differences
29261         * build-aux/useless-if-before-free: Recognize cases in which the
29262         freed expression differs from the tested one in embedded white
29263         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
29264         $1 was used, so we can't make any regexp shy.  Improved tests now
29265         detect this.
29266
29267         useless-if-before-free: accept white space in the expression.
29268         * build-aux/useless-if-before-free: For now, any white space
29269         in the expression must be identical in the free argument.
29270
29271         useless-if-before-free: efficiency tweak
29272         * build-aux/useless-if-before-free: Make the expression-matching
29273         regexp "shy".
29274         Make the *outer* regexp shy, not the expr-matching one.
29275
29276         update code-in-comment to accept cast of free arg
29277         * build-aux/useless-if-before-free: Update regexp.
29278
29279 2008-05-25  Bruno Haible  <bruno@clisp.org>
29280
29281         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
29282         * modules/copy-file-tests (Files, Makefile.am): Update.
29283         * tests/test-copy-file.c (func_test_copy): Update.
29284
29285 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
29286
29287         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
29288
29289 2008-05-23  Bruno Haible  <bruno@clisp.org>
29290
29291         Improve support for ACLs on OSF/1.
29292         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
29293         Remove fallback for unknown flavors of ACLs.
29294
29295 2008-05-22  Bruno Haible  <bruno@clisp.org>
29296
29297         Add support for ACLs on OSF/1.
29298         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
29299         replacements.
29300         (acl_free_text): New macro fallback.
29301         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
29302         acl_free.
29303         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
29304         acl_free_text function. Require AC_C_INLINE.
29305
29306 2008-05-22  Bruno Haible  <bruno@clisp.org>
29307
29308         Make copy_acl work on MacOS X 10.5.
29309         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
29310         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
29311         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
29312         If MODE_INSIDE_ACL, don't assume that every system has the same text
29313         representation for ACLs as FreeBSD.
29314         * lib/copy-acl.c (copy_acl): Add support for platforms with
29315         !MODE_INSIDE_ACL.
29316         * lib/file-has-acl.c (file_has_acl): Likewise.
29317         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
29318         FreeBSD, MacOS X, or IRIX, respectively.
29319
29320 2008-05-22  Bruno Haible  <bruno@clisp.org>
29321
29322         * lib/acl.h: Don't include <sys/acl.h>.
29323         (GETACLCNT): Move fallback to lib/acl-internal.h.
29324         * lib/acl-internal.h: Include <sys/acl.h> here.
29325         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
29326
29327 2008-05-22  Bruno Haible  <bruno@clisp.org>
29328
29329         Split off copy_acl function to separate file.
29330         * lib/copy-acl.c: New file, extracted from lib/acl.c.
29331         * lib/acl.c (copy_acl): Moved function to separate file.
29332         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
29333         * modules/acl (Files): Add lib/copy-acl.c.
29334         (Makefiles.am): Augment lib_SOURCES.
29335
29336 2008-05-22  Bruno Haible  <bruno@clisp.org>
29337
29338         * modules/copy-file-tests: New file.
29339         * tests/test-copy-file.sh: New file.
29340         * tests/test-copy-file.c: New file.
29341         * tests/test-copy-file-sameacls.c: New file.
29342
29343 2008-05-22  Eric Blake  <ebb9@byu.net>
29344
29345         Avoid gcc warning.
29346         * tests/test-memcmp.c (main): Pass NULL indirectly.
29347
29348 2008-05-21  Bruno Haible  <bruno@clisp.org>
29349
29350         Add reference doc about ACLs.
29351         * doc/acl-resources.txt: New file.
29352         * doc/acl-cygwin.txt: New file.
29353
29354 2008-05-21  Bruno Haible  <bruno@clisp.org>
29355
29356         Avoid one more warning from gcc.
29357         * lib/vasnprintf.c (IF_LINT): Update comments.
29358         (VASNPRINTF): Use it also for the 'prefix' array initializer.
29359
29360 2008-05-21  Jim Meyering  <meyering@redhat.com>
29361
29362         avoid a warning from gcc
29363         * lib/vasnprintf.c (IF_LINT): Define.
29364         (scale10_round_decimal_long_double):
29365         Use it to avoid a "may be used uninitialized" warning.
29366         (scale10_round_decimal_double): Likewise.
29367
29368 2008-05-21  Simon Josefsson  <simon@josefsson.org>
29369
29370         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
29371         declared.
29372
29373 2008-05-20  Bruno Haible  <bruno@clisp.org>
29374
29375         * tests/test-memcmp.c (main): Test also the sign of the result. Test
29376         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
29377
29378 2008-05-20  Simon Josefsson  <simon@josefsson.org>
29379
29380         * modules/memcmp-tests: New file.
29381         * tests/test-memcmp.c: New file.
29382
29383 2008-05-19  Bruno Haible  <bruno@clisp.org>
29384
29385         * modules/propername (Notice, configure.ac): Put quoted "..." into
29386         --keyword option.
29387         * lib/propername.h: Update comments accordingly.
29388         Reported by Eric Blake.
29389
29390 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
29391
29392         * modules/getpass-gnu (Depends-on): Add fseeko.
29393
29394 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29395
29396         * modules/base64-tests: New file.
29397
29398 2008-05-19  Bo Borgerson <gigabo@gmail.com>
29399
29400         * lib/base64.c (base64_decode_ctx): If a decode context structure
29401         was passed in use it to ignore newlines.  If a context structure
29402         was _not_ passed in, continue to treat newlines as garbage (this
29403         is the historical behavior).  Formerly base64_decode.
29404         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29405         takes a decode context structure.
29406         * lib/base64.h (base64_decode): Macro for four-argument calls.
29407         (base64_decode_alloc): Likewise.
29408         * lib/base64.c (base64_decode_ctx): If a decode context structure
29409         was passed in use it to ignore newlines.  If a context structure
29410         was _not_ passed in, continue to treat newlines as garbage (this
29411         is the historical behavior).  Formerly base64_decode.
29412         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29413         takes a decode context structure.
29414         * lib/base64.h (base64_decode): Macro for four-argument calls.
29415         (base64_decode_alloc): Likewise.
29416
29417 2008-05-19  Jim Meyering  <meyering@redhat.com>
29418
29419         avoid a warning from gcc
29420         * lib/trim.c (IF_LINT): Define.
29421         (trim2): Use it to avoid a "may be used uninitialized" warning.
29422
29423         Fix doc typo.
29424         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
29425
29426 2008-05-19  Bruno Haible  <bruno@clisp.org>
29427
29428         * doc/glibc-functions/getpass.texi: Document limits of other
29429         implementations.
29430
29431 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29432             Bruno Haible <bruno@clisp.org>
29433
29434         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
29435
29436 2008-05-18  Bruno Haible  <bruno@clisp.org>
29437
29438         * modules/propername: New file, from GNU gettext.
29439         * lib/propername.h: New file, from GNU gettext.
29440         * lib/propername.c: New file, from GNU gettext.
29441         * MODULES.html.sh (Internationalization functions): Add propername.
29442
29443 2008-05-16  Jim Meyering  <meyering@redhat.com>
29444             Bruno Haible  <bruno@clisp.org>
29445
29446         Avoid some warnings from "gcc -Wshadow".
29447         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
29448
29449 2008-05-15  Eric Blake  <ebb9@byu.net>
29450
29451         Extend previous patch to cygwin 1.7.0.
29452         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
29453         fast implementation in cygwin >= 1.7.0.
29454         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29456
29457 2008-05-15  Bruno Haible  <bruno@clisp.org>
29458
29459         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
29460         implementation in glibc >= 2.9.
29461         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29462         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29463
29464 2008-05-15  Bruno Haible  <bruno@clisp.org>
29465
29466         * MODULES.html.sh (Internationalization functions): Remove linebreak.
29467         (Unicode string functions): Add unilbrk/*.
29468         Reported by Karl Berry.
29469
29470 2008-05-15  Eric Blake  <ebb9@byu.net>
29471
29472         Fix violation of <stdbool.h> replacement in regex.
29473         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
29474         * lib/regexec.c (re_search_internal): Likewise.
29475         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
29476
29477 2008-05-15  Jim Meyering  <meyering@redhat.com>
29478
29479         avoid distracting test output when git or cvs is not found
29480         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
29481         * tests/test-vc-list-files-git.sh: Likewise.
29482
29483 2008-05-15  Eric Blake  <ebb9@byu.net>
29484
29485         Glibc finally accepted the memmem speedup code, bugzilla #5514.
29486         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
29487         glibc version.
29488         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29489         * doc/posix-functions/strstr.texi (strstr): Likewise.
29490         * lib/str-two-way.h (MAX): Sychronize with glibc.
29491
29492 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
29493
29494         * lib/regcomp.c (optimize_utf8): Add a note on why we test
29495         opr.ctx_type.
29496         (calc_first): Initialize constraint field.
29497         (duplicate_node_closure): Use it instead of special casing ANCHORS.
29498         Fix grammar.
29499         (duplicate_node): Merge constraint field for all node types.
29500         (calc_eclosure_iter): Look at constraint field for all node types.
29501         * lib/regex_internal.c (create_cd_newstate): Don't look at
29502         opr.ctx_type.
29503
29504 2008-05-14  Bruno Haible  <bruno@clisp.org>
29505
29506         Help GCC to do better code generation.
29507         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
29508         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29509         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
29510         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
29511         Declare with attribute 'malloc' if supported.
29512
29513 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
29514
29515         use "echo STR|wc -c" rather than unportable "expr length STR"
29516         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
29517         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
29518
29519 2008-05-14  Jim Meyering  <meyering@redhat.com>
29520
29521         use dd ibs=$n count=1 ... rather than less-portable head -c$n
29522         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
29523         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
29524         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
29525         via Collin Lasse.
29526
29527 2008-05-14  Eric Blake  <ebb9@byu.net>
29528
29529         Avoid quadratic growth in gl_LIBSOURCES.
29530         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
29531         Suggested by Bruno Haible.
29532
29533         Test xmemdup0.
29534         * modules/xmemdup0-tests: New file.
29535         * tests/test-xmemdup0.c: Likewise.
29536
29537 2008-05-13  Eric Blake  <ebb9@byu.net>
29538
29539         Split xmemdup0 into its own module.
29540         * modules/xmemdup0: New file.
29541         * lib/xmemdup0.h: Likewise.
29542         * lib/xmemdup0.c: Likewise.
29543         * MODULES.html.sh (Memory management functions): Add xmemdup0.
29544         * lib/xalloc.h (xmemdup0): Remove.
29545         * lib/xmalloc.c (xmemdup0): Likewise.
29546
29547 2008-05-13  Eric Blake  <ebb9@byu.net>
29548             Bruno Haible  <bruno@clisp.org>
29549
29550         Reduce number of forks required during autoconf.
29551         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
29552         and gl_LIBSOURCES_DIR.
29553         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
29554         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
29555         m4_syscmd per file.
29556         <m4_foreach_w>: Move...
29557         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
29558
29559 2008-05-13  Eric Blake  <ebb9@byu.net>
29560
29561         * gnulib-tool: Fix various comment typos.
29562
29563 2008-05-12  Bruno Haible  <bruno@clisp.org>
29564
29565         Tailor the linebreaking algorithm.
29566         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
29567
29568 2008-05-12  Bruno Haible  <bruno@clisp.org>
29569
29570         Update to Unicode 5.0.0.
29571         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29572         LBP_JV, LBP_JT. Redistribute values.
29573         (unilbrk_table): Change size.
29574         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
29575         Unicode TR#14 rev. 22.
29576         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29577         LBP_JV, LBP_JT. Redistribute values.
29578         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
29579         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
29580         Update.
29581         * lib/unilbrk/lbrkprop1.h: Regenerated.
29582         * lib/unilbrk/lbrkprop2.h: Regenerated.
29583         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
29584         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29585         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29586         Likewise.
29587         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29588         Likewise.
29589         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29590         result.
29591         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29592         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29593         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29594         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29595         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29596         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29597
29598 2008-05-11  Bruno Haible  <bruno@clisp.org>
29599
29600         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29601
29602 2008-05-11  Bruno Haible  <bruno@clisp.org>
29603
29604         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29605         * modules/unilbrk/gen-lbrk: New file.
29606
29607 2008-05-11  Bruno Haible  <bruno@clisp.org>
29608
29609         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29610         * m4/sha512.m4 (gl_SHA512): Likewise.
29611
29612 2008-05-11  Jim Meyering  <meyering@redhat.com>
29613
29614         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29615         * modules/crypto/sha256: New file.
29616         * modules/crypto/sha512: Likewise.
29617         * lib/sha256.c: Likewise.
29618         * lib/sha256.h: Likewise.
29619         * lib/sha512.c: Likewise.
29620         * lib/sha512.h: Likewise.
29621         * lib/u64.h: Likewise.
29622         * m4/sha256.m4: Likewise.
29623         * m4/sha512.m4: Likewise.
29624         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29625
29626 2008-05-10  Bruno Haible  <bruno@clisp.org>
29627
29628         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29629         (Input/Output <stdio.h>): Add xprintf.
29630         (Signal handling <signal.h>): Add strsignal.
29631         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29632         (Core language properties): Add func.
29633         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29634         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29635         strings.
29636         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29637         (Input/output): New section.
29638         (File system functions): Add openat-die, stat-macros.
29639         (Networking functions): Add sockets.
29640         (Unicode string functions): Add unictype/*.
29641         (Support for building libraries and executables): Add gperf.
29642         (Support for building documentation): Add agpl-3.0.
29643         (Misc): Add nocrash.
29644
29645 2008-05-10  Bruno Haible  <bruno@clisp.org>
29646
29647         * modules/unictype/gen-ctype: New file.
29648
29649 2008-05-10  Jim Meyering  <meyering@redhat.com>
29650
29651         Make chdir-safer.c more efficient on a system with no symlinks.
29652         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29653         also if ELOOP is zero.  Suggested by Bruno Haible.
29654
29655         Make chdir-safer.c slightly safer.
29656         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29657         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29658
29659         Avoid compile failure on systems without ELOOP (like mingw).
29660         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29661         Reported by Bruno Haible.
29662
29663 2008-05-10  Bruno Haible  <bruno@clisp.org>
29664
29665         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29666         (is_utf8_encoding): Use a case-insensitive comparison.
29667         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29668         streq.
29669
29670 2008-05-10  Bruno Haible  <bruno@clisp.org>
29671
29672         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29673         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29674         * lib/unilbrk/ulc-common.h (iconv_string_length,
29675         iconv_string_keeping_offsets): Remove declarations.
29676         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29677         Don't include <iconv.h>, streq.h, xsize.h.
29678         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29679         conversion.
29680         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29681         <iconv.h>, streq.h, xsize.h.
29682         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29683         conversion.
29684         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29685         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29686         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29687         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29688
29689 2008-05-10  Bruno Haible  <bruno@clisp.org>
29690
29691         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29692         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29693
29694         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29695         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29696
29697         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29698         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29699
29700         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29701         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29702
29703         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29704         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29705
29706         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29707         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29708
29709         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29710         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29711
29712         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29713         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29714
29715 2008-05-10  Bruno Haible  <bruno@clisp.org>
29716
29717         Split up 'linebreak' module.
29718         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29719         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29720         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29721         modifications.
29722         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29723         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29724         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29725         lib/linebreak.c.
29726         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29727         lib/linebreak.c.
29728         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29729         lib/linebreak.c.
29730         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29731         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29732         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29733         lib/linebreak.c.
29734         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29735         lib/linebreak.c.
29736         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29737         lib/linebreak.c.
29738         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29739         lib/linebreak.c.
29740         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29741         lib/linebreak.c.
29742         * modules/unilbrk/base: New file.
29743         * modules/unilbrk/tables: New file.
29744         * modules/unilbrk/u8-possible-linebreaks: New file.
29745         * modules/unilbrk/u16-possible-linebreaks: New file.
29746         * modules/unilbrk/u32-possible-linebreaks: New file.
29747         * modules/unilbrk/ulc-common: New file.
29748         * modules/unilbrk/ulc-possible-linebreaks: New file.
29749         * modules/unilbrk/u8-width-linebreaks: New file.
29750         * modules/unilbrk/u16-width-linebreaks: New file.
29751         * modules/unilbrk/u32-width-linebreaks: New file.
29752         * modules/unilbrk/ulc-width-linebreaks: New file.
29753         * lib/linebreak.h: Remove file.
29754         * lib/linebreak.c: Remove file.
29755         * m4/linebreak.m4: Remove file.
29756         * modules/linebreak: Remove file.
29757         * NEWS: Mention the changes.
29758
29759 2008-05-09  Eric Blake  <ebb9@byu.net>
29760
29761         Add xmemdup0.
29762         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29763         implementation.
29764         * lib/xmalloc.c (xmemdup0): New C implementation.
29765
29766 2008-05-08  Bruno Haible  <bruno@clisp.org>
29767
29768         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29769
29770 2008-05-07  Eric Blake  <ebb9@byu.net>
29771
29772         Support cross-compilation of <wctype.h>.
29773         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29774         AC_CACHE_CHECK.
29775
29776 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29777
29778         * build-aux/vc-list-files: Add support for bzr.
29779
29780 2008-05-03  Jim Meyering  <meyering@redhat.com>
29781
29782         avoid failed assertion with tight malloc
29783         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29784
29785 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29786
29787         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29788         are needed from arpa/inet.h.
29789         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29790         Reported by Bruno Haible.
29791
29792 2008-05-02  Jim Meyering  <meyering@redhat.com>
29793
29794         avoid compilation error on FreeBSD 6
29795         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29796
29797 2008-05-01  Jim Meyering  <meyering@redhat.com>
29798
29799         useless-if-before-free: correct --help's exit status description
29800         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29801         for one or more matches, etc.  Reported by Bruno Haible.
29802
29803         vc-list-files: make the stand-alone gnulib test work
29804         * modules/vc-list-files-tests (configure.ac):
29805         Define and AC_SUBST abs_aux_dir.
29806         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29807         $(abs_top_srcdir) to each script and having each of them
29808         duplicate the work of setting PATH, set PATH here, using
29809         the new variable, abs_aux_dir instead.
29810         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29811         * tests/test-vc-list-files-git.sh: Likewise.
29812         Reported by Bruno Haible.
29813
29814 2008-05-01  Bruno Haible  <bruno@clisp.org>
29815
29816         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29817         reallocation. Rename 'done' to 'found_delimiter'.
29818
29819 2008-05-01  Jim Meyering  <meyering@redhat.com>
29820
29821         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29822         * build-aux/vc-list-files: Use `...`, not $(...).
29823
29824 2008-04-30  Jim Meyering  <meyering@redhat.com>
29825
29826         add tests for vc-list-files
29827         * modules/vc-list-files-tests: New module.
29828         * tests/test-vc-list-files-cvs.sh: New file.
29829         * tests/test-vc-list-files-git.sh: New file.
29830
29831         avoid a warning from gcc
29832         * lib/getndelim2.c (IF_LINT): Define.
29833         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
29834
29835         vc-list-files: work properly with build-aux/cvsu, too
29836         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
29837         to all cvs-based clauses.
29838
29839         vc-list-files: work properly in the CVS+awk case, too
29840         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
29841
29842         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
29843         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
29844         take more than one file argument, so .  Add quotes, just in case $dir
29845         ever contains a shell meta-character.  Prompted by Soren Hansen in
29846         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
29847
29848 2008-04-29  Eric Blake  <ebb9@byu.net>
29849
29850         Optimize getndelim2 to use block operations when possible.
29851         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
29852         freadseek, and memchr2.
29853         * lib/getndelim2.c (getndelim2): Use them for block reads.
29854
29855 2008-04-29  Bruno Haible  <bruno@clisp.org>
29856
29857         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
29858         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29859         * modules/inet_ntop (Depends-on): Add extensions.
29860         * modules/inet_pton (Depends-on): Likewise.
29861         Reported by Simon Josefsson.
29862
29863 2008-04-29  Jim Meyering  <meyering@redhat.com>
29864
29865         When the is more than one match in a block, match all of them.
29866         * build-aux/useless-if-before-free: Iterate through each block
29867         until there are no more matches.
29868
29869         Fix broken useless-if-before-free script.
29870         * build-aux/useless-if-before-free: Fix typo: missing "?" after
29871         the expression to match cast of argument to free-like function.
29872
29873 2008-04-29  Eric Blake  <ebb9@byu.net>
29874
29875         Use new header.
29876         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
29877
29878 2008-04-29  Jim Meyering  <meyering@redhat.com>
29879
29880         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
29881         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
29882         by gnulib to exist and to declare e.g., inet_ntop.
29883         Don't include "inet_ntop.h", now removed.
29884
29885         * m4/arpa_inet_h.m4: Remove trailing blanks.
29886
29887 2008-04-29  Eric Blake  <ebb9@byu.net>
29888
29889         Silence valgrind on safe reads beyond potential array bounds.
29890         * lib/rawmemchr.valgrind: New file.
29891         * lib/strchrnul.valgrind: Likewise.
29892         * modules/rawmemchr (Files): Distribute new file.
29893         * modules/strchrnul (Files): Likewise.
29894         Suggested by Bruno Haible.
29895
29896 2008-04-29  Bruno Haible  <bruno@clisp.org>
29897
29898         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
29899         (inet_ntop, inet_pton): Change portability warning's wording.
29900         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
29901         Invoke gl_CHECK_NEXT_HEADERS.
29902         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
29903         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
29904         set ARPA_INET_H.
29905         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29906         * modules/arpa_inet (Description): No longer only for systems that
29907         lack it.
29908         (Depends-on): Add include_next.
29909         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
29910         HAVE_ARPA_INET_H.
29911
29912 2008-04-29  Jim Meyering  <meyering@redhat.com>
29913
29914         * modules/mkdir (License): Re-license as LGPLv2+.
29915
29916 2008-04-29  Bruno Haible  <bruno@clisp.org>
29917
29918         * modules/rawmemchr (Maintainer): Set to Eric.
29919         * modules/strchrnul (Maintainer): Likewise.
29920
29921 2008-04-29  Simon Josefsson  <simon@josefsson.org>
29922
29923         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
29924         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
29925
29926         * modules/arpa_inet (arpa/inet.h): Use them.
29927
29928 2008-04-28  Eric Blake  <ebb9@byu.net>
29929
29930         Test getndelim2.
29931         * modules/getndelim2-tests: New file.
29932         * tests/test-getndelim2.c: Likewise.
29933         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
29934         stream.
29935         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
29936
29937         * MODULES.html.sh: Document new module.
29938
29939 2008-04-20  Bruno Haible  <bruno@clisp.org>
29940
29941         * lib/c-stack.c (die): Use raise.
29942         * modules/c-stack (Depends-on): Add raise.
29943
29944 2008-04-28  Bruno Haible  <bruno@clisp.org>
29945
29946         Expect rpmatch to be declared.
29947         * lib/yesno.c (rpmatch): Remove declaration.
29948
29949         Declare rpmatch.
29950         * lib/stdlib.in.h (rpmatch): New declaration.
29951         * lib/rpmatch.c: Include <stdlib.h> first.
29952         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
29953         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
29954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
29955         HAVE_RPMATCH.
29956         * modules/rpmatch (Depends-on): Add stdlib, extensions.
29957         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29958         (Include): Set to <stdlib.h>.
29959         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
29960         HAVE_RPMATCH.
29961         * NEWS: Document the change.
29962
29963 2008-04-28  Bruno Haible  <bruno@clisp.org>
29964
29965         Change rpmatch to use nl_langinfo when appropriate.
29966         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
29967         (N_): New macro.
29968         (localized_pattern): New function/macro.
29969         (try): Remove match, nomatch arguments. Copy the pattern into safe
29970         memory before caching it.
29971         (rpmatch): Use localized_pattern. Add translator comments.
29972         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
29973         Suggested by Eric Blake.
29974         * modules/rpmatch (Depends-on): Add stdbool.
29975
29976 2008-04-28  Eric Blake  <ebb9@byu.net>
29977
29978         Add rawmemchr module, matching glibc.
29979         * modules/string (Makefile.am): New indicator.
29980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
29981         * lib/string.in.h (rawmemchr): Declare when appropriate.
29982         * modules/rawmemchr: New file.
29983         * m4/rawmemchr.m4: Likewise.
29984         * lib/rawmemchr.c: Likewise.
29985         * modules/rawmemchr-tests: Likewise.
29986         * tests/test-rawmemchr.c: Likewise.
29987         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
29988         module.
29989         * modules/strchrnul (Depends-on): Add rawmemchr.
29990         * lib/strchrnul.c (strchrnul): Optimize a corner case.
29991
29992         Whitespace cleanup.
29993         * tests/test-strchrnul.c: Reindent.
29994         * lib/strchrnul.c: Likewise.
29995
29996         Optimize and test strchrnul.
29997         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
29998         * modules/strchrnul-tests: New file.
29999         * tests/test-strchrnul.c: Likewise.
30000
30001         Remove intprops dependency.
30002         * modules/memchr (Depends-on): Remove intprops.
30003         * modules/memrchr (Depends-on): Likewise.
30004         * modules/memchr2 (Depends-on): Likewise.
30005         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
30006         * lib/memrchr.c (__memrchr): Likewise.
30007         * lib/memrchr2.c (memchr2): Likewise.
30008         Reported by Simon Josefsson.
30009
30010 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30011
30012         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
30013         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30014
30015 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30016
30017         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
30018
30019         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
30020
30021         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
30022
30023         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
30024         declarations.
30025         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
30026
30027         * m4/inet_pton.m4: Don't check for header files.
30028
30029         * m4/inet_ntop.m4: Don't check for header files.
30030
30031 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30032
30033         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
30034         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
30035         trigger for cygwin).
30036         Reported by Bruno Haible  <bruno@clisp.org>.
30037
30038 2008-04-28  Bruno Haible  <bruno@clisp.org>
30039
30040         * doc/posix-functions/strdup.texi: Mention mingw problem.
30041
30042 2008-04-27  Bruno Haible  <bruno@clisp.org>
30043
30044         * modules/stat-time-tests (Depends-on): Add sleep.
30045         * tests/test-stat-time.c (force_unlink): New function.
30046         (cleanup): Use it.
30047         (test_mtime): Remove the ctime related tests.
30048         (test_ctime): New function, containing the ctime related tests.
30049         (main): Call test_ctime, except on native Windows platforms.
30050
30051 2008-04-27  Bruno Haible  <bruno@clisp.org>
30052
30053         * lib/rpmatch.c (rpmatch): Add some comments.
30054         Reported by James Youngman <jay@gnu.org>.
30055
30056 2008-04-27  Bruno Haible  <bruno@clisp.org>
30057
30058         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
30059         quiet NaNs.
30060
30061 2008-04-27  Bruno Haible  <bruno@clisp.org>
30062
30063         Make test-yesno.sh work on mingw.
30064         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
30065         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
30066         (main): Set stdin to binary mode.
30067         * modules/yesno-tests (Depends-on): Add binary-io.
30068
30069 2008-04-27  Bruno Haible  <bruno@clisp.org>
30070
30071         Fix 'isfinite' on x86, x86_64, ia64 platforms.
30072         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
30073         argument that lie outside the IEEE 854 domain.
30074         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
30075         (gl_ISFINITE): Use it.
30076         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
30077
30078 2008-04-27  Bruno Haible  <bruno@clisp.org>
30079
30080         Allow local renaming in config.h.
30081         * lib/memrchr.c (memrchr): Don't undefine outside libc.
30082
30083 2008-04-27  Bruno Haible  <bruno@clisp.org>
30084
30085         * lib/memchr.c (__memchr): Change type of 'i'.
30086         * lib/memchr2.c (memchr2): Likewise.
30087
30088 2008-04-26  Eric Blake  <ebb9@byu.net>
30089         and Bruno Haible  <bruno@clisp.org>
30090
30091         Optimize and test memrchr.
30092         * modules/memrchr (Depends-on): Add intprops.
30093         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
30094         * modules/memrchr-tests: New file.
30095         * tests/test-memrchr.c: New file.
30096
30097 2008-04-26  Bruno Haible  <bruno@clisp.org>
30098
30099         Add tentative support for DragonFly BSD.
30100         * lib/stdio-impl.h: Add macros for DragonFly BSD.
30101         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
30102         fp.
30103         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30104         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
30105         * lib/fpurge.c (fpurge): Likewise.
30106         * lib/freadable.c (freaadable): Likewise.
30107         * lib/freadahead.c (freadahead): Likewise.
30108         * lib/freading.c (freading): Likewise.
30109         * lib/freadptr.c (freadptr): Likewise.
30110         * lib/freadseek.c (freadptrinc): Likewise.
30111         * lib/fseeko.c (fseeko): Likewise.
30112         * lib/fseterr.c (fseterr): Likewise.
30113         * lib/fwritable.c (fwritable): Likewise.
30114         * lib/fwriting.c (fwriting): Likewise.
30115
30116 2008-04-26  Bruno Haible  <bruno@clisp.org>
30117
30118         * lib/stdio-impl.h: New file.
30119         * lib/fbufmode.c: Include stdio-impl.h.
30120         (fbufmode): Use fp_, remove redundant #defines.
30121         * lib/fflush.c: Include stdio-impl.h.
30122         (clear_ungetc_buffer): Remove redundant #defines.
30123         * lib/fpurge.c: Include stdio-impl.h.
30124         (fpurge): Remove redundant #defines.
30125         * lib/freadable.c: Include stdio-impl.h.
30126         (freadable): Remove redundant #defines.
30127         * lib/freadahead.c: Include stdio-impl.h.
30128         (freadahead): Remove redundant #defines.
30129         * lib/freading.c: Include stdio-impl.h.
30130         (freading): Remove redundant #defines.
30131         * lib/freadptr.c: Include stdio-impl.h.
30132         (freadptr): Remove redundant #defines.
30133         * lib/freadseek.c: Include stdio-impl.h.
30134         (freadptrinc): Remove redundant #defines.
30135         * lib/fseeko.c: Include stdio-impl.h.
30136         (rpl_fseeko): Remove redundant #defines.
30137         * lib/fseterr.c: Include stdio-impl.h.
30138         (fseterr): Remove redundant #defines.
30139         * lib/fwritable.c: Include stdio-impl.h.
30140         (fwritable: Remove redundant #defines.
30141         * lib/fwriting.c: Include stdio-impl.h.
30142         (fwriting): Remove redundant #defines.
30143         * modules/fbufmode (Files): Add lib/stdio-impl.h.
30144         * modules/fflush (Files): Likewise.
30145         * modules/fpurge (Files): Likewise.
30146         * modules/freadable (Files): Likewise.
30147         * modules/freadahead (Files): Likewise.
30148         * modules/freading (Files): Likewise.
30149         * modules/freadptr (Files): Likewise.
30150         * modules/freadseek (Files): Likewise.
30151         * modules/fseeko (Files): Likewise.
30152         * modules/fseterr (Files): Likewise.
30153         * modules/fwritable (Files): Likewise.
30154         * modules/fwriting (Files): Likewise.
30155
30156 2008-04-26  Bruno Haible  <bruno@clisp.org>
30157
30158         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30159         restore_seek_optimization, update_fpos_cache): New functions, extracted
30160         from rpl_fflush.
30161         (rpl_fflush): Use them.
30162         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
30163         (gl_REPLACE_FFLUSH): Use it.
30164
30165 2008-04-26  Bruno Haible  <bruno@clisp.org>
30166
30167         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
30168         on Solaris.
30169         * tests/test-xstrtoimax.sh: Likewise.
30170         * tests/test-xstrtoumax.sh: Likewise.
30171         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30172
30173 2008-04-26  Bruno Haible  <bruno@clisp.org>
30174
30175         * modules/memchr-tests: New file.
30176         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
30177
30178 2008-04-26  Eric Blake  <ebb9@byu.net>
30179             Bruno Haible  <bruno@clisp.org>
30180
30181         * lib/memchr.c: Include intprops.h.
30182         (__memchr): Optimize parallel detection of matching bytes. Rename local
30183         variables. Add explanatory comments.
30184
30185 2008-04-26  Bruno Haible  <bruno@clisp.org>
30186
30187         Fix module 'memchr', broken since 2000-10-28.
30188         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
30189
30190 2008-04-26  Bruno Haible  <bruno@clisp.org>
30191
30192         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
30193         comments.
30194
30195 2008-04-25  Eric Blake  <ebb9@byu.net>
30196
30197         Use native fstatat on cygwin 1.7.0.
30198         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
30199         first.
30200
30201 2008-04-23  Eric Blake  <ebb9@byu.net>
30202
30203         Improve memchr2 performance.
30204         * lib/memchr2.c (memchr2): Further optimize parallel detection of
30205         NUL bytes.
30206         * modules/memchr2 (Depends-on): Use intprops.h.
30207
30208 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30209
30210         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
30211         an inline function instead of a CPP macro.  Patch by Ben Pfaff
30212         <blp@cs.stanford.edu>.
30213
30214 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30215
30216         * lib/arpa_inet.in.h: New file.
30217
30218         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
30219         (Makefile.am): Sed in substitute header file.
30220
30221         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
30222         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
30223
30224         * modules/inet_ntop (configure.ac): Use
30225         gl_ARPA_INET_MODULE_INDICATOR.
30226
30227         * modules/inet_pton (configure.ac): Use
30228         gl_ARPA_INET_MODULE_INDICATOR.
30229
30230 2008-04-22  Jim Meyering  <meyering@redhat.com>
30231
30232         * modules/verify (License): Re-license as LGPLv2+.
30233
30234 2008-04-22  Simon Josefsson  <simon@josefsson.org>
30235
30236         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
30237         parameter to void* as per POSIX standard (MinGW uses char*).
30238
30239 2008-04-21  Bruno Haible  <bruno@clisp.org>
30240
30241         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30242         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30243         Define to replacements if REPLACE_ISWCNTRL is 1.
30244         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
30245         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
30246         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
30247         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
30248         what it fixes.
30249         * doc/posix-functions/iswalpha.texi: Likewise.
30250         * doc/posix-functions/iswblank.texi: Likewise.
30251         * doc/posix-functions/iswcntrl.texi: Likewise.
30252         * doc/posix-functions/iswdigit.texi: Likewise.
30253         * doc/posix-functions/iswgraph.texi: Likewise.
30254         * doc/posix-functions/iswlower.texi: Likewise.
30255         * doc/posix-functions/iswprint.texi: Likewise.
30256         * doc/posix-functions/iswpunct.texi: Likewise.
30257         * doc/posix-functions/iswspace.texi: Likewise.
30258         * doc/posix-functions/iswupper.texi: Likewise.
30259         * doc/posix-functions/iswxdigit.texi: Likewise.
30260         Reported by Alain Guibert.
30261
30262 2008-04-21  Bruno Haible  <bruno@clisp.org>
30263
30264         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
30265         Patch by Alain Guibert.
30266
30267 2008-04-21  Bruno Haible  <bruno@clisp.org>
30268
30269         Fix test failures on mingw.
30270         * tests/test-xstrtol.c (print_no_progname): New function.
30271         (main): Install it in error_print_progname hook.
30272         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
30273         * tests/test-xstrtoimax.sh: Likewise.
30274         * tests/test-xstrtoumax.sh: Likewise.
30275
30276 2008-04-21  Bruno Haible  <bruno@clisp.org>
30277
30278         Fix test failure on mingw.
30279         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
30280
30281 2008-04-21  Bruno Haible  <bruno@clisp.org>
30282
30283         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
30284         Actually assign a value.
30285
30286 2008-04-20  Bruno Haible  <bruno@clisp.org>
30287
30288         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
30289         take 2.
30290         * lib/canonicalize.c (canonicalize_file_name): Elide if the
30291         'canonicalize-lgpl' module is also used.
30292         * lib/canonicalize-lgpl.c: Undo last change.
30293         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
30294
30295 2008-04-20  Bruno Haible  <bruno@clisp.org>
30296
30297         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
30298         config.h. Provide _mkdir based fallback for mingw.
30299         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
30300         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
30301         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
30302         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
30303         rather than defining mkdir in config.h.
30304         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
30305         (gl_SYS_STAT_H_DEFAULTS): New macro.
30306         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
30307         HAVE_IO_H any more.
30308         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
30309         HAVE_DECL_MKDIR and HAVE_IO_H.
30310
30311 2008-04-20  Bruno Haible  <bruno@clisp.org>
30312
30313         * lib/isapipe.c: Port to native Windows platforms.
30314
30315 2008-04-20  Bruno Haible  <bruno@clisp.org>
30316
30317         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
30318
30319 2008-04-21  Eric Blake  <ebb9@byu.net>
30320
30321         Work around preprocessors that don't handle UINTMAX_MAX.
30322         * lib/memchr2.c (memchr2): Avoid embedded #if.
30323         Reported by Alain Guibert, fix suggested by Bruno Haible.
30324
30325 2008-04-21  Simon Josefsson  <simon@josefsson.org>
30326
30327         * doc/posix-functions/strftime.texi (strftime): Explain better
30328         Windows incompatibility.  Suggested by Micah Cowan
30329         <micah@cowan.name>.
30330
30331 2008-04-20  Bruno Haible  <bruno@clisp.org>
30332
30333         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
30334         unistr/u8-mblen.
30335
30336 2008-04-20  Bruno Haible  <bruno@clisp.org>
30337
30338         Fix test failure on platforms with non-GNU iconv.
30339         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
30340         (U_TO_U8): Use it, rather than u16_to_u8.
30341         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
30342         units at the end of the input string.
30343         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
30344
30345 2008-04-20  Bruno Haible  <bruno@clisp.org>
30346
30347         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
30348         when the resulting length is 0.
30349         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
30350
30351 2008-04-20  Bruno Haible  <bruno@clisp.org>
30352
30353         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
30354         works.
30355         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
30356
30357 2008-04-20  Bruno Haible  <bruno@clisp.org>
30358
30359         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
30360         * modules/tsearch-tests (configure.ac): Test for initstate function.
30361
30362 2008-04-20  Bruno Haible  <bruno@clisp.org>
30363
30364         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
30365         for nlink_t if missing.
30366         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
30367
30368 2008-04-19  Bruno Haible  <bruno@clisp.org>
30369
30370         Work around snprintf bug on Linux libc5.
30371         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
30372         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30373         gl_SNPRINTF_SIZE1.
30374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30375         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
30376         that test failed.
30377         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30378         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
30379         * modules/snprintf (Files): Add m4/printf.m4.
30380         * modules/vsnprintf (Files): Likewise.
30381         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
30382         * doc/posix-functions/vsnprintf.texi: Likewise.
30383
30384 2008-04-19  Bruno Haible  <bruno@clisp.org>
30385
30386         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
30387         from 0.0058 to less than 10^-7.
30388
30389 2008-04-19  Bruno Haible  <bruno@clisp.org>
30390
30391         Fix rounding when a precision is given.
30392         * lib/vasnprintf.c (is_borderline): New function.
30393         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
30394         9...9x.
30395         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
30396         %e, %g.
30397         * tests/test-vasprintf-posix.c (test_function): Likewise.
30398         * tests/test-snprintf-posix.h (test_function): Likewise.
30399         * tests/test-sprintf-posix.h (test_function): Likewise.
30400         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
30401         * tests/test-printf-posix.h (test_function): Likewise.
30402         * tests/test-printf-posix.output: Update.
30403         Reported by John Darrington <john@darrington.wattle.id.au> via
30404         Ben Pfaff <blp@cs.stanford.edu>.
30405
30406 2008-04-18  Simon Josefsson  <simon@josefsson.org>
30407
30408         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
30409         Suggested by Bruno Haible <bruno@clisp.org>.
30410
30411 2008-04-17  Bruno Haible  <bruno@clisp.org>
30412
30413         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
30414         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
30415         implementation.
30416         Patch by Bruce Merry <bmerry@gmail.com>.
30417
30418 2008-04-17  Simon Josefsson  <simon@josefsson.org>
30419
30420         * doc/posix-functions/strftime.texi (strftime): Mention that %e
30421         doesn't work under Windows.
30422
30423 2008-04-16  Bruno Haible  <bruno@clisp.org>
30424
30425         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
30426         New macros.
30427         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
30428         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
30429         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
30430         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
30431         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
30432         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
30433         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
30434         macros.
30435         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
30436         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
30437         Northern Sotho, Uighur.
30438
30439 2008-04-16  Bruno Haible  <bruno@clisp.org>
30440
30441         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
30442         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
30443         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
30444         Reported by Daniel Bergström <daniel@octocode.com>.
30445
30446 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
30447             Bruno Haible  <bruno@clisp.org>
30448
30449         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
30450         function.
30451         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
30452         New functions, mostly extracted from gl_locale_name_default.
30453         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
30454
30455 2008-04-16  Eric Blake  <ebb9@byu.net>
30456
30457         Adjust strtod detection to catch glibc 2.7 bug.
30458         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
30459         Reported by John Gatewood Ham.
30460
30461 2008-04-16  Bruno Haible  <bruno@clisp.org>
30462
30463         Add tentative support for Linux libc5.
30464         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
30465         * lib/fpurge.c (fpurge): Likewise.
30466         * lib/freadable.c (freadable): Likewise.
30467         * lib/freadahead.c (freadahead): Likewise.
30468         * lib/freading.c (freading): Likewise.
30469         * lib/freadptr.c (freadptr): Likewise.
30470         * lib/freadseek.c (freadptrinc): Likewise.
30471         * lib/fseeko.c (rpl_fseeko): Likewise.
30472         * lib/fseterr.c (fseterr): Likewise.
30473         * lib/fwritable.c (fwritable): Likewise.
30474         * lib/fwriting.c (fwriting): Likewise.
30475         Reported by Alain Guibert <alguibert+bts@free.fr>.
30476
30477 2008-04-15  Bruno Haible  <bruno@clisp.org>
30478
30479         * modules/mathl (configure.ac): Define module indicator.
30480
30481 2008-04-15  Bruno Haible  <bruno@clisp.org>
30482
30483         * lib/logl.c (logl): Remove unused variables.
30484
30485 2008-04-15  Bruno Haible  <bruno@clisp.org>
30486
30487         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
30488         fails.
30489
30490 2008-04-15  Bruno Haible  <bruno@clisp.org>
30491
30492         * lib/trim.c (trim2): Fix argument of isspace() macro.
30493
30494 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
30495
30496         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
30497         to 0.
30498         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
30499
30500 2008-04-14  Bruno Haible  <bruno@clisp.org>
30501
30502         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
30503         AC_LANG_PROGRAM argument.
30504         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
30505         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
30506         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30507         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30508         * m4/math_h.m4 (gl_MATH_H): Likewise.
30509         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
30510         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30511         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30512         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
30513         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
30514         * m4/regex.m4 (gl_REGEX): Likewise.
30515         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
30516         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
30517         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30518         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
30519         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30520         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30521         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30522         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30523
30524 2008-04-14  Jim Meyering  <meyering@redhat.com>
30525
30526         test-strtod: fix typos: s/abs/fabs/
30527         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
30528
30529 2008-04-13  Bruno Haible  <bruno@clisp.org>
30530
30531         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
30532         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
30533         module is also used and while not building the reloc-wrapper.
30534
30535 2008-04-13  Bruno Haible  <bruno@clisp.org>
30536
30537         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
30538
30539 2008-04-13  Bruno Haible  <bruno@clisp.org>
30540
30541         Fix AIX compilation failure introduced on 2008-04-02.
30542         * tests/test-frexp.c (exp): Undefine before redefining.
30543         * tests/test-frexpl.c (exp): Likewise.
30544
30545 2008-04-13  Bruno Haible  <bruno@clisp.org>
30546
30547         Work around a HP-UX stdio bug.
30548         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
30549         * tests/test-ftello.c (main): Likewise.
30550         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
30551         * doc/posix-functions/ftello.texi: Likewise.
30552
30553 2008-04-13  Bruno Haible  <bruno@clisp.org>
30554
30555         Make test-signbit pass on HP-UX/hppa.
30556         * tests/test-signbit.c (minus_zerol): New variable.
30557         (test_signbitl): Use it.
30558
30559 2008-04-13  Bruno Haible  <bruno@clisp.org>
30560
30561         Make truncl work on OSF/1 4.0.
30562         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
30563         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30564         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
30566         HAVE_DECL_TRUNCL.
30567         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
30568         HAVE_DECL_TRUNCL.
30569         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
30570
30571 2008-04-13  Bruno Haible  <bruno@clisp.org>
30572
30573         * lib/unictype.h: Remove trailing comma from enumeration definitions.
30574
30575 2008-04-13  Bruno Haible  <bruno@clisp.org>
30576
30577         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
30578         expression, so as to avoid HP-UX 11 cc compiler bug.
30579
30580 2008-04-13  Bruno Haible  <bruno@clisp.org>
30581
30582         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
30583
30584 2008-04-13  Bruno Haible  <bruno@clisp.org>
30585
30586         * lib/git-merge-changelog.c: Remove empty declaration outside of
30587         functions.
30588
30589 2008-04-13  Bruno Haible  <bruno@clisp.org>
30590
30591         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30592
30593 2008-04-13  Bruno Haible  <bruno@clisp.org>
30594
30595         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30596         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30597         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30598         also if it exists but lacks definitions of the SHUT_* macros.
30599         * modules/sys_socket (Description): Update.
30600         Reported by Elbert Pol <e.pol@chello.nl>.
30601
30602 2008-04-13  Bruno Haible  <bruno@clisp.org>
30603
30604         * lib/localcharset.c (OS2): Don't redefine if already defined.
30605         Reported by Elbert Pol <e.pol@chello.nl>.
30606
30607 2008-04-13  Bruno Haible  <bruno@clisp.org>
30608
30609         * lib/binary-io.h [__EMX__]: Include <io.h>.
30610         Reported by Elbert Pol <e.pol@chello.nl>.
30611
30612 2008-04-12  Bruno Haible  <bruno@clisp.org>
30613
30614         * lib/fpucw.h: Enable the definitions also for x86_64.
30615         Needed for NetBSD/x86_64.
30616         Reported by Thomas Klausner <tk@giga.or.at>.
30617
30618 2008-04-12  Bruno Haible  <bruno@clisp.org>
30619
30620         * tests/test-strtod.c: Include isnand.h.
30621         (main): Use isnand instead of isnan.
30622         Reported by Jim Meyering.
30623
30624 2008-04-12  Bruno Haible  <bruno@clisp.org>
30625
30626         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30627         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30628
30629 2008-04-12  Jim Meyering  <meyering@redhat.com>
30630
30631         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30632
30633 2008-04-12  Bruno Haible  <bruno@clisp.org>
30634
30635         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30636         Reported by Elbert Pol <e.pol@chello.nl>.
30637
30638 2008-04-12  Eric Blake  <ebb9@byu.net>
30639
30640         Work around Solaris 10 math.h bug.
30641         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30642         (gl_MATH_H_DEFAULTS): Set up default.
30643         * modules/math (Makefile.am): Replace new indicators.
30644         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30645         * tests/test-math.c (main): Test this.
30646         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30647         * doc/posix-headers/math.texi (math.h): Mention bug.
30648         Reported by Nelson H. F. Beebe and Jim Meyering.
30649
30650 2008-04-11  Bruno Haible  <bruno@clisp.org>
30651
30652         Adapt to future versions of Apple GCC.
30653         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30654         Reported by Peter O'Gorman <peter@pogma.com>.
30655
30656 2008-04-11  Bruno Haible  <bruno@clisp.org>
30657
30658         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30659
30660 2008-04-11  Bruno Haible  <bruno@clisp.org>
30661
30662         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30663
30664         * modules/getaddrinfo-tests (Makefile.am): Define
30665         test_getaddrinfo_LDADD.
30666
30667 2008-04-11  Bruno Haible  <bruno@clisp.org>
30668
30669         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30670         (init): Fix syntax error.
30671         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30672         is declared.
30673
30674 2008-04-11  Bruno Haible  <bruno@clisp.org>
30675
30676         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30677         * modules/glob (Depends-on): Add stdbool.
30678
30679 2008-04-11  Bruno Haible  <bruno@clisp.org>
30680
30681         * lib/trim.c: Include <string.h>.
30682
30683 2008-04-11  Eric Blake  <ebb9@byu.net>
30684
30685         Avoid compile failure on OS/2.
30686         * lib/regex_internal.h (internal_function): Disable optimization
30687         on OS/2 (__EMX__), where it caused compiler error.
30688         Reported by Elbert Pol.
30689
30690 2008-04-11  Bruno Haible  <bruno@clisp.org>
30691
30692         Flush the standard error stream before aborting. Needed on mingw.
30693         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30694         * tests/test-array_list.c (ASSERT): Likewise.
30695         * tests/test-array_oset.c (ASSERT): Likewise.
30696         * tests/test-avltree_list.c (ASSERT): Likewise.
30697         * tests/test-avltree_oset.c (ASSERT): Likewise.
30698         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30699         * tests/test-binary-io.c (ASSERT): Likewise.
30700         * tests/test-byteswap.c (ASSERT): Likewise.
30701         * tests/test-c-ctype.c (ASSERT): Likewise.
30702         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30703         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30704         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30705         * tests/test-c-strstr.c (ASSERT): Likewise.
30706         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30707         * tests/test-canonicalize.c (ASSERT): Likewise.
30708         * tests/test-carray_list.c (ASSERT): Likewise.
30709         * tests/test-ceilf1.c (ASSERT): Likewise.
30710         * tests/test-ceilf2.c (ASSERT): Likewise.
30711         * tests/test-ceill.c (ASSERT): Likewise.
30712         * tests/test-count-one-bits.c (ASSERT): Likewise.
30713         * tests/test-fbufmode.c (ASSERT): Likewise.
30714         * tests/test-fflush2.c (ASSERT): Likewise.
30715         * tests/test-floorf1.c (ASSERT): Likewise.
30716         * tests/test-floorf2.c (ASSERT): Likewise.
30717         * tests/test-floorl.c (ASSERT): Likewise.
30718         * tests/test-fopen.c (ASSERT): Likewise.
30719         * tests/test-fpending.c (ASSERT): Likewise.
30720         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30721         * tests/test-fpurge.c (ASSERT): Likewise.
30722         * tests/test-freadable.c (ASSERT): Likewise.
30723         * tests/test-freadahead.c (ASSERT): Likewise.
30724         * tests/test-freading.c (ASSERT): Likewise.
30725         * tests/test-freadptr.c (ASSERT): Likewise.
30726         * tests/test-freadptr2.c (ASSERT): Likewise.
30727         * tests/test-freadseek.c (ASSERT): Likewise.
30728         * tests/test-freopen.c (ASSERT): Likewise.
30729         * tests/test-frexp.c (ASSERT): Likewise.
30730         * tests/test-frexpl.c (ASSERT): Likewise.
30731         * tests/test-fseek.c (ASSERT): Likewise.
30732         * tests/test-fseeko.c (ASSERT): Likewise.
30733         * tests/test-fstrcmp.c (ASSERT): Likewise.
30734         * tests/test-ftell.c (ASSERT): Likewise.
30735         * tests/test-ftello.c (ASSERT): Likewise.
30736         * tests/test-func.c (ASSERT): Likewise.
30737         * tests/test-fwritable.c (ASSERT): Likewise.
30738         * tests/test-fwriting.c (ASSERT): Likewise.
30739         * tests/test-getdelim.c (ASSERT): Likewise.
30740         * tests/test-getline.c (ASSERT): Likewise.
30741         * tests/test-i-ring.c (ASSERT): Likewise.
30742         * tests/test-iconv-utf.c (ASSERT): Likewise.
30743         * tests/test-iconv.c (ASSERT): Likewise.
30744         * tests/test-isfinite.c (ASSERT): Likewise.
30745         * tests/test-isnand.c (ASSERT): Likewise.
30746         * tests/test-isnanf.c (ASSERT): Likewise.
30747         * tests/test-isnanl.h (ASSERT): Likewise.
30748         * tests/test-ldexpl.c (ASSERT): Likewise.
30749         * tests/test-linked_list.c (ASSERT): Likewise.
30750         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30751         * tests/test-localename.c (ASSERT): Likewise.
30752         * tests/test-lseek.c (ASSERT): Likewise.
30753         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30754         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30755         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30756         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30757         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30758         * tests/test-mbschr.c (ASSERT): Likewise.
30759         * tests/test-mbscspn.c (ASSERT): Likewise.
30760         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30761         * tests/test-mbspbrk.c (ASSERT): Likewise.
30762         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30763         * tests/test-mbsrchr.c (ASSERT): Likewise.
30764         * tests/test-mbsspn.c (ASSERT): Likewise.
30765         * tests/test-mbsstr1.c (ASSERT): Likewise.
30766         * tests/test-mbsstr2.c (ASSERT): Likewise.
30767         * tests/test-mbsstr3.c (ASSERT): Likewise.
30768         * tests/test-memchr2.c (ASSERT): Likewise.
30769         * tests/test-memmem.c (ASSERT): Likewise.
30770         * tests/test-open.c (ASSERT): Likewise.
30771         * tests/test-printf-frexp.c (ASSERT): Likewise.
30772         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30773         * tests/test-printf-posix.c (ASSERT): Likewise.
30774         * tests/test-quotearg.c (ASSERT): Likewise.
30775         * tests/test-rbtree_list.c (ASSERT): Likewise.
30776         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30777         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30778         * tests/test-round1.c (ASSERT): Likewise.
30779         * tests/test-roundf1.c (ASSERT): Likewise.
30780         * tests/test-roundl.c (ASSERT): Likewise.
30781         * tests/test-signbit.c (ASSERT): Likewise.
30782         * tests/test-sleep.c (ASSERT): Likewise.
30783         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30784         * tests/test-snprintf.c (ASSERT): Likewise.
30785         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30786         * tests/test-stat-time.c (ASSERT): Likewise.
30787         * tests/test-strcasestr.c (ASSERT): Likewise.
30788         * tests/test-strerror.c (ASSERT): Likewise.
30789         * tests/test-striconv.c (ASSERT): Likewise.
30790         * tests/test-striconveh.c (ASSERT): Likewise.
30791         * tests/test-striconveha.c (ASSERT): Likewise.
30792         * tests/test-strsignal.c (ASSERT): Likewise.
30793         * tests/test-strstr.c (ASSERT): Likewise.
30794         * tests/test-strtod.c (ASSERT): Likewise.
30795         * tests/test-trunc1.c (ASSERT): Likewise.
30796         * tests/test-trunc2.c (ASSERT): Likewise.
30797         * tests/test-truncf1.c (ASSERT): Likewise.
30798         * tests/test-truncf2.c (ASSERT): Likewise.
30799         * tests/test-truncl.c (ASSERT): Likewise.
30800         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30801         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30802         * tests/test-vasnprintf.c (ASSERT): Likewise.
30803         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30804         * tests/test-vasprintf.c (ASSERT): Likewise.
30805         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30806         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30807         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30808         * tests/test-vsnprintf.c (ASSERT): Likewise.
30809         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30810         * tests/test-wcwidth.c (ASSERT): Likewise.
30811         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30812         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30813         * tests/test-xvasprintf.c (ASSERT): Likewise.
30814         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30815         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30816         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30817         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30818         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30819         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30820         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30821         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30822         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30823         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30824         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30825         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30826         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30827         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30828         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
30829         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
30830         * tests/unictype/test-block_list.c (ASSERT): Likewise.
30831         * tests/unictype/test-block_of.c (ASSERT): Likewise.
30832         * tests/unictype/test-block_test.c (ASSERT): Likewise.
30833         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
30834         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
30835         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
30836         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
30837         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
30838         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
30839         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
30840         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
30841         * tests/unictype/test-combining.c (ASSERT): Likewise.
30842         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
30843         * tests/unictype/test-digit.c (ASSERT): Likewise.
30844         * tests/unictype/test-mirror.c (ASSERT): Likewise.
30845         * tests/unictype/test-numeric.c (ASSERT): Likewise.
30846         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
30847         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
30848         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
30849         * tests/unictype/test-scripts.c (ASSERT): Likewise.
30850         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
30851         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
30852         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
30853         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
30854         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
30855         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
30856         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
30857         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
30858         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
30859         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
30860         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
30861         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
30862         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
30863         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
30864         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
30865         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
30866         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
30867         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
30868         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
30869         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
30870         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
30871         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
30872         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
30873         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
30874         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
30875         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
30876         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
30877         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
30878         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
30879         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
30880         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
30881         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
30882         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
30883         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
30884         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
30885         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
30886         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
30887         Reported by Eric Blake.
30888
30889 2008-04-11  Bruno Haible  <bruno@clisp.org>
30890
30891         * lib/wchar.in.h: Tweak comment.
30892
30893 2008-04-11  Bruno Haible  <bruno@clisp.org>
30894
30895         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
30896         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
30897         gl_COMMON.
30898         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
30899
30900 2008-04-11  Bruno Haible  <bruno@clisp.org>
30901
30902         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
30903
30904 2008-04-11  Simon Josefsson  <simon@josefsson.org>
30905
30906         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
30907         of attempting to use non-existing /dev/*random.  Based on patch
30908         from Adam Strzelecki <ono@java.pl> in
30909         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
30910
30911 2008-04-08  Bruno Haible  <bruno@clisp.org>
30912
30913         Add tentative support for emx+gcc.
30914         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
30915         * lib/fpurge.c (fpurge): Likewise.
30916         * lib/freadable.c (freadable): Likewise.
30917         * lib/freadahead.c (freadahead): Likewise.
30918         * lib/freading.c (freading): Likewise.
30919         * lib/freadptr.c (freadptr): Likewise.
30920         * lib/freadseek.c (freadptrinc): Likewise.
30921         * lib/fseeko.c (rpl_fseeko): Likewise.
30922         * lib/fseterr.c (fseterr): Likewise.
30923         * lib/fwritable.c (fwritable): Likewise.
30924         * lib/fwriting.c (fwriting): Likewise.
30925         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
30926
30927 2008-04-09  Eric Blake  <ebb9@byu.net>
30928
30929         Avoid some autoconf warnings.
30930         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
30931         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
30932         * m4/afs.m4 (gl_AFS): Likewise.
30933         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
30934         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
30935         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30936         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
30937         (gl_INTEGER_TYPE_SUFFIX): Likewise.
30938         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
30939         (AC_CHECK_DECLS_ONCE): Likewise.
30940         Rename file...
30941         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
30942         gnulib-tool requires autoconf 2.59 or better.
30943         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
30944
30945 2008-04-08  Eric Blake  <ebb9@byu.net>
30946
30947         Use 'git describe --match' if present (added in git 1.5.5).
30948         * build-aux/git-version-gen: Limit result to tags that match 'v*'
30949         if possible.
30950
30951 2008-04-08  Bruno Haible  <bruno@clisp.org>
30952
30953         Add tentative support for OpenServer.
30954         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
30955         _ptr, _cnt.
30956         * lib/fpurge.c (fpurge): Likewise.
30957         * lib/freadable.c (freadable): Likewise.
30958         * lib/freadahead.c (freadahead): Likewise.
30959         * lib/freading.c (freading): Likewise.
30960         * lib/freadptr.c (freadptr): Likewise.
30961         * lib/freadseek.c (freadptrinc): Likewise.
30962         * lib/fseeko.c (rpl_fseeko): Likewise.
30963         * lib/fseterr.c (fseterr): Likewise.
30964         * lib/fwritable.c (fwritable): Likewise.
30965         * lib/fwriting.c (fwriting): Likewise.
30966         Reported by Roger Cornelius <rac@tenzing.org> and
30967         Brian K. White <brian@aljex.com>.
30968
30969 2008-04-06  Jim Meyering  <meyering@redhat.com>
30970
30971         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
30972
30973 2008-04-06  Bruno Haible  <bruno@clisp.org>
30974
30975         Avoid possible error with non-ASCII bytes in UTF-8 locales.
30976         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
30977         * tests/test-printf-posix.sh: Likewise.
30978         * tests/test-vfprintf-posix.sh: Likewise.
30979         * tests/test-vprintf-posix.sh: Likewise.
30980         * tests/test-xprintf-posix.sh: Likewise.
30981
30982 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30983
30984         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
30985         hide error from 'ls', needed on OS/2.
30986         Report by Elbert Pol <elbert.pol@gmail.com>.
30987
30988 2008-04-04  Eric Blake  <ebb9@byu.net>
30989
30990         Make test-fseeko.c failures meaningful.
30991         * tests/test-fseeko.c: Print line number on failure.
30992         * tests/test-fseek.c: Likewise.
30993         Reported by Nelson H. F. Beebe.
30994
30995         Improve strtod bug detection check.
30996         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
30997         required for Solaris 10.
30998         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
30999
31000 2008-04-04  Bruno Haible  <bruno@clisp.org>
31001
31002         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
31003         by m4/setenv.m4.
31004
31005 2008-04-03  Eric Blake  <ebb9@byu.net>
31006
31007         Ensure sane .version contents.
31008         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
31009         version string.
31010         * build-aux/git-version-gen: Improve documentation.
31011
31012         Make GNU make output nicer.
31013         * top/GNUmakefile [!_have-Makefile]: Add dependency on
31014         MAKECMDGOALS to enforce message for all command line targets.  Set
31015         srcdir for use in maint.mk.
31016
31017         Another maintainer tweak.
31018         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
31019         a target that regenerates version.
31020
31021 2008-04-03  Jim Meyering  <meyering@redhat.com>
31022
31023         vc-list-files: don't cause coreutils "make po-check" failure
31024         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
31025
31026 2008-04-03  Eric Blake  <ebb9@byu.net>
31027
31028         Allow VPATH usage of vc-list-files.
31029         * build-aux/vc-list-files (scriptversion): Add timestamp.
31030         (options): Add --help, --version, -C.
31031         (CVS): Support installed cvsu.
31032
31033 2008-04-02  Bruno Haible  <bruno@clisp.org>
31034
31035         Avoid some "statement with no effect" warnings from gcc.
31036         * tests/test-wctype.c (main): Explicitly ignore unused values.
31037         Reported by Jim Meyering.
31038
31039 2008-04-02  Jim Meyering  <meyering@redhat.com>
31040
31041         Avoid some warnings from "gcc -Wshadow".
31042         * tests/test-frexp.c (exp): Define to a different identifier.
31043         * tests/test-frexpl.c (exp): Likewise.
31044
31045 2008-04-03  Jim Meyering  <meyering@redhat.com>
31046
31047         bootstrap: remove dangling *.[ch] symlinks from lib
31048         * build-aux/bootstrap [dangling symlink removal]: Move find's
31049         -depth option to precede all others, to avoid a warning.
31050         Remove *.[ch] files too, and from "$source_base" (usually lib/).
31051
31052 2008-04-02  Bruno Haible  <bruno@clisp.org>
31053
31054         Avoid some warnings from "gcc -Wshadow".
31055         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
31056         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
31057         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
31058         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
31059         Reported by Jim Meyering.
31060
31061 2008-04-01  Bruno Haible  <bruno@clisp.org>
31062
31063         Fix test to work on IRIX 6.5 with cc.
31064         * tests/test-math.c (numeric_equal): New function.
31065         (main): Use it.
31066
31067 2008-04-01  Bruno Haible  <bruno@clisp.org>
31068
31069         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
31070
31071 2008-04-01  Bruno Haible  <bruno@clisp.org>
31072
31073         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
31074         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31075         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
31076         (Depends-on): Remove math.
31077
31078         * tests/test-vasprintf-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/vasprintf-posix-tests (Files): Add tests/nan.h.
31081         (Depends-on): Remove math.
31082
31083         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
31084         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31085         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
31086         (Depends-on): Remove math.
31087         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
31088         (Depends-on): Remove math.
31089
31090         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
31091         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31092         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
31093         (Depends-on): Remove math.
31094         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
31095         (Depends-on): Remove math.
31096
31097         * tests/test-round1.c: Include nan.h.
31098         (main): Use NaNd instead of NAN.
31099         * modules/round-tests (Files): Add tests/nan.h.
31100
31101         * tests/test-trunc1.c: Include nan.h.
31102         (main): Use NaNd instead of NAN.
31103         * modules/trunc-tests (Files): Add tests/nan.h.
31104
31105         * tests/test-roundf1.c: Include nan.h.
31106         (main): Use NaNf instead of NAN.
31107         * modules/roundf-tests (Files): Add tests/nan.h.
31108
31109         * tests/test-truncf1.c: Include nan.h.
31110         (main): Use NaNf instead of NAN.
31111         * modules/truncf-tests (Files): Add tests/nan.h.
31112
31113         * tests/test-ceilf1.c: Include nan.h.
31114         (main): Use NaNf instead of NAN.
31115         * modules/ceilf-tests (Files): Add tests/nan.h.
31116
31117         * tests/test-floorf1.c: Include nan.h.
31118         (main): Use NaNf instead of NAN.
31119         * modules/floorf-tests (Files): Add tests/nan.h.
31120
31121         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
31122         (main): Use NaNf instead of NAN.
31123         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
31124
31125         * tests/test-isnand.c: Include nan.h instead of <math.h>.
31126         (main): Use NaNd instead of NAN.
31127         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
31128
31129         * tests/test-frexp.c: Include nan.h.
31130         (main): Use NaNd instead of NAN.
31131         * modules/frexp-tests (Files): Add tests/nan.h.
31132
31133         * lib/isnan.c: Don't include <math.h>.
31134         (FUNC): Don't use NAN macro.
31135         * modules/isnand-nolibm (Depends-on): Remove math.
31136         * modules/isnanf-nolibm (Depends-on): Remove math.
31137         * modules/isnanl (Depends-on): Remove math.
31138         * modules/isnanl-nolibm (Depends-on): Remove math.
31139
31140         * tests/nan.h: New file.
31141
31142 2008-04-01  Eric Blake  <ebb9@byu.net>
31143
31144         Fix typos.
31145         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
31146         values to be the right type.
31147
31148         For now, cater to gnulib strtod inaccuracies.
31149         * tests/test-strtod.c (main): Allow 1-ulp error on expected
31150         fractional results.  While not as nice from a QoI perspective, it
31151         is a quicker patch than correctly implementing decimal to binary
31152         rounding.
31153
31154 2008-03-31  Eric Blake  <ebb9@byu.net>
31155
31156         Guarantee a definition of NAN.
31157         * lib/math.in.h (NAN): Define if missing.
31158         * tests/test-math.c (main): Test it.
31159         * doc/posix-headers/math.texi (math.h): Document this.
31160         * lib/isnan.c (rpl_isnand): Use it.
31161         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
31162         * tests/test-floorf1.c (NaN): Likewise.
31163         * tests/test-frexp.c (NaN): Likewise.
31164         * tests/test-isnand.c (NaN): Likewise.
31165         * tests/test-isnanf.c (NaN): Likewise.
31166         * tests/test-round1.c (NaN): Likewise.
31167         * tests/test-roundf1.c (NaN): Likewise.
31168         * tests/test-snprintf-posix.h (NaN): Likewise.
31169         * tests/test-sprintf-posix.h (NaN): Likewise.
31170         * tests/test-trunc1.c (NaN): Likewise.
31171         * tests/test-truncf1.c (NaN): Likewise.
31172         * tests/test-vasnprintf-posix.c (NaN): Likewise.
31173         * tests/test-vasprintf-posix.c (NaN): Likewise.
31174         * modules/isnand-nolibm (Depends-on): Add math.
31175         * modules/isnanf-nolibm (Depends-on): Likewise.
31176         * modules/isnanl (Depends-on): Likewise.
31177         * modules/isnanl-nolibm (Depends-on): Likewise.
31178         * modules/snprintf-posix-tests (Depends-on): Likewise.
31179         * modules/sprintf-posix-tests (Depends-on): Likewise.
31180         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
31181         * modules/vsprintf-posix-tests (Depends-on): Likewise.
31182         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
31183         * modules/vasprintf-posix-tests (Depends-on): Likewise.
31184
31185 2008-03-31  Bruno Haible  <bruno@clisp.org>
31186
31187         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
31188         * doc/posix-functions/strtod.texi: Likewise.
31189
31190 2008-03-31  Bruno Haible  <bruno@clisp.org>
31191
31192         * tests/test-strtod.c (main): Don't use C99 syntax.
31193
31194 2008-03-31  Bruno Haible  <bruno@clisp.org>
31195
31196         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
31197         Reported by Eric Blake.
31198
31199 2008-03-31  Jim Meyering  <meyering@redhat.com>
31200
31201         Don't compare actual signbit return values.
31202         * tests/test-strtod.c (main): Rather, compare only their
31203         zero/non-zero nature.
31204
31205 2008-03-31  Eric Blake  <ebb9@byu.net>
31206
31207         More strtod documentation.
31208         * doc/posix-functions/strtod.texi (strtod): Interpret more test
31209         failures as distinct bugs.
31210
31211 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31212
31213         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
31214         Problem reported by Erik Benada in
31215         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
31216
31217 2008-03-30  Bruno Haible  <bruno@clisp.org>
31218
31219         * tests/test-strtod.c: Add comments about which assertion fails on which
31220         platform.
31221         * doc/posix-functions/strtod.texi: Add info about many more platforms.
31222
31223 2008-03-30  Eric Blake  <ebb9@byu.net>
31224
31225         Test signbit behavior on zeros.
31226         * tests/test-signbit.c (test_signbitf): Add tests for zero.
31227         (test_signbitd, test_signbitl): Likewise.
31228
31229         More strtod touchups.
31230         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
31231         sign of negative underflow, for now.  Use .5, not .1.
31232         * doc/posix-functions/strtod.texi (strtod): Mention these
31233         limitations.
31234         Reported by Jim Meyering.
31235
31236 2008-03-30  Bruno Haible  <bruno@clisp.org>
31237
31238         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
31239         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
31240
31241 2008-03-30  Bruno Haible  <bruno@clisp.org>
31242
31243         Avoid failure when attempting to return empty iconv results on some
31244         platforms.
31245         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
31246         allocation, don't report ENOMEM when the resulting string is empty.
31247
31248 2008-03-30  Bruno Haible  <bruno@clisp.org>
31249
31250         Fix buffer overrun.
31251         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
31252         Don't consider the width for tmp_length. Check count against tmp_length
31253         before doing the padding. Ensure enough allocation during padding.
31254
31255 2008-03-30  Eric Blake  <ebb9@byu.net>
31256
31257         strtod touchups.
31258         * lib/strtod.c (strtod): Avoid compiler warnings.
31259         Reported by Jim Meyering.
31260
31261 2008-03-30  Bruno Haible  <bruno@clisp.org>
31262
31263         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
31264         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
31265         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
31266         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
31267         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
31268         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
31269         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
31270         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
31271
31272         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
31273         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
31274         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
31275         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
31276         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
31277         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
31278         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
31279         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
31280
31281         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
31282         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
31283         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
31284         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
31285         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
31286         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
31287         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
31288         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
31289
31290         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
31291         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
31292
31293         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
31294         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
31295
31296         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
31297         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
31298
31299         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
31300         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
31301         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
31302
31303         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
31304         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
31305         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
31306
31307         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
31308         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
31309         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
31310
31311         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
31312         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
31313         * modules/vasprintf (Depends-on): Add EOVERFLOW.
31314
31315         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
31316         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
31317         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
31318         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
31319         (Depends-on): Add EOVERFLOW.
31320         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
31321         (Depends-on): Add EOVERFLOW.
31322         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31323         (Depends-on): Add EOVERFLOW.
31324         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31325         (Depends-on): Add EOVERFLOW.
31326         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31327         (Depends-on): Add EOVERFLOW.
31328         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31329         (Depends-on): Add EOVERFLOW.
31330         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31331         (Depends-on): Add EOVERFLOW.
31332         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31333         (Depends-on): Add EOVERFLOW.
31334
31335         * lib/sprintf.c (EOVERFLOW): Remove fallback.
31336         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
31337         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
31338
31339         * lib/snprintf.c (EOVERFLOW): Remove fallback.
31340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
31341         * modules/snprintf (Depends-on): Add EOVERFLOW.
31342
31343         * lib/poll.c (EOVERFLOW): Remove fallback.
31344         * modules/poll (Depends-on): Add EOVERFLOW.
31345
31346         * lib/getugroups.c (EOVERFLOW): Remove fallback.
31347         * modules/getugroups (Depends-on): Add EOVERFLOW.
31348
31349         * lib/getdelim.c (EOVERFLOW): Remove fallback.
31350         * modules/getdelim (Depends-on): Add EOVERFLOW.
31351
31352         * lib/ftell.c (EOVERFLOW): Remove fallback.
31353         * modules/ftell (Depends-on): Add EOVERFLOW.
31354
31355         * lib/fprintf.c (EOVERFLOW): Remove fallback.
31356         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
31357         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
31358
31359         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
31360
31361         * modules/EOVERFLOW-tests: New file.
31362         * tests/test-EOVERFLOW.c: New file.
31363
31364         * modules/EOVERFLOW: New file.
31365         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
31366
31367 2008-03-30  Bruno Haible  <bruno@clisp.org>
31368
31369         Fix bug introduced on 2007-06-10.
31370         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
31371         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
31372
31373 2008-03-30  Bruno Haible  <bruno@clisp.org>
31374
31375         Improve freadseek's efficiency after ungetc.
31376         * lib/freadseek.c: Include freadahead.h.
31377         (freadptrinc): New function, extracted from freadseek.
31378         (freadseek): Use it in a loop. Use freadahead to determine the number
31379         of loop iterations.
31380         * modules/freadseek (Depends-on): Add freadahead.
31381         (configure.ac): Require AC_C_INLINE.
31382
31383 2008-03-30  Bruno Haible  <bruno@clisp.org>
31384
31385         * lib/freadseek.c (freadseek): Don't ignore the return value of
31386         freadptr.
31387
31388 2008-03-29  Eric Blake  <ebb9@byu.net>
31389
31390         Add hex float support.
31391         * modules/strtod (Depends-on): Add c-ctype.
31392         (Link): Mention POW_LIB.
31393         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
31394         whitespace between 'e' and exponent.
31395         * tests/test-strtod.c (main): Enable hex float tests.
31396         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
31397         now provides.
31398
31399         Document various strtod bugs, with some fixes.
31400         * doc/posix-functions/strtod.texi (strtod): Document bugs with
31401         "-0x", "inf", "nan", and hex constants.
31402         * doc/posix-functions/atof.texi (atof): Likewise.
31403         * modules/stdlib (Makefile.am): Support strtod.
31404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31405         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
31406         detect additional strtod bugs.
31407         * lib/stdlib.in.h (rpl_strtod): Add declarations.
31408         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
31409         bool where appropriate.  Parse 'inf' and 'nan'.
31410         * tests/test-strtod.c: New file.
31411         * modules/strtod (Depends-on): Add stdbool, stdlib.
31412         (configure.ac): Turn on module indicator.
31413         * modules/strtod-tests: New module.
31414
31415 2008-03-29  Eric Blake  <ebb9@byu.net>
31416
31417         Fix ftell on mingw.
31418         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
31419         * modules/ftell-tests (Depends-on): Add binary-io.
31420         * modules/ftello-tests (Depends-on): Likewise.
31421         * tests/test-ftell.c (main): Enhance test to cover behavior after
31422         ungetc.  Enforce binary mode.
31423         * tests/test-ftello.c (main): Likewise.
31424
31425         Pass test-freadseek on cygwin.
31426         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
31427         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
31428         ungetc buffer.
31429
31430         * tests/test-fflush2.c (main): Fix typo.
31431
31432 2008-03-29  Bruno Haible  <bruno@clisp.org>
31433
31434         * tests/test-fflush2.c (main): Temporarily disable the contents of
31435         this test.
31436         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
31437         Reported by Eric Blake.
31438
31439 2008-03-28  Simon Josefsson  <simon@josefsson.org>
31440
31441         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
31442         (GC_SHA224_DIGEST_SIZE): Add.
31443
31444         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
31445         (gc_hash_digest_length): Likewise.
31446         (gc_hash_buffer): Likewise.
31447
31448 2008-03-25  Bruno Haible  <bruno@clisp.org>
31449
31450         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
31451         detail which gettext release to use.
31452         Reported by Simon Josefsson.
31453
31454 2008-03-26  Jim Meyering  <meyering@redhat.com>
31455
31456         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
31457         * modules/gnumakefile (clean-GNUmakefile): Also, use
31458         test ... && ... || : syntax rather than if-then ... fi.
31459
31460         gnumakefile: Don't double-quote-expand $(VPATH) value.
31461         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
31462
31463 2008-03-24  Eric Blake  <ebb9@byu.net>
31464
31465         Alter GNUmakefile to install into top directory.
31466         * modules/maintainer-makefile: Split, and add dependency...
31467         * modules/gnumakefile: to this new module.
31468         * build-aux/GNUmakefile: Move...
31469         * top/GNUmakefile: ...here.
31470         * build-aux/maint.mk: Move...
31471         * top/maint.mk: ...here.
31472         * MODULES.html.sh (Support for maintaining...): Document new
31473         module.
31474
31475 2008-03-23  Bruno Haible  <bruno@clisp.org>
31476
31477         * gnulib-tool: New options --vc-files, --no-vc-files.
31478         (func_usage): Document them.
31479         (vc_files): New variable.
31480         (func_import): Consider vc_files.
31481         (func_create_testdir): Set vc_files to empty.
31482         Suggested by Jim Meyering and Karl Berry.
31483
31484 2008-03-23  Bruno Haible  <bruno@clisp.org>
31485
31486         Fix regex compilation error on HP-UX 11.
31487         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
31488         * modules/regex (Files): Add m4/mbstate_t.m4.
31489         Reported by Ton Voon <ton.voon@altinity.com>.
31490
31491 2008-03-23  Bruno Haible  <bruno@clisp.org>
31492
31493         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
31494
31495 2008-03-23  Eric Blake  <ebb9@byu.net>
31496             Bruno Haible  <bruno@clisp.org>
31497
31498         Install files from top/ in the destination directory.
31499         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31500         augmentation also for the files from top/.
31501         (func_import, func_create_testdir): Rewrite file names:
31502         top/filename -> filename.
31503
31504 2008-03-23  Bruno Haible  <bruno@clisp.org>
31505
31506         Tweak "gnulib --version" output.
31507         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
31508
31509 2008-03-23  Bruno Haible  <bruno@clisp.org>
31510
31511         Tweak "gnulib --version" output.
31512         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
31513         rather than contents of ChangeLog, when possible.
31514
31515 2008-03-21  Eric Blake  <ebb9@byu.net>
31516
31517         More --version tweaks.
31518         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
31519         date of last ChangeLog entry.
31520
31521 2008-03-21  Jim Meyering  <meyering@redhat.com>
31522
31523         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
31524
31525 2008-03-20  Eric Blake  <ebb9@byu.net>
31526
31527         VPATH fix.
31528         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
31529
31530 2008-03-20  Simon Josefsson  <simon@josefsson.org>
31531
31532         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
31533         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
31534
31535 2008-03-20  Eric Blake  <ebb9@byu.net>
31536
31537         Sync GNUmakefile with coreutils.
31538         * build-aux/GNUmakefile (have-Makefile): Rename...
31539         (_have-Makefile): ...to this, for namespace consideration.
31540         (GNUmakefile.cfg): Include, if present.
31541         (_autoreconf): Define a default.
31542         (_is-dist-target): New rule for rebuilds to pick up intra-release
31543         version.
31544         (maint-cfg.mk): Rename...
31545         (cfg.mk): ...to this.
31546
31547 2008-03-18  Jim Meyering  <meyering@redhat.com>
31548
31549         New script and module: mktempd
31550         * MODULES.html.sh (maint+release support): Add mktempd.
31551         * build-aux/mktempd: New file.
31552         * modules/mktempd: New file.
31553
31554 2008-03-15  Jim Meyering  <meyering@redhat.com>
31555
31556         Undo last change.
31557         * lib/sha1.c, lib/md5.c: 63 != ~63.
31558         Reported by Andreas Schwab.
31559
31560         sha1.c, md5.c: Hoist a redundant expression.
31561         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
31562         "ctx->buflen" only once, before calling *_process_block.
31563         * lib/md5.c (md5_process_bytes): Likewise.
31564
31565 2008-03-14  Eric Blake  <ebb9@byu.net>
31566
31567         Bump copyright year in files generated by gnulib-tool.
31568         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
31569         gnulib-tool, rather than hard-coding it.
31570
31571         Fix 'gnulib-tool --version' output to work with git.
31572         * gnulib-tool (func_gnulib_dir): New function, extracted from...
31573         (startup): ...here.
31574         (func_version): Use it to invoke git-version-gen, rather than
31575         relying on CVS keyword expansion.  Modernize wording.
31576         (cvsdatestamp, last_checkin_date, version): Kill unused
31577         variables.
31578
31579 2008-03-12  Jim Meyering  <meyering@redhat.com>
31580
31581         Recognize optional cast of the argument to free.
31582         * build-aux/useless-if-before-free: Update regexps.
31583
31584         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31585
31586 2008-03-11  Bruno Haible  <bruno@clisp.org>
31587
31588         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31589         by a single package.
31590         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31591         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31592         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31593         Reported by Sam Steingold <sds@gnu.org>.
31594
31595 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31596
31597         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31598         repositories.
31599
31600 2008-03-11  Bruno Haible  <bruno@clisp.org>
31601
31602         Avoid conflicts between local macro definitions.
31603         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31604         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31605
31606 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31607             Bruno Haible  <bruno@clisp.org>
31608
31609         Make va_copy work with some version of xlc on AIX 5.1.
31610         * lib/stdarg.in.h: New file.
31611         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31612         On AIX, use a <stdarg.h> file substitute.
31613         * modules/stdarg (Files): Add lib/stdarg.in.h.
31614         (Depends-on): Add include_next.
31615         (Makefile.am): Build a stdarg.h substitute if requested.
31616         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31617
31618 2008-03-10  Bruno Haible  <bruno@clisp.org>
31619
31620         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31621         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31622         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31623
31624 2008-03-10  Bruno Haible  <bruno@clisp.org>
31625
31626         * modules/stdlib (Depends-on): Add include_next, remove
31627         absolute-header.
31628
31629 2008-03-09  Bruno Haible  <bruno@clisp.org>
31630
31631         * lib/freadahead.h (freadahead): Document more precisely.
31632         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31633         the sum of both buffer sizes.
31634         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31635         * NEWS: Document the change.
31636
31637 2008-03-09  Bruno Haible  <bruno@clisp.org>
31638
31639         Extend freadptr to return also the buffer size.
31640         * lib/freadptr.h (freadptr): Add sizep argument.
31641         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31642         (freadptr): Add sizep argument. Determine buffer size like freadahead
31643         does.
31644         * tests/test-freadptr.c: Don't include freadahead.h.
31645         (main): Adapt for new calling convention of freadptr.
31646         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31647         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31648         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31649         tests/test-freadptr2.sh.
31650         (Depends): Remove freadahead.
31651         (TESTS): Add test-freadptr2.sh.
31652         (check_PROGRAMS): Add test-freadptr2.
31653
31654 2008-03-09  Bruno Haible  <bruno@clisp.org>
31655
31656         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31657         Report and solution by Simon Josefsson.
31658
31659 2008-03-06  Bruno Haible  <bruno@clisp.org>
31660
31661         Make fflush after ungetc work on BSD platforms.
31662         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31663         * tests/test-fflush2.c: New file.
31664         * tests/test-fflush2.sh: New file.
31665         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31666         tests/test-fflush2.c.
31667         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31668         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31669
31670 2008-03-06  Eric Blake  <ebb9@byu.net>
31671
31672         Likewise for ftello.
31673         * modules/ftello (Dependencies): Add extensions.
31674         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31675
31676 2008-03-06  Bruno Haible  <bruno@clisp.org>
31677
31678         * modules/fseeko (Dependencies): Add extensions.
31679         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31680         Needed on glibc systems.
31681
31682 2008-03-06  Bruno Haible  <bruno@clisp.org>
31683
31684         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31685         email address.
31686         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31687
31688 2008-03-06  Bruno Haible  <bruno@clisp.org>
31689
31690         * users.txt: Add libgnupdf.
31691
31692 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31693
31694         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31695         (Header File Substitutes, Function Substitutes,
31696         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31697         (Build robot for gnulib): Fix typo.
31698
31699 2008-03-06  Bruno Haible  <bruno@clisp.org>
31700
31701         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31702         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31703
31704 2008-03-06  Bruno Haible  <bruno@clisp.org>
31705
31706         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31707         * doc/gnulib.texi: Include it.
31708
31709 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31710
31711         * modules/func (License): Change license to unlimited; there was
31712         no LGPL parts in the module anyway.
31713
31714 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31715
31716         * modules/__func__: Renamed to modules/func.
31717         * modules/__func__-tests: Renamed to modules/func-tests.
31718         * tests/test-__func__.c: Renamed to tests/test-func.c.
31719         * m4/__func__.m4: Renamed to m4/func.m4.
31720         * doc/gnulib.texi (__func__): Section renamed to func.
31721         Suggested by Eric Blake <ebb9@byu.net>.
31722
31723 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31724
31725         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31726         about __func__.  Make example self-contained.  Suggested by Eric
31727         Blake <ebb9@byu.net>.
31728
31729         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31730         Suggested by Eric Blake <ebb9@byu.net>.
31731
31732 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31733
31734         * modules/__func__: New file.
31735         * modules/__func__-tests: New file.
31736         * tests/test-__func__.c: New file.
31737         * m4/__func__.m4: New file.
31738         * doc/gnulib.texi (__func__): Document __func__ module.
31739
31740 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31741
31742         * modules/byteswap (License): Re-license as LGPLv2+.
31743
31744 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31745
31746         * doc/Makefile: Add pdf target.
31747
31748 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31749
31750         * modules/inline (License): Use 'unlimited', since there are only
31751         *.m4 files in this module.
31752
31753 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31754             Bruno Haible  <bruno@clisp.org>
31755
31756         Add support for HP C 7.1 on OpenVMS 8.3.
31757         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31758
31759 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31760
31761         Update VMS specifics.
31762         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31763
31764 2008-03-02  Jim Meyering  <meyering@redhat.com>
31765
31766         Remove the last dependency on the "free" module.
31767         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31768         Reported by Bob Proulx.
31769
31770         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31771
31772         Remove useless "if" tests before free.  Deprecate "free" module.
31773         * doc/posix-functions/free.texi: Mention that this
31774         module is no longer useful.
31775         * modules/free (Notice): Say this module is obsolete.
31776         * modules/readutmp (Depends-on): Remove free.
31777         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31778         * lib/putenv.c (putenv): Likewise.
31779         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31780         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31781         * tests/test-c-strcasestr.c (main): Likewise.
31782         * tests/test-c-strstr.c (main): Likewise.
31783         * tests/test-mbscasestr1.c (main): Likewise.
31784         * tests/test-mbscasestr2.c (main): Likewise.
31785         * tests/test-mbsstr1.c (main): Likewise.
31786         * tests/test-mbsstr2.c (main): Likewise.
31787         * tests/test-memmem.c (main): Likewise.
31788         * tests/test-strcasestr.c (main): Likewise.
31789         * tests/test-striconv.c (main): Likewise.
31790         * tests/test-striconveh.c (main): Likewise.
31791         * tests/test-striconveha.c (main): Likewise.
31792         * tests/test-strstr.c (main): Likewise.
31793
31794         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31795
31796         bootstrap: sync from coreutils again
31797         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31798
31799 2008-03-01  Jim Meyering  <meyering@redhat.com>
31800
31801         bootstrap: sync from coreutils
31802         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31803         also when the target doesn't exist.
31804
31805 2008-03-01  Eric Blake  <ebb9@byu.net>
31806
31807         Fix bugs in last patch.
31808         * lib/memchr2.c (memchr2): Fix typo.
31809         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31810         extension.
31811         Reported by Bruce Korb.
31812
31813         New module 'memchr2'.
31814         * modules/memchr2: New file.
31815         * modules/memchr2-tests: Likewise.
31816         * lib/memchr2.h: Likewise.
31817         * lib/memchr2.c: Likewise, based on memchr.c.
31818         * tests/test-memchr2.c: New test.
31819         * MODULES.html.sh (String handling): Add memchr2.
31820
31821 2008-02-29  Bruno Haible  <bruno@clisp.org>
31822
31823         * modules/freadseek-tests: New file.
31824         * tests/test-freadseek.sh: New file.
31825         * tests/test-freadseek.c: New file.
31826
31827         New module 'freadseek'.
31828         * modules/freadseek: New file.
31829         * lib/freadseek.h: New file.
31830         * lib/freadseek.c: New file.
31831         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
31832
31833 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31834
31835         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
31836         wydawca.
31837
31838         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
31839         program_invocation_name and program_invocation_short_name are
31840         present.
31841
31842 2008-02-28  Bruno Haible  <bruno@clisp.org>
31843
31844         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
31845         * tests/test-freadptr.sh: Also test non-seekable stdin.
31846
31847 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
31848
31849         * build-aux/bootstrap (source_base, m4_base)
31850         (doc_base, tests_base): New variables.
31851         (gnulib_tool_options): Do not hardcode base directories, use
31852         the above variables instead.
31853
31854 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
31855
31856         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
31857
31858 2008-02-28  Bruno Haible  <bruno@clisp.org>
31859
31860         * modules/freadptr-tests: New file.
31861         * tests/test-freadptr.sh: New file.
31862         * tests/test-freadptr.c: New file.
31863
31864         New module 'freadptr'.
31865         * modules/freadptr: New file.
31866         * lib/freadptr.h: New file.
31867         * lib/freadptr.c: New file.
31868         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
31869
31870 2008-02-26  Karl Berry  <karl@freefriends.org>
31871
31872         Sync from Libtool:
31873         * libltdl/argz.c (argz_add, argz_count): New functions.
31874         * libltdl/argz.in.h: Declare them.
31875         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
31876
31877 2008-02-22  Bruno Haible  <bruno@clisp.org>
31878
31879         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
31880         is a pointer type.  Needed for HP-UX 10.
31881         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
31882         * doc/posix-functions/gmtime_r.texi: Likewise.
31883         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31884
31885 2008-02-24  Bruno Haible  <bruno@clisp.org>
31886
31887         * modules/environ-tests: New file.
31888         * tests/test-environ.c: New file.
31889
31890         New module 'environ'.
31891         * modules/environ: New file.
31892         * lib/unistd.in.h (environ): New declaration.
31893         * m4/environ.m4: New file.
31894         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
31895         after use.
31896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
31897         HAVE_DECL_ENVIRON.
31898         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
31899         HAVE_DECL_ENVIRON.
31900         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
31901         wrong claim that 'environ' is missing on some systems.
31902         * modules/execute (Depends-on): Add environ.
31903         * lib/execute.c (environ): Remove fallback declaration.
31904         * modules/pipe (Depends-on): Add environ.
31905         * lib/pipe.c (environ): Remove fallback declaration.
31906         * modules/setenv (Depends-on): Add environ.
31907         * lib/setenv.c (environ): Remove fallback declaration.
31908         * modules/unsetenv (Depends-on): Add environ.
31909         * lib/unsetenv.c (environ): Remove fallback declaration.
31910         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
31911         m4/environ.m4.
31912         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
31913         (gl_PREREQ_UNSETENV): Likewise.
31914
31915 2008-02-24  Bruno Haible  <bruno@clisp.org>
31916
31917         * doc/posix-functions/environ.texi: Document the MacOS X problem.
31918
31919 2008-02-20  Bob Proulx  <bob@proulx.com>
31920
31921         Enable use of older two part flavor 'git describe'.
31922         * build-aux/git-version-gen: If using the older two part flavor of
31923         git version then recreate the third part now present in the
31924         newer three part flavor of git describe.
31925
31926 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
31927
31928         * lib/fts.c (fts_build): Typo correction to comment.
31929
31930 2008-02-17  Bruno Haible  <bruno@clisp.org>
31931
31932         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
31933         generating no-op conflicts.
31934
31935 2008-02-17  Bruno Haible  <bruno@clisp.org>
31936
31937         Speed up by 10%.
31938         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
31939         result_entries, rather than an index-based loop.
31940
31941 2008-02-17  Bruno Haible  <bruno@clisp.org>
31942
31943         Speed up by 25%.
31944         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
31945         'hashcode_cached'.
31946         (entry_create): New function.
31947         (entry_hashcode): Use the cached hashcode if possible.
31948         (read_changelog_file, try_split_merged_entry): Use entry_create.
31949
31950 2008-02-17  Bruno Haible  <bruno@clisp.org>
31951
31952         Speed up from O(n^2) to O(n) for long ChangeLog files.
31953         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
31954         (read_changelog_file): Change implementation of entries_reversed list
31955         to rbtreehash.
31956         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
31957
31958 2008-02-17  Bruno Haible  <bruno@clisp.org>
31959
31960         New option --split-merged-entry.
31961         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
31962         (find_paragraph_end, try_split_merged_entry): New functions.
31963         (long_options): Add option --split-merged-entry.
31964         (usage): Document option --split-merged-entry.
31965         (main): Implement option --split-merged-entry.
31966         Reported by Eric Blake.
31967
31968 2008-02-17  Bruno Haible  <bruno@clisp.org>
31969
31970         * lib/git-merge-changelog.c: Include c-strstr.h.
31971         (main): Support the "git pull --rebase" situation.
31972         * modules/git-merge-changelog (Depends-on): Add c-strstr.
31973         Reported by Eric Blake.
31974
31975 2008-02-16  Eric Blake  <ebb9@byu.net>
31976
31977         Avoid doubling \ in common case of "c-maybe" quoting style.
31978         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
31979         eliding outer quotes.
31980         * lib/quotearg.h: Document this.
31981         * tests/test-quotearg.c (result_strings, inputs, results_g)
31982         (flag_results, locale_results): Test it by adding a new string to
31983         each test group.
31984         (compare_strings): Test new string.
31985
31986 2008-02-13  Eric Blake  <ebb9@byu.net>
31987
31988         Avoid trigraph quoting in default output.
31989         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
31990         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
31991         unless explicitly requested.
31992         * tests/test-quotearg.c (flag_results, main): Add additional tests.
31993
31994 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
31995
31996         Don't rely on signed integer overflowing to negative value.
31997         * lib/getugroups.c (getugroups): Include <limits.h>.
31998         Instead, compare against INT_MAX, and increment only if the test passes.
31999
32000 2008-02-13  Jim Meyering  <meyering@redhat.com>
32001         and Eric Blake  <ebb9@byu.net>
32002
32003         Avoid shadowing warning and compile errors on Linux.
32004         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
32005         forwarding macros on Linux.
32006         (dcgettext): Define a stub, for Linux.
32007         (results_g, main): Avoid warnings.
32008
32009 2008-02-12  Eric Blake  <ebb9@byu.net>
32010
32011         Silence warning in last patch.
32012         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
32013
32014         Quotearg part 4: add tests, fix c-maybe colon quoting.
32015         * lib/quotearg.h: Improve documentation.
32016         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
32017         escapes when adding outer quotes.  When quoting trigraphs, use
32018         valid C notation.  When quoting NUL, omit extra characters if next
32019         character is not digit.  Alter prototype.
32020         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
32021         callers.
32022         * modules/quotearg-tests: New module.
32023         * tests/test-quotearg.c: New test.
32024
32025 2008-02-07  Eric Blake  <ebb9@byu.net>
32026
32027         Quotearg part 3: add flag to control outer quote elision.
32028         * lib/quotearg.h (c_maybe_quoting_style): New style.
32029         (enum quoting_flags): Better documentation of flags.
32030         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
32031         c-maybe style.
32032         (quotearg_buffer_restyled): Handle new flag to elide outer
32033         quotes.
32034
32035         Quotearg part 2: add flag that can control NUL elision.
32036         * lib/quotearg.h (set_quoting_flags): New prototype.
32037         * lib/quotearg.c (struct quoting_options): Add flag field.
32038         (set_quoting_flags): New function.
32039         (quotearg_buffer_restyled): Add flags parameter.
32040         (quotearg_alloc_mem): Set the flag if length cannot be returned.
32041         (quotearg_n_options): Set the flag, since length cannot be
32042         returned.
32043         (quoting_options_from_style): Default flags correctly.
32044
32045         Quotearg part 1: more wrappers, restore quotearg_char state.
32046         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
32047         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
32048         (quotearg_colon_mem): New wrappers.
32049         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
32050         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
32051         functions.
32052         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
32053         (quotearg_colon_mem): New functions.
32054
32055 2008-02-11  Bruno Haible  <bruno@clisp.org>
32056
32057         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
32058         library in the current directory: it does not work with parallel make.
32059         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32060
32061 2008-02-11  Bruno Haible  <bruno@clisp.org>
32062
32063         * .gitattributes: New file.
32064
32065 2008-02-11  Jim Meyering  <meyering@redhat.com>
32066
32067         useless-if-before-free: Fix reversed exit values.
32068         * build-aux/useless-if-before-free: Use correct values
32069         for EXIT_MATCH and EXIT_NO_MATCH.
32070
32071         * build-aux/useless-if-before-free: Close stdout carefully.
32072
32073 2008-02-10  Bruno Haible  <bruno@clisp.org>
32074
32075         New module 'git-merge-changelog'.
32076         * modules/git-merge-changelog: New file.
32077         * lib/git-merge-changelog.c: New file.
32078
32079 2008-02-10  Jim Meyering  <meyering@redhat.com>
32080
32081         useless-if-before-free: New option: --list (-l).
32082
32083         useless-if-before-free: Don't exit immediately upon open failure.
32084         * build-aux/useless-if-before-free: Exit 2 for errors.
32085         Upon failure to open a file, don't exit immediately.
32086         Rather, just warn and continue with any remaining files.
32087
32088 2008-02-10  Bruno Haible  <bruno@clisp.org>
32089
32090         New abstract list operation 'node_set_value'.
32091         * lib/gl_list.h (gl_list_node_set_value): New function.
32092         (struct gl_list_implementation): New field node_set_value.
32093         * lib/gl_list.c (gl_list_node_set_value): New function.
32094         * lib/gl_array_list.c (gl_array_node_set_value): New function.
32095         (gl_array_list_implementation): Update.
32096         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
32097         (gl_carray_list_implementation): Update.
32098         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
32099         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32100         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32101         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
32102         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32103         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32104         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32105         Update.
32106         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32107         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
32108         (gl_sublist_list_implementation): Update.
32109
32110 2008-02-10  Bruno Haible  <bruno@clisp.org>
32111
32112         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
32113         Needed when ELEMENT is #defined to 'some_type *'.
32114
32115 2008-02-10  Jim Meyering  <meyering@redhat.com>
32116
32117         New script and module: useless-if-before-free
32118         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
32119         * build-aux/useless-if-before-free: New file.
32120         * modules/useless-if-before-free: New file.
32121
32122         * build-aux/gitlog-to-changelog: Use committer date, not author date.
32123
32124         xstrtol_error: Fix typo.
32125         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
32126         s/exit_failure/exit_status/.
32127
32128 2008-02-09  Jim Meyering  <meyering@redhat.com>
32129
32130         New script and module: gitlog-to-changelog
32131         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
32132         * modules/gitlog-to-changelog: New file.
32133         * build-aux/gitlog-to-changelog: New file.
32134
32135 2008-02-08  Jim Meyering  <meyering@redhat.com>
32136
32137         Avoid two "parameter unused" warnings.
32138         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
32139         Mark "st" as used.
32140
32141         Use "git COMMAND", not "git-COMMAND".
32142         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
32143         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
32144         * build-aux/git-version-gen: Use "git status", not "git-status".
32145
32146 2008-02-07  Bruno Haible  <bruno@clisp.org>
32147
32148         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
32149         Avoids a crash on Windows Vista.
32150         Reported by Adam Strzelecki <ono@java.pl> via
32151         Simon Josefsson <simon@josefsson.org>.
32152
32153 2008-02-06  Bruno Haible  <bruno@clisp.org>
32154
32155         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
32156         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
32157         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
32158         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
32159         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32160         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32161         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
32162         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
32163         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32164         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32165         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32166         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32167         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32170         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
32171         left-adjust flag.
32172         * tests/test-snprintf-posix.h (test_function): Likewise.
32173         * tests/test-sprintf-posix.h (test_function): Likewise.
32174         * tests/test-vasprintf-posix.c (test_function): Likewise.
32175         * doc/posix-functions/fprintf.texi: Update.
32176         * doc/posix-functions/printf.texi: Update.
32177         * doc/posix-functions/snprintf.texi: Update.
32178         * doc/posix-functions/sprintf.texi: Update.
32179         * doc/posix-functions/vfprintf.texi: Update.
32180         * doc/posix-functions/vprintf.texi: Update.
32181         * doc/posix-functions/vsnprintf.texi: Update.
32182         * doc/posix-functions/vsprintf.texi: Update.
32183         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32184
32185 2008-02-06  Bruno Haible  <bruno@clisp.org>
32186
32187         Fix bug introduced on 2008-01-26.
32188         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
32189
32190 2008-02-06  Bruno Haible  <bruno@clisp.org>
32191
32192         Fix bug introduced on 2007-06-10.
32193         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
32194         !NEED_PRINTF_FLAG_ZERO.
32195
32196 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
32197
32198         getloadavg: use libperfstat on AIX5
32199         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
32200
32201 2008-02-03  Bruno Haible  <bruno@clisp.org>
32202
32203         * lib/diffseq.h: Add comments about required #includes.
32204         Reported by Michael Biggs <gnulib@doubleplum.net>.
32205
32206 2008-02-01  Bruno Haible  <bruno@clisp.org>
32207
32208         * users.txt: Add gnuit.
32209
32210 2008-01-31  Bruno Haible  <bruno@clisp.org>
32211
32212         * lib/md4.c (set_uint32): Mark as inline.
32213         * lib/md5.c (set_uint32): Likewise.
32214         * lib/sha1.c (set_uint32): Likewise.
32215         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
32216         * m4/md5.m4 (gl_MD5): Likewise.
32217         * m4/sha1.m4 (gl_SHA1): Likewise.
32218
32219 2008-01-31  Jim Meyering  <meyering@redhat.com>
32220
32221         Use "sizeof VAR", rather than a literal "4".
32222         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
32223         * lib/md4.c (md4_read_ctx): Likewise.
32224         * lib/sha1.c (sha1_read_ctx): Likewise.
32225
32226 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32227
32228         * tests/test-sha1.c: New file, based on test-md5.c.
32229
32230         * modules/crypto/sha1-tests: New file.
32231
32232 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32233
32234         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
32235
32236 2008-01-31  Jim Meyering  <meyering@redhat.com>
32237
32238         Prefer "sizeof v" over the equivalent "4".
32239         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
32240         * lib/md5.c (set_uint32): Likewise.
32241         * lib/sha1.c (set_uint32): Likewise.
32242
32243 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32244
32245         * lib/sha1.c (set_uint32): Mark function as static.
32246
32247 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32248
32249         md2: clarify comments to say that alignment is not required.
32250         * lib/md2.h: Remove warning about alignment in comment.
32251         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
32252         never been required.
32253
32254 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32255
32256         md4: adapt alignment constraint fix from sha1.
32257         * lib/md4.c (set_uint32): New function, from sha1.c
32258         (md4_read_ctx): Use it.
32259         (md4_finish_ctx): Doc fix.
32260         * lib/md4.h: Doc fix.
32261
32262 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32263
32264         md5: adapt alignment constraint fix from sha1.
32265         * lib/md5.c (set_uint32): New function, from sha1.c
32266         (md5_read_ctx): Use it.
32267         (md5_finish_ctx): Doc fix.
32268         * lib/md5.h: Doc fix.
32269
32270 2008-01-30  Peter Palfrader  <weasel@debian.org>
32271
32272         sha1: remove the result buffer alignment constraint
32273         * lib/sha1.c (set_uint32): New function.
32274         (sha1_read_ctx): Rewrite to remove the result buffer alignment
32275         constraint.
32276         (sha1_finish_ctx): Remove comment warning about alignment constraint.
32277         * lib/sha1.h: Likewise.
32278
32279 2008-01-30  Andreas Schwab  <schwab@suse.de>
32280             Bruno Haible  <bruno@clisp.org>
32281
32282         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
32283         correct definition of LDBL_MIN_EXP.
32284
32285 2008-01-30  Karl Berry  <karl@gnu.org>
32286
32287         * config/srclist-update: try to preserve x bit on updates.
32288         * config/srclistvars.sh: update for karl.
32289
32290 2008-01-29  Jim Meyering  <meyering@redhat.com>
32291
32292         vasnprintf.c: Avoid warning about unused label
32293         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
32294         "overflow" label definition and associated code with the
32295         same cpp condition that guards the sole use of that label.
32296
32297 2008-01-26  Bruno Haible  <bruno@clisp.org>
32298
32299         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
32300         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
32301         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
32302         * lib/isnanl-nolibm.h (isnanl): Likewise.
32303         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32304
32305 2008-01-26  Bruno Haible  <bruno@clisp.org>
32306
32307         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
32308         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
32309
32310 2008-01-26  Bruno Haible  <bruno@clisp.org>
32311
32312         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
32313         GCC >= 4.0 built-in.
32314         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
32315
32316 2008-01-26  Bruno Haible  <bruno@clisp.org>
32317
32318         Rename isnan, applicable to 'double' only, to isnand.
32319         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
32320         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
32321         (configure.ac): Update.
32322         (Include): Replace "isnan.h" with "isnand.h".
32323         * m4/isnand.m4: Renamed from m4/isnan.m4.
32324         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
32325         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
32326         instead of isnan.c.
32327         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
32328         instead of HAVE_ISNAN_IN_LIBC.
32329         (isnand): Renamed from isnan.
32330         * lib/isnand.c: New file.
32331         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
32332         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
32333         (Makefile.am): Update.
32334         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
32335         Include isnand.h instead of isnan.h.
32336         (main): Test isnand instead of isnan.
32337         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
32338         isnan-nolibm.
32339         * modules/frexp (Depends-on): Likewise.
32340         * modules/frexp-tests (Depends-on): Likewise.
32341         * modules/frexp-nolibm (Depends-on): Likewise.
32342         * modules/frexp-nolibm-tests (Depends-on): Likewise.
32343         * modules/isfinite (Depends-on): Likewise.
32344         * modules/round-tests (Depends-on): Likewise.
32345         * modules/signbit (Depends-on): Likewise.
32346         * modules/signbit-tests (Depends-on): Likewise.
32347         * modules/snprintf-posix (Depends-on): Likewise.
32348         * modules/sprintf-posix (Depends-on): Likewise.
32349         * modules/trunc-tests (Depends-on): Likewise.
32350         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32351         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32352         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32353         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32354         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32355         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32356         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32357         * modules/vasnprintf-posix (Depends-on): Likewise.
32358         * modules/vasprintf-posix (Depends-on): Likewise.
32359         * modules/vfprintf-posix (Depends-on): Likewise.
32360         * modules/vsnprintf-posix (Depends-on): Likewise.
32361         * modules/vsprintf-posix (Depends-on): Likewise.
32362         * lib/frexp.c: Include isnand.h instead of isnan.h.
32363         (ISNAN): Set to isnand instead of isnan.
32364         * lib/isfinite.c: Include isnand.h instead of isnan.h.
32365         (gl_isfinited): Use isnand instead of isnan.
32366         * lib/signbitd.c: Include isnand.h instead of isnan.h.
32367         (gl_signbitd): Use isnand instead of isnan.
32368         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
32369         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
32370         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
32371         (main): Use isnand instead of isnan.
32372         * tests/test-round1.c: Include isnand.h.
32373         (main): Use isnand instead of isnan.
32374         * tests/test-round2.c: Include isnand.h instead of isnan.h.
32375         (ISNAN): Set to isnand instead of isnan.
32376         * tests/test-trunc1.c: Include isnand.h.
32377         (main): Use isnand instead of isnan.
32378         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
32379         (equal): Use isnand instead of isnan.
32380         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
32381         isnand-nolibm.
32382         * NEWS: Mention the change.
32383
32384 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32385             Bruno Haible  <bruno@clisp.org>
32386
32387         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
32388         the GCC builtins for signbits are present and set
32389         REPLACE_SIGNBIT_USING_GCC if so.
32390         * lib/math.in.h (signbit): Define using GCC builtins if
32391         REPLACE_SIGNBIT_USING_GCC is set.
32392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
32393         REPLACE_SIGNBIT_USING_GCC.
32394         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
32395
32396 2008-01-25  Jim Meyering  <meyering@redhat.com>
32397
32398         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
32399         * lib/poll.c: Include <config.h>, not "config.h".
32400         * tests/test-getaddrinfo.c: Likewise.
32401
32402 2008-01-25  Simon Josefsson  <simon@josefsson.org>
32403
32404         * modules/sockets-tests: New file.
32405
32406 2008-01-24  Simon Josefsson  <simon@josefsson.org>
32407
32408         * modules/sockets: New module, can be used to call WSA_Startup and
32409         WSA_Cleanup when needed.
32410
32411         * lib/sockets.h, lib/sockets.c: New files.
32412
32413         * m4/sockets.m4: New file.
32414
32415         * tests/test-sockets.c: New file.
32416
32417 2008-01-19  Bruno Haible  <bruno@clisp.org>
32418
32419         * doc/posix-headers: Renamed from doc/headers.
32420         * doc/posix-functions: Renamed from doc/functions.
32421         * doc/gnulib.texi: Update.
32422
32423 2008-01-19  Bruno Haible  <bruno@clisp.org>
32424
32425         * doc/glibc-functions/strcasestr.texi: Include contents of
32426         doc/functions/strcasestr.texi, fixing the list of platforms.
32427         * doc/functions/strcasestr.texi: Remove file.
32428
32429 2008-01-19  Bruno Haible  <bruno@clisp.org>
32430
32431         * doc/glibc-functions/memmem.texi: Include contents of
32432         doc/functions/memmem.texi.
32433         * doc/functions/memmem.texi: Remove file.
32434
32435 2008-01-18  Bruno Haible  <bruno@clisp.org>
32436
32437         * doc/glibc-functions/*.texi: New files.
32438         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
32439         to use the new files.
32440
32441 2008-01-17  Bruno Haible  <bruno@clisp.org>
32442
32443         * tests/test-gethostname.c (main): Fix printf statement.
32444
32445 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32446
32447         * modules/gethostname-tests: New file.
32448
32449         * tests/test-gethostname.c: New file.
32450
32451 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32452
32453         * lib/gethostname.c: Include string.h unconditionally, strncpy is
32454         used by the UNAME case.  Reported by Bruno Haible
32455         <bruno@clisp.org>.
32456
32457 2008-01-17  Eric Blake  <ebb9@byu.net>
32458
32459         Convert c-strcasestr to be more efficient.
32460         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
32461         (Depends-on): Add c-strcase, remove malloca, strnlen.
32462         * tests/test-c-strcasestr.c (main): Enhance test.
32463         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
32464
32465 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32466
32467         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
32468         Use it in creating po/Makevars.
32469
32470 2008-01-15  Simon Josefsson  <simon@josefsson.org>
32471
32472         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
32473         Applications that requires it should initialize libgcrypt
32474         manually.
32475
32476 2008-01-16  Simon Josefsson  <simon@josefsson.org>
32477
32478         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
32479
32480 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32481
32482         Fix problem with getdate on mingw32 reported by Simon Josefsson
32483         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
32484         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
32485         tzname", when deciding whether to declare tzname.
32486         * lib/strftime.c (tzname): Likewise.
32487
32488 2008-01-15  Bruno Haible  <bruno@clisp.org>
32489
32490         Work around a MacOS X 10.5 bug in frexpl().
32491         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
32492         * doc/functions/frexpl.texi: Document the bug.
32493         Reported by Elias Pipping <pipping@gentoo.org>.
32494
32495 2008-01-14  Eric Blake  <ebb9@byu.net>
32496
32497         Touch up previous patch.
32498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
32499         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
32500
32501         Convert strcasestr module to use Two-Way algorithm.
32502         * modules/strcasestr-simple: New module, based on the old
32503         strcasestr, but with Two-Way rather than KMP.
32504         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
32505         * lib/string.in.h (rpl_strcasestr): Declare.
32506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
32507         performance.
32508         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
32509         * modules/string (Makefile.am): Support strcasestr.
32510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32511         * modules/strcasestr-tests (Depends-on): Check for alarm.
32512         * tests/test-strcasestr.c: Augment test.
32513         * lib/str-two-way.h: Clean up stray macro.
32514         * NEWS: Document new module.
32515         * MODULES.html.sh (string handling): Likewise.
32516         * doc/functions/strcasestr.texi: New file.
32517         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
32518         here, since it is not a POSIX function.
32519
32520 2008-01-14  Colin Watson  <cjwatson@debian.org>
32521             Bruno Haible  <bruno@clisp.org>
32522
32523         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
32524         works fine; if not, set REPLACE_STRSIGNAL.
32525         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
32526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32527         REPLACE_STRSIGNAL.
32528         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
32529         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
32530         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
32531
32532 2008-01-14  Bruno Haible  <bruno@clisp.org>
32533
32534         * modules/strsignal (Include): Change to <string.h>.
32535
32536 2008-01-14  Colin Watson  <cjwatson@debian.org>
32537
32538         * modules/argp (Notice): Add a notice recommending to change
32539         XGETTEXT_OPTIONS.
32540         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
32541
32542 2008-01-13  Colin Watson  <cjwatson@debian.org>
32543
32544         * modules/strsignal-tests: New file.
32545         * tests/test-strsignal.c: New file.
32546
32547         * lib/strsignal.c: New file, from glibc with modifications.
32548         * lib/siglist.h: New file, from glibc with modifications.
32549         * lib/string.in.h (strsignal): New declaration.
32550         * m4/strsignal.m4: New file.
32551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32552         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
32553         * modules/strsignal: New file.
32554         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
32555         HAVE_DECL_STRSIGNAL.
32556
32557 2008-01-13  Bruno Haible  <bruno@clisp.org>
32558
32559         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
32560         locale encoding is not ASCII. Needed for OpenBSD 4.0.
32561         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32562         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32563
32564 2008-01-13  Bruno Haible  <bruno@clisp.org>
32565
32566         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
32567         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
32568         * lib/argp.h (__attribute__): Likewise.
32569         * lib/c-stack.c (__attribute__): Likewise.
32570         * lib/error.h (__attribute__): Likewise.
32571         * lib/fts.c (__attribute__): Likewise.
32572         * lib/openat.h (__attribute__): Likewise.
32573         * lib/stdio.in.h (__attribute__): Likewise.
32574         * lib/string.in.h (__attribute__): Likewise.
32575         * lib/utimens.c (__attribute__): Likewise.
32576         * lib/vasnprintf.h (__attribute__): Likewise.
32577         * lib/xalloc.h (__attribute__): Likewise.
32578         * lib/xprintf.h (__attribute__): Likewise.
32579         * lib/xstrtol.h (__attribute__): Likewise.
32580         * lib/xvasprintf.h (__attribute__): Likewise.
32581
32582 2008-01-12  Bruno Haible  <bruno@clisp.org>
32583
32584         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32585         * doc/glibc-headers/a.out.texi: New file.
32586         * doc/glibc-headers/aliases.texi: New file.
32587         * doc/glibc-headers/alloca.texi: New file.
32588         * doc/glibc-headers/ar.texi: New file.
32589         * doc/glibc-headers/argp.texi: New file.
32590         * doc/glibc-headers/argz.texi: New file.
32591         * doc/glibc-headers/byteswap.texi: New file.
32592         * doc/glibc-headers/crypt.texi: New file.
32593         * doc/glibc-headers/endian.texi: New file.
32594         * doc/glibc-headers/envz.texi: New file.
32595         * doc/glibc-headers/err.texi: New file.
32596         * doc/glibc-headers/error.texi: New file.
32597         * doc/glibc-headers/execinfo.texi: New file.
32598         * doc/glibc-headers/fpu_control.texi: New file.
32599         * doc/glibc-headers/fstab.texi: New file.
32600         * doc/glibc-headers/fts.texi: New file.
32601         * doc/glibc-headers/getopt.texi: New file.
32602         * doc/glibc-headers/ieee754.texi: New file.
32603         * doc/glibc-headers/ifaddrs.texi: New file.
32604         * doc/glibc-headers/libintl.texi: New file.
32605         * doc/glibc-headers/mcheck.texi: New file.
32606         * doc/glibc-headers/mntent.texi: New file.
32607         * doc/glibc-headers/obstack.texi: New file.
32608         * doc/glibc-headers/paths.texi: New file.
32609         * doc/glibc-headers/printf.texi: New file.
32610         * doc/glibc-headers/pty.texi: New file.
32611         * doc/glibc-headers/resolv.texi: New file.
32612         * doc/glibc-headers/shadow.texi: New file.
32613         * doc/glibc-headers/sysexits.texi: New file.
32614         * doc/glibc-headers/ttyent.texi: New file.
32615
32616 2008-01-12  Jim Meyering  <meyering@redhat.com>
32617
32618         announce-gen: emit Gnulib's git-based version string.
32619         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32620         New option --gnulib-version=V, where V is expected to be
32621         the output of running git describe in the gnulib directory.
32622         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32623         not useful, and plan to stop publishing an xdelta file with each
32624         coreutils release.
32625
32626         * build-aux/announce-gen: Also check for lzma-compressed files.
32627
32628 2008-01-11  Bruno Haible  <bruno@clisp.org>
32629
32630         * tests/test-memmem.c (main): Increase maximum allowed time.
32631         * tests/test-strstr.c (main): Likewise.
32632
32633 2008-01-11  Bruno Haible  <bruno@clisp.org>
32634
32635         * doc/functions/memmem.texi: Add more precisions about platforms.
32636         * doc/functions/strstr.texi: Likewise.
32637
32638 2008-01-10  Eric Blake  <ebb9@byu.net>
32639
32640         * m4/strstr.m4: Delete cruft from copy-n-paste.
32641         Reported by Bruno Haible.
32642
32643 2008-01-10  Bruno Haible  <bruno@clisp.org>
32644
32645         Make c-strstr rely on strstr.
32646         * lib/c-strstr.c: Don't include str-kmp.h.
32647         (c_strstr): Define in terms of strstr.
32648         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32649         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32650
32651 2008-01-10  Bruno Haible  <bruno@clisp.org>
32652
32653         * doc/gnulib.texi (String Functions in C Locale): New section.
32654         * doc/c-ctype.texi: New file.
32655         * doc/c-strcase.texi: New file.
32656         * doc/c-strcaseeq.texi: New file.
32657         * doc/c-strcasestr.texi: New file.
32658         * doc/c-strstr.texi: New file.
32659         * doc/c-strtod.texi: New file.
32660         * doc/c-strtold.texi: New file.
32661
32662 2008-01-10  Eric Blake  <ebb9@byu.net>
32663
32664         * lib/relocatable.h: Fix a comment.
32665
32666 2008-01-10  Eric Blake  <ebb9@byu.net>
32667
32668         Share two-way algorithm.
32669         * lib/str-two-way.h: New file, merged from...
32670         * lib/memmem.c: ...here...
32671         * lib/strstr.c: ...and here.
32672         * modules/memmem (Files): Use it.
32673         * modules/strstr (Files): Likewise.
32674
32675         Avoid quadratic strstr implementations.
32676         * lib/strstr.c: New file.
32677         * m4/strstr.m4: Likewise.
32678         * modules/strstr: Likewise.
32679         * modules/strstr-tests: Likewise.
32680         * tests/test-strstr.c: Likewise.
32681         * lib/string.in.h (rpl_strstr): Declare.
32682         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32683         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32684         * modules/string (Makefile.am): Likewise.
32685         * MODULES.html.sh (string handling): Mention new module.
32686         * doc/functions/strstr.texi (strstr): Document the bug.
32687
32688 2008-01-10  Bruno Haible  <bruno@clisp.org>
32689
32690         * lib/relocatable.h (relocate): State whether result is freshly
32691         allocated or not.
32692         * lib/relocatable.c (relocate): Return a freshly allocated string
32693         instead of a pointer to a privately held string.
32694         Reported by Sylvain Beucler <beuc@gnu.org>.
32695
32696 2008-01-10  Colin Watson  <cjwatson@debian.org>
32697
32698         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32699         s/S_ISNLK/S_ISLNK/.
32700
32701 2008-01-09  Bruno Haible  <bruno@clisp.org>
32702
32703         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32704         and other files.
32705         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32706         if it's only a guess.
32707         * modules/memmem: Simplify by depending on memmem-simple.
32708
32709 2008-01-09  Bruno Haible  <bruno@clisp.org>
32710
32711         Work around OpenBSD 4.0 tdelete() bug.
32712         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32713         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32714         macros and don't redefine the enum values.
32715         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32716         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32717         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32718
32719 2008-01-09  Bruno Haible  <bruno@clisp.org>
32720
32721         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32722         (main): Don't perform the tests if setlocale did not install a UTF-8
32723         locale. Needed on OpenBSD 4.0.
32724         * modules/wcwidth-tests (Depends-on): Add localcharset.
32725
32726 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32727
32728         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32729         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32730         * NEWS: announce this.
32731         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32732
32733 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32734         and Eric Blake  <ebb9@byu.net>
32735
32736         Add memmem-simple module.
32737         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32738         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32739         * modules/memmem-simple: New file.
32740         * modules/memmem (Description): Tweak.
32741         * MODULES.html.sh (string handling): Mention new module.
32742         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32743         addressed by memmem-simple.
32744         * NEWS: Document the difference.
32745
32746 2008-01-09  Eric Blake  <ebb9@byu.net>
32747
32748         Give gcc some memmem optimization hints.
32749         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32750         (strcasestr): Declare as pure.
32751         * modules/memmem (Maintainer): Claim my implementation.
32752
32753 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32754
32755         Support AIX 6.1 and higher.
32756         * build-aux/config.libpath: Likewise.
32757         * build-aux/config.rpath: Likewise.
32758
32759 2008-01-08  Jim Meyering  <meyering@redhat.com>
32760             Bruno Haible  <bruno@clisp.org>
32761
32762         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32763         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32764         Reported by Peter Fales in
32765         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32766
32767 2008-01-08  Bruno Haible  <bruno@clisp.org>
32768
32769         * modules/unictype/category-of (Depends-on): Add
32770         unictype/category-none.
32771         * modules/unictype/category-and-tests (Depends-on): Add
32772         unictype/category-{L,N,Lu,Nd}.
32773         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32774         * modules/unictype/category-or-tests (Depends-on): Add
32775         unictype/category-{L,N}.
32776         * modules/unictype/category-name-tests (Depends-on): Add
32777         unictype/category-{Z,Nl}.
32778         Reported by Simon Josefsson.
32779
32780 2008-01-08  Bruno Haible  <bruno@clisp.org>
32781
32782         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32783         convention better.
32784         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32785         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32786         Reported by Peter Miller <millerp@canb.auug.org.au>.
32787
32788 2008-01-08  Eric Blake  <ebb9@byu.net>
32789
32790         Rewrite memmem to guarantee linear complexity without malloc.
32791         * lib/memmem.c (memmem): Use Two-Way rather than
32792         Knuth-Morris-Pratt, to allow O(1) space usage.
32793         (critical_factorization, two_way_short_needle)
32794         (two_way_long_needle): New functions.
32795         (knuth_morris_pratt): Delete.
32796         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32797         Add stdint.
32798         * tests/test-memmem.c (main): Add tests for periodic needle and
32799         sublinear performance.
32800         * doc/functions/memmem.texi (memmem): Document other deficiencies
32801         in cygwin and older glibc.
32802
32803 2008-01-08  Bruno Haible  <bruno@clisp.org>
32804
32805         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32806         augmentation.
32807
32808 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32809
32810         Add a configure time option: --disable-acl.
32811         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32812         AC_ARG_ENABLE(acl).
32813
32814 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32815
32816         * tests/test-localename.c: Don't include obsolete "setenv.h".
32817
32818         * modules/localename-tests (Depends-on): Need unsetenv.
32819
32820 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32821
32822         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32823
32824 2008-01-06  Colin Watson  <cjwatson@debian.org>
32825
32826         * users.txt: Add man-db.
32827
32828 2008-01-07  Bruno Haible  <bruno@clisp.org>
32829
32830         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
32831         previous section name.
32832
32833 2008-01-07  Bruno Haible  <bruno@clisp.org>
32834
32835         * lib/progname.c (set_program_name): Don't strip off a leading
32836         "lt-" prefix outside a .libs directory.
32837         Suggested by Paul Eggert.
32838
32839 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
32840             Bruno Haible  <bruno@clisp.org>
32841
32842         Improve memory cleanup in 'relocatable' module.
32843         * lib/relocatable.h (compute_curr_prefix): Change return type to
32844         'char *'.
32845         * lib/relocatable.c (compute_curr_prefix): Change return type to
32846         'char *'. Free curr_installdir after use.
32847         (relocate): Free curr_prefix_better after use.
32848         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
32849
32850 2008-01-01  Bruno Haible  <bruno@clisp.org>
32851
32852         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
32853         failure on older glibc systems.
32854         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32855
32856 2008-01-05  Eric Blake  <ebb9@byu.net>
32857
32858         Avoid quadratic system memmem.
32859         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
32860         Reported by Ralf Wildenhues.
32861
32862         Fix memmem test for mingw.
32863         * modules/memmem-tests (configure.ac): Check for alarm.
32864         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
32865         it.
32866         * doc/functions/memmem.texi: New file.
32867         * doc/gnulib.texi (Function Substitutes): Add memmem.
32868         Reported by Bruno Haible.
32869
32870 2008-01-04  Bruno Haible  <bruno@clisp.org>
32871
32872         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
32873         Require gl_HEADER_STRINGS_H_DEFAULTS, not
32874         gl_HEADER_STRING_H_DEFAULTS.
32875
32876 2008-01-04  Eric Blake  <ebb9@byu.net>
32877
32878         Shorten duration of memmem test.
32879         * tests/test-memmem.c (main): Use alarm to declare failure if test
32880         is taking too long.
32881         Reported by Ralf Wildenhues.
32882
32883 2007-12-21  Simon Josefsson  <simon@josefsson.org>
32884
32885         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
32886         string, needed by strerror.
32887
32888 2008-01-03  Colin Watson  <cjwatson@debian.org>
32889             Bruno Haible  <bruno@clisp.org>
32890
32891         * doc/gnulib-tool.texi (Localization): New section.
32892
32893 2008-01-02  Bruno Haible  <bruno@clisp.org>
32894
32895         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
32896         variables to 'unsigned char *' type.
32897         Reported by Paul Eggert.
32898
32899 2008-01-02  Jim Meyering  <jim@meyering.net>
32900
32901         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
32902
32903 2007-12-31  Jim Meyering  <jim@meyering.net>
32904
32905         Avoid use of private FTS type name.
32906         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
32907
32908 2007-12-30  Karl Berry  <karl@gnu.org>
32909
32910         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
32911         work around defect in Texinfo and/or the standalone Info browser.
32912
32913 2007-12-30  Bruno Haible  <bruno@clisp.org>
32914
32915         Unify 5 copies of the KMP code.
32916         * lib/str-kmp.h: New file.
32917         * lib/c-strcasestr.c: Include str-kmp.h.
32918         (knuth_morris_pratt): Remove function.
32919         (c_strcasestr): Update.
32920         * lib/c-strstr.c: Include str-kmp.h.
32921         (knuth_morris_pratt): Remove function.
32922         (c_strcasestr): Update.
32923         * lib/mbscasestr.c: Include str-kmp.h.
32924         (knuth_morris_pratt_unibyte): Remove function.
32925         * lib/mbsstr.c: Include str-kmp.h.
32926         (knuth_morris_pratt_unibyte): Remove function.
32927         * lib/strcasestr.c: Include str-kmp.h.
32928         (knuth_morris_pratt): Remove function.
32929         (strcasestr): Update.
32930         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
32931         * modules/c-strstr (Files): Likewise.
32932         * modules/mbscasestr (Files): Likewise.
32933         * modules/mbsstr (Files): Likewise.
32934         * modules/strcasestr (Files): Likewise.
32935         Suggested by Paul Eggert.
32936
32937 2007-12-30  Bruno Haible  <bruno@clisp.org>
32938
32939         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
32940         defined.
32941
32942 2007-12-30  Bruno Haible  <bruno@clisp.org>
32943
32944         * lib/xmalloca.h: Include xalloc.h.
32945         (xnmalloca): New macro.
32946
32947 2007-12-30  Bruno Haible  <bruno@clisp.org>
32948
32949         * lib/malloca.h (nmalloca): New macro.
32950         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
32951         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
32952         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
32953         knuth_morris_pratt_multibyte): Likewise.
32954         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
32955         knuth_morris_pratt_multibyte): Likewise.
32956         * lib/memmem.c (knuth_morris_pratt): Likewise.
32957         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
32958
32959 2007-12-25  Bruno Haible  <bruno@clisp.org>
32960
32961         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
32962         * lib/glob.c: Don't include openat.h.
32963         (link_exists2_p): Add back the code that deals with the
32964         !GLOB_ALTDIRFUNC case.
32965         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
32966         let it do the filename concatenation.
32967         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
32968         * modules/glob (Depends-on): Remove openat.
32969
32970 2007-12-31  Bruno Haible  <bruno@clisp.org>
32971
32972         * modules/dirfd (License): Change to LGPLv2+.
32973         Approved by Jim Meyering.
32974
32975 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32976
32977         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
32978         when multiplying M by sizeof (size_t).
32979
32980 2007-12-10  Martin Lambers  <marlam@marlam.de>
32981
32982         Override getpagesize on mingw.
32983         * lib/getpagesize.c: New file.
32984         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
32985         * modules/getpagesize (Files): Add lib/getpagesize.c.
32986         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
32987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32988         REPLACE_GETPAGESIZE.
32989         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
32990
32991 2007-12-25  Bruno Haible  <bruno@clisp.org>
32992
32993         * modules/localcharset (Notice): New field.
32994         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
32995         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
32996
32997 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
32998             Bruno Haible  <bruno@clisp.org>
32999
33000         Avoid using the syntax symbol() in formatted documentation.
33001         * MODULES.html.sh (func_module): When replacing symbol() with a
33002         hyperlink, remove the parentheses. Show an error if some remain.
33003         Recognize and render the '...' syntax.
33004         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
33005         Rework. Add paragraph about GCC's inlining.
33006         * doc/alloca.texi: Likewise.
33007         * doc/error.texi: Remove parentheses from symbol reference.
33008         * doc/gnulib-intro.texi: Likewise.
33009         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
33010         * modules/fnmatch (Description): Reword to say "the ... function".
33011         * modules/full-read (Description): Likewise.
33012         * modules/full-write (Description): Likewise.
33013         * modules/safe-read (Description): Likewise.
33014         * modules/safe-write (Description): Likewise.
33015         * modules/strchrnul (Description): Likewise.
33016         * modules/trim (Description): Likewise.
33017         * modules/error (Description): Remove parentheses from symbol
33018         references.
33019         * modules/verror (Description): Likewise.
33020         Reported by Karl Berry.
33021
33022 2007-12-25  Bruno Haible  <bruno@clisp.org>
33023
33024         Fixup after 2007-10-16 commit.
33025         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
33026
33027 2007-12-24  Bruno Haible  <bruno@clisp.org>
33028
33029         Make --enable-relocatable work with DESTDIR.
33030         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
33031         to compute installdir from destprog.
33032         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
33033         also set the RELOC_DESTDIR variable.
33034         Reported by Левашев Иван <octagram@bluebottle.com>.
33035
33036 2007-12-24  Bruno Haible  <bruno@clisp.org>
33037
33038         Fix link error due to xalloc_die().
33039         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
33040         of xreadlink.
33041         * lib/relocwrapper.c: Update comments.
33042         * build-aux/install-reloc: Remove xreadlink.c from file list.
33043         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
33044         xreadlink.c.
33045         Reported by Левашев Иван <octagram@bluebottle.com>.
33046
33047 2007-12-24  Bruno Haible  <bruno@clisp.org>
33048
33049         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
33050         * lib/setenv.h: Remove file.
33051         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
33052         lib/setenv.h.
33053         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
33054         (Depends-on): Add stdlib.
33055         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
33056         gl_FUNC_UNSETENV.
33057         (Include): Replace setenv.h with <stdlib.h>.
33058         * modules/unsetenv: New file.
33059         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
33060         * lib/unsetenv.c: Include <stdlib.h> first.
33061         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
33062         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
33063         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
33064         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
33065         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
33066         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
33068         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33069         * doc/functions/unsetenv.texi: Update.
33070         * modules/xsetenv (Depends-on): Add unsetenv.
33071         * modules/getdate (Depends-on): Likewise.
33072         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
33073         * lib/xsetenv.c: Don't include setenv.h.
33074         * lib/getdate.y: Likewise.
33075         * lib/relocwrapper.c: Likewise.
33076         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
33077         (Depends-on): Add stdlib.
33078         * NEWS: Mention the changes.
33079         Reported by Левашев Иван <octagram@bluebottle.com>.
33080
33081 2007-12-23  Bruno Haible  <bruno@clisp.org>
33082
33083         * lib/memmem.c (memmem): Use lowercase variable names. Tab
33084         indentation.
33085
33086 2007-12-23  Bruno Haible  <bruno@clisp.org>
33087
33088         * lib/c-strcasestr.c: Add more comments.
33089         * lib/c-strstr.c: Likewise.
33090         * lib/mbscasestr.c: Likewise.
33091         * lib/mbsstr.c: Likewise.
33092         * lib/strcasestr.c: Likewise.
33093         * lib/memmem.c: Likewise.
33094
33095 2007-12-23  Bruno Haible  <bruno@clisp.org>
33096
33097         * tests/test-memmem.c: Include <string.h> first.
33098
33099 2007-12-22  Bruno Haible  <bruno@clisp.org>
33100
33101         * gnulib-tool (func_create_testdir): Change $auxdir while generating
33102         the contents of $testsbase.
33103         Reported by Ralf Wildenhues.
33104
33105 2007-12-22  Bruno Haible  <bruno@clisp.org>
33106
33107         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
33108         two variables local_ldadd_before, local_ldadd_last.
33109
33110 2007-12-20  Eric Blake  <ebb9@byu.net>
33111
33112         Work around circular library issue when cross-compiling.
33113         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
33114         that progname.o does not need to pull in rpl_memcmp.
33115
33116 2007-12-19  Eric Blake  <ebb9@byu.net>
33117
33118         Fix memmem to avoid O(n^2) worst-case complexity.
33119         * lib/memmem.c (knuth_morris_pratt): New function.
33120         (memmem): Use it if first few naive iterations fail.
33121         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
33122         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
33123         * modules/memchr (License): Likewise.
33124         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
33125         malloca.
33126         * tests/test-memmem.c: Rewrite, borrowing ideas from
33127         test-mbsstr1.c; the old version wouldn't even compile!
33128         * modules/memmem-tests: New file.
33129         * lib/string.in.h (rpl_memmem): Add declaration.
33130         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
33131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
33132         REPLACE_MEMMEM.
33133
33134 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33135
33136         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
33137         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
33138         before any system include files, and undef after them all.  This
33139         should fix a problem on VMS reported by John E. Malmberg in
33140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
33141
33142 2007-12-17  Eric Blake  <ebb9@byu.net>
33143
33144         Revert addition of verify, for BSD/OS.
33145         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
33146         can't handle large files, for the sake of obsolete platforms.
33147         * modules/fseeko (Depends-on): Remove verify.
33148         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
33149         * doc/functions/ftello.texi (ftello): Likewise.
33150         * doc/functions/fgetpos.texi (fgetpos): Likewise.
33151         Reported by Larry Jones.
33152
33153 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
33154
33155         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
33156         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
33157
33158 2007-12-17  Jim Meyering  <meyering@redhat.com>
33159
33160         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
33161         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
33162         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
33163         * modules/getcwd (Depends-on): Add openat.
33164         Reported by Petr Salinger.
33165
33166 2007-12-17  Bruno Haible  <bruno@clisp.org>
33167
33168         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
33169         avoid a segmentation fault of the configure test on x86_64 systems.
33170
33171 2007-12-15  Jim Meyering  <meyering@redhat.com>
33172
33173         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
33174
33175 2007-12-13  Eric Blake  <ebb9@byu.net>
33176
33177         Another fseek test.
33178         * tests/test-fseek.c (main): Also test ungetc handling.
33179         * tests/test-fseeko.c (main): Likewise.
33180         * modules/fseeko (Depends-on): Add verify.
33181         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
33182         large.
33183         Reported by Larry Jones.
33184
33185         Fix fseeko on mingw.
33186         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
33187         seek.
33188
33189         Beef up fseek tests.
33190         * tests/test-fseek.c (main): Also test eof handling.
33191         * tests/test-fseeko.c (main): Likewise.
33192         Reported by Larry Jones.
33193
33194 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
33195
33196         Fix fseeko on BSD-based platforms.
33197         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
33198         successful seek.
33199
33200 2007-12-12  Eric Blake  <ebb9@byu.net>
33201
33202         Allow circular dependency of separate libtests.a
33203         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
33204         when use_libtests.
33205
33206 2007-12-11  Eric Blake  <ebb9@byu.net>
33207
33208         Fix bug with -0.0L in previous patch.
33209         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
33210         * tests/test-isnan.c (main): Also test on zeroes.
33211         * tests/test-isnanf.c (main): Likewise.
33212         * tests/test-isnanl.h (main): Likewise.
33213
33214         Detect pseudo-denormals on x86 even when cross-compiling.
33215         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
33216         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
33217         invalid bit patterns that happen to satisfy ==.
33218
33219         Avoid link failures with separate libtests.a.
33220         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
33221         last, to satisfy circular dependencies.
33222
33223 2007-12-11  Eric Blake  <ebb9@byu.net>
33224         and Bruno Haible  <bruno@clisp.org>
33225
33226         Fix OpenBSD 4.0 <float.h> handling of long double.
33227         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
33228         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
33229         * doc/headers/float.texi (float.h): Document OpenBSD bug.
33230
33231 2007-12-11  Jim Meyering  <meyering@redhat.com>
33232
33233         * users.txt: Add libvirt.
33234
33235         Support versions of autoconf prior to 2.59c.
33236         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
33237         if it is not already defined.
33238
33239 2007-12-09  Bruno Haible  <bruno@clisp.org>
33240
33241         Let 'gnulib-tool --import' collect sources needed for the tests in
33242         tests/ rather than in lib/.
33243         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
33244         argument. If true, add rules to generate libtests.a, and put libtests.a
33245         into $(LDADD). Consider source files in subdirectories and set
33246         uses_subdirs.
33247         (func_emit_initmacro_start, func_emit_initmacro_end,
33248         func_emit_initmacro_done): Pass all arguments explicitly.
33249         (func_import): Determine two module lists main_modules,
33250         testsrelated_modules. Determine use_libtests. Determine two variables
33251         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
33252         instead of just sed_transform_lib_file. Determine two variables
33253         main_files and testsrelated_files. Compute 'files' as the union of
33254         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
33255         func_add_or_update. In the generated gnulib-comp.m4, collect the
33256         object files for tests/ in different variables than those for lib/.
33257         Substitute LIBTESTS_LIBDEPS.
33258         (func_create_testdir): Combine the uses_subdirs results from
33259         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
33260
33261 2007-12-09  Bruno Haible  <bruno@clisp.org>
33262
33263         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
33264         the build-aux directory.
33265
33266 2007-12-09  Bruno Haible  <bruno@clisp.org>
33267
33268         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
33269         introduced on 2006-09-09.
33270
33271 2007-12-07  Jim Meyering  <meyering@redhat.com>
33272
33273         Let these macros work also with autoconf-2.59.
33274         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
33275         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
33276         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
33277
33278 2007-12-06  Jim Meyering  <meyering@redhat.com>
33279
33280         Avoid a configure-time syntax error in gl_FUNC_ACL.
33281         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
33282         function in each branch, before testing the cache variable.
33283
33284 2007-12-04  Eric Blake  <ebb9@byu.net>
33285
33286         Make scripts executable.
33287         * build-aux/config.guess: Add execute permissions.
33288         * build-aux/config.sub: Likewise.
33289         * build-aux/gendocs.sh: Likewise.
33290
33291         Fix frexp on mingw.
33292         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
33293         cross-compiling.
33294         * doc/functions/frexp.texi (frexp): Document the bug.
33295
33296         Make cygwin fseeko check more reliable.
33297         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
33298         version numbers, rather than unrelated feature check.
33299         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
33300         * doc/functions/ftello.texi (ftello): Likewise.
33301         Reported by Bruno Haible.
33302
33303         * m4/strerror.m4: Bump version number.
33304
33305 2007-12-03  Bruno Haible  <bruno@clisp.org>
33306
33307         * doc/functions/mprotect.texi: Mention the mingw problem.
33308
33309 2007-12-03  Eric Blake  <ebb9@byu.net>
33310
33311         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
33312         REPLACE_STRERROR is initialized before this macro.
33313
33314 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
33315
33316         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
33317         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
33318         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
33319         put -lsec in even for programs other than 'ls'.  This fixes a problem
33320         for gettext reported by Bruno Haible in
33321         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
33322         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
33323         Add support for Solaris 10.  This isn't efficient, but should get the
33324         job done for now.
33325
33326 2007-12-03  James Youngman  <jay@gnu.org>
33327
33328         * doc/regexprops-generic.texi: change "an close-group" to "a
33329         close-group" and "illegal" to "not allowed".
33330
33331 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33332
33333         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
33334         pr_byname.h. Needed for the rare case when the maintainer has done
33335         "make maintainer-clean" in the source directory and then attempts a
33336         build outside the source directory.
33337         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
33338         scripts_byname.h.
33339
33340 2007-12-02  Martin Lambers <marlam@marlam.de>
33341             Bruno Haible  <bruno@clisp.org>
33342
33343         * lib/getpagesize.h: Remove file.
33344         * lib/unistd.in.h: Include declaration of getpagesize here.
33345         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
33346         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
33347         HAVE_SYS_PARAM_H.
33348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
33349         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33350         * modules/getpagesize (Files): Remove lib/getpagesize.h.
33351         (Depends-on): Add unistd.
33352         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33353         (Include): Use <unistd.h> instead of getpagesize.h.
33354         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
33355         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33356         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
33357         gl_GETPAGESIZE invocation, already handled by module dependency.
33358         * lib/pagealign_alloc.c: Don't include getpagesize.h.
33359
33360 2007-12-02  Bruno Haible  <bruno@clisp.org>
33361
33362         * modules/strings-tests: New file.
33363         * tests/test-strings.c: New file.
33364
33365         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
33366         * lib/strings.in.h: New file.
33367         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
33368         * m4/strings_h.m4: New file.
33369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
33370         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
33371         * modules/strings: New file.
33372         * modules/string (Makefile.am): Update.
33373         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
33374         Reported by Karl Berry.
33375
33376 2007-12-01  Eric Blake  <ebb9@byu.net>
33377
33378         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
33379         accomodate fix in cygwin 1.5.25.
33380
33381 2007-12-01  Jim Meyering  <meyering@redhat.com>
33382
33383         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
33384         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
33385         that would inhibit utf8-optimization of a regexp containing line-
33386         or buffer-anchors, e.g., `^', `$'.
33387
33388 2007-11-30  Bruno Haible  <bruno@clisp.org>
33389
33390         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
33391         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
33392         glthread_recursive_lock_init.
33393         * lib/lock.c (glthread_recursive_lock_init)
33394         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
33395         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33396
33397 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33398
33399         New function qset_acl, like set_acl but with syscall semantics.
33400         * lib/acl.h (qset_acl): New decl.
33401         * lib/acl.c (qset_acl): New function.
33402         (set_acl): Use new function.  Use more-consistent diagnostics.
33403
33404 2007-11-28  Jim Meyering  <meyering@redhat.com>
33405
33406         * modules/physmem (License): Change from GPL to LGPLv2+.
33407
33408 2007-11-26  Bruno Haible  <bruno@clisp.org>
33409
33410         * lib/vasnprintf.c (decode_long_double): Don't abort if the
33411         'long double' type has excess precision.
33412         Reported by Jim Meyering in
33413         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
33414
33415 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33416
33417         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
33418         Sync from <http://gnu.org/licenses>.
33419         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
33420         with license text from same location.
33421         * doc/maintain.texi, doc/standards.texi:  Sync from
33422         <http://savannah.gnu.org/projects/gnustandards>.
33423
33424 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
33425         and Jim Meyering  <meyering@redhat.com>
33426
33427         Adjust getdate' grammar to accept a slightly more regular language.
33428         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
33429         Before, the former was rejected.
33430         * lib/getdate.y (digits_to_date_time): New function, factored
33431         out of ...
33432         (number): ...here.  Just call digits_to_date_time.
33433         (hybrid): New non-terminal to handle an <unsigned number,
33434         signed relative offset> sequence consistently.
33435
33436 2007-11-18  Jim Meyering  <meyering@redhat.com>
33437
33438         Pull my changes from coreutils:
33439         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
33440         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
33441         use of $gnulib_tool_option_extras, so that it's separated from the
33442         preceding argument.
33443
33444         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
33445         * build-aux/bootstrap (cp_mark_as_generated): Create any required
33446         parent destination directories before copying a file into place.
33447
33448 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33449
33450         bootstrap: work also with 4-argument variant of AC_INIT
33451         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
33452
33453 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33454
33455         Port test-getaddrinfo to Solaris.
33456         Problem reported by Bruno Haible in
33457         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
33458         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
33459         explanation of setting 'hints'.
33460         Don't reject an implementation merely because it returns EAI_SERVICE.
33461         (EAI_SERVICE): Define to 0 if not defined.
33462
33463 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33464
33465         The license of gnu-make and posix-shell is now "GPLed build tool".
33466         * modules/gnu-make (License): Likewise.
33467         * modules/posix-shell (License): Likewise.
33468
33469         New module posix-shell, for determining a POSIX shell
33470         or perhaps something that is close enough to a POSIX shell.
33471         * m4/posix-shell.m4: New file.
33472         * modules/posix-shell: New file.
33473
33474         * MODULES.html.sh: Mention new module.
33475
33476         New module gnu-make, for determining whether we're using GNU Make.
33477         * m4/gnu-make.m4: New file.
33478         * modules/gnu-make: New file.
33479         * MODULES.html.sh: Mention new module.
33480
33481 2007-11-14  Jim Meyering  <meyering@redhat.com>
33482
33483         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
33484         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
33485         use this macro to create a function _definition_.
33486         Remove useless "#undef ARGMATCH_DIE".
33487
33488 2007-11-14  Bruno Haible  <bruno@clisp.org>
33489
33490         * lib/config.charset: Update for OpenBSD 4.1.
33491         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
33492
33493 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
33494
33495         Document 64-bit #if problems in stdint.texi.
33496         * doc/headers/stdint.texi (stdint.h): Mention problems with
33497         64-bit-#if, and how to work around them.
33498
33499         Don't insist on 'long long int' support in the preprocessor.  It
33500         breaks too many things.  For example, PRIdMAX still uses a 'long
33501         long int' format with the latest Sun compiler, even though
33502         HAVE_LONG_LONG_INT isn't defined due to that compiler's
33503         preprocessor problem.  This causes the latest coreutils to dump
33504         core on Solaris 10 sparc with the Sun C compiler.
33505         Instead, fix the 2007-10-16 problem in a different way, by evaluating
33506         the troublesome expressions at configure-time, not at #if-time.
33507         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
33508         preprocessor.
33509         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
33510         compile-time C checks, done at 'configure'-time.
33511         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
33512         * modules/inttypes (Makefile): Substitute the new symbols that
33513         gl_INTTYPES_H now generates.
33514         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
33515
33516 2007-11-12  Bruno Haible  <bruno@clisp.org>
33517
33518         Tests for Unicode character classification functions.
33519
33520         * modules/unictype/bidicategory-byname-tests: New file.
33521         * modules/unictype/bidicategory-name-tests: New file.
33522         * modules/unictype/bidicategory-of-tests: New file.
33523         * modules/unictype/bidicategory-test-tests: New file.
33524         * modules/unictype/block-list-tests: New file.
33525         * modules/unictype/block-of-tests: New file.
33526         * modules/unictype/block-test-tests: New file.
33527         * modules/unictype/category-C-tests: New file.
33528         * modules/unictype/category-Cc-tests: New file.
33529         * modules/unictype/category-Cf-tests: New file.
33530         * modules/unictype/category-Cn-tests: New file.
33531         * modules/unictype/category-Co-tests: New file.
33532         * modules/unictype/category-Cs-tests: New file.
33533         * modules/unictype/category-L-tests: New file.
33534         * modules/unictype/category-Ll-tests: New file.
33535         * modules/unictype/category-Lm-tests: New file.
33536         * modules/unictype/category-Lo-tests: New file.
33537         * modules/unictype/category-Lt-tests: New file.
33538         * modules/unictype/category-Lu-tests: New file.
33539         * modules/unictype/category-M-tests: New file.
33540         * modules/unictype/category-Mc-tests: New file.
33541         * modules/unictype/category-Me-tests: New file.
33542         * modules/unictype/category-Mn-tests: New file.
33543         * modules/unictype/category-N-tests: New file.
33544         * modules/unictype/category-Nd-tests: New file.
33545         * modules/unictype/category-Nl-tests: New file.
33546         * modules/unictype/category-No-tests: New file.
33547         * modules/unictype/category-P-tests: New file.
33548         * modules/unictype/category-Pc-tests: New file.
33549         * modules/unictype/category-Pd-tests: New file.
33550         * modules/unictype/category-Pe-tests: New file.
33551         * modules/unictype/category-Pf-tests: New file.
33552         * modules/unictype/category-Pi-tests: New file.
33553         * modules/unictype/category-Po-tests: New file.
33554         * modules/unictype/category-Ps-tests: New file.
33555         * modules/unictype/category-S-tests: New file.
33556         * modules/unictype/category-Sc-tests: New file.
33557         * modules/unictype/category-Sk-tests: New file.
33558         * modules/unictype/category-Sm-tests: New file.
33559         * modules/unictype/category-So-tests: New file.
33560         * modules/unictype/category-Z-tests: New file.
33561         * modules/unictype/category-Zl-tests: New file.
33562         * modules/unictype/category-Zp-tests: New file.
33563         * modules/unictype/category-Zs-tests: New file.
33564         * modules/unictype/category-and-not-tests: New file.
33565         * modules/unictype/category-and-tests: New file.
33566         * modules/unictype/category-byname-tests: New file.
33567         * modules/unictype/category-name-tests: New file.
33568         * modules/unictype/category-none-tests: New file.
33569         * modules/unictype/category-of-tests: New file.
33570         * modules/unictype/category-or-tests: New file.
33571         * modules/unictype/category-test-withtable-tests: New file.
33572         * modules/unictype/combining-class-tests: New file.
33573         * modules/unictype/ctype-alnum-tests: New file.
33574         * modules/unictype/ctype-alpha-tests: New file.
33575         * modules/unictype/ctype-blank-tests: New file.
33576         * modules/unictype/ctype-cntrl-tests: New file.
33577         * modules/unictype/ctype-digit-tests: New file.
33578         * modules/unictype/ctype-graph-tests: New file.
33579         * modules/unictype/ctype-lower-tests: New file.
33580         * modules/unictype/ctype-print-tests: New file.
33581         * modules/unictype/ctype-punct-tests: New file.
33582         * modules/unictype/ctype-space-tests: New file.
33583         * modules/unictype/ctype-upper-tests: New file.
33584         * modules/unictype/ctype-xdigit-tests: New file.
33585         * modules/unictype/decimal-digit-tests: New file.
33586         * modules/unictype/digit-tests: New file.
33587         * modules/unictype/mirror-tests: New file.
33588         * modules/unictype/numeric-tests: New file.
33589         * modules/unictype/property-alphabetic-tests: New file.
33590         * modules/unictype/property-ascii-hex-digit-tests: New file.
33591         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33592         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33593         * modules/unictype/property-bidi-block-separator-tests: New file.
33594         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33595         * modules/unictype/property-bidi-common-separator-tests: New file.
33596         * modules/unictype/property-bidi-control-tests: New file.
33597         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33598         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33599         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33600         * modules/unictype/property-bidi-european-digit-tests: New file.
33601         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33602         * modules/unictype/property-bidi-left-to-right-tests: New file.
33603         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33604         * modules/unictype/property-bidi-other-neutral-tests: New file.
33605         * modules/unictype/property-bidi-pdf-tests: New file.
33606         * modules/unictype/property-bidi-segment-separator-tests: New file.
33607         * modules/unictype/property-bidi-whitespace-tests: New file.
33608         * modules/unictype/property-byname-tests: New file.
33609         * modules/unictype/property-combining-tests: New file.
33610         * modules/unictype/property-composite-tests: New file.
33611         * modules/unictype/property-currency-symbol-tests: New file.
33612         * modules/unictype/property-dash-tests: New file.
33613         * modules/unictype/property-decimal-digit-tests: New file.
33614         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33615         * modules/unictype/property-deprecated-tests: New file.
33616         * modules/unictype/property-diacritic-tests: New file.
33617         * modules/unictype/property-extender-tests: New file.
33618         * modules/unictype/property-format-control-tests: New file.
33619         * modules/unictype/property-grapheme-base-tests: New file.
33620         * modules/unictype/property-grapheme-extend-tests: New file.
33621         * modules/unictype/property-grapheme-link-tests: New file.
33622         * modules/unictype/property-hex-digit-tests: New file.
33623         * modules/unictype/property-hyphen-tests: New file.
33624         * modules/unictype/property-id-continue-tests: New file.
33625         * modules/unictype/property-id-start-tests: New file.
33626         * modules/unictype/property-ideographic-tests: New file.
33627         * modules/unictype/property-ids-binary-operator-tests: New file.
33628         * modules/unictype/property-ids-trinary-operator-tests: New file.
33629         * modules/unictype/property-ignorable-control-tests: New file.
33630         * modules/unictype/property-iso-control-tests: New file.
33631         * modules/unictype/property-join-control-tests: New file.
33632         * modules/unictype/property-left-of-pair-tests: New file.
33633         * modules/unictype/property-line-separator-tests: New file.
33634         * modules/unictype/property-logical-order-exception-tests: New file.
33635         * modules/unictype/property-lowercase-tests: New file.
33636         * modules/unictype/property-math-tests: New file.
33637         * modules/unictype/property-non-break-tests: New file.
33638         * modules/unictype/property-not-a-character-tests: New file.
33639         * modules/unictype/property-numeric-tests: New file.
33640         * modules/unictype/property-other-alphabetic-tests: New file.
33641         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33642         * modules/unictype/property-other-grapheme-extend-tests: New file.
33643         * modules/unictype/property-other-id-continue-tests: New file.
33644         * modules/unictype/property-other-id-start-tests: New file.
33645         * modules/unictype/property-other-lowercase-tests: New file.
33646         * modules/unictype/property-other-math-tests: New file.
33647         * modules/unictype/property-other-uppercase-tests: New file.
33648         * modules/unictype/property-paired-punctuation-tests: New file.
33649         * modules/unictype/property-paragraph-separator-tests: New file.
33650         * modules/unictype/property-pattern-syntax-tests: New file.
33651         * modules/unictype/property-pattern-white-space-tests: New file.
33652         * modules/unictype/property-private-use-tests: New file.
33653         * modules/unictype/property-punctuation-tests: New file.
33654         * modules/unictype/property-quotation-mark-tests: New file.
33655         * modules/unictype/property-radical-tests: New file.
33656         * modules/unictype/property-sentence-terminal-tests: New file.
33657         * modules/unictype/property-soft-dotted-tests: New file.
33658         * modules/unictype/property-space-tests: New file.
33659         * modules/unictype/property-terminal-punctuation-tests: New file.
33660         * modules/unictype/property-test-tests: New file.
33661         * modules/unictype/property-titlecase-tests: New file.
33662         * modules/unictype/property-unassigned-code-value-tests: New file.
33663         * modules/unictype/property-unified-ideograph-tests: New file.
33664         * modules/unictype/property-uppercase-tests: New file.
33665         * modules/unictype/property-variation-selector-tests: New file.
33666         * modules/unictype/property-white-space-tests: New file.
33667         * modules/unictype/property-xid-continue-tests: New file.
33668         * modules/unictype/property-xid-start-tests: New file.
33669         * modules/unictype/property-zero-width-tests: New file.
33670         * modules/unictype/scripts-tests: New file.
33671         * modules/unictype/syntax-c-ident-tests: New file.
33672         * modules/unictype/syntax-c-whitespace-tests: New file.
33673         * modules/unictype/syntax-java-ident-tests: New file.
33674         * modules/unictype/syntax-java-whitespace-tests: New file.
33675         * tests/unictype/test-bidi_byname.c: New file.
33676         * tests/unictype/test-bidi_name.c: New file.
33677         * tests/unictype/test-bidi_of.c: New file.
33678         * tests/unictype/test-bidi_test.c: New file.
33679         * tests/unictype/test-block_list.c: New file.
33680         * tests/unictype/test-block_of.c: New file.
33681         * tests/unictype/test-block_test.c: New file.
33682         * tests/unictype/test-categ_and.c: New file.
33683         * tests/unictype/test-categ_and_not.c: New file.
33684         * tests/unictype/test-categ_byname.c: New file.
33685         * tests/unictype/test-categ_name.c: New file.
33686         * tests/unictype/test-categ_none.c: New file.
33687         * tests/unictype/test-categ_of.c: New file.
33688         * tests/unictype/test-categ_or.c: New file.
33689         * tests/unictype/test-categ_test_withtable.c: New file.
33690         * tests/unictype/test-combining.c: New file.
33691         * tests/unictype/test-decdigit.c: New file.
33692         * tests/unictype/test-digit.c: New file.
33693         * tests/unictype/test-mirror.c: New file.
33694         * tests/unictype/test-numeric.c: New file.
33695         * tests/unictype/test-pr_byname.c: New file.
33696         * tests/unictype/test-pr_test.c: New file.
33697         * tests/unictype/test-predicate-part1.h: New file.
33698         * tests/unictype/test-predicate-part2.h: New file.
33699         * tests/unictype/test-scripts.c: New file.
33700         * tests/unictype/test-sy_c_ident.c: New file.
33701         * tests/unictype/test-sy_java_ident.c: New file.
33702
33703         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33704         for Unicode 5.0.0.
33705         * tests/unictype/test-categ_Cc.c: Likewise.
33706         * tests/unictype/test-categ_Cf.c: Likewise.
33707         * tests/unictype/test-categ_Cn.c: Likewise.
33708         * tests/unictype/test-categ_Co.c: Likewise.
33709         * tests/unictype/test-categ_Cs.c: Likewise.
33710         * tests/unictype/test-categ_L.c: Likewise.
33711         * tests/unictype/test-categ_Ll.c: Likewise.
33712         * tests/unictype/test-categ_Lm.c: Likewise.
33713         * tests/unictype/test-categ_Lo.c: Likewise.
33714         * tests/unictype/test-categ_Lt.c: Likewise.
33715         * tests/unictype/test-categ_Lu.c: Likewise.
33716         * tests/unictype/test-categ_M.c: Likewise.
33717         * tests/unictype/test-categ_Mc.c: Likewise.
33718         * tests/unictype/test-categ_Me.c: Likewise.
33719         * tests/unictype/test-categ_Mn.c: Likewise.
33720         * tests/unictype/test-categ_N.c: Likewise.
33721         * tests/unictype/test-categ_Nd.c: Likewise.
33722         * tests/unictype/test-categ_Nl.c: Likewise.
33723         * tests/unictype/test-categ_No.c: Likewise.
33724         * tests/unictype/test-categ_P.c: Likewise.
33725         * tests/unictype/test-categ_Pc.c: Likewise.
33726         * tests/unictype/test-categ_Pd.c: Likewise.
33727         * tests/unictype/test-categ_Pe.c: Likewise.
33728         * tests/unictype/test-categ_Pf.c: Likewise.
33729         * tests/unictype/test-categ_Pi.c: Likewise.
33730         * tests/unictype/test-categ_Po.c: Likewise.
33731         * tests/unictype/test-categ_Ps.c: Likewise.
33732         * tests/unictype/test-categ_S.c: Likewise.
33733         * tests/unictype/test-categ_Sc.c: Likewise.
33734         * tests/unictype/test-categ_Sk.c: Likewise.
33735         * tests/unictype/test-categ_Sm.c: Likewise.
33736         * tests/unictype/test-categ_So.c: Likewise.
33737         * tests/unictype/test-categ_Z.c: Likewise.
33738         * tests/unictype/test-categ_Zl.c: Likewise.
33739         * tests/unictype/test-categ_Zp.c: Likewise.
33740         * tests/unictype/test-categ_Zs.c: Likewise.
33741         * tests/unictype/test-ctype_alnum.c: Likewise.
33742         * tests/unictype/test-ctype_alpha.c: Likewise.
33743         * tests/unictype/test-ctype_blank.c: Likewise.
33744         * tests/unictype/test-ctype_cntrl.c: Likewise.
33745         * tests/unictype/test-ctype_digit.c: Likewise.
33746         * tests/unictype/test-ctype_graph.c: Likewise.
33747         * tests/unictype/test-ctype_lower.c: Likewise.
33748         * tests/unictype/test-ctype_print.c: Likewise.
33749         * tests/unictype/test-ctype_punct.c: Likewise.
33750         * tests/unictype/test-ctype_space.c: Likewise.
33751         * tests/unictype/test-ctype_upper.c: Likewise.
33752         * tests/unictype/test-ctype_xdigit.c: Likewise.
33753         * tests/unictype/test-decdigit.h: Likewise.
33754         * tests/unictype/test-digit.h: Likewise.
33755         * tests/unictype/test-numeric.h: Likewise.
33756         * tests/unictype/test-pr_alphabetic.c: Likewise.
33757         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33758         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33759         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33760         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33761         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33762         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33763         * tests/unictype/test-pr_bidi_control.c: Likewise.
33764         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33765         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33766         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33767         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33768         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33769         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33770         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33771         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33772         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33773         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33774         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33775         * tests/unictype/test-pr_combining.c: Likewise.
33776         * tests/unictype/test-pr_composite.c: Likewise.
33777         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33778         * tests/unictype/test-pr_dash.c: Likewise.
33779         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33780         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33781         * tests/unictype/test-pr_deprecated.c: Likewise.
33782         * tests/unictype/test-pr_diacritic.c: Likewise.
33783         * tests/unictype/test-pr_extender.c: Likewise.
33784         * tests/unictype/test-pr_format_control.c: Likewise.
33785         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33786         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33787         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33788         * tests/unictype/test-pr_hex_digit.c: Likewise.
33789         * tests/unictype/test-pr_hyphen.c: Likewise.
33790         * tests/unictype/test-pr_id_continue.c: Likewise.
33791         * tests/unictype/test-pr_id_start.c: Likewise.
33792         * tests/unictype/test-pr_ideographic.c: Likewise.
33793         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33794         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33795         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33796         * tests/unictype/test-pr_iso_control.c: Likewise.
33797         * tests/unictype/test-pr_join_control.c: Likewise.
33798         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33799         * tests/unictype/test-pr_line_separator.c: Likewise.
33800         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33801         * tests/unictype/test-pr_lowercase.c: Likewise.
33802         * tests/unictype/test-pr_math.c: Likewise.
33803         * tests/unictype/test-pr_non_break.c: Likewise.
33804         * tests/unictype/test-pr_not_a_character.c: Likewise.
33805         * tests/unictype/test-pr_numeric.c: Likewise.
33806         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33807         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33808         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33809         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33810         * tests/unictype/test-pr_other_id_start.c: Likewise.
33811         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33812         * tests/unictype/test-pr_other_math.c: Likewise.
33813         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33814         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33815         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33816         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33817         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33818         * tests/unictype/test-pr_private_use.c: Likewise.
33819         * tests/unictype/test-pr_punctuation.c: Likewise.
33820         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33821         * tests/unictype/test-pr_radical.c: Likewise.
33822         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33823         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33824         * tests/unictype/test-pr_space.c: Likewise.
33825         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33826         * tests/unictype/test-pr_titlecase.c: Likewise.
33827         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33828         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
33829         * tests/unictype/test-pr_uppercase.c: Likewise.
33830         * tests/unictype/test-pr_variation_selector.c: Likewise.
33831         * tests/unictype/test-pr_white_space.c: Likewise.
33832         * tests/unictype/test-pr_xid_continue.c: Likewise.
33833         * tests/unictype/test-pr_xid_start.c: Likewise.
33834         * tests/unictype/test-pr_zero_width.c: Likewise.
33835         * tests/unictype/test-sy_c_whitespace.c: Likewise.
33836         * tests/unictype/test-sy_java_whitespace.c: Likewise.
33837
33838 2007-11-12  Bruno Haible  <bruno@clisp.org>
33839
33840         Unicode character classification functions.
33841         * lib/unictype.h: New file.
33842         * modules/unictype/base: New file.
33843         * modules/unictype/category-L: New file.
33844         * modules/unictype/category-Lu: New file.
33845         * modules/unictype/category-Ll: New file.
33846         * modules/unictype/category-Lt: New file.
33847         * modules/unictype/category-Lm: New file.
33848         * modules/unictype/category-Lo: New file.
33849         * modules/unictype/category-M: New file.
33850         * modules/unictype/category-Mn: New file.
33851         * modules/unictype/category-Mc: New file.
33852         * modules/unictype/category-Me: New file.
33853         * modules/unictype/category-N: New file.
33854         * modules/unictype/category-Nd: New file.
33855         * modules/unictype/category-Nl: New file.
33856         * modules/unictype/category-No: New file.
33857         * modules/unictype/category-P: New file.
33858         * modules/unictype/category-Pc: New file.
33859         * modules/unictype/category-Pd: New file.
33860         * modules/unictype/category-Ps: New file.
33861         * modules/unictype/category-Pe: New file.
33862         * modules/unictype/category-Pi: New file.
33863         * modules/unictype/category-Pf: New file.
33864         * modules/unictype/category-Po: New file.
33865         * modules/unictype/category-S: New file.
33866         * modules/unictype/category-Sm: New file.
33867         * modules/unictype/category-Sc: New file.
33868         * modules/unictype/category-Sk: New file.
33869         * modules/unictype/category-So: New file.
33870         * modules/unictype/category-Z: New file.
33871         * modules/unictype/category-Zs: New file.
33872         * modules/unictype/category-Zl: New file.
33873         * modules/unictype/category-Zp: New file.
33874         * modules/unictype/category-C: New file.
33875         * modules/unictype/category-Cc: New file.
33876         * modules/unictype/category-Cf: New file.
33877         * modules/unictype/category-Cs: New file.
33878         * modules/unictype/category-Co: New file.
33879         * modules/unictype/category-Cn: New file.
33880         * modules/unictype/category-or: New file.
33881         * modules/unictype/category-of: New file.
33882         * modules/unictype/category-test: New file.
33883         * modules/unictype/category-test-withtable: New file.
33884         * modules/unictype/category-byname: New file.
33885         * modules/unictype/category-none: New file.
33886         * modules/unictype/category-and: New file.
33887         * modules/unictype/category-and-not: New file.
33888         * modules/unictype/category-name: New file.
33889         * modules/unictype/combining-class: New file.
33890         * modules/unictype/category-all: New file.
33891         * modules/unictype/bidicategory-all: New file.
33892         * modules/unictype/bidicategory-byname: New file.
33893         * modules/unictype/bidicategory-name: New file.
33894         * modules/unictype/bidicategory-of: New file.
33895         * modules/unictype/bidicategory-test: New file.
33896         * modules/unictype/decimal-digit: New file.
33897         * modules/unictype/digit: New file.
33898         * modules/unictype/numeric: New file.
33899         * modules/unictype/mirror: New file.
33900         * modules/unictype/property-white-space: New file.
33901         * modules/unictype/property-alphabetic: New file.
33902         * modules/unictype/property-other-alphabetic: New file.
33903         * modules/unictype/property-not-a-character: New file.
33904         * modules/unictype/property-default-ignorable-code-point: New file.
33905         * modules/unictype/property-other-default-ignorable-code-point: New
33906         file.
33907         * modules/unictype/property-deprecated: New file.
33908         * modules/unictype/property-logical-order-exception: New file.
33909         * modules/unictype/property-variation-selector: New file.
33910         * modules/unictype/property-private-use: New file.
33911         * modules/unictype/property-unassigned-code-value: New file.
33912         * modules/unictype/property-uppercase: New file.
33913         * modules/unictype/property-other-uppercase: New file.
33914         * modules/unictype/property-lowercase: New file.
33915         * modules/unictype/property-other-lowercase: New file.
33916         * modules/unictype/property-titlecase: New file.
33917         * modules/unictype/property-soft-dotted: New file.
33918         * modules/unictype/property-id-start: New file.
33919         * modules/unictype/property-other-id-start: New file.
33920         * modules/unictype/property-id-continue: New file.
33921         * modules/unictype/property-other-id-continue: New file.
33922         * modules/unictype/property-xid-start: New file.
33923         * modules/unictype/property-xid-continue: New file.
33924         * modules/unictype/property-pattern-white-space: New file.
33925         * modules/unictype/property-pattern-syntax: New file.
33926         * modules/unictype/property-join-control: New file.
33927         * modules/unictype/property-grapheme-base: New file.
33928         * modules/unictype/property-grapheme-extend: New file.
33929         * modules/unictype/property-other-grapheme-extend: New file.
33930         * modules/unictype/property-grapheme-link: New file.
33931         * modules/unictype/property-bidi-control: New file.
33932         * modules/unictype/property-bidi-left-to-right: New file.
33933         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
33934         * modules/unictype/property-bidi-arabic-right-to-left: New file.
33935         * modules/unictype/property-bidi-european-digit: New file.
33936         * modules/unictype/property-bidi-eur-num-separator: New file.
33937         * modules/unictype/property-bidi-eur-num-terminator: New file.
33938         * modules/unictype/property-bidi-arabic-digit: New file.
33939         * modules/unictype/property-bidi-common-separator: New file.
33940         * modules/unictype/property-bidi-block-separator: New file.
33941         * modules/unictype/property-bidi-segment-separator: New file.
33942         * modules/unictype/property-bidi-whitespace: New file.
33943         * modules/unictype/property-bidi-non-spacing-mark: New file.
33944         * modules/unictype/property-bidi-boundary-neutral: New file.
33945         * modules/unictype/property-bidi-pdf: New file.
33946         * modules/unictype/property-bidi-embedding-or-override: New file.
33947         * modules/unictype/property-bidi-other-neutral: New file.
33948         * modules/unictype/property-hex-digit: New file.
33949         * modules/unictype/property-ascii-hex-digit: New file.
33950         * modules/unictype/property-ideographic: New file.
33951         * modules/unictype/property-unified-ideograph: New file.
33952         * modules/unictype/property-radical: New file.
33953         * modules/unictype/property-ids-binary-operator: New file.
33954         * modules/unictype/property-ids-trinary-operator: New file.
33955         * modules/unictype/property-zero-width: New file.
33956         * modules/unictype/property-space: New file.
33957         * modules/unictype/property-non-break: New file.
33958         * modules/unictype/property-iso-control: New file.
33959         * modules/unictype/property-format-control: New file.
33960         * modules/unictype/property-dash: New file.
33961         * modules/unictype/property-hyphen: New file.
33962         * modules/unictype/property-punctuation: New file.
33963         * modules/unictype/property-line-separator: New file.
33964         * modules/unictype/property-paragraph-separator: New file.
33965         * modules/unictype/property-quotation-mark: New file.
33966         * modules/unictype/property-sentence-terminal: New file.
33967         * modules/unictype/property-terminal-punctuation: New file.
33968         * modules/unictype/property-currency-symbol: New file.
33969         * modules/unictype/property-math: New file.
33970         * modules/unictype/property-other-math: New file.
33971         * modules/unictype/property-paired-punctuation: New file.
33972         * modules/unictype/property-left-of-pair: New file.
33973         * modules/unictype/property-combining: New file.
33974         * modules/unictype/property-composite: New file.
33975         * modules/unictype/property-decimal-digit: New file.
33976         * modules/unictype/property-numeric: New file.
33977         * modules/unictype/property-diacritic: New file.
33978         * modules/unictype/property-extender: New file.
33979         * modules/unictype/property-ignorable-control: New file.
33980         * modules/unictype/property-test: New file.
33981         * modules/unictype/property-byname: New file.
33982         * modules/unictype/property-all: New file.
33983         * modules/unictype/scripts: New file.
33984         * modules/unictype/scripts-all: New file.
33985         * modules/unictype/block-of: New file.
33986         * modules/unictype/block-test: New file.
33987         * modules/unictype/block-list: New file.
33988         * modules/unictype/block-all: New file.
33989         * modules/unictype/syntax-c-whitespace: New file.
33990         * modules/unictype/syntax-java-whitespace: New file.
33991         * modules/unictype/syntax-c-ident: New file.
33992         * modules/unictype/syntax-java-ident: New file.
33993         * modules/unictype/ctype-alnum: New file.
33994         * modules/unictype/ctype-alpha: New file.
33995         * modules/unictype/ctype-cntrl: New file.
33996         * modules/unictype/ctype-digit: New file.
33997         * modules/unictype/ctype-graph: New file.
33998         * modules/unictype/ctype-lower: New file.
33999         * modules/unictype/ctype-print: New file.
34000         * modules/unictype/ctype-punct: New file.
34001         * modules/unictype/ctype-space: New file.
34002         * modules/unictype/ctype-upper: New file.
34003         * modules/unictype/ctype-xdigit: New file.
34004         * modules/unictype/ctype-blank: New file.
34005         * lib/unictype/bidi_byname.c: New file.
34006         * lib/unictype/bidi_name.c: New file.
34007         * lib/unictype/bidi_of.c: New file.
34008         * lib/unictype/bidi_test.c: New file.
34009         * lib/unictype/bitmap.h: New file.
34010         * lib/unictype/block_test.c: New file.
34011         * lib/unictype/blocks.c: New file.
34012         * lib/unictype/categ_C.c: New file.
34013         * lib/unictype/categ_Cc.c: New file.
34014         * lib/unictype/categ_Cf.c: New file.
34015         * lib/unictype/categ_Cn.c: New file.
34016         * lib/unictype/categ_Co.c: New file.
34017         * lib/unictype/categ_Cs.c: New file.
34018         * lib/unictype/categ_L.c: New file.
34019         * lib/unictype/categ_Ll.c: New file.
34020         * lib/unictype/categ_Lm.c: New file.
34021         * lib/unictype/categ_Lo.c: New file.
34022         * lib/unictype/categ_Lt.c: New file.
34023         * lib/unictype/categ_Lu.c: New file.
34024         * lib/unictype/categ_M.c: New file.
34025         * lib/unictype/categ_Mc.c: New file.
34026         * lib/unictype/categ_Me.c: New file.
34027         * lib/unictype/categ_Mn.c: New file.
34028         * lib/unictype/categ_N.c: New file.
34029         * lib/unictype/categ_Nd.c: New file.
34030         * lib/unictype/categ_Nl.c: New file.
34031         * lib/unictype/categ_No.c: New file.
34032         * lib/unictype/categ_P.c: New file.
34033         * lib/unictype/categ_Pc.c: New file.
34034         * lib/unictype/categ_Pd.c: New file.
34035         * lib/unictype/categ_Pe.c: New file.
34036         * lib/unictype/categ_Pf.c: New file.
34037         * lib/unictype/categ_Pi.c: New file.
34038         * lib/unictype/categ_Po.c: New file.
34039         * lib/unictype/categ_Ps.c: New file.
34040         * lib/unictype/categ_S.c: New file.
34041         * lib/unictype/categ_Sc.c: New file.
34042         * lib/unictype/categ_Sk.c: New file.
34043         * lib/unictype/categ_Sm.c: New file.
34044         * lib/unictype/categ_So.c: New file.
34045         * lib/unictype/categ_Z.c: New file.
34046         * lib/unictype/categ_Zl.c: New file.
34047         * lib/unictype/categ_Zp.c: New file.
34048         * lib/unictype/categ_Zs.c: New file.
34049         * lib/unictype/categ_and.c: New file.
34050         * lib/unictype/categ_and_not.c: New file.
34051         * lib/unictype/categ_byname.c: New file.
34052         * lib/unictype/categ_name.c: New file.
34053         * lib/unictype/categ_none.c: New file.
34054         * lib/unictype/categ_of.c: New file.
34055         * lib/unictype/categ_or.c: New file.
34056         * lib/unictype/categ_test.c: New file.
34057         * lib/unictype/combining.c: New file.
34058         * lib/unictype/ctype_alnum.c: New file.
34059         * lib/unictype/ctype_alpha.c: New file.
34060         * lib/unictype/ctype_blank.c: New file.
34061         * lib/unictype/ctype_cntrl.c: New file.
34062         * lib/unictype/ctype_digit.c: New file.
34063         * lib/unictype/ctype_graph.c: New file.
34064         * lib/unictype/ctype_lower.c: New file.
34065         * lib/unictype/ctype_print.c: New file.
34066         * lib/unictype/ctype_punct.c: New file.
34067         * lib/unictype/ctype_space.c: New file.
34068         * lib/unictype/ctype_upper.c: New file.
34069         * lib/unictype/ctype_xdigit.c: New file.
34070         * lib/unictype/decdigit.c: New file.
34071         * lib/unictype/digit.c: New file.
34072         * lib/unictype/identsyntaxmap.h: New file.
34073         * lib/unictype/mirror.c: New file.
34074         * lib/unictype/numeric.c: New file.
34075         * lib/unictype/pr_alphabetic.c: New file.
34076         * lib/unictype/pr_ascii_hex_digit.c: New file.
34077         * lib/unictype/pr_bidi_arabic_digit.c: New file.
34078         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
34079         * lib/unictype/pr_bidi_block_separator.c: New file.
34080         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
34081         * lib/unictype/pr_bidi_common_separator.c: New file.
34082         * lib/unictype/pr_bidi_control.c: New file.
34083         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
34084         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
34085         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
34086         * lib/unictype/pr_bidi_european_digit.c: New file.
34087         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
34088         * lib/unictype/pr_bidi_left_to_right.c: New file.
34089         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
34090         * lib/unictype/pr_bidi_other_neutral.c: New file.
34091         * lib/unictype/pr_bidi_pdf.c: New file.
34092         * lib/unictype/pr_bidi_segment_separator.c: New file.
34093         * lib/unictype/pr_bidi_whitespace.c: New file.
34094         * lib/unictype/pr_byname.c: New file.
34095         * lib/unictype/pr_byname.gperf: New file.
34096         * lib/unictype/pr_combining.c: New file.
34097         * lib/unictype/pr_composite.c: New file.
34098         * lib/unictype/pr_currency_symbol.c: New file.
34099         * lib/unictype/pr_dash.c: New file.
34100         * lib/unictype/pr_decimal_digit.c: New file.
34101         * lib/unictype/pr_default_ignorable_code_point.c: New file.
34102         * lib/unictype/pr_deprecated.c: New file.
34103         * lib/unictype/pr_diacritic.c: New file.
34104         * lib/unictype/pr_extender.c: New file.
34105         * lib/unictype/pr_format_control.c: New file.
34106         * lib/unictype/pr_grapheme_base.c: New file.
34107         * lib/unictype/pr_grapheme_extend.c: New file.
34108         * lib/unictype/pr_grapheme_link.c: New file.
34109         * lib/unictype/pr_hex_digit.c: New file.
34110         * lib/unictype/pr_hyphen.c: New file.
34111         * lib/unictype/pr_id_continue.c: New file.
34112         * lib/unictype/pr_id_start.c: New file.
34113         * lib/unictype/pr_ideographic.c: New file.
34114         * lib/unictype/pr_ids_binary_operator.c: New file.
34115         * lib/unictype/pr_ids_trinary_operator.c: New file.
34116         * lib/unictype/pr_ignorable_control.c: New file.
34117         * lib/unictype/pr_iso_control.c: New file.
34118         * lib/unictype/pr_join_control.c: New file.
34119         * lib/unictype/pr_left_of_pair.c: New file.
34120         * lib/unictype/pr_line_separator.c: New file.
34121         * lib/unictype/pr_logical_order_exception.c: New file.
34122         * lib/unictype/pr_lowercase.c: New file.
34123         * lib/unictype/pr_math.c: New file.
34124         * lib/unictype/pr_non_break.c: New file.
34125         * lib/unictype/pr_not_a_character.c: New file.
34126         * lib/unictype/pr_numeric.c: New file.
34127         * lib/unictype/pr_other_alphabetic.c: New file.
34128         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
34129         * lib/unictype/pr_other_grapheme_extend.c: New file.
34130         * lib/unictype/pr_other_id_continue.c: New file.
34131         * lib/unictype/pr_other_id_start.c: New file.
34132         * lib/unictype/pr_other_lowercase.c: New file.
34133         * lib/unictype/pr_other_math.c: New file.
34134         * lib/unictype/pr_other_uppercase.c: New file.
34135         * lib/unictype/pr_paired_punctuation.c: New file.
34136         * lib/unictype/pr_paragraph_separator.c: New file.
34137         * lib/unictype/pr_pattern_syntax.c: New file.
34138         * lib/unictype/pr_pattern_white_space.c: New file.
34139         * lib/unictype/pr_private_use.c: New file.
34140         * lib/unictype/pr_punctuation.c: New file.
34141         * lib/unictype/pr_quotation_mark.c: New file.
34142         * lib/unictype/pr_radical.c: New file.
34143         * lib/unictype/pr_sentence_terminal.c: New file.
34144         * lib/unictype/pr_soft_dotted.c: New file.
34145         * lib/unictype/pr_space.c: New file.
34146         * lib/unictype/pr_terminal_punctuation.c: New file.
34147         * lib/unictype/pr_test.c: New file.
34148         * lib/unictype/pr_titlecase.c: New file.
34149         * lib/unictype/pr_unassigned_code_value.c: New file.
34150         * lib/unictype/pr_unified_ideograph.c: New file.
34151         * lib/unictype/pr_uppercase.c: New file.
34152         * lib/unictype/pr_variation_selector.c: New file.
34153         * lib/unictype/pr_white_space.c: New file.
34154         * lib/unictype/pr_xid_continue.c: New file.
34155         * lib/unictype/pr_xid_start.c: New file.
34156         * lib/unictype/pr_zero_width.c: New file.
34157         * lib/unictype/scripts.c: New file.
34158         * lib/unictype/sy_c_ident.c: New file.
34159         * lib/unictype/sy_c_whitespace.c: New file.
34160         * lib/unictype/sy_java_ident.c: New file.
34161         * lib/unictype/sy_java_whitespace.c: New file.
34162
34163         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
34164         Unicode 5.0.0.
34165         * lib/unictype/blocks.h: Likewise.
34166         * lib/unictype/categ_C.h: Likewise.
34167         * lib/unictype/categ_Cc.h: Likewise.
34168         * lib/unictype/categ_Cf.h: Likewise.
34169         * lib/unictype/categ_Cn.h: Likewise.
34170         * lib/unictype/categ_Co.h: Likewise.
34171         * lib/unictype/categ_Cs.h: Likewise.
34172         * lib/unictype/categ_L.h: Likewise.
34173         * lib/unictype/categ_Ll.h: Likewise.
34174         * lib/unictype/categ_Lm.h: Likewise.
34175         * lib/unictype/categ_Lo.h: Likewise.
34176         * lib/unictype/categ_Lt.h: Likewise.
34177         * lib/unictype/categ_Lu.h: Likewise.
34178         * lib/unictype/categ_M.h: Likewise.
34179         * lib/unictype/categ_Mc.h: Likewise.
34180         * lib/unictype/categ_Me.h: Likewise.
34181         * lib/unictype/categ_Mn.h: Likewise.
34182         * lib/unictype/categ_N.h: Likewise.
34183         * lib/unictype/categ_Nd.h: Likewise.
34184         * lib/unictype/categ_Nl.h: Likewise.
34185         * lib/unictype/categ_No.h: Likewise.
34186         * lib/unictype/categ_P.h: Likewise.
34187         * lib/unictype/categ_Pc.h: Likewise.
34188         * lib/unictype/categ_Pd.h: Likewise.
34189         * lib/unictype/categ_Pe.h: Likewise.
34190         * lib/unictype/categ_Pf.h: Likewise.
34191         * lib/unictype/categ_Pi.h: Likewise.
34192         * lib/unictype/categ_Po.h: Likewise.
34193         * lib/unictype/categ_Ps.h: Likewise.
34194         * lib/unictype/categ_S.h: Likewise.
34195         * lib/unictype/categ_Sc.h: Likewise.
34196         * lib/unictype/categ_Sk.h: Likewise.
34197         * lib/unictype/categ_Sm.h: Likewise.
34198         * lib/unictype/categ_So.h: Likewise.
34199         * lib/unictype/categ_Z.h: Likewise.
34200         * lib/unictype/categ_Zl.h: Likewise.
34201         * lib/unictype/categ_Zp.h: Likewise.
34202         * lib/unictype/categ_Zs.h: Likewise.
34203         * lib/unictype/categ_of.h: Likewise.
34204         * lib/unictype/combining.h: Likewise.
34205         * lib/unictype/ctype_alnum.h: Likewise.
34206         * lib/unictype/ctype_alpha.h: Likewise.
34207         * lib/unictype/ctype_blank.h: Likewise.
34208         * lib/unictype/ctype_cntrl.h: Likewise.
34209         * lib/unictype/ctype_digit.h: Likewise.
34210         * lib/unictype/ctype_graph.h: Likewise.
34211         * lib/unictype/ctype_lower.h: Likewise.
34212         * lib/unictype/ctype_print.h: Likewise.
34213         * lib/unictype/ctype_punct.h: Likewise.
34214         * lib/unictype/ctype_space.h: Likewise.
34215         * lib/unictype/ctype_upper.h: Likewise.
34216         * lib/unictype/ctype_xdigit.h: Likewise.
34217         * lib/unictype/decdigit.h: Likewise.
34218         * lib/unictype/digit.h: Likewise.
34219         * lib/unictype/mirror.h: Likewise.
34220         * lib/unictype/numeric.h: Likewise.
34221         * lib/unictype/pr_alphabetic.h: Likewise.
34222         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
34223         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
34224         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
34225         * lib/unictype/pr_bidi_block_separator.h: Likewise.
34226         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
34227         * lib/unictype/pr_bidi_common_separator.h: Likewise.
34228         * lib/unictype/pr_bidi_control.h: Likewise.
34229         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
34230         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
34231         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
34232         * lib/unictype/pr_bidi_european_digit.h: Likewise.
34233         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
34234         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
34235         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
34236         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
34237         * lib/unictype/pr_bidi_pdf.h: Likewise.
34238         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
34239         * lib/unictype/pr_bidi_whitespace.h: Likewise.
34240         * lib/unictype/pr_combining.h: Likewise.
34241         * lib/unictype/pr_composite.h: Likewise.
34242         * lib/unictype/pr_currency_symbol.h: Likewise.
34243         * lib/unictype/pr_dash.h: Likewise.
34244         * lib/unictype/pr_decimal_digit.h: Likewise.
34245         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
34246         * lib/unictype/pr_deprecated.h: Likewise.
34247         * lib/unictype/pr_diacritic.h: Likewise.
34248         * lib/unictype/pr_extender.h: Likewise.
34249         * lib/unictype/pr_format_control.h: Likewise.
34250         * lib/unictype/pr_grapheme_base.h: Likewise.
34251         * lib/unictype/pr_grapheme_extend.h: Likewise.
34252         * lib/unictype/pr_grapheme_link.h: Likewise.
34253         * lib/unictype/pr_hex_digit.h: Likewise.
34254         * lib/unictype/pr_hyphen.h: Likewise.
34255         * lib/unictype/pr_id_continue.h: Likewise.
34256         * lib/unictype/pr_id_start.h: Likewise.
34257         * lib/unictype/pr_ideographic.h: Likewise.
34258         * lib/unictype/pr_ids_binary_operator.h: Likewise.
34259         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
34260         * lib/unictype/pr_ignorable_control.h: Likewise.
34261         * lib/unictype/pr_iso_control.h: Likewise.
34262         * lib/unictype/pr_join_control.h: Likewise.
34263         * lib/unictype/pr_left_of_pair.h: Likewise.
34264         * lib/unictype/pr_line_separator.h: Likewise.
34265         * lib/unictype/pr_logical_order_exception.h: Likewise.
34266         * lib/unictype/pr_lowercase.h: Likewise.
34267         * lib/unictype/pr_math.h: Likewise.
34268         * lib/unictype/pr_non_break.h: Likewise.
34269         * lib/unictype/pr_not_a_character.h: Likewise.
34270         * lib/unictype/pr_numeric.h: Likewise.
34271         * lib/unictype/pr_other_alphabetic.h: Likewise.
34272         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
34273         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
34274         * lib/unictype/pr_other_id_continue.h: Likewise.
34275         * lib/unictype/pr_other_id_start.h: Likewise.
34276         * lib/unictype/pr_other_lowercase.h: Likewise.
34277         * lib/unictype/pr_other_math.h: Likewise.
34278         * lib/unictype/pr_other_uppercase.h: Likewise.
34279         * lib/unictype/pr_paired_punctuation.h: Likewise.
34280         * lib/unictype/pr_paragraph_separator.h: Likewise.
34281         * lib/unictype/pr_pattern_syntax.h: Likewise.
34282         * lib/unictype/pr_pattern_white_space.h: Likewise.
34283         * lib/unictype/pr_private_use.h: Likewise.
34284         * lib/unictype/pr_punctuation.h: Likewise.
34285         * lib/unictype/pr_quotation_mark.h: Likewise.
34286         * lib/unictype/pr_radical.h: Likewise.
34287         * lib/unictype/pr_sentence_terminal.h: Likewise.
34288         * lib/unictype/pr_soft_dotted.h: Likewise.
34289         * lib/unictype/pr_space.h: Likewise.
34290         * lib/unictype/pr_terminal_punctuation.h: Likewise.
34291         * lib/unictype/pr_titlecase.h: Likewise.
34292         * lib/unictype/pr_unassigned_code_value.h: Likewise.
34293         * lib/unictype/pr_unified_ideograph.h: Likewise.
34294         * lib/unictype/pr_uppercase.h: Likewise.
34295         * lib/unictype/pr_variation_selector.h: Likewise.
34296         * lib/unictype/pr_white_space.h: Likewise.
34297         * lib/unictype/pr_xid_continue.h: Likewise.
34298         * lib/unictype/pr_xid_start.h: Likewise.
34299         * lib/unictype/pr_zero_width.h: Likewise.
34300         * lib/unictype/scripts.h: Likewise.
34301         * lib/unictype/scripts_byname.gperf: Likewise.
34302         * lib/unictype/sy_c_ident.h: Likewise.
34303         * lib/unictype/sy_c_whitespace.h: Likewise.
34304         * lib/unictype/sy_java_ident.h: Likewise.
34305         * lib/unictype/sy_java_whitespace.h: Likewise.
34306
34307         * lib/unictype/Makefile: New file.
34308         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
34309         glibc.
34310         * lib/unictype/3level.h: New file, copied from glibc.
34311         * lib/unictype/3levelbit.h: New file.
34312
34313 2007-11-11  Bruno Haible  <bruno@clisp.org>
34314
34315         * modules/gperf: New file.
34316         * modules/iconv_open (Depends-on): Add it.
34317         (Makefile.am): Remove the GPERF definition.
34318
34319 2007-11-11  Bruno Haible  <bruno@clisp.org>
34320
34321         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
34322         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
34323
34324 2007-11-11  Bruno Haible  <bruno@clisp.org>
34325
34326         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
34327         (usage): Remove function.
34328
34329 2007-11-11  Bruno Haible  <bruno@clisp.org>
34330
34331         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
34332         gl_FUNC_CEILF_LIBS.
34333         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
34334         gl_FUNC_CEIL_LIBS.
34335         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
34336         gl_FUNC_CEILL_LIBS.
34337         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
34338         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
34339         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
34340
34341 2007-11-11  Bruno Haible  <bruno@clisp.org>
34342
34343         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
34344         roundf were declared but do not exist on functions.
34345         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
34346         roundl were declared but do not exist on functions.
34347         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
34348         HAVE_FLOORL_AND_CEILL, respectively.
34349         Needed for Sun C on Solaris 10.
34350
34351 2007-11-11  Bruno Haible  <bruno@clisp.org>
34352
34353         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
34354         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
34355         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
34356         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
34357         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
34358         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
34359         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
34360         HAVE_DECL_ROUNDF.
34361         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
34362         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
34363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
34364         of HAVE_DECL_ROUND*.
34365         * modules/math (Makefile.am): Update.
34366
34367 2007-11-10  Bruno Haible  <bruno@clisp.org>
34368
34369         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
34370         ptrdiff_t as m4/intl.m4.
34371
34372 2007-11-10  Jim Meyering  <meyering@redhat.com>
34373
34374         Avoid link failure for the argmatch test.
34375         * tests/test-argmatch.c (usage): Define function to avoid a link
34376         failure: argmatch_die requires a usage function.
34377
34378 2007-11-09  Bruno Haible  <bruno@clisp.org>
34379
34380         * doc/functions/snprintf.texi: Mention BeOS deficiency.
34381         * doc/functions/vsnprintf.texi: Likewise.
34382         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
34383         with a size argument < 2.
34384
34385 2007-11-09  Bruno Haible  <bruno@clisp.org>
34386
34387         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
34388         buffer. Fixes an inefficiency introduced on 2007-11-03.
34389
34390 2007-11-09  Bruno Haible  <bruno@clisp.org>
34391
34392         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
34393         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
34394
34395 2007-11-08  Jim Meyering  <meyering@redhat.com>
34396
34397         Change cache variable name prefix "jm_" to "gl_" everywhere.
34398         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
34399         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
34400         * m4/uptime.m4: s/gl_/jm_/
34401
34402 2007-11-07  Bruno Haible  <bruno@clisp.org>
34403
34404         Update to GNU gettext 0.17.
34405         * m4/intl.m4: Update to GNU gettext 0.17.
34406         * m4/po.m4: Likewise.
34407         * modules/gettext (Files): Remove m4/ulonglong.m4.
34408         (configure.ac): Require gettext infrastructure from version 0.17.
34409
34410 2007-11-06  Bruno Haible  <bruno@clisp.org>
34411
34412         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
34413         symbolic values are not defined in a public header.
34414         * lib/freadable.c (freadable) [QNX]: Likewise.
34415         * lib/freadahead.c (freadahead) [QNX]: Likewise.
34416         * lib/freading.c (freading) [QNX]: Likewise.
34417         * lib/fseterr.c (fseterr) [QNX]: Likewise.
34418         * lib/fwritable.c (fwritable) [QNX]: Likewise.
34419         * lib/fwriting.c (fwriting) [QNX]: Likewise.
34420         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
34421         Reported by Alain Magloire.
34422
34423         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
34424
34425 2007-11-05  Bruno Haible  <bruno@clisp.org>
34426
34427         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
34428         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
34429         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
34430         Reported by Eric Blake.
34431
34432 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34433             Bruno Haible  <bruno@clisp.org>
34434
34435         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
34436         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
34437         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
34438         (malloc): Undefine also before including <stdlib.h>.
34439         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
34440         Needed on OSF/1 4.0.
34441
34442 2007-11-05  Jim Meyering  <meyering@redhat.com>
34443
34444         git-version-gen: sync from coreutils.
34445         * build-aux/git-version-gen: Add comments.
34446         Change the first '-' to '.' in the snapshot version string,
34447         e.g., 6.9-377-08144 -> 6.9.377-08144
34448         Remove first parameter.
34449         Don't declare a version "-dirty" merely because a time
34450         stamp has changed.
34451
34452 2007-11-04  Bruno Haible  <bruno@clisp.org>
34453
34454         * lib/lock.h: Protect all macro definitions containing an 'if'
34455         statement through a "do { ... } while (0)".
34456         * lib/tls.h: Likewise.
34457
34458 2007-11-04  Bruno Haible  <bruno@clisp.org>
34459
34460         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
34461
34462 2007-11-04  Bruno Haible  <bruno@clisp.org>
34463
34464         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
34465         * modules/fprintf-posix (Depends-on): Add nocrash.
34466         * modules/snprintf-posix (Depends-on): Likewise.
34467         * modules/sprintf-posix (Depends-on): Likewise.
34468         * modules/vasnprintf-posix (Depends-on): Likewise.
34469         * modules/vasprintf-posix (Depends-on): Likewise.
34470         * modules/vfprintf-posix (Depends-on): Likewise.
34471         * modules/vsnprintf-posix (Depends-on): Likewise.
34472         * modules/vsprintf-posix (Depends-on): Likewise.
34473         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34474         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34475         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34476         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34477         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34478         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34479         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34480
34481 2007-11-04  Bruno Haible  <bruno@clisp.org>
34482
34483         * modules/nocrash: New file.
34484         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
34485         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
34486
34487 2007-11-04  Bruno Haible  <bruno@clisp.org>
34488
34489         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
34490         precision handling.
34491         * tests/test-vasprintf-posix.c (test_function): Likewise.
34492         * tests/test-snprintf-posix.h (test_function): Likewise.
34493         * tests/test-sprintf-posix.h (test_function): Likewise.
34494
34495         Fix *printf behaviour for large precisions on mingw and BeOS.
34496         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
34497         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
34498         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
34499         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34500         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34501         gl_PRINTF_PRECISION and test its result. Invoke
34502         gl_PREREQ_VASNPRINTF_PRECISION.
34503         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34504         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34505         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34506         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34507         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34508         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34509         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34510         * doc/functions/fprintf.texi: Update.
34511         * doc/functions/printf.texi: Update.
34512         * doc/functions/snprintf.texi: Update.
34513         * doc/functions/sprintf.texi: Update.
34514         * doc/functions/vfprintf.texi: Update.
34515         * doc/functions/vprintf.texi: Update.
34516         * doc/functions/vsnprintf.texi: Update.
34517         * doc/functions/vsprintf.texi: Update.
34518
34519 2007-11-04  Bruno Haible  <bruno@clisp.org>
34520
34521         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
34522
34523 2007-11-04  Bruno Haible  <bruno@clisp.org>
34524
34525         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
34526         Reported by Sylvain Beucler <beuc@gnu.org>.
34527
34528 2007-11-03  Bruno Haible  <bruno@clisp.org>
34529
34530         * tests/test-fprintf-posix2.sh: New file.
34531         * tests/test-fprintf-posix2.c: New file.
34532         * modules/fprintf-posix-tests (Files): Add them.
34533         (TESTS): Add test-fprintf-posix2.sh.
34534         (configure.ac): Check for getrlimit and setrlimit.
34535         (check_PROGRAMS): Add test-fprintf-posix2.
34536
34537         * tests/test-printf-posix2.sh: New file.
34538         * tests/test-printf-posix2.c: New file.
34539         * modules/printf-posix-tests (Files): Add them.
34540         (TESTS): Add test-printf-posix2.sh.
34541         (configure.ac): Check for getrlimit and setrlimit.
34542         (check_PROGRAMS): Add test-printf-posix2.
34543
34544         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
34545         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
34546         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
34547         (decode_double): New function, copied from decode_long_double.
34548         (scale10_round_decimal_decoded): New function, extracted from
34549         scale10_round_decimal_long_double.
34550         (scale10_round_decimal_long_double): Use it.
34551         (scale10_round_decimal_double): New function.
34552         (floorlog10): New function.
34553         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
34554         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
34555         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34556         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34557         gl_PRINTF_ENOMEM and test its result. Invoke
34558         gl_PREREQ_VASNPRINTF_ENOMEM.
34559         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34560         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34561         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34562         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34563         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34564         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34565         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34566         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
34567         * modules/snprintf-posix (Depends-on): Likewise.
34568         * modules/sprintf-posix (Depends-on): Likewise.
34569         * modules/vasnprintf-posix (Depends-on): Likewise.
34570         * modules/vasprintf-posix (Depends-on): Likewise.
34571         * modules/vfprintf-posix (Depends-on): Likewise.
34572         * modules/vsnprintf-posix (Depends-on): Likewise.
34573         * modules/vsprintf-posix (Depends-on): Likewise.
34574         * doc/functions/fprintf.texi: Update.
34575         * doc/functions/printf.texi: Update.
34576         * doc/functions/snprintf.texi: Update.
34577         * doc/functions/sprintf.texi: Update.
34578         * doc/functions/vfprintf.texi: Update.
34579         * doc/functions/vprintf.texi: Update.
34580         * doc/functions/vsnprintf.texi: Update.
34581         * doc/functions/vsprintf.texi: Update.
34582
34583 2007-11-03  Bruno Haible  <bruno@clisp.org>
34584
34585         * modules/frexp-nolibm-tests: New file.
34586
34587         * modules/frexp-nolibm: New file.
34588         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34589
34590 2007-11-03  Bruno Haible  <bruno@clisp.org>
34591
34592         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34593         value is C99 compliant.
34594         Needed for OSF/1 5.1.
34595
34596 2007-11-03  Bruno Haible  <bruno@clisp.org>
34597
34598         Fix out-of-memory handling of vasnprintf.
34599         * lib/printf-parse.c: Include <errno.h>.
34600         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34601         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34602         is already set.
34603
34604 2007-11-02  Eric Blake  <ebb9@byu.net>
34605
34606         Fix tests on cygwin.
34607         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34608
34609 2007-11-01  Bruno Haible  <bruno@clisp.org>
34610
34611         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34612         warning.
34613         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34614         needed for POSIX compatibility.
34615
34616 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34617
34618         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34619         for compatibility with GNU.
34620
34621 2007-11-01  Bruno Haible  <bruno@clisp.org>
34622
34623         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34624         (putenv): Renamed from rpl_putenv. Change argument type from
34625         'const char *' to 'char *'.
34626         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34627         of defining putenv in config.h, just set REPLACE_PUTENV.
34628         * modules/putenv (Depends-on): Add stdlib.
34629         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34630         (Include): Use <stdlib.h>.
34631         * lib/stdlib.in.h (putenv): New declaration.
34632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34633         REPLACE_PUTENV.
34634         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34635         REPLACE_PUTENV.
34636         Needed for MacOS X 10.5.0.
34637         Reported by Peter O'Gorman <peter@pogma.com>.
34638
34639 2007-11-01  Jim Meyering  <meyering@redhat.com>
34640
34641         Treat an empty date string exactly like "0".
34642         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34643         if the remaining date string (to be parsed) is empty, use "0".
34644         Reported by Mischa Molhoek and discussed in this thread:
34645         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34646
34647 2007-10-31  Bruno Haible  <bruno@clisp.org>
34648
34649         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34650         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34651         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34652         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34653         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34654         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34655
34656 2007-10-31  Bruno Haible  <bruno@clisp.org>
34657
34658         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34659         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34660         (AC_TYPE_LONG_LONG_INT): Use it.
34661         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34662         it as well.
34663         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34664         to m4/longlong.m4.
34665         * modules/stdint (Files): Remove m4/ulonglong.m4.
34666         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34667         m4/ulonglong.m4.
34668         * modules/strtoumax (Files): Likewise.
34669
34670 2007-10-30  Bruno Haible  <bruno@clisp.org>
34671
34672         * modules/xvasprintf-posix: New file.
34673         Suggested by Eric Blake.
34674
34675 2007-10-30  Bruno Haible  <bruno@clisp.org>
34676
34677         * modules/xprintf-posix-tests: New file.
34678         * tests/test-xprintf-posix.sh: New file.
34679         * tests/test-xprintf-posix.c: New file.
34680         * tests/test-xfprintf-posix.c: New file.
34681
34682         * modules/xprintf-posix: New file.
34683
34684 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34685
34686         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34687         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34688         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34689
34690 2007-10-29  Bruno Haible  <bruno@clisp.org>
34691
34692         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34693         contain the special marker '_cv_'.
34694         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34695         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34696         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34697         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34698         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34699         Reported by Ralf Wildenhues.
34700
34701 2007-10-29  Bruno Haible  <bruno@clisp.org>
34702
34703         * gnulib-tool (func_import): When --lgpl is not specified, set
34704         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34705         GPLv3.
34706         Reported by Simon Josefsson.
34707
34708 2007-10-28  Bruno Haible  <bruno@clisp.org>
34709
34710         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34711         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34712         HAVE_DECL_ISFINITE.
34713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34714         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34715         HAVE_DECL_ISFINITE.
34716
34717 2007-10-28  Bruno Haible  <bruno@clisp.org>
34718
34719         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34720         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34721
34722 2007-10-28  Bruno Haible  <bruno@clisp.org>
34723
34724         Fix link errors with Sun C 5.0 on Solaris 10.
34725         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34726         function is declared but not present in the compiler's libm.
34727         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34728         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34729         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34730         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34731         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34732         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34733         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34735         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34736         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34737         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34738         HAVE_DECL_FLOORL.
34739
34740 2007-10-28  Bruno Haible  <bruno@clisp.org>
34741
34742         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34743         gl_FUNC_FLOORL. Cache the result.
34744         (gl_FUNC_FLOORL): Use it.
34745         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34746         gl_FUNC_CEILL. Cache the result.
34747         (gl_FUNC_CEILL): Use it.
34748
34749         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34750         gl_FUNC_FLOOR. Cache the result.
34751         (gl_FUNC_FLOOR): Use it.
34752         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34753         gl_FUNC_CEIL. Cache the result.
34754         (gl_FUNC_CEIL): Use it.
34755
34756         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34757         gl_FUNC_FLOORF. Cache the result.
34758         (gl_FUNC_FLOORF): Use it.
34759         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34760         gl_FUNC_CEILF. Cache the result.
34761         (gl_FUNC_CEILF): Use it.
34762
34763 2007-10-28  Bruno Haible  <bruno@clisp.org>
34764
34765         * gnulib-tool: Allow specifying the LGPL version number through
34766         --lgpl=2 or --lgpl=3.
34767         (func_usage): Document --lgpl with argument.
34768         Handle --lgpl=... arguments.
34769         (func_import): Recognize also gl_LGPL calls with an argument. When
34770         --lgpl=2 is used and the module's license is just LGPL, report an
34771         error. Set sed_transform_lib_file according to the lgpl variable. In
34772         the generated files, use --lgpl or gl_LGPL invocations with argument,
34773         if necessary.
34774         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34775         an LGPv2+ license.
34776         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34777         gl_LGPL macro.
34778
34779 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34780             Bruno Haible  <bruno@clisp.org>
34781
34782         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34783         (u16_uctomb_aux): Likewise.
34784         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34785         !HAVE_INLINE.
34786         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34787
34788 2007-10-28  Bruno Haible  <bruno@clisp.org>
34789
34790         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34791         Invoke AM_GETTEXT_OPTION if it exists.
34792         * modules/vasprintf: Likewise.
34793         * modules/verror: Likewise.
34794         * modules/xprintf: Likewise.
34795         * modules/xvasprintf: Likewise.
34796
34797 2007-10-27  Ben Pfaff  <blp@gnu.org>
34798
34799         * lib/math.in.h: Define isfinite macro and prototypes for
34800         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34801         implementations.
34802         * m4/math_h.m4: New substitutions for isfinite module.
34803         * lib/isfinite.c: New file.
34804         * m4/isfinite.m4: New file.
34805         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34806         * modules/isfinite: New file.
34807         * modules/isfinite-tests: New file.
34808         * tests/tests-isfinite.c: New file.
34809         * doc/functions/isfinite.texi: Mention isfinite module.
34810         * MODULES.html.sh: Mention new module.
34811
34812 2007-10-27  Ben Pfaff  <blp@gnu.org>
34813
34814         Ralf Wildenhues reported that Tru64 4.0D declares the round
34815         functions but does not have definitions.
34816         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34817         cannot be found in any library, set the output variable to
34818         "missing" instead of "".
34819         * m4/round.m4: Also use our substitute if we cannot find round in
34820         any library, even if it is declared.
34821         * m4/roundf.m4: Likewise for roundf.
34822         * m4/roundl.m4: Likewise for roundl.
34823         * lib/math.in.h: Undefine roundf, round, roundl before defining
34824         their replacements, to allow for hypothetical systems where these
34825         may be defined as macros but not available in libraries.
34826
34827 2007-10-27  Bruno Haible  <bruno@clisp.org>
34828
34829         * doc/gnulib.texi: Invoke @firstparagraphindent.
34830         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
34831         changes in gnulib.
34832         (Source changes): New section.
34833
34834 2007-10-26  Bruno Haible  <bruno@clisp.org>
34835
34836         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
34837         borrowed from autoconf.
34838
34839 2007-10-26  Bruno Haible  <bruno@clisp.org>
34840
34841         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
34842         strerror returned the empty string. Needed on HP-UX 11.00.
34843
34844 2007-10-24  Micah Cowan  <micah@cowan.name>
34845
34846         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
34847         * build-aux/bootstrap: Remove support for now-unnecessary option,
34848         --cvs-user, and envvars CVS_USER, CVS_RSH.
34849
34850 2007-10-24  Jim Meyering  <meyering@redhat.com>
34851
34852         Avoid diagnostics from sha1sum when there is no cached checksum.
34853         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
34854         if the po.s1 file hasn't been created yet.
34855
34856         * build-aux/bootstrap: Sync from coreutils:
34857         2007-10-24  Jim Meyering  <meyering@redhat.com>
34858         Get gnulib from the git repository, not from an obsolete cvs one.
34859         * build-aux/bootstrap: Suggestion from Micah Cowan.
34860         2007-10-04  Jim Meyering  <jim@meyering.net>
34861         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
34862         (update_po_files): Work also when there are no .po files in po/.
34863
34864 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34865
34866         * README: Append ".git" to git and cg examples.
34867         Problem reported by Benoit Sigoure.
34868
34869 2007-10-23  Micah Cowan  <micah@cowan.name>
34870
34871         * users.txt: Add wget.
34872
34873 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34874
34875         Fix linking of some unistdio tests on FreeBSD.
34876         * modules/unistdio/u16-vsnprintf-tests
34877         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
34878         * modules/unistdio/u16-vsprintf-tests
34879         (test_u16_vsnprintf1_LDADD): Likewise.
34880         * modules/unistdio/u32-vsnprintf-tests
34881         (test_u32_vsnprintf1_LDADD): Likewise.
34882         * modules/unistdio/u32-vsprintf-tests
34883         (test_u32_vsprintf1_LDADD): Likewise.
34884         * modules/unistdio/u8-vsnprintf-tests
34885         (test_u8_vsnprintf1_LDADD): Likewise.
34886         * modules/unistdio/u8-vsprintf-tests
34887         (test_u8_vsprintf1_LDADD): Likewise.
34888         * modules/unistdio/ulc-vsnprintf-tests
34889         (test_ulc_vsnprintf1_LDADD): Likewise.
34890         * modules/unistdio/ulc-vsprintf-tests
34891         (test_ulc_vsprintf1_LDADD): Likewise.
34892
34893         Fix linking of some uniconv tests on FreeBSD.
34894         * modules/uniconv/u16-conv-from-enc-tests
34895         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
34896         * modules/uniconv/u16-conv-to-enc-tests
34897         (test_u16_conv_to_enc_LDADD): Likewise.
34898         * modules/uniconv/u16-strconv-from-enc-tests
34899         (test_u16_strconv_from_enc_LDADD): Likewise.
34900         * modules/uniconv/u16-strconv-to-enc-tests
34901         (test_u16_strconv_to_enc_LDADD): Likewise.
34902         * modules/uniconv/u32-conv-from-enc-tests
34903         (test_u32_conv_from_enc_LDADD): Likewise.
34904         * modules/uniconv/u32-conv-to-enc-tests
34905         (test_u32_conv_to_enc_LDADD): Likewise.
34906         * modules/uniconv/u32-strconv-from-enc-tests
34907         (test_u32_strconv_from_enc_LDADD): Likewise.
34908         * modules/uniconv/u32-strconv-to-enc-tests
34909         (test_u32_strconv_to_enc_LDADD): Likewise.
34910         * modules/uniconv/u8-conv-from-enc-tests
34911         (test_u8_conv_from_enc_LDADD): Likewise.
34912         * modules/uniconv/u8-conv-to-enc-tests
34913         (test_u8_conv_to_enc_LDADD): Likewise.
34914         * modules/uniconv/u8-strconv-from-enc-tests
34915         (test_u8_strconv_from_enc_LDADD): Likewise.
34916         * modules/uniconv/u8-strconv-to-enc-tests
34917         (test_u8_strconv_to_enc_LDADD): Likewise.
34918
34919 2007-10-22  Bruno Haible  <bruno@clisp.org>
34920
34921         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
34922         size.
34923
34924 2007-10-22  Eric Blake  <ebb9@byu.net>
34925
34926         Tweak x*printf documentation.
34927         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
34928         variable name and comments.
34929         Suggested by Bruno Haible.
34930
34931 2007-10-22  Bruno Haible  <bruno@clisp.org>
34932
34933         * lib/acl.c (copy_acl): Fix file name in comment.
34934
34935 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34936
34937         Fix Tru64 problem with stdbool.h.
34938         * lib/stdbool.in.h (false, true):
34939         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
34940         Don't declare as an enum in this situation; it runs afoul of Tru64.
34941         Problem reported by Steven M. Schweda in
34942         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
34943
34944 2007-10-22  Eric Blake  <ebb9@byu.net>
34945
34946         Also wrap vf?printf.
34947         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
34948         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
34949         (xvprintf, xvfprintf): New functions.
34950
34951 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34952
34953         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
34954         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
34955
34956         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
34957         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
34958
34959 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34960
34961         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
34962         by Bruno Haible.
34963
34964 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34965
34966         * lib/getloadavg.c
34967         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
34968         Undef `sys' after including sys/table.h, for Tru64 4.0D.
34969
34970         * tests/test-i-ring.c: Work for C89.
34971
34972 2007-10-22  Bruno Haible  <bruno@clisp.org>
34973
34974         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
34975         -1u, in preprocessor expression, so that we don't test for the bug
34976         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
34977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
34978
34979 2007-10-22  Eric Blake  <ebb9@byu.net>
34980
34981         * tests/test-yesno.sh: Silence stderr during test.
34982
34983 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34984
34985         * modules/crypto/gc-camellia: New file.
34986
34987         * m4/gc-camellia.m4: New file.
34988
34989         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
34990
34991         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
34992
34993 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34994
34995         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
34996         --help to stdout.  Reported by sms@antinode.org (Steven
34997         M. Schweda).
34998
34999 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35000
35001         * users.txt: Fix link to libksba.
35002
35003 2007-10-21  Ben Pfaff  <blp@gnu.org>
35004
35005         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
35006         round.c roundf implementation that depends on floorf and ceilf to
35007         be tested unconditionally.
35008
35009 2007-10-21  Ben Pfaff  <blp@gnu.org>
35010
35011         * m4/check-libm-func.m4: Removed.
35012         * m4/check-math-lib.m4: New file.
35013         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
35014         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
35015         definition and lack of AC_LIBOBJ([roundf]).
35016         * m4/roundl.m4: Ditto, and similarly for roundl.
35017         * modules/round: Reference new m4 file.
35018         * modules/roundf: Ditto.
35019         * modules/roundl: Ditto.
35020         * tests/test-round2.c (main): Use ROUND instead of round.
35021         Bug report from Bruno Haible.
35022
35023 2007-10-21  Bruno Haible  <bruno@clisp.org>
35024
35025         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
35026         context.
35027
35028 2007-10-21  Bruno Haible  <bruno@clisp.org>
35029
35030         * tests/test-wcwidth.c (main): Allow negative result for some control
35031         characters.
35032
35033         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
35034         Needed on OSF/1 5.1.
35035
35036 2007-10-21  Bruno Haible  <bruno@clisp.org>
35037
35038         * tests/test-floorf1.c: Include isnanf.h.
35039         (main): Use isnanf() instead of isnan().
35040         * tests/test-ceilf1.c: Include isnanf.h.
35041         (main): Use isnanf() instead of isnan().
35042         * tests/test-truncf1.c: Include isnanf.h.
35043         (main): Use isnanf() instead of isnan().
35044         * tests/test-roundf1.c: Include isnanf.h.
35045         (main): Use isnanf() instead of isnan().
35046
35047 2007-10-21  Eric Blake  <ebb9@byu.net>
35048
35049         * users.txt: Update URL for m4.
35050
35051 2007-10-21  Bruno Haible  <bruno@clisp.org>
35052
35053         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
35054
35055 2007-10-21  Bruno Haible  <bruno@clisp.org>
35056
35057         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
35058         Git's management files if the CVS files are not present.
35059
35060 2007-10-20  Bruno Haible  <bruno@clisp.org>
35061
35062         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
35063         gcc-3.4.x.
35064
35065 2007-10-20  Ben Pfaff  <blp@gnu.org>
35066
35067         * lib/math.in.h: Declare round, roundf, roundl if we are providing
35068         implementations.
35069         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
35070         * lib/round.c: New file.
35071         * lib/roundf.c: New file.
35072         * lib/roundl.c: New file.
35073         * m4/round.m4: New file.
35074         * m4/roundf.m4: New file.
35075         * m4/roundl.m4: New file.
35076         * m4/check-libm-func-m4: New file.
35077         * modules/math: Replace round, roundf, roundl related @VARS@ in
35078         math.in.h.
35079         * modules/round: New file.
35080         * modules/round-tests: New file.
35081         * modules/roundf: New file.
35082         * modules/roundf-tests: New file.
35083         * modules/roundl: New file.
35084         * modules/roundl-tests: New file.
35085         * tests/test-round1.c: New file.
35086         * tests/test-round2.c: New file.
35087         * tests/test-roundf1.c: New file.
35088         * tests/test-roundf2.c: New file.
35089         * tests/test-roundl.c: New file.
35090         * doc/functions/round.texi: Mention round module.
35091         * doc/functions/roundf.texi: Mention roundf module.
35092         * doc/functions/roundl.texi: Mention roundl module.
35093         * MODULES.html.sh: Mention new modules.
35094         Thanks to Bruno Haible for suggestions.
35095
35096 2007-10-20  Jim Meyering  <meyering@redhat.com>
35097
35098         * lib/xprintf.c: Include <config.h> unconditionally.
35099
35100         Change xprintf's license to GPL.
35101         * modules/xprintf (License): s/LGPL/GPL/, since this module
35102         depends on modules (exit and exitfail) which are GPL.
35103         Suggestion from Bruno Haible.
35104
35105         xprintf fixes.
35106         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
35107         Use a clearer diagnostic.
35108         Patch from Bruno Haible.
35109
35110 2007-10-20  Bruno Haible  <bruno@clisp.org>
35111
35112         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
35113         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
35114         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35115
35116 2007-10-20  Bruno Haible  <bruno@clisp.org>
35117
35118         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
35119         precision in the comparison result > x - 1 or similar.
35120         * tests/test-ceilf2.c (correct_result_p): Likewise.
35121         * tests/test-truncf2.c (correct_result_p): Likewise.
35122         * tests/test-trunc2.c (correct_result_p): Likewise.
35123         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35124
35125 2007-10-20  Bruno Haible  <bruno@clisp.org>
35126
35127         * modules/ceil: New file.
35128         * m4/ceil.m4: New file.
35129         * doc/functions/ceil.texi: Mention the 'ceil' module.
35130
35131 2007-10-20  Bruno Haible  <bruno@clisp.org>
35132
35133         * modules/floor: New file.
35134         * m4/floor.m4: New file.
35135         * doc/functions/floor.texi: Mention the 'floor' module.
35136
35137 2007-10-20  Bruno Haible  <bruno@clisp.org>
35138
35139         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
35140         of %a.
35141         * modules/floorf-tests (Depends-on): Likewise.
35142         * modules/truncf-tests (Depends-on): Likewise.
35143         * modules/trunc-tests (Depends-on): Likewise.
35144         Reported by Ben Pfaff.
35145
35146 2007-10-19  Jim Meyering  <meyering@redhat.com>
35147
35148         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
35149         Don't bother testing specific errno values.  Just test ferror.
35150
35151         New module: xprintf
35152         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
35153
35154 2007-10-19  Bruno Haible  <bruno@clisp.org>
35155
35156         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
35157         syntax.
35158         * modules/javaexec (Makefile.am): Likewise.
35159         * modules/relocatable-prog (Makefile.am): Likewise.
35160         Suggested by Jim Meyering.
35161
35162 2007-10-18  Bruno Haible  <bruno@clisp.org>
35163
35164         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
35165         Reported by Jim Meyering.
35166
35167 2007-10-18  Eric Blake  <ebb9@byu.net>
35168
35169         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
35170
35171 2007-10-18  Bruno Haible  <bruno@clisp.org>
35172
35173         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
35174         the format string into writable memory. Needed in Fortify conditions.
35175
35176 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
35177             Bruno Haible  <bruno@clisp.org>
35178
35179         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
35180         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
35181         * modules/trim (Depends-on): Add mbchar.
35182         (configure.ac): Add gl_FUNC_MBRTOWC.
35183         (Makefile.am): Augment lib_SOURCES.
35184
35185 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35186
35187         Modify glob.c to use fstatat and dirfd, to simplify it.
35188         Suggested by Eric Blake.
35189         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
35190         Don't include <stdbool.h>; not used.
35191         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
35192         (link_exists_p): Simplify implementation, since we can now assume
35193         dirfd and fstatat.
35194         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
35195
35196 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35197
35198         * gnulib-tool (func_get_dependencies): Fix sed script to
35199         match only tests.
35200
35201 2007-10-17  Bruno Haible  <bruno@clisp.org>
35202
35203         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
35204         allow locale names without encoding suffix.
35205         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35206         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35207
35208 2007-10-16  Bruno Haible  <bruno@clisp.org>
35209
35210         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
35211         * lib/getgroups.c (getgroups): Likewise.
35212         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
35213
35214 2007-10-16  Bruno Haible  <bruno@clisp.org>
35215
35216         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
35217         * modules/malloc-posix (License): Likewise.
35218         * modules/realloc-posix (License): Likewise.
35219         * modules/calloc-posix (License): Likewise.
35220         * modules/intprops (License): Change from GPL to LGPL, with
35221         Paul Eggert's approval.
35222
35223 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35224
35225         Merge glibc changes into lib/glob.c.
35226
35227         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
35228         2007-10-15 04:59:03 UTC.  Here are the changes:
35229
35230         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
35231
35232         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
35233
35234         * lib/glob.c: Add some branch prediction throughout.
35235
35236         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
35237
35238         [BZ #5103]
35239         * lib/glob.c (glob): Recognize patterns starting \/.
35240
35241         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
35242
35243         [BZ #3996]
35244         * lib/glob.c (attribute_hidden): Define if not defined.
35245         (glob): Unescape dirname, filename or username when needed and not
35246         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
35247         is NULL.  Handle unescaped [ in pattern without closing ].
35248         Don't pass GLOB_CHECK down to recursive glob for directories.
35249         (__glob_pattern_type): New function.
35250         (__glob_pattern_p): Implement using __glob_pattern_type.
35251         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
35252         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
35253         Remove unreachable code.
35254
35255         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
35256
35257         * lib/glob.c (glob_in_dir): Add some comments and asserts to
35258         explain why there are no leaks.
35259
35260         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
35261
35262         [BZ #3253]
35263         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
35264         time, rather allocate increasingly bigger arrays of pointers, if
35265         possible with alloca, if too large with malloc.
35266
35267 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35268
35269         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
35270         Problem reported by H.Merijn Brand in
35271         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
35272         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
35273         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35274
35275 2007-10-15  Bruno Haible  <bruno@clisp.org>
35276
35277         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
35278         with explicit rpl_ prefix.
35279         * lib/fopen.c (fopen): Likewise.
35280         * lib/freopen.c (freopen): Likewise.
35281         * lib/iconv.c (iconv): Likewise.
35282         * lib/iconv_close.c (iconv_close): Likewise.
35283
35284 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35285
35286         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
35287
35288 2007-10-15  Bruno Haible  <bruno@clisp.org>
35289
35290         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
35291         <stddef.h> instead of <stdlib.h> since we only need NULL.
35292         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35293
35294 2007-10-15  Bruno Haible  <bruno@clisp.org>
35295
35296         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
35297         Replace paragraph talking about LIBOBJS.
35298         Reported by Colin Watson <cjwatson@debian.org>.
35299
35300 2007-10-15  Bruno Haible  <bruno@clisp.org>
35301
35302         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
35303         <stdlib.h> before using NULL.
35304
35305 2007-10-15  Simon Josefsson  <simon@josefsson.org>
35306
35307         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
35308         Reported by Albert Chin <china@thewrittenword.com>.
35309
35310 2007-10-14  Bruno Haible  <bruno@clisp.org>
35311
35312         * modules/iconv_open-utf-tests: New file.
35313         * tests/test-iconv-utf.c: New file.
35314
35315         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
35316         * modules/iconv_open-utf: New file.
35317         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
35318         (iconv, iconv_close): New declarations.
35319         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
35320         be defined.
35321         (iconv_open): Add special handling of conversion between UTF-8 and
35322         UTF-{16,32}{BE,LE}.
35323         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
35324         * lib/iconv_close.c: New file.
35325         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
35326         gl_FUNC_ICONV_OPEN.
35327         (gl_FUNC_ICONV_OPEN): Use it.
35328         (gl_FUNC_ICONV_OPEN_UTF): New macro.
35329         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
35330         and REPLACE_ICONV_UTF.
35331         * modules/iconv_open (Depends-on): Add c-strcase.
35332         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
35333         ICONV_CONST.
35334         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
35335
35336 2007-10-13  Albert Chin  <china@thewrittenword.com>
35337             Bruno Haible  <bruno@clisp.org>
35338
35339         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
35340         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
35341
35342 2007-10-13  Bruno Haible  <bruno@clisp.org>
35343
35344         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
35345         defined, use the ISO C99 inline semantics.
35346         * lib/argp.h (ARGP_EI): Likewise.
35347
35348 2007-10-13  Bruno Haible  <bruno@clisp.org>
35349
35350         Handle 'inline' change in gcc 4.3.0.
35351         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
35352         argp_fmtstream_write, argp_fmtstream_set_lmargin,
35353         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
35354         argp_fmtstream_point): Disable 'extern' declaration if the function
35355         definition is going to be provided inline.
35356         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
35357         semantics, not the ISO C99 inline semantics.
35358         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
35359         'extern' declaration if the function definition is going to be provided
35360         inline.
35361         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
35362         the GNU C inline semantics, not the ISO C99 inline semantics. With
35363         GCC 4.2, avoid a warning.
35364
35365 2007-10-13  Bruno Haible  <bruno@clisp.org>
35366
35367         * lib/freading.h (freading): Enable the use of __freading for
35368         glibc >= 2.7.
35369         * lib/freading.c (freading): Likewise.
35370
35371 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35372
35373         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
35374         "warning: C99 inline functions are not supported; using GNU89".
35375
35376 2007-10-12  Bruno Haible  <bruno@clisp.org>
35377
35378         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
35379         of 2.
35380         * tests/test-ceilf2.c: New file.
35381         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
35382
35383         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
35384         * modules/ceilf-tests: Update.
35385
35386 2007-10-12  Bruno Haible  <bruno@clisp.org>
35387
35388         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
35389         of 2.
35390         * tests/test-floorf2.c: New file.
35391         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
35392
35393         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
35394         * modules/floorf-tests: Update.
35395
35396 2007-10-12  Bruno Haible  <bruno@clisp.org>
35397
35398         * tests/test-trunc2.c: New file.
35399         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
35400
35401         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
35402         * modules/trunc-tests: Update.
35403
35404 2007-10-12  Bruno Haible  <bruno@clisp.org>
35405
35406         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
35407         of 2.
35408         * tests/test-truncf2.c: New file.
35409         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
35410
35411         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
35412         * modules/truncf-tests: Update.
35413
35414 2007-10-11  Eric Blake  <ebb9@byu.net>
35415
35416         Don't claim strerror is broken on Interix.
35417         * doc/functions/strerror.texi (strerror): Known broken systems are
35418         now Solaris 8, and not Interix.
35419         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
35420         Interix on cross-compile.
35421         Reported by Martin Koeppe in
35422         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
35423
35424 2007-10-11  Bruno Haible  <bruno@clisp.org>
35425
35426         * modules/i-ring-tests: New file.
35427         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
35428         instead of assert.
35429
35430 2007-10-11  Bruno Haible  <bruno@clisp.org>
35431
35432         * modules/filenamecat-tests: New file.
35433         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
35434         * lib/filenamecat.c: Remove test code.
35435
35436 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35437
35438         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
35439
35440         * lib/strerror.c: Include <string.h> always, to test interface,
35441         and to remove the need for the dummy.
35442         Include intprops.h to compute width instead of doing it ourselves
35443         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
35444         (strerror): Define it to return NULL if there's no system strerror.
35445         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
35446         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
35447         ancient pre-strerror Unix systems well any more.  Saying "unknown
35448         system error" is enough.
35449         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
35450         simpler strerror.c implementation.
35451         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
35452         Simplify the tests to reflect the simpler strerror implementation.
35453         * modules/strerror (Depends-on): Add intprops.
35454
35455 2007-10-09  Eric Blake  <ebb9@byu.net>
35456
35457         Silence test-fpending.
35458         * modules/fpending-tests (Files): Add wrapper script.
35459         * tests/test-fpending.sh: New file.
35460
35461 2007-10-09  Bruno Haible  <bruno@clisp.org>
35462
35463         * MODULES.html.sh (func_module): Don't create a hyperlink for
35464         function names like 'printf_frexp'.
35465         (Misc): Add crc, memxor.
35466         (Characteristics of floating types): New section.
35467         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
35468         isnanf-nolibm, signbit, trunc, truncf, truncl.
35469         (Enhancements for ISO C 99 functions): New subsection Input/output.
35470         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
35471         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
35472         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
35473         (Compatibility checks for POSIX:2001 functions): Add clock-time.
35474         (Enhancements for POSIX:2001 functions): Add chdir-long.
35475         (File system functions): Add areadlink, chdir-safer, read-file.
35476         Remove cycle-check.
35477         (File system as inode set): New section.
35478         (Date and time): Add gethrxtime.
35479         (Multithreading): Add openmp.
35480         (Internationalization functions): Add localename.
35481         (Unicode string functions): Add unistr/u*-mbsnlen.
35482         (Support for maintaining and releasing projects): Add git-version-gen.
35483         (Lone files): Remove directories.
35484
35485 2007-10-08  Ben Pfaff  <blp@gnu.org>
35486
35487         * lib/xmalloca.h: Fix typo in comment.
35488
35489 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35490
35491         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
35492         when avoiding problems with integer overflow.  Use a portable test
35493         instead.
35494
35495 2007-10-08  Simon Josefsson  <simon@josefsson.org>
35496
35497         * modules/dummy (License): Change to LGPLv2+.
35498         * modules/float (License): Likewise
35499         * modules/realloc (License): Likewise
35500         * modules/stdlib (License): Likewise
35501
35502 2007-10-07  Bruno Haible  <bruno@clisp.org>
35503
35504         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
35505         * floor.c (TWO_MANT_DIG): Likewise.
35506         * ceil.c (TWO_MANT_DIG): Likewise.
35507         Reported by Ben Pfaff.
35508
35509 2007-10-07  Bruno Haible  <bruno@clisp.org>
35510
35511         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
35512         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
35513         * lib/frexp.c (FUNC): Likewise.
35514         * lib/printf-frexp.h (printf_frexp): Likewise.
35515         * lib/printf-frexpl.h (printf_frexpl): Likewise.
35516         * lib/printf-frexp.c (FUNC): Likewise.
35517         Suggested by Jim Meyering.
35518
35519 2007-10-07  Jim Meyering  <meyering@redhat.com>
35520
35521         Make xnanosleep's integer overflow test more robust.
35522         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35523         so that gcc-4.3.0 doesn't optimize away this test for overflow.
35524
35525 2007-10-07  Bruno Haible  <bruno@clisp.org>
35526
35527         * NEWS: Mention the license change.
35528
35529         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
35530         abbreviations in the modules files.
35531
35532         Change copyright notice from GPLv2+ to GPLv3+.
35533         * README: Change copyright notice.
35534         * MODULES.html.sh: Likewise.
35535         * build-aux/bootstrap.conf: Likewise.
35536         * build-aux/config.libpath: Likewise.
35537         * build-aux/csharpcomp.sh.in: Likewise.
35538         * build-aux/csharpexec.sh.in: Likewise.
35539         * build-aux/install-reloc: Likewise.
35540         * build-aux/javacomp.sh.in: Likewise.
35541         * build-aux/javaexec.sh.in: Likewise.
35542         * build-aux/ldd.sh.in: Likewise.
35543         * build-aux/reloc-ldflags: Likewise.
35544         * build-aux/relocatable.sh.in: Likewise.
35545         * build-aux/x-to-1.in: Likewise.
35546         * check-module: Likewise.
35547         * config/srclistvars.sh: Likewise.
35548         * gnulib-tool: Likewise.
35549         * lib/acl-internal.h: Likewise.
35550         * lib/acl.c: Likewise.
35551         * lib/acl.h: Likewise.
35552         * lib/acl_entries.c: Likewise.
35553         * lib/areadlink-with-size.c: Likewise.
35554         * lib/areadlink.c: Likewise.
35555         * lib/areadlink.h: Likewise.
35556         * lib/argmatch.c: Likewise.
35557         * lib/argmatch.h: Likewise.
35558         * lib/argp-ba.c: Likewise.
35559         * lib/argp-eexst.c: Likewise.
35560         * lib/argp-fmtstream.c: Likewise.
35561         * lib/argp-fmtstream.h: Likewise.
35562         * lib/argp-fs-xinl.c: Likewise.
35563         * lib/argp-help.c: Likewise.
35564         * lib/argp-namefrob.h: Likewise.
35565         * lib/argp-parse.c: Likewise.
35566         * lib/argp-pin.c: Likewise.
35567         * lib/argp-pv.c: Likewise.
35568         * lib/argp-pvh.c: Likewise.
35569         * lib/argp-xinl.c: Likewise.
35570         * lib/argp.h: Likewise.
35571         * lib/at-func.c: Likewise.
35572         * lib/atanl.c: Likewise.
35573         * lib/backupfile.c: Likewise.
35574         * lib/backupfile.h: Likewise.
35575         * lib/basename.c: Likewise.
35576         * lib/binary-io.h: Likewise.
35577         * lib/byteswap.in.h: Likewise.
35578         * lib/c-stack.c: Likewise.
35579         * lib/c-stack.h: Likewise.
35580         * lib/c-strcasestr.c: Likewise.
35581         * lib/c-strcasestr.h: Likewise.
35582         * lib/c-strstr.c: Likewise.
35583         * lib/c-strstr.h: Likewise.
35584         * lib/c-strtod.c: Likewise.
35585         * lib/calloc.c: Likewise.
35586         * lib/canon-host.c: Likewise.
35587         * lib/canon-host.h: Likewise.
35588         * lib/canonicalize-lgpl.c: Likewise.
35589         * lib/canonicalize.c: Likewise.
35590         * lib/canonicalize.h: Likewise.
35591         * lib/ceil.c: Likewise.
35592         * lib/ceilf.c: Likewise.
35593         * lib/ceill.c: Likewise.
35594         * lib/chdir-long.c: Likewise.
35595         * lib/chdir-long.h: Likewise.
35596         * lib/chdir-safer.c: Likewise.
35597         * lib/chdir-safer.h: Likewise.
35598         * lib/chown.c: Likewise.
35599         * lib/classpath.c: Likewise.
35600         * lib/classpath.h: Likewise.
35601         * lib/clean-temp.c: Likewise.
35602         * lib/clean-temp.h: Likewise.
35603         * lib/cloexec.c: Likewise.
35604         * lib/close-stream.c: Likewise.
35605         * lib/closein.c: Likewise.
35606         * lib/closein.h: Likewise.
35607         * lib/closeout.c: Likewise.
35608         * lib/closeout.h: Likewise.
35609         * lib/concat-filename.c: Likewise.
35610         * lib/copy-file.c: Likewise.
35611         * lib/copy-file.h: Likewise.
35612         * lib/count-one-bits.h: Likewise.
35613         * lib/crc.c: Likewise.
35614         * lib/crc.h: Likewise.
35615         * lib/creat-safer.c: Likewise.
35616         * lib/csharpcomp.c: Likewise.
35617         * lib/csharpcomp.h: Likewise.
35618         * lib/csharpexec.c: Likewise.
35619         * lib/csharpexec.h: Likewise.
35620         * lib/cycle-check.c: Likewise.
35621         * lib/cycle-check.h: Likewise.
35622         * lib/diacrit.c: Likewise.
35623         * lib/diacrit.h: Likewise.
35624         * lib/diffseq.h: Likewise.
35625         * lib/dirchownmod.c: Likewise.
35626         * lib/dirent.in.h: Likewise.
35627         * lib/dirfd.c: Likewise.
35628         * lib/dirfd.h: Likewise.
35629         * lib/dirname.c: Likewise.
35630         * lib/dirname.h: Likewise.
35631         * lib/dummy.c: Likewise.
35632         * lib/dup-safer.c: Likewise.
35633         * lib/dup2.c: Likewise.
35634         * lib/eealloc.h: Likewise.
35635         * lib/error.c: Likewise.
35636         * lib/error.h: Likewise.
35637         * lib/euidaccess.c: Likewise.
35638         * lib/exclude.c: Likewise.
35639         * lib/exclude.h: Likewise.
35640         * lib/execute.c: Likewise.
35641         * lib/execute.h: Likewise.
35642         * lib/exitfail.c: Likewise.
35643         * lib/exitfail.h: Likewise.
35644         * lib/expl.c: Likewise.
35645         * lib/fatal-signal.c: Likewise.
35646         * lib/fatal-signal.h: Likewise.
35647         * lib/fbufmode.c: Likewise.
35648         * lib/fbufmode.h: Likewise.
35649         * lib/fchdir.c: Likewise.
35650         * lib/fchmodat.c: Likewise.
35651         * lib/fchownat.c: Likewise.
35652         * lib/fcntl--.h: Likewise.
35653         * lib/fcntl-safer.h: Likewise.
35654         * lib/fcntl.in.h: Likewise.
35655         * lib/fd-safer.c: Likewise.
35656         * lib/fflush.c: Likewise.
35657         * lib/file-has-acl.c: Likewise.
35658         * lib/file-set.c: Likewise.
35659         * lib/file-type.c: Likewise.
35660         * lib/file-type.h: Likewise.
35661         * lib/fileblocks.c: Likewise.
35662         * lib/filemode.c: Likewise.
35663         * lib/filemode.h: Likewise.
35664         * lib/filename.h: Likewise.
35665         * lib/filenamecat.c: Likewise.
35666         * lib/filenamecat.h: Likewise.
35667         * lib/findprog.c: Likewise.
35668         * lib/findprog.h: Likewise.
35669         * lib/float.in.h: Likewise.
35670         * lib/floor.c: Likewise.
35671         * lib/floorf.c: Likewise.
35672         * lib/floorl.c: Likewise.
35673         * lib/fopen-safer.c: Likewise.
35674         * lib/fopen.c: Likewise.
35675         * lib/fpending.c: Likewise.
35676         * lib/fpending.h: Likewise.
35677         * lib/fprintf.c: Likewise.
35678         * lib/fprintftime.h: Likewise.
35679         * lib/fpucw.h: Likewise.
35680         * lib/fpurge.c: Likewise.
35681         * lib/fpurge.h: Likewise.
35682         * lib/freadable.c: Likewise.
35683         * lib/freadable.h: Likewise.
35684         * lib/freadahead.c: Likewise.
35685         * lib/freadahead.h: Likewise.
35686         * lib/freading.c: Likewise.
35687         * lib/freading.h: Likewise.
35688         * lib/free.c: Likewise.
35689         * lib/freopen.c: Likewise.
35690         * lib/frexp.c: Likewise.
35691         * lib/frexpl.c: Likewise.
35692         * lib/fseek.c: Likewise.
35693         * lib/fseterr.c: Likewise.
35694         * lib/fseterr.h: Likewise.
35695         * lib/fstatat.c: Likewise.
35696         * lib/fstrcmp.c: Likewise.
35697         * lib/fstrcmp.h: Likewise.
35698         * lib/fsusage.c: Likewise.
35699         * lib/fsusage.h: Likewise.
35700         * lib/ftell.c: Likewise.
35701         * lib/ftello.c: Likewise.
35702         * lib/fts-cycle.c: Likewise.
35703         * lib/fts.c: Likewise.
35704         * lib/fts_.h: Likewise.
35705         * lib/full-read.c: Likewise.
35706         * lib/full-read.h: Likewise.
35707         * lib/full-write.c: Likewise.
35708         * lib/full-write.h: Likewise.
35709         * lib/fwritable.c: Likewise.
35710         * lib/fwritable.h: Likewise.
35711         * lib/fwriteerror.c: Likewise.
35712         * lib/fwriteerror.h: Likewise.
35713         * lib/fwriting.c: Likewise.
35714         * lib/fwriting.h: Likewise.
35715         * lib/gcd.c: Likewise.
35716         * lib/gcd.h: Likewise.
35717         * lib/getcwd.c: Likewise.
35718         * lib/getdate.h: Likewise.
35719         * lib/getdate.y: Likewise.
35720         * lib/getdomainname.c: Likewise.
35721         * lib/getdomainname.h: Likewise.
35722         * lib/getgroups.c: Likewise.
35723         * lib/gethostname.c: Likewise.
35724         * lib/gethrxtime.c: Likewise.
35725         * lib/gethrxtime.h: Likewise.
35726         * lib/getloadavg.c: Likewise.
35727         * lib/getndelim2.c: Likewise.
35728         * lib/getndelim2.h: Likewise.
35729         * lib/getnline.c: Likewise.
35730         * lib/getnline.h: Likewise.
35731         * lib/getopt.c: Likewise.
35732         * lib/getopt.in.h: Likewise.
35733         * lib/getopt1.c: Likewise.
35734         * lib/getopt_int.h: Likewise.
35735         * lib/getpagesize.h: Likewise.
35736         * lib/getsubopt.c: Likewise.
35737         * lib/gettime.c: Likewise.
35738         * lib/getugroups.c: Likewise.
35739         * lib/getugroups.h: Likewise.
35740         * lib/getusershell.c: Likewise.
35741         * lib/gl_anyavltree_list1.h: Likewise.
35742         * lib/gl_anyavltree_list2.h: Likewise.
35743         * lib/gl_anyhash_list1.h: Likewise.
35744         * lib/gl_anyhash_list2.h: Likewise.
35745         * lib/gl_anylinked_list1.h: Likewise.
35746         * lib/gl_anylinked_list2.h: Likewise.
35747         * lib/gl_anyrbtree_list1.h: Likewise.
35748         * lib/gl_anyrbtree_list2.h: Likewise.
35749         * lib/gl_anytree_list1.h: Likewise.
35750         * lib/gl_anytree_list2.h: Likewise.
35751         * lib/gl_anytree_oset.h: Likewise.
35752         * lib/gl_anytreehash_list1.h: Likewise.
35753         * lib/gl_anytreehash_list2.h: Likewise.
35754         * lib/gl_array_list.c: Likewise.
35755         * lib/gl_array_list.h: Likewise.
35756         * lib/gl_array_oset.c: Likewise.
35757         * lib/gl_array_oset.h: Likewise.
35758         * lib/gl_avltree_list.c: Likewise.
35759         * lib/gl_avltree_list.h: Likewise.
35760         * lib/gl_avltree_oset.c: Likewise.
35761         * lib/gl_avltree_oset.h: Likewise.
35762         * lib/gl_avltreehash_list.c: Likewise.
35763         * lib/gl_avltreehash_list.h: Likewise.
35764         * lib/gl_carray_list.c: Likewise.
35765         * lib/gl_carray_list.h: Likewise.
35766         * lib/gl_linked_list.c: Likewise.
35767         * lib/gl_linked_list.h: Likewise.
35768         * lib/gl_linkedhash_list.c: Likewise.
35769         * lib/gl_linkedhash_list.h: Likewise.
35770         * lib/gl_list.c: Likewise.
35771         * lib/gl_list.h: Likewise.
35772         * lib/gl_oset.c: Likewise.
35773         * lib/gl_oset.h: Likewise.
35774         * lib/gl_rbtree_list.c: Likewise.
35775         * lib/gl_rbtree_list.h: Likewise.
35776         * lib/gl_rbtree_oset.c: Likewise.
35777         * lib/gl_rbtree_oset.h: Likewise.
35778         * lib/gl_rbtreehash_list.c: Likewise.
35779         * lib/gl_rbtreehash_list.h: Likewise.
35780         * lib/gl_sublist.c: Likewise.
35781         * lib/gl_sublist.h: Likewise.
35782         * lib/group-member.c: Likewise.
35783         * lib/group-member.h: Likewise.
35784         * lib/hard-locale.c: Likewise.
35785         * lib/hard-locale.h: Likewise.
35786         * lib/hash-pjw.c: Likewise.
35787         * lib/hash-pjw.h: Likewise.
35788         * lib/hash-triple.c: Likewise.
35789         * lib/hash.c: Likewise.
35790         * lib/hash.h: Likewise.
35791         * lib/human.c: Likewise.
35792         * lib/human.h: Likewise.
35793         * lib/i-ring.c: Likewise.
35794         * lib/i-ring.h: Likewise.
35795         * lib/idcache.c: Likewise.
35796         * lib/imaxabs.c: Likewise.
35797         * lib/imaxdiv.c: Likewise.
35798         * lib/inet_pton.c: Likewise.
35799         * lib/inet_pton.h: Likewise.
35800         * lib/intprops.h: Likewise.
35801         * lib/inttostr.c: Likewise.
35802         * lib/inttostr.h: Likewise.
35803         * lib/inttypes.in.h: Likewise.
35804         * lib/isapipe.c: Likewise.
35805         * lib/isdir.c: Likewise.
35806         * lib/isnan.c: Likewise.
35807         * lib/isnan.h: Likewise.
35808         * lib/isnanf.c: Likewise.
35809         * lib/isnanf.h: Likewise.
35810         * lib/isnanl-nolibm.h: Likewise.
35811         * lib/isnanl.c: Likewise.
35812         * lib/isnanl.h: Likewise.
35813         * lib/javacomp.c: Likewise.
35814         * lib/javacomp.h: Likewise.
35815         * lib/javaexec.c: Likewise.
35816         * lib/javaexec.h: Likewise.
35817         * lib/javaversion.c: Likewise.
35818         * lib/javaversion.h: Likewise.
35819         * lib/javaversion.java: Likewise.
35820         * lib/lbrkprop.h: Likewise.
35821         * lib/lchmod.h: Likewise.
35822         * lib/lchown.c: Likewise.
35823         * lib/ldexpl.c: Likewise.
35824         * lib/linebreak.c: Likewise.
35825         * lib/linebreak.h: Likewise.
35826         * lib/linebuffer.c: Likewise.
35827         * lib/linebuffer.h: Likewise.
35828         * lib/locale.in.h: Likewise.
35829         * lib/logl.c: Likewise.
35830         * lib/long-options.c: Likewise.
35831         * lib/long-options.h: Likewise.
35832         * lib/lstat.c: Likewise.
35833         * lib/lstat.h: Likewise.
35834         * lib/math.in.h: Likewise.
35835         * lib/mbchar.c: Likewise.
35836         * lib/mbchar.h: Likewise.
35837         * lib/mbfile.h: Likewise.
35838         * lib/mbiter.h: Likewise.
35839         * lib/mbscasecmp.c: Likewise.
35840         * lib/mbscasestr.c: Likewise.
35841         * lib/mbschr.c: Likewise.
35842         * lib/mbscspn.c: Likewise.
35843         * lib/mbslen.c: Likewise.
35844         * lib/mbsncasecmp.c: Likewise.
35845         * lib/mbsnlen.c: Likewise.
35846         * lib/mbspbrk.c: Likewise.
35847         * lib/mbspcasecmp.c: Likewise.
35848         * lib/mbsrchr.c: Likewise.
35849         * lib/mbssep.c: Likewise.
35850         * lib/mbsspn.c: Likewise.
35851         * lib/mbsstr.c: Likewise.
35852         * lib/mbstok_r.c: Likewise.
35853         * lib/mbswidth.c: Likewise.
35854         * lib/mbswidth.h: Likewise.
35855         * lib/mbuiter.h: Likewise.
35856         * lib/memcasecmp.c: Likewise.
35857         * lib/memcasecmp.h: Likewise.
35858         * lib/memchr.c: Likewise.
35859         * lib/memcmp.c: Likewise.
35860         * lib/memcoll.c: Likewise.
35861         * lib/memcoll.h: Likewise.
35862         * lib/memcpy.c: Likewise.
35863         * lib/memrchr.c: Likewise.
35864         * lib/mkancesdirs.c: Likewise.
35865         * lib/mkdir-p.c: Likewise.
35866         * lib/mkdir-p.h: Likewise.
35867         * lib/mkdir.c: Likewise.
35868         * lib/mkdirat.c: Likewise.
35869         * lib/mkdtemp.c: Likewise.
35870         * lib/mkstemp-safer.c: Likewise.
35871         * lib/mkstemp.c: Likewise.
35872         * lib/modechange.c: Likewise.
35873         * lib/modechange.h: Likewise.
35874         * lib/mountlist.c: Likewise.
35875         * lib/mountlist.h: Likewise.
35876         * lib/mpsort.c: Likewise.
35877         * lib/nanosleep.c: Likewise.
35878         * lib/obstack.c: Likewise.
35879         * lib/obstack.h: Likewise.
35880         * lib/open-safer.c: Likewise.
35881         * lib/open.c: Likewise.
35882         * lib/openat-die.c: Likewise.
35883         * lib/openat-priv.h: Likewise.
35884         * lib/openat-proc.c: Likewise.
35885         * lib/openat.c: Likewise.
35886         * lib/openat.h: Likewise.
35887         * lib/pagealign_alloc.c: Likewise.
35888         * lib/pagealign_alloc.h: Likewise.
35889         * lib/physmem.c: Likewise.
35890         * lib/physmem.h: Likewise.
35891         * lib/pipe-safer.c: Likewise.
35892         * lib/pipe.c: Likewise.
35893         * lib/pipe.h: Likewise.
35894         * lib/posixtm.c: Likewise.
35895         * lib/posixtm.h: Likewise.
35896         * lib/posixver.c: Likewise.
35897         * lib/printf-frexp.c: Likewise.
35898         * lib/printf-frexp.h: Likewise.
35899         * lib/printf-frexpl.c: Likewise.
35900         * lib/printf-frexpl.h: Likewise.
35901         * lib/printf.c: Likewise.
35902         * lib/progname.c: Likewise.
35903         * lib/progname.h: Likewise.
35904         * lib/progreloc.c: Likewise.
35905         * lib/putenv.c: Likewise.
35906         * lib/quote.c: Likewise.
35907         * lib/quote.h: Likewise.
35908         * lib/quotearg.c: Likewise.
35909         * lib/quotearg.h: Likewise.
35910         * lib/raise.c: Likewise.
35911         * lib/readline.c: Likewise.
35912         * lib/readline.h: Likewise.
35913         * lib/readlink.c: Likewise.
35914         * lib/readtokens.c: Likewise.
35915         * lib/readtokens.h: Likewise.
35916         * lib/readtokens0.c: Likewise.
35917         * lib/readtokens0.h: Likewise.
35918         * lib/readutmp.c: Likewise.
35919         * lib/readutmp.h: Likewise.
35920         * lib/realloc.c: Likewise.
35921         * lib/relocwrapper.c: Likewise.
35922         * lib/rename-dest-slash.c: Likewise.
35923         * lib/rename.c: Likewise.
35924         * lib/rmdir.c: Likewise.
35925         * lib/rpmatch.c: Likewise.
35926         * lib/safe-read.c: Likewise.
35927         * lib/safe-read.h: Likewise.
35928         * lib/safe-write.c: Likewise.
35929         * lib/safe-write.h: Likewise.
35930         * lib/same-inode.h: Likewise.
35931         * lib/same.c: Likewise.
35932         * lib/same.h: Likewise.
35933         * lib/save-cwd.c: Likewise.
35934         * lib/save-cwd.h: Likewise.
35935         * lib/savedir.c: Likewise.
35936         * lib/savedir.h: Likewise.
35937         * lib/savewd.c: Likewise.
35938         * lib/savewd.h: Likewise.
35939         * lib/search.in.h: Likewise.
35940         * lib/setenv.c: Likewise.
35941         * lib/setenv.h: Likewise.
35942         * lib/settime.c: Likewise.
35943         * lib/sh-quote.c: Likewise.
35944         * lib/sh-quote.h: Likewise.
35945         * lib/sig2str.c: Likewise.
35946         * lib/sig2str.h: Likewise.
35947         * lib/signal.in.h: Likewise.
35948         * lib/signbitd.c: Likewise.
35949         * lib/signbitf.c: Likewise.
35950         * lib/signbitl.c: Likewise.
35951         * lib/sigprocmask.c: Likewise.
35952         * lib/sincosl.c: Likewise.
35953         * lib/sleep.c: Likewise.
35954         * lib/sprintf.c: Likewise.
35955         * lib/sqrtl.c: Likewise.
35956         * lib/stat-time.h: Likewise.
35957         * lib/stdio--.h: Likewise.
35958         * lib/stdio-safer.h: Likewise.
35959         * lib/stdlib--.h: Likewise.
35960         * lib/stdlib-safer.h: Likewise.
35961         * lib/stdlib.in.h: Likewise.
35962         * lib/stpcpy.c: Likewise.
35963         * lib/stpncpy.c: Likewise.
35964         * lib/strchrnul.c: Likewise.
35965         * lib/strcspn.c: Likewise.
35966         * lib/strerror.c: Likewise.
35967         * lib/strftime.c: Likewise.
35968         * lib/strftime.h: Likewise.
35969         * lib/striconveh.c: Likewise.
35970         * lib/striconveh.h: Likewise.
35971         * lib/striconveha.c: Likewise.
35972         * lib/striconveha.h: Likewise.
35973         * lib/stripslash.c: Likewise.
35974         * lib/strnlen1.c: Likewise.
35975         * lib/strnlen1.h: Likewise.
35976         * lib/strtod.c: Likewise.
35977         * lib/strtoimax.c: Likewise.
35978         * lib/strtok_r.c: Likewise.
35979         * lib/strtol.c: Likewise.
35980         * lib/strtoll.c: Likewise.
35981         * lib/strtoul.c: Likewise.
35982         * lib/strtoull.c: Likewise.
35983         * lib/sysexits.in.h: Likewise.
35984         * lib/tempname.c: Likewise.
35985         * lib/tempname.h: Likewise.
35986         * lib/timespec.h: Likewise.
35987         * lib/tls.c: Likewise.
35988         * lib/tls.h: Likewise.
35989         * lib/tmpdir.c: Likewise.
35990         * lib/tmpdir.h: Likewise.
35991         * lib/tmpfile-safer.c: Likewise.
35992         * lib/tmpfile.c: Likewise.
35993         * lib/trigl.c: Likewise.
35994         * lib/trigl.h: Likewise.
35995         * lib/trim.c: Likewise.
35996         * lib/trim.h: Likewise.
35997         * lib/trunc.c: Likewise.
35998         * lib/truncf.c: Likewise.
35999         * lib/truncl.c: Likewise.
36000         * lib/tsearch.c: Likewise.
36001         * lib/unicodeio.c: Likewise.
36002         * lib/unicodeio.h: Likewise.
36003         * lib/unistd--.h: Likewise.
36004         * lib/unistd-safer.h: Likewise.
36005         * lib/unistdio/ulc-fprintf.c: Likewise.
36006         * lib/unistdio/ulc-vfprintf.c: Likewise.
36007         * lib/unlinkdir.c: Likewise.
36008         * lib/unlinkdir.h: Likewise.
36009         * lib/unlocked-io.h: Likewise.
36010         * lib/unsetenv.c: Likewise.
36011         * lib/userspec.c: Likewise.
36012         * lib/utime.c: Likewise.
36013         * lib/utimecmp.c: Likewise.
36014         * lib/utimecmp.h: Likewise.
36015         * lib/utimens.c: Likewise.
36016         * lib/verify.h: Likewise.
36017         * lib/verror.c: Likewise.
36018         * lib/verror.h: Likewise.
36019         * lib/version-etc-fsf.c: Likewise.
36020         * lib/version-etc.c: Likewise.
36021         * lib/version-etc.h: Likewise.
36022         * lib/vfprintf.c: Likewise.
36023         * lib/vprintf.c: Likewise.
36024         * lib/vsprintf.c: Likewise.
36025         * lib/w32spawn.h: Likewise.
36026         * lib/wait-process.c: Likewise.
36027         * lib/wait-process.h: Likewise.
36028         * lib/wcwidth.c: Likewise.
36029         * lib/write-any-file.c: Likewise.
36030         * lib/xalloc-die.c: Likewise.
36031         * lib/xalloc.h: Likewise.
36032         * lib/xasprintf.c: Likewise.
36033         * lib/xgetcwd.c: Likewise.
36034         * lib/xgetcwd.h: Likewise.
36035         * lib/xgetdomainname.c: Likewise.
36036         * lib/xgetdomainname.h: Likewise.
36037         * lib/xgethostname.c: Likewise.
36038         * lib/xmalloc.c: Likewise.
36039         * lib/xmalloca.c: Likewise.
36040         * lib/xmalloca.h: Likewise.
36041         * lib/xmemcoll.c: Likewise.
36042         * lib/xnanosleep.c: Likewise.
36043         * lib/xreadlink.c: Likewise.
36044         * lib/xreadlink.h: Likewise.
36045         * lib/xsetenv.c: Likewise.
36046         * lib/xsetenv.h: Likewise.
36047         * lib/xstriconv.c: Likewise.
36048         * lib/xstriconv.h: Likewise.
36049         * lib/xstrndup.c: Likewise.
36050         * lib/xstrndup.h: Likewise.
36051         * lib/xstrtod.c: Likewise.
36052         * lib/xstrtod.h: Likewise.
36053         * lib/xstrtol-error.c: Likewise.
36054         * lib/xstrtol.c: Likewise.
36055         * lib/xstrtol.h: Likewise.
36056         * lib/xtime.h: Likewise.
36057         * lib/xvasprintf.c: Likewise.
36058         * lib/xvasprintf.h: Likewise.
36059         * lib/yesno.c: Likewise.
36060         * lib/yesno.h: Likewise.
36061         * posix-modules: Likewise.
36062         * tests/test-alloca-opt.c: Likewise.
36063         * tests/test-arcfour.c: Likewise.
36064         * tests/test-arctwo.c: Likewise.
36065         * tests/test-argmatch.c: Likewise.
36066         * tests/test-argp-2.sh: Likewise.
36067         * tests/test-argp.c: Likewise.
36068         * tests/test-arpa_inet.c: Likewise.
36069         * tests/test-array_list.c: Likewise.
36070         * tests/test-array_oset.c: Likewise.
36071         * tests/test-atexit.c: Likewise.
36072         * tests/test-avltree_list.c: Likewise.
36073         * tests/test-avltree_oset.c: Likewise.
36074         * tests/test-avltreehash_list.c: Likewise.
36075         * tests/test-base64.c: Likewise.
36076         * tests/test-binary-io.c: Likewise.
36077         * tests/test-byteswap.c: Likewise.
36078         * tests/test-c-ctype.c: Likewise.
36079         * tests/test-c-strcasecmp.c: Likewise.
36080         * tests/test-c-strcasestr.c: Likewise.
36081         * tests/test-c-strncasecmp.c: Likewise.
36082         * tests/test-c-strstr.c: Likewise.
36083         * tests/test-canonicalize-lgpl.c: Likewise.
36084         * tests/test-canonicalize.c: Likewise.
36085         * tests/test-carray_list.c: Likewise.
36086         * tests/test-ceilf.c: Likewise.
36087         * tests/test-ceill.c: Likewise.
36088         * tests/test-count-one-bits.c: Likewise.
36089         * tests/test-crc.c: Likewise.
36090         * tests/test-dirname.c: Likewise.
36091         * tests/test-fbufmode.c: Likewise.
36092         * tests/test-fcntl.c: Likewise.
36093         * tests/test-fflush.c: Likewise.
36094         * tests/test-floorf.c: Likewise.
36095         * tests/test-floorl.c: Likewise.
36096         * tests/test-fopen.c: Likewise.
36097         * tests/test-fprintf-posix.c: Likewise.
36098         * tests/test-fprintf-posix.h: Likewise.
36099         * tests/test-fpurge.c: Likewise.
36100         * tests/test-freadable.c: Likewise.
36101         * tests/test-freadahead.c: Likewise.
36102         * tests/test-freading.c: Likewise.
36103         * tests/test-freopen.c: Likewise.
36104         * tests/test-frexp.c: Likewise.
36105         * tests/test-frexpl.c: Likewise.
36106         * tests/test-fseek.c: Likewise.
36107         * tests/test-fseeko.c: Likewise.
36108         * tests/test-fseterr.c: Likewise.
36109         * tests/test-fstrcmp.c: Likewise.
36110         * tests/test-ftell.c: Likewise.
36111         * tests/test-ftello.c: Likewise.
36112         * tests/test-fwritable.c: Likewise.
36113         * tests/test-fwriting.c: Likewise.
36114         * tests/test-getaddrinfo.c: Likewise.
36115         * tests/test-getpass.c: Likewise.
36116         * tests/test-gettimeofday.c: Likewise.
36117         * tests/test-hmac-md5.c: Likewise.
36118         * tests/test-hmac-sha1.c: Likewise.
36119         * tests/test-iconv.c: Likewise.
36120         * tests/test-iconvme.c: Likewise.
36121         * tests/test-inttypes.c: Likewise.
36122         * tests/test-isnan.c: Likewise.
36123         * tests/test-isnanf.c: Likewise.
36124         * tests/test-isnanl-nolibm.c: Likewise.
36125         * tests/test-isnanl.c: Likewise.
36126         * tests/test-isnanl.h: Likewise.
36127         * tests/test-ldexpl.c: Likewise.
36128         * tests/test-linked_list.c: Likewise.
36129         * tests/test-linkedhash_list.c: Likewise.
36130         * tests/test-locale.c: Likewise.
36131         * tests/test-localename.c: Likewise.
36132         * tests/test-lock.c: Likewise.
36133         * tests/test-lseek.c: Likewise.
36134         * tests/test-malloca.c: Likewise.
36135         * tests/test-math.c: Likewise.
36136         * tests/test-mbscasecmp.c: Likewise.
36137         * tests/test-mbscasestr1.c: Likewise.
36138         * tests/test-mbscasestr2.c: Likewise.
36139         * tests/test-mbscasestr3.c: Likewise.
36140         * tests/test-mbscasestr4.c: Likewise.
36141         * tests/test-mbschr.c: Likewise.
36142         * tests/test-mbscspn.c: Likewise.
36143         * tests/test-mbsncasecmp.c: Likewise.
36144         * tests/test-mbspbrk.c: Likewise.
36145         * tests/test-mbspcasecmp.c: Likewise.
36146         * tests/test-mbsrchr.c: Likewise.
36147         * tests/test-mbsspn.c: Likewise.
36148         * tests/test-mbsstr1.c: Likewise.
36149         * tests/test-mbsstr2.c: Likewise.
36150         * tests/test-mbsstr3.c: Likewise.
36151         * tests/test-md5.c: Likewise.
36152         * tests/test-memmem.c: Likewise.
36153         * tests/test-netinet_in.c: Likewise.
36154         * tests/test-open.c: Likewise.
36155         * tests/test-printf-frexp.c: Likewise.
36156         * tests/test-printf-frexpl.c: Likewise.
36157         * tests/test-printf-posix.c: Likewise.
36158         * tests/test-printf-posix.h: Likewise.
36159         * tests/test-rbtree_list.c: Likewise.
36160         * tests/test-rbtree_oset.c: Likewise.
36161         * tests/test-rbtreehash_list.c: Likewise.
36162         * tests/test-read-file.c: Likewise.
36163         * tests/test-rijndael.c: Likewise.
36164         * tests/test-search.c: Likewise.
36165         * tests/test-signbit.c: Likewise.
36166         * tests/test-sleep.c: Likewise.
36167         * tests/test-snprintf-posix.c: Likewise.
36168         * tests/test-snprintf-posix.h: Likewise.
36169         * tests/test-snprintf.c: Likewise.
36170         * tests/test-sprintf-posix.c: Likewise.
36171         * tests/test-sprintf-posix.h: Likewise.
36172         * tests/test-stat-time.c: Likewise.
36173         * tests/test-stdbool.c: Likewise.
36174         * tests/test-stdint.c: Likewise.
36175         * tests/test-stdio.c: Likewise.
36176         * tests/test-stdlib.c: Likewise.
36177         * tests/test-stpncpy.c: Likewise.
36178         * tests/test-strcasestr.c: Likewise.
36179         * tests/test-striconv.c: Likewise.
36180         * tests/test-striconveh.c: Likewise.
36181         * tests/test-striconveha.c: Likewise.
36182         * tests/test-string.c: Likewise.
36183         * tests/test-sys_select.c: Likewise.
36184         * tests/test-sys_socket.c: Likewise.
36185         * tests/test-sys_stat.c: Likewise.
36186         * tests/test-sys_time.c: Likewise.
36187         * tests/test-sysexits.c: Likewise.
36188         * tests/test-time.c: Likewise.
36189         * tests/test-tls.c: Likewise.
36190         * tests/test-trunc.c: Likewise.
36191         * tests/test-truncf.c: Likewise.
36192         * tests/test-truncl.c: Likewise.
36193         * tests/test-unistd.c: Likewise.
36194         * tests/test-vasnprintf-posix.c: Likewise.
36195         * tests/test-vasnprintf-posix2.c: Likewise.
36196         * tests/test-vasnprintf.c: Likewise.
36197         * tests/test-vasprintf-posix.c: Likewise.
36198         * tests/test-vasprintf.c: Likewise.
36199         * tests/test-verify.c: Likewise.
36200         * tests/test-vfprintf-posix.c: Likewise.
36201         * tests/test-vprintf-posix.c: Likewise.
36202         * tests/test-vsnprintf-posix.c: Likewise.
36203         * tests/test-vsnprintf.c: Likewise.
36204         * tests/test-vsprintf-posix.c: Likewise.
36205         * tests/test-wchar.c: Likewise.
36206         * tests/test-wctype.c: Likewise.
36207         * tests/test-wcwidth.c: Likewise.
36208         * tests/test-xstrtol.c: Likewise.
36209         * tests/test-xvasprintf.c: Likewise.
36210         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36211         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36212         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36213         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36214         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36215         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36216         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36217         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36218         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36219         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36220         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36221         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36222         * tests/uniname/test-uninames.c: Likewise.
36223         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36224         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
36225         * tests/unistdio/test-u16-printf1.h: Likewise.
36226         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36227         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36228         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36229         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36230         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36231         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36232         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36233         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
36234         * tests/unistdio/test-u32-printf1.h: Likewise.
36235         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36236         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36237         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36238         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36239         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36240         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36241         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36242         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
36243         * tests/unistdio/test-u8-printf1.h: Likewise.
36244         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36245         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36246         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36247         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36248         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36249         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36250         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36251         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
36252         * tests/unistdio/test-ulc-printf1.h: Likewise.
36253         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36254         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36255         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36256         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36257         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36258         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36259         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36260         * tests/uniwidth/test-u16-width.c: Likewise.
36261         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36262         * tests/uniwidth/test-u32-width.c: Likewise.
36263         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36264         * tests/uniwidth/test-u8-width.c: Likewise.
36265         * tests/uniwidth/test-uc_width.c: Likewise.
36266         * config/srclist-update: Likewise.
36267         (fixlicense): Update to GPLv3+.
36268
36269         Change copyright notice from LGPLv2.1+ to LGPLv3+.
36270         * tests/test-tsearch.c: Change copyright notice.
36271
36272         Change copyright notice from LGPLv2.0+ to LGPLv3+.
36273         * lib/c-strcaseeq.h: Change copyright notice.
36274         * lib/streq.h: Likewise.
36275         * lib/uniconv.h: Likewise.
36276         * lib/uniconv/u-conv-from-enc.h: Likewise.
36277         * lib/uniconv/u-conv-to-enc.h: Likewise.
36278         * lib/uniconv/u-strconv-from-enc.h: Likewise.
36279         * lib/uniconv/u-strconv-to-enc.h: Likewise.
36280         * lib/uniconv/u16-conv-from-enc.c: Likewise.
36281         * lib/uniconv/u16-conv-to-enc.c: Likewise.
36282         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
36283         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
36284         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
36285         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
36286         * lib/uniconv/u32-conv-from-enc.c: Likewise.
36287         * lib/uniconv/u32-conv-to-enc.c: Likewise.
36288         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
36289         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
36290         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
36291         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
36292         * lib/uniconv/u8-conv-from-enc.c: Likewise.
36293         * lib/uniconv/u8-conv-to-enc.c: Likewise.
36294         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
36295         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
36296         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
36297         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
36298         * lib/uniname.h: Likewise.
36299         * lib/uniname/uniname.c: Likewise.
36300         * lib/unistdio.h: Likewise.
36301         * lib/unistdio/u-asnprintf.h: Likewise.
36302         * lib/unistdio/u-asprintf.h: Likewise.
36303         * lib/unistdio/u-printf-args.c: Likewise.
36304         * lib/unistdio/u-printf-args.h: Likewise.
36305         * lib/unistdio/u-printf-parse.h: Likewise.
36306         * lib/unistdio/u-snprintf.h: Likewise.
36307         * lib/unistdio/u-sprintf.h: Likewise.
36308         * lib/unistdio/u-vasprintf.h: Likewise.
36309         * lib/unistdio/u-vsnprintf.h: Likewise.
36310         * lib/unistdio/u-vsprintf.h: Likewise.
36311         * lib/unistdio/u16-asnprintf.c: Likewise.
36312         * lib/unistdio/u16-asprintf.c: Likewise.
36313         * lib/unistdio/u16-printf-parse.c: Likewise.
36314         * lib/unistdio/u16-snprintf.c: Likewise.
36315         * lib/unistdio/u16-sprintf.c: Likewise.
36316         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
36317         * lib/unistdio/u16-u16-asprintf.c: Likewise.
36318         * lib/unistdio/u16-u16-snprintf.c: Likewise.
36319         * lib/unistdio/u16-u16-sprintf.c: Likewise.
36320         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
36321         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
36322         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
36323         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
36324         * lib/unistdio/u16-vasnprintf.c: Likewise.
36325         * lib/unistdio/u16-vasprintf.c: Likewise.
36326         * lib/unistdio/u16-vsnprintf.c: Likewise.
36327         * lib/unistdio/u16-vsprintf.c: Likewise.
36328         * lib/unistdio/u32-asnprintf.c: Likewise.
36329         * lib/unistdio/u32-asprintf.c: Likewise.
36330         * lib/unistdio/u32-printf-parse.c: Likewise.
36331         * lib/unistdio/u32-snprintf.c: Likewise.
36332         * lib/unistdio/u32-sprintf.c: Likewise.
36333         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
36334         * lib/unistdio/u32-u32-asprintf.c: Likewise.
36335         * lib/unistdio/u32-u32-snprintf.c: Likewise.
36336         * lib/unistdio/u32-u32-sprintf.c: Likewise.
36337         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
36338         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
36339         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
36340         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
36341         * lib/unistdio/u32-vasnprintf.c: Likewise.
36342         * lib/unistdio/u32-vasprintf.c: Likewise.
36343         * lib/unistdio/u32-vsnprintf.c: Likewise.
36344         * lib/unistdio/u32-vsprintf.c: Likewise.
36345         * lib/unistdio/u8-asnprintf.c: Likewise.
36346         * lib/unistdio/u8-asprintf.c: Likewise.
36347         * lib/unistdio/u8-printf-parse.c: Likewise.
36348         * lib/unistdio/u8-snprintf.c: Likewise.
36349         * lib/unistdio/u8-sprintf.c: Likewise.
36350         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
36351         * lib/unistdio/u8-u8-asprintf.c: Likewise.
36352         * lib/unistdio/u8-u8-snprintf.c: Likewise.
36353         * lib/unistdio/u8-u8-sprintf.c: Likewise.
36354         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
36355         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
36356         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
36357         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
36358         * lib/unistdio/u8-vasnprintf.c: Likewise.
36359         * lib/unistdio/u8-vasprintf.c: Likewise.
36360         * lib/unistdio/u8-vsnprintf.c: Likewise.
36361         * lib/unistdio/u8-vsprintf.c: Likewise.
36362         * lib/unistdio/ulc-asnprintf.c: Likewise.
36363         * lib/unistdio/ulc-asprintf.c: Likewise.
36364         * lib/unistdio/ulc-printf-parse.c: Likewise.
36365         * lib/unistdio/ulc-snprintf.c: Likewise.
36366         * lib/unistdio/ulc-sprintf.c: Likewise.
36367         * lib/unistdio/ulc-vasnprintf.c: Likewise.
36368         * lib/unistdio/ulc-vasprintf.c: Likewise.
36369         * lib/unistdio/ulc-vsnprintf.c: Likewise.
36370         * lib/unistdio/ulc-vsprintf.c: Likewise.
36371         * lib/unistr.h: Likewise.
36372         * lib/unistr/u-cpy-alloc.h: Likewise.
36373         * lib/unistr/u-cpy.h: Likewise.
36374         * lib/unistr/u-endswith.h: Likewise.
36375         * lib/unistr/u-move.h: Likewise.
36376         * lib/unistr/u-set.h: Likewise.
36377         * lib/unistr/u-startswith.h: Likewise.
36378         * lib/unistr/u-stpcpy.h: Likewise.
36379         * lib/unistr/u-stpncpy.h: Likewise.
36380         * lib/unistr/u-strcat.h: Likewise.
36381         * lib/unistr/u-strcpy.h: Likewise.
36382         * lib/unistr/u-strcspn.h: Likewise.
36383         * lib/unistr/u-strdup.h: Likewise.
36384         * lib/unistr/u-strlen.h: Likewise.
36385         * lib/unistr/u-strncat.h: Likewise.
36386         * lib/unistr/u-strncpy.h: Likewise.
36387         * lib/unistr/u-strnlen.h: Likewise.
36388         * lib/unistr/u-strpbrk.h: Likewise.
36389         * lib/unistr/u-strspn.h: Likewise.
36390         * lib/unistr/u-strstr.h: Likewise.
36391         * lib/unistr/u-strtok.h: Likewise.
36392         * lib/unistr/u16-check.c: Likewise.
36393         * lib/unistr/u16-chr.c: Likewise.
36394         * lib/unistr/u16-cmp.c: Likewise.
36395         * lib/unistr/u16-cpy-alloc.c: Likewise.
36396         * lib/unistr/u16-cpy.c: Likewise.
36397         * lib/unistr/u16-endswith.c: Likewise.
36398         * lib/unistr/u16-mblen.c: Likewise.
36399         * lib/unistr/u16-mbsnlen.c: Likewise.
36400         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36401         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36402         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36403         * lib/unistr/u16-mbtouc.c: Likewise.
36404         * lib/unistr/u16-mbtoucr.c: Likewise.
36405         * lib/unistr/u16-move.c: Likewise.
36406         * lib/unistr/u16-next.c: Likewise.
36407         * lib/unistr/u16-prev.c: Likewise.
36408         * lib/unistr/u16-set.c: Likewise.
36409         * lib/unistr/u16-startswith.c: Likewise.
36410         * lib/unistr/u16-stpcpy.c: Likewise.
36411         * lib/unistr/u16-stpncpy.c: Likewise.
36412         * lib/unistr/u16-strcat.c: Likewise.
36413         * lib/unistr/u16-strchr.c: Likewise.
36414         * lib/unistr/u16-strcmp.c: Likewise.
36415         * lib/unistr/u16-strcpy.c: Likewise.
36416         * lib/unistr/u16-strcspn.c: Likewise.
36417         * lib/unistr/u16-strdup.c: Likewise.
36418         * lib/unistr/u16-strlen.c: Likewise.
36419         * lib/unistr/u16-strmblen.c: Likewise.
36420         * lib/unistr/u16-strmbtouc.c: Likewise.
36421         * lib/unistr/u16-strncat.c: Likewise.
36422         * lib/unistr/u16-strncmp.c: Likewise.
36423         * lib/unistr/u16-strncpy.c: Likewise.
36424         * lib/unistr/u16-strnlen.c: Likewise.
36425         * lib/unistr/u16-strpbrk.c: Likewise.
36426         * lib/unistr/u16-strrchr.c: Likewise.
36427         * lib/unistr/u16-strspn.c: Likewise.
36428         * lib/unistr/u16-strstr.c: Likewise.
36429         * lib/unistr/u16-strtok.c: Likewise.
36430         * lib/unistr/u16-to-u32.c: Likewise.
36431         * lib/unistr/u16-to-u8.c: Likewise.
36432         * lib/unistr/u16-uctomb-aux.c: Likewise.
36433         * lib/unistr/u16-uctomb.c: Likewise.
36434         * lib/unistr/u32-check.c: Likewise.
36435         * lib/unistr/u32-chr.c: Likewise.
36436         * lib/unistr/u32-cmp.c: Likewise.
36437         * lib/unistr/u32-cpy-alloc.c: Likewise.
36438         * lib/unistr/u32-cpy.c: Likewise.
36439         * lib/unistr/u32-endswith.c: Likewise.
36440         * lib/unistr/u32-mblen.c: Likewise.
36441         * lib/unistr/u32-mbsnlen.c: Likewise.
36442         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36443         * lib/unistr/u32-mbtouc.c: Likewise.
36444         * lib/unistr/u32-mbtoucr.c: Likewise.
36445         * lib/unistr/u32-move.c: Likewise.
36446         * lib/unistr/u32-next.c: Likewise.
36447         * lib/unistr/u32-prev.c: Likewise.
36448         * lib/unistr/u32-set.c: Likewise.
36449         * lib/unistr/u32-startswith.c: Likewise.
36450         * lib/unistr/u32-stpcpy.c: Likewise.
36451         * lib/unistr/u32-stpncpy.c: Likewise.
36452         * lib/unistr/u32-strcat.c: Likewise.
36453         * lib/unistr/u32-strchr.c: Likewise.
36454         * lib/unistr/u32-strcmp.c: Likewise.
36455         * lib/unistr/u32-strcpy.c: Likewise.
36456         * lib/unistr/u32-strcspn.c: Likewise.
36457         * lib/unistr/u32-strdup.c: Likewise.
36458         * lib/unistr/u32-strlen.c: Likewise.
36459         * lib/unistr/u32-strmblen.c: Likewise.
36460         * lib/unistr/u32-strmbtouc.c: Likewise.
36461         * lib/unistr/u32-strncat.c: Likewise.
36462         * lib/unistr/u32-strncmp.c: Likewise.
36463         * lib/unistr/u32-strncpy.c: Likewise.
36464         * lib/unistr/u32-strnlen.c: Likewise.
36465         * lib/unistr/u32-strpbrk.c: Likewise.
36466         * lib/unistr/u32-strrchr.c: Likewise.
36467         * lib/unistr/u32-strspn.c: Likewise.
36468         * lib/unistr/u32-strstr.c: Likewise.
36469         * lib/unistr/u32-strtok.c: Likewise.
36470         * lib/unistr/u32-to-u16.c: Likewise.
36471         * lib/unistr/u32-to-u8.c: Likewise.
36472         * lib/unistr/u32-uctomb.c: Likewise.
36473         * lib/unistr/u8-check.c: Likewise.
36474         * lib/unistr/u8-chr.c: Likewise.
36475         * lib/unistr/u8-cmp.c: Likewise.
36476         * lib/unistr/u8-cpy-alloc.c: Likewise.
36477         * lib/unistr/u8-cpy.c: Likewise.
36478         * lib/unistr/u8-endswith.c: Likewise.
36479         * lib/unistr/u8-mblen.c: Likewise.
36480         * lib/unistr/u8-mbsnlen.c: Likewise.
36481         * lib/unistr/u8-mbtouc-aux.c: Likewise.
36482         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36483         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36484         * lib/unistr/u8-mbtouc.c: Likewise.
36485         * lib/unistr/u8-mbtoucr.c: Likewise.
36486         * lib/unistr/u8-move.c: Likewise.
36487         * lib/unistr/u8-next.c: Likewise.
36488         * lib/unistr/u8-prev.c: Likewise.
36489         * lib/unistr/u8-set.c: Likewise.
36490         * lib/unistr/u8-startswith.c: Likewise.
36491         * lib/unistr/u8-stpcpy.c: Likewise.
36492         * lib/unistr/u8-stpncpy.c: Likewise.
36493         * lib/unistr/u8-strcat.c: Likewise.
36494         * lib/unistr/u8-strchr.c: Likewise.
36495         * lib/unistr/u8-strcmp.c: Likewise.
36496         * lib/unistr/u8-strcpy.c: Likewise.
36497         * lib/unistr/u8-strcspn.c: Likewise.
36498         * lib/unistr/u8-strdup.c: Likewise.
36499         * lib/unistr/u8-strlen.c: Likewise.
36500         * lib/unistr/u8-strmblen.c: Likewise.
36501         * lib/unistr/u8-strmbtouc.c: Likewise.
36502         * lib/unistr/u8-strncat.c: Likewise.
36503         * lib/unistr/u8-strncmp.c: Likewise.
36504         * lib/unistr/u8-strncpy.c: Likewise.
36505         * lib/unistr/u8-strnlen.c: Likewise.
36506         * lib/unistr/u8-strpbrk.c: Likewise.
36507         * lib/unistr/u8-strrchr.c: Likewise.
36508         * lib/unistr/u8-strspn.c: Likewise.
36509         * lib/unistr/u8-strstr.c: Likewise.
36510         * lib/unistr/u8-strtok.c: Likewise.
36511         * lib/unistr/u8-to-u16.c: Likewise.
36512         * lib/unistr/u8-to-u32.c: Likewise.
36513         * lib/unistr/u8-uctomb-aux.c: Likewise.
36514         * lib/unistr/u8-uctomb.c: Likewise.
36515         * lib/unitypes.h: Likewise.
36516         * lib/uniwidth.h: Likewise.
36517         * lib/uniwidth/cjk.h: Likewise.
36518         * lib/uniwidth/u16-strwidth.c: Likewise.
36519         * lib/uniwidth/u16-width.c: Likewise.
36520         * lib/uniwidth/u32-strwidth.c: Likewise.
36521         * lib/uniwidth/u32-width.c: Likewise.
36522         * lib/uniwidth/u8-strwidth.c: Likewise.
36523         * lib/uniwidth/u8-width.c: Likewise.
36524         * lib/uniwidth/width.c: Likewise.
36525
36526 2007-10-07  Bruno Haible  <bruno@clisp.org>
36527
36528         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
36529         The file is still under LGPL (see modules/inttypes).
36530
36531 2007-10-06  Bruno Haible  <bruno@clisp.org>
36532
36533         * modules/trunc (Dependencies): Add 'extensions'.
36534         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
36535         Reported by Ben Pfaff <blp@gnu.org>.
36536
36537 2007-10-06  Bruno Haible  <bruno@clisp.org>
36538
36539         * modules/freopen-tests: New file.
36540         * tests/test-freopen.c: New file.
36541
36542         * modules/fopen-tests: New file.
36543         * tests/test-fopen.c: New file.
36544
36545         * modules/fopen: New file.
36546         * lib/fopen.c: New file.
36547         * m4/fopen.m4: New file.
36548         * modules/freopen: New file.
36549         * lib/freopen.c: New file.
36550         * m4/freopen.m4: New file.
36551         * lib/stdio.in.h (fopen, freopen): New declarations.
36552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
36553         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36554         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
36555         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36556         * doc/functions/fopen.texi: Mention the 'fopen' module.
36557         * doc/functions/freopen.texi: Mention the 'freopen' module.
36558
36559 2007-10-06  Bruno Haible  <bruno@clisp.org>
36560
36561         * modules/open-tests: New file.
36562         * tests/test-open.c: New file.
36563
36564         * modules/open: New file.
36565         * lib/open.c: New file.
36566         * m4/open.m4: New file.
36567         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
36568         lib/open.c does.
36569         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
36570         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
36571         macros.
36572         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
36573         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
36574         REPLACE_OPEN.
36575         * doc/functions/open.texi: Mention the 'open' module.
36576
36577 2007-10-04  Bruno Haible  <bruno@clisp.org>
36578
36579         * modules/ceill-tests: New file.
36580         * tests/test-ceill.c: New file.
36581
36582         * modules/ceill: New file.
36583         * lib/ceill.c: Replace entire file.
36584         * m4/ceill.m4: New file.
36585         * lib/math.in.h (ceill): Replace declaration.
36586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36587         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36588         * doc/functions/ceill.texi: Mention the 'ceill' module.
36589         * modules/mathl (Files): Remove lib/ceill.c.
36590         (Depends-on): Add ceill.
36591
36592 2007-10-04  Bruno Haible  <bruno@clisp.org>
36593
36594         * modules/ceilf-tests: New file.
36595         * tests/test-ceilf.c: New file.
36596
36597         * modules/ceilf: New file.
36598         * lib/ceil.c: New file.
36599         * lib/ceilf.c: New file.
36600         * m4/ceilf.m4: New file.
36601         * lib/math.in.h (ceilf): New declaration.
36602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36603         HAVE_DECL_CEILF.
36604         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36605         HAVE_DECL_CEILF.
36606         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36607
36608 2007-10-04  Bruno Haible  <bruno@clisp.org>
36609
36610         * modules/floorl-tests: New file.
36611         * tests/test-floorl.c: New file.
36612
36613         * modules/floorl: New file.
36614         * lib/floorl.c: Replace entire file.
36615         * m4/floorl.m4: New file.
36616         * lib/math.in.h (floorl): Replace declaration.
36617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36618         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36619         * doc/functions/floorl.texi: Mention the 'floorl' module.
36620         * modules/mathl (Files): Remove lib/floorl.c.
36621         (Depends-on): Add floorl.
36622
36623 2007-10-04  Bruno Haible  <bruno@clisp.org>
36624
36625         * modules/floorf-tests: New file.
36626         * tests/test-floorf.c: New file.
36627
36628         * modules/floorf: New file.
36629         * lib/floor.c: New file.
36630         * lib/floorf.c: New file.
36631         * m4/floorf.m4: New file.
36632         * lib/math.in.h (floorf): New declaration.
36633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36634         HAVE_DECL_FLOORF.
36635         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36636         HAVE_DECL_FLOORF.
36637         * doc/functions/floorf.texi: Mention the 'floorf' module.
36638
36639 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36640             Bruno Haible  <bruno@clisp.org>
36641
36642         Advertise for the Git server instead of the CVS server.
36643         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36644         repository instead of the CVS one.
36645         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36646         about all VCS systems generically.
36647         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36648
36649 2007-10-04  Bruno Haible  <bruno@clisp.org>
36650
36651         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36652         means.
36653         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36654
36655 2007-10-04  Bruno Haible  <bruno@clisp.org>
36656
36657         * modules/truncl-tests: New file.
36658         * tests/test-truncl.c: New file.
36659
36660         * modules/truncl: New file.
36661         * lib/truncl.c: New file.
36662         * m4/truncl.m4: New file.
36663         * lib/math.in.h (truncl): New declaration.
36664         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36665         HAVE_DECL_TRUNCL.
36666         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36667         HAVE_DECL_TRUNCL.
36668         * doc/functions/truncl.texi: Mention the 'truncl' module.
36669
36670 2007-10-04  Bruno Haible  <bruno@clisp.org>
36671
36672         * modules/truncf-tests: New file.
36673         * tests/test-truncf.c: New file.
36674
36675         * modules/truncf: New file.
36676         * lib/trunc.c: Make paramerizable through USE_* macros.
36677         * lib/truncf.c: New file.
36678         * m4/truncf.m4: New file.
36679         * lib/math.in.h (truncf): New declaration.
36680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36681         HAVE_DECL_TRUNCF.
36682         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36683         HAVE_DECL_TRUNCF.
36684         * doc/functions/truncf.texi: Mention the 'truncf' module.
36685
36686 2007-10-03  Bruno Haible  <bruno@clisp.org>
36687
36688         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36689         augmentation also for tests modules.
36690         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36691         * modules/atexit-tests (Makefile.am): Likewise.
36692         * modules/binary-io-tests (Makefile.am): Likewise.
36693         * modules/c-strcase-tests (Makefile.am): Likewise.
36694         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36695         * modules/canonicalize-tests (Makefile.am): Likewise.
36696         * modules/closein-tests (Makefile.am): Likewise.
36697         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36698         * modules/freadahead-tests (Makefile.am): Likewise.
36699         * modules/fseek-tests (Makefile.am): Likewise.
36700         * modules/fseeko-tests (Makefile.am): Likewise.
36701         * modules/ftell-tests (Makefile.am): Likewise.
36702         * modules/ftello-tests (Makefile.am): Likewise.
36703         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36704         * modules/isnanl-tests (Makefile.am): Likewise.
36705         * modules/lseek-tests (Makefile.am): Likewise.
36706         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36707         * modules/mbscasestr-tests (Makefile.am): Likewise.
36708         * modules/mbschr-tests (Makefile.am): Likewise.
36709         * modules/mbscspn-tests (Makefile.am): Likewise.
36710         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36711         * modules/mbspbrk-tests (Makefile.am): Likewise.
36712         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36713         * modules/mbsrchr-tests (Makefile.am): Likewise.
36714         * modules/mbsspn-tests (Makefile.am): Likewise.
36715         * modules/mbsstr-tests (Makefile.am): Likewise.
36716         * modules/printf-posix-tests (Makefile.am): Likewise.
36717         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36718         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36719         * modules/tsearch-tests (Makefile.am): Likewise.
36720         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36721         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36722         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36723         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36724         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36725         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36726         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36727         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36728         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36729         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36730         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36731         * modules/xstrtol-tests (Makefile.am): Likewise.
36732         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36733         * modules/yesno-tests (Makefile.am): Likewise.
36734
36735 2007-10-03  Bruno Haible  <bruno@clisp.org>
36736
36737         * modules/trunc-tests: New file.
36738         * tests/test-trunc.c: New file.
36739
36740         * modules/trunc: New file.
36741         * lib/trunc.c: New file.
36742         * m4/trunc.m4: New file.
36743         * lib/math.in.h (trunc): New declaration.
36744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36745         HAVE_DECL_TRUNC.
36746         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36747         HAVE_DECL_TRUNC.
36748         * doc/functions/trunc.texi: Mention the 'trunc' module.
36749
36750 2007-10-03  Bruno Haible  <bruno@clisp.org>
36751
36752         * tests/test-fpending.c: New file, mostly copied
36753         from coreutils/lib/t-fpending.c.
36754         * modules/fpending-tests: New file.
36755
36756 2007-10-03  Bruno Haible  <bruno@clisp.org>
36757
36758         Port the stdio extensions to QNX (untested).
36759         * lib/fseterr.c (fseterr): Add support for QNX.
36760         * lib/fbufmode.c (fbufmode): Likewise.
36761         * lib/freadable.c (freadable): Likewise.
36762         * lib/fwritable.c (fwritable): Likewise.
36763         * lib/freading.c (freading): Likewise.
36764         * lib/fwriting.c (fwriting): Likewise.
36765         * lib/freadahead.c (freadahed): Likewise.
36766         * lib/fpurge.c (fpurge): Likewise.
36767         * lib/fseeko.c (rpl_fseeko): Likewise.
36768
36769 2007-10-03  Bruno Haible  <bruno@clisp.org>
36770             Jim Meyering  <jim@meyering.net>
36771             Eric Blake  <ebb9@byu.net>
36772
36773         * doc/relocatable.texi: Use @command instead of @program.
36774
36775 2007-10-02  Jim Meyering  <jim@meyering.net>
36776
36777         Perform one more "_.h" -> ".in.h" substitution.
36778         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36779         instead of unistd_.h here, too.
36780
36781 2007-10-01  Bruno Haible  <bruno@clisp.org>
36782
36783         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36784         Needed for the alloca-opt module.
36785
36786 2007-09-30  Bruno Haible  <bruno@clisp.org>
36787
36788         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36789         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36790         alloca_.h.
36791         * lib/argz.in.h: Renamed from lib/argz_.h.
36792         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36793         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36794         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36795         byteswap_.h.
36796         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36797         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36798         dirent_.h.
36799         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36800         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36801         fcntl_.h.
36802         * lib/float.in.h: Renamed from lib/float_.h.
36803         * modules/float (Files, Makefile.am): Use float.in.h instead of
36804         float_.h.
36805         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36806         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36807         fnmatch_.h.
36808         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36809         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36810         getopt_.h.
36811         * lib/glob.in.h: Renamed from lib/glob_.h.
36812         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36813         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36814         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36815         iconv_.h.
36816         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36817         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36818         inttypes_.h.
36819         * lib/locale.in.h: Renamed from lib/locale_.h.
36820         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36821         locale_.h.
36822         * lib/math.in.h: Renamed from lib/math_.h.
36823         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36824         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36825         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36826         of netinet_in_.h. Add dependency.
36827         * lib/poll.in.h: Renamed from lib/poll_.h.
36828         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
36829         * lib/search.in.h: Renamed from lib/search_.h.
36830         * modules/search (Files, Makefile.am): Use search.in.h instead of
36831         search_.h.
36832         * lib/signal.in.h: Renamed from lib/signal_.h.
36833         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
36834         _signal.h.
36835         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
36836         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
36837         stdbool_.h.
36838         * lib/stdint.in.h: Renamed from lib/stdint_.h.
36839         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
36840         stdint_.h.
36841         * lib/stdio.in.h: Renamed from lib/stdio_.h.
36842         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
36843         stdio_.h.
36844         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
36845         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
36846         stdlib_.h.
36847         * lib/string.in.h: Renamed from lib/string_.h.
36848         * modules/string (Files, Makefile.am): Use string.in.h instead of
36849         string_.h.
36850         * doc/gnulib-tool.texi (Initial import): Update.
36851         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
36852         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
36853         of sys_select_.h. Add dependency.
36854         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
36855         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
36856         of sys_socket_.h.
36857         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
36858         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
36859         sys_stat_.h.
36860         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
36861         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
36862         sys_time_.h.
36863         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
36864         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
36865         sysexits_.h.
36866         * lib/time.in.h: Renamed from lib/time_.h.
36867         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
36868         * lib/unistd.in.h: Renamed from lib/unistd_.h.
36869         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
36870         unistd_.h.
36871         * lib/wchar.in.h: Renamed from lib/wchar_.h.
36872         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
36873         wchar_.h.
36874         * lib/wctype.in.h: Renamed from lib/wctype_.h.
36875         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
36876         wctype_.h.
36877         * build-aux/bootstrap (slurp): Update.
36878         * lib/.cppi-disable: Update.
36879
36880 2007-09-30  Bruno Haible  <bruno@clisp.org>
36881
36882         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
36883         Needed on BeOS.
36884
36885 2007-09-30  Bruno Haible  <bruno@clisp.org>
36886
36887         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
36888
36889 2007-09-29  Bruno Haible  <bruno@clisp.org>
36890
36891         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
36892
36893 2007-09-29  Bruno Haible  <bruno@clisp.org>
36894
36895         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
36896         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
36897         * build-aux/install-reloc: Compile also areadlink.c.
36898         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
36899
36900 2007-09-29  Bruno Haible  <bruno@clisp.org>
36901
36902         * gnulib-tool (func_emit_initmacro_done): Indentation.
36903
36904 2007-09-29  Bruno Haible  <bruno@clisp.org>
36905
36906         * README: Add CVS checkout update instructions.
36907         Info from Bob Proulx <bob@proulx.com>.
36908
36909 2007-09-28  Eric Blake  <ebb9@byu.net>
36910
36911         Provide move-if-change.
36912         * build-aux/move-if-change: New file, based on best practice
36913         rather than any canonical upstream location.
36914
36915 2007-09-28  Jim Meyering  <jim@meyering.net>
36916
36917         Fix canonicalize loop-detection corner case.
36918         Do not attempt to stat the symlink values stored via seen_triple.
36919         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
36920         on linux-2.6.18, (but not 2.6.22).
36921         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
36922         triple_compare.  The former compares dev,ino,filename, while the latter
36923         would actually stat dirname(filename) when dev and ino were equal.
36924         * lib/hash-triple.c: Install <string.h>.
36925         (STREQ): Define.
36926         (triple_compare_ino_str): New function.
36927         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
36928
36929 2007-09-28  Eric Blake  <ebb9@byu.net>
36930
36931         Enforce that AC_REPLACE_FUNCS files exist.
36932         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
36933         override check for typos.
36934
36935         Fix test-closein on Solaris 10.
36936         * tests/test-closein.c (main): Don't assume stdin can be inherited
36937         closed on all systems.
36938         * tests/test-closein.sh: Likewise.
36939         Reported by Piotr Tarnowski.
36940
36941 2007-09-28  Jim Meyering  <jim@meyering.net>
36942
36943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
36944
36945 2007-09-27  Jim Meyering  <jim@meyering.net>
36946
36947         canonicalize: Avoid a false-positive cycle failure.
36948         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
36949         Sort.  Remove cycle-check.
36950         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
36951         not cycle-check.h.
36952         (seen_triple): New function.
36953         (canonicalize_filename_mode): Use it instead of cycle-check.
36954         * tests/test-canonicalize.c: Add a test for this bug.
36955         * tests/test-canonicalize.sh: Set up and run the test.
36956
36957         New module, file-set, from coreutils.
36958         * modules/file-set: Define it.
36959         * lib/file-set.c, lib/file-set.h: Implement.
36960
36961         New module, hash-triple, from coreutils.
36962         * modules/hash-triple: Define it.
36963         * lib/hash-triple.c, lib/hash-triple.h: Implement.
36964
36965 2007-09-25  Eric Blake  <ebb9@byu.net>
36966
36967         Fix strerror on Interix.
36968         * lib/string_.h (strerror): Declare replacement.
36969         * doc/functions/strerror.texi (strerror): Document the Interix
36970         shortcoming.
36971         * modules/string (Makefile.am): Support new hooks.
36972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
36973         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
36974         gl_FUNC_STRERROR_SEPARATE.
36975         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
36976         * lib/strerror.c (rpl_strerror): Provide replacement.
36977         * modules/strerror (Depends-on): Add string.
36978         (configure.ac): Detect use of module.
36979         * tests/test-strerror.c: New file.
36980         * modules/strerror-tests: New test module.
36981         * modules/argp (Depends-on): Add strerror.
36982         * modules/error (Depends-on): Likewise.
36983         Reported by Martin Koeppe.
36984
36985 2007-09-24  Bruno Haible  <bruno@clisp.org>
36986
36987         * README: Update git instructions.
36988
36989 2007-09-24  Eric Blake  <ebb9@byu.net>
36990
36991         Revert fpending breakage from 2007-09-08.
36992         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
36993         __fpending.c.
36994
36995 2007-09-24  Jim Meyering  <jim@meyering.net>
36996
36997         filenamecat.c: Add a test.
36998         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
36999         showing how the function works when DIR is the empty string.
37000
37001 2007-09-21  Simon Josefsson  <simon@josefsson.org>
37002
37003         * tests/test-canonicalize.sh: Turn on executable bit.
37004
37005 2007-09-19  Eric Blake  <ebb9@byu.net>
37006
37007         * README: Update CVS instructions.
37008
37009 2007-09-18  Bruno Haible  <bruno@clisp.org>
37010
37011         * modules/areadlink: New file.
37012         * lib/areadlink.h (areadlink): New declaration.
37013         * lib/areadlink.c: New file, based on lib/xreadlink.c.
37014
37015 2007-09-17  Jim Meyering  <jim@meyering.net>
37016
37017         * lib/savewd.c (ESTALE) [!defined]: Define.
37018         Reported to be required on Interix by Martin Koeppe.
37019
37020 2007-09-17  Bruno Haible  <bruno@clisp.org>
37021
37022         * gnulib-tool (func_version): Use $version.
37023
37024 2007-09-16  Bruno Haible  <bruno@clisp.org>
37025
37026         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
37027         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
37028         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
37029         Reported by Greg Schafer <gschafer@zip.com.au>.
37030
37031 2007-09-15  Bruno Haible  <bruno@clisp.org>
37032
37033         * gnulib-tool (sed): Try a little harder to make bash understand the
37034         alias.
37035         Reported by Bruce Korb <bruce.korb@gmail.com>.
37036
37037 2007-09-13  Eric Blake  <ebb9@byu.net>
37038
37039         * ChangeLog: Remove conflict markers.
37040
37041 2007-09-13  Simon Josefsson  <simon@josefsson.org>
37042
37043         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
37044         Reported by Bruno Haible <bruno@clisp.org>.
37045
37046 2007-09-12  Bruno Haible  <bruno@clisp.org>
37047
37048         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
37049         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
37050         is not defined.
37051
37052 2007-09-12  Eric Blake  <ebb9@byu.net>
37053
37054         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
37055         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
37056         Autoconf definition.
37057         * modules/euidaccess (Depends-on): Add extensions, for
37058         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
37059         * modules/fnmatch (Depends-on): Likewise.
37060         * modules/getaddrinfo (Depends-on): Likewise.
37061         * modules/getdelim (Depends-on): Likewise.
37062         * modules/getline (Depends-on): Likewise.
37063         * modules/getsubopt (Depends-on): Likewise.
37064         * modules/gettext (Depends-on): Likewise.
37065         * modules/group-member (Depends-on): Likewise.
37066         * modules/mbchar (Depends-on): Likewise.
37067         * modules/memmem (Depends-on): Likewise.
37068         * modules/mempcpy (Depends-on): Likewise.
37069         * modules/memrchr (Depends-on): Likewise.
37070         * modules/pagealign_alloc (Depends-on): Likewise.
37071         * modules/readutmp (Depends-on): Likewise.
37072         * modules/stpcpy (Depends-on): Likewise.
37073         * modules/stpncpy (Depends-on): Likewise.
37074         * modules/strchrnul (Depends-on): Likewise.
37075         * modules/strndup (Depends-on): Likewise.
37076         * modules/strsep (Depends-on): Likewise.
37077         * modules/strverscmp (Depends-on): Likewise.
37078         * modules/vasprintf (Depends-on): Likewise.
37079         * modules/wcwidth (Depends-on): Likewise.
37080         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
37081         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
37082         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
37083         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
37084         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37085         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37086         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
37087         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37088         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
37089         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37090         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37091         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37092         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37093         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37094         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
37095         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37096         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37097         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37098         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37099         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37100         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37101         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37102         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37103         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
37104         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
37105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37106         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
37107         so that lock.m4 can be used in gettext without extensions module.
37108
37109 2007-09-11  Bruno Haible  <bruno@clisp.org>
37110
37111         * m4/isc-posix.m4: Remove file.
37112         Suggested by Eric Blake.
37113
37114 2007-09-11  Eric Blake  <ebb9@byu.net>
37115
37116         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
37117
37118 2007-09-10  Bruno Haible  <bruno@clisp.org>
37119
37120         * posix-modules: Fix typo in error message.
37121         Reported by Matt <mkraai@beckman.com>.
37122
37123 2007-09-09  Bruno Haible  <bruno@clisp.org>
37124
37125         * doc/functions/getdelim.texi: Update list of platforms lacking the
37126         function.
37127         * doc/functions/getline.texi: Likewise.
37128
37129 2007-09-09  Jim Meyering  <jim@meyering.net>
37130
37131         * lib/hash.c (hash_initialize): Detect calloc failure.
37132         Reported by Bruno Haible.
37133
37134 2007-09-09  Bruno Haible  <bruno@clisp.org>
37135
37136         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
37137         malloc or realloc fails.
37138
37139 2007-09-09  Bruno Haible  <bruno@clisp.org>
37140
37141         * modules/getcwd (Depends-on): Add malloc-posix.
37142         * modules/glob (Depends-on): Likewise.
37143         * modules/putenv (Depends-on): Likewise.
37144         * modules/strdup (Depends-on): Likewise.
37145         * modules/getdelim (Depends-on): Add realloc-posix.
37146         * modules/read-file (Depends-on): Likewise.
37147
37148 2007-09-09  Bruno Haible  <bruno@clisp.org>
37149
37150         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
37151         (gl_FUNC_MALLOC_POSIX): Require it.
37152         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
37153         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
37154         * modules/realloc (Files): Add m4/malloc.m4.
37155         * modules/calloc (Files): Likewise.
37156
37157 2007-09-09  Bruno Haible  <bruno@clisp.org>
37158
37159         * modules/malloc-posix: New file.
37160         * modules/malloc (Depends-on): Add malloc-posix.
37161         * lib/malloc.c: Include errno.h.
37162         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
37163         and a POSIX-compatible malloc into a single function. Set ENOMEM
37164         when returning NULL.
37165         * m4/malloc.m4: New file.
37166         * doc/functions/malloc.texi: Mention the malloc-posix module.
37167         * lib/stdlib_.h (malloc): New declaration.
37168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37169         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
37170         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
37171         and HAVE_MALLOC_POSIX.
37172
37173 2007-09-09  Bruno Haible  <bruno@clisp.org>
37174
37175         * modules/realloc-posix: New file.
37176         * modules/realloc (Depends-on): Add realloc-posix.
37177         * lib/realloc.c: Include errno.h.
37178         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
37179         and a POSIX-compatible realloc into a single function. Set ENOMEM
37180         when returning NULL.
37181         * m4/realloc.m4: New file.
37182         * doc/functions/realloc.texi: Mention the realloc-posix module.
37183         * lib/stdlib_.h (realloc): New declaration.
37184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37185         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
37186         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
37187         and HAVE_REALLOC_POSIX.
37188
37189 2007-09-09  Bruno Haible  <bruno@clisp.org>
37190
37191         * modules/calloc-posix: New file.
37192         * modules/calloc (Depends-on): Add calloc-posix.
37193         * lib/calloc.c: Include errno.h.
37194         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
37195         and a POSIX-compatible calloc into a single function. Set ENOMEM
37196         when returning NULL.
37197         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
37198         * doc/functions/calloc.texi: Mention the calloc-posix module.
37199         * lib/stdlib_.h (calloc): New declaration.
37200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37201         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
37202         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
37203         and HAVE_CALLOC_POSIX.
37204
37205 2007-09-09  Bruno Haible  <bruno@clisp.org>
37206
37207         Allow for modules to show an arbitrary notice.
37208         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
37209         * gnulib-tool: New option --extract-notice.
37210         (func_usage): Document it.
37211         (sed_extract_prog): Update.
37212         (func_get_notice): New function.
37213         (func_modules_notice): New function.
37214         (func_import, func_create_testdir): Invoke it.
37215         Suggested by Jim Meyering.
37216
37217 2007-09-09  Bruno Haible  <bruno@clisp.org>
37218
37219         * gnulib-tool: New options --verbose, --quiet.
37220         (func_usage): Document them.
37221         (verbose): New variable.
37222         (func_execute_command): New function.
37223         (func_import): Don't show the module list and the file list if
37224         $verbose < 0.
37225         (func_create_testdir): Likewise. Use func_execute_command.
37226         (func_create_megatestdir): Use func_execute_command.
37227
37228 2007-09-08  Bruno Haible  <bruno@clisp.org>
37229
37230         * gnulib-tool (func_import): Prefer rsync over wget when available,
37231         for fetching the PO files.
37232
37233 2007-09-08  Bruno Haible  <bruno@clisp.org>
37234
37235         * posix-modules: New file. Portions copied from gnulib-tool.
37236         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
37237
37238 2007-09-08  Jim Meyering  <jim@meyering.net>
37239
37240         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
37241         * lib/fpending.h: Rename from __fpending.h.
37242         * lib/fpending.c: Rename from __fpending.c.
37243         Include "fpending.h", not "__fpending.h".
37244         * lib/__fpending.h, lib/__fpending.c: Remove files.
37245         * modules/fpending (Files): Reflect new file names.
37246         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
37247
37248 2007-09-08  Bruno Haible  <bruno@clisp.org>
37249
37250         * m4/inttypes-h.m4: Remove stub file.
37251
37252 2007-09-07  Simon Josefsson  <simon@josefsson.org>
37253
37254         * doc/headers/stdint.texi: Discuss #include_next issue.
37255
37256 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37257
37258         * build-aux/bootstrap: Remove obsolete comment about wget --help.
37259
37260 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37261
37262         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
37263         in variable name.
37264
37265 2007-09-03  Jim Meyering  <jim@meyering.net>
37266
37267         New module: git-version-gen.
37268         * modules/git-version-gen: New file.
37269
37270         Import changes from coreutils for bootstrap script.
37271
37272         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
37273
37274         bootstrap: uses rsync to download the .po files
37275         * build-aux/bootstrap (po_download_command_format): New global.
37276         (download_po_files): Use rsync.
37277         (update_po_files): Don't remove .po files after download,
37278         so future rsync runs can take advantage of the copies.
37279
37280         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
37281
37282         Solve the unnecessary-.po-file-regeneration problem once and for all.
37283         * build-aux/bootstrap (download_po_files): New function, renamed from
37284         get_translations.  Now, downloads, but doesn't update LINGUAS.
37285         (update_po_files): New function.
37286
37287         bootstrap: Ignore more.
37288         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
37289         uniwidth to e.g., lib/.gitignore.
37290         (slurp): Handle the sys_stat_.h -> sys mapping, too.
37291
37292         * build-aux/bootstrap: New setting: vc_ignore.
37293         (insert_sorted_if_absent): Create $file if absent.
37294         Adapt to new, possibly empty, list: $vc_ignore.
37295
37296         bootstrap: generate more ignorable names
37297         * build-aux/bootstrap (slurp): When generating ignorable names,
37298         also map .sin to .sed, .gperf to .c, and .y to .c.
37299
37300 2007-09-03  Jim Meyering  <jim@meyering.net>
37301
37302         * build-aux/git-version-gen: New file, from coreutils.  For details, see
37303         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
37304
37305 2007-09-02  Bruno Haible  <bruno@clisp.org>
37306
37307         Fix mis-recognition of 'mcs' on QNX 6.
37308         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
37309         output contains the string "Mono".
37310         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
37311         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
37312
37313 2007-09-01  Bruno Haible  <bruno@clisp.org>
37314
37315         Fix collision between uniwidth/* and linebreak modules.
37316         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
37317         u32_width): Remove declarations.
37318         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
37319         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
37320         streq3, streq2, streq1, streq0): Remove functions.
37321         (STREQ): Remove macro.
37322         (is_cjk_encoding): Remove function.
37323         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
37324         (uc_width, u8_width, u16_width, u32_width): Remove functions.
37325         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
37326         * NEWS: Document the change.
37327
37328 2007-09-01  Bruno Haible  <bruno@clisp.org>
37329
37330         * lib/streq.h: Add double-inclusion guard.
37331
37332 2007-09-01  Karl Berry  <karl@gnu.org>
37333
37334         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
37335
37336 2007-08-28  Jim Meyering  <jim@meyering.net>
37337
37338         Rename mreadlink_with_size to areadlink_with_size.
37339         * NEWS: Document the change.
37340         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
37341         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
37342         * lib/mreadlink.h: Rename this to...
37343         * lib/areadlink.h: ...this.
37344         * modules/mreadlink-with-size: Rename this to...
37345         * modules/areadlink-with-size: ...this.
37346         * lib/canonicalize.c: Reflect the renaming.
37347         * modules/canonicalize: Likewise.
37348
37349 2007-08-26  Bruno Haible  <bruno@clisp.org>
37350
37351         * gnulib-tool (func_import): When deciding which files to remove,
37352         consider also dangling symbolic links.
37353         Reported by Eric Blake.
37354
37355 2007-08-26  Bruno Haible  <bruno@clisp.org>
37356
37357         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
37358
37359 2007-08-23  Simon Josefsson  <simon@josefsson.org>
37360
37361         * lib/readline.c: Don't include getline.h, the prototype is now
37362         found in stdio.h.
37363
37364 2007-08-23  Jim Meyering  <jim@meyering.net>
37365
37366         Getdelim touchup.
37367         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
37368         around the funlockfile call, since funlockfile never sets errno.
37369         Don't set errno upon failed realloc.
37370
37371 2007-08-22  Eric Blake  <ebb9@byu.net>
37372
37373         Getline touchups.
37374         * lib/getdelim.c (getdelim): Revert regression that required *n to
37375         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
37376         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
37377         getdelim, rather than whether implementation is missing.
37378         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
37379         * lib/stdio_.h (getline): Also declare if replacement is
37380         required.
37381         * doc/functions/getdelim.texi: New file.
37382         * doc/functions/getline.texi: Likewise.
37383         * doc/gnulib.texi (Function Substitutes): Add new files.
37384         Reported by Bruno Haible.
37385
37386 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
37387
37388         * users.txt: Add Guile.
37389
37390 2007-08-22  Eric Blake  <ebb9@byu.net>
37391
37392         * tests/test-getdelim.c (main): Use remove, not unlink.
37393         * tests/test-getline.c (main): Likewise.
37394
37395         Move getline and getdelim into stdio.h, per POSIX 200x.
37396         * modules/getline (Files): Remove getline.h.
37397         (Depends-on): Add stdio.
37398         (configure.ac): Add module indicator.
37399         * modules/getdelim (Files): Remove getdelim.h.
37400         (Depends-on): Add stdio.
37401         (configure.ac): Add module indicator.
37402         * modules/stdio (Makefile.am): Work with new indicators.
37403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37404         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
37405         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37406         * lib/getdelim.h: Delete.
37407         * lib/getline.h: Delete.
37408         * lib/stdio_.h (getdelim, getline): Declare.
37409         * modules/getdelim-tests: New module.
37410         * modules/getline-tests: Likewise.
37411         * tests/test-getdelim.c: New file.
37412         * tests/test-getline.c: Likewise.
37413         * NEWS: Document the change.
37414         * lib/getline.c: Update choice of header.
37415         * lib/csharpcomp.c: Likewise.
37416         * lib/getpass.c: Likewise.
37417         * lib/javacomp.c: Likewise.
37418         * lib/javaversion.c: Likewise.
37419         * lib/yesno.c: Likewise.
37420         * lib/getdelim.c: Likewise.
37421         (getdelim): Set errno on failure, and avoid memory leak.
37422
37423 2007-08-19  Bruno Haible  <bruno@clisp.org>
37424
37425         * modules/closein (Depends-on): Add freadahead.
37426         * lib/closein.c: Include freadahead.h.
37427         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
37428         is zero.
37429
37430 2007-08-19  Bruno Haible  <bruno@clisp.org>
37431
37432         * modules/freadahead-tests: New file.
37433         * tests/test-freadahead.sh: New file.
37434         * tests/test-freadahead.c: New file.
37435
37436         * modules/freadahead: New file.
37437         * lib/freadahead.h: New file.
37438         * lib/freadahead.c: New file.
37439         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
37440         fbufmode, fpurge, freadable, fwritable.
37441
37442 2007-08-19  Eric Blake  <ebb9@byu.net>
37443
37444         Test yesno in combination with closein.
37445         * lib/yesno.c (yesno): Document use of stdin.
37446         * modules/yesno-tests (Files): New module.
37447         * tests/test-yesno.c (main): New file.
37448         * tests/test-yesno.sh: Likewise.
37449
37450 2007-08-19  Bruno Haible  <bruno@clisp.org>
37451
37452         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
37453         * lib/fseeko.c (rpl_fseeko): Likewise.
37454         * lib/fseterr.c (fseterr): Likewise.
37455
37456 2007-08-19  Bruno Haible  <bruno@clisp.org>
37457
37458         * tests/test-lseek.c (main): Disable a test for BeOS.
37459         * doc/functions/lseek.texi: Document the BeOS bug.
37460
37461 2007-08-19  Bruno Haible  <bruno@clisp.org>
37462             Eric Blake  <ebb9@byu.net>
37463
37464         * lib/lseek.c: Include <sys/stat.h>.
37465         (rpl_lseek): Add workaround code also for Unix platforms.
37466         Needed for BeOS.
37467         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
37468         * doc/functions/lseek.texi: Document BeOS definiency.
37469
37470 2007-08-18  Bruno Haible  <bruno@clisp.org>
37471
37472         * modules/fstrcmp-tests: New file.
37473         * tests/test-fstrcmp.c: New file.
37474
37475 2007-08-18  Bruno Haible  <bruno@clisp.org>
37476
37477         * modules/fstrcmp: New file, from GNU gettext with modifications.
37478         * lib/fstrcmp.h: New file, from GNU gettext.
37479         * lib/fstrcmp.c: New file, from GNU gettext.
37480         * MODULES.html.sh (String handling): Add fstrcmp.
37481
37482 2007-08-18  Bruno Haible  <bruno@clisp.org>
37483
37484         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
37485         'bool'.
37486         (diag, compareseq): Remove const from the ctxt argument.
37487         (USE_HEURISTIC): Undefine at the end.
37488
37489 2007-08-18  Jim Meyering  <jim@meyering.net>
37490
37491         New file: lib/idcache.h
37492         * NEWS: Mention the addition.
37493         * modules/idcache (Files): Add lib/idcache.h
37494         * lib/idcache.c: Include "idcache.h".
37495         Don't include <sys/types.h>.
37496         Add a FIXME comment.
37497         Move file-scoped "static" declarations to the top.
37498         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
37499
37500 2007-08-17  Bruno Haible  <bruno@clisp.org>
37501         and Paul Eggert  <eggert@cs.ucla.edu>
37502
37503         * MODULES.html.sh: Add diffseq.
37504         * modules/diffseq: New file.
37505         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37506         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
37507
37508 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37509
37510         Import changes from coreutils for bootstrap script.
37511
37512         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
37513
37514         * build-aux/bootstrap (slurp): Work even in environments where
37515         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
37516         current code does not slurp files whose names start with ".", and
37517         this looks like it might be a troublesome area.
37518
37519         2007-07-11  Jim Meyering  <jim@meyering.net>
37520
37521         If there's a GPL vN copyright comment, require that N == 3.
37522
37523         2007-07-08  Jim Meyering  <jim@meyering.net>
37524
37525         Run the coreutils-specific code only if tests/Makefile.am.in exists.
37526         * build-aux/bootstrap (mam_template): Move definition out of loop.
37527
37528         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
37529
37530         * build-aux/bootstrap (symlink_to_dir): Rename function from
37531         symlink_to_gnulib.  Add a directory parameter.  Update all
37532         callers.
37533         (cp_mark_as_generated): Also check for -- and link to -- files in
37534         gl/.
37535
37536         2007-07-08  Jim Meyering  <jim@meyering.net>
37537
37538         Adapt to deeper hierarchy in gnulib.
37539         * build-aux/bootstrap (symlink_to_dir): If the destination
37540         directory doesn't exist, create it. This is required at least for
37541         "lib/uniwidth/cjk.h".
37542
37543         2007-05-15  Jim Meyering  <jim@meyering.net>
37544
37545         * build-aux/bootstrap: Now that generated Makefile.am files
37546         are no longer under version control, they must be created at
37547         bootstrap time.
37548
37549 2007-08-14  Ben Pfaff  <blp@gnu.org>
37550
37551         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
37552
37553 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37554
37555         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
37556         given the changes below.
37557         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
37558         even on hosts that have padding bits beyond the supported 64.
37559
37560 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37561
37562         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
37563         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
37564         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
37565         depends on it.
37566         (xstrtol_error): Remove.
37567         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
37568         but with a different signature.
37569         (ATTRIBUTE_NORETURN, __attribute__): New macros.
37570         * lib/xstrtol-error.c: Include exitfail.h.
37571         (xstrtol_fatal): New function, with a different signature from the
37572         old xstrtol_error, so that the caller need not worry about passing
37573         in an exit status, or about storage management of the option argument.
37574         (xstrtol_error): Now a static function.  Redo signature to
37575         implement xstrtol_fatal.  Output the correct number of hyphens in
37576         front of the option so that the caller need not worry about
37577         storage management.
37578         (N_): New macro.
37579         (_): Remove; not used now.
37580         * modules/xstrtol: Depend on getopt.
37581         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
37582         of old STRTOL_FATAL_ERROR macro.
37583         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
37584         of test program.
37585         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37586         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37587
37588 2007-08-08  Eric Blake  <ebb9@byu.net>
37589
37590         * lib/xstrtol-error.c: Add missing include.
37591
37592         Move xstrtol messages into gnulib domain, when --pobase is used.
37593         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37594         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37595         * modules/xstrtol (Files): Distribute new file.
37596         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37597         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37598         * tests/test-xstrtol.c: ...into new file.
37599         * tests/test-xstrtoul.c: Also test xstrtoul.
37600         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37601         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37602         * tests/test-xstrtol.sh: Drive the tests.
37603         * tests/test-xstrtoimax.sh: Likewise.
37604         * tests/test-xstrtoumax.sh: Likewise.
37605         * modules/xstrtol-tests: New module.
37606         * modules/xstrtoimax-tests: Likewise.
37607         * modules/xstrtoumax-tests: Likewise.
37608
37609 2007-08-08  Jim Meyering  <jim@meyering.net>
37610
37611         New function: mfile_name_concat.
37612         * lib/filenamecat.c (mfile_name_concat): New function, just like
37613         file_name_concat, but return NULL upon failure rather than exiting
37614         with a diagnostic.
37615         * lib/filenamecat.h: Declare it.
37616
37617 2007-08-07  Bruno Haible  <bruno@clisp.org>
37618
37619         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37620         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37621         warning from gcc.
37622         Reported by Eric Blake.
37623
37624 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37625
37626         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37627         * modules/crypto/arcfour (License): Likewise.
37628         * modules/crypto/des-tests (License): Likewise.
37629         * modules/crypto/gc-arctwo-tests (License): Likewise.
37630         * modules/crypto/gc-des-tests (License): Likewise.
37631         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37632         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37633         * modules/crypto/gc-md2-tests (License): Likewise.
37634         * modules/crypto/gc-md4-tests (License): Likewise.
37635         * modules/crypto/gc-md5-tests (License): Likewise.
37636         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37637         * modules/crypto/gc-rijndael-tests (License): Likewise.
37638         * modules/crypto/gc-sha1-tests (License): Likewise.
37639         * modules/crypto/gc-tests (License): Likewise.
37640         * modules/crypto/hmac-md5 (License): Likewise.
37641         * modules/crypto/hmac-sha1 (License): Likewise.
37642         * modules/crypto/md2-tests (License): Likewise.
37643         * modules/crypto/md4-tests (License): Likewise.
37644         * modules/crypto/md5 (License): Likewise.
37645         * modules/crypto/rijndael (License): Likewise.
37646         * modules/crypto/sha1 (License): Likewise.
37647         * modules/memxor (License): Likewise.
37648
37649 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37650         and Bruno Haible  <bruno@clisp.org>
37651
37652         * NEWS: Describe interface changes to human, xstrtol.
37653         * lib/human.h: Include <xstrtol.h>.
37654         (human_options): Return enum strtol_error, not int.  Remove
37655         bool arg; take int * instead.
37656         * lib/human.c: Don't include "gettext.h".
37657         (_): Remove; no longer used.
37658         Don't include <xstrtol.h>, since human.h does it.
37659         (human_options): Adjust to abovementioned interface changes.
37660         Do not report error to stderr; that's now the caller's
37661         responsibility.
37662         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37663         interface change.
37664         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37665         Str, Argument_type_string.  All uses changed.  Put " argument"
37666         in diagnostics to make them clearer.  Change wording of suffix
37667         message for clarity.
37668         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37669         Argument_type_string.
37670         (STRTOL_FATAL_WARN): Remove; no longer used.
37671         * modules/human (Depends-on): Remove gettext-h.
37672
37673 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37674
37675         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37676
37677 2007-07-31  Bruno Haible  <bruno@clisp.org>
37678
37679         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37680         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37681         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37682
37683 2007-07-31  Bruno Haible  <bruno@clisp.org>
37684
37685         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37686         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37687
37688 2007-07-30  Bruno Haible  <bruno@clisp.org>
37689
37690         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37691         * modules/c-ctype (License): Likewise.
37692         * modules/c-strcase (License): Likewise.
37693         * modules/check-version (License): Likewise.
37694         * modules/iconv (License): Likewise.
37695         * modules/iconv_open (License): Likewise.
37696         * modules/read-file (License): Likewise.
37697         * modules/striconv (License): Likewise.
37698         * modules/strverscmp (License): Likewise.
37699         * modules/vasprintf (License): Likewise.
37700         * modules/crypto/des (License): Likewise.
37701         * modules/crypto/gc (License): Likewise.
37702         * modules/crypto/gc-arcfour (License): Likewise.
37703         * modules/crypto/gc-arctwo (License): Likewise.
37704         * modules/crypto/gc-des (License): Likewise.
37705         * modules/crypto/gc-hmac-md5 (License): Likewise.
37706         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37707         * modules/crypto/gc-md2 (License): Likewise.
37708         * modules/crypto/gc-md4 (License): Likewise.
37709         * modules/crypto/gc-md5 (License): Likewise.
37710         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37711         * modules/crypto/gc-random (License): Likewise.
37712         * modules/crypto/gc-rijndael (License): Likewise.
37713         * modules/crypto/gc-sha1 (License): Likewise.
37714         * modules/crypto/md2 (License): Likewise.
37715         * modules/crypto/md4 (License): Likewise.
37716
37717 2007-07-30  Jim Meyering  <jim@meyering.net>
37718
37719         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37720         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37721         it has valid stat data.  This bug would cause du not to count the
37722         sizes of inaccessible directories.
37723         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37724         in <http://bugzilla.redhat.com/250077>.
37725
37726 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37727             Bruno Haible  <bruno@clisp.org>
37728
37729         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37730         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37731         #include_next, gives a diagnostic about it, but reports no error in
37732         the exit code.
37733         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37734
37735 2007-07-24  Ben Pfaff  <blp@gnu.org>
37736
37737         Improve name: "count-one-bits" is better than "popcount".
37738         * MODULES.html.sh: Update name.
37739         * lib/popcount.h: Renamed lib/count-one-bits.h.
37740         (popcount): Renamed count_one_bits.
37741         (popcountl): Renamed count_one_bits_l.
37742         (popcountll): Renamed count_one_bits_ll.
37743         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37744         * modules/popcount: Renamed module/count-one-bits.
37745         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37746         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37747
37748 2007-07-23  Ben Pfaff  <blp@gnu.org>
37749
37750         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37751         better code generation, and add U to large constants to avoid
37752         warnings, in non-GCC case.
37753         Suggested by Bruno Haible.
37754
37755 2007-07-23  Ben Pfaff  <blp@gnu.org>
37756
37757         * lib/popcount.h: Use verify_true instead of if...abort.
37758         * modules/popcount: Depend on verify module.
37759         Suggested by Jim Meyering.
37760
37761 2007-07-23  Bruno Haible  <bruno@clisp.org>
37762
37763         * gnulib-tool (func_import): Create a .cvsignore file also when the
37764         directory is not yet in CVS but the toplevel directory is. When
37765         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37766         Reported by Karl Berry.
37767
37768 2007-07-22  Ben Pfaff  <blp@gnu.org>
37769
37770         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37771         case.
37772         Suggested by Eric Blake.
37773
37774 2007-07-22  Ben Pfaff  <blp@gnu.org>
37775
37776         New module: popcount.
37777         * MODULES.html.sh: Add popcount.
37778         * modules/popcount: New file.
37779         * modules/popcount-tests: New file.
37780         * tests/test-popcount.c: New file.
37781         * lib/popcount.h: New file.
37782         * m4/popcount.m4: New file.
37783
37784 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37785
37786         * build-aux/announce-gen: Update to GPLv3.
37787
37788         * build-aux/config.guess: Update from config.
37789
37790 2007-07-21  Bruno Haible  <bruno@clisp.org>
37791
37792         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37793         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37794
37795 2007-07-20  Jim Meyering  <jim@meyering.net>
37796
37797         * check-module: Diagnose a self-dependency.
37798
37799 2007-07-19  Bruno Haible  <bruno@clisp.org>
37800
37801         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37802         empty.
37803         Reported by Eric Blake.
37804
37805 2007-07-18  Bruno Haible  <bruno@clisp.org>
37806
37807         * gnulib-tool: New options --po-base, --po-domain.
37808         (func_usage): Document them.
37809         (pobase, po_domain): New variables.
37810         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37811         DEFAULT_TEXT_DOMAIN.
37812         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37813         (func_import): Consider pobase and po_domain. Create a po/ directory.
37814         (func_create_testdir): Set pobase and po_domain to empty.
37815         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37816         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37817
37818 2007-07-18  Bruno Haible  <bruno@clisp.org>
37819
37820         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37821         EXTRA_DIST augmentation for files in build-aux/.
37822
37823 2007-07-16  Bruno Haible  <bruno@clisp.org>
37824
37825         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37826         * modules/getdelim (License): Likewise.
37827
37828 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37829
37830         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
37831         * modules/d-type (License): Likewise.
37832         * modules/extensions (License): Likewise.
37833         * modules/fnmatch (License): Likewise.
37834         * modules/fseeko (License): Likewise.
37835         * modules/getaddrinfo (License): Likewise.
37836         * modules/getline (License): Likewise.
37837         * modules/getlogin_r (License): Likewise.
37838         * modules/getpass (License): Likewise.
37839         * modules/gettimeofday (License): Likewise.
37840         * modules/glob (License): Likewise.
37841         * modules/inet_ntop (License): Likewise.
37842         * modules/malloc (License): Likewise.
37843         * modules/malloca (License): Likewise.
37844         * modules/memmem (License): Likewise.
37845         * modules/mempcpy (License): Likewise.
37846         * modules/memset (License): Likewise.
37847         * modules/minmax (License): Likewise.
37848         * modules/mktime (License): Likewise.
37849         * modules/netinet_in (License): Likewise.
37850         * modules/pathmax (License): Likewise.
37851         * modules/poll (License): Likewise.
37852         * modules/regex (License): Likewise.
37853         * modules/snprintf (License): Likewise.
37854         * modules/stdbool (License): Likewise.
37855         * modules/stdint (License): Likewise.
37856         * modules/stdio (License): Likewise.
37857         * modules/strcase (License): Likewise.
37858         * modules/strcasestr (License): Likewise.
37859         * modules/strdup (License): Likewise.
37860         * modules/string (License): Likewise.
37861         * modules/strndup (License): Likewise.
37862         * modules/strnlen (License): Likewise.
37863         * modules/strpbrk (License): Likewise.
37864         * modules/strptime (License): Likewise.
37865         * modules/strsep (License): Likewise.
37866         * modules/sys_select (License): Likewise.
37867         * modules/sys_socket (License): Likewise.
37868         * modules/sys_stat (License): Likewise.
37869         * modules/sys_time (License): Likewise.
37870         * modules/time (License): Likewise.
37871         * modules/time_r (License): Likewise.
37872         * modules/timegm (License): Likewise.
37873         * modules/unistd (License): Likewise.
37874         * modules/vsnprintf (License): Likewise.
37875         * modules/wctype (License): Likewise.
37876
37877 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37878
37879         * modules/argz (License): LGPLv2+.
37880
37881 2007-07-15  Karl Berry  <karl@gnu.org>
37882
37883         * doc/gnulib.texi: revise node structure per new fdl.texi.
37884
37885 2007-07-14  Bruno Haible  <bruno@clisp.org>
37886
37887         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
37888         the output file.
37889         * lib/uniname/uninames.h: Regenerated.
37890
37891 2007-07-14  Karl Berry  <karl@gnu.org>
37892
37893         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
37894         omitting sectioning and index commands.
37895
37896 2007-07-13  Bruno Haible  <bruno@clisp.org>
37897
37898         New gnulib-tool option --more-symlinks.
37899         * gnulib-tool (func_usage): Document --more-symlinks.
37900         (do_copyrights): New variable.
37901         Recognize option --more-symlinks.
37902         (func_import): Don't add a copyright notice transform to
37903         sed_transform_lib_file if do_copyrights is empty.
37904
37905 2007-07-13  Bruno Haible  <bruno@clisp.org>
37906
37907         * lib/vasnprintf.c (decimal_point_char): Define also if
37908         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
37909         && !NEED_PRINTF_DIRECTIVE_A.
37910         Reported by Clemens Koller <clemens.koller@anagramm.de> via
37911         Gary V. Vaughan <gary@gnu.org>.
37912
37913 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
37914
37915         * lib/inttypes_.h: Undo previous change, since it was fixed
37916         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
37917
37918 2007-07-13  Bruno Haible  <bruno@clisp.org>
37919
37920         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
37921         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
37922
37923 2007-07-13  Jim Meyering  <jim@meyering.net>
37924
37925         df: Don't fail for Tru64's "file-on-file mount".
37926         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
37927         so we fall through and use statfs instead.  Details here:
37928         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
37929         Reported by Albert Chin.
37930
37931 2007-07-13  Bruno Haible  <bruno@clisp.org>
37932
37933         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
37934         * modules/configmake (License): Likewise.
37935         * modules/gettext (License): Likewise.
37936         * modules/gettext-h (License): Likewise.
37937         * modules/include_next (License): Likewise.
37938         * modules/link-warning (License): Likewise.
37939         * modules/localcharset (License): Likewise.
37940         * modules/localename (License): Likewise.
37941         * modules/lock (License): Likewise.
37942         * modules/relocatable-lib-lgpl (License): Likewise.
37943         * modules/size_max (License): Likewise.
37944         * modules/vasnprintf (License): Likewise.
37945         * modules/wchar (License): Likewise.
37946         * modules/xsize (License): Likewise.
37947
37948 2007-07-13  Bruno Haible  <bruno@clisp.org>
37949
37950         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
37951         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
37952
37953 2007-07-12  Bruno Haible  <bruno@clisp.org>
37954
37955         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
37956         in the modules files.
37957
37958 2007-07-11  Karl Berry  <karl@gnu.org>
37959
37960         * MODULES.html.sh (func_module): use
37961          sed -e '\|^'"${includefile}"'$|d'
37962          instead of /.../d, to avoid errors on $includefile's containing /.
37963
37964 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37965
37966         * gnulib-tool (func_import): Avoid duplication of --avoid
37967         statements
37968         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
37969         names to `_' in variable names.
37970
37971 2007-07-10  Eric Blake  <ebb9@byu.net>
37972
37973         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
37974         * NEWS: Document this change.
37975
37976 2007-07-08  Bruno Haible  <bruno@clisp.org>
37977
37978         Update to Unicode 5.0.
37979         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
37980         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
37981         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
37982         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
37983         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
37984         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
37985         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
37986         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
37987         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
37988         U+10A3F, U+1D242..U+1D244.
37989         (nonspacing_table_ind): Update.
37990         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
37991         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
37992
37993 2007-07-08  Bruno Haible  <bruno@clisp.org>
37994
37995         Update to Unicode 5.0.
37996         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
37997         code transform. Extend the name index field of unicode_name_to_code and
37998         unicode_code_to_name from 16 to 24 bits.
37999         * lib/uniname/uniname.c (unicode_character_name,
38000         unicode_name_character): Add the range 0x12xxx to the code transform.
38001         * lib/uniname/uninames.h: Regenerated.
38002         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
38003
38004 2007-07-07  Bruno Haible  <bruno@clisp.org>
38005
38006         * modules/wcwidth-tests: New file.
38007         * tests/test-wcwidth.c: New file.
38008
38009         Work around MacOS X wcwidth() bug.
38010         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
38011         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
38012         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
38013         original wcwidth in non-UTF-8 locales.
38014         * modules/wcwidth (Depends-on): Add localcharset, streq,
38015         uniwidth/width.
38016         * doc/functions/wcwidth.texi: Update.
38017
38018 2007-07-07  Bruno Haible  <bruno@clisp.org>
38019
38020         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
38021         (wcwidth): New declaration.
38022         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
38023         macros.
38024         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
38025         here. Prepare for creating <wchar.h> unconditionally.
38026         * modules/wchar (Depends-on): Add link-warning.
38027         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
38028         REPLACE_WCWIDTH, and GL_LINK_WARNING.
38029         * lib/wcwidth.h: Remove file.
38030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
38031         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
38032         * modules/wcwidth (Files): Remove lib/wcwidth.h.
38033         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
38034         (Include): Replace wcwidth.h with <wchar.h>.
38035         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
38036         * lib/mbchar.h: Don't include wcwidth.h.
38037         * lib/mbswidth.c: Likewise.
38038         * NEWS: Mention the change.
38039
38040 2007-07-07  Bruno Haible  <bruno@clisp.org>
38041
38042         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
38043         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
38044         definition with an external declaration.
38045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
38046         defined as a function. Remove AC_C_INLINE requirement.
38047         * modules/wcwidth (Files): Add lib/wcwidth.c.
38048         (Makefile.am): Remove redundant statement.
38049
38050 2007-07-07  Bruno Haible  <bruno@clisp.org>
38051
38052         * MODULES.html.sh (Unicode string functions): Add the new modules.
38053
38054         * tests/uniwidth/test-u32-strwidth.c: New file.
38055         * modules/uniwidth/u32-strwidth-tests: New file.
38056
38057         * lib/uniwidth/u32-strwidth.c: New file.
38058         * modules/uniwidth/u32-strwidth: New file.
38059
38060         * tests/uniwidth/test-u16-strwidth.c: New file.
38061         * modules/uniwidth/u16-strwidth-tests: New file.
38062
38063         * lib/uniwidth/u16-strwidth.c: New file.
38064         * modules/uniwidth/u16-strwidth: New file.
38065
38066         * tests/uniwidth/test-u8-strwidth.c: New file.
38067         * modules/uniwidth/u8-strwidth-tests: New file.
38068
38069         * lib/uniwidth/u8-strwidth.c: New file.
38070         * modules/uniwidth/u8-strwidth: New file.
38071
38072         * tests/uniwidth/test-u32-width.c: New file.
38073         * modules/uniwidth/u32-width-tests: New file.
38074
38075         * lib/uniwidth/u32-width.c: New file.
38076         * modules/uniwidth/u32-width: New file.
38077
38078         * tests/uniwidth/test-u16-width.c: New file.
38079         * modules/uniwidth/u16-width-tests: New file.
38080
38081         * lib/uniwidth/u16-width.c: New file.
38082         * modules/uniwidth/u16-width: New file.
38083
38084         * tests/uniwidth/test-u8-width.c: New file.
38085         * modules/uniwidth/u8-width-tests: New file.
38086
38087         * lib/uniwidth/u8-width.c: New file.
38088         * modules/uniwidth/u8-width: New file.
38089
38090         * tests/uniwidth/test-uc_width.c: New file.
38091         * modules/uniwidth/width-tests: New file.
38092
38093         * lib/uniwidth/width.c: New file, from GNU libiconv.
38094         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
38095         * modules/uniwidth/width: New file.
38096
38097         * lib/uniwidth.h: New file, from GNU libiconv.
38098         * modules/uniwidth/base: New file.
38099
38100 2007-07-07  Bruno Haible  <bruno@clisp.org>
38101
38102         * lib/uniname.h: New file, from GNU gettext.
38103         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
38104         * lib/uniname/uninames.h: New file, from GNU gettext.
38105         * lib/uniname/uniname.c: New file, from GNU gettext.
38106         * tests/uniname/test-uninames.sh: New file.
38107         * tests/uniname/test-uninames.c: New file, from GNU gettext.
38108         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
38109         * modules/uniname/base: New file.
38110         * modules/uniname/uniname: New file.
38111         * modules/uniname/uniname-tests: New file.
38112         * MODULES.html.sh (Unicode string functions): Add the new modules.
38113
38114 2007-07-06  Bruno Haible  <bruno@clisp.org>
38115
38116         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
38117
38118 2007-07-06  Bruno Haible  <bruno@clisp.org>
38119
38120         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
38121         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
38122         includes <cygwin/sys_time.h> which includes <sys/select.h> which
38123         include <sys/time.h>.
38124         Reported by Eric Blake.
38125
38126 2007-07-06  Eric Blake  <ebb9@byu.net>
38127
38128         Fix testing canonicalize on cygwin.
38129         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38130         Revert patch from 2007-06-19.
38131         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
38132         canonicalize module is also in use.
38133         * tests/test-canonicalize.c: New file.
38134         * tests/test-canonicalize.sh: Likewise.
38135         * modules/canonicalize-tests: Likewise.
38136
38137 2007-07-06  Jim Meyering  <jim@meyering.net>
38138
38139         * lib/getugroups.c (getugroups): Detect getgrent failure.
38140         Adjust comment to reflect reality: this function may return -1.
38141
38142 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38143
38144         * build-aux/bootstrap (TP_URL,get_translations): Update to use
38145         the new TP address.
38146         (usage): Fix typo
38147         (gnulib_mk): New variable.
38148
38149 2007-07-05  Jim Meyering  <jim@meyering.net>
38150
38151         Don't let endgrent clobber errno, no matter how improbable.
38152         * lib/getugroups.c (getugroups): Save and restore errno around
38153         endgrent call.
38154
38155         Close the group DB even when failing with 2^31 or more members.
38156         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
38157
38158 2007-07-04  Jim Meyering  <jim@meyering.net>
38159
38160         * lib/getugroups.h: New file.
38161         * lib/getugroups.c: Include "getugroups.h".
38162         Remove uses of "register" keyword.
38163         Move local variable, "cp", down into scope where used.
38164         Give "username" parameter the "const" attribute.
38165         * modules/getugroups (Files): Add lib/getugroups.h
38166
38167 2007-07-04  Karl Berry  <karl@gnu.org>
38168
38169         * MODULES.html.sh (func_all_modules): Complete rename of
38170         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
38171
38172 2007-07-02  Bruno Haible  <bruno@clisp.org>
38173
38174         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
38175         mode, when inttypes.h comes from gnulib.
38176         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38177
38178 2007-07-02  Simon Josefsson  <simon@josefsson.org>
38179
38180         * NEWS: Mention lgpl module name change.
38181
38182         * modules/lgpl-2.1: Renamed from lgpl.
38183
38184         * NEWS: Mention gpl module name change.
38185
38186         * modules/gpl-3.0: New file, based on gpl-2.0.
38187
38188         * modules/gpl-2.0: Renamed from gpl.
38189
38190         * modules/gpl: Fix filename, doc/gpl.texi is now found at
38191         doc/gpl-2.0.texi.
38192
38193 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38194
38195         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
38196         #define __STDC_LIMIT_MACROS temporarily while including
38197         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
38198         Problem reported by Joel E. Denny in
38199         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
38200
38201 2007-07-01  Bruno Haible  <bruno@clisp.org>
38202
38203         * lib/unistdio.h: New file.
38204         * lib/unistdio/u-asnprintf.h: New file.
38205         * lib/unistdio/u-asprintf.h: New file.
38206         * lib/unistdio/u-printf-args.c: New file.
38207         * lib/unistdio/u-printf-args.h: New file.
38208         * lib/unistdio/u-printf-parse.h: New file.
38209         * lib/unistdio/u-snprintf.h: New file.
38210         * lib/unistdio/u-sprintf.h: New file.
38211         * lib/unistdio/u-vasprintf.h: New file.
38212         * lib/unistdio/u-vsnprintf.h: New file.
38213         * lib/unistdio/u-vsprintf.h: New file.
38214         * lib/unistdio/ulc-asnprintf.c: New file.
38215         * lib/unistdio/ulc-asprintf.c: New file.
38216         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
38217         * lib/unistdio/ulc-printf-parse.c: New file.
38218         * lib/unistdio/ulc-snprintf.c: New file.
38219         * lib/unistdio/ulc-sprintf.c: New file.
38220         * lib/unistdio/ulc-vasnprintf.c: New file.
38221         * lib/unistdio/ulc-vasprintf.c: New file.
38222         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
38223         * lib/unistdio/ulc-vsnprintf.c: New file.
38224         * lib/unistdio/ulc-vsprintf.c: New file.
38225         * lib/unistdio/u8-asnprintf.c: New file.
38226         * lib/unistdio/u8-asprintf.c: New file.
38227         * lib/unistdio/u8-printf-parse.c: New file.
38228         * lib/unistdio/u8-snprintf.c: New file.
38229         * lib/unistdio/u8-sprintf.c: New file.
38230         * lib/unistdio/u8-vasnprintf.c: New file.
38231         * lib/unistdio/u8-vasprintf.c: New file.
38232         * lib/unistdio/u8-vsnprintf.c: New file.
38233         * lib/unistdio/u8-vsprintf.c: New file.
38234         * lib/unistdio/u8-u8-asnprintf.c: New file.
38235         * lib/unistdio/u8-u8-asprintf.c: New file.
38236         * lib/unistdio/u8-u8-snprintf.c: New file.
38237         * lib/unistdio/u8-u8-sprintf.c: New file.
38238         * lib/unistdio/u8-u8-vasnprintf.c: New file.
38239         * lib/unistdio/u8-u8-vasprintf.c: New file.
38240         * lib/unistdio/u8-u8-vsnprintf.c: New file.
38241         * lib/unistdio/u8-u8-vsprintf.c: New file.
38242         * lib/unistdio/u16-asnprintf.c: New file.
38243         * lib/unistdio/u16-asprintf.c: New file.
38244         * lib/unistdio/u16-printf-parse.c: New file.
38245         * lib/unistdio/u16-snprintf.c: New file.
38246         * lib/unistdio/u16-sprintf.c: New file.
38247         * lib/unistdio/u16-vasnprintf.c: New file.
38248         * lib/unistdio/u16-vasprintf.c: New file.
38249         * lib/unistdio/u16-vsnprintf.c: New file.
38250         * lib/unistdio/u16-vsprintf.c: New file.
38251         * lib/unistdio/u16-u16-asnprintf.c: New file.
38252         * lib/unistdio/u16-u16-asprintf.c: New file.
38253         * lib/unistdio/u16-u16-snprintf.c: New file.
38254         * lib/unistdio/u16-u16-sprintf.c: New file.
38255         * lib/unistdio/u16-u16-vasnprintf.c: New file.
38256         * lib/unistdio/u16-u16-vasprintf.c: New file.
38257         * lib/unistdio/u16-u16-vsnprintf.c: New file.
38258         * lib/unistdio/u16-u16-vsprintf.c: New file.
38259         * lib/unistdio/u32-asnprintf.c: New file.
38260         * lib/unistdio/u32-asprintf.c: New file.
38261         * lib/unistdio/u32-printf-parse.c: New file.
38262         * lib/unistdio/u32-snprintf.c: New file.
38263         * lib/unistdio/u32-sprintf.c: New file.
38264         * lib/unistdio/u32-vasnprintf.c: New file.
38265         * lib/unistdio/u32-vasprintf.c: New file.
38266         * lib/unistdio/u32-vsnprintf.c: New file.
38267         * lib/unistdio/u32-vsprintf.c: New file.
38268         * lib/unistdio/u32-u32-asnprintf.c: New file.
38269         * lib/unistdio/u32-u32-asprintf.c: New file.
38270         * lib/unistdio/u32-u32-snprintf.c: New file.
38271         * lib/unistdio/u32-u32-sprintf.c: New file.
38272         * lib/unistdio/u32-u32-vasnprintf.c: New file.
38273         * lib/unistdio/u32-u32-vasprintf.c: New file.
38274         * lib/unistdio/u32-u32-vsnprintf.c: New file.
38275         * lib/unistdio/u32-u32-vsprintf.c: New file.
38276         * tests/unistdio/test-ulc-asnprintf1.c: New file.
38277         * tests/unistdio/test-ulc-asnprintf1.h: New file.
38278         * tests/unistdio/test-ulc-printf1.h: New file.
38279         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
38280         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
38281         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
38282         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
38283         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
38284         * tests/unistdio/test-ulc-vasprintf1.c: New file.
38285         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
38286         * tests/unistdio/test-ulc-vsprintf1.c: New file.
38287         * tests/unistdio/test-u8-asnprintf1.c: New file.
38288         * tests/unistdio/test-u8-asnprintf1.h: New file.
38289         * tests/unistdio/test-u8-printf1.h: New file.
38290         * tests/unistdio/test-u8-vasnprintf1.c: New file.
38291         * tests/unistdio/test-u8-vasnprintf2.c: New file.
38292         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
38293         * tests/unistdio/test-u8-vasnprintf3.c: New file.
38294         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
38295         * tests/unistdio/test-u8-vasprintf1.c: New file.
38296         * tests/unistdio/test-u8-vsnprintf1.c: New file.
38297         * tests/unistdio/test-u8-vsprintf1.c: New file.
38298         * tests/unistdio/test-u16-asnprintf1.c: New file.
38299         * tests/unistdio/test-u16-asnprintf1.h: New file.
38300         * tests/unistdio/test-u16-printf1.h: New file.
38301         * tests/unistdio/test-u16-vasnprintf1.c: New file.
38302         * tests/unistdio/test-u16-vasnprintf2.c: New file.
38303         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
38304         * tests/unistdio/test-u16-vasnprintf3.c: New file.
38305         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
38306         * tests/unistdio/test-u16-vasprintf1.c: New file.
38307         * tests/unistdio/test-u16-vsnprintf1.c: New file.
38308         * tests/unistdio/test-u16-vsprintf1.c: New file.
38309         * tests/unistdio/test-u32-asnprintf1.c: New file.
38310         * tests/unistdio/test-u32-asnprintf1.h: New file.
38311         * tests/unistdio/test-u32-printf1.h: New file.
38312         * tests/unistdio/test-u32-vasnprintf1.c: New file.
38313         * tests/unistdio/test-u32-vasnprintf2.c: New file.
38314         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
38315         * tests/unistdio/test-u32-vasnprintf3.c: New file.
38316         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
38317         * tests/unistdio/test-u32-vasprintf1.c: New file.
38318         * tests/unistdio/test-u32-vsnprintf1.c: New file.
38319         * tests/unistdio/test-u32-vsprintf1.c: New file.
38320         * modules/unistdio/base: New file.
38321         * modules/unistdio/u-printf-args: New file.
38322         * modules/unistdio/ulc-asnprintf: New file.
38323         * modules/unistdio/ulc-asprintf: New file.
38324         * modules/unistdio/ulc-fprintf: New file.
38325         * modules/unistdio/ulc-printf-parse: New file.
38326         * modules/unistdio/ulc-snprintf: New file.
38327         * modules/unistdio/ulc-sprintf: New file.
38328         * modules/unistdio/ulc-vasnprintf: New file.
38329         * modules/unistdio/ulc-vasprintf: New file.
38330         * modules/unistdio/ulc-vfprintf: New file.
38331         * modules/unistdio/ulc-vsnprintf: New file.
38332         * modules/unistdio/ulc-vsprintf: New file.
38333         * modules/unistdio/u8-asnprintf: New file.
38334         * modules/unistdio/u8-asprintf: New file.
38335         * modules/unistdio/u8-printf-parse: New file.
38336         * modules/unistdio/u8-snprintf: New file.
38337         * modules/unistdio/u8-sprintf: New file.
38338         * modules/unistdio/u8-vasnprintf: New file.
38339         * modules/unistdio/u8-vasprintf: New file.
38340         * modules/unistdio/u8-vsnprintf: New file.
38341         * modules/unistdio/u8-vsprintf: New file.
38342         * modules/unistdio/u8-u8-asnprintf: New file.
38343         * modules/unistdio/u8-u8-asprintf: New file.
38344         * modules/unistdio/u8-u8-snprintf: New file.
38345         * modules/unistdio/u8-u8-sprintf: New file.
38346         * modules/unistdio/u8-u8-vasnprintf: New file.
38347         * modules/unistdio/u8-u8-vasprintf: New file.
38348         * modules/unistdio/u8-u8-vsnprintf: New file.
38349         * modules/unistdio/u8-u8-vsprintf: New file.
38350         * modules/unistdio/u16-asnprintf: New file.
38351         * modules/unistdio/u16-asprintf: New file.
38352         * modules/unistdio/u16-printf-parse: New file.
38353         * modules/unistdio/u16-snprintf: New file.
38354         * modules/unistdio/u16-sprintf: New file.
38355         * modules/unistdio/u16-vasnprintf: New file.
38356         * modules/unistdio/u16-vasprintf: New file.
38357         * modules/unistdio/u16-vsnprintf: New file.
38358         * modules/unistdio/u16-vsprintf: New file.
38359         * modules/unistdio/u16-u16-asnprintf: New file.
38360         * modules/unistdio/u16-u16-asprintf: New file.
38361         * modules/unistdio/u16-u16-snprintf: New file.
38362         * modules/unistdio/u16-u16-sprintf: New file.
38363         * modules/unistdio/u16-u16-vasnprintf: New file.
38364         * modules/unistdio/u16-u16-vasprintf: New file.
38365         * modules/unistdio/u16-u16-vsnprintf: New file.
38366         * modules/unistdio/u16-u16-vsprintf: New file.
38367         * modules/unistdio/u32-asnprintf: New file.
38368         * modules/unistdio/u32-asprintf: New file.
38369         * modules/unistdio/u32-printf-parse: New file.
38370         * modules/unistdio/u32-snprintf: New file.
38371         * modules/unistdio/u32-sprintf: New file.
38372         * modules/unistdio/u32-vasnprintf: New file.
38373         * modules/unistdio/u32-vasprintf: New file.
38374         * modules/unistdio/u32-vsnprintf: New file.
38375         * modules/unistdio/u32-vsprintf: New file.
38376         * modules/unistdio/u32-u32-asnprintf: New file.
38377         * modules/unistdio/u32-u32-asprintf: New file.
38378         * modules/unistdio/u32-u32-snprintf: New file.
38379         * modules/unistdio/u32-u32-sprintf: New file.
38380         * modules/unistdio/u32-u32-vasnprintf: New file.
38381         * modules/unistdio/u32-u32-vasprintf: New file.
38382         * modules/unistdio/u32-u32-vsnprintf: New file.
38383         * modules/unistdio/u32-u32-vsprintf: New file.
38384         * modules/unistdio/ulc-asnprintf-tests: New file.
38385         * modules/unistdio/ulc-vasnprintf-tests: New file.
38386         * modules/unistdio/ulc-vasprintf-tests: New file.
38387         * modules/unistdio/ulc-vsnprintf-tests: New file.
38388         * modules/unistdio/ulc-vsprintf-tests: New file.
38389         * modules/unistdio/u8-asnprintf-tests: New file.
38390         * modules/unistdio/u8-vasnprintf-tests: New file.
38391         * modules/unistdio/u8-vasprintf-tests: New file.
38392         * modules/unistdio/u8-vsnprintf-tests: New file.
38393         * modules/unistdio/u8-vsprintf-tests: New file.
38394         * modules/unistdio/u16-asnprintf-tests: New file.
38395         * modules/unistdio/u16-vasnprintf-tests: New file.
38396         * modules/unistdio/u16-vasprintf-tests: New file.
38397         * modules/unistdio/u16-vsnprintf-tests: New file.
38398         * modules/unistdio/u16-vsprintf-tests: New file.
38399         * modules/unistdio/u32-asnprintf-tests: New file.
38400         * modules/unistdio/u32-vasnprintf-tests: New file.
38401         * modules/unistdio/u32-vasprintf-tests: New file.
38402         * modules/unistdio/u32-vsnprintf-tests: New file.
38403         * modules/unistdio/u32-vsprintf-tests: New file.
38404         * MODULES.html.sh (Unicode string functions): Add the new modules.
38405
38406 2007-07-01  Bruno Haible  <bruno@clisp.org>
38407
38408         * lib/sprintf.c (sprintf): Limit the available length estimation,
38409         to avoid address wraparound.
38410         * lib/vsprintf.c (vsprintf): Likewise.
38411         * modules/sprintf-posix (Dependencies): Add stdint.
38412         * modules/vsprintf-posix (Dependencies): Likewise.
38413
38414 2007-07-01  Bruno Haible  <bruno@clisp.org>
38415
38416         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
38417         Windows PATH as well. Conservative double-quoting. Comments.
38418
38419 2007-07-01  Bruno Haible  <bruno@clisp.org>
38420             Eric Blake  <ebb9@byu.net>
38421             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38422
38423         * gnulib-tool (self_abspathname): Fix algorithm to cope with
38424         empty components in $PATH, denoting '.'.
38425
38426 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38427
38428         * gnulib-tool: Fix indentation.
38429         (func_create_megatestdir): Likewise.
38430         Report by Bruno Haible.
38431
38432 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38433
38434         Sync from Automake.
38435         * build-aux/gnupload: Fix shell portability issues with for loops.
38436         Report by Karl Berry.
38437
38438 2007-06-29  Simon Josefsson  <simon@josefsson.org>
38439
38440         * build-aux/maint.mk (POURL): Use translationproject.org.
38441
38442 2007-06-27  Simon Josefsson  <simon@josefsson.org>
38443             Bruno Haible  <bruno@clisp.org>
38444
38445         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
38446         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
38447         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
38448         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
38449         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
38450
38451 2007-06-27  Bruno Haible  <bruno@clisp.org>
38452
38453         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
38454         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
38455
38456 2007-06-26  Karl Berry  <karl@gnu.org>
38457
38458         * MODULES.html.sh: remove xreadlink-with-size.
38459
38460 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38461
38462         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
38463         method that I hope also handles the double-include problem noted
38464         by Bruno Haible in
38465         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
38466
38467 2007-06-23  Bruno Haible  <bruno@clisp.org>
38468
38469         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38470         Don't let the 'mostlyclean' target fail if the last subdirectory could
38471         not be removed.
38472         Reported by Karl Berry.
38473
38474 2007-06-23  Bruno Haible  <bruno@clisp.org>
38475
38476         * gnulib-tool (echo): Add a speedier workaround for ksh.
38477         * tests/test-echo.sh: Likewise.
38478
38479 2007-06-23  Bruno Haible  <bruno@clisp.org>
38480
38481         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
38482         * tests/test-echo.sh: Likewise.
38483
38484 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38485
38486         * gnulib-tool (IFS): Initialize early, so we don't set it to
38487         empty later.
38488         (self_abspathname): Rewrite algorithm to set it, reindent.
38489         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
38490         (func_create_megatestdir): Merge some sed scripts.
38491
38492 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38493
38494         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
38495         exposed by Sun Studio 11 cc on Solaris 8.
38496
38497 2007-06-22  Bruno Haible  <bruno@clisp.org>
38498
38499         * gnulib-tool (echo): Ensure the echo primitive does not interpret
38500         backslashes.
38501         * tests/test-echo.sh: New file.
38502
38503 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38504
38505         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
38506         simplify `sed_replace_build_aux' scripts, they are portable but
38507         echoing them with `echo' is not.
38508         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
38509
38510 2007-06-21  Karl Berry  <karl@gnu.org>
38511
38512         * config/srclist.txt: guess we can't handle the licenses via
38513         srclist at the moment.
38514
38515 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38516
38517         * MODULES.html.sh: Add include_next.
38518         * modules/include_next: New file.
38519
38520 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38521
38522         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
38523         INCLUDE_NEXT.
38524         (gl_CHECK_NEXT_HEADERS): New macro.
38525         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
38526         the obsolescent gl_ABSOLUTE_HEADER.
38527         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
38528         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
38529         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38530         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38531         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38532         * m4/math_h.m4 (gl_MATH_H): Likewise.
38533         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38534         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38535         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38536         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38537         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38538         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38539         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38540         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38541         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38542         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38543         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38544         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38545         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38546         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38547         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38548         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38549         * m4/inttypes.m4 (gl_INTTYPES_H): Define
38550         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
38551         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38552         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
38553         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
38554         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
38555         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
38556         * lib/float_.h: Likewise.
38557         * lib/inttypes_.h: Likewise.
38558         * lib/math_.h: Likewise.
38559         * lib/search_.h: Likewise.
38560         * lib/signal_.h: Likewise.
38561         * lib/stdint_.h: Likewise.
38562         * lib/stdio_.h: Likewise.
38563         * lib/stdlib_.h: Likewise.
38564         * lib/string_.h: Likewise.
38565         * lib/sys_stat_.h: Likewise.
38566         * lib/sys_time_.h: Likewise.
38567         * lib/time_.h: Likewise.
38568         * lib/unistd_.h: Likewise.
38569         * lib/wchar_.h: Likewise.
38570         * lib/wctype_.h: Likewise.
38571         * lib/dirent_.h: Likewise.
38572         * lib/iconv_.h: Likewise.
38573         * lib/locale_.h: Likewise.
38574         * lib/netinet_in_.h: Likewise.
38575         * lib/sys_select_.h: Likewise.
38576         * lib/sys_socket_.h: Likewise.
38577         * lib/sysexits_.h: Likewise.
38578         * modules/fcntl (Depends-on): Depend on include_next, not
38579         absolute_header.
38580         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
38581         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
38582         * modules/fchdir: Likewise.
38583         * modules/float: Likewise.
38584         * modules/iconv_open: Likewise.
38585         * modules/inttypes: Likewise.
38586         * modules/locale: Likewise.
38587         * modules/math: Likewise.
38588         * modules/netinet_in: Likewise.
38589         * modules/search: Likewise.
38590         * modules/signal: Likewise.
38591         * modules/stdint: Likewise.
38592         * modules/stdio: Likewise.
38593         * modules/stdlib: Likewise.
38594         * modules/string: Likewise.
38595         * modules/sys_select: Likewise.
38596         * modules/sys_socket: Likewise.
38597         * modules/sys_stat: Likewise.
38598         * modules/sys_time: Likewise.
38599         * modules/sysexits: Likewise.
38600         * modules/time: Likewise.
38601         * modules/unistd: Likewise.
38602         * modules/wchar: Likewise.
38603         * modules/wctype: Likewise.
38604         * modules/sys_stat: Change maintainer to "all".
38605         * modules/unistd: Likewise.
38606
38607 2007-06-20  Karl Berry  <karl@gnu.org>
38608
38609         * config/srclist.txt: track www changes in license files.
38610
38611 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38612
38613         * build-aux/bootstrap: Remove stray dot.
38614         Make sure build_aux settings are honored when linking
38615         gnulib_extra_files.
38616
38617 2007-06-19  Eric Blake  <ebb9@byu.net>
38618
38619         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38620         Allow compilation on cygwin.
38621
38622 2007-06-19  Jim Meyering  <jim@meyering.net>
38623
38624         xreadlink-with-size: Remove module.  No longer used.
38625         Ex-callers now use xreadlink or mreadlink-with-size.
38626         * modules/xreadlink-with-size: Remove module.
38627         * lib/xreadlink-with-size.c: Remove file.
38628         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38629         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38630         just before the function definition *is* accurate.
38631
38632         Eliminate one way canonicalize_filename_mode could exit.
38633         * lib/canonicalize.c (canonicalize_filename_mode):
38634         Use mreadlink_with_size, not xreadlink_with_size.
38635
38636 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38637
38638         Detect porting problems to FreeBSD/arm, which has time_t wider than
38639         long int.  Original problem reported for GNU diff by Xin Li in
38640         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38641         * modules/getdate (Depends-on): Add intprops, verify.
38642         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38643         is an integer type no wider than long int.
38644
38645 2007-06-18  Jim Meyering  <jim@meyering.net>
38646
38647         New module: mreadlink-with-size.
38648         * MODULES.html.sh: Add mreadlink-with-size.
38649         * modules/mreadlink-with-size: New module
38650         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38651         not xreadlink-with-size.
38652         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38653
38654 2007-06-16  Bruno Haible  <bruno@clisp.org>
38655
38656         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38657         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38658         Reported by Gary V. Vaughan <gary@gnu.org>.
38659
38660 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38661
38662         Revamp lchown so that it lives in unistd.h where it belongs.
38663         * lib/lchown.h: Remove.
38664         * lib/dirchownmod.c: Don't include lib/lchown.h.
38665         * lib/fchownat.c: Likewise.
38666         * lib/openat.c: Likewise.
38667         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38668         does not follow symlinks.
38669         (EOPNOTSUPP): Define if not defined.
38670         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38671         is defined to 0.
38672         (lchown): New decl.
38673         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38674         Do not check for lchown decl.
38675         Set REPLACE_LCHOWN.
38676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38677         REPLACE_LCHOWN.
38678         * modules/chown: Make it clear it follows symlinks.
38679         * modules/lchown: Make it clear it doesn't follow symlinks.
38680         (Files): Remove lib/lchown.h
38681         (Depends-on): Add unistd.
38682         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38683         (Include): Include <unistd.h>, not "lchown.h".
38684         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38685         REPLACE_LCHOWN.
38686
38687 2007-06-15  Jim Meyering  <jim@meyering.net>
38688
38689         Change license (GPL to LGPL) of fsusage and dependents.
38690         * modules/fsusage (License): Change to LGPL.
38691         * modules/full-read (License): Likewise.
38692         * modules/full-write (License): Likewise.
38693         * modules/safe-read (License): Likewise.
38694         * modules/safe-write (License): Likewise.
38695
38696 2007-06-14  Ben Pfaff  <blp@gnu.org>
38697
38698         Missing part of allocsa -> malloca transition.
38699         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38700         gl_MALLOCA.
38701
38702 2007-06-12  Bruno Haible  <bruno@clisp.org>
38703
38704         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38705         to ia64, x86_64, i386.
38706         Reported by Eric Blake.
38707
38708 2007-06-12  Bruno Haible  <bruno@clisp.org>
38709
38710         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38711         cross-compiling to x86_64.
38712
38713 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38714
38715         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38716         glitch reported by Ralf Wildenhues in
38717         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38718
38719         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38720         Vin Shelton.
38721
38722 2007-06-11  Bruno Haible  <bruno@clisp.org>
38723
38724         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38725         replacement string.
38726         Reported by Eric Blake.
38727
38728 2007-06-10  Bruno Haible  <bruno@clisp.org>
38729
38730         Prepare vasnprintf code for use with Unicode strings.
38731         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38732         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38733         TYPE_U32_STRING.
38734         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38735         a_u32_string variants.
38736         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38737         * lib/printf-args.c: Don't include config.h and the specification
38738         header if PRINTF_FETCHARGS is already defined.
38739         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38740         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38741         TYPE_U16_STRING, TYPE_U32_STRING.
38742         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38743         u16_directive, u16_directives, u32_directive, u32_directives): New
38744         types.
38745         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38746         New declarations.
38747         * lib/printf-parse.c: Don't include config.h and the specification
38748         header if PRINTF_PARSE is already defined. Eliminate the set of
38749         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38750         them now. Include c-ctype.h.
38751         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38752         directive and CHAR_T_ONLY_ASCII.
38753         * lib/vasnprintf.c: Don't include config.h and the specification header
38754         if VASNPRINTF is already defined.
38755         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38756         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38757         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38758         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38759         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38760         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38761         code accordingly.
38762         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38763         pad_ourselves also in this case, with the 'c' and 's' directives, and
38764         with a different notion of "width".
38765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38766
38767 2007-06-10  Bruno Haible  <bruno@clisp.org>
38768
38769         * modules/unistr/u32-mbsnlen: New file.
38770         * lib/unistr/u32-mbsnlen.c: New file.
38771
38772         * modules/unistr/u16-mbsnlen: New file.
38773         * lib/unistr/u16-mbsnlen.c: New file.
38774
38775         * modules/unistr/u8-mbsnlen: New file.
38776         * lib/unistr/u8-mbsnlen.c: New file.
38777
38778         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38779         declarations.
38780
38781 2007-06-10  Bruno Haible  <bruno@clisp.org>
38782
38783         * lib/string_.h (mbsnlen): New declaration.
38784         * lib/mbsnlen.c: New file.
38785         * m4/mbsnlen.m4: New file.
38786         * modules/mbsnlen: New file.
38787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38788         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38789         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38790
38791 2007-06-10  Bruno Haible  <bruno@clisp.org>
38792
38793         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38794
38795 2007-06-10  Bruno Haible  <bruno@clisp.org>
38796
38797         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38798         * lib/mbuiter.h: Likewise.
38799
38800 2007-06-10  Bruno Haible  <bruno@clisp.org>
38801
38802         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38803         declaration.
38804
38805 2007-06-10  Karl Berry  <karl@gnu.org>
38806
38807         * config/srclist.txt: remove gettext entries, Bruno prefers
38808         to update individually.
38809
38810 2007-06-10  Bruno Haible  <bruno@clisp.org>
38811
38812         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38813         'maxlen'. Ensure only length + width bytes are allocated, not
38814         length + 1 + width.
38815
38816 2007-06-09  Bruno Haible  <bruno@clisp.org>
38817
38818         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38819         (CHAR_T): Remove macro.
38820         (VASNPRINTF): Update.
38821
38822 2007-06-09  Bruno Haible  <bruno@clisp.org>
38823
38824         * MODULES.html.sh (Unicode string functions): Add the new modules.
38825
38826         * modules/uniconv/u32-conv-to-enc: New file.
38827         * lib/uniconv/u32-conv-to-enc.c: New file.
38828         * modules/uniconv/u32-conv-to-enc-tests: New file.
38829         * tests/uniconv/test-u32-conv-to-enc.c: New file.
38830
38831         * modules/uniconv/u16-conv-to-enc: New file.
38832         * lib/uniconv/u16-conv-to-enc.c: New file.
38833         * lib/uniconv/u-conv-to-enc.h: New file.
38834         * modules/uniconv/u16-conv-to-enc-tests: New file.
38835         * tests/uniconv/test-u16-conv-to-enc.c: New file.
38836
38837         * modules/uniconv/u8-conv-to-enc: New file.
38838         * lib/uniconv/u8-conv-to-enc.c: New file.
38839         * modules/uniconv/u8-conv-to-enc-tests: New file.
38840         * tests/uniconv/test-u8-conv-to-enc.c: New file.
38841
38842         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38843         u32_conv_to_encoding): New declarations.
38844
38845 2007-06-09  Bruno Haible  <bruno@clisp.org>
38846
38847         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
38848
38849 2007-06-09  Bruno Haible  <bruno@clisp.org>
38850
38851         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
38852         * modules/malloca: Renamed from modules/allocsa, updated.
38853         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
38854         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
38855         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
38856         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
38857         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
38858         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
38859         * modules/xmalloca: Renamed from modules/xallocsa, updated.
38860         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
38861         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
38862         * modules/c-strcasestr (Depends-on): Update.
38863         * lib/c-strcasestr.c: Update.
38864         * modules/c-strstr (Depends-on): Update.
38865         * lib/c-strstr.c: Update.
38866         * modules/canonicalize-lgpl (Depends-on): Update.
38867         * lib/canonicalize-lgpl.c: Update.
38868         * modules/clean-temp (Depends-on): Update.
38869         * lib/clean-temp.c: Update.
38870         * modules/csharpcomp (Depends-on): Update.
38871         * lib/csharpcomp.c: Update.
38872         * modules/csharpexec (Depends-on): Update.
38873         * lib/csharpexec.c: Update.
38874         * modules/javacomp (Depends-on): Update.
38875         * lib/javacomp.c: Update.
38876         * modules/javaexec (Depends-on): Update.
38877         * lib/javaexec.c: Update.
38878         * modules/mbscasestr (Depends-on): Update.
38879         * lib/mbscasestr.c: Update.
38880         * modules/mbsstr (Depends-on): Update.
38881         * lib/mbsstr.c: Update.
38882         * modules/setenv (Depends-on): Update.
38883         * lib/setenv.c: Update.
38884         * modules/strcasestr (Depends-on): Update.
38885         * lib/strcasestr.c: Update.
38886         * modules/striconveha (Depends-on): Update.
38887         * lib/striconveha.c: Update.
38888         * modules/relocatable-prog-wrapper (Files): Update.
38889         * lib/relocwrapper.c: Update.
38890         * build-aux/install-reloc: Update.
38891         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
38892
38893 2007-06-08  Bruno Haible  <bruno@clisp.org>
38894
38895         Port to uClibc.
38896         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
38897         * lib/fpurge.c (fpurge): Likewise.
38898         * lib/freading.c (freading): Likewise.
38899         * lib/fseeko.c (rpl_fseeko): Likewise.
38900         * lib/fseterr.c (fseterr): Likewise.
38901         * lib/fwriting.c (fwriting): Likewise.
38902         * tests/test-fflush.c (main): Avoid a failure on uClibc.
38903
38904 2007-06-08  Bruno Haible  <bruno@clisp.org>
38905
38906         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
38907         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
38908         * modules/gettext (Files): Add m4/intlmacosx.m4.
38909
38910 2007-06-07  Bruno Haible  <bruno@clisp.org>
38911
38912         * modules/localename-tests: New file.
38913         * tests/test-localename.c: New file.
38914
38915         New module 'localename'.
38916         * lib/localename.h: New file.
38917         * lib/localename.c: New file, from GNU gettext.
38918         * m4/localename.m4: New file.
38919         * modules/localename: New file.
38920
38921 2007-06-07  Bruno Haible  <bruno@clisp.org>
38922
38923         Work around the lack of <wchar.h> on some builds of uClibc.
38924         * doc/headers/wchar.texi: Update.
38925         * lib/wchar_.h: Include <wchar.h> only if it exists.
38926         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
38927         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
38928         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
38929         doesn't exist.
38930         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
38931         * modules/mbfile (Depends-on): Add wchar.
38932         * modules/mbiter (Depends-on): Likewise.
38933         * modules/mbuiter (Depends-on): Likewise.
38934         Reported by Simon Josefsson.
38935
38936 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
38937
38938         Work around problem reported by Steven M. Schweda in
38939         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
38940         Tru64 5.1B with the Compaq compiler environment installed declares
38941         an 'isblank' function but does not define it in the C library.
38942         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
38943         * lib/regex_internal.h (isblank): Likewise.
38944         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
38945         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38946
38947 2007-06-05  Bruno Haible  <bruno@clisp.org>
38948
38949         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
38950         ia64.
38951         * modules/printf-safe: New file.
38952         * modules/fprintf-posix (Depends-on): Add printf-safe.
38953         * modules/printf-posix (Depends-on): Likewise.
38954         * modules/snprintf-posix (Depends-on): Likewise.
38955         * modules/sprintf-posix (Depends-on): Likewise.
38956         * modules/vasnprintf-posix (Depends-on): Likewise.
38957         * modules/vasprintf-posix (Depends-on): Likewise.
38958         * modules/vfprintf-posix (Depends-on): Likewise.
38959         * modules/vprintf-posix (Depends-on): Likewise.
38960         * modules/vsnprintf-posix (Depends-on): Likewise.
38961         * modules/vsprintf-posix (Depends-on): Likewise.
38962         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
38963         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
38964         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
38965         "no" on i386, x86_64, ia64.
38966         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
38967         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38968         on i386, x86_64, ia64.
38969         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
38970         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38971         on i386, x86_64, ia64.
38972         * tests/test-vasnprintf-posix.c: Include float.h.
38973         (LDBL80_WORDS): New macro.
38974         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38975         on i386, x86_64, ia64.
38976         * tests/test-vasprintf-posix.c: Include float.h.
38977         (LDBL80_WORDS): New macro.
38978         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38979         on i386, x86_64, ia64.
38980         * tests/test-snprintf-posix.c: Include float.h.
38981         * tests/test-sprintf-posix.c: Likewise.
38982         * tests/test-vsnprintf-posix.c: Likewise.
38983         * tests/test-vsprintf-posix.c: Likewise.
38984
38985 2007-06-05  Bruno Haible  <bruno@clisp.org>
38986
38987         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
38988         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
38989         non-IEEE numbers on i386, x86_64, ia64.
38990         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
38991         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
38992         * tests/test-isnanl.h: Include float.h.
38993         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
38994
38995 2007-06-05  Bruno Haible  <bruno@clisp.org>
38996
38997         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
38998         also the %a / %A. Handle the %a / %A code before this extra handling.
38999
39000 2007-06-05  Bruno Haible  <bruno@clisp.org>
39001
39002         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
39003         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
39004
39005 2007-06-05  Bruno Haible  <bruno@clisp.org>
39006
39007         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
39008         typo in variable name.
39009
39010 2007-06-05  Eric Blake  <ebb9@byu.net>
39011
39012         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
39013         Reported by Simon Josefsson.
39014
39015 2007-06-04  Bruno Haible  <bruno@clisp.org>
39016
39017         Avoid test failures on some PowerPC platforms.
39018         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
39019         Define differently for PowerPC.
39020         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
39021         Reported by Gary V. Vaughan <gary@gnu.org>.
39022
39023 2007-06-02  Bruno Haible  <bruno@clisp.org>
39024
39025         Fix test-stdint failure on FreeBSD/ia64.
39026         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
39027         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
39028         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
39029         * doc/headers/stdint.texi: Update.
39030
39031 2007-06-01  Bruno Haible  <bruno@clisp.org>
39032
39033         * tests/test-binary-io.c (main): Pass a third argument to open().
39034         Reported by Gary V. Vaughan <gary@gnu.org>.
39035
39036 2007-06-01  Bruno Haible  <bruno@clisp.org>
39037
39038         * doc/functions/frexpl.texi: Update for mingw.
39039
39040 2007-06-01  Bruno Haible  <bruno@clisp.org>
39041
39042         * tests/test-lseek.c (main): Disable test of errno for invalid third
39043         argument.
39044         * doc/functions/lseek.texi: Update.
39045         Reported by Gary V. Vaughan <gary@gnu.org>.
39046
39047 2007-05-28  Bruno Haible  <bruno@clisp.org>
39048
39049         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
39050
39051 2007-05-31  Eric Blake  <ebb9@byu.net>
39052
39053         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
39054         cross compiling.
39055
39056 2007-05-30  Eric Blake  <ebb9@byu.net>
39057         and Bruno Haible  <bruno@clisp.org>
39058
39059         Work around mingw test failures exposed by m4-1.4.9b.
39060         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
39061         * tests/test-unistd.c: Disable uid_t and git_t tests for the
39062         moment.
39063
39064 2007-05-30  Bruno Haible  <bruno@clisp.org>
39065
39066         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
39067         assuming that they are closed. Needed on HP-UX 11.
39068
39069 2007-05-29  Bruno Haible  <bruno@clisp.org>
39070
39071         Fix a problem with #include_next.
39072         * lib/dirent_.h: Split the double-inclusion guard.
39073         * lib/fcntl_.h: Likewise.
39074         * lib/float_.h: Likewise.
39075         * lib/iconv_.h: Likewise.
39076         * lib/inttypes_.h: Likewise.
39077         * lib/locale_.h: Likewise.
39078         * lib/math_.h: Likewise.
39079         * lib/netinet_in_.h: Likewise.
39080         * lib/search_.h: Likewise.
39081         * lib/signal_.h: Likewise.
39082         * lib/stdint_.h: Likewise.
39083         * lib/stdio_.h: Likewise.
39084         * lib/stdlib_.h: Likewise.
39085         * lib/string_.h: Likewise.
39086         * lib/sys_select_.h: Likewise.
39087         * lib/sys_socket_.h: Likewise.
39088         * lib/sys_stat_.h: Likewise.
39089         * lib/sys_time_.h: Likewise.
39090         * lib/sysexits_.h: Likewise.
39091         * lib/time_.h: Likewise.
39092         * lib/unistd_.h: Likewise.
39093         * lib/wchar_.h: Likewise.
39094         * lib/wctype_.h: Likewise.
39095
39096 2007-05-29  Bruno Haible  <bruno@clisp.org>
39097
39098         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
39099         for the moment.
39100
39101 2007-05-29  Bruno Haible  <bruno@clisp.org>
39102
39103         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
39104         invocation.
39105         Reported by Eric Blake.
39106
39107 2007-05-29  Bruno Haible  <bruno@clisp.org>
39108
39109         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
39110         compiling case.
39111
39112 2007-05-29  Eric Blake  <ebb9@byu.net>
39113             Bruno Haible  <bruno@clisp.org>
39114
39115         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
39116         cross compiles.
39117
39118 2007-05-28  Eric Blake  <ebb9@byu.net>
39119
39120         * modules/closein-tests (test_closein_LDADD): Support test on
39121         cygwin with libtool.
39122
39123 2007-05-28  Bruno Haible  <bruno@clisp.org>
39124
39125         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
39126         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39127         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39128         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39129         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39130         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39131         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39132         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39133         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39134
39135 2007-05-28  Eric Blake  <ebb9@byu.net>
39136
39137         Unconditionally include <config.h> in unit tests.
39138         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
39139         * tests/test-allocsa.c, tests/test-arcfour.c,
39140         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
39141         tests/test-array_list.c, tests/test-array_oset.c,
39142         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
39143         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
39144         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
39145         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
39146         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
39147         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
39148         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
39149         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
39150         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
39151         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
39152         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
39153         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
39154         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
39155         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
39156         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
39157         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
39158         test-md5.c, test-memmem.c, test-printf-posix.c,
39159         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
39160         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
39161         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
39162         test-strcasestr.c, test-striconv.c, test-striconveh.c,
39163         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
39164         test-vasnprintf-posix2.c, test-vasnprintf.c,
39165         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
39166         test-vfprintf-posix.c, test-vprintf-posix.c,
39167         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
39168         test-xvasprintf.c: Likewise.
39169
39170 2007-05-28  Bruno Haible  <bruno@clisp.org>
39171
39172         * gnulib-tool (func_import): Remember the --with-tests command-line
39173         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
39174         Reported by Eric Blake.
39175
39176 2007-05-28  Bruno Haible  <bruno@clisp.org>
39177
39178         * modules/ftell-tests: New file.
39179         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
39180         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
39181
39182         * lib/ftell.c: New file.
39183         * modules/ftell: New file.
39184         * m4/ftell.m4: New file.
39185         * doc/functions/ftell.texi: Update.
39186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
39187         REPLACE_FTELL.
39188         * lib/stdio_.h (rpl_ftell): New declaration.
39189         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
39190         REPLACE_FTELL.
39191
39192 2007-05-28  Eric Blake  <ebb9@byu.net>
39193
39194         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
39195
39196 2007-05-28  Bruno Haible  <bruno@clisp.org>
39197
39198         * modules/fseek-tests: New file.
39199         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
39200         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
39201
39202         * lib/fseek.c: New file.
39203         * modules/fseek: New file.
39204         * m4/fseek.m4: New file.
39205         * doc/functions/fseek.texi: Update.
39206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
39207         REPLACE_FSEEK.
39208         * lib/stdio_.h (rpl_fseek): New declaration.
39209         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
39210         REPLACE_FSEEK.
39211
39212 2007-05-28  Bruno Haible  <bruno@clisp.org>
39213
39214         * lib/stdio_.h (fflush): More comments.
39215
39216 2007-05-28  Bruno Haible  <bruno@clisp.org>
39217
39218         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
39219         runtime test.
39220
39221 2007-05-28  Eric Blake  <ebb9@byu.net>
39222
39223         Improve lseek module.
39224         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
39225         * lib/unistd_.h (lseek): Scale back link warning message.
39226         * tests/test-lseek.c: Beef up test.
39227         * tests/test-lseek.sh: Exercise more facets of lseek.
39228         Reported by Bruno Haible.
39229
39230 2007-05-28  Bruno Haible  <bruno@clisp.org>
39231
39232         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
39233         to define.
39234
39235 2007-05-27  Bruno Haible  <bruno@clisp.org>
39236
39237         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
39238
39239 2007-05-27  Bruno Haible  <bruno@clisp.org>
39240
39241         * modules/openmp: New file.
39242         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
39243         Noah Misch.
39244
39245 2007-05-26  Bruno Haible  <bruno@clisp.org>
39246
39247         * modules/chdir-long (Depends-on): Add fchdir.
39248         * modules/chdir-safer (Depends-on): Likewise.
39249         * modules/fts (Depends-on): Likewise.
39250         * modules/fts-lgpl (Depends-on): Likewise.
39251         * modules/openat (Depends-on): Likewise.
39252         * modules/savewd (Depends-on): Likewise.
39253
39254 2007-05-24  Eric Blake  <ebb9@byu.net>
39255
39256         Fix lseek on mingw.
39257         * modules/lseek: New module.
39258         * m4/lseek.m4: New file.
39259         * lib/lseek.c: New file.
39260         * modules/lseek-tests: New file.
39261         * tests/test-lseek.c: New file.
39262         * tests/test-lseek.sh: New file.
39263         * MODULES.html.sh: Document lseek module.
39264         * modules/fflush (Depends-on): Add lseek, fseeko.
39265         * modules/fseeko (Depends-on): Likewise.
39266         * modules/ftello (Depends-on): Likewise.
39267         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
39268         broken.
39269         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
39270         broken.
39271         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
39272         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
39273         * lib/ftello.c (rpl_ftello): Likewise.
39274         * tests/test-fseeko.c (main): Test this.
39275         * tests/test-fseeko.sh: Likewise.
39276         * tests/test-ftello.c (main): Likewise.
39277         * tests/test-ftello.sh: Likewise.
39278         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
39279         implies replacing fseek.
39280         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
39281         HAVE_FTELLO.
39282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
39283         * modules/unistd (Makefile.am): Likewise.
39284         * lib/unistd_.h (lseek): Declare a replacement.
39285         * doc/functions/lseek.texi (lseek): Document this fix.
39286         * doc/functions/fseek.texi (fseek): Likewise.
39287         * doc/functions/ftell.texi (ftell): Likewise.
39288
39289 2007-05-24  Bruno Haible  <bruno@clisp.org>
39290
39291         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
39292         in the printed representation of a NaN.
39293         * tests/test-vasprintf-posix.c (test_function): Likewise.
39294         * tests/test-snprintf-posix.h (test_function): Likewise.
39295         * tests/test-sprintf-posix.h (test_function): Likewise.
39296         Reported by Eric Blake.
39297
39298 2007-05-23  Eric Blake  <ebb9@byu.net>
39299
39300         Fix fseeko/ftello on cygwin 1.5.24.
39301         * doc/functions/fseeko.texi (fseeko): Document the fix.
39302         * doc/functions/ftello.texi (ftello): Document the fix.
39303         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
39304         * doc/functions/stdout.text (stdout): New file.
39305         * doc/functions/stderr.text (stderr): New file.
39306         * doc/gnulib.texi (Function Substitutes): Use new files.
39307         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
39308         prior to 1.7.0.
39309         * tests/test-ftello.c (main): Likewise for ftello.
39310         * tests/test-fseeko.sh: New file.
39311         * tests/test-ftello.sh: New file.
39312         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
39313         with seekable stdin.
39314         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
39315         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
39316         (gl_REPLACE_FSEEKO): New macro.
39317         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
39318         * modules/fseeko (Files): Distribute fseeko.c.
39319         * modules/ftello (Files): Distribute ftello.c.
39320         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
39321         mode.
39322         * lib/ftello.c (rpl_ftello): New file.
39323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
39324         fseeko, ftello.
39325         (gl_STDIN_LARGE_OFFSET): New macro.
39326         * modules/stdio (Makefile.am): Perform the replacement.
39327         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
39328
39329 2007-05-23  Bruno Haible  <bruno@clisp.org>
39330
39331         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
39332         GNULIB_POSIXCHECK is defined.
39333
39334 2007-05-21  Bruno Haible  <bruno@clisp.org>
39335
39336         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
39337         Check also the output for NaN arguments. When cross-compiling, guess
39338         no on IRIX.
39339         * lib/vasnprintf.c: Update comments.
39340         * tests/test-vasnprintf-posix.c (strisnan): New function.
39341         (test_function): Use it.
39342         * tests/test-vasprintf-posix.c (strisnan): New function.
39343         (test_function): Use it.
39344         * tests/test-snprintf-posix.h (strisnan): New function.
39345         (test_function): Use it.
39346         * tests/test-sprintf-posix.h (strisnan): New function.
39347         (test_function): Use it.
39348         Reported by Eric Blake.
39349
39350 2007-05-20  Bruno Haible  <bruno@clisp.org>
39351
39352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
39353         numbers that fails on BeOS.
39354         * doc/functions/frexpl.texi: Update.
39355
39356 2007-05-20  Jim Meyering  <jim@meyering.net>
39357
39358         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
39359         forced upon us by glibc-2.6.
39360
39361 2007-05-20  Bruno Haible  <bruno@clisp.org>
39362
39363         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
39364         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
39365         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
39366         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
39367         NEED_PRINTF_INFINITE.
39368         (is_infinitel): New function.
39369         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
39370         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
39371         gl_PREREQ_VASNPRINTF_INFINITE.
39372         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
39373         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39374         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
39375         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
39376         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
39377         gl_PREREQ_VASNPRINTF_INFINITE.
39378         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39379         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39380         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39381         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39382         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39383         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39384         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39385         * doc/functions/fprintf.texi: Update.
39386         * doc/functions/printf.texi: Update.
39387         * doc/functions/snprintf.texi: Update.
39388         * doc/functions/sprintf.texi: Update.
39389         * doc/functions/vfprintf.texi: Update.
39390         * doc/functions/vprintf.texi: Update.
39391         * doc/functions/vsnprintf.texi: Update.
39392         * doc/functions/vsprintf.texi: Update.
39393
39394 2007-05-20  Bruno Haible  <bruno@clisp.org>
39395
39396         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
39397         was not found in libc.
39398         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
39399
39400 2007-05-20  Bruno Haible  <bruno@clisp.org>
39401
39402         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39403         printed as "-nan" instead of "nan".
39404         * tests/test-vasprintf-posix.c (test_function): Likewise.
39405         * tests/test-snprintf-posix.h (test_function): Likewise.
39406         * tests/test-sprintf-posix.h (test_function): Likewise.
39407         Needed for HP-UX 11.
39408
39409 2007-05-20  Jim Meyering  <jim@meyering.net>
39410
39411         Fix buggy test for the fchownat-deref bug.
39412         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
39413         symlink required for the run-test.  Without it, this test would
39414         always declare that fchownat doesn't work, and client code would
39415         unnecessarily use the replacement function with fixed libc.
39416         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
39417         Reported by Greg Schafer.
39418
39419 2007-05-19  Bruno Haible  <bruno@clisp.org>
39420
39421         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
39422         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
39423         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
39424         Needed for IRIX 6.5 and Solaris 2.5.1.
39425
39426 2007-05-19  Bruno Haible  <bruno@clisp.org>
39427
39428         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
39429         (test_function): Skip tests involving -0.0 on platforms where
39430         -0.0 = 0.0.
39431         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
39432         (test_function): Skip tests involving -0.0 on platforms where
39433         -0.0 = 0.0.
39434         * tests/test-snprintf-posix.h (have_minus_zero): New function.
39435         (test_function): Skip tests involving -0.0 on platforms where
39436         -0.0 = 0.0.
39437         * tests/test-sprintf-posix.h (have_minus_zero): New function.
39438         (test_function): Skip tests involving -0.0 on platforms where
39439         -0.0 = 0.0.
39440         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
39441         tests.
39442         * tests/test-printf-posix.h (test_function): Likewise.
39443         * tests/test-printf-posix.output: Remove all -0.0 related results.
39444         Needed for IRIX 6.5.
39445
39446 2007-05-19  Bruno Haible  <bruno@clisp.org>
39447
39448         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39449         printed as "nan0x7fffffff" instead of "nan".
39450         * tests/test-vasprintf-posix.c (test_function): Likewise.
39451         * tests/test-snprintf-posix.h (test_function): Likewise.
39452         * tests/test-sprintf-posix.h (test_function): Likewise.
39453         * tests/test-fprintf-posix.h (NaN): Remove macro.
39454         (test_function): Remove all NaN related tests.
39455         * tests/test-printf-posix.h (NaN): Remove macro.
39456         (test_function): Remove all NaN related tests.
39457         * tests/test-printf-posix.output: Remove all NaN related results.
39458         Needed for IRIX 6.5.
39459
39460 2007-05-19  Bruno Haible  <bruno@clisp.org>
39461
39462         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
39463         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39464
39465 2007-05-19  Bruno Haible  <bruno@clisp.org>
39466
39467         * lib/float_.h: New file.
39468         * m4/float_h.m4: New file.
39469         * modules/float: New file.
39470         * modules/isnanl (Dependencies): Add float.
39471         * modules/isnanl-nolibm (Dependencies): Likewise.
39472         * modules/mathl (Dependencies): Likewise.
39473         * modules/printf-frexpl (Dependencies): Likewise.
39474         * modules/signbit (Dependencies): Likewise.
39475         * modules/vasnprintf (Dependencies): Likewise.
39476         * doc/headers/float.texi: Update.
39477
39478 2007-05-19  Jim Meyering  <jim@meyering.net>
39479
39480         * lib/utimens.c (gl_futimens): Rename from futimens,
39481         now that glibc-2.6 declares futimens.
39482         * lib/utimens.h: Likewise.
39483
39484 2007-05-19  Bruno Haible  <bruno@clisp.org>
39485
39486         Avoid test failures on mingw.
39487         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
39488         * tests/test-printf-posix.sh: Likewise.
39489         * tests/test-vfprintf-posix.sh: Likewise.
39490         * tests/test-vprintf-posix.sh: Likewise.
39491
39492 2007-05-19  Bruno Haible  <bruno@clisp.org>
39493
39494         Fix *printf result for NaN, Inf, -0.0 on mingw.
39495         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
39496         * lib/vasnprintf.c: Include math.h and isnan.h.
39497         (is_infinite_or_zero): New function.
39498         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
39499         values in the %f, %F, %e, %E, %g, %G directives.
39500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
39501         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39502         gl_PRINTF_INFINITE and test its result. Invoke
39503         gl_PREREQ_VASNPRINTF_INFINITE.
39504         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39505         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39506         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39507         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39508         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39509         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39510         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39511         * doc/functions/fprintf.texi: Update.
39512         * doc/functions/printf.texi: Update.
39513         * doc/functions/snprintf.texi: Update.
39514         * doc/functions/sprintf.texi: Update.
39515         * doc/functions/vfprintf.texi: Update.
39516         * doc/functions/vprintf.texi: Update.
39517         * doc/functions/vsnprintf.texi: Update.
39518         * doc/functions/vsprintf.texi: Update.
39519
39520 2007-05-19  Bruno Haible  <bruno@clisp.org>
39521
39522         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
39523         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
39524         Instead of multiplying with 10^k, set extra_zeroes to k.
39525         (scale10_round_long_double): Remove function.
39526
39527 2007-05-18  Bruno Haible  <bruno@clisp.org>
39528
39529         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
39530         introduced on 2007-05-06.
39531
39532 2007-05-18  Bruno Haible  <bruno@clisp.org>
39533
39534         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
39535         %g directives.
39536         * tests/test-vasprintf-posix.c (test_function): Likewise.
39537         * tests/test-snprintf-posix.h (test_function): Likewise.
39538         * tests/test-sprintf-posix.h (test_function): Likewise.
39539
39540 2007-05-18  Bruno Haible  <bruno@clisp.org>
39541
39542         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
39543         (strmatch): New function.
39544         (test_function): Test the %f directive on numbers of various exponents.
39545         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
39546         (strmatch): New function.
39547         (test_function): Test the %f directive on numbers of various exponents.
39548         * tests/test-snprintf-posix.h (strmatch): New function.
39549         (test_function): Test the %f directive on numbers of various exponents.
39550         * tests/test-sprintf-posix.h (strmatch): New function.
39551         (test_function): Test the %f directive on numbers of various exponents.
39552         * tests/test-snprintf-posix.c (SIZEOF): New macro.
39553         * tests/test-sprintf-posix.c (SIZEOF): New macro.
39554         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
39555         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
39556
39557 2007-05-18  Bruno Haible  <bruno@clisp.org>
39558
39559         Add support for 'long double' number output.
39560         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
39561         * lib/vasnprintf.c: Include math.h and float+.h.
39562         (mp_limb_t): New type.
39563         (GMP_LIMB_BITS): New macro.
39564         (mp_twolimb_t): New type.
39565         (GMP_TWOLIMB_BITS): New macro.
39566         (mpn_t): New type.
39567         (multiply, divide, convert_to_decimal, decode_long_double,
39568         scale10_round_long_double, scale10_round_decimal_long_double,
39569         floorlog10l): New functions.
39570         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
39571         for the %f, %F, %e, %E, %g, %G directives.
39572         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
39573         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39574         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
39575         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
39576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39577         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39579         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39583         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
39584         * modules/snprintf-posix (Depends-on): Likewise.
39585         * modules/sprintf-posix (Depends-on): Likewise.
39586         * modules/vasnprintf-posix (Depends-on): Likewise.
39587         * modules/vasprintf-posix (Depends-on): Likewise.
39588         * modules/vfprintf-posix (Depends-on): Likewise.
39589         * modules/vsnprintf-posix (Depends-on): Likewise.
39590         * modules/vsprintf-posix (Depends-on): Likewise.
39591         * modules/vasnprintf (Files): Add lib/float+.h.
39592         * doc/functions/fprintf.texi: Update.
39593         * doc/functions/printf.texi: Update.
39594         * doc/functions/snprintf.texi: Update.
39595         * doc/functions/sprintf.texi: Update.
39596         * doc/functions/vfprintf.texi: Update.
39597         * doc/functions/vprintf.texi: Update.
39598         * doc/functions/vsnprintf.texi: Update.
39599         * doc/functions/vsprintf.texi: Update.
39600
39601 2007-05-18  Bruno Haible  <bruno@clisp.org>
39602
39603         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39604
39605 2007-05-18  Bruno Haible  <bruno@clisp.org>
39606
39607         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39608         for printing 64-bit integers. Needed for mingw.
39609
39610 2007-05-18  Bruno Haible  <bruno@clisp.org>
39611
39612         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39613         gl_FUNC_FREXPL_WORKS.
39614         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39615
39616 2007-05-18  Bruno Haible  <bruno@clisp.org>
39617
39618         * modules/frexpl-nolibm-tests: New file.
39619
39620         * modules/frexpl-nolibm: New file.
39621         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39622
39623 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39624
39625         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39626         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39627         GCC 4.2, which otherwise issues a lot of warnings.
39628         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39629         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39630         Likewise.
39631         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39632         * modules/iconv_open (iconv.h): Likewise.
39633         * modules/locale (locale.h): Likewise.
39634         * modules/netinet_in (netinet/in.h): Likewise.
39635         * modules/sys_select (sys_select.h): Likewise.
39636         * modules/sys_socket (sys/socket.h): Likewise.
39637         * modules/sys_stat (sys/stat.h): Likewise.
39638         * modules/sysexits (sysexits.h): Likewise.
39639         * modules/unistd (unistd.h): Likewise.
39640
39641 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39642
39643         * modules/closein-tests (Makefile.am): Distribute
39644         `test-closein.sh'.
39645
39646 2007-05-17  Bruno Haible  <bruno@clisp.org>
39647
39648         * tests/test-printf-posix.output: Renamed from
39649         tests/test-fprintf-posix.out.
39650         * modules/fprintf-posix-tests: Update.
39651         * modules/printf-posix-tests: Update.
39652         * modules/vfprintf-posix-tests: Update.
39653         * modules/vprintf-posix-tests: Update.
39654         * tests/test-fprintf-posix.sh: Update.
39655         * tests/test-printf-posix.sh: Update.
39656         * tests/test-vfprintf-posix.sh: Update.
39657         * tests/test-vprintf-posix.sh: Update.
39658         Reported by Ralf Wildenhues.
39659
39660 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39661
39662         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
39663         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39664         GCC 4.2, which otherwise issues a lot of warnings.
39665         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39666         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39667         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39668         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39669         it should no longer be needed.
39670         * lib/string_.h: Likewise.
39671         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39672         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39673         * modules/inttypes (inttypes.h): Likewise.
39674         * modules/math (math.h): Likewise.
39675         * modules/search (search.h): Likewise.
39676         * modules/signal (signal.h): Likewise.
39677         * modules/stdint (stdint.h): Likewise.
39678         * modules/stdio (stdio.h): Likewise.
39679         * modules/stdlib (stdlib.h): Likewise.
39680         * modules/string (string.h): Likewise.
39681         * modules/sys_time (sys/time.h): Likewise.
39682         * modules/time (time.h): Likewise.
39683         * modules/wchar (wchar.h): Likewise.
39684         * modules/wctype (wtype.h): Likewise.
39685
39686 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39687
39688         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39689
39690 2007-05-13  Bruno Haible  <bruno@clisp.org>
39691
39692         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39693         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39694         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39695         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39696         (gl_PREREQ_STRTOK_R): Don't require it here.
39697
39698 2007-05-13  Bruno Haible  <bruno@clisp.org>
39699
39700         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39701         when used in C++ mode.
39702
39703 2007-05-12  Bruno Haible  <bruno@clisp.org>
39704
39705         * lib/linebuffer.h: Tweak doc.
39706         * lib/linebuffer.c: Likewise.
39707
39708 2007-05-12  James Youngman  <jay@gnu.org>
39709
39710         * lib/linebuffer.c (readlinebuffer_delim): New function,
39711         like readlinebuffer, but use a caller-specified delimiter.
39712         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39713         as the delimiter.
39714         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39715
39716 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39717
39718         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39719         * modules/openat (Files): Remove openat-die.c.
39720         (Depends-on): Add openat-die.
39721         * modules/openat-die: New module.
39722
39723 2007-05-06  Bruno Haible  <bruno@clisp.org>
39724
39725         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39726         Update with info about Cygwin.
39727         * doc/functions/fprintf.texi: Update.
39728         * doc/functions/printf.texi: Update.
39729         * doc/functions/snprintf.texi: Update.
39730         * doc/functions/sprintf.texi: Update.
39731         * doc/functions/vfprintf.texi: Update.
39732         * doc/functions/vprintf.texi: Update.
39733         * doc/functions/vsnprintf.texi: Update.
39734         * doc/functions/vsprintf.texi: Update.
39735         Reported by Eric Blake.
39736
39737 2007-05-06  Bruno Haible  <bruno@clisp.org>
39738
39739         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39740         padding ourselves for the floating-point directives.
39741         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39742         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39743         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39744         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39745         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39746         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39747         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39749         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39750         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39753         * tests/test-snprintf-posix.h (test_function): Also check the width
39754         and some flags in the %f directive.
39755         * tests/test-sprintf-posix.h (test_function): Likewise.
39756         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39757         * tests/test-vasprintf-posix.c (test_function): Likewise.
39758         * doc/functions/fprintf.texi: Update.
39759         * doc/functions/printf.texi: Update.
39760         * doc/functions/snprintf.texi: Update.
39761         * doc/functions/sprintf.texi: Update.
39762         * doc/functions/vfprintf.texi: Update.
39763         * doc/functions/vprintf.texi: Update.
39764         * doc/functions/vsnprintf.texi: Update.
39765         * doc/functions/vsprintf.texi: Update.
39766
39767 2007-05-06  Bruno Haible  <bruno@clisp.org>
39768
39769         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39770         pass the ' flag character to sprintf or snprintf.
39771         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39773         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39774         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39775         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39776         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39777         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39782         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39783         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39784         flag.
39785         * tests/test-sprintf-posix.h (test_function): Likewise.
39786         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39787         * tests/test-vasprintf-posix.c (test_function): Likewise.
39788         * doc/functions/fprintf.texi: Update.
39789         * doc/functions/printf.texi: Update.
39790         * doc/functions/snprintf.texi: Update.
39791         * doc/functions/sprintf.texi: Update.
39792         * doc/functions/vfprintf.texi: Update.
39793         * doc/functions/vprintf.texi: Update.
39794         * doc/functions/vsnprintf.texi: Update.
39795         * doc/functions/vsprintf.texi: Update.
39796
39797 2007-05-01  Bruno Haible  <bruno@clisp.org>
39798
39799         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39800
39801 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39802
39803         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39804         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39805
39806 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39807
39808         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39809         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39811
39812 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39813
39814         * lib/argp-help.c (struct hol_entry): New member `ord'.
39815         (HOL_ENTRY_PTRCMP): Use ord for comparison
39816         (hol_sort): Initialize ord.
39817
39818 2007-05-01  Bruno Haible  <bruno@clisp.org>
39819
39820         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39821         Reported by Eric Blake.
39822         * doc/gnulib.texi (Function Substitutes): Update.
39823
39824 2007-05-01  Bruno Haible  <bruno@clisp.org>
39825
39826         * doc/functions.texi: Remove file, now redundant through
39827         doc/functions/*.texi.
39828
39829 2007-05-01  Bruno Haible  <bruno@clisp.org>
39830
39831         * modules/argp (Depends-on): Add sleep.
39832
39833 2007-05-01  Bruno Haible  <bruno@clisp.org>
39834
39835         * modules/sleep-tests: New file.
39836         * tests/test-sleep.c: New file.
39837
39838         * modules/sleep: New file.
39839         * lib/sleep.c: New file.
39840         * m4/sleep.m4: New file.
39841         * lib/unistd_.h (sleep): New declaration.
39842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
39843         HAVE_SLEEP.
39844         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
39845         * doc/functions/sleep.texi: Document the sleep module.
39846
39847 2007-05-01  Bruno Haible  <bruno@clisp.org>
39848
39849         * lib/sigprocmask.h: Remove file.
39850         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
39851         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
39852         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
39853         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
39854         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
39855         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
39856         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
39857         HAVE_SIGSET_T as a shell variable.
39858         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
39859         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
39860         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
39861         (Depends-on): Add signal. Remove verify.
39862         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
39863         (Include): Mention <signal.h> instead of sigprocmask.h.
39864         * NEWS: Mention the change.
39865         * lib/fatal-signal.c: Don't include sigprocmask.h.
39866
39867 2007-05-01  Bruno Haible  <bruno@clisp.org>
39868
39869         * modules/signal: New file.
39870         * lib/signal_.h: New file.
39871         * m4/signal_h.m4: New file.
39872
39873 2007-05-01  Bruno Haible  <bruno@clisp.org>
39874
39875         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
39876         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
39877         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
39878         HAVE_WCTYPE_CTMP_BUG into wctype.h.
39879
39880 2007-05-01  Bruno Haible  <bruno@clisp.org>
39881
39882         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
39883         configure time.
39884         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
39885         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
39886         * modules/sys_stat (Makefile.am): Substitute their values into
39887         sys/stat.h.
39888
39889 2007-05-01  Bruno Haible  <bruno@clisp.org>
39890
39891         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
39892         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
39893         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
39894
39895 2007-05-01  Bruno Haible  <bruno@clisp.org>
39896
39897         * doc/header/assert.texi: Undo last change: don't mention the gnulib
39898         'assert' module here.
39899
39900 2007-05-01  Bruno Haible  <bruno@clisp.org>
39901
39902         * doc/functions/*.texi: New files.
39903         * doc/functions/google-ranking.txt: New file.
39904         * doc/gnulib.texi (Function Substitutes): New chapter.
39905         (ctime, inet_ntoa): Remove sections.
39906         * doc/ctime.texi: Remove file.
39907         * doc/inet_ntoa.texi: Remove file.
39908         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
39909         dependencies.
39910         (%.info): New rule, specifying a --reference-limit.
39911
39912 2007-05-01  Bruno Haible  <bruno@clisp.org>
39913
39914         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
39915
39916 2007-05-01  Bruno Haible  <bruno@clisp.org>
39917
39918         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
39919         the portability of 'mkdir' to mingw systems.
39920
39921 2007-05-01  Bruno Haible  <bruno@clisp.org>
39922
39923         * doc/headers/google-ranking.txt: New file.
39924
39925 2007-04-30  Eric Blake  <ebb9@byu.net>
39926
39927         Prefer fseeko to fseek.
39928         * modules/getpass (Depends-on): Add fseeko.
39929         * lib/getpass.c (getpass): Use fseeko, not fseek.
39930
39931 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
39932
39933         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
39934         assumes the sorting is stable, while most qsort implementations
39935         are not.  Use argument addresses to ensure they never compare as
39936         equal.
39937
39938         * tests/test-argp-2.sh (usage-indent test): Fix output
39939         (func_compare): Restore diff options
39940         * tests/test-argp.c: Restore #include "progname.h"
39941
39942 2007-04-29  Bruno Haible  <bruno@clisp.org>
39943
39944         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
39945         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39946         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
39947         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39948         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
39949         (configure.ac): Define CHECK_SNPRINTF_POSIX.
39950         (TESTS, check_PROGRAMS): Add test-snprintf.
39951         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
39952         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
39953         (TESTS, check_PROGRAMS): Add test-vsnprintf.
39954         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
39955         assertions that fail on HP-UX, OSF/1, or IRIX.
39956         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
39957
39958 2007-04-29  Bruno Haible  <bruno@clisp.org>
39959
39960         * MODULES.html.sh (posix_functions): Remove 'contents'.
39961
39962 2007-04-29  Karl Berry  <karl@gnu.org>
39963
39964         * config/srclist.txt (gendocs_template_min): new entry.
39965
39966 2007-04-29  Bruno Haible  <bruno@clisp.org>
39967
39968         Work around fpurge bug on BSD systems.
39969         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
39970         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
39971         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
39972         fpurge to rpl_fpurge if the system already has this function.
39973         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
39974         the case where the system already has this function. Correct invariants
39975         on BSD systems.
39976         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
39977         BSD systems.
39978
39979 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39980
39981         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
39982         proposed by Sven Verdoolaege.
39983
39984         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
39985         options.
39986         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
39987         (usage and help tests): Update
39988
39989 2007-04-29  Bruno Haible  <bruno@clisp.org>
39990
39991         * tests/test-fflush.c (main): Use a file of size 17, not 10.
39992         Print more information in case of failure. Disable a test on BeOS.
39993
39994 2007-04-29  Bruno Haible  <bruno@clisp.org>
39995
39996         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
39997         This helps debugging on systems on which no gdb is available.
39998
39999 2007-04-29  Bruno Haible  <bruno@clisp.org>
40000
40001         * lib/freading.h: Improve comments.
40002         * lib/fwriting.h: Likewise.
40003         * tests/test-freading.c (main): Don't check freading immediately after
40004         repositioning. Needed for glibc.
40005
40006 2007-04-29  Bruno Haible  <bruno@clisp.org>
40007
40008         * lib/freading.c (freading): Trivial simplification.
40009
40010 2007-04-28  Bruno Haible  <bruno@clisp.org>
40011
40012         * tests/test-fwriting.c (main): Also test the interaction between
40013         fflush and fwriting.
40014         * modules/fwriting-tests (Depends-on): Add fflush.
40015
40016         * tests/test-freading.c (main): Also test the interaction between
40017         fflush and freading.
40018         * modules/freading-tests (Depends-on): Add fflush.
40019
40020 2007-04-28  Bruno Haible  <bruno@clisp.org>
40021
40022         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
40023         fseeko and ftello.
40024         Suggested by Eric Blake.
40025
40026 2007-04-28  Jim Meyering  <jim@meyering.net>
40027
40028         Avoid false-negative in gl_STDINT_H's C99 conformance test.
40029         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
40030         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
40031
40032 2007-04-27  Eric Blake  <ebb9@byu.net>
40033
40034         * doc/headers/assert.texi (assert.h): Document assert module use.
40035
40036 2007-04-27  Bruno Haible  <bruno@clisp.org>
40037
40038         * doc/headers/*.texi: New files.
40039         * doc/gnulib.texi (Header File Substitutes): New chapter.
40040         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
40041         dependencies.
40042         (standards.info ,standards.html, standards.dvi): Update dependencies.
40043         (mostlyclean, clean): New targets.
40044
40045 2007-04-27  Bruno Haible  <bruno@clisp.org>
40046
40047         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
40048         * modules/sysexits (Files, Makefile.am): Update.
40049
40050         * lib/sys_socket_.h: Renamed from lib/socket_.h.
40051         * modules/sys_socket (Files, Makefile.am): Update.
40052
40053         * lib/sys_stat_.h: Renamed from lib/stat_.h.
40054         * modules/sys_stat (Files, Makefile.am): Update.
40055
40056 2007-04-27  Eric Blake  <ebb9@byu.net>
40057
40058         * lib/freading.h: Improve comments.
40059         * lib/fwriting.h: Likewise.
40060         * lib/fflush.c: Likewise.
40061
40062         Fix closein for mingw.
40063         * modules/closein-tests: Add tests for closein.
40064         * tests/test-closein.c: New file.
40065         * tests/test-closein.sh: Likewise.
40066         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
40067         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
40068
40069 2007-04-27  Bruno Haible  <bruno@clisp.org>
40070
40071         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
40072         version is < 6.
40073         * lib/math_.h [__DECC]: Likewise.
40074         * lib/stdio_.h [__DECC]: Likewise.
40075         * lib/stdlib_.h [__DECC]: Likewise.
40076         * lib/string_.h [__DECC]: Likewise.
40077         * lib/time_.h [__DECC]: Likewise.
40078         * lib/wchar_.h [__DECC]: Likewise.
40079         * lib/wctype_.h [__DECC]: Likewise.
40080
40081 2007-04-27  Bruno Haible  <bruno@clisp.org>
40082
40083         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
40084
40085 2007-04-27  Bruno Haible  <bruno@clisp.org>
40086
40087         * lib/fflush.c: Add comments.
40088         * modules/fpurge-tests (Depends-on): Add fflush.
40089         * modules/freadable-tests (Depends-on): Likewise.
40090         * modules/fwritable-tests (Depends-on): Likewise.
40091
40092 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
40093
40094         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
40095         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
40096         Report by Bruno Haible <bruno@clisp.org>.
40097
40098 2007-04-26  Eric Blake  <ebb9@byu.net>
40099
40100         Fix fflush on mingw.
40101         * modules/fflush (Depends-on): Add freading.
40102         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
40103         but unread data.
40104
40105 2007-04-26  Eric Blake  <ebb9@byu.net>
40106         and Bruno Haible  <bruno@clisp.org>
40107
40108         Implement freading and fwriting.
40109         * lib/freading.c: New file.
40110         * lib/freading.h: Likewise.
40111         * m4/freading.m4: Likewise.
40112         * modules/freading: Likewise.
40113         * modules/freading-tests: Likewise.
40114         * tests/test-freading.c: Likewise.
40115         * lib/fwriting.c: New file.
40116         * lib/fwriting.h: Likewise.
40117         * m4/fwriting.m4: Likewise.
40118         * modules/fwriting: Likewise.
40119         * modules/fwriting-tests: Likewise.
40120         * tests/test-fwriting.c: Likewise.
40121         * MODULES.html.sh (File stream based Input/Output): Mention them.
40122
40123 2007-04-26  Bruno Haible  <bruno@clisp.org>
40124
40125         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
40126         'long' when we assume it.
40127         Suggested by Eric Blake.
40128
40129 2007-04-26  Bruno Haible  <bruno@clisp.org>
40130
40131         Ensure fseeko, ftello are declared on glibc systems.
40132         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
40133         * modules/fseeko (configure.ac-early): Likewise.
40134         * modules/ftello (configure.ac-early): Likewise.
40135         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
40136         AC_FUNC_FSEEKO for this.
40137         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
40138         (gl_CHECK_FSEEKO): Remove macro.
40139
40140 2007-04-26  Bruno Haible  <bruno@clisp.org>
40141
40142         * tests/test-fflush.c (main): Also check the ftell result after
40143         fflush and fseek/fseeko.
40144         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
40145         file descriptor position cache in the stream.
40146         * lib/fseeko.c (rpl_fseeko): Likewise.
40147
40148 2007-04-26  Bruno Haible  <bruno@clisp.org>
40149
40150         * modules/fflush-tests (Depends-on): Add fseeko.
40151
40152 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
40153             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40154
40155         * lib/argz_.h: ensure error_t definition is obtained in same
40156         mechanism system argz.h would have.
40157         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
40158         argz facilities are known bad.  Err on the side of caution if
40159         cross-compiling.
40160
40161 2007-04-25  Eric Blake  <ebb9@byu.net>
40162
40163         * lib/fpurge.c (includes): Use stdlib.h for free.
40164         * tests/test-fflush.c (main): Also test fflush-fseeko.
40165
40166 2007-04-25  Bruno Haible  <bruno@clisp.org>
40167
40168         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
40169         * lib/fseeko.c: New file.
40170         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
40171         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
40172         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
40173         gl_FUNC_FSEEKO.
40174         (gl_FUNC_FSEEKO): Invoke it.
40175         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
40176         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
40177         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
40178
40179 2007-04-25  Bruno Haible  <bruno@clisp.org>
40180
40181         * modules/fflush (Depends-on): Add ftello.
40182
40183 2007-04-25  Bruno Haible  <bruno@clisp.org>
40184
40185         * modules/ftello-tests: New file.
40186         * tests/test-ftello.c: New file.
40187
40188         * modules/ftello: New file.
40189         * m4/ftello.m4: New file.
40190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
40191         HAVE_FTELLO.
40192         * lib/stdio_.h (ftello): New declaration.
40193         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
40194         HAVE_FTELLO.
40195
40196 2007-04-25  Bruno Haible  <bruno@clisp.org>
40197
40198         * modules/fseeko-tests: New file.
40199         * tests/test-fseeko.c: New file.
40200
40201         * modules/fseeko: New file.
40202         * m4/fseeko.m4: New file.
40203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
40204         HAVE_FSEEKO.
40205         * lib/stdio_.h (fseeko): New declaration.
40206         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
40207         HAVE_FSEEKO.
40208
40209 2007-04-25  Bruno Haible  <bruno@clisp.org>
40210
40211         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
40212
40213 2007-04-25  Bruno Haible  <bruno@clisp.org>
40214
40215         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
40216         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
40217         * tests/test-unistd.c: Likewise.
40218         * tests/test-fcntl.c: Likewise.
40219
40220 2007-04-23  Eric Blake  <ebb9@byu.net>
40221
40222         * lib/fflush.c: Fix missing include.
40223         Reported by Bruno Haible.
40224
40225 2007-04-23  Bruno Haible  <bruno@clisp.org>
40226
40227         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
40228         Reported by Eric Blake.
40229
40230 2007-04-23  Bruno Haible  <bruno@clisp.org>
40231
40232         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
40233
40234 2007-04-23  Bruno Haible  <bruno@clisp.org>
40235
40236         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
40237
40238 2007-04-23  Bruno Haible  <bruno@clisp.org>
40239
40240         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
40241         Needed on HP-UX 11.
40242
40243 2007-04-16  Eric Blake  <ebb9@byu.net>
40244
40245         Make fflush rely on fpurge.
40246         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
40247         open coding all variants.
40248         * modules/fflush (Depends-on): Add fpurge and unistd.
40249         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
40250         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
40251
40252         Fix --with-tests compilation on cygwin.
40253         * modules/argmatch-tests (Makefile.am): List gnulib library first
40254         in LDADD.
40255         * modules/argp-tests (Makefile.am): Likewise.
40256         * modules/array-list-tests (Makefile.am): Likewise.
40257         * modules/array-oset-tests (Makefile.am): Likewise.
40258         * modules/avltree-list-tests (Makefile.am): Likewise.
40259         * modules/avltree-oset-tests (Makefile.am): Likewise.
40260         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40261         * modules/carray-list-tests (Makefile.am): Likewise.
40262         * modules/dirname-tests (Makefile.am): Likewise.
40263         * modules/frexp-tests (Makefile.am): Likewise.
40264         * modules/isnanl-tests (Makefile.am): Likewise.
40265         * modules/linked-list-tests (Makefile.am): Likewise.
40266         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40267         * modules/lock-tests (Makefile.am): Likewise.
40268         * modules/rbtree-list-tests (Makefile.am): Likewise.
40269         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40270         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40271         * modules/tls-tests (Makefile.am): Likewise.
40272         * modules/tsearch-tests (Makefile.am): Likewise.
40273         * modules/xvasprintf-tests (Makefile.am): Likewise.
40274
40275         Fix fpurge for cygwin.
40276         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
40277         value.
40278         * modules/fpurge-tests (Depends-on): Clean up trash.
40279
40280 2007-04-16  Simon Josefsson  <simon@josefsson.org>
40281
40282         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
40283
40284         * m4/autobuild.m4: Re-indent.
40285
40286 2007-04-13  Bruno Haible  <bruno@clisp.org>
40287
40288         * modules/fpurge-tests: New file.
40289         * tests/test-fpurge.c: New file.
40290
40291         * modules/fpurge: New file.
40292         * lib/fpurge.h: New file.
40293         * lib/fpurge.c: New file.
40294         * m4/fpurge.m4: New file.
40295
40296 2007-04-13  Bruno Haible  <bruno@clisp.org>
40297
40298         * modules/fbufmode-tests: New file.
40299         * tests/test-fbufmode.c: New file.
40300
40301         * modules/fbufmode: New file.
40302         * lib/fbufmode.h: New file.
40303         * lib/fbufmode.c: New file.
40304         * m4/fbufmode.m4: New file.
40305
40306 2007-04-13  Bruno Haible  <bruno@clisp.org>
40307
40308         * modules/fwritable-tests: New file.
40309         * tests/test-fwritable.c: New file.
40310
40311         * modules/fwritable: New file.
40312         * lib/fwritable.h: New file.
40313         * lib/fwritable.c: New file.
40314         * m4/fwritable.m4: New file.
40315
40316 2007-04-13  Bruno Haible  <bruno@clisp.org>
40317
40318         * modules/freadable-tests: New file.
40319         * tests/test-freadable.c: New file.
40320
40321         * modules/freadable: New file.
40322         * lib/freadable.h: New file.
40323         * lib/freadable.c: New file.
40324         * m4/freadable.m4: New file.
40325
40326 2007-04-13  Bruno Haible  <bruno@clisp.org>
40327
40328         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
40329         MOSTLYCLEANFILES.
40330
40331 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40332
40333         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
40334         gzip bootstrap.conf to avoid dragging in i18n machinery.
40335         (gnulib_tool_option): Use it.
40336
40337 2007-04-13  Bruno Haible  <bruno@clisp.org>
40338
40339         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
40340         %F directives.
40341         * tests/test-vasprintf-posix.c (test_function): Likewise.
40342         * tests/test-snprintf-posix.h (test_function): Likewise.
40343         * tests/test-sprintf-posix.h (test_function): Likewise.
40344         * tests/test-fprintf-posix.h (test_function): Likewise.
40345         * tests/test-printf-posix.h (test_function): Likewise.
40346         * tests/test-fprintf-posix.out: Likewise.
40347
40348 2007-04-13  Bruno Haible  <bruno@clisp.org>
40349
40350         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
40351         * modules/tls-tests (configure.ac): Likewise.
40352         Reported by Arto C. Nirkko <anirkko@insel.ch>.
40353
40354 2007-04-13  Bruno Haible  <bruno@clisp.org>
40355
40356         * lib/tls.c (glthread_tls_get): Fix return type.
40357         Patch by Arto C. Nirkko <anirkko@insel.ch>.
40358
40359 2007-04-12  Eric Blake  <ebb9@byu.net>
40360
40361         * modules/gettime (Depends-on): Remove gettime.
40362         Reported by Dmitry V. Levin.
40363
40364 2007-04-12  Bruno Haible  <bruno@clisp.org>
40365
40366         * modules/fflush (Include): Mention <stdio.h>.
40367         * modules/strtoimax (Include): Mention <inttypes.h>.
40368         * modules/strtoumax (Include): Likewise.
40369
40370 2007-04-12  Eric Blake  <ebb9@byu.net>
40371
40372         * .cvsignore: New file.
40373         * .gitignore: Likewise.
40374
40375 2007-04-12  Bruno Haible  <bruno@clisp.org>
40376
40377         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
40378         not before, since $(LDADD) often contains libgnu.a.
40379         * modules/striconv-tests (test_striconv_LDADD): Likewise.
40380         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
40381         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
40382         Needed on Cygwin.
40383
40384 2007-04-12  Eric Blake  <ebb9@byu.net>
40385
40386         Work around glibc's failure to flush stdin on fclose.
40387         * lib/closein.c (close_stdin): Flush stdin before closing.
40388
40389         Work around glibc's failure to reset seekable stdin on exit.
40390         * modules/closein: New module.
40391         * lib/closein.c: New file.
40392         * lib/closein.h: Likewise.
40393         * m4/closein.m4: Likewise.
40394         * MODULES.html.sh (File stream based Input/Output): Document it.
40395
40396 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40397
40398         * gnulib-tool: Rename generated 'autobuild' script to
40399         'do-autobuild' in --create-megatestdir output.
40400
40401         * doc/gnulib.texi (Build robot for gnulib): Fix.
40402
40403 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40404
40405         * modules/sysexits (Depends-on): Add absolute-header.
40406
40407 2007-04-12  Eric Blake  <ebb9@byu.net>
40408
40409         No need to preserve errno on success.
40410         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
40411         Reported by Bruno Haible.
40412
40413 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40414
40415         * MODULES.html.sh (Support for maintaining and releasing
40416         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
40417
40418 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40419
40420         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
40421
40422 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40423
40424         * modules/autobuild: New module.
40425
40426         * m4/autobuild.m4: New file.
40427
40428 2007-04-11  Bruno Haible  <bruno@clisp.org>
40429
40430         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
40431         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
40432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
40433         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
40434         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40435         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40436         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40437         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40438         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40439         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40440         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
40441         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40442         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40443         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
40444         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40445         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
40447         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40448         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40449         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
40450         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40451         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40452         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
40453         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40454         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
40456         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40457         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40458         Reported by Eric Blake.
40459
40460 2007-04-11  Bruno Haible  <bruno@clisp.org>
40461
40462         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
40463
40464 2007-04-10  Bruno Haible  <bruno@clisp.org>
40465
40466         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
40467         for NaN and Infinity. Needed on FreeBSD 6.1.
40468         * tests/test-vasnprintf-posix.c (test_function): Undo last change
40469         regarding results for "%010a" of Infinity and NaN.
40470         * tests/test-vasprintf-posix.c (test_function): Likewise.
40471         * tests/test-snprintf-posix.h (test_function): Likewise.
40472         * tests/test-sprintf-posix.h (test_function): Likewise.
40473         * tests/test-fprintf-posix.h (test_function): Likewise.
40474         * tests/test-printf-posix.h (test_function): Likewise.
40475         * tests/test-fprintf-posix.out: Likewise.
40476
40477 2007-04-10  Bruno Haible  <bruno@clisp.org>
40478
40479         * modules/locale-tests: New file.
40480         * tests/test-locale.c: New file.
40481
40482         * modules/locale: New file.
40483         * lib/locale_.h: New file.
40484         * m4/locale_h.m4: New file.
40485
40486 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
40487             Bruno Haible  <bruno@clisp.org>
40488
40489         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
40490         be determined, test for availability of the copysignf, copysign,
40491         copysignl functions.
40492         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
40493         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
40494         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
40495
40496 2007-04-09  Eric Blake  <ebb9@byu.net>
40497
40498         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
40499         * modules/stdio (Makefile.am): Support fflush.
40500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40501         * modules/fflush: New file.
40502         * lib/fflush.c: Likewise.
40503         * m4/fflush.m4: Likewise.
40504         * modules/fflush-tests: New test.
40505         * tests/test-fflush.c: Likewise.
40506         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
40507
40508 2007-04-06  Bruno Haible  <bruno@clisp.org>
40509
40510         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
40511         (VASNPRINTF): Use signbit for faster determination whether to print a
40512         minus sign.
40513         * modules/vasnprintf (Files): Remove lib/float+.h.
40514         * modules/fprintf-posix (Depends-on): Add signbit.
40515         * modules/snprintf-posix (Depends-on): Likewise.
40516         * modules/sprintf-posix (Depends-on): Likewise.
40517         * modules/vasnprintf-posix (Depends-on): Likewise.
40518         * modules/vasprintf-posix (Depends-on): Likewise.
40519         * modules/vfprintf-posix (Depends-on): Likewise.
40520         * modules/vsnprintf-posix (Depends-on): Likewise.
40521         * modules/vsprintf-posix (Depends-on): Likewise.
40522
40523 2007-04-06  Bruno Haible  <bruno@clisp.org>
40524
40525         * tests/test-frexp.c (main): Test also the sign bit of zero results.
40526         * tests/test-frexpl.c (main): Likewise.
40527         * tests/test-ldexpl.c (main): Likewise.
40528         * modules/frexp-tests (Depends-on): Add signbit.
40529         * modules/frexpl-tests (Depdends-on): Likewise.
40530         * modules/ldexpl-tests (Depdends-on): Likewise.
40531
40532 2007-04-06  Bruno Haible  <bruno@clisp.org>
40533
40534         * modules/signbit-tests: New file.
40535         * tests/test-signbit.c: New file.
40536
40537         * modules/signbit: New file.
40538         * lib/signbitf.c: New file.
40539         * lib/signbitd.c: New file.
40540         * lib/signbitl.c: New file.
40541         * m4/signbit.m4: New file.
40542         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
40543         (signbit): New macro.
40544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
40545         REPLACE_SIGNBIT.
40546         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
40547         REPLACE_FREXPL into math.h.
40548
40549 2007-04-06  Bruno Haible  <bruno@clisp.org>
40550
40551         * modules/isnanf-nolibm-tests: New file.
40552         * tests/test-isnanf.c: New file.
40553
40554         * modules/isnanf-nolibm: New file.
40555         * lib/isnanf.h: New file.
40556         * lib/isnanf.c: New file.
40557         * lib/isnan.c: Consider the USE_FLOAT macro.
40558         * m4/isnanf.m4: New file.
40559
40560 2007-04-06  Bruno Haible  <bruno@clisp.org>
40561
40562         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
40563         (Link): New section.
40564
40565         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
40566
40567 2007-04-06  Bruno Haible  <bruno@clisp.org>
40568
40569         Assume the 'long double' type.
40570         * m4/longdouble.m4: Remove file.
40571         * config/srclist.txt: Don't mention longdouble.m4.
40572         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
40573         * lib/float+.h: Likewise.
40574         * lib/frexp.c: Likewise.
40575         * lib/printf-args.h: Likewise.
40576         * lib/printf-args.c: Likewise.
40577         * lib/printf-frexp.c: Likewise.
40578         * lib/printf-parse.c: Likewise.
40579         * lib/vasnprintf.c: Likewise.
40580         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
40581         * m4/intl.m4: Likewise.
40582         * m4/isnanl.m4: Likewise.
40583         * m4/printf.m4: Likewise.
40584         * m4/printf-frexpl.m4: Likewise.
40585         * m4/vasnprintf.m4: Likewise.
40586         * modules/allocsa (Files): Remove m4/longdouble.m4.
40587         * modules/gettext (Files): Likewise.
40588         * modules/relocatable-prog-wrapper (Files): Likewise.
40589         * modules/vasnprintf (Files): Likewise.
40590         * modules/isnanl (Files): Likewise.
40591         (Include): Simplify.
40592         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40593         (Include): Simplify.
40594         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40595         (Include): Simplify.
40596         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40597         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40598         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40599         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40600         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40601         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40602         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40603         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40604         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40605         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40606         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40607         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40608         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40609         * tests/test-isnanl.c: Likewise.
40610         * tests/test-snprintf-posix.h: Likewise.
40611         * tests/test-sprintf-posix.h: Likewise.
40612         * tests/test-vasnprintf-posix.c: Likewise.
40613         * tests/test-vasnprintf-posix2.c: Likewise.
40614         * tests/test-vasprintf-posix.c: Likewise.
40615
40616 2007-04-06  Bruno Haible  <bruno@clisp.org>
40617
40618         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40619         * lib/math_.h [__DECC]: Include the overridden include file through
40620         #include_next, outside the double-inclusion guard.
40621         * lib/stdio_.h [__DECC]: Likewise.
40622         * lib/stdlib_.h [__DECC]: Likewise.
40623         * lib/string_.h [__DECC]: Likewise.
40624         * lib/time_.h [__DECC]: Likewise.
40625         * lib/wchar_.h [__DECC]: Likewise.
40626         * lib/wctype_.h [__DECC]: Likewise.
40627         * lib/inttypes_.h [__DECC]: Likewise.
40628         Reported by Albert Chin <china@thewrittenword.com> in
40629         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40630
40631 2007-04-04  Eric Blake  <ebb9@byu.net>
40632
40633         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40634         1.5.x.
40635
40636 2007-04-04  Bruno Haible  <bruno@clisp.org>
40637
40638         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40639         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40640
40641 2007-04-04  Bruno Haible  <bruno@clisp.org>
40642
40643         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40644         results for "%010a" of Infinity and NaN.
40645         * tests/test-vasprintf-posix.c (test_function): Likewise.
40646         * tests/test-snprintf-posix.h (test_function): Likewise.
40647         * tests/test-sprintf-posix.h (test_function): Likewise.
40648         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40649         * tests/test-printf-posix.h (test_function): Likewise.
40650         * tests/test-fprintf-posix.out: Update.
40651         Needed for FreeBSD 6.1.
40652
40653 2007-04-04  Bruno Haible  <bruno@clisp.org>
40654
40655         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40656         directly used by the gnulib modules nor by gnulib-tool.
40657
40658 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40659
40660         * DEPENDENCIES: Give overall description of version dependency
40661         desirability.  Use more-typical names for apps.
40662         Add shell, coreutils, diffutils, grep, tar, gzip.
40663
40664 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40665
40666         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40667
40668 2007-04-04  Karl Berry  <karl@gnu.org>
40669
40670         * MODULES.html.sh (func_module): missing '.
40671
40672 2007-04-03  Bruno Haible  <bruno@clisp.org>
40673
40674         * modules/argmatch-tests (Makefile.am): New variable
40675         test_argmatch_LDADD.
40676         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40677         * modules/array-list-tests (Makefile.am): New variable
40678         test_array_list_LDADD.
40679         * modules/array-oset-tests (Makefile.am): New variable
40680         test_array_oset_LDADD.
40681         * modules/avltree-list-tests (Makefile.am): New variable
40682         test_avltree_list_LDADD.
40683         * modules/avltree-oset-tests (Makefile.am): New variable
40684         test_avltree_oset_LDADD.
40685         * modules/avltreehash-list-tests (Makefile.am): New variable
40686         test_avltreehash_list_LDADD.
40687         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40688         test_canonicalize_lgpl_LDADD.
40689         * modules/carray-list-tests (Makefile.am): New variable
40690         test_carray_list_LDADD.
40691         * modules/dirname-tests (Makefile.am): New variable
40692         test_dirname_LDADD.
40693         * modules/linked-list-tests (Makefile.am): New variable
40694         test_linked_list_LDADD.
40695         * modules/linkedhash-list-tests (Makefile.am): New variable
40696         test_linkedhash_list_LDADD.
40697         * modules/rbtree-list-tests (Makefile.am): New variable
40698         test_rbtree_list_LDADD.
40699         * modules/rbtree-oset-tests (Makefile.am): New variable
40700         test_rbtree_oset_LDADD.
40701         * modules/rbtreehash-list-tests (Makefile.am): New variable
40702         test_rbtreehash_list_LDADD.
40703         * modules/xvasprintf-tests (Makefile.am): New variable
40704         test_xvasprintf_LDADD.
40705         Reported by Eric Blake.
40706
40707 2007-04-03  Eric Blake  <ebb9@byu.net>
40708
40709         * DEPENDENCIES: Weaken m4 requirements.
40710
40711 2007-04-03  Bruno Haible  <bruno@clisp.org>
40712
40713         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40714         * modules/isnanl-tests (configure.ac): Likewise.
40715
40716 2007-04-03  Ben Pfaff  <blp@gnu.org>
40717
40718         * modules/iconv_open: Add $(srcdir)/ to source directory
40719         references in Makefile fragments that call gperf, to fix VPATH
40720         builds.
40721
40722 2007-04-03  Bruno Haible  <bruno@clisp.org>
40723
40724         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40725         * lib/ldexpl.c: Undo last change.
40726
40727 2007-04-03  Bruno Haible  <bruno@clisp.org>
40728
40729         * modules/printf-frexpl (Depends-on): Undo last change.
40730         (Files): Add m4/ldexpl.m4.
40731
40732 2007-04-03  Bruno Haible  <bruno@clisp.org>
40733
40734         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40735         * modules/isnanl (Link): New section.
40736
40737         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40738         * modules/frexp (Link): New section.
40739
40740         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40741         * modules/frexpl (Link): New section.
40742
40743         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40744         * modules/ldexpl (Link): New section.
40745
40746 2007-04-03  Bruno Haible  <bruno@clisp.org>
40747
40748         * modules/TEMPLATE-EXTENDED: New file.
40749         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40750
40751 2007-04-03  Bruno Haible  <bruno@clisp.org>
40752
40753         * DEPENDENCIES: New file.
40754         Suggested by Simon Josefsson.
40755
40756 2007-04-03  Bruno Haible  <bruno@clisp.org>
40757
40758         * doc/gnulib.texi: Escape @.
40759
40760 2007-04-03  James Youngman  <jay@gnu.org>
40761         and Paul Eggert  <eggert@cs.ucla.edu>
40762
40763         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40764         birthtime on all systems that have birthtime, not just those which
40765         use st_birthtimensec rather than st_birthtim.  Putting zero in
40766         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40767         that the birth time is not available for files on an NFS mount.
40768
40769 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40770
40771         * modules/memxor: Move back from crypto/, suggested by Bruno.
40772         * modules/crypto/hmac-sha1: Fix memxor dependency.
40773
40774         * modules/crypto/gc: Moved from ../.
40775
40776 2007-04-02  Eric Blake  <ebb9@byu.net>
40777
40778         * lib/ldexpl.c (includes): Avoid libm.
40779
40780         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40781
40782 2007-04-02  Bruno Haible  <bruno@clisp.org>
40783
40784         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40785         on IRIX.
40786
40787 2007-04-02  Bruno Haible  <bruno@clisp.org>
40788
40789         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40790         x86 or x86_64 platforms running MacOS X.
40791         Reported by Ryan Schmidt <@ryandesign.com>.
40792
40793 2007-04-02  Bruno Haible  <bruno@clisp.org>
40794
40795         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40796         i386.
40797
40798 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40799
40800         * modules/crypto/arcfour: Moved from ../.
40801         * modules/crypto/arcfour-tests: Moved from ../.
40802         * modules/crypto/arctwo: Moved from ../.
40803         * modules/crypto/arctwo-tests: Moved from ../.
40804         * modules/crypto/des: Moved from ../.
40805         * modules/crypto/des-tests: Moved from ../.
40806         * modules/crypto/gc-arcfour: Moved from ../.
40807         * modules/crypto/gc-arcfour-tests: Moved from ../.
40808         * modules/crypto/gc-arctwo: Moved from ../.
40809         * modules/crypto/gc-arctwo-tests: Moved from ../.
40810         * modules/crypto/gc-des: Moved from ../.
40811         * modules/crypto/gc-des-tests: Moved from ../.
40812         * modules/crypto/gc-hmac-md5: Moved from ../.
40813         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40814         * modules/crypto/gc-hmac-sha1: Moved from ../.
40815         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40816         * modules/crypto/gc-md2: Moved from ../.
40817         * modules/crypto/gc-md2-tests: Moved from ../.
40818         * modules/crypto/gc-md4: Moved from ../.
40819         * modules/crypto/gc-md4-tests: Moved from ../.
40820         * modules/crypto/gc-md5: Moved from ../.
40821         * modules/crypto/gc-md5-tests: Moved from ../.
40822         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40823         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40824         * modules/crypto/gc-random: Moved from ../.
40825         * modules/crypto/gc-rijndael: Moved from ../.
40826         * modules/crypto/gc-rijndael-tests: Moved from ../.
40827         * modules/crypto/gc-sha1: Moved from ../.
40828         * modules/crypto/gc-sha1-tests: Moved from ../.
40829         * modules/crypto/gc-tests: Moved from ../.
40830         * modules/crypto/hmac-md5: Moved from ../.
40831         * modules/crypto/hmac-md5-tests: Moved from ../.
40832         * modules/crypto/hmac-sha1: Moved from ../.
40833         * modules/crypto/hmac-sha1-tests: Moved from ../.
40834         * modules/crypto/md2: Moved from ../.
40835         * modules/crypto/md2-tests: Moved from ../.
40836         * modules/crypto/md4: Moved from ../.
40837         * modules/crypto/md4-tests: Moved from ../.
40838         * modules/crypto/md5: Moved from ../.
40839         * modules/crypto/md5-tests: Moved from ../.
40840         * modules/crypto/memxor: Moved from ../.
40841         * modules/crypto/rijndael: Moved from ../.
40842         * modules/crypto/rijndael-tests: Moved from ../.
40843         * modules/crypto/sha1: Moved from ../.
40844
40845 2007-03-30  James Youngman  <jay@gnu.org>
40846
40847         * tests/test-stat-time.c (prepare_test): use chmod() rather than
40848         rename() to change the ctime of a file (because ctime is unaffected
40849         by rename on jfs2 on AIX 5.1).
40850         (main): Start by doing cleanup, in case a previous run failed leaving
40851         test files behind.
40852
40853 2007-03-31  Bruno Haible  <bruno@clisp.org>
40854
40855         Support old proprietary implementations of iconv.
40856         * modules/iconv_open: New file.
40857         * lib/iconv_.h: New file.
40858         * m4/iconv_h.m4: New file.
40859         * lib/iconv_open.c: New file.
40860         * lib/iconv_open-aix.gperf: New file.
40861         * lib/iconv_open-hpux.gperf: New file.
40862         * lib/iconv_open-irix.gperf: New file.
40863         * lib/iconv_open-osf.gperf: New file.
40864         * m4/iconv_open.m4: New file.
40865         * modules/linebreak (Depends-on): Add iconv_open.
40866         * modules/striconv (Depends-on): Likewise.
40867         * modules/striconveh (Depends-on): Likewise.
40868         * modules/unicodeio (Depends-on): Likewise.
40869         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
40870         (iconv_t)(-1).
40871         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
40872         conversion if cd is (iconv_t)(-1).
40873         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
40874         is not possible.
40875
40876 2007-03-31  Bruno Haible  <bruno@clisp.org>
40877
40878         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40879         work on Solaris either. Protect also second use of "autodetect_jp".
40880
40881 2007-03-31  Bruno Haible  <bruno@clisp.org>
40882
40883         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
40884         the function is not present.
40885
40886 2007-03-31  Bruno Haible  <bruno@clisp.org>
40887
40888         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
40889         the function is not present.
40890
40891 2007-03-31  Bruno Haible  <bruno@clisp.org>
40892
40893         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
40894         a bug in HP-UX iconv_open().
40895
40896 2007-03-31  Bruno Haible  <bruno@clisp.org>
40897
40898         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
40899         (Mathematics <math.h>): New section, add fpieee.
40900         (Input/output <stdio.h>): Add fseterr.
40901         (Mathematics <math.h>): New section, add printf-frexp.
40902         (Container data structures): Add sublist.
40903         (Core language properties): Add fpucw, inline.
40904         (Functions for greatest-width integer types <inttypes.h>): Add
40905         imaxabs, imaxdiv, inttypes.
40906         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
40907         isnanl-nolibm, ldexp.
40908         (Mathematics <math.h>): New section, add printf-frexpl.
40909         (Support for systems lacking POSIX:2001): Add fprintf-posix,
40910         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
40911         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
40912         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
40913         (Unicode string functions): Add unistr/u*-mbtoucr.
40914         (Java): Add javacomp-script, javaexec-script.
40915         (C#): Add csharpcomp-script, csharpexec-script.
40916         (Support for building libraries and executables): Add havelib,
40917         relocatable-*.
40918         (Support for maintaining and releasing projects): Renamed from
40919         'Support for maintaining and release projects'. Add announce-gen.
40920
40921 2007-03-31  Bruno Haible  <bruno@clisp.org>
40922
40923         * README: Talk primarily about git.
40924         (git and CVS): Renamed from CVS.
40925         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
40926         gnulib is available through git.
40927         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
40928
40929 2007-03-30  Bruno Haible  <bruno@clisp.org>
40930
40931         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
40932         * lib/poll_.h: Likewise.
40933         * lib/stat_.h: Likewise.
40934         * lib/sys_time_.h: Likewise.
40935         * lib/sysexit_.h: Likewise.
40936         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
40937         * lib/stdbool_.h: Likewise.
40938         * lib/byteswap_.h: Add double-inclusion guard.
40939
40940 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
40941
40942         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
40943
40944 2007-03-30  Karl Berry  <karl@gnu.org>
40945
40946         * config/srclist-update: double space after USA in the license
40947         substitution, since that's how it's usually (?) written.
40948
40949 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40950
40951         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
40952         reported by Bruno Haible.
40953
40954 2007-03-29  Bruno Haible  <bruno@clisp.org>
40955
40956         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
40957         a bug in AIX iconv().
40958
40959 2007-03-29  Bruno Haible  <bruno@clisp.org>
40960
40961         * modules/ldexpl-tests: New file.
40962         * tests/test-ldexpl.c: New file.
40963
40964 2007-03-29  Bruno Haible  <bruno@clisp.org>
40965
40966         * lib/ldexpl.c: Include fpucw.h.
40967         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
40968         multiplication.
40969         * modules/ldexpl (Depends-on): Add fpucw.
40970
40971 2007-03-29  Bruno Haible  <bruno@clisp.org>
40972
40973         * modules/ldexpl: New file.
40974         * m4/ldexpl.m4: New file.
40975         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
40976         set.
40977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
40978         REPLACE_LDEXPL.
40979         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
40980         REPLACE_LDEXPL.
40981         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40982         gl_FUNC_LDEXPL_WORKS.
40983         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
40984         * modules/mathl (Files): Remove lib/ldexpl.c.
40985         (Depends-on): Add ldexpl.
40986
40987 2007-03-29  Bruno Haible  <bruno@clisp.org>
40988
40989         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
40990
40991 2007-03-29  Bruno Haible  <bruno@clisp.org>
40992
40993         * tests/test-striconveh.c (main): Don't assume that a direct conversion
40994         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
40995         and possibly also HP-UX.
40996         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40997         work on AIX, IRIX, HP-UX, OSF/1.
40998         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
40999         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41000         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41001         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41002         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
41003         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41004
41005 2007-03-29  Bruno Haible  <bruno@clisp.org>
41006
41007         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
41008
41009 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41010
41011         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
41012         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
41013
41014 2007-03-29  Eric Blake  <ebb9@byu.net>
41015
41016         * lib/acl-internal.h: Remove redundant include.
41017         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
41018         Cygwin when a file is locked.
41019
41020 2007-03-29  Bruno Haible  <bruno@clisp.org>
41021
41022         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
41023         file.
41024         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
41025
41026 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41027
41028         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
41029         try to remove a parent directory if the child couldn't be removed
41030         (except for the first rmdir, which could fail because the child
41031         doesn't exist).  Problem reported by Jeff Blaine in
41032         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
41033
41034 2007-03-28  Bruno Haible  <bruno@clisp.org>
41035
41036         * lib/striconveh.c (utf8conv_carefully): New function.
41037         (mem_cd_iconveh_internal): Invoke it.
41038
41039 2007-03-28  Bruno Haible  <bruno@clisp.org>
41040
41041         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
41042         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
41043         input.
41044         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
41045         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
41046         unistr/u8-uctomb.
41047
41048 2007-03-28  Bruno Haible  <bruno@clisp.org>
41049
41050         * modules/unistr/u8-mbtoucr: New file.
41051         * lib/unistr/u8-mbtoucr.c: New file.
41052         * modules/unistr/u16-mbtoucr: New file.
41053         * lib/unistr/u16-mbtoucr.c: New file.
41054         * modules/unistr/u16-mbtoucr: New file.
41055         * lib/unistr/u16-mbtoucr.c: New file.
41056         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
41057
41058 2007-03-27  Simon Josefsson  <simon@josefsson.org>
41059             Bruno Haible  <bruno@clisp.org>
41060
41061         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
41062         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
41063         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
41064
41065         * m4/stdio_h.m4: Add stubs for vasprintf too.
41066
41067         * modules/stdio: Support vasprintf in sed command.
41068
41069         * modules/vasprintf: Depend on stdio for prototypes.  Remove
41070         vasprintf.h.  Add stdio module indicator.
41071
41072         * lib/stdio_.h: Declare asprintf and vasprintf, based on
41073         vasprintf.h.
41074
41075         * lib/vasprintf.h: File removed.
41076
41077         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
41078         * lib/vasprintf.c: Ditto.
41079         * lib/xvasprintf.c: Ditto.
41080         * tests/test-vasprintf-posix.c: Ditto.
41081         * tests/test-vasprintf.c: Ditto.
41082
41083 2007-03-27  Bruno Haible  <bruno@clisp.org>
41084
41085         Make vasnprintf multithread-safe.
41086         * lib/vasnprintf.c (decimal_point_char): New function.
41087         (VASNPRINTF): Use it.
41088         Suggested by Simon Josefsson.
41089
41090 2007-03-27  Eric Blake  <ebb9@byu.net>
41091
41092         Support sub-second birthtime on cygwin.
41093         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
41094         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
41095         (get_stat_birthtime): Also work with st_birthtim.
41096
41097 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
41098
41099         * lib/stat-time.h (USE_BIRTHTIME): Remove.
41100         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
41101         (get_stat_birthtime_ns): Do not try to use "spare" fields.
41102         (get_stat_birthtime_ns): Simplify compile-time tests.
41103         (get_stat_birthtime): Change the API to look like
41104         get_stat_mtime etc., except return a negative tv_nsec on error.
41105         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
41106         Don't check for "spare" fields.
41107         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
41108         or for struct stat.st_birthtime, as these tests aren't used.
41109         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
41110
41111 2007-03-27  Bruno Haible  <bruno@clisp.org>
41112
41113         * lib/stat-time.h: Include <sys/stat.h>.
41114
41115 2007-03-27  James Youngman  <jay@gnu.org>
41116
41117         * lib/stat-time.h (get_stat_birthtime): New function for
41118           retrieving st_birthtime as provided by UFS2 (hence *BSD).
41119         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
41120           and its variants.
41121         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
41122         * modules/stat-time-test: New file.
41123         * tests/test-stat-time.c: New test, devised by Bruno Haible.
41124
41125 2007-03-26  Bruno Haible  <bruno@clisp.org>
41126
41127         Better support of signalling NaNs.
41128         * lib/atanl.c: Include isnanl.h.
41129         (atanl): Perform test for NaN at the beginning of the function and
41130         through a call to isnanl.
41131         * lib/cosl.c: Include isnanl.h.
41132         (cosl): Perform test for NaN at the beginning of the function and
41133         through a call to isnanl.
41134         * lib/ldexpl.c: Include isnanl.h.
41135         (ldexpl): Perform test for NaN through a call to isnanl.
41136         * lib/logl.c: Include isnanl.h.
41137         (logl): Perform test for NaN at the beginning of the function and
41138         through a call to isnanl.
41139         * lib/sinl.c: Include isnanl.h.
41140         (sinl): Perform test for NaN at the beginning of the function and
41141         through a call to isnanl.
41142         * lib/sqrtl.c: Include isnanl.h.
41143         (sqrtl): Perform test for NaN at the beginning of the function and
41144         through a call to isnanl.
41145         * lib/tanl.c: Include isnanl.h.
41146         (tanl): Perform test for NaN at the beginning of the function and
41147         through a call to isnanl.
41148         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
41149         * modules/mathl (Depends-on): Add isnanl.
41150
41151 2007-03-26  Eric Blake  <ebb9@byu.net>
41152
41153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
41154         regression in logic sense of previous patch.
41155
41156 2007-03-26  Bruno Haible  <bruno@clisp.org>
41157
41158         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
41159         unportable shell command "if ! ...".
41160         Reported by Ralf Wildenhues.
41161
41162 2007-03-25  Bruno Haible  <bruno@clisp.org>
41163
41164         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
41165         <sysexits.h> file, and only add EX_CONFIG.
41166         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
41167         absolute file name and whether it is sufficient. Substitute also
41168         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
41169         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
41170         ABSOLUTE_SYSEXITS_H into sysexits.h.
41171
41172 2007-03-25  Bruno Haible  <bruno@clisp.org>
41173
41174         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
41175         hints is NULL.
41176
41177 2007-03-25  Bruno Haible  <bruno@clisp.org>
41178
41179         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
41180         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
41181
41182 2007-03-25  Bruno Haible  <bruno@clisp.org>
41183
41184         * lib/vasnprintf.c: Include langinfo.h.
41185         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
41186         multithread-safe.
41187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
41188         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
41189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41190         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
41195         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41196         Reported by Simon Josefsson.
41197
41198 2007-03-25  Bruno Haible  <bruno@clisp.org>
41199
41200         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
41201         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
41202         * modules/vasnprintf (Depends-on): Add stdint.
41203
41204 2007-03-25  Bruno Haible  <bruno@clisp.org>
41205
41206         * modules/fpieee: New file.
41207         * m4/fpieee.m4: New file.
41208         * modules/isnan-nolibm (Depends-on): Add fpieee.
41209         * modules/isnanl-nolibm (Depends-on): Add fpieee.
41210         * modules/isnanl (Depends-on): Add fpieee.
41211
41212 2007-03-25  Bruno Haible  <bruno@clisp.org>
41213
41214         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
41215
41216 2007-03-25  Bruno Haible  <bruno@clisp.org>
41217
41218         Avoid test failures on IRIX 6.5.
41219         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
41220         (main): Use it.
41221         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
41222         macros.
41223         (main): Use them.
41224
41225 2007-03-25  Bruno Haible  <bruno@clisp.org>
41226
41227         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
41228         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
41229         exists but doesn't work.
41230         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
41231         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
41232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
41233         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
41234
41235 2007-03-25  Bruno Haible  <bruno@clisp.org>
41236
41237         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
41238         returns inf. Needed on IRIX 6.5.
41239
41240 2007-03-25  Bruno Haible  <bruno@clisp.org>
41241
41242         * tests/test-frexpl.c: Include isnanl-nolibm.h.
41243         (main): Use isnanl instead of x != x idiom.
41244         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
41245
41246         * tests/test-frexp.c: Include isnan.h.
41247         (main): Use isnan instead of x != x idiom.
41248         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
41249
41250 2007-03-25  Bruno Haible  <bruno@clisp.org>
41251
41252         * tests/test-frexp.c (NaN): New function/macro.
41253         (main): Use it instead of 0.0 / 0.0.
41254         * tests/test-isnan.c (NaN): New function/macro.
41255         (main): Use it instead of 0.0 / 0.0.
41256         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
41257         (test_function): Use it instead of 0.0 / 0.0.
41258         * tests/test-vasprintf-posix.c (NaN): New function/macro.
41259         (test_function): Use it instead of 0.0 / 0.0.
41260         * tests/test-snprintf-posix.h (NaN): New function/macro.
41261         (test_function): Use it instead of 0.0 / 0.0.
41262         * tests/test-sprintf-posix.h (NaN): New function/macro.
41263         (test_function): Use it instead of 0.0 / 0.0.
41264         * tests/test-fprintf-posix.h (NaN): New function/macro.
41265         (test_function): Use it instead of 0.0 / 0.0.
41266         * tests/test-printf-posix.h (NaN): New function/macro.
41267         (test_function): Use it instead of 0.0 / 0.0.
41268
41269         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
41270
41271 2007-03-25  Bruno Haible  <bruno@clisp.org>
41272
41273         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
41274
41275 2007-03-25  Bruno Haible  <bruno@clisp.org>
41276
41277         * lib/regexec.c (merge_state_with_log): Make static.
41278
41279 2007-03-25  Bruno Haible  <bruno@clisp.org>
41280
41281         * lib/trigl.c (kernel_rem_pio2): Make static.
41282
41283 2007-03-25  Bruno Haible  <bruno@clisp.org>
41284
41285         * lib/sincosl.c (sincosl_table): Make static.
41286
41287 2007-03-25  Bruno Haible  <bruno@clisp.org>
41288
41289         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
41290         if the compiler does not support C99.
41291
41292 2007-03-25  Bruno Haible  <bruno@clisp.org>
41293
41294         * modules/time (Makefile.am): Ensure all rule action lines start with a
41295         tab.
41296
41297 2007-03-24  Bruno Haible  <bruno@clisp.org>
41298
41299         * modules/tsearch-tests: New file.
41300         * tests/test-tsearch.sh: New file.
41301         * tests/test-tsearch.c: New file, mostly copied from glibc.
41302
41303         * modules/search-tests: New file.
41304         * tests/test-search.c: New file.
41305
41306         * modules/search: New file.
41307         * lib/search_.h: New file, incorporating lib/tsearch.h.
41308         * m4/search_h.m4: New file.
41309         * lib/tsearch.h: Remove file.
41310         * lib/tsearch.c: Include search.h instead of tsearch.h.
41311         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
41312         HAVE_TSEARCH.
41313         * modules/tsearch (Files): Remove lib/tsearch.h.
41314         (Depends-on): Add search.
41315         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
41316         (Include): Change tsearch.h into search.h.
41317
41318 2007-03-24  Bruno Haible  <bruno@clisp.org>
41319
41320         * modules/fpucw: New file.
41321         * lib/fpucw.h: New file.
41322         * lib/frexp.c: Include fpucw.h.
41323         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41324         (FUNC): Use them.
41325         * lib/printf-frexp.c: Include fpucw.h.
41326         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41327         (FUNC): Use them.
41328         * lib/vasnprintf.c: Include fpucw.h.
41329         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
41330         'long double' calculations.
41331         * tests/test-frexpl.c: Include fpucw.h.
41332         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41333         * tests/test-printf-frexpl.c: Include fpucw.h.
41334         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41335         * modules/frexpl (Depends-on): Add fpucw.
41336         * modules/printf-frexpl (Depends-on): Likewise.
41337         * modules/fprintf-posix (Depends-on): Likewise.
41338         * modules/snprintf-posix (Depends-on): Likewise.
41339         * modules/sprintf-posix (Depends-on): Likewise.
41340         * modules/vasnprintf-posix (Depends-on): Likewise.
41341         * modules/vasprintf-posix (Depends-on): Likewise.
41342         * modules/vfprintf-posix (Depends-on): Likewise.
41343         * modules/vsnprintf-posix (Depends-on): Likewise.
41344         * modules/vsprintf-posix (Depends-on): Likewise.
41345         * modules/frexpl-tests (Depends-on): Likewise.
41346         * modules/printf-frexpl-tests (Depends-on): Likewise.
41347
41348 2007-03-24  Bruno Haible  <bruno@clisp.org>
41349
41350         * lib/float+.h: New file.
41351         * lib/isnan.c: Include float+.h.
41352         (SIZE): New macro.
41353         (FUNC): Compare only SIZE bytes of the value.
41354         * lib/vasnprintf.c: Include float+.h.
41355         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
41356         SIZEOF_LDBL or SIZEOF_DBL bytes.
41357         * modules/isnan-nolibm (Files): Add lib/float+.h.
41358         * modules/isnanl-nolibm (Files): Add lib/float+.h.
41359         * modules/isnanl (Files): Add lib/float+.h.
41360         * modules/vasnprintf (Files): Add lib/float+.h.
41361
41362 2007-03-24  Bruno Haible  <bruno@clisp.org>
41363
41364         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
41365         include isnanl-nolibm.h.
41366
41367 2007-03-24  Bruno Haible  <bruno@clisp.org>
41368
41369         * tests/test-read-file.c (main): Don't produce spurious output for
41370         expected situations. Make the test fail if it encountered unexpected
41371         results.
41372
41373 2007-03-24  Bruno Haible  <bruno@clisp.org>
41374
41375         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
41376         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
41377
41378 2007-03-24  Bruno Haible  <bruno@clisp.org>
41379
41380         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
41381
41382 2007-03-24  Bruno Haible  <bruno@clisp.org>
41383
41384         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
41385         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
41386
41387         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
41388         * modules/utf8-ucs4: Turn into a symbolic link to module
41389         unistr/u8-mbtouc.
41390
41391         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
41392         utf8-ucs4-unsafe.
41393         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
41394         unistr/u8-mbtouc-unsafe.
41395
41396         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
41397         * modules/utf16-ucs4: Turn into a symbolic link to module
41398         unistr/u16-mbtouc.
41399
41400         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
41401         utf16-ucs4-unsafe.
41402         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
41403         unistr/u16-mbtouc-unsafe.
41404
41405         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
41406         * modules/ucs4-utf8: Turn into a symbolic link to module
41407         unistr/u8-ubtomb.
41408
41409         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
41410         * modules/ucs4-utf16: Turn into a symbolic link to module
41411         unistr/u16-ubtomb.
41412
41413 2007-03-24  Bruno Haible  <bruno@clisp.org>
41414
41415         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
41416         Enable the function only if HAVE_INLINE.
41417         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
41418         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41419         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
41420         Enable the function only if HAVE_INLINE.
41421         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
41422         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41423         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
41424         Enable the function only if HAVE_INLINE.
41425         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
41426         Enable the function only if HAVE_INLINE.
41427         * modules/utf8-ucs4: Update.
41428         * modules/utf8-ucs4-unsafe: Update.
41429         * modules/utf16-ucs4: Update.
41430         * modules/utf16-ucs4-unsafe: Update.
41431         * modules/ucs4-utf8: Update.
41432         * modules/ucs4-utf16: Update.
41433
41434 2007-03-24  Bruno Haible  <bruno@clisp.org>
41435
41436         * lib/utf8-ucs4.h: Remove file.
41437         * lib/utf8-ucs4-unsafe.h: Remove file.
41438         * lib/utf16-ucs4.h: Remove file.
41439         * lib/utf16-ucs4-unsafe.h: Remove file.
41440         * lib/ucs4-utf8.h: Remove file.
41441         * lib/ucs4-utf16.h: Remove file.
41442         * lib/unistr.h: Include their previous contents.
41443         * m4/utf-ucs4.m4: Remove file.
41444         * m4/ucs4-utf.m4: Remove file.
41445         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
41446         (Depends-on): Add unistr/base.
41447         (configure.ac): Remove gl_UTF_UCS4.
41448         (Makefile.am): Update.
41449         (Include): Change to unistr.h.
41450         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.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/utf16-ucs4 (Files): Remove lib/utf16-ucs4.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-unsafe (Files): Remove lib/utf16-ucs4-unsafe.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/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
41466         (Depends-on): Add unistr/base.
41467         (configure.ac): Remove gl_UCS4_UTF.
41468         (Makefile.am): Update.
41469         (Include): Change to unistr.h.
41470         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.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         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
41476         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
41477         utf8-ucs4-unsafe.h.
41478         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
41479         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
41480         utf16-ucs4-unsafe.h.
41481         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
41482         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
41483         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
41484         * lib/unistr/u8-strchr.c: Likewise.
41485         * lib/unistr/u8-strrchr.c: Likewise.
41486         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
41487         * lib/unistr/u16-strchr.c: Likewise.
41488         * lib/unistr/u16-strrchr.c: Likewise.
41489         * lib/striconveh.c: Update.
41490         * lib/linebreak.c: Update.
41491
41492 2007-03-24  Bruno Haible  <bruno@clisp.org>
41493
41494         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
41495         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
41496
41497 2007-03-22  Bruno Haible  <bruno@clisp.org>
41498
41499         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
41500
41501 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41502
41503         * MODULES.html.sh (File system functions): New module write-any-file.
41504         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
41505         * m4/write-any-file.m4: New files.
41506
41507 2007-03-23  Eric Blake  <ebb9@byu.net>
41508
41509         * gnulib-tool: Rearrange space-tab sequences, since some editors
41510         like to eat them.
41511
41512 2007-03-23  Eric Blake  <ebb9@byu.net>
41513
41514         * lib/version-etc.c (version_etc_va): Update license wording to
41515         be more concise.  Recommended by Richard Stallman.
41516
41517 2007-03-22  Bruno Haible  <bruno@clisp.org>
41518
41519         * lib/poll.c (MSG_PEEK): New fallback definition.
41520
41521 2007-03-22  Bruno Haible  <bruno@clisp.org>
41522
41523         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
41524         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
41525         (main): Update.
41526         Fixes a compilation error on BeOS.
41527
41528 2007-03-22  Bruno Haible  <bruno@clisp.org>
41529
41530         * modules/frexpl-tests: New file.
41531         * tests/test-frexpl.c: New file.
41532
41533         * modules/frexpl: New file.
41534         * m4/frexpl.m4: New file.
41535         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
41536         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
41537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
41538         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
41539         (Depends-on): Add frexpl. Remove isnanl-nolibm.
41540         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
41541
41542 2007-03-22  Bruno Haible  <bruno@clisp.org>
41543
41544         * lib/frexpl.c: Share code with lib/frexp.c.
41545         * modules/mathl (Files): Add lib/frexp.c.
41546         (Depends-on): Add isnanl-nolibm.
41547
41548 2007-03-22  Bruno Haible  <bruno@clisp.org>
41549
41550         * modules/printf-frexp (Files): Add m4/frexp.m4.
41551         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
41552         only if the found frexp function actually works.
41553
41554 2007-03-22  Bruno Haible  <bruno@clisp.org>
41555
41556         * lib/frexp.c: Remove older implementation that uses divisions.
41557
41558 2007-03-21  Bruno Haible  <bruno@clisp.org>
41559
41560         * modules/frexp-tests: New file.
41561         * tests/test-frexp.c: New file.
41562
41563         * modules/frexp: New file.
41564         * lib/frexp.c: New file.
41565         * m4/frexp.m4: New file.
41566         * lib/math_.h (frexp): New declaration.
41567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
41568         REPLACE_FREXP.
41569         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
41570
41571 2007-03-21  Bruno Haible  <bruno@clisp.org>
41572
41573         * modules/isnanl-tests: New file.
41574         * tests/test-isnanl.c: New file.
41575
41576         * modules/isnanl: New file.
41577         * lib/isnanl.h: New file.
41578         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
41579         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
41580         gl_FUNC_ISNANL_WORKS.
41581         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
41582         New macros.
41583
41584 2007-03-21  Bruno Haible  <bruno@clisp.org>
41585
41586         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41587         lib/isnanl.h.
41588         (Include): Update.
41589         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41590         * lib/vasnprintf.c: Update.
41591         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41592         tests/test-isnanl.h, remove tests/test-isnanl.c.
41593         (Makefile.am): Update.
41594         * tests/test-isnanl-nolibm.c: New file.
41595         * tests/test-isnanl.h: New file.
41596         * tests/test-isnanl.c: Remove file.
41597
41598 2007-03-21  Jim Meyering  <jim@meyering.net>
41599
41600         When trying to open ".", treat ESTALE like EACCES.
41601         * lib/savewd.c (savewd_save): Resort to forking not just upon
41602         failure with EACCES, but also when errno is ESTALE.
41603
41604 2007-03-20  Bruno Haible  <bruno@clisp.org>
41605
41606         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41607         Needed on AIX 5.1. Reported by Matthew Woehlke.
41608
41609 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41610
41611         Suggestions by Bruno Haible:
41612         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41613         our own.
41614         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41615         * modules/acl (Depends-on): Add gettext.
41616
41617 2007-03-19  Bruno Haible  <bruno@clisp.org>
41618
41619         * modules/iconvme: Remove file.
41620         * lib/iconvme.h: Remove file.
41621         * lib/iconvme.c: Remove file.
41622         * m4/iconvme.m4: Remove file.
41623
41624 2007-03-19  Bruno Haible  <bruno@clisp.org>
41625
41626         * doc/relocatable-maint.texi: Break long shell script line.
41627         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41628
41629 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41630
41631         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41632         handle file_has_acl.
41633         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41634         * lib/acl.c: Move header inclusions and related macro defns into
41635         lib/acl-internal.h.
41636         (S_ISLNK): Remove defn, since that's now done for us.
41637         (file_has_acl): Move to lib/file-has-acl.c.
41638         Call acl_trivial if available.  This is the crucial part of the fix.
41639         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41640         shared within the library.  Rewrite a bit, partly to make it compatible
41641         with the GNU coding style.
41642         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41643         Remove unnecessary double-quotes.
41644         Don't test for acl_to_text; the build will catch that.
41645         Replace acl_entries if it doesn't exist and it is needed.
41646         Check for -lsec and acl_trivial (as used on Solaris 10).
41647         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41648         lib/file-has-acl.c.
41649         (Depends-on): Add sys_stat, for S_ISLNK.
41650
41651 2007-03-19  Ben Pfaff  <blp@gnu.org>
41652
41653         * doc/gnulib.texi: Fix typos.
41654         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41655
41656 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41657
41658         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41659         If size is zero here, buf must be zero.
41660
41661 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41662
41663         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41664         <bruno@clisp.org>.
41665
41666 2007-03-18  Bruno Haible  <bruno@clisp.org>
41667
41668         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41669         Suggested by Eric Blake.
41670
41671 2007-03-18  Ben Pfaff  <blp@gnu.org>
41672
41673         * doc/relocatable.texi: Recommend using as prefix a directory
41674         that does not exist and will never be created.  Based on
41675         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41676         and others.
41677
41678 2007-03-17  Bruno Haible  <bruno@clisp.org>
41679
41680         * lib/fchownat.c: Include lchown.h.
41681
41682 2007-03-17  Bruno Haible  <bruno@clisp.org>
41683
41684         Fix endless loop when the given allocated size was > INT_MAX.
41685         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41686         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41687         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41688         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41689         * lib/sprintf.c (sprintf): Likewise.
41690
41691 2007-03-17  Bruno Haible  <bruno@clisp.org>
41692
41693         * tests/test-argp-2.sh (func_compare): Output a context diff.
41694
41695 2007-03-17  Bruno Haible  <bruno@clisp.org>
41696
41697         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41698         locale's decimal-point character.
41699
41700 2007-03-17  Bruno Haible  <bruno@clisp.org>
41701
41702         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41703         before comparing it. Needed because on some platforms (e.g. x86) a
41704         'long double' occupies less bytes than sizeof (long double).
41705
41706 2007-03-17  Bruno Haible  <bruno@clisp.org>
41707
41708         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41709         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41710         * tests/test-getaddrinfo.c (simple): Likewise.
41711         * tests/test-read-file.c (main): Likewise.
41712
41713 2007-03-17  Bruno Haible  <bruno@clisp.org>
41714
41715         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41716
41717 2007-03-17  Bruno Haible  <bruno@clisp.org>
41718
41719         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41720         unused variable.
41721
41722 2007-03-17  Bruno Haible  <bruno@clisp.org>
41723
41724         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41725         * tests/test-c-strncasecmp.c: Likewise.
41726
41727 2007-03-17  Bruno Haible  <bruno@clisp.org>
41728
41729         * modules/stdlib (Depends-on): Add unistd.
41730         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41731         Needed for MacOS X 10.3.
41732
41733 2007-03-17  Bruno Haible  <bruno@clisp.org>
41734
41735         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41736
41737 2007-03-17  Bruno Haible  <bruno@clisp.org>
41738
41739         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41740
41741 2007-03-17  Bruno Haible  <bruno@clisp.org>
41742
41743         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41744         to reflect files copied from gnulib (with or without modifications).
41745         Suggested by Jim Meyering.
41746
41747 2007-03-17  Eric Blake  <ebb9@byu.net>
41748
41749         * NEWS: Document stdlib change from 2007-02-18.
41750
41751 2007-03-17  Jim Meyering  <jim@meyering.net>
41752
41753         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41754         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41755         someone uses a name containing shell meta-characters.
41756         Reported by Alfred M. Szmidt.
41757
41758         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41759
41760 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41761
41762         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41763         and copy gettext configuration files only if configure.ac contains
41764         a use of AM_GNU_GETTEXT_VERSION.
41765
41766 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41767
41768         * build-aux/bootstrap (gnulib_name): New variable.
41769         (gnulib_tool_options): Use it.
41770
41771 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41772
41773         * tests/test-des.c: Use new namespace.
41774
41775 2007-03-15  Bruno Haible  <bruno@clisp.org>
41776
41777         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41778         Reported by James Youngman <jay@gnu.org>.
41779
41780 2007-03-15  Bruno Haible  <bruno@clisp.org>
41781
41782         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41783         declared prototype. Needed with cc on OSF/1 5.1.
41784
41785 2007-03-15  Bruno Haible  <bruno@clisp.org>
41786
41787         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41788         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41789         (struct gl_list_implementation): Add dispose_fn argument to the
41790         'create_empty', 'create' methods.
41791         (struct gl_list_impl_base): Add field 'dispose_fn'.
41792         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41793         argument.
41794         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41795         dispose_fn argument.
41796         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41797         dispose_fn on the dropped values.
41798         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41799         dispose_fn argument.
41800         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41801         dropped values.
41802         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41803         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41804         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41805         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41806         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41807         argument.
41808         (gl_tree_list_free): Call dispose_fn on the dropped values.
41809         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41810         the dropped values.
41811         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41812         Add dispose_fn argument.
41813         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41814         Call dispose_fn on the dropped values.
41815         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41816         Add dispose_fn argument.
41817         (gl_sublist_create): Initialize the 'dispose_fn' field.
41818         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41819         * tests/test-array_list.c (main): Update.
41820         * tests/test-carray_list.c (main): Update.
41821         * tests/test-avltree_list.c (main): Update.
41822         * tests/test-rbtree_list.c (main): Update.
41823         * tests/test-avltreehash_list.c (main): Update.
41824         * tests/test-rbtreehash_list.c (main): Update.
41825         * tests/test-linked_list.c (main): Update.
41826         * tests/test-linkedhash_list.c (main): Update.
41827         * tests/test-array_oset.c (main): Update.
41828
41829 2007-03-15  Bruno Haible  <bruno@clisp.org>
41830
41831         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
41832         (gl_oset_create_empty): Add dispose_fn argument.
41833         (struct gl_oset_implementation): Add dispose_fn argument to
41834         'create_empty' method.
41835         (struct gl_oset_impl_base): Add dispose_fn field.
41836         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
41837         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
41838         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
41839         values.
41840         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
41841         (gl_tree_oset_free): Call dispose_fn on the dropped values.
41842         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41843         dropped value.
41844         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41845         dropped value.
41846         * tests/test-array_oset.c (main): Update.
41847         * tests/test-avltree_oset.c (main): Update.
41848         * tests/test-rbtree_oset.c (main): Update.
41849         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
41850
41851 2007-03-13  Bruno Haible  <bruno@clisp.org>
41852
41853         * tests/test-stdbool.c (i): Update after last patch.
41854
41855 2007-03-12  Bruno Haible  <bruno@clisp.org>
41856
41857         * lib/quotearg.c: Include <wctype.h> early, before the definition of
41858         the iswprint macro. Needed on Solaris 2.5.1.
41859
41860 2007-03-12  Bruno Haible  <bruno@clisp.org>
41861
41862         * tests/test-printf-frexp.c (main): Declare x as volatile.
41863
41864 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41865
41866         * doc/gnulib.texi (Build robot for gnulib): New section.
41867
41868 2007-03-12  Jim Meyering  <jim@meyering.net>
41869
41870         * build-aux/bootstrap: New file.
41871         * build-aux/bootstrap.conf: New file, from coreutils.
41872
41873 2007-03-11  Bruno Haible  <bruno@clisp.org>
41874
41875         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
41876
41877 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41878
41879         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
41880         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
41881         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
41882
41883 2007-03-11  Bruno Haible  <bruno@clisp.org>
41884
41885         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
41886         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
41887
41888 2007-03-11  Bruno Haible  <bruno@clisp.org>
41889
41890         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
41891         formula. Needed for SunPRO C 5.0.
41892
41893 2007-03-11  Bruno Haible  <bruno@clisp.org>
41894
41895         * modules/long-options (Depends-on): Add getopt.
41896
41897 2007-03-11  Bruno Haible  <bruno@clisp.org>
41898
41899         * modules/modechange (Depends-on): Add stdbool.
41900
41901 2007-03-11  Bruno Haible  <bruno@clisp.org>
41902
41903         * modules/i-ring (Depends-on): Add stdbool.
41904
41905 2007-03-11  Bruno Haible  <bruno@clisp.org>
41906
41907         * modules/gc-des (Depends-on): Add stdbool.
41908
41909 2007-03-11  Bruno Haible  <bruno@clisp.org>
41910
41911         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
41912
41913 2007-03-11  Bruno Haible  <bruno@clisp.org>
41914
41915         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
41916
41917 2007-03-11  Bruno Haible  <bruno@clisp.org>
41918
41919         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
41920
41921 2007-03-11  Bruno Haible  <bruno@clisp.org>
41922
41923         * lib/vasnprintf.c (sprintf): Undefine.
41924
41925 2007-03-11  Bruno Haible  <bruno@clisp.org>
41926
41927         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
41928         initializers in SunPRO C and Compaq C compilers.
41929
41930 2007-03-11  Bruno Haible  <bruno@clisp.org>
41931
41932         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
41933         decrementing code ANSI C compliant.
41934
41935 2007-03-11  Bruno Haible  <bruno@clisp.org>
41936
41937         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
41938         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
41939
41940 2007-03-11  Bruno Haible  <bruno@clisp.org>
41941
41942         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
41943         <stdbool.h> substitute doesn't pass.
41944
41945 2007-03-11  Bruno Haible  <bruno@clisp.org>
41946
41947         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
41948
41949 2007-03-11  Bruno Haible  <bruno@clisp.org>
41950
41951         * gnulib-tool (func_create_megatestdir): Create also an autobuild
41952         script, for submission to autobuild.josefsson.org.
41953
41954 2007-03-10  Bruno Haible  <bruno@clisp.org>
41955
41956         * modules/canonicalize-lgpl-tests: New file.
41957         * tests/test-canonicalize-lgpl.sh: New file.
41958         * tests/test-canonicalize-lgpl.c: New file.
41959
41960         * modules/c-strcase-tests: New file.
41961         * tests/test-c-strcase.sh: New file.
41962         * tests/test-c-strcasecmp.c: New file.
41963         * tests/test-c-strncasecmp.c: New file.
41964
41965         * modules/atexit-tests: New file.
41966         * tests/test-atexit.sh: New file.
41967         * tests/test-atexit.c: New file.
41968
41969 2007-03-10  Bruno Haible  <bruno@clisp.org>
41970
41971         * tests/test-binary-io.sh: Use temporary filenames that are not so
41972         likely to clash with those of other tests (in a parallel make).
41973         * tests/test-binary-io.c: Likewise.
41974
41975 2007-03-10  Bruno Haible  <bruno@clisp.org>
41976
41977         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
41978         fallback; use #error instead.
41979         Suggested by Simon Josefsson.
41980
41981 2007-03-10  Bruno Haible  <bruno@clisp.org>
41982
41983         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
41984         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
41985         first and the last.
41986
41987 2007-03-10  Bruno Haible  <bruno@clisp.org>
41988
41989         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
41990
41991 2007-03-10  Bruno Haible  <bruno@clisp.org>
41992
41993         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
41994         "make distcheck".
41995         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
41996         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
41997         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
41998
41999 2007-03-10  Bruno Haible  <bruno@clisp.org>
42000
42001         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
42002         variable.
42003         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
42004         variable.
42005
42006 2007-03-09  Eric Blake  <ebb9@byu.net>
42007         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
42008
42009         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
42010         types are not being provided by gnulib.
42011         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
42012         types are supported.
42013
42014 2007-03-10  Bruno Haible  <bruno@clisp.org>
42015
42016         * lib/stdio_.h (__attribute__): New macro.
42017         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
42018         vsprintf): Specify __attribute__ __format__ for GCC.
42019         Suggested by Eric Blake.
42020
42021 2007-03-09  Bruno Haible  <bruno@clisp.org>
42022
42023         * modules/printf-posix-tests: New file.
42024         * tests/test-printf-posix.sh: New file.
42025         * tests/test-printf-posix.c: New file.
42026
42027         * modules/printf-posix: New file.
42028         * lib/printf.c: New file.
42029         * m4/printf-posix-rpl.m4: New file.
42030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
42031         REPLACE_PRINTF.
42032         * lib/stdio_.h (printf): New declaration.
42033         (format, __format__, ____printf____, ____scanf____, ____strftime____,
42034         ____strfmon____): New macros.
42035         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
42036         REPLACE_PRINTF.
42037
42038 2007-03-09  Bruno Haible  <bruno@clisp.org>
42039
42040         * tests/test-vasnprintf-posix2.sh: New file.
42041         * tests/test-vasnprintf-posix2.c: New file.
42042         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
42043         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42044         (Makefile.am): Activate test-vasnprintf-posix2.sh.
42045
42046         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
42047         a locale dependent decimal point, rather than always '.'.
42048
42049 2007-03-09  Eric Blake  <ebb9@byu.net>
42050
42051         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
42052         spite of platforms like Tandem/NSK that define it to -1.
42053
42054 2007-03-08  Bruno Haible  <bruno@clisp.org>
42055
42056         * modules/vprintf-posix-tests: New file.
42057         * tests/test-vprintf-posix.sh: New file.
42058         * tests/test-vprintf-posix.c: New file.
42059         * tests/test-printf-posix.h: New file.
42060
42061         * modules/vprintf-posix: New file.
42062         * lib/vprintf.c: New file.
42063         * m4/vprintf-posix.m4: New file.
42064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
42065         REPLACE_VPRINTF.
42066         * lib/stdio_.h (vprintf): New declaration.
42067         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
42068         REPLACE_VPRINTF.
42069
42070 2007-03-08  Bruno Haible  <bruno@clisp.org>
42071
42072         * modules/fprintf-posix-tests: New file.
42073         * tests/test-fprintf-posix.sh: New file.
42074         * tests/test-fprintf-posix.c: New file.
42075
42076         * modules/fprintf-posix: New file.
42077         * lib/fprintf.c: New file.
42078         * m4/fprintf-posix.m4: New file.
42079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
42080         REPLACE_FPRINTF.
42081         * lib/stdio_.h (fprintf): New declaration.
42082         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
42083         REPLACE_FPRINTF.
42084
42085 2007-03-08  Bruno Haible  <bruno@clisp.org>
42086
42087         * modules/vfprintf-posix-tests: New file.
42088         * tests/test-vfprintf-posix.sh: New file.
42089         * tests/test-vfprintf-posix.c: New file.
42090         * tests/test-fprintf-posix.h: New file.
42091         * tests/test-fprintf-posix.out: New file.
42092
42093         * modules/vfprintf-posix: New file.
42094         * lib/vfprintf.c: New file.
42095         * m4/vfprintf-posix.m4: New file.
42096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
42097         REPLACE_VFPRINTF.
42098         * lib/stdio_.h (vfprintf): New declaration.
42099         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
42100         REPLACE_VFPRINTF.
42101
42102 2007-03-08  Bruno Haible  <bruno@clisp.org>
42103
42104         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
42105
42106 2007-03-08  Bruno Haible  <bruno@clisp.org>
42107
42108         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
42109         instead of 'expr' invocations.
42110         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42111         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42112         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42113         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42114         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42115         Suggested by Paul Eggert.
42116
42117 2007-03-08  Bruno Haible  <bruno@clisp.org>
42118
42119         * modules/fseterr-tests: New file.
42120         * tests/test-fseterr.c: New file.
42121
42122         * modules/fseterr: New file.
42123         * lib/fseterr.h: New file.
42124         * lib/fseterr.c: New file.
42125
42126 2007-03-08  Bruno Haible  <bruno@clisp.org>
42127
42128         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
42129         * lib/getopt_.h: Likewise.
42130         * lib/mbswidth.h: Likewise.
42131         * lib/setenv.h: Likewise.
42132         * lib/vasnprintf.h: Likewise.
42133         * lib/vasprintf.h: Likewise.
42134         * lib/verror.h: Likewise.
42135         * lib/xsetenv.h: Likewise.
42136         * lib/xvasprintf.h: Likewise.
42137
42138 2007-03-08  Jim Meyering  <jim@meyering.net>
42139
42140         * users.txt: Add parted.
42141
42142         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
42143
42144 2007-03-07  Bruno Haible  <bruno@clisp.org>
42145
42146         * m4/printf.m4: Make the shell script snippets copy&pastable.
42147
42148 2007-03-02  Bruno Haible  <bruno@clisp.org>
42149
42150         * lib/netinet_in_.h: New file.
42151         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
42152         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
42153         * modules/netinet_in (Files): Add lib/netinet_in_.h.
42154         (Depends-on): Add absolute-header.
42155         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
42156         into netinet/in.h.
42157
42158 2007-03-03  Bruno Haible  <bruno@clisp.org>
42159
42160         * lib/sys_select_.h: New file.
42161         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
42162         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
42163         * modules/sys_select (Files): Add lib/sys_select_.h.
42164         (Depends-on): Add absolute-header.
42165         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
42166         into sys/select.h.
42167
42168 2007-03-02  Bruno Haible  <bruno@clisp.org>
42169
42170         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
42171         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
42172         values.
42173         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
42174         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
42175         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
42176         * modules/sys_socket (Depends-on): Add absolute-header.
42177         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
42178         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
42179         (Include): Remove requirement of inclusion of <sys/types.h>.
42180
42181 2007-03-02  Bruno Haible  <bruno@clisp.org>
42182
42183         * lib/byteswap_.h (bswap_32): Fix formula.
42184
42185 2007-03-06  Bruno Haible  <bruno@clisp.org>
42186
42187         * modules/sprintf-posix-tests: New file.
42188         * tests/test-sprintf-posix.c: New file.
42189
42190         * modules/sprintf-posix: New file.
42191         * lib/sprintf.c: New file.
42192         * m4/sprintf-posix.m4: New file.
42193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
42194         REPLACE_SPRINTF.
42195         * lib/stdio_.h (sprintf): New declaration.
42196         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
42197         REPLACE_SPRINTF.
42198
42199 2007-03-06  Bruno Haible  <bruno@clisp.org>
42200
42201         * modules/vsprintf-posix-tests: New file.
42202         * tests/test-vsprintf-posix.c: New file.
42203         * tests/test-sprintf-posix.h: New file.
42204
42205         * modules/vsprintf-posix: New file.
42206         * lib/vsprintf.c: New file.
42207         * m4/vsprintf-posix.m4: New file.
42208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
42209         REPLACE_VSPRINTF.
42210         * lib/stdio_.h (vsprintf): New declaration.
42211         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
42212         REPLACE_VSPRINTF.
42213
42214 2007-03-06  Bruno Haible  <bruno@clisp.org>
42215
42216         * modules/vsnprintf (Depend-on): Remove minmax.
42217
42218 2007-03-06  Bruno Haible  <bruno@clisp.org>
42219
42220         * modules/snprintf-posix-tests: New file.
42221         * tests/test-snprintf-posix.c: New file.
42222
42223         * modules/snprintf-posix: New file.
42224         * m4/snprintf-posix.m4: New file.
42225         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
42226         gl_FUNC_SNPRINTF.
42227         (gl_FUNC_SNPRINTF): Invoke it.
42228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
42229         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
42230         is set.
42231         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
42232
42233 2007-03-06  Bruno Haible  <bruno@clisp.org>
42234
42235         * modules/vsnprintf-posix-tests: New file.
42236         * tests/test-vsnprintf-posix.c: New file.
42237         * tests/test-snprintf-posix.h: New file.
42238
42239         * modules/vsnprintf-posix: New file.
42240         * m4/vsnprintf-posix.m4: New file.
42241         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
42242         gl_FUNC_VSNPRINTF.
42243         (gl_FUNC_VSNPRINTF): Invoke it.
42244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
42245         * lib/stdio_.h (vsnprintf): Define as a replacement if
42246         REPLACE_VSNPRINTF is set.
42247         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
42248
42249 2007-03-06  Bruno Haible  <bruno@clisp.org>
42250
42251         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
42252         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
42253
42254 2007-03-06  Bruno Haible  <bruno@clisp.org>
42255
42256         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
42257         (asinl): Declare also if HAVE_DECL_ASINL is set.
42258         (atanl): Declare also if HAVE_DECL_ATANL is set.
42259         (ceill): Declare also if HAVE_DECL_CEILL is set.
42260         (cosl): Declare also if HAVE_DECL_COSL is set.
42261         (expl): Declare also if HAVE_DECL_EXPL is set.
42262         (floorl): Declare also if HAVE_DECL_FLOORL is set.
42263         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
42264         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
42265         (logl): Declare also if HAVE_DECL_LOGL is set.
42266         (sinl): Declare also if HAVE_DECL_SINL is set.
42267         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
42268         (tanl): Declare also if HAVE_DECL_TANL is set.
42269         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
42270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
42271         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
42272         declaration of frexpl, ldexpl.
42273         * modules/printf-frexpl (Depends-on): Add math.
42274         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
42275
42276 2007-03-05  Bruno Haible  <bruno@clisp.org>
42277
42278         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
42279         frexpl and ldexpl are declared.
42280         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
42281
42282 2007-03-05  Bruno Haible  <bruno@clisp.org>
42283
42284         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
42285         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
42286
42287 2007-03-05  Bruno Haible  <bruno@clisp.org>
42288
42289         * lib/stdio_.h: Include <stddef.h>.
42290
42291 2007-03-05  Bruno Haible  <bruno@clisp.org>
42292
42293         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
42294
42295 2007-03-05  Bruno Haible  <bruno@clisp.org>
42296
42297         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
42298         NetBSD 4, from Ralf Wildenhues.
42299
42300 2007-03-04  Bruno Haible  <bruno@clisp.org>
42301
42302         * lib/vasprintf.h: Update #if logic for the case when the functions
42303         exist but are overridden.
42304
42305 2007-03-04  Bruno Haible  <bruno@clisp.org>
42306
42307         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
42308         implementations: glibc-2.4 and MacOS X 10.3.
42309         * tests/test-vasnprintf-posix.c (test_function): Test also the case
42310         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
42311         * tests/test-vasprintf-posix.c (test_function): Likewise.
42312
42313 2007-03-04  Bruno Haible  <bruno@clisp.org>
42314
42315         * modules/vasprintf-posix-tests: New file.
42316         * tests/test-vasprintf-posix.c: New file.
42317
42318         * modules/vasprintf-posix: New file.
42319         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
42320         defined.
42321         * m4/vasprintf-posix.m4: New file.
42322         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
42323         gl_FUNC_VASPRINTF.
42324         (gl_FUNC_VASPRINTF): Invoke it.
42325         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
42326         here.
42327         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
42328
42329 2007-03-04  Bruno Haible  <bruno@clisp.org>
42330
42331         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
42332         REPLACE_GETTIMEOFDAY.
42333         * modules/sys_time (Makefile.am): Likewise.
42334         * m4/sys_time_h.m4: Likewise.
42335         * m4/gettimeofday.m4: Likewise.
42336
42337 2007-03-04  Bruno Haible  <bruno@clisp.org>
42338
42339         * modules/vasnprintf-posix-tests: New file.
42340         * tests/test-vasnprintf-posix.c: New file.
42341
42342         * modules/vasnprintf-posix: New file.
42343         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
42344         printf-frexpl.h.
42345         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
42346         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
42347         REPLACE_VASNPRINTF is defined.
42348         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
42349         gl_FUNC_VASNPRINTF.
42350         (gl_FUNC_VASNPRINTF): Invoke it.
42351         * m4/vasnprintf-posix.m4: New file.
42352         * m4/printf.m4: New file.
42353
42354 2007-03-04  Bruno Haible  <bruno@clisp.org>
42355
42356         Compile progreloc.c only if --enable-relocatable is specified.
42357         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
42358         if --enable-relocatable was specified.
42359         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
42360         lib_SOURCES.
42361
42362 2007-03-04  Jim Meyering  <jim@meyering.net>
42363
42364         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
42365         Use it consistently, rather than enumerating errno constants.
42366
42367 2007-03-04  Bruno Haible  <bruno@clisp.org>
42368
42369         * modules/xvasprintf-tests: New file.
42370         * tests/test-xvasprintf.c: New file.
42371
42372         * modules/vasprintf-tests: New file.
42373         * tests/test-vasprintf.c: New file.
42374
42375         * modules/vasnprintf-tests: New file.
42376         * tests/test-vasnprintf.c: New file.
42377
42378         * modules/vsnprintf-tests: New file.
42379         * tests/test-vsnprintf.c: New file.
42380
42381         * modules/snprintf-tests: New file.
42382         * tests/test-snprintf.c: New file.
42383
42384 2007-03-04  Bruno Haible  <bruno@clisp.org>
42385
42386         Compile relocatable.c only if --enable-relocatable is specified.
42387         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
42388         gl_RELOCATABLE_LIBRARY.
42389         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
42390         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
42391         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
42392         gl_RELOCATABLE_LIBRARY.
42393         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
42394         (Makefile.am): Remove lib_SOURCES.
42395         * modules/relocatable-lib-lgpl (configure.ac): Invoke
42396         gl_RELOCATABLE_LIBRARY.
42397         (Makefile.am): Remove lib_SOURCES.
42398         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
42399         always.
42400         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42401         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
42402
42403 2007-03-04  Bruno Haible  <bruno@clisp.org>
42404
42405         * modules/argmatch-tests: New file.
42406         * tests/test-argmatch.c: New file.
42407
42408         * tests/test-allocsa.c (main): Halve the number of loop runs.
42409
42410         * modules/alloca-opt-tests: New file.
42411         * tests/test-alloca-opt.c: New file.
42412
42413 2007-03-04  Jim Meyering  <jim@meyering.net>
42414
42415         Work around difference between Linux ACLs and Solaris 10 ZFS.
42416         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
42417         for EINVAL.
42418
42419 2007-03-03  Bruno Haible  <bruno@clisp.org>
42420
42421         * modules/relocatable-prog (Depends-on): Add back progreloc's
42422         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
42423
42424 2007-03-03  Bruno Haible  <bruno@clisp.org>
42425
42426         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
42427         * modules/relocatable-lib: New file.
42428
42429 2007-03-03  Bruno Haible  <bruno@clisp.org>
42430
42431         * modules/relocatable-prog: Renamed from modules/relocatable.
42432         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
42433
42434 2007-03-03  Bruno Haible  <bruno@clisp.org>
42435
42436         * modules/relocatable-script (Files): Add doc/relocatable.texi,
42437         m4/relocatable-lib.m4.
42438         (Depends-on): Remove 'relocatable'.
42439         (configure.ac): Add gl_RELOCATABLE_NOP.
42440
42441 2007-03-03  Bruno Haible  <bruno@clisp.org>
42442
42443         * modules/relocatable-prog-wrapper: New file.
42444         * modules/relocatable (Depends-on): Add it. Remove all other
42445         dependencies except progname.
42446         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
42447
42448         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
42449         (gl_FUNC_STRERROR): Nop.
42450         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
42451
42452         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
42453         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
42454
42455         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
42456         (gl_FUNC_READLINK): Update.
42457
42458         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
42459
42460 2007-03-03  Bruno Haible  <bruno@clisp.org>
42461
42462         * lib/xreadlink.c: Include <unistd.h> unconditionally.
42463         * modules/xreadlink (Depends-on): Add unistd.
42464         * modules/xreadlink-with-size (Depends-on): Likewise.
42465
42466 2007-03-03  Bruno Haible  <bruno@clisp.org>
42467
42468         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
42469         extracted from gt_FUNC_SETENV.
42470         (gt_FUNC_SETENV): Remove macro.
42471         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
42472         remove gt_FUNC_SETENV.
42473
42474 2007-03-03  Bruno Haible  <bruno@clisp.org>
42475
42476         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
42477         ENABLE_RELOCATABLE here.
42478         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
42479
42480 2007-03-03  Bruno Haible  <bruno@clisp.org>
42481
42482         * modules/rbtreehash-list-tests (Depends-on): Add progname.
42483         * tests/test-rbtreehash_list.c: Include progname.h.
42484         (main): Call set_program_name.
42485
42486         * modules/rbtree-oset-tests (Depends-on): Add progname.
42487         * tests/test-rbtree_oset.c: Include progname.h.
42488         (main): Call set_program_name.
42489
42490         * modules/rbtree-list-tests (Depends-on): Add progname.
42491         * tests/test-rbtree_list.c: Include progname.h.
42492         (main): Call set_program_name.
42493
42494         * modules/linked-list-tests (Depends-on): Add progname.
42495         * tests/test-linked_list.c: Include progname.h.
42496         (main): Call set_program_name.
42497
42498 2007-03-03  Bruno Haible  <bruno@clisp.org>
42499
42500         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
42501         All uses of __restrict changed to _Restrict_.
42502         * lib/glob_.h (__restrict): Remove macro.
42503
42504 2007-03-02  Bruno Haible  <bruno@clisp.org>
42505
42506         * modules/gettext (configure.ac): Require gettext infrastructure
42507         from version 0.16.1.
42508
42509 2007-03-02  Bruno Haible  <bruno@clisp.org>
42510
42511         * modules/linkedhash-list-tests (Depends-on): Add progname.
42512         * tests/test-linkedhash_list.c: Include progname.h.
42513         (main): Call set_program_name.
42514
42515         * modules/carray-list-tests (Depends-on): Add progname.
42516         * tests/test-carray_list.c: Include progname.h.
42517         (main): Call set_program_name.
42518
42519         * modules/avltreehash-list-tests (Depends-on): Add progname.
42520         * tests/test-avltreehash_list.c: Include progname.h.
42521         (main): Call set_program_name.
42522
42523         * modules/avltree-oset-tests (Depends-on): Add progname.
42524         * tests/test-avltree_oset.c: Include progname.h.
42525         (main): Call set_program_name.
42526
42527         * modules/avltree-list-tests (Depends-on): Add progname.
42528         * tests/test-avltree_list.c: Include progname.h.
42529         (main): Call set_program_name.
42530
42531         * modules/array-oset-tests (Depends-on): Add progname.
42532         * tests/test-array_oset.c: Include progname.h.
42533         (main): Call set_program_name.
42534
42535         * modules/array-list-tests (Depends-on): Add progname.
42536         * tests/test-array_list.c: Include progname.h.
42537         (main): Call set_program_name.
42538
42539         * modules/argp-tests (Depends-on): Add progname.
42540         * tests/test-argp.c: Include argp.h first. Include progname.h.
42541         (main): Call set_program_name.
42542
42543 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
42544
42545         * doc/gnulib-tool.texi (Initial import): Reword description of
42546         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
42547         limited effect even if defined after the first system include.
42548
42549 2007-03-01  Bruno Haible  <bruno@clisp.org>
42550
42551         * build-aux/config.libpath: Update to libtool-1.5.22.
42552         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42553
42554 2007-03-01  Bruno Haible  <bruno@clisp.org>
42555
42556         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
42557         foo_CFLAGS.
42558         Reported by Ralf Wildenhues.
42559
42560 2007-03-01  Bruno Haible  <bruno@clisp.org>
42561
42562         * build-aux/install-reloc: Remove object files left over by some
42563         compilers.
42564         Reported by Ralf Wildenhues.
42565
42566 2007-03-01  Bruno Haible  <bruno@clisp.org>
42567
42568         * build-aux/install-reloc: Break long lines.
42569
42570 2007-03-01  Bruno Haible  <bruno@clisp.org>
42571
42572         * doc/relocatable.texi: Document that it may not work on OpenBSD.
42573         Reported by Ralf Wildenhues.
42574
42575 2007-03-01  Bruno Haible  <bruno@clisp.org>
42576
42577         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
42578         include ordering constraints.
42579
42580 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42581
42582         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
42583         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
42584         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42585         as another example.
42586         * lib/time_.h: Fix misspelling.
42587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42588         Require gl_HEADER_TIME_H_DEFAULTS.
42589         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42590         * m4/time_r.m4 (gl_TIME_R): Likewise.
42591         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42592
42593 2007-03-01  Bruno Haible  <bruno@clisp.org>
42594
42595         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42596         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42597
42598 2007-03-01  Jim Meyering  <jim@meyering.net>
42599
42600         * modules/xreadlink (Maintainer): Add my name.
42601         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42602
42603 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42604             Bruno Haible  <bruno@clisp.org>
42605
42606         * build-aux/install-reloc: Compile also c-ctype.c.
42607         * build-aux/relocatable.sh.in: New file.
42608         * doc/relocatable.texi: New file.
42609         * doc/relocatable-maint.texi: New file.
42610         * doc/gnulib.texi: Include relocatable-maint.texi.
42611         * lib/progreloc.c: Include unistd.h unconditionally.
42612         * lib/relocwrapper.c: Include unistd.h unconditionally.
42613         Include c-ctype.h.
42614         (add_dotbin): Use c_tolower.
42615         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42616         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42617         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42618         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42619         to m4/relocatable-lib.m4.
42620         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42621         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42622         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42623         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42624         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42625         * modules/relocatable: New file.
42626         * modules/relocatable-lib: New file.
42627         * modules/relocatable-script: New file.
42628
42629 2007-02-28  Bruno Haible  <bruno@clisp.org>
42630
42631         Import --enable-relocatable infrastructure.
42632         * build-aux/config.libpath: New file, from GNU gettext.
42633         * build-aux/install-reloc: New file, from GNU gettext.
42634         * build-aux/reloc-ldflags: New file, from GNU gettext.
42635         * lib/relocatable.h: New file, from GNU gettext.
42636         * lib/relocatable.c: New file, from GNU gettext.
42637         * lib/relocwrapper.c: New file, from GNU gettext.
42638         * m4/relocatable.m4: New file, from GNU gettext.
42639
42640 2007-02-28  Bruno Haible  <bruno@clisp.org>
42641
42642         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42643
42644         * modules/xreadlink: New file, from GNU gettext with modifications.
42645         * lib/xreadlink.c: New file, from GNU gettext.
42646         * lib/xreadlink.h: Add comments.
42647         (xreadlink): New declaration.
42648
42649         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42650         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42651         lib/xreadlink-with-size.c.
42652         (configure.ac): Remove gl_XREADLINK invocation.
42653         (Makefile.am): Augment lib_SOURCES.
42654         * m4/xreadlink.m4: Remove file.
42655         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42656         (xreadlink_with_size): Renamed from xreadink.
42657         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42658         * modules/canonicalize (Depends-on): Replace xreadlink with
42659         xreadlink-with-size.
42660         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42661
42662 2007-02-25  Jim Meyering  <jim@meyering.net>
42663
42664         * build-aux/announce-gen: When complaining about excess arguments,
42665         list them.
42666
42667 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42668
42669         * README: Document signed integer overflow situation more
42670         accurately.
42671
42672 2007-02-25  Bruno Haible  <bruno@clisp.org>
42673
42674         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42675         'a' or 'A' conversion.
42676
42677 2007-02-25  Bruno Haible  <bruno@clisp.org>
42678
42679         * modules/filename: Renamed from modules/pathname.
42680         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42681         lib/concatpath.c with lib/concat-filename.c.
42682         (Makefile.am): Update.
42683         (Include): Replace pathname.h with filename.h.
42684         * lib/filename.h: Renamed from lib/pathname.h.
42685         (concatenated_filename): Renamed from concatenated_pathname.
42686         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42687         (concatenated_filename): Renamed from concatenated_pathname.
42688         * lib/findprog.c: Include filename.h instead of pathname.h.
42689         (find_in_path): Update.
42690         * lib/javacomp.c: Include filename.h instead of pathname.h.
42691         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42692         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42693         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42694         is_oldgcj_14_13_usable, is_javac_usable): Update.
42695         * lib/javaexec.c: Include filename.h instead of pathname.h.
42696         (execute_java_class): Update.
42697         * modules/findprog: Update.
42698         * modules/javacomp: Update.
42699         * modules/javaexec: Update.
42700         * MODULES.html.sh (File system functions): Add 'filename', remove
42701         'pathname'.
42702
42703 2007-02-25  Bruno Haible  <bruno@clisp.org>
42704
42705         * modules/printf-frexpl-tests: New file.
42706         * tests/test-printf-frexpl.c: New file.
42707
42708         * modules/printf-frexpl: New file.
42709         * lib/printf-frexpl.h: New file.
42710         * lib/printf-frexpl.c: New file.
42711         * m4/printf-frexpl.m4: New file.
42712
42713 2007-02-25  Bruno Haible  <bruno@clisp.org>
42714
42715         * modules/printf-frexp-tests: New file.
42716         * tests/test-printf-frexp.c: New file.
42717
42718         * modules/printf-frexp: New file.
42719         * lib/printf-frexp.h: New file.
42720         * lib/printf-frexp.c: New file.
42721         * m4/printf-frexp.m4: New file.
42722
42723 2007-02-25  Bruno Haible  <bruno@clisp.org>
42724
42725         Assume automake >= 1.10 for the tests.
42726         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42727         * modules/arctwo-tests: Likewise.
42728         * modules/argp-tests: Likewise.
42729         * modules/avltree-list-tests: Likewise.
42730         * modules/avltree-oset-tests: Likewise.
42731         * modules/avltreehash-list-tests: Likewise.
42732         * modules/carray-list-tests: Likewise.
42733         * modules/crc-tests: Likewise.
42734         * modules/des-tests: Likewise.
42735         * modules/gc-arcfour-tests: Likewise.
42736         * modules/gc-arctwo-tests: Likewise.
42737         * modules/gc-des-tests: Likewise.
42738         * modules/gc-hmac-md5-tests: Likewise.
42739         * modules/gc-hmac-sha1-tests: Likewise.
42740         * modules/gc-md2-tests: Likewise.
42741         * modules/gc-md4-tests: Likewise.
42742         * modules/gc-md5-tests: Likewise.
42743         * modules/gc-pbkdf2-sha1-tests: Likewise.
42744         * modules/gc-rijndael-tests: Likewise.
42745         * modules/gc-sha1-tests: Likewise.
42746         * modules/gc-tests: Likewise.
42747         * modules/getaddrinfo-tests: Likewise.
42748         * modules/hmac-md5-tests: Likewise.
42749         * modules/hmac-sha1-tests: Likewise.
42750         * modules/linked-list-tests: Likewise.
42751         * modules/linkedhash-list-tests: Likewise.
42752         * modules/lock-tests: Likewise.
42753         * modules/md2-tests: Likewise.
42754         * modules/md4-tests: Likewise.
42755         * modules/md5-tests: Likewise.
42756         * modules/rbtree-list-tests: Likewise.
42757         * modules/rbtree-oset-tests: Likewise.
42758         * modules/rbtreehash-list-tests: Likewise.
42759         * modules/read-file-tests: Likewise.
42760         * modules/rijndael-tests: Likewise.
42761         * modules/stdint-tests: Likewise.
42762         * modules/tls-tests: Likewise.
42763
42764 2007-02-24  Bruno Haible  <bruno@clisp.org>
42765
42766         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42767         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42768         function; instead check whether isnan with a double argument links.
42769         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42770         function; instead check whether isnan with a 'long double' argument
42771         links.
42772         Reported by Eric Blake <ebb9@byu.net>.
42773
42774 2007-02-24  Bruno Haible  <bruno@clisp.org>
42775
42776         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42777         defined.
42778         * lib/isnanl.c: Remove all code. Just include isnan.c.
42779         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42780
42781 2007-02-25  Jim Meyering  <jim@meyering.net>
42782
42783         Avoid conflicting types for 'unsetenv' on FreeBSD.
42784         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42785         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42786         in stdlib.h.
42787
42788 2007-02-24  Bruno Haible  <bruno@clisp.org>
42789
42790         * modules/isnanl-nolibm-tests: New file.
42791         * tests/test-isnanl.c: New file.
42792
42793         * modules/isnanl-nolibm: New file.
42794         * lib/isnanl.h: New file.
42795         * lib/isnanl.c: New file.
42796         * m4/isnanl.m4: New file.
42797
42798 2007-02-24  Bruno Haible  <bruno@clisp.org>
42799
42800         * modules/isnan-nolibm-tests: New file.
42801         * tests/test-isnan.c: New file.
42802
42803         * modules/isnan-nolibm: New file.
42804         * lib/isnan.h: New file.
42805         * lib/isnan.c: New file.
42806         * m4/isnan.m4: New file.
42807
42808 2007-02-24  Bruno Haible  <bruno@clisp.org>
42809
42810         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42811         assume that an exponent fits in 20 bits.
42812
42813 2007-02-24  Jim Meyering  <jim@meyering.net>
42814
42815         * m4/regex.m4: Update the description of the configure-time option,
42816         --without-included-regex, to state accurately what the defaults are,
42817         and perhaps to give people an idea why using this option is risky.
42818
42819 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42820
42821         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42822         loops on small arguments.  This attempts to avoid the problem
42823         Bruno Haible reported for AIX 4.3.2 in
42824         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42825
42826 2007-02-23  Bruno Haible  <bruno@clisp.org>
42827
42828         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
42829         Needed for help2man.
42830
42831 2007-02-23  Karl Berry  <karl@gnu.org>
42832
42833         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
42834         exists, foo.h should be cvs-ignored, not committed.
42835
42836 2007-02-23  Eric Blake  <ebb9@byu.net>
42837
42838         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
42839         * lib/stat-time.h (includes): Likewise.
42840         * lib/utimecmp.c (includes): Likewise.
42841         * lib/utimens.h (includes): Likewise.
42842         * lib/getdate.y (includes): Also include "timespec.h" for use
42843         internal to the module.
42844         * modules/utimens (Depends-on): Revert yesterday's patch.
42845         * modules/nanosleep (Depends-on): Add missing dependency.
42846
42847 2007-02-22  Bruno Haible  <bruno@clisp.org>
42848
42849         * lib/glob.c: Don't include getlogin_r.h.
42850
42851 2007-02-22  Jim Meyering  <jim@meyering.net>
42852
42853         * modules/utimens (Depends-on): Add timespec, required for
42854         utimens.h's inclusion of timespec.h.
42855
42856 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
42857
42858         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
42859         long unreadable paths in GNU/Linux.  Problem reported by Andreas
42860         Schwab in
42861         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
42862         I'll try to think of a better way to fix the Solaris problem.
42863
42864         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
42865         like glibc; on Solaris 10, it fails with errno == EINVAL.
42866         POSIX says the behavior is unspecified if the first argument is NULL,
42867         so play it safe and never pass NULL to the system getcwd.
42868
42869 2007-02-21  Jim Meyering  <jim@meyering.net>
42870
42871         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
42872         of gettimeofday.  It would conflict with the one now always
42873         provided via sys_time_.h.  Reported by Matthew Woehlke, as
42874         an IRIX 6.5 build failure.
42875
42876 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42877
42878         Minor fixups to port to Solaris 10 with Sun C 5.8.
42879         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
42880         * modules/getcwd (Depends-on): Add dirfd.
42881         * lib/putenv.c (putenv): #undef it.
42882         (rpl_putenv): New decl.
42883         (malloc, free): Include <stdlib.h> rather than prototyping separately.
42884
42885 2007-02-20  Bruno Haible  <bruno@clisp.org>
42886
42887         * modules/stdio-tests: New file.
42888         * tests/test-stdio.c: New file.
42889
42890         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
42891         (Depends-on): Add stdio.
42892         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42893         (Include): Use <stdio.h> instead of vsnprintf.h.
42894         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42895         HAVE_DECL_VSNPRINTF.
42896         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
42897
42898         * modules/snprintf (Files): Remove lib/snprintf.h.
42899         (Depends-on): Add stdio.
42900         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42901         (Include): Use <stdio.h> instead of snprintf.h.
42902         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42903         HAVE_DECL_SNPRINTF.
42904         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
42905         * lib/getaddrinfo.c: Likewise.
42906
42907         * modules/stdio: New file.
42908         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
42909         * lib/snprintf.h: Remove file.
42910         * lib/vsnprintf.h: Remove file.
42911         * lib/.cppi-disable: Remove snprintf.h.
42912         * m4/stdio_h.m4: New file.
42913         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
42914
42915 2007-02-20  Jim Meyering  <jim@meyering.net>
42916
42917         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
42918         used by e.g., mingw.  From Bruno Haible.
42919
42920 2007-02-19  Bruno Haible  <bruno@clisp.org>
42921
42922         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
42923         warnings.
42924         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42925
42926 2007-02-19  Bruno Haible  <bruno@clisp.org>
42927
42928         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
42929         from mingw users.
42930
42931 2007-02-19  Bruno Haible  <bruno@clisp.org>
42932
42933         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
42934         warnings.
42935         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
42936
42937 2007-02-19  Jim Meyering  <jim@meyering.net>
42938
42939         Don't use FD after a successful "fdopendir (fd)".
42940         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
42941         Reset it by calling dirfd on the just-obtained DIR*.
42942
42943         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
42944         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
42945
42946 2007-02-18  Bruno Haible  <bruno@clisp.org>
42947
42948         * lib/readlink.c: Include <unistd.h>.
42949         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
42950         HAVE_READLINK.
42951         * modules/readlink (Depends-on): Add unistd.
42952         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42953         (Include): Add <unistd.h>.
42954
42955         * lib/getlogin_r.h: Remove file.
42956         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
42957         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
42958         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
42959         HAVE_DECL_GETLOGIN_R.
42960         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
42961         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42962         (Include): Use <unistd.h> instead of getlogin_r.h.
42963
42964         * lib/getcwd.h: Remove file.
42965         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
42966         * lib/xgetcwd.c: Likewise.
42967         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
42968         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
42969         * modules/getcwd (Files): Remove lib/getcwd.h.
42970         (Depends-on): Add unistd.
42971         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42972         (Include): Use <unistd.h> instad of getcwd.h.
42973
42974         * lib/ftruncate.c: Include <unistd.h> first.
42975         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
42976         Set HAVE_FTRUNCATE.
42977         * modules/ftruncate (Depends-on): Add unistd.
42978         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42979
42980         * lib/fchdir.c: Include <unistd.h> first.
42981         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
42982         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
42983         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
42984         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42985         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
42986
42987         * lib/dup2.c: Include <unistd.h> first.
42988         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
42989         HAVE_DUP2.
42990         * modules/dup2 (Depends-on): Add unistd.
42991         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42992
42993         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
42994         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
42995         REPLACE_CHOWN. Don't define chown as a macro here.
42996         * modules/chown (Depends-on): Add unistd.
42997         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42998
42999         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
43000         Add definition for GL_LINK_WARNING.
43001         (chown, dup2): New declarations.
43002         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
43003         link warning.
43004         (ftruncate): New declaration.
43005         (getcwd): New declaration, taken from old getcwd.h.
43006         (getlogin_r): New declaration, taken from old getlogin_r.h.
43007         (readlink): New declaration.
43008         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
43009         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
43010         (gl_PREREQ_UNISTD): Remove macro.
43011         (gl_UNISTD_MODULE_INDICATOR): New macro.
43012         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
43013         many new variables. Don't set UNISTD_H.
43014         * modules/unistd (Description): Change.
43015         (Depends-on): Add link-warning.
43016         (configure.ac): Update.
43017         (Makefile.am): Create unistd.h always. Substitute many new variables
43018         into it.
43019
43020 2007-02-18  Bruno Haible  <bruno@clisp.org>
43021
43022         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
43023         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
43024         HAVE_GETSUBOPT.
43025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
43026         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
43027         * lib/getsubopt.h: Remove file.
43028         * modules/getsubopt (Files): Remove lib/getsubopt.h.
43029         (Depends-on): Add stdlib.
43030         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43031         (Includes): Use <stdlib.h> instead of getsubopt.h.
43032         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
43033         Set HAVE_GETSUBOPT.
43034         * lib/getsubopt.c: Don't include getsubopt.h.
43035
43036 2007-02-18  Bruno Haible  <bruno@clisp.org>
43037
43038         * modules/fchdir (Depends-on): Add dup2.
43039
43040 2007-02-18  Bruno Haible  <bruno@clisp.org>
43041
43042         * lib/stdlib_.h: Handle glibc's special invocation convention
43043         specially.
43044
43045 2007-02-18  Bruno Haible  <bruno@clisp.org>
43046
43047         * modules/stdlib-tests: New file.
43048         * tests/test-stdlib.c: New file.
43049
43050         * modules/mkstemp (Files): Remove lib/mkstemp.h.
43051         (Depends-on): Add stdlib.
43052         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43053         (Includes): Use <stdlib.h> instead of mkstemp.h.
43054         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43055         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
43056         * lib/mkstemp.c: Don't include mkstemp.h.
43057         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
43058         * lib/stdlib--.h: Don't include mkstemp.h.
43059
43060         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
43061         (Depends-on): Add stdlib.
43062         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43063         (Includes): Use <stdlib.h> instead of mkdtemp.h.
43064         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43065         HAVE_MKDTEMP.
43066         * lib/mkdtemp.c: Don't include mkdtemp.h.
43067         * lib/clean-temp.c: Don't include mkdtemp.h.
43068
43069         * modules/exit (Files): Remove lib/exit.h.
43070         (Depends-on): Add stdlib.
43071         (Makefile.am): Remove lib_SOURCES.
43072         (Include): Use <stdlib.h> instead of exit.h.
43073         * lib/argmatch.c: Don't include exit.h.
43074         * lib/execute.c: Likewise.
43075         * lib/pagealign_alloc.c: Likewise.
43076         * lib/pipe.c: Likewise.
43077         * lib/wait-process.c: Likewise.
43078         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
43079         * lib/exitfail.c: Likewise.
43080         * lib/savewd.c: Likewise.
43081         * lib/xsetenv.c: Likewise.
43082
43083         * modules/stdlib: New file.
43084         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
43085         and extra comments about mkstemp().
43086         * lib/exit.h: Remove file.
43087         * lib/mkdtemp.h: Remove file.
43088         * lib/mkstemp.h: Remove file.
43089         * m4/stdlib_h.m4: New file.
43090         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
43091
43092 2007-02-18  Bruno Haible  <bruno@clisp.org>
43093
43094         * modules/math-tests: New file.
43095         * tests/test-math.c: New file.
43096
43097         * modules/math: New file.
43098         * modules/mathl (Files): Remove lib/mathl.h.
43099         (Depends-on): Add math.
43100         (Makefile.am): Don't mention mathl.h.
43101         (Include): Use <math.h> instead of mathl.h.
43102         * lib/math_.h: New file.
43103         * lib/mathl.h: Remove file.
43104         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
43105         mathl.h.
43106         * lib/asinl.c: Likewise.
43107         * lib/atanl.c: Likewise.
43108         * lib/ceill.c: Likewise.
43109         * lib/cosl.c: Likewise.
43110         * lib/expl.c: Likewise.
43111         * lib/floorl.c: Likewise.
43112         * lib/frexpl.c: Likewise.
43113         * lib/ldexpl.c: Likewise.
43114         * lib/logl.c: Likewise.
43115         * lib/sincosl.c: Likewise.
43116         * lib/sinl.c: Likewise.
43117         * lib/sqrtl.c: Likewise.
43118         * lib/tanl.c: Likewise.
43119         * lib/trigl.c: Likewise.
43120         * m4/math_h.m4: New file.
43121         * MODULES.html.sh (Mathematics): Add math.
43122
43123 2007-02-17  Bruno Haible  <bruno@clisp.org>
43124
43125         * modules/wctype-tests: New file.
43126         * tests/test-wctype.c: New file.
43127
43128         * modules/wchar-tests: New file.
43129         * tests/test-wchar.c: New file.
43130
43131         * modules/unistd-tests: New file.
43132         * tests/test-unistd.c: New file.
43133
43134         * modules/time-tests: New file.
43135         * tests/test-time.c: New file.
43136
43137         * modules/sysexits-tests: New file.
43138         * tests/test-sysexits.c: New file.
43139
43140         * modules/sys_time-tests: New file.
43141         * tests/test-sys_time.c: New file.
43142
43143         * modules/sys_stat-tests: New file.
43144         * tests/test-sys_stat.c: New file.
43145
43146         * modules/sys_socket-tests: New file.
43147         * tests/test-sys_socket.c: New file.
43148
43149         * modules/sys_select-tests: New file.
43150         * tests/test-sys_select.c: New file.
43151
43152         * modules/string-tests: New file.
43153         * tests/test-string.c: New file.
43154
43155         * modules/stdbool-tests: New file.
43156         * tests/test-stdbool.c: New file.
43157
43158         * modules/netinet_in-tests: New file.
43159         * tests/test-netinet_in.c: New file.
43160
43161         * modules/inttypes-tests: New file.
43162         * tests/test-inttypes.c: New file.
43163
43164         * modules/fcntl-tests: New file.
43165         * tests/test-fcntl.c: New file.
43166
43167         * modules/byteswap-tests: New file.
43168         * tests/test-byteswap.c: New file.
43169
43170         * modules/arpa_inet-tests: New file.
43171         * tests/test-arpa_inet.c: New file.
43172
43173 2007-02-17  Bruno Haible  <bruno@clisp.org>
43174
43175         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
43176         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
43177         if the corresponding module is not enabled. Emit link warnings if
43178         the function is used nevertheless.
43179         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
43180         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
43181         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
43182         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
43183         * modules/inttypes (Depends-on): Add link-warning.
43184         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43185         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
43186         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
43187         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
43188         * modules/imaxdiv (configure.ac): Likewise.
43189         * modules/strtoimax (configure.ac): Likewise.
43190         * modules/strtoumax (configure.ac): Likewise.
43191
43192 2007-02-17  Bruno Haible  <bruno@clisp.org>
43193
43194         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
43195         gl_STRING_MODULE_INDICATOR_DEFAULTS.
43196         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
43197         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
43198
43199 2007-02-17  Bruno Haible  <bruno@clisp.org>
43200
43201         * modules/link-warning: New file.
43202         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
43203         * lib/string_.h (GL_LINK_WARNING): Remove definition.
43204         * modules/string (Depends-on): Add link-warning.
43205         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43206         string.h.
43207         * MODULES.html.sh (Support for building libraries and executables): Add
43208         link-warning.
43209
43210 2007-02-17  Bruno Haible  <bruno@clisp.org>
43211
43212         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
43213         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
43214         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
43215         long lines.
43216
43217 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
43218             Bruno Haible  <bruno@clisp.org>
43219
43220         * modules/tmpfile: New file.
43221         * lib/tmpfile.c: New file.
43222         * m4/tmpfile.m4: New file.
43223         * MODULES.html.sh (func_all_modules): New section "Input/output".
43224
43225 2007-02-15  Bruno Haible  <bruno@clisp.org>
43226
43227         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
43228         (supports_delete_on_close): New function.
43229         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
43230
43231 2007-02-14  Bruno Haible  <bruno@clisp.org>
43232
43233         * modules/mbspcasecmp-tests: New file.
43234         * tests/test-mbspcasecmp.sh: New file.
43235         * tests/test-mbspcasecmp.c: New file.
43236
43237         New module mbspcasecmp.
43238         * modules/mbspcasecmp: New file.
43239         * lib/mbspcasecmp.c: New file.
43240         * lib/string_.h (strncasecmp): Change warning message.
43241         (mbspcasecmp): New declaration.
43242         * m4/mbspcasecmp.m4: New file.
43243         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43244         GNULIB_MBSPCASECMP.
43245         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
43246         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
43247
43248 2007-02-14  Bruno Haible  <bruno@clisp.org>
43249
43250         * modules/mbsncasecmp-tests: New file.
43251         * tests/test-mbsncasecmp.sh: New file.
43252         * tests/test-mbsncasecmp.c: New file.
43253
43254         New module mbsncasecmp.
43255         * modules/mbsncasecmp: New file.
43256         * lib/mbsncasecmp.c: New file.
43257         * lib/string_.h (mbsncasecmp): New declaration.
43258         * m4/mbsncasecmp.m4: New file.
43259         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43260         GNULIB_MBSNCASECMP.
43261         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
43262         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
43263
43264 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
43265
43266         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
43267         Verify that it doesn't overlap with our flags.
43268         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
43269         do not have the desired effect in multibyte locales; instead, use
43270         mbscasecmp.
43271         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
43272         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
43273         we don't require GNU fnmatch ourselves (if our users require it, they
43274         should do so explicitly).
43275
43276         Fix regex code so it doesn't rely on strcasecmp.
43277         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
43278         Otherwise, include gnulib's langinfo.h.
43279         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
43280         undesirable behavior in non-C locales.  Instead, rely on localecharset.
43281         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
43282         * modules/regex (FILES): Remove m4/codeset.m4.
43283         (Depends-on): Add localcharset.  Remove strcase.
43284
43285 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43286
43287         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
43288         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43289
43290 2007-02-13  Bruno Haible  <bruno@clisp.org>
43291
43292         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
43293         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43294
43295 2007-02-12  Bruno Haible  <bruno@clisp.org>
43296
43297         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43298         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
43299         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
43300         time warning rather than a link error.
43301
43302 2007-02-12  Bruno Haible  <bruno@clisp.org>
43303
43304         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
43305         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43306         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43307
43308 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43309
43310         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
43311         args, not 2.
43312
43313 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43314
43315         New module 'time', so that apps can include <time.h> as per
43316         POSIX and GNU instead of separate include files like time_r.h
43317         and timegm.h.  This implementation tries out a simpler approach
43318         for replacing decls in standard include files (as compared to
43319         the string module), somewhat as an experiment.
43320
43321         * config/srclist.txt: Comment out mktime.c for now.
43322         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
43323         since it doesn't apply any more.  Use generic wording instead.
43324         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
43325         'time'.
43326         * lib/time_.h, m4/time_h.m4, modules/time: New files.
43327         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
43328         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
43329         Don't include <sys/types.h>; no longer needed since we assume C89.
43330         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
43331         * lib/strftime.c: Likewise.
43332         * lib/time_r.c: Likewise.
43333         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
43334         * lib/nanosleep.c: Include <time.h> first, to check interface.
43335         * lib/strptime.c: Likewise.
43336         * lib/time_r.c: Likewise.
43337         * lib/timegm.c: Likewise.
43338         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
43339         needed.
43340         * lib/timegm.c: Don't include timegm.h; no longer needed.
43341         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
43342         time.h now handles any problems in that area.
43343         (struct timespec, nanosleep): Remove; time.h now arranges for these.
43344         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
43345         that time.h defines struct timespec.
43346         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
43347         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
43348         handles that.
43349         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
43350         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
43351         needed.  Set REPLACE_LOCALTIME.
43352         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
43353         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
43354         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
43355         nanosleep; time_h.m4 now does that.  Don't require
43356         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
43357         module handles this now.
43358         * modules/getdate (Depends-on): Remove timespec.  Add time.
43359         * modules/nanosleep (Depends-on): Likewise.
43360         * modules/stat-time (Depends-on): Likewise.
43361         * modules/nanosleep (Include): Include time.h, not timespec.h.
43362         * modules/strptime (Files): Remove lib/strptime.h.
43363         (Depends-on): Add extensions, time.
43364         (Include): Include time.h, not strptime.h.
43365         * modules/time_r (Files): Remove lib/time_r.h.
43366         (Depends-on): Add time.
43367         (Include): Include time.h, not time_r.h.
43368         * modules/timegm: Likewise.
43369         * modules/timespec (Description): Now does timespec-related decls
43370         of our own, instead of struct timespec itself.
43371         (Depends-on): Add time; remove extensions.
43372         (Maintainer): Add self.
43373         * modules/utimecmp (Depends-on): Add time; remove timespec.
43374         * modules/utimens (Depends-on): Likewise.
43375         * modules/xnanosleep (Depends-on): Likewise.
43376
43377 2007-02-11  Bruno Haible  <bruno@clisp.org>
43378
43379         * lib/c-strstr.c: Include allocsa.h.
43380         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43381         * lib/c-strcasestr.c: Include allocsa.h.
43382         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43383         * lib/strcasestr.c: Include allocsa.h.
43384         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43385         * lib/mbsstr.c: Include allocsa.h.
43386         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43387         allocsa/freesa instead of malloc/free.
43388         * lib/mbscasestr.c: Include allocsa.h.
43389         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43390         allocsa/freesa instead of malloc/free.
43391         * modules/c-strstr (Depends-on): Add allocsa.
43392         * modules/c-strcasestr (Depends-on): Likewise.
43393         * modules/strcasestr (Depends-on): Likewise.
43394         * modules/mbsstr (Depends-on): Likewise.
43395         * modules/mbscasestr (Depends-on): Likewise.
43396
43397 2007-02-11  Bruno Haible  <bruno@clisp.org>
43398
43399         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
43400
43401         * modules/mbsspn-tests: New file.
43402         * tests/test-mbsspn.sh: New file.
43403         * tests/test-mbsspn.c: New file.
43404
43405 2007-02-11  Bruno Haible  <bruno@clisp.org>
43406
43407         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
43408
43409         * modules/mbspbrk-tests: New file.
43410         * tests/test-mbspbrk.sh: New file.
43411         * tests/test-mbspbrk.c: New file.
43412
43413 2007-02-11  Bruno Haible  <bruno@clisp.org>
43414
43415         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
43416         unneeded cast.
43417
43418         * modules/mbscspn-tests: New file.
43419         * tests/test-mbscspn.sh: New file.
43420         * tests/test-mbscspn.c: New file.
43421
43422 2007-02-11  Bruno Haible  <bruno@clisp.org>
43423
43424         * modules/mbscasecmp-tests: New file.
43425         * tests/test-mbscasecmp.sh: New file.
43426         * tests/test-mbscasecmp.c: New file.
43427
43428 2007-02-11  Bruno Haible  <bruno@clisp.org>
43429
43430         Ensure O(n) worst-case complexity of mbscasestr.
43431         * lib/mbscasestr.c: Include stdbool.h.
43432         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43433         functions.
43434         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
43435         the bookkeeping indicates that it's worth it.
43436         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
43437
43438         * modules/mbscasestr-tests: New file.
43439         * tests/test-mbscasestr1.c: New file.
43440         * tests/test-mbscasestr2.sh: New file.
43441         * tests/test-mbscasestr2.c: New file.
43442         * tests/test-mbscasestr3.sh: New file.
43443         * tests/test-mbscasestr3.c: New file.
43444         * tests/test-mbscasestr4.sh: New file.
43445         * tests/test-mbscasestr4.c: New file.
43446         * m4/locale-tr.m4: New file.
43447
43448 2007-02-11  Bruno Haible  <bruno@clisp.org>
43449
43450         Ensure O(n) worst-case complexity of mbsstr.
43451         * lib/mbsstr.c: Include stdbool.h.
43452         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43453         functions.
43454         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
43455         bookkeeping indicates that it's worth it.
43456         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
43457
43458         * modules/mbsstr-tests: New file.
43459         * tests/test-mbsstr1.c: New file.
43460         * tests/test-mbsstr2.sh: New file.
43461         * tests/test-mbsstr2.c: New file.
43462         * tests/test-mbsstr3.sh: New file.
43463         * tests/test-mbsstr3.c: New file.
43464         * m4/locale-fr.m4: New file.
43465
43466 2007-02-11  Bruno Haible  <bruno@clisp.org>
43467
43468         * lib/mbsrchr.c (mbsrchr): Fix bug.
43469
43470         * modules/mbsrchr-tests: New file.
43471         * tests/test-mbsrchr.sh: New file.
43472         * tests/test-mbsrchr.c: New file.
43473
43474 2007-02-11  Bruno Haible  <bruno@clisp.org>
43475
43476         * lib/mbschr.c (mbschr): Fix bug.
43477
43478         * modules/mbschr-tests: New file.
43479         * tests/test-mbschr.sh: New file.
43480         * tests/test-mbschr.c: New file.
43481         * m4/locale-zh.m4: New file.
43482
43483 2007-02-11  Bruno Haible  <bruno@clisp.org>
43484
43485         Support for copying multibyte string iterators.
43486         * lib/mbiter.h: Include <string.h>.
43487         (mbiter_multi_copy): New function.
43488         (mbi_copy): New macro.
43489         * lib/mbuiter.h: Include <string.h>.
43490         (mbuiter_multi_copy): New function.
43491         (mbui_copy): New macro.
43492
43493 2007-02-11  Bruno Haible  <bruno@clisp.org>
43494
43495         New module mbslen.
43496         * modules/mbslen: New file.
43497         * lib/mbslen.c: New file.
43498         * lib/string_.h (mbslen): New declaration.
43499         * m4/mbslen.m4: New file.
43500         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43501         GNULIB_MBSLEN.
43502         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
43503         * MODULES.html.sh (Internationalization functions): Add mbslen.
43504
43505 2007-02-11  Bruno Haible  <bruno@clisp.org>
43506
43507         Ensure O(n) worst-case complexity of strcasestr substitute.
43508         * lib/strcasestr.c: Include stdbool.h.
43509         (knuth_morris_pratt): New function.
43510         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43511         bookkeeping indicates that it's worth it.
43512         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
43513
43514         * modules/strcasestr-tests: New file.
43515         * tests/test-strcasestr.c: New file.
43516
43517 2007-02-11  Bruno Haible  <bruno@clisp.org>
43518
43519         Ensure O(n) worst-case complexity of c_strcasestr.
43520         * lib/c-strcasestr.c: Include stdbool.h, string.h.
43521         (knuth_morris_pratt): New function.
43522         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
43523         the bookkeeping indicates that it's worth it.
43524         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
43525
43526         * modules/c-strcasestr-tests: New file.
43527         * tests/test-c-strcasestr.c: New file.
43528
43529 2007-02-11  Bruno Haible  <bruno@clisp.org>
43530
43531         Ensure O(n) worst-case complexity of c_strstr.
43532         * lib/c-strstr.c: Include stdbool.h, string.h.
43533         (knuth_morris_pratt): New function.
43534         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43535         bookkeeping indicates that it's worth it.
43536         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
43537
43538         * lib/c-strstr.c: Complete rewrite for maintainability.
43539
43540         * modules/c-strstr-tests: New file.
43541         * tests/test-c-strstr.c: New file.
43542
43543 2007-02-11  Bruno Haible  <bruno@clisp.org>
43544
43545         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
43546         5.2.1 and earlier, whereby \055 was treated just like the range
43547         delimiter '-'.
43548         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43549
43550 2007-02-08  Bruno Haible  <bruno@clisp.org>
43551
43552         * modules/regex (Depends-on): Add stdbool.
43553         Reported by Dalibor Topic <robilad@kaffe.org>.
43554
43555 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43556
43557         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
43558         Prefer returning from main to exiting from it.
43559         Remove unnecessary parens after sizeof.
43560
43561 2007-02-05  Bruno Haible  <bruno@clisp.org>
43562
43563         New module mbssep.
43564         * modules/mbssep: New file.
43565         * lib/mbssep.c: New file.
43566         * lib/string_.h (strsep): Add a conditional link warning.
43567         (mbssep): New declaration.
43568         * m4/mbssep.m4: New file.
43569         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43570         GNULIB_MBSSEP.
43571         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
43572         * MODULES.html.sh (Internationalization functions): Add mbssep.
43573
43574 2007-02-05  Bruno Haible  <bruno@clisp.org>
43575
43576         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
43577         Optimize search in case of 1 delimiter.
43578
43579 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43580
43581         * lib/acl.h: Include sys/types.h before sys/acl.h.
43582
43583 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43584
43585         Merge upstream fix for glibc bugzilla #3957:
43586
43587         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43588
43589         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43590         bit for RE_HAT_LISTS_NOT_NEWLINE.
43591         (build_charclass_op): Remove bogus comment.
43592
43593 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43594
43595         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43596
43597 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43598
43599         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43600         * lib/memmem.c [!defined _LIBC]: Include config.h.
43601
43602 2007-02-04  Bruno Haible  <bruno@clisp.org>
43603
43604         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43605         warning message.
43606
43607 2007-02-04  Bruno Haible  <bruno@clisp.org>
43608
43609         New module mbstok_r.
43610         * modules/mbstok_r: New file.
43611         * lib/mbstok_r.c: New file.
43612         * lib/string_.h (strtok_r): Change argument names to match the
43613         comments. Add a conditional link warning.
43614         (mbstok_r): New declaration.
43615         * m4/mbstok_r.m4: New file.
43616         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43617         GNULIB_MBSTOK_R.
43618         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43619         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43620
43621 2007-02-04  Bruno Haible  <bruno@clisp.org>
43622
43623         New module mbsspn.
43624         * modules/mbsspn: New file.
43625         * lib/mbsspn.c: New file.
43626         * lib/string_.h (strspn): Add a conditional link warning.
43627         (mbsspn): New declaration.
43628         * m4/mbsspn.m4: New file.
43629         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43630         GNULIB_MBSSPN.
43631         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43632         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43633
43634 2007-02-04  Bruno Haible  <bruno@clisp.org>
43635
43636         New module mbspbrk.
43637         * modules/mbspbrk: New file.
43638         * lib/mbspbrk.c: New file.
43639         * lib/string_.h (strpbrk): Add a conditional link warning.
43640         (mbspbrk): New declaration.
43641         * m4/mbspbrk.m4: New file.
43642         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43643         GNULIB_MBSPBRK.
43644         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43645         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43646
43647 2007-02-04  Bruno Haible  <bruno@clisp.org>
43648
43649         New module mbscspn.
43650         * modules/mbscspn: New file.
43651         * lib/mbscspn.c: New file.
43652         * lib/string_.h (strcspn): Add a conditional link warning.
43653         (mbscspn): New declaration.
43654         * m4/mbscspn.m4: New file.
43655         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43656         GNULIB_MBSCSPN.
43657         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43658         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43659
43660 2007-02-04  Bruno Haible  <bruno@clisp.org>
43661
43662         New module mbscasestr, reduced goal of strcasestr.
43663         * modules/mbscasestr: New file.
43664         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43665         (mbscasestr): Renamed from strcasestr.
43666         * lib/strcasestr.c: Don't include mbuiter.h.
43667         (strcasestr): Remove support for multibyte locales.
43668         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43669         Change the conditional link warning.
43670         (mbscasestr): New declaration.
43671         * m4/mbscasestr.m4: New file.
43672         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43673         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43674         REPLACE_STRCASESTR.
43675         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43677         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43678         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43679         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43680         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43681         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43682         (Depends-on): Remove mbuiter.
43683         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43684
43685 2007-02-04  Bruno Haible  <bruno@clisp.org>
43686
43687         Simplify handling of strncasecmp.
43688         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43689         the conditional link warning.
43690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43691         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43692         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43693         * modules/strcase (configure.ac): Don't invoke
43694         gl_STRING_MODULE_INDICATOR.
43695         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43696
43697 2007-02-04  Bruno Haible  <bruno@clisp.org>
43698
43699         New module mbscasecmp, reduced goal of strcasecmp.
43700         * modules/mbscasecmp: New file.
43701         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43702         (mbscasecmp): Renamed from strcasecmp.
43703         * lib/strcasecmp.c: Don't include mbuiter.h.
43704         (strcasecmp): Remove support for multibyte locales.
43705         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43706         Change the conditional link warning.
43707         (mbscasecmp): New declaration.
43708         * m4/mbscasecmp.m4: New file.
43709         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43710         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43711         REPLACE_STRCASECMP.
43712         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43713         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43714         GNULIB_MBSCASECMP.
43715         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43716         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43717         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43718         (Depends-on): Remove mbuiter.
43719         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43720
43721 2007-02-04  Bruno Haible  <bruno@clisp.org>
43722
43723         New module mbsstr. Remove module strstr.
43724         * modules/mbsstr: New file.
43725         * modules/strstr: Remove file.
43726         * lib/mbsstr.c: Renamed from lib/strstr.c.
43727         (mbsstr): Renamed from strstr.
43728         * lib/string_.h (strstr): Remove declaration. Change the conditional
43729         link warning.
43730         (mbsstr): New declaration.
43731         * m4/mbsstr.m4: New file.
43732         * m4/strstr.m4: Remove file.
43733         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43734         REPLACE_STRSTR.
43735         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43736         Don't initialize GNULIB_STRSTR.
43737         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43738         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43739         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43740         (Support for systems lacking ANSI C 89): Remove strstr.
43741
43742 2007-02-04  Bruno Haible  <bruno@clisp.org>
43743
43744         New module mbsrchr.
43745         * modules/mbsrchr: New file.
43746         * lib/mbsrchr.c: New file.
43747         * lib/string_.h (strrchr): Add a conditional link warning.
43748         (mbsrchr): New declaration.
43749         * m4/mbsrchr.m4: New file.
43750         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43751         GNULIB_MBSRCHR.
43752         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43753         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43754
43755 2007-02-04  Bruno Haible  <bruno@clisp.org>
43756
43757         New module mbschr.
43758         * modules/mbschr: New file.
43759         * lib/mbschr.c: New file.
43760         * lib/string_.h (strchr): Add a conditional link warning.
43761         (mbschr): New declaration.
43762         * m4/mbschr.m4: New file.
43763         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43764         GNULIB_MBSCHR.
43765         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43766         * MODULES.html.sh (Internationalization functions): Add mbschr.
43767
43768 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43769
43770         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43771
43772         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43773
43774 2007-02-04  Bruno Haible  <bruno@clisp.org>
43775
43776         New module description section 'configure.ac-early'.
43777         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43778         (func_get_autoconf_early_snippet): New function.
43779         (func_import, func_create_testdir): Use it. Remove special cases for
43780         modules 'extensions' and 'lock'.
43781         * modules/extensions (configure.ac-early): Require
43782         gl_USE_SYSTEM_EXTENSIONS.
43783         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43784
43785 2007-02-04  Bruno Haible  <bruno@clisp.org>
43786
43787         Make use of gcj-4.3's -fsource and -ftarget option.
43788         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43789         and if so try the options -fsource and -ftarget.
43790         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43791         source_version, ftarget_option, target_version arguments.
43792         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43793         (is_envjavac_oldgcj_14_14_usable): Renamed from
43794         is_envjavac_gcj_14_14_usable.
43795         (is_envjavac_oldgcj_14_13_usable): Renamed from
43796         is_envjavac_gcj_14_13_usable.
43797         (is_gcj_present): Update.
43798         (is_gcj_43, is_gcj43_usable): New functions.
43799         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43800         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43801         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43802         try the options -fsource and -ftarget.
43803
43804 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43805
43806         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43807         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43808         larger value.
43809
43810 2007-02-03  Jim Meyering  <jim@meyering.net>
43811
43812         Give tools a better chance to allocate space for very large buffers.
43813         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43814
43815         Make pwd and readlink work also when run with an unreadable parent dir
43816         on systems with openat support.
43817         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43818         provided getcwd function, even when we have openat support.
43819         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43820
43821 2007-02-02  Bruno Haible  <bruno@clisp.org>
43822
43823         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43824         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43825         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43826         portability problems if one of these functions is only used on specific
43827         platforms.
43828         Reported by Paul Eggert.
43829
43830 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
43831
43832         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
43833         is causing more trouble than it's curing.
43834         * lib/regex_internal.h (__mempcpy): Remove.
43835         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
43836         (and make the code a tad smaller to boot).
43837         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
43838
43839 2007-02-02  Jim Meyering  <jim@meyering.net>
43840
43841         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
43842         section, not in the Makefile.am: one.
43843
43844 2007-02-02  Eric Blake  <ebb9@byu.net>
43845
43846         * lib/strchrnul.c: Always include config.h first.
43847
43848         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
43849         gnulib strstr is not necessary here.
43850
43851 2007-02-02  Simon Josefsson  <simon@josefsson.org>
43852
43853         * m4/socklen.m4: Fix typo.
43854
43855 2007-02-02  Eric Blake  <ebb9@byu.net>
43856
43857         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
43858         * modules/netinet_in (Makefile.am): Likewise.
43859
43860 2007-02-01  Bruno Haible  <bruno@clisp.org>
43861
43862         * lib/string_.h (GL_LINK_WARNING): New macro.
43863         (strcasecmp, strstr, strcasestr): If provided by the system,
43864         conditionally define as a macro that leads to a warning instead of to
43865         an error.
43866         (strncasecmp): Conditionally define as a macro that leads to a warning.
43867
43868 2007-02-01  Karl Berry  <karl@gnu.org>
43869
43870         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
43871
43872 2007-02-01  Bruno Haible  <bruno@clisp.org>
43873
43874         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
43875         renamings.
43876
43877 2007-02-01  Eric Blake  <ebb9@byu.net>
43878
43879         * modules/regex (Depends-on): Revert dependence on mempcpy.
43880         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
43881         module's definition of mempcpy.
43882         Reported by Paul Eggert.
43883
43884 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
43885
43886         * lib/string_.h: If the gnulib module XYZ is not present, undefine
43887         the symbol XYZ before redefining it.  This fixes a problem with
43888         programs that don't use XYZ, when compiled on systems that define
43889         XYZ to something else.
43890
43891 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
43892
43893         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
43894         occurs when "mkdir -m foo" creates a setgid directory that is (1)
43895         writeable to group or other and (2) is intended to have a special
43896         mode bit that is set or cleared.  In such a case, the directory
43897         should be neither group- nor other-writeable until the special
43898         mode bits are right.
43899
43900 2007-01-31  Eric Blake  <ebb9@byu.net>
43901
43902         * modules/mountlist (Depends-on): Add strstr.
43903
43904         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
43905         bug.
43906         * modules/string (Makefile.am): Remove redundant replacement.
43907         * modules/regex (Depends-on): Add mempcpy.
43908
43909 2007-01-31  Bruno Haible  <bruno@clisp.org>
43910
43911         New module description field 'Link'.
43912         * gnulib-tool (func_usage): Document --extract-link-directive.
43913         (sed_extract_prog): Recognize 'Link' directive.
43914         (func_get_link_directive): New function.
43915         (func_import): Show summary of link directives.
43916         Handle --extract-link-directive option.
43917         * modules/acl (Link): New section.
43918         * modules/clock-time (Link): New section.
43919         * modules/euidaccess (Link): New section.
43920         * modules/gettext (Link): New section.
43921         * modules/iconv (Link): New section.
43922         * modules/lock (Link): New section.
43923         * modules/nanosleep (Link): New section.
43924         * modules/readline (Link): New section.
43925
43926 2007-01-27  Bruno Haible  <bruno@clisp.org>
43927
43928         Enforce the use of gnulib modules for unportable <string.h> functions.
43929         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
43930         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
43931         (gl_HEADER_STRING_H_BODY): Require it.
43932         * lib/string_.h: If the gnulib module XYZ is not present, redefine
43933         the symbol XYZ to one that gives a link error.
43934         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
43935         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
43936         * modules/mempcpy (configure.ac): Likewise.
43937         * modules/memrchr (configure.ac): Likewise.
43938         * modules/stpcpy (configure.ac): Likewise.
43939         * modules/stpncpy (configure.ac): Likewise.
43940         * modules/strcase (configure.ac): Likewise.
43941         * modules/strcasestr (configure.ac): Likewise.
43942         * modules/strchrnul (configure.ac): Likewise.
43943         * modules/strdup (configure.ac): Likewise.
43944         * modules/strndup (configure.ac): Likewise.
43945         * modules/strnlen (configure.ac): Likewise.
43946         * modules/strpbrk (configure.ac): Likewise.
43947         * modules/strsep (configure.ac): Likewise.
43948         * modules/strstr (configure.ac): Likewise.
43949         * modules/strtok_r (configure.ac): Likewise.
43950
43951 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
43952
43953         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
43954
43955 2007-01-30  Jim Meyering  <jim@meyering.net>
43956
43957         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
43958
43959 2007-01-29  Bruno Haible  <bruno@clisp.org>
43960
43961         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
43962         * lib/execute.c: Likewise.
43963         * lib/pipe.c: Likewise.
43964         * lib/printf-args.h: Likewise.
43965         * lib/printf-args.c: Likewise.
43966         * lib/printf-parse.c: Likewise.
43967         * lib/vasnprintf.c: Likewise.
43968
43969 2007-01-29  Eric Blake  <ebb9@byu.net>
43970
43971         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
43972         declaration.
43973
43974 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43975
43976         * lib/strptime.h (strptime): Use 'restrict' for args where
43977         POSIX requires this.
43978         * lib/strptime.c (strptime): Likewise.
43979         Change license notice from LGPL to GPL, since gnulib-tool will
43980         change this as needed.
43981         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
43982         defined.
43983         Include "strptime.h" first, to check interface.
43984         Do not #undef _LIBC and _NL_CURRENT.
43985         Do not include <stdlib.h>; no longer needed.
43986         Include "time_r.h" and declare ptime_locale_status
43987         only if _LIBC is not defined.
43988         (__P): Remove unused macro.
43989         (match_string): Bring back glibc version, but use it only if _LIBC
43990         is defined.
43991         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
43992         Remove unnecessary assertion and abort() call.
43993         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
43994         * m4/strptime.m4: Fix serial number comment.
43995         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
43996         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
43997         (Depends-on): Add time_r.
43998
43999 2007-01-29  Bruno Haible  <bruno@clisp.org>
44000
44001         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44002         strptime.
44003         * modules/strptime (Depends-on): Add stdbool.
44004         * lib/strptime.h: Include <time.h> always. Add comments.
44005
44006 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44007
44008         * modules/strptime: New file.
44009         * lib/strptime.h: New file.
44010         * lib/strptime.c: New file.
44011         * m4/strptime.m4: New file.
44012
44013 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44014
44015         * MODULES.html.sh: New module mpsort.
44016         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
44017
44018         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
44019         a circularity problem with HP-UX ia64 reported by Bob Proulx in
44020         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
44021         All uses changed.
44022         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
44023         All uses changed.
44024         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
44025         to _Restrict_.
44026         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
44027         the parameter matches the prototype.
44028
44029 2007-01-28  Jim Meyering  <jim@meyering.net>
44030
44031         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
44032         sys/time.h here, reverting that part of the previous patch:
44033         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
44034
44035 2007-01-28  Bruno Haible  <bruno@clisp.org>
44036
44037         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
44038         value of $(SYS_TIME_H).
44039         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
44040         remove it conditionally, too. [added by Jim Meyering]
44041         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
44042         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44043         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
44044         GETTIMEOFDAY_REPLACEMENT to 1.
44045
44046 2007-01-28  Bruno Haible  <bruno@clisp.org>
44047
44048         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
44049         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
44050         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
44051         Set UNISTD_H instead of UNISTD_H2.
44052         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
44053
44054 2007-01-28  Bruno Haible  <bruno@clisp.org>
44055
44056         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
44057         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
44058
44059 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44060
44061         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
44062         (func_create_testdir): Ensure C locale for `grep' and `tr'
44063         character ranges.
44064         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
44065         ACLOCAL_AMFLAGS parsing state machine.
44066
44067 2007-01-27  Bruno Haible  <bruno@clisp.org>
44068
44069         * modules/unistr/base: Update.
44070
44071 2007-01-27  Bruno Haible  <bruno@clisp.org>
44072
44073         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
44074         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
44075         * modules/unistr/u32-mbtouc-unsafe: Renamed from
44076         modules/unistr/u32-mbtouc.
44077         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
44078         * lib/unistr.h: Update.
44079         * lib/linebreak.c: Update.
44080         * modules/unistr/u32-mbtouc: Renamed from
44081         modules/unistr/u32-mbtouc-safe.
44082         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
44083         * lib/unistr.h: Update.
44084         * lib/unistr/u32-to-u8.c: Update.
44085         * lib/unistr/u32-to-u16.c: Update.
44086
44087 2007-01-27  Bruno Haible  <bruno@clisp.org>
44088
44089         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
44090         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
44091         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
44092         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
44093         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
44094         * modules/unistr/u16-mbtouc-unsafe: Renamed from
44095         modules/unistr/u16-mbtouc.
44096         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
44097         * lib/unistr.h: Update.
44098         * lib/linebreak.c: Update.
44099         * modules/linebreak: Update.
44100         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
44101         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
44102         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
44103         * modules/unistr/u16-mbtouc: Renamed from
44104         modules/unistr/u16-mbtouc-safe.
44105         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
44106         * lib/unistr.h: Update.
44107         * lib/unistr/u16-to-u8.c: Update.
44108         * modules/unistr/u16-to-u8: Update.
44109         * lib/unistr/u16-to-u32.c: Update.
44110         * modules/unistr/u16-to-u32: Update.
44111
44112 2007-01-27  Bruno Haible  <bruno@clisp.org>
44113
44114         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
44115         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
44116         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
44117         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
44118         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
44119         * modules/unistr/u8-mbtouc-unsafe: Renamed from
44120         modules/unistr/u8-mbtouc.
44121         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
44122         * lib/unistr.h: Update.
44123         * lib/striconveh.c: Update.
44124         * modules/striconveh: Update.
44125         * lib/linebreak.c: Update.
44126         * modules/linebreak: Update.
44127         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
44128         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
44129         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
44130         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
44131         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
44132         * lib/unistr.h: Update.
44133         * lib/striconveh.c: Update.
44134         * modules/striconveh: Update.
44135         * lib/unistr/u8-to-u16.c: Update.
44136         * modules/unistr/u8-to-u16: Update.
44137         * lib/unistr/u8-to-u32.c: Update.
44138         * modules/unistr/u8-to-u32: Update.
44139
44140 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44141
44142         Sync from Libtool.
44143         * lib/argz.c: Do not include strings.h nor memory.h, include
44144         string.h unconditionally.  Patch by Simon Josefsson.
44145
44146 2007-01-27  Bruno Haible  <bruno@clisp.org>
44147
44148         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
44149         from gl_HEADER_STRING_H_BODY.
44150         (gl_HEADER_STRING_H_BODY): Require it.
44151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
44152         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44153         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44154         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44155         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44156         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
44157         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44158         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44159         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
44160         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44161         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44162         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
44163         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44164         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44165         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44166
44167 2007-01-27  Bruno Haible  <bruno@clisp.org>
44168
44169         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
44170         check_PROGRAMS into noinst_PROGRAMS.
44171         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
44172         check_PROGRAMS in this case.
44173         (func_import): Set for_test to false.
44174         (func_create_testdir): Set for_test to true.
44175
44176 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44177             Bruno Haible  <bruno@clisp.org>
44178
44179         * modules/strcasestr (Files): Remove lib/strcasestr.h.
44180         (Depends-on): Add string.
44181         (Includes): Use <string.h> instead of strcasestr.h.
44182         * modules/string (Makefile.am): Also substitute the value of
44183         REPLACE_STRCASESTR.
44184         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
44185         assume strcasestr is declared in <string.h> not <strings.h>. Also
44186         set REPLACE_STRCASESTR.
44187         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
44188         REPLACE_STRCASESTR.
44189         * lib/strcasestr.h: Remove file.
44190         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
44191         * lib/string_.h (strcasestr): New declaration.
44192
44193 2007-01-27  Bruno Haible  <bruno@clisp.org>
44194
44195         * lib/string_.h: Use 'extern'.
44196
44197 2007-01-27  Jim Meyering  <jim@meyering.net>
44198
44199         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
44200         of set-but-not-used local, "q".
44201
44202         * lib/mempcpy.c: Include <config.h> before <string.h>.
44203         This fixes a compilation error on HP-UX, due to the system's
44204         "restrict"-using mempcpy prototype.
44205
44206 2007-01-26  Bruno Haible  <bruno@clisp.org>
44207
44208         Small optimization.
44209         * lib/javacomp.c: Include c-strstr.h.
44210          (is_envjavac_gcj): Use c_strstr instead of strstr.
44211         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
44212
44213 2007-01-26  Bruno Haible  <bruno@clisp.org>
44214
44215         * MODULES.html.sh (Unicode string functions): Add the new modules.
44216
44217         * modules/uniconv/u32-strconv-to-locale: New file.
44218         * lib/uniconv/u32-strconv-to-locale.c: New file.
44219
44220         * modules/uniconv/u16-strconv-to-locale: New file.
44221         * lib/uniconv/u16-strconv-to-locale.c: New file.
44222
44223         * modules/uniconv/u8-strconv-to-locale: New file.
44224         * lib/uniconv/u8-strconv-to-locale.c: New file.
44225
44226         * modules/uniconv/u32-strconv-from-locale: New file.
44227         * lib/uniconv/u32-strconv-from-locale.c: New file.
44228
44229         * modules/uniconv/u16-strconv-from-locale: New file.
44230         * lib/uniconv/u16-strconv-from-locale.c: New file.
44231
44232         * modules/uniconv/u8-strconv-from-locale: New file.
44233         * lib/uniconv/u8-strconv-from-locale.c: New file.
44234
44235         * modules/uniconv/u32-strconv-to-enc: New file.
44236         * lib/uniconv/u32-strconv-to-enc.c: New file.
44237         * modules/uniconv/u32-strconv-to-enc-tests: New file.
44238         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
44239
44240         * modules/uniconv/u16-strconv-to-enc: New file.
44241         * lib/uniconv/u16-strconv-to-enc.c: New file.
44242         * lib/uniconv/u-strconv-to-enc.h: New file.
44243         * modules/uniconv/u16-strconv-to-enc-tests: New file.
44244         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
44245
44246         * modules/uniconv/u8-strconv-to-enc: New file.
44247         * lib/uniconv/u8-strconv-to-enc.c: New file.
44248         * modules/uniconv/u8-strconv-to-enc-tests: New file.
44249         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
44250
44251         * modules/uniconv/u32-strconv-from-enc: New file.
44252         * lib/uniconv/u32-strconv-from-enc.c: New file.
44253         * modules/uniconv/u32-strconv-from-enc-tests: New file.
44254         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
44255
44256         * modules/uniconv/u16-strconv-from-enc: New file.
44257         * lib/uniconv/u16-strconv-from-enc.c: New file.
44258         * modules/uniconv/u16-strconv-from-enc-tests: New file.
44259         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
44260
44261         * modules/uniconv/u8-strconv-from-enc: New file.
44262         * lib/uniconv/u8-strconv-from-enc.c: New file.
44263         * lib/uniconv/u-strconv-from-enc.h: New file.
44264         * modules/uniconv/u8-strconv-from-enc-tests: New file.
44265         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
44266
44267         * modules/uniconv/u32-conv-from-enc: New file.
44268         * lib/uniconv/u32-conv-from-enc.c: New file.
44269         * modules/uniconv/u32-conv-from-enc-tests: New file.
44270         * tests/uniconv/test-u32-conv-from-enc.c: New file.
44271
44272         * modules/uniconv/u16-conv-from-enc: New file.
44273         * lib/uniconv/u16-conv-from-enc.c: New file.
44274         * lib/uniconv/u-conv-from-enc.h: New file.
44275         * modules/uniconv/u16-conv-from-enc-tests: New file.
44276         * tests/uniconv/test-u16-conv-from-enc.c: New file.
44277
44278         * modules/uniconv/u8-conv-from-enc: New file.
44279         * lib/uniconv/u8-conv-from-enc.c: New file.
44280         * modules/uniconv/u8-conv-from-enc-tests: New file.
44281         * tests/uniconv/test-u8-conv-from-enc.c: New file.
44282
44283         * modules/uniconv/base: New file.
44284         * lib/uniconv.h: New file.
44285
44286 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44287
44288         * doc/gnulib-tool.texi (Initial import): Update to match current
44289         behavior with strdup module.
44290         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
44291         * lib/memmem.h: Remove; all uses removed.  This is now done
44292         by <string.h>.
44293         * lib/mempcpy.h: Likewise.
44294         * lib/memrchr.h: Likewise.
44295         * lib/stpcpy.h: Likewise.
44296         * lib/stpncpy.h: Likewise.
44297         * lib/strcase.h: Likewise.
44298         * lib/strchrnul.h: Likewise.
44299         * lib/strdup.h: Likewise.
44300         * lib/strndup.h: Likewise.
44301         * lib/strnlen.h: Likewise.
44302         * lib/strpbrk.h: Likewise.
44303         * lib/strsep.h: Likewise.
44304         * lib/strstr.h: Likewise.
44305         * lib/strtok_r.h: Likewise.
44306         * lib/string_.h: New file.
44307         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
44308         Rely on <string.h> instead.
44309         * lib/canon-host.c: Likewise.
44310         * lib/chdir-long.c: Likewise.
44311         * lib/concatpath.c: Likewise.
44312         * lib/exclude.c: Likewise.
44313         * lib/fchdir.c: Likewise.
44314         * lib/getaddrinfo.c: Likewise.
44315         * lib/getcwd.c: Likewise.
44316         * lib/getsubopt.c: Likewise.
44317         * lib/glob.c: Likewise.
44318         * lib/hard-locale.c: Likewise.
44319         * lib/iconvme.c: Likewise.
44320         * lib/javacomp.c: Likewise.
44321         * lib/mempcpy.c: Likewise.
44322         * lib/memrchr.c: Likewise.
44323         * lib/regex_internal.h: Likewise.
44324         * lib/stpncpy.c: Likewise.
44325         * lib/strcasecmp.c: Likewise.
44326         * lib/strchrnul.c: Likewise.
44327         * lib/strdup.c: Likewise.
44328         * lib/striconv.c: Likewise.
44329         * lib/striconveh.c: Likewise.
44330         * lib/striconveha.c: Likewise.
44331         * lib/strncasecmp.c: Likewise.
44332         * lib/strndup.c: Likewise.
44333         * lib/strnlen.c: Likewise.
44334         * lib/strsep.c: Likewise.
44335         * lib/strstr.c: Likewise.
44336         * lib/strtok_r.c: Likewise.
44337         * lib/userspec.c: Likewise.
44338         * lib/w32spawn.h: Likewise.
44339         * lib/xstrndup.c: Likewise.
44340         * lib/mountlist.c (strstr): Remove decl.
44341         * m4/string_h.m4: New file.
44342         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
44343         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
44344         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
44345         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
44346         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
44347         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
44348         Set REPLACE_STRCASECMP if necessary.
44349         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
44350         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
44351         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
44352         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
44353         HAVE_DECL_STRDUP if necessary.
44354         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
44355         since gl_FUNC_STRNDUP does that now.
44356         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
44357         Check for decl here...
44358         (gl_PREREQ_STRNLEN): ... not here.
44359         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
44360         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
44361         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
44362         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
44363         necessary.
44364         * modules/string: New file.
44365         * modules/memmem (Files): Remove special-purpose include file.
44366         (Depends-on): Add string.
44367         (Include): Include <string.h>, not the removed file.
44368         * modules/mempcpy: Likewise.
44369         * modules/memrchr: Likewise.
44370         * modules/stpcpy: Likewise.
44371         * modules/stpncpy: Likewise.
44372         * modules/strcase: Likewise.
44373         * modules/strchrnul: Likewise.
44374         * modules/strdup: Likewise.
44375         * modules/strndup: Likewise.
44376         * modules/strnlen: Likewise.
44377         * modules/strpbrk: Likewise.
44378         * modules/strsep: Likewise.
44379         * modules/strstr: Likewise.
44380         * modules/strtok_r: Likewise.
44381         * tests/test-dirname.c: Don't include "strdup.h", since
44382         <string.h> now suffices.
44383         * tests/test-memmem.c: Don't include "memmem.h", since
44384         <string.h> now suffices.
44385
44386 2007-01-25  Bruno Haible  <bruno@clisp.org>
44387
44388         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
44389         *resultp is 0.
44390
44391         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
44392         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
44393         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
44394         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
44395
44396         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
44397         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
44398         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
44399         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
44400         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
44401         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
44402
44403 2007-01-24  Bruno Haible  <bruno@clisp.org>
44404
44405         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
44406         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
44407         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
44408         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
44409         gl_FUNC_FTS_CORE.
44410         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
44411         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
44412         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44413         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
44414         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
44415         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
44416         gl_FUNC_FCHOWNAT.
44417         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
44418         gl_FUNC_STRFTIME.
44419         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
44420         Reported by Ralf Wildenhues.
44421
44422 2007-01-24  Bruno Haible  <bruno@clisp.org>
44423
44424         Drop AC_REQUIRE calls that are redundant with the module dependencies.
44425         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
44426         gl_GETADDRINFO.
44427         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
44428         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
44429         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
44430
44431 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
44432
44433         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
44434         Don't use 'exit'; just return from 'main'.
44435         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
44436
44437         * lib/fnmatch_.h: Readjust white space and comments to match
44438         glibc, to avoid spurious diffs.
44439
44440 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44441
44442         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
44443         2004-12-01 change by Jakub Jelinek, since this code won't compile
44444         if !LIBC.  Problem reported by Bob Proulx.
44445
44446 2007-01-23  Bruno Haible  <bruno@clisp.org>
44447
44448         * lib/striconveh.c: Include c-strcaseeq.h.
44449         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
44450         * modules/striconveh (Depends-on): Add c-strcaseeq.
44451
44452 2007-01-23  Bruno Haible  <bruno@clisp.org>
44453
44454         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
44455
44456         * modules/c-strcaseeq: New file.
44457         * lib/c-strcaseeq.h: New file.
44458
44459         * modules/streq: New file.
44460         * lib/streq.h: New file.
44461
44462 2007-01-23  Bruno Haible  <bruno@clisp.org>
44463
44464         * modules/striconveha-tests: New file.
44465         * tests/test-striconveha.c: New file.
44466
44467         * lib/striconveha.h: Include <stdbool.h>.
44468         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
44469         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
44470         (mem_iconveha_notranslit): Renamed from mem_iconveha.
44471         (mem_iconveha): New function.
44472         (str_iconveha_notranslit): Renamed from str_iconveha.
44473         (str_iconveha): New function.
44474         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
44475         c-strcase.
44476
44477 2007-01-23  Bruno Haible  <bruno@clisp.org>
44478
44479         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
44480         encodings without forgiving before trying any encoding with handler.
44481         (str_iconveha): Try all encodings without forgiving before trying any
44482         encoding with handler.
44483
44484 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44485
44486         Import the following changes from libc.
44487
44488         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44489
44490         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
44491
44492         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44493
44494         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
44495         normal_bracket label.
44496
44497         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
44498
44499         [BZ #361]
44500         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
44501         to normal_bracket after fetching the next character.
44502
44503 2007-01-22  Bruno Haible  <bruno@clisp.org>
44504
44505         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
44506         argument.
44507         * lib/striconveh.c (iconv_carefully_1): New function.
44508         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
44509         argument.
44510         (str_cd_iconveh): Update.
44511         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
44512         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
44513         * tests/test-striconveh.c (MAGIC): New macro.
44514         (new_offsets): New function.
44515         (main): Test call with and without offsets.
44516
44517 2007-01-22  Bruno Haible  <bruno@clisp.org>
44518
44519         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
44520         * modules/sys_select (Makefile.am): Likewise.
44521         * modules/sys_socket (Makefile.am): Likewise.
44522         * modules/sys_time (Makefile.am): Likewise.
44523
44524 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44525
44526         * modules/gettimeofday (License): Change from GPL to LGPL, since
44527         gettimeofday is a library function.
44528
44529 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44530
44531         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
44532
44533 2007-01-21  Bruno Haible  <bruno@clisp.org>
44534
44535         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
44536
44537 2007-01-21  Bruno Haible  <bruno@clisp.org>
44538
44539         * modules/striconveha: New file.
44540         * lib/striconveha.h: New file.
44541         * lib/striconveha.c: New file.
44542         * MODULES.html.sh (Internationalization functions): Add striconveha.
44543         * lib/striconv.c (str_iconv): Optimize the case of an empty input
44544         string.
44545         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
44546
44547 2007-01-21  Bruno Haible  <bruno@clisp.org>
44548
44549         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
44550         * lib/striconveh.c (str_iconveh): Likewise.
44551
44552 2007-01-21  Bruno Haible  <bruno@clisp.org>
44553
44554         * lib/striconveh.h (mem_iconveh): New declaration.
44555         * lib/striconveh.c (mem_iconveh): New function.
44556         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
44557
44558 2007-01-21  Bruno Haible  <bruno@clisp.org>
44559
44560         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
44561
44562         * lib/striconveh.h (mem_cd_iconveh): Change specification.
44563         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
44564         original result buffer.
44565         (str_cd_iconveh): Update.
44566         * tests/test-striconveh.c (main): Update.
44567
44568         * lib/striconv.h (mem_cd_iconv): Change specification.
44569         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
44570         result buffer.
44571         (str_cd_iconv): Update.
44572         * tests/test-striconv.c (main): Update.
44573
44574 2007-01-21  Bruno Haible  <bruno@clisp.org>
44575
44576         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
44577
44578 2007-01-20  Jim Meyering  <jim@meyering.net>
44579
44580         * lib/userspec.c (parse_with_separator): If a user or group string
44581         starts with "+", skip the corresponding name-to-ID look-up, since
44582         such a look-up must fail: user and group names may not include "+".
44583
44584 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44585
44586         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44587         since we now assume the sys_time module.
44588         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44589         check for sys/time.h; no longer needed.
44590         * modules/poll (Depends-on): Depend on sys_time.
44591
44592 2007-01-18  Bruno Haible  <bruno@clisp.org>
44593
44594         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44595         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44596
44597         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44598         gettimeofday.
44599
44600         * tests/test-gettimeofday.c: Include <time.h>.
44601         (dummy): Remove variable.
44602
44603         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44604         gl_HEADER_SYS_TIME_H.
44605         (gl_HEADER_SYS_TIME_H): New macro.
44606
44607         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44608         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44609         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44610         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44611         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44612         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44613         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44614         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44615         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44616         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44617         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44618
44619         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44620         last change; it caused a compilation error when cross-compiling to
44621         Cygwin.
44622
44623 2007-01-18  Jim Meyering  <jim@meyering.net>
44624
44625         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44626         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44627         than the race-prone "test -d sys || mkdir sys".
44628         (configure.ac): Use AC_PROG_MKDIR_P.
44629         * modules/sys_select: Likewise.
44630         * modules/sys_socket: Likewise.
44631         * modules/sys_time: Likewise.
44632
44633 2007-01-18  Eric Blake  <ebb9@byu.net>
44634
44635         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44636         replace gettimeofday.
44637         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44638         name, to avoid infinite recursion.
44639
44640 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44641
44642         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44643         module sys_time.
44644         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44645         assume timespec.h defines struct timeval.
44646         * lib/settime.c: Likewise.
44647         * lib/utimens.c: Likewise.
44648         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44649         since we now assume the gettimeofday module.
44650         * lib/tempname.c (__gen_tempname): Likewise.
44651         * lib/gettimeofday.h: Remove.
44652         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44653         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44654         Include <time.h>, for 'time()'.
44655         (localtime_buffer_addr): Also use this workaround if
44656         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44657         to simplify the uses.  All uses changed.
44658         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44659         that #undef is inside {}, and 'const' follows type name consistently.
44660         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44661         (gettimeofday): Do not use the maximum possible value for
44662         tv->tv_usec, since that might break usages other than ls.c.
44663         Instead, we'll leave ls.c alone.  This undoes today's patch
44664         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44665         we've never observed the problem but might as well keep the
44666         canary.
44667         * lib/nanosleep.c: Include timespec.h first, for interface check.
44668         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44669         now assume the sys_time module.
44670         * lib/tempname.c: Likewise.
44671         * lib/timespec.h: Likewise.
44672         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44673         needed.
44674         * lib/strftime.c: Likewise.
44675         * lib/timespec.h: Likewise.
44676         * lib/posixtm.c: Include posixtm.h first, for interface check.
44677         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44678         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44679         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44680         * lib/sys_time_.h: New file.
44681         * lib/timespec.h (struct timespec): Use long int, not long.
44682         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44683         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44684         Remove obsolescent call to AC_HEADER_TIME.
44685         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44686         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44687         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44688         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44689         Likewise.
44690         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44691         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44692         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44693         into the sys_time module.  Check for gettimeofday just once.
44694         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44695         for gettimeofday signature to just check the signature.  Merely
44696         compile it, since linking doesn't test signature.  Improve test for
44697         whether gettimeofday.o is actually needed.
44698         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44699         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44700         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44701         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44702         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44703         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44704         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44705         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44706         than worrying about sys/time.h.
44707         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44708         Don't bother worrying about TIME_WITH_SYS_TIME.
44709         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44710         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44711         * m4/sys_time_h.m4: New file.
44712         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44713         Don't include sys/time.h.  Return from main rather than exiting.
44714         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44715         all uses changed.
44716         * modules/gethrxtime (Depends-on): Add sys_time.
44717         * modules/gettime (Depends-on): Likewise.
44718         * modules/gettimeofday (Depends-on): Likewise.
44719         * modules/nanosleep (Depends-on): Likewise.
44720         * modules/settime (Depends-on): Likewise.
44721         * modules/tempname (Depends-on): Likewise.
44722         * modules/utimens (Depends-on): Likewise.
44723         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44724         (Include:) Change back to <sys/time.h>.
44725         (Maintainer:) Add self.
44726         * modules/sys_time: New file.
44727         * modules/tempname (Depends-on): Add gettimeofday.
44728         * tests/test-gettimeofday.c: Include <sys/time.h>
44729         rather than gettimeofday.h.
44730
44731 2007-01-17  Bruno Haible  <bruno@clisp.org>
44732
44733         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44734         the license default to GPL.
44735         (func_create_testdir): Don't complain if a module is LGPL and its
44736         tests module depends on GPLed modules.
44737
44738 2007-01-17  Bruno Haible  <bruno@clisp.org>
44739
44740         * lib/gettimeofday.c (gettimeofday): Add code for the case
44741         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44742         maximum possible value for tv->tv_usec, rather than the minimum one.
44743
44744 2005-10-08  Martin Lambers  <marlam@marlam.de>
44745 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44746 2007-01-16  Bruno Haible  <bruno@clisp.org>
44747
44748         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44749         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44750         gl_FUNC_GETTIMEOFDAY.
44751         (Include): Add gettimeofday.h.
44752         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44753         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44754         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44755         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44756         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44757         * lib/gettimeofday.h: New file.
44758         * lib/gettimeofday.c: Include <sys/timeb.h>.
44759         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44760         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44761         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44762         fall back on time().
44763
44764         * tests/test-gettimeofday.c: New file.
44765         * modules/gettimeofday-tests: New file.
44766
44767 2007-01-16  Eric Blake  <ebb9@byu.net>
44768
44769         * modules/fnmatch (Depends-on): Depend on wchar.
44770         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44771         * m4/fnmatch.m4: Likewise.
44772         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44773         * m4/mbchar.m4: Likewise.
44774         * modules/mbswidth (Depends-on): Depend on wchar.
44775         * lib/mbswidth.c: Assume <wchar.h>.
44776         * m4/mbswidth.m4: Likewise.
44777         * modules/quotearg (Depends-on): Depend on wchar.
44778         * lib/quotearg.c: Assume <wchar.h>.
44779         * m4/quotearg.m4: Likewise.
44780         * modules/regex (Depends-on): Depend on wchar.
44781         * lib/regex_internal.h: Assume <wchar.h>.
44782         * m4/regex.m4: Likewise.
44783         * modules/stdint (Depends-on): Depend on wchar.
44784         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44785         * m4/stdint.m4: Likewise.
44786         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44787         * modules/strftime (Depends-on): Depend on wchar.
44788         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44789         * modules/strtol (Depends-on): Depend on wchar.
44790         * lib/strtol.c: Assume <wchar.h>.
44791         * modules/wcwidth (Depends-on): Depend on wchar.
44792         * lib/wcwidth.h: Assume <wchar.h>.
44793         * m4/wcwidth.m4: Likewise.
44794
44795 2007-01-16  Bruno Haible  <bruno@clisp.org>
44796
44797         * modules/csharpexec-script: New, created from...
44798         * modules/csharpexec: ... this.
44799
44800 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44801
44802         * modules/javaexec-script: New, created from...
44803         * modules/javaexec: ... this.
44804
44805 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44806
44807         * modules/poll (Dependencies): Add sys_select.
44808
44809 2007-01-15  Jim Meyering  <jim@meyering.net>
44810
44811         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44812         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44813         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44814         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44815
44816 2007-01-15  Bruno Haible  <bruno@clisp.org>
44817
44818         * modules/striconveh: New file.
44819         * lib/striconveh.h: New file.
44820         * lib/striconveh.c: New file.
44821         * MODULES.html.sh (Internationalization functions): Add striconveh.
44822
44823         * modules/striconveh-tests: New file.
44824         * tests/test-striconveh.c: New file.
44825
44826 2007-01-15  Bruno Haible  <bruno@clisp.org>
44827
44828         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
44829         not from GNU libiconv or GNU libc.
44830
44831 2007-01-15  Bruno Haible  <bruno@clisp.org>
44832
44833         * doc/gnulib-intro.texi (Copyright): Explain the different license
44834         terms for module descriptions, autoconf macros, tests, documentation.
44835
44836 2007-01-14  Bruno Haible  <bruno@clisp.org>
44837
44838         * modules/striconv-tests: New file.
44839         * tests/test-striconv.c: New file.
44840
44841 2007-01-14  Bruno Haible  <bruno@clisp.org>
44842
44843         * modules/iconv-tests: New file.
44844         * tests/test-iconv.c: New file.
44845
44846 2007-01-14  Bruno Haible  <bruno@clisp.org>
44847
44848         * gnulib-tool (func_get_license): For test modules, use the license of
44849         the main module.
44850
44851 2007-01-14  Bruno Haible  <bruno@clisp.org>
44852
44853         * modules/iconv (Include): Clarify that <iconv.h> can only be included
44854         if iconv is found to exist.
44855
44856 2007-01-14  Bruno Haible  <bruno@clisp.org>
44857
44858         * modules/c-ctype-tests: New file.
44859         * tests/test-c-ctype.c: New file.
44860
44861 2007-01-14  Bruno Haible  <bruno@clisp.org>
44862
44863         * modules/binary-io-tests: New file.
44864         * tests/test-binary-io.sh: New file.
44865         * tests/test-binary-io.c: New file.
44866
44867 2007-01-14  Bruno Haible  <bruno@clisp.org>
44868
44869         * modules/array-oset-tests: New file.
44870         * tests/test-array_oset.c: New file.
44871
44872 2007-01-14  Bruno Haible  <bruno@clisp.org>
44873
44874         * modules/array-list-tests: New file.
44875         * tests/test-array_list.c: New file.
44876
44877 2007-01-14  Bruno Haible  <bruno@clisp.org>
44878
44879         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
44880         and make.
44881         Reported by Simon Josefsson in
44882         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
44883
44884 2007-01-14  Bruno Haible  <bruno@clisp.org>
44885
44886         * modules/allocsa-tests: New file.
44887         * tests/test-allocsa.c: New file.
44888
44889 2007-01-14  Bruno Haible  <bruno@clisp.org>
44890
44891         * modules/fchdir (Depends-on): Add absolute-header.
44892         * modules/unistd (Depends-on): Likewise.
44893
44894 2006-12-30  Bruno Haible  <bruno@clisp.org>
44895
44896         * modules/fchdir: New file.
44897         * modules/unistd (Files): Add lib/unistd_.h.
44898         (Makefile.am): Generate unistd.h from unistd_.h.
44899         * lib/fchdir.c: New file.
44900         * lib/dirent_.h: New file.
44901         * lib/unistd_.h: New file.
44902         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
44903         * m4/fchdir.m4: New file.
44904         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
44905         (gl_HEADER_UNISTD): Invoke it.
44906         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
44907         function.
44908         * lib/backupfile.c (opendir, closedir): Undefine.
44909         * lib/chown.c (open, close): Undefine.
44910         * lib/clean-temp.c (open, close): Undefine.
44911         * lib/copy-file.c (open, close): Undefine.
44912         * lib/execute.c (open, close): Undefine.
44913         * lib/fsusage.c (open, close): Undefine.
44914         * lib/gc-gnulib.c (open, close): Undefine.
44915         * lib/getcwd.c (opendir, closedir): Undefine.
44916         * lib/glob.c (opendir, closedir): Undefine.
44917         * lib/javacomp.c (open, close): Undefine.
44918         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
44919         * lib/openat-proc.c (open, close): Undefine.
44920         * lib/pagealign_alloc.c (open, close): Undefine.
44921         * lib/pipe.c (open, close): Undefine.
44922         * lib/progreloc.c (open, close): Undefine.
44923         * lib/savedir.c (opendir, closedir): Undefine.
44924         * lib/utime.c (open, close): Undefine.
44925         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
44926
44927 2007-01-10  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
44930
44931 2007-01-12  Eric Blake  <ebb9@byu.net>
44932
44933         Provide a robust <wchar.h>.  Further simplifications are now
44934         possible in other modules, but not included here.
44935         * modules/wchar: New module.
44936         * m4/wchar.m4: New file.
44937         * lib/wchar_.h: Likewise.
44938         * modules/mbchar (Depends-on): Depend on wchar, as the first use
44939         of the new module.
44940         * MODULES.html.sh (Extended multibyte and wide character utilities):
44941         New section.
44942
44943 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
44944
44945         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
44946         to a reasonable default for memory allocation.
44947         (xreadlink): Don't allocate a huge buffer, to work around a buggy
44948         file system that reports garbage st_size values for symlinks.
44949         Problem reported by Liyang Hu.
44950
44951 2007-01-11  Simon Josefsson  <simon@josefsson.org>
44952
44953         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
44954         Emacs .#* auto-save files).
44955
44956 2007-01-11  Bruno Haible  <bruno@clisp.org>
44957
44958         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
44959         directory.
44960
44961 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44962
44963         Use @...@ consistently in lib/wctype_.h.
44964         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
44965         on it being set to 1 or 0.
44966         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
44967         go back to AC_SUBSTing it.
44968         * modules/wctype (Makefile.am): Undo previous change.
44969
44970 2007-01-10  Eric Blake  <ebb9@byu.net>
44971
44972         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
44973         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
44974         * modules/wctype (Makefile.am): Likewise.
44975         Reported by Chris McGuire.
44976
44977 2007-01-10  Jim Meyering  <jim@meyering.net>
44978
44979         fts.c: a small readability/maintainability improvement
44980         * lib/fts.c (fts_read): Make this code slightly more readable and
44981         maintainable by hoisting the "sp->fts_cur = p" assignments to
44982         immediately follow the statements that set P.  Derived from
44983         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
44984
44985 2007-01-10  Eric Blake  <ebb9@byu.net>
44986
44987         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
44988         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
44989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44990         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44991         Reported by Chris McGuire.
44992
44993 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44994
44995         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
44996         in sed script.
44997
44998 2007-01-09  Bruno Haible  <bruno@clisp.org>
44999
45000         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
45001         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
45002         variables.
45003         (func_module): Use them.
45004
45005 2007-01-09  Bruno Haible  <bruno@clisp.org>
45006
45007         * modules/unistr/base: New file.
45008         * lib/unistr.h: New file.
45009
45010         * modules/unistr/u8-to-u16: New file.
45011         * lib/unistr/u8-to-u16.c: New file.
45012
45013         * modules/unistr/u8-to-u32: New file.
45014         * lib/unistr/u8-to-u32.c: New file.
45015
45016         * modules/unistr/u16-to-u8: New file.
45017         * lib/unistr/u16-to-u8.c: New file.
45018
45019         * modules/unistr/u16-to-u32: New file.
45020         * lib/unistr/u16-to-u32.c: New file.
45021
45022         * modules/unistr/u32-to-u8: New file.
45023         * lib/unistr/u32-to-u8.c: New file.
45024
45025         * modules/unistr/u32-to-u16: New file.
45026         * lib/unistr/u32-to-u16.c: New file.
45027
45028         * modules/unistr/u8-check: New file.
45029         * modules/unistr/u16-check: New file.
45030         * modules/unistr/u32-check: New file.
45031         * lib/unistr/u8-check.c: New file.
45032         * lib/unistr/u16-check.c: New file.
45033         * lib/unistr/u32-check.c: New file.
45034
45035         * modules/unistr/u8-chr: New file.
45036         * modules/unistr/u16-chr: New file.
45037         * modules/unistr/u32-chr: New file.
45038         * lib/unistr/u8-chr.c: New file.
45039         * lib/unistr/u16-chr.c: New file.
45040         * lib/unistr/u32-chr.c: New file.
45041
45042         * modules/unistr/u8-cmp: New file.
45043         * modules/unistr/u16-cmp: New file.
45044         * modules/unistr/u32-cmp: New file.
45045         * lib/unistr/u8-cmp.c: New file.
45046         * lib/unistr/u16-cmp.c: New file.
45047         * lib/unistr/u32-cmp.c: New file.
45048
45049         * modules/unistr/u8-cpy: New file.
45050         * modules/unistr/u16-cpy: New file.
45051         * modules/unistr/u32-cpy: New file.
45052         * lib/unistr/u8-cpy.c: New file.
45053         * lib/unistr/u16-cpy.c: New file.
45054         * lib/unistr/u32-cpy.c: New file.
45055         * lib/unistr/u-cpy.h: New file.
45056
45057         * modules/unistr/u8-cpy-alloc: New file.
45058         * modules/unistr/u16-cpy-alloc: New file.
45059         * modules/unistr/u32-cpy-alloc: New file.
45060         * lib/unistr/u8-cpy-alloc.c: New file.
45061         * lib/unistr/u16-cpy-alloc.c: New file.
45062         * lib/unistr/u32-cpy-alloc.c: New file.
45063         * lib/unistr/u-cpy-alloc.h: New file.
45064
45065         * modules/unistr/u8-endswith: New file.
45066         * modules/unistr/u16-endswith: New file.
45067         * modules/unistr/u32-endswith: New file.
45068         * lib/unistr/u8-endswith.c: New file.
45069         * lib/unistr/u16-endswith.c: New file.
45070         * lib/unistr/u32-endswith.c: New file.
45071         * lib/unistr/u-endswith.h: New file.
45072
45073         * modules/unistr/u8-mblen: New file.
45074         * modules/unistr/u16-mblen: New file.
45075         * modules/unistr/u32-mblen: New file.
45076         * lib/unistr/u8-mblen.c: New file.
45077         * lib/unistr/u16-mblen.c: New file.
45078         * lib/unistr/u32-mblen.c: New file.
45079
45080         * modules/unistr/u8-mbtouc: New file.
45081         * modules/unistr/u16-mbtouc: New file.
45082         * modules/unistr/u32-mbtouc: New file.
45083         * lib/unistr/u8-mbtouc.c: New file.
45084         * lib/unistr/u16-mbtouc.c: New file.
45085         * lib/unistr/u32-mbtouc.c: New file.
45086
45087         * modules/unistr/u8-mbtouc-safe: New file.
45088         * modules/unistr/u16-mbtouc-safe: New file.
45089         * modules/unistr/u32-mbtouc-safe: New file.
45090         * lib/unistr/u8-mbtouc-safe.c: New file.
45091         * lib/unistr/u16-mbtouc-safe.c: New file.
45092         * lib/unistr/u32-mbtouc-safe.c: New file.
45093
45094         * modules/unistr/u8-move: New file.
45095         * modules/unistr/u16-move: New file.
45096         * modules/unistr/u32-move: New file.
45097         * lib/unistr/u8-move.c: New file.
45098         * lib/unistr/u16-move.c: New file.
45099         * lib/unistr/u32-move.c: New file.
45100         * lib/unistr/u-move.h: New file.
45101
45102         * modules/unistr/u8-next: New file.
45103         * modules/unistr/u16-next: New file.
45104         * modules/unistr/u32-next: New file.
45105         * lib/unistr/u8-next.c: New file.
45106         * lib/unistr/u16-next.c: New file.
45107         * lib/unistr/u32-next.c: New file.
45108
45109         * modules/unistr/u8-prev: New file.
45110         * modules/unistr/u16-prev: New file.
45111         * modules/unistr/u32-prev: New file.
45112         * lib/unistr/u8-prev.c: New file.
45113         * lib/unistr/u16-prev.c: New file.
45114         * lib/unistr/u32-prev.c: New file.
45115
45116         * modules/unistr/u8-set: New file.
45117         * modules/unistr/u16-set: New file.
45118         * modules/unistr/u32-set: New file.
45119         * lib/unistr/u8-set.c: New file.
45120         * lib/unistr/u16-set.c: New file.
45121         * lib/unistr/u32-set.c: New file.
45122         * lib/unistr/u-set.h: New file.
45123
45124         * modules/unistr/u8-startswith: New file.
45125         * modules/unistr/u16-startswith: New file.
45126         * modules/unistr/u32-startswith: New file.
45127         * lib/unistr/u8-startswith.c: New file.
45128         * lib/unistr/u16-startswith.c: New file.
45129         * lib/unistr/u32-startswith.c: New file.
45130         * lib/unistr/u-startswith.h: New file.
45131
45132         * modules/unistr/u8-stpcpy: New file.
45133         * modules/unistr/u16-stpcpy: New file.
45134         * modules/unistr/u32-stpcpy: New file.
45135         * lib/unistr/u8-stpcpy.c: New file.
45136         * lib/unistr/u16-stpcpy.c: New file.
45137         * lib/unistr/u32-stpcpy.c: New file.
45138         * lib/unistr/u-stpcpy.h: New file.
45139
45140         * modules/unistr/u8-stpncpy: New file.
45141         * modules/unistr/u16-stpncpy: New file.
45142         * modules/unistr/u32-stpncpy: New file.
45143         * lib/unistr/u8-stpncpy.c: New file.
45144         * lib/unistr/u16-stpncpy.c: New file.
45145         * lib/unistr/u32-stpncpy.c: New file.
45146         * lib/unistr/u-stpncpy.h: New file.
45147
45148         * modules/unistr/u8-strcat: New file.
45149         * modules/unistr/u16-strcat: New file.
45150         * modules/unistr/u32-strcat: New file.
45151         * lib/unistr/u8-strcat.c: New file.
45152         * lib/unistr/u16-strcat.c: New file.
45153         * lib/unistr/u32-strcat.c: New file.
45154         * lib/unistr/u-strcat.h: New file.
45155
45156         * modules/unistr/u8-strchr: New file.
45157         * modules/unistr/u16-strchr: New file.
45158         * modules/unistr/u32-strchr: New file.
45159         * lib/unistr/u8-strchr.c: New file.
45160         * lib/unistr/u16-strchr.c: New file.
45161         * lib/unistr/u32-strchr.c: New file.
45162
45163         * modules/unistr/u8-strcmp: New file.
45164         * modules/unistr/u16-strcmp: New file.
45165         * modules/unistr/u32-strcmp: New file.
45166         * lib/unistr/u8-strcmp.c: New file.
45167         * lib/unistr/u16-strcmp.c: New file.
45168         * lib/unistr/u32-strcmp.c: New file.
45169
45170         * modules/unistr/u8-strcpy: New file.
45171         * modules/unistr/u16-strcpy: New file.
45172         * modules/unistr/u32-strcpy: New file.
45173         * lib/unistr/u8-strcpy.c: New file.
45174         * lib/unistr/u16-strcpy.c: New file.
45175         * lib/unistr/u32-strcpy.c: New file.
45176         * lib/unistr/u-strcpy.h: New file.
45177
45178         * modules/unistr/u8-strcspn: New file.
45179         * modules/unistr/u16-strcspn: New file.
45180         * modules/unistr/u32-strcspn: New file.
45181         * lib/unistr/u8-strcspn.c: New file.
45182         * lib/unistr/u16-strcspn.c: New file.
45183         * lib/unistr/u32-strcspn.c: New file.
45184         * lib/unistr/u-strcspn.h: New file.
45185
45186         * modules/unistr/u8-strdup: New file.
45187         * modules/unistr/u16-strdup: New file.
45188         * modules/unistr/u32-strdup: New file.
45189         * lib/unistr/u8-strdup.c: New file.
45190         * lib/unistr/u16-strdup.c: New file.
45191         * lib/unistr/u32-strdup.c: New file.
45192         * lib/unistr/u-strdup.h: New file.
45193
45194         * modules/unistr/u8-strlen: New file.
45195         * modules/unistr/u16-strlen: New file.
45196         * modules/unistr/u32-strlen: New file.
45197         * lib/unistr/u8-strlen.c: New file.
45198         * lib/unistr/u16-strlen.c: New file.
45199         * lib/unistr/u32-strlen.c: New file.
45200         * lib/unistr/u-strlen.h: New file.
45201
45202         * modules/unistr/u8-strmblen: New file.
45203         * modules/unistr/u16-strmblen: New file.
45204         * modules/unistr/u32-strmblen: New file.
45205         * lib/unistr/u8-strmblen.c: New file.
45206         * lib/unistr/u16-strmblen.c: New file.
45207         * lib/unistr/u32-strmblen.c: New file.
45208
45209         * modules/unistr/u8-strmbtouc: New file.
45210         * modules/unistr/u16-strmbtouc: New file.
45211         * modules/unistr/u32-strmbtouc: New file.
45212         * lib/unistr/u8-strmbtouc.c: New file.
45213         * lib/unistr/u16-strmbtouc.c: New file.
45214         * lib/unistr/u32-strmbtouc.c: New file.
45215
45216         * modules/unistr/u8-strncat: New file.
45217         * modules/unistr/u16-strncat: New file.
45218         * modules/unistr/u32-strncat: New file.
45219         * lib/unistr/u8-strncat.c: New file.
45220         * lib/unistr/u16-strncat.c: New file.
45221         * lib/unistr/u32-strncat.c: New file.
45222         * lib/unistr/u-strncat.h: New file.
45223
45224         * modules/unistr/u8-strncmp: New file.
45225         * modules/unistr/u16-strncmp: New file.
45226         * modules/unistr/u32-strncmp: New file.
45227         * lib/unistr/u8-strncmp.c: New file.
45228         * lib/unistr/u16-strncmp.c: New file.
45229         * lib/unistr/u32-strncmp.c: New file.
45230
45231         * modules/unistr/u8-strncpy: New file.
45232         * modules/unistr/u16-strncpy: New file.
45233         * modules/unistr/u32-strncpy: New file.
45234         * lib/unistr/u8-strncpy.c: New file.
45235         * lib/unistr/u16-strncpy.c: New file.
45236         * lib/unistr/u32-strncpy.c: New file.
45237         * lib/unistr/u-strncpy.h: New file.
45238
45239         * modules/unistr/u8-strnlen: New file.
45240         * modules/unistr/u16-strnlen: New file.
45241         * modules/unistr/u32-strnlen: New file.
45242         * lib/unistr/u8-strnlen.c: New file.
45243         * lib/unistr/u16-strnlen.c: New file.
45244         * lib/unistr/u32-strnlen.c: New file.
45245         * lib/unistr/u-strnlen.h: New file.
45246
45247         * modules/unistr/u8-strpbrk: New file.
45248         * modules/unistr/u16-strpbrk: New file.
45249         * modules/unistr/u32-strpbrk: New file.
45250         * lib/unistr/u8-strpbrk.c: New file.
45251         * lib/unistr/u16-strpbrk.c: New file.
45252         * lib/unistr/u32-strpbrk.c: New file.
45253         * lib/unistr/u-strpbrk.h: New file.
45254
45255         * modules/unistr/u8-strrchr: New file.
45256         * modules/unistr/u16-strrchr: New file.
45257         * modules/unistr/u32-strrchr: New file.
45258         * lib/unistr/u8-strrchr.c: New file.
45259         * lib/unistr/u16-strrchr.c: New file.
45260         * lib/unistr/u32-strrchr.c: New file.
45261
45262         * modules/unistr/u8-strspn: New file.
45263         * modules/unistr/u16-strspn: New file.
45264         * modules/unistr/u32-strspn: New file.
45265         * lib/unistr/u8-strspn.c: New file.
45266         * lib/unistr/u16-strspn.c: New file.
45267         * lib/unistr/u32-strspn.c: New file.
45268         * lib/unistr/u-strspn.h: New file.
45269
45270         * modules/unistr/u8-strstr: New file.
45271         * modules/unistr/u16-strstr: New file.
45272         * modules/unistr/u32-strstr: New file.
45273         * lib/unistr/u8-strstr.c: New file.
45274         * lib/unistr/u16-strstr.c: New file.
45275         * lib/unistr/u32-strstr.c: New file.
45276         * lib/unistr/u-strstr.h: New file.
45277
45278         * modules/unistr/u8-strtok: New file.
45279         * modules/unistr/u16-strtok: New file.
45280         * modules/unistr/u32-strtok: New file.
45281         * lib/unistr/u8-strtok.c: New file.
45282         * lib/unistr/u16-strtok.c: New file.
45283         * lib/unistr/u32-strtok.c: New file.
45284         * lib/unistr/u-strtok.h: New file.
45285
45286         * modules/unistr/u8-uctomb: New file.
45287         * modules/unistr/u16-uctomb: New file.
45288         * modules/unistr/u32-uctomb: New file.
45289         * lib/unistr/u8-uctomb.c: New file.
45290         * lib/unistr/u16-uctomb.c: New file.
45291         * lib/unistr/u32-uctomb.c: New file.
45292
45293         * MODULES.html.sh (Unicode string functions): Add the new modules.
45294
45295 2007-01-08  Bruno Haible  <bruno@clisp.org>
45296
45297         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
45298         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
45299         subdirectories.
45300
45301 2007-01-08  Karl Berry  <karl@gnu.org>
45302
45303         * doc/error.texi: mention that main() fns must set program_name
45304         when progname is used.
45305
45306 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
45307
45308         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
45309         WCTYPE_H is empty, for the benefit of builds from non-distclean
45310         directories.  Problem reported by Eric Blake in
45311         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
45312
45313 2007-01-08  Bruno Haible  <bruno@clisp.org>
45314
45315         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
45316         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
45317         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
45318         PROVIDE_CANONICALIZE_FILENAME_MODE.
45319         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
45320
45321 2007-01-08  Bruno Haible  <bruno@clisp.org>
45322
45323         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
45324         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
45325         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
45326         * lib/fts.c: Likewise.
45327         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
45328
45329 2006-12-25  Bruno Haible  <bruno@clisp.org>
45330
45331         * modules/utf8-ucs4-safe: New file.
45332         * lib/utf8-ucs4-safe.h: New file.
45333         * lib/unistr/utf8-ucs4-safe.c: New file.
45334
45335         * modules/utf16-ucs4-safe: New file.
45336         * lib/utf16-ucs4-safe.h: New file.
45337         * lib/unistr/utf16-ucs4-safe.c: New file.
45338
45339         * MODULES.html.sh (Unicode string functions): Add the new modules.
45340
45341 2007-01-08  Bruno Haible  <bruno@clisp.org>
45342
45343         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
45344         (Depends-on): Add unitypes.
45345         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45346         (u8_mbtouc_aux): Move out to separate file.
45347         (u8_mbtouc): Use ucs4_t, uint8_t types.
45348         * lib/unistr/utf8-ucs4.c: New file.
45349
45350         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
45351         (Depends-on): Add unitypes.
45352         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45353         (u16_mbtouc_aux): Move out to separate file.
45354         (u16_mbtouc): Use ucs4_t, uint16_t types.
45355         * lib/unistr/utf16-ucs4.c: New file.
45356
45357         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
45358         (Depends-on): Add unitypes.
45359         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
45360         (u8_uctomb_aux): Move out to separate file.
45361         (u8_uctomb): Use ucs4_t, uint8_t types.
45362         * lib/unistr/ucs4-utf8.c: New file.
45363
45364         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
45365         (Depends-on): Add unitypes.
45366         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
45367         (u16_uctomb_aux): Move out to separate file.
45368         (u16_uctomb): Use ucs4_t, uint16_t types.
45369         * lib/unistr/ucs4-utf16.c: New file.
45370
45371 2006-12-25  Bruno Haible  <bruno@clisp.org>
45372
45373         * modules/unitypes: New file.
45374         * lib/unitypes.h: New file.
45375         * MODULES.html.sh (func_all_modules): New section "Unicode string
45376         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
45377         this section. Add unitypes.
45378
45379 2007-01-08  Bruno Haible  <bruno@clisp.org>
45380
45381         Avoid variable names that conflict with those from libtool.
45382         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
45383         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
45384         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
45385         library_names_spec to acl_library_names_spec, hardcode_* to
45386         acl_hardcode_*.
45387         Reported by Ralf Wildenhues.
45388
45389 2007-01-08  Bruno Haible  <bruno@clisp.org>
45390
45391         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
45392         definition.
45393         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
45394         definition.
45395         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
45396         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
45397         definition.
45398         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
45399         definition.
45400         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
45401         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
45402         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
45403         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
45404         definition.
45405         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
45406         definition.
45407         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
45408         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
45409         GC_USE_<algorithm>.
45410         * lib/gc-libgcrypt.c: Likewise.
45411         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
45412         * modules/gc-arctwo (configure.ac): Likewise.
45413         * modules/gc-des (configure.ac): Likewise.
45414         * modules/gc-hmac-md5 (configure.ac): Likewise.
45415         * modules/gc-hmac-sha1 (configure.ac): Likewise.
45416         * modules/gc-md2 (configure.ac): Likewise.
45417         * modules/gc-md4 (configure.ac): Likewise.
45418         * modules/gc-md5 (configure.ac): Likewise.
45419         * modules/gc-random (configure.ac): Likewise.
45420         * modules/gc-rijndael (configure.ac): Likewise.
45421         * modules/gc-sha1 (configure.ac): Likewise.
45422
45423 2007-01-08  Bruno Haible  <bruno@clisp.org>
45424
45425         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
45426         macro definition.
45427         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
45428         definition.
45429         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
45430         definition.
45431         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
45432         * modules/fcntl-safer (configure.ac): Likewise.
45433         * modules/fopen-safer (configure.ac): Likewise.
45434         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
45435         GNULIB_FWRITEERROR macro definition.
45436
45437 2007-01-08  Bruno Haible  <bruno@clisp.org>
45438
45439         * m4/gnulib-common.m4: New file.
45440         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
45441         (func_get_filelist): Add m4/gnulib-common.m4.
45442
45443 2007-01-08  Bruno Haible  <bruno@clisp.org>
45444
45445         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
45446         command.
45447
45448 2007-01-08  Jim Meyering  <jim@meyering.net>
45449
45450         Use a more robust test for a "can't happen" condition.
45451         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
45452         narrowed the st_size value.  Presuming the "can't happen" condition
45453         is true, that narrowing could conceivably convert an invalid st_size
45454         value into a valid one.  Instead, use a change based on Matthew
45455         Woehlke's original patch.
45456
45457         Slight readability improvement: use an assert-like macro
45458         in place of literal "abort ()" uses.
45459         * lib/fts.c (fts_assert): Define.
45460         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
45461         Use this macro instead of a bare 'abort'.
45462
45463 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45464
45465         Don't worry about using IRIX 5.3's wctype.h broken definitions;
45466         simply work around them.
45467         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
45468         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
45469         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
45470         declaring.
45471         Don't bother to define as macros, since the standard doesn't require it.
45472         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
45473         longer worry about IRIX 5.3.
45474         (HAVE_WCTYPE_CTMP_BUG): Remove.
45475
45476 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45477
45478         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
45479         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
45480         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45481         Problems reported by Georg Schwarz for IRIX 5.3.
45482
45483         * gnulib-tool (autoconf_minversion): Take the maximum version number
45484         found, not the minimum.  Problem reported by James Youngman.
45485
45486 2007-01-03  Karl Berry  <karl@gnu.org>
45487
45488         * doc/error.texi: new file, explaining interaction with progname.
45489         * doc/gnulib.texi: include it.  Update copyright.
45490
45491 2007-01-03  Simon Josefsson  <simon@josefsson.org>
45492
45493         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
45494         AC_CANONICAL_HOST, to improve autobuild outputs.
45495
45496 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
45497             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45498
45499         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45500         sockets, server sockets, and other file descriptors.  Count errors
45501         to compute the return value.  Reorder the code a bit to be easier
45502         to follow.  Don't set event bits that were not requested (except
45503         POLLERR and POLLHUP).
45504
45505 2007-01-01  Bruno Haible  <bruno@clisp.org>
45506
45507         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
45508
45509 2007-01-03  Jim Meyering  <jim@meyering.net>
45510
45511         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
45512
45513 2007-01-02  Bruno Haible  <bruno@clisp.org>
45514
45515         * modules/settime (Include): Require timespec.h.
45516         * modules/nanosleep (Include): Likewise.
45517
45518 2007-01-01  Bruno Haible  <bruno@clisp.org>
45519
45520         * gnulib-tool (func_emit_copyright_notice): Bump year.
45521         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
45522
45523 2007-01-01  Bruno Haible  <bruno@clisp.org>
45524
45525         Improve support for OpenBSD.
45526         * build-aux/config.rpath (libname_spec): Export.
45527         (library_names_spec): New variable. Export.
45528         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
45529         library_names_spec from the config.rpath output. Locate shared library
45530         through the name pattern in library_names_spec.
45531
45532 2007-01-01  Eric Blake  <ebb9@byu.net>
45533
45534         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
45535
45536 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
45537
45538         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
45539         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
45540         assume the C locale, and avoid an "eval" that could cause trouble.
45541         Problem with SORT reported by Bob Proulx.
45542
45543         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
45544         Define.  Trivial patch from Henning Nielsen Lund, originally
45545         sent to bug-grep@gnu.org today.
45546
45547 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45548
45549         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
45550         struct stat.  Problem reported by Henning Nielsen Lund.
45551         * lib/acl.c: Include acl.h first, to check interface.  Don't
45552         bother to include sys/types.h and sys/stat.h again.
45553
45554 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45555
45556         Import the following change from libc; problem reported by
45557         Sven Verdoolaege.
45558
45559         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
45560
45561         [BZ #1373]
45562         * lib/argp.h: Remove __NTH for __argp_usage inline function.
45563
45564 2006-12-28  Jim Meyering  <jim@meyering.net>
45565
45566         * build-aux/announce-gen: Do not assume that the package
45567         builds any of tar.gz, tar.bz2, and .xdelta files.
45568         Suggestion from Simon Josefsson.
45569
45570 2006-12-28  Simon Josefsson  <simon@josefsson.org>
45571
45572         * modules/announce-gen: New file.
45573
45574 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45575
45576         * lib/mbchar.h: Just include <wctype.h>; the wctype module
45577         handles its gotchas now.
45578         * lib/mbswidth.c: Likewise.
45579         * lib/wcwidth.h: Likewise.
45580         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
45581         and iswcntrl; the wctype module does this stuff now.
45582         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45584         * modules/mbchar (Depends-on): Add wctype.
45585         * modules/mbswidth (Depends-on): Likewise.
45586         * modules/wcwidth (Depends-on): Likewise.
45587
45588 2006-12-27  Eric Blake  <ebb9@byu.net>
45589
45590         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45591         module uses more than what <wctype.h> is required to provide.
45592
45593 2006-12-26  Eric Blake  <ebb9@byu.net>
45594
45595         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45596
45597 2006-12-26  Eric Blake  <ebb9@byu.net>
45598
45599         * modules/absolute-header: New module.
45600         * modules/fcntl (Depends-on): Depend on it.
45601         * modules/inttypes (Depends-on): Likewise.
45602         * modules/stdint (Depends-on): Likewise.
45603         * modules/sys_stat (Depends-on): Likewise.
45604         * modules/wctype (Depends-on): Likewise.
45605         * MODULES.html.sh (Support for building libraries and
45606         executables): Document it.
45607
45608 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45609
45610         * gnulib-tool (SED): Remove, undoing previous change.
45611         The problem was that it broke coreutils on Solaris, because
45612         "sed --posix" leaked into a makefile.
45613         (sed): New alias, if 'alias' and GNU sed.
45614
45615 2006-12-24  Jim Meyering  <jim@meyering.net>
45616
45617         Work around an fchownat bug in glibc-2.4:
45618         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45619         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45620         in spite of the -P option.
45621         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45622         New macros.
45623         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45624         * modules/openat (Files): Add lib/fchownat.c.
45625         * lib/openat.c (fchownat): Don't define here.  Move to...
45626         * lib/fchownat.c: ...this new file.
45627
45628 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45629
45630         Fix bug reported by Bruno Haible in
45631         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45632         where quotearg.c didn't compile on Mac OS X 10.2 because it
45633         lacks <wchar.h> and wint_t.
45634         * lib/wctype_.h (__wctype_wint_t): New type.
45635         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45636         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45637         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45638         Arg is now of type __wctype_wint_t, not wint_t.
45639         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45640         substitute HAVE_WINT_T.
45641         * modules/wctype (Files): Add m4/wint_t.m4.
45642         (wctype.h): Substitute HAVE_WINT_T.
45643
45644 2006-12-23  Bruno Haible  <bruno@clisp.org>
45645
45646         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45647
45648 2006-12-23  Bruno Haible  <bruno@clisp.org>
45649
45650         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45651         S_ISLNK.
45652         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45653         mingw.
45654
45655 2006-12-22  Bruno Haible  <bruno@clisp.org>
45656
45657         * lib/copy-file.c: Include acl.h.
45658         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45659         Close the file descriptors only after being done with copy_acl.
45660         * modules/copy-file (Depends-on): Add acl.
45661
45662 2006-12-22  Bruno Haible  <bruno@clisp.org>
45663
45664         * gnulib-tool (SED): New variable.
45665         Use $SED instead of sed everywhere.
45666
45667 2006-12-22  Bruno Haible  <bruno@clisp.org>
45668
45669         * modules/no-c++: New file.
45670         * m4/no-c++.m4: New file.
45671         * MODULES.html.sh (Support for building libraries and executables):
45672         Add no-c++.
45673
45674 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45675
45676         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45677         Include <limits.h>, and use its INT_MAX to rewrite the
45678         j loop so that it does not overflow 'int'.  Problem reported by
45679         Ralf Wildenhues in
45680         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45681         Play it safe by shifting left by 1 rather than multiplying by 2,
45682         as GCC is less likely to optimize this away when the value
45683         is signed (when it assumes overflow leads to undefined behavior).
45684         Also, don't assume time_t uses two's complement.
45685
45686 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45687
45688         * MODULES.html.sh: New module wctype.
45689         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45690         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45691         <wctype.h>, since the new wctype module should fix this.
45692         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45693         the wctype module should arrange for it.
45694         * lib/regex_internal.h: Likewise.
45695         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45696         since the wctype module should handle this now.
45697         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45698         * modules/fnmatch (Depends-on): Add wctype.
45699         * modules/quotearg (Depends-on): Likewise.
45700         * modules/regex (Depends-on): Likewise.
45701
45702 2006-12-19  Bruno Haible  <bruno@clisp.org>
45703
45704         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45705         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45706
45707 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45708
45709         * modules/savewd (Depends-on): Fix dependency on fcntl.
45710
45711 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45712
45713         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45714         conforms to C99, rather than relying on the user's environment
45715         setting of STDINT_H.
45716
45717 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45718         and Eric Blake  <ebb9@byu.net>
45719
45720         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45721         This is more consistent with the other defines here.
45722         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45723         Port to z/OS.  Problem reported by Paul Gilmartin.
45724         Change local vars to use gl_ prefix rather than ac_.
45725         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45726         with other defines.
45727         * modules/double-slash-root: New module.
45728         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45729         (Depends-on): Add double-slash-root.
45730         * MODULES.html.sh (File system functions): Mention new module.
45731
45732 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45733
45734         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45735         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45736         This is for the benefit of gzip, which doesn't do i18n.
45737
45738 2006-12-12  Jim Meyering  <jim@meyering.net>
45739
45740         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45741         Reported by Andreas Schwab <schwab@suse.de>.
45742
45743 2006-12-12  Bruno Haible  <bruno@clisp.org>
45744
45745         Merge these changes.
45746         2006-09-05  Bruno Haible  <bruno@clisp.org>
45747         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45748         iconv_alloc succeeded.
45749         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45750         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45751         test for " && dest " at the end - dest is always != NULL there. Call
45752         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45753         with 2xNULL arguments, also to flush the state storage. Handle the
45754         IRIX iconv behaviour. Realloc the final result, to throw away unused
45755         memory.
45756
45757 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45758
45759         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45760         and fchmodat unconditionally, since glibc 2.4 has them.
45761         Problem reported by Arkadiusz Miskiewicz.
45762
45763 2006-12-10  Bruno Haible  <bruno@clisp.org>
45764
45765         * gnulib-tool (func_import): Show the include files only for those
45766         modules that are copied and specified.
45767         Reported by Karl Berry.
45768
45769 2006-12-08  Jim Meyering  <jim@meyering.net>
45770
45771         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45772         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45773
45774         * build-aux/announce-gen: Add two new options, both optional:
45775         --bootstrap-tools=TOOL_LIST
45776               a comma-separated list of tools, e.g.,
45777               autoconf,automake,bison,gnulib
45778         --gnulib-snapshot-date=DATE
45779               if gnulib is in the bootstrap tool list,
45780               then report this as the snapshot date.
45781               If not specified, use the current date/time.
45782               If you specify a date here, be sure it's UTC.
45783
45784 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45785
45786         * tests/test-argp-2.sh: Fix test to match actual output.
45787         (func_compare): Fix sed script to be portable.
45788
45789 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45790
45791         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45792         workaround for this case.  It is not autoconfigured now; offhand
45793         it's hard to see how to autoconfigure it.
45794
45795 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45796
45797         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45798         a directory that is about to be chowned.  Such a directory's
45799         initial file permissions should permit the owner only and this
45800         should not be changed until after the chown, since the group and
45801         other bits would be incorrect if they granted permission before
45802         the chown.
45803
45804         Fix porting problem for iswctype reported by Georg Schwarz in:
45805         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45806         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45807         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45808         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45809         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45810
45811 2006-12-03  Jim Meyering  <jim@meyering.net>
45812
45813         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45814         p->fts_statp may not yet be defined.
45815         (fts_read): Instead, set it in the caller, once p->fts_statp is
45816         sure to be defined, and corresponds to a top-level directory.
45817         This bug made du -x fail.  Here's the coreutils test case:
45818         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45819         Reported by Mike Frysinger.
45820
45821 2006-12-01  Jim Meyering  <jim@meyering.net>
45822
45823         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45824         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45825         Reported by Simon Josefsson.
45826
45827 2006-11-30  Jim Meyering  <jim@meyering.net>
45828
45829         * m4/warning.m4: Use the all-permissive copyright notice
45830         recommended by RMS (rather than LGPL).
45831         * m4/vararrays.m4: Likewise.
45832         * m4/flexmember.m4: Likewise.
45833
45834 2006-11-29  Bruno Haible  <bruno@clisp.org>
45835
45836         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45837         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
45838         using +=.
45839         Reported by Simon Josefsson <simon@josefsson.org>.
45840
45841 2006-11-28  James Youngman <jay@gnu.org>
45842
45843         * README: Advise users that they might find the bug-gnulib@gnu.org
45844         and autotools-announce@gnu.org mailing lists useful.
45845
45846 2006-11-28  Bruno Haible  <bruno@clisp.org>
45847
45848         * m4/ptrdiff_max.m4: Remove file.
45849
45850 2006-11-21  Bruno Haible  <bruno@clisp.org>
45851
45852         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
45853         _AC_COMPUTE_INT.
45854         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45855         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
45856         _AC_COMPUTE_INT.
45857         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45858         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
45859         _AC_COMPUTE_INT.
45860         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45861
45862 2006-11-28  Jim Meyering  <jim@meyering.net>
45863
45864         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
45865         warning from "gcc -Wshadow" about shadowing the builtin.
45866
45867 2006-11-27  Bruno Haible  <bruno@clisp.org>
45868
45869         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
45870         _AC_COMPUTE_INT.
45871         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45872
45873 2006-11-27  Bruno Haible  <bruno@clisp.org>
45874             Paul Eggert  <eggert@cs.ucla.edu>
45875
45876         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
45877
45878 2006-11-26  Bruno Haible  <bruno@clisp.org>
45879
45880         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45881         noinst_LTLIBRARIES.
45882
45883 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45884             Bruno Haible  <bruno@clisp.org>
45885
45886         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
45887         if compiling with "gcc -ansi".
45888
45889 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45890
45891         Fix some incompatibilities with gcc -ansi -pedantic.
45892         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
45893         if compiling pedantically with GCC, unless it's C99 or later.
45894         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
45895         it mishandles gcc -ansi -pedantic as well.
45896         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
45897         if gcc -pedantic.
45898         * lib/regexec.c (check_node_accept_bytes): Don't use auto
45899         initializers for struct if -pedantic, unless it's C99 or later.
45900
45901 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
45902
45903         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
45904         Don't close an fd more than once. Identical atimes indicate
45905         success, not failure.
45906
45907 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
45908
45909         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
45910
45911 2006-11-23  Jim Meyering  <jim@meyering.net>
45912
45913         * build-aux/announce-gen: New file.  From coreutils.
45914
45915 2006-11-22  Jim Meyering  <jim@meyering.net>
45916
45917         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
45918         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
45919         (fts_read): Use a temporary to narrow the overused st_size member
45920         before using it in a switch statement.  Reported by Matthew Woehlke.
45921
45922         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
45923         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45924
45925 2006-11-20  Bruno Haible  <bruno@clisp.org>
45926
45927         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
45928         changequote instead of pairs of brackets.
45929         Reported by Andreas Schwab <schwab@suse.de>.
45930
45931 2006-11-21  Jim Meyering  <jim@meyering.net>
45932
45933         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
45934         so as to remain compatible with older compilers.
45935         Patch from Michael Deutschmann.
45936
45937 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45938
45939         * MODULES.html.sh (File system functions): Add openat.
45940
45941         * lib/openat.h (rpl_fstatat): New macro, if
45942         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
45943         (fstatat): Define to rpl_fstatat under the same conditions,
45944         unless COMPILING_FSTATAT.
45945         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
45946         seems to have the bug.
45947         * lib/fstatat.c: New file.
45948         * modules/openat (Files): Add it.
45949
45950 2006-11-20  Bruno Haible  <bruno@clisp.org>
45951
45952         * Makefile: New file.
45953
45954 2006-11-20  Jim Meyering  <jim@meyering.net>
45955
45956         The beginnings of syntax-related checks for gnulib.
45957         * lib/Makefile: New file.
45958         * lib/t-idcache: New script.  Ensure that the two halves of
45959         idcache.c stay in sync.
45960
45961         * lib/idcache.c: Adjust comments in user- and group- portions to
45962         be more accurate, and to be consistent with one another.
45963
45964 2006-11-20  Jim Meyering  <jim@meyering.net>
45965
45966         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
45967         continue using the flexible array member (thus, this module performs
45968         half as many malloc calls), with the addition that...
45969         (getgroup, getuser): Consistently record a non-match via an empty
45970         "name" string, and map an empty string match to a NULL return value.
45971         * modules/idcache (Depends-on): Re-add flexmember.
45972
45973         * lib/idcache.c (getuser): Remove all uses of the register keyword.
45974         (getuidbyname, getgroup, getgidbyname): Likewise.
45975
45976         Use cleaner syntax: NULL rather than 0.
45977         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
45978
45979 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45980
45981         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
45982         It mishandled the case where the group was missing.
45983         Problem reported by Greg Schafer.
45984         * modules/idcache: Likewise.
45985
45986 2006-11-18  Jim Meyering  <jim@meyering.net>
45987
45988         * check-module (%exempt_header): Add exception for some
45989         conditionally-included headers.
45990
45991         * modules/i-ring (Depends-on): Add verify.
45992         (License): Change to LGPL.
45993
45994 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45995
45996         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
45997         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
45998         and inttostr.h.  Use snprintf rather than uinttostr, so that
45999         LGPLed code doesn't depend on GPLed.
46000
46001 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46002
46003         * modules/inline (License): Change from GPL to LGPL.
46004
46005 2006-11-17  Jim Meyering  <jim@meyering.net>
46006
46007         * modules/d-type (License): Switch to LGPL.
46008
46009 2006-11-15  Bruno Haible  <bruno@clisp.org>
46010
46011         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
46012
46013 2006-11-15  Eric Blake  <ebb9@byu.net>
46014
46015         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
46016         the module dependency.
46017
46018 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46019             Bruno Haible  <bruno@clisp.org>
46020
46021         * gnulib-tool (func_create_testdir): Add license consistency check.
46022
46023 2006-11-15  Eric Blake  <ebb9@byu.net>
46024
46025         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
46026         random "(cached)" in configure output.
46027
46028 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46029
46030         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
46031         test for conforming inttypes.h is both announced and cached.
46032
46033         * MODULES.html.sh (seen_modules, seen_files): New variables.
46034         (func_module): Rewrite to use a few less gnulib-tool and sed
46035         invocations.  Avoid a couple of quadratic algorithms for ...
46036         (missed_modules, missed_files): ... these, with ...
46037         (func_append, func_tmpdir): ... these new functions, from
46038         gnulib-tool.  Analogously, install traps for cleanup.
46039
46040         * tests/test-gc.c (main): Remove unused variables.
46041         * tests/test-read-file.c: Include stdlib.h, for 'free'.
46042
46043 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
46044
46045         * modules/inttostr (License): Change to LGPL.
46046
46047 2006-11-14  Eric Blake  <ebb9@byu.net>
46048
46049         * modules/tempname (License): Change to LGPL.
46050
46051 2006-11-14  Eric Blake  <ebb9@byu.net>
46052
46053         * doc/functions.texi (Function Portability): *printf functions on
46054         Cygwin now understand all POSIX size specifiers.
46055
46056 2006-11-14  Bruno Haible  <bruno@clisp.org>
46057
46058         * modules/c-ctype (License): Change to LGPL.
46059
46060 2006-11-12  Bruno Haible  <bruno@clisp.org>
46061
46062         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46063         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
46064         for GNOME libraries, for which the include files are installed in
46065         subdirectories of $prefix/include.
46066
46067 2006-11-12  Bruno Haible  <bruno@clisp.org>
46068
46069         * m4/lib-link.m4: Require at least autoconf-2.54.
46070         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
46071         name to underscores for the --with option.
46072
46073 2006-11-13  Bruno Haible  <bruno@clisp.org>
46074
46075         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
46076         the tests directory.
46077         Reported by Ralf Wildenhues.
46078
46079 2006-11-13  Bruno Haible  <bruno@clisp.org>
46080
46081         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
46082         (func_emit_initmacro_end): Undo the override here.
46083         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
46084         Works around the famous automake error in coreutils.
46085
46086 2006-11-13  Eric Blake  <ebb9@byu.net>
46087
46088         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
46089         element, not its node.
46090
46091 2006-11-12  Bruno Haible  <bruno@clisp.org>
46092
46093         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
46094         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
46095
46096 2006-11-12  Bruno Haible  <bruno@clisp.org>
46097
46098         * gnulib-tool: New option --local-symlink.
46099         (func_usage): Document it.
46100         (lsymbolic): New variable.
46101         (func_import, func_create_testdir): If --symlink was not specified,
46102         test whether --local-symlink was specified and the file comes from
46103         the local_gnulib_dir.
46104
46105 2006-11-12  Bruno Haible  <bruno@clisp.org>
46106
46107         * gnulib-tool (func_ln): New function.
46108         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
46109
46110 2006-11-12  Bruno Haible  <bruno@clisp.org>
46111
46112         Finish support for source files in subdirectories.
46113         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
46114         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
46115         AUTOMAKE_OPTIONS.
46116         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
46117
46118 2006-11-12  Bruno Haible  <bruno@clisp.org>
46119
46120         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46121         EXTRA_lib_SOURCES augmentation.
46122         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
46123
46124 2006-11-12  Jim Meyering  <jim@meyering.net>
46125
46126         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
46127         file descriptors.  This also averts a failure on systems with
46128         native openat support when a traversed directory lacks "x" access.
46129         * lib/fts_.h: Include "i-ring.h"
46130         (struct FTS) [fts_fd_ring]: New member.
46131         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
46132         (FCHDIR): Add parentheses.
46133         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
46134         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
46135         When descending, rather than simply closing the previous
46136         fts_cwd_fd value, push that file descriptor onto the ring.
46137         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
46138         (fts_open): Initialize the new fd_ring member.
46139         (fts_close): Clear the ring.
46140         (fts_safe_changedir): When possible, use our new fd_ring to skip
46141         the diropen and fstat and dev/ino comparison that would normally
46142         accompany a virtual `chdir ("..")'.
46143
46144         * modules/fts (Depends-on): Add i-ring.
46145         * modules/i-ring: New module.
46146         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
46147         * m4/i-ring.m4: New file.
46148
46149 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46150
46151         * gnulib-tool (func_create_testdir): Fix replacement of
46152         `build-aux' in configure.ac.  Run autotools in gltests
46153         subdirectory.
46154         (func_create_testdir, func_create_megatestdir, test): There is
46155         no need for '--force' in most autotool invocations in a new
46156         tree.  Actually fail the whole test if any of the tools, or the
46157         configure or make stages fail.
46158
46159         Sync from Automake.
46160         * build-aux/gnupload: Revert last change.  Add pointer to upload
46161         instructions of the GNU Maintenance Instructions.
46162         Suggestion by Karl Berry.
46163
46164 2006-11-10  Jim Meyering  <jim@meyering.net>
46165
46166         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
46167
46168 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46169
46170         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
46171         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
46172         (bind_textdomain_codeset) [! ENABLE_NLS]:
46173         Evaluate all the arguments.  That way, callers get compatible behavior
46174         if the arguments have side effects.  Also, it avoids some GCC
46175         diagnostics in some cases; Joel E. Denny reported problems when Bison
46176         was configured with --enable-gcc-warnigs.
46177
46178 2006-11-10  Jim Meyering  <jim@meyering.net>
46179
46180         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
46181         relevant options in CFLAGS (like -O, -fno-inline) are taken into
46182         account.
46183
46184 2006-11-10  Jim Meyering  <jim@meyering.net>
46185
46186         * modules/inline: New file/module.
46187         * modules/xalloc (Files): Remove m4/inline.m4.
46188         (Depends-on): Add inline, instead.
46189         * modules/oset: Likewise.
46190         * modules/list: Likewise.
46191
46192 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46193
46194         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
46195         Problem reported by Matthew Woehlke.
46196
46197 2006-11-09  Bruno Haible  <bruno@clisp.org>
46198
46199         * lib/tempname.c (gen_tempname): Remove variant that invokes
46200         __gen_tempname.
46201         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
46202         __gen_tempname.
46203
46204 2006-11-08  Bruno Haible  <bruno@clisp.org>
46205
46206         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
46207         to 'yes' instead of 'cross-compiling'.
46208
46209 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
46210
46211         * lib/quotearg.h (quotearg_free): New decl.
46212         * lib/quotearg.c (quotearg_free): New function.
46213         (slot0, nslots, slotvec0, slotvec):
46214         Now file-scope so that quotearg_free can get at them.
46215
46216 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46217
46218         Sync from Automake.
46219         * build-aux/gnupload: Add missing 'gnu' to example URL.
46220         Report by Karl Berry.
46221
46222 2006-11-08  Bruno Haible  <bruno@clisp.org>
46223
46224         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
46225         Suggested by Paul Eggert.
46226
46227 2006-11-08  Jim Meyering  <jim@meyering.net>
46228
46229         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
46230         It's already included if !_LIBC.
46231         (fts_safe_changedir): Add a comment.
46232
46233 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46234
46235         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
46236         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
46237         Matthew Woehlke.
46238
46239         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
46240         definitions up, to avoid colliding with change below.
46241         (static_inline) [HAVE_INLINE]: New macro.
46242         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
46243         Provide extern decls when !HAVE_INLINE.  Do not define unless
46244         static_inline is defined, either by us or by xmalloc.c.  Use
46245         static_inline rather than static inline.
46246         (XCALLOC): Optimize sizeof(T) = 1 case.
46247         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
46248
46249 2006-11-07  Bruno Haible  <bruno@clisp.org>
46250
46251         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
46252         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
46253         AC_C_INLINE.
46254         * modules/xalloc (Files): Add m4/inline.m4.
46255
46256 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46257
46258         * README: Fix typo.
46259         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
46260         (Miscellanous Notes): ...from this.
46261
46262 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46263
46264         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
46265         Mention that offsetof should be used instead of sizeof.
46266         From Bruno Haible.
46267
46268 2006-11-07  Bruno Haible  <bruno@clisp.org>
46269
46270         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
46271
46272 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46273
46274         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46275         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
46276         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46277         (gl_tree_add_before, gl_tree_add_after):
46278         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
46279         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
46280         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46281         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
46282         (gl_linked_add_after, gl_linked_add_at): Likewise.
46283         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
46284         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46285         (gl_tree_add_before, gl_tree_add_after): Likewise.
46286         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
46287         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
46288         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
46289
46290 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46291
46292         * lib/gl_oset.h: Use C comment style, not C++ comment style.
46293
46294 2006-11-06  Bruno Haible  <bruno@clisp.org>
46295
46296         * m4/inline.m4: New file.
46297         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
46298         * modules/list (Files): Add m4/inline.m4.
46299         * modules/oset (Files): Likewise.
46300
46301 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46302
46303         * lib/idcache.c: Include <stddef.h>, for offsetof.
46304         (struct userid.name): Change from char * to a flexible array member.
46305         All uses changed.
46306         * modules/idcache (Depends-on): Add flexmember.
46307
46308         * MODULES.html.sh (Core language properties): New module flexmember.
46309         * modules/flexmember, m4/flexmember.m4: New files.
46310
46311         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
46312         inline functions that are identical with the old xnmalloc_inline,
46313         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
46314         that we can avoid some unnecessary integer multiplications and
46315         divisions in the common case where the element size is known at
46316         compile time.
46317         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
46318         needed.
46319         (xnboundedmalloc): Remove.
46320         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
46321         arguments, for consistency with rest of this header.
46322         (xcharalloc): Rewrite using XNMALLOC.
46323         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
46324         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
46325         versions have been moved to lib/xalloc.h and renamed to be the
46326         non-*_inline versions.
46327         (xmalloc, xrealloc): Implement without reference to the xnmalloc
46328         and xnrealloc functions, since those functions are now inline and
46329         now call us.
46330         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
46331         renaming described above.
46332         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
46333         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
46334         captures the dependency in AC_C_INLINE.
46335
46336         New module canonicalize-lgpl, proposed by Charles Wilson in
46337         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
46338         with a few small changes afterwards.
46339         * MODULES.html.sh (File system functions): New module
46340         canonicalize-lgpl.
46341         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
46342         and canonicalize_file_name.
46343         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
46344         * modules/canonicalize-lgpl: New files.
46345
46346 2006-11-05  Bruno Haible  <bruno@clisp.org>
46347
46348         * gnulib-tool (func_import, func_create_testdir): Create directories
46349         also for files in subdirectories of lib/.
46350
46351 2006-11-05  Bruno Haible  <bruno@clisp.org>
46352
46353         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
46354         ANSI C compliant.
46355
46356 2006-11-03  Bruno Haible  <bruno@clisp.org>
46357
46358         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46359         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
46360         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
46361         (xnboundedmalloc): New inline function.
46362         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
46363         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
46364         xmalloc.
46365         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
46366         xmalloc.
46367         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
46368         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
46369         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
46370         xmalloc.
46371         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46372         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
46373         xmalloc.
46374         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
46375         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46376         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
46377         xmalloc.
46378         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46379         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
46380         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46381         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
46382         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
46383         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
46384         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
46385
46386 2006-11-03  Bruno Haible  <bruno@clisp.org>
46387
46388         * lib/c-ctype.h [C++]: Define functions without name mangling.
46389         * lib/fwriteerror.h [C++]: Likewise.
46390         * lib/gcd.h [C++]: Likewise.
46391         * lib/linebreak.h [C++]: Likewise.
46392
46393 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
46394
46395         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
46396         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
46397         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
46398         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
46399         Check for functions and headers just once.
46400         Check for declaration of canonicalize_file_name.
46401         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
46402
46403 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46404
46405         * gnulib-tool (func_import): Fix typo in actioncmd.
46406
46407 2006-11-02  Bruno Haible  <bruno@clisp.org>
46408
46409         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
46410         newline sequence in the Makefile.am snippet as a space, like "make"
46411         does.
46412         Reported by Roger Persson <perrog@gmail.com>.
46413
46414 2006-11-01  Bruno Haible  <bruno@clisp.org>
46415
46416         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
46417         already declared in <string.h>.
46418         * lib/strcase.h (strncasecmp): Don't declare it if yes.
46419
46420 2006-11-01  Bruno Haible  <bruno@clisp.org>
46421
46422         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
46423         * lib/strcase.h: Include <string.h>.
46424         (strcasecmp): Define to rpl_strcasecmp here.
46425
46426 2006-11-01  Bruno Haible  <bruno@clisp.org>
46427
46428         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
46429
46430 2006-11-01  Eric Blake  <ebb9@byu.net>
46431
46432         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
46433
46434         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
46435
46436 2006-10-29  Bruno Haible  <bruno@clisp.org>
46437
46438         Make it compile in C++ mode.
46439         * lib/full-write.c (full_rw): Add a cast.
46440
46441 2006-11-01  Bruno Haible  <bruno@clisp.org>
46442
46443         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
46444         be POSIX compliant.
46445         Reported by Roger Persson <perrog@gmail.com>.
46446
46447 2006-11-01  Eric Blake  <ebb9@byu.net>
46448
46449         * lib/getopt_.h: Fix comments.
46450
46451 2006-10-31  Eric Blake  <ebb9@byu.net>
46452
46453         * modules/tmpdir (Depends-on): Add sys_stat.
46454         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
46455         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
46456         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
46457         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
46458         tempname.
46459
46460 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46461
46462         Avoid some C++ diagnostics reported by Bruno Haible.
46463         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
46464         xmalloc.
46465         (quotearg_alloc): Use xcharalloc rather than xmalloc.
46466         (struct slotvec): Move to top level.
46467         (quotearg_n_options): Rewrite to avoid xmalloc.
46468         * lib/xalloc.h (xcharalloc): New function.
46469         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
46470         [defined __cplusplus]: Add function template that provides result
46471         type propagation.  This part of the change is from Bruno Haible.
46472
46473 2006-10-29  Bruno Haible  <bruno@clisp.org>
46474
46475         Make it compile in C++ mode.
46476         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
46477         * lib/strnlen1.c (strnlen1): Cast memchr result.
46478         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
46479         * lib/clean-temp.c (string_equals, string_hash): Add casts.
46480         (create_temp_dir): Rename local variable 'template'.
46481         (compile_csharp_using_sscli): Add cast.
46482         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
46483         * lib/findprog.c (find_in_path): Likewise.
46484         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
46485         * lib/wait-process.c (register_slave_subprocess): Likewise.
46486
46487 2006-10-22  Bruno Haible  <bruno@clisp.org>
46488
46489         * modules/tsearch: New file.
46490         * lib/tsearch.h: New file.
46491         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
46492         * m4/tsearch.m4: New file.
46493         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
46494
46495 2006-10-29  Eric Blake  <ebb9@byu.net>
46496
46497         * lib/arcfour.c: Assume config.h.
46498         * lib/arctwo.c: Likewise.
46499         * lib/base64.c: Likewise.
46500         * lib/check-version.c: Likewise.
46501         * lib/crc.c: Likewise.
46502         * lib/des.c: Likewise.
46503         * lib/gc-gnulib.c: Likewise.
46504         * lib/gc-libgcrypt.c: Likewise.
46505         * lib/gc-pbkdf2-sha1.c: Likewise.
46506         * lib/getaddrinfo.c: Likewise.
46507         * lib/getdelim.c: Likewise.
46508         * lib/getline.c: Likewise.
46509         * lib/hmac-md5.c: Likewise.
46510         * lib/hmac-sha1.c: Likewise.
46511         * lib/iconvme.c: Likewise.
46512         * lib/md2.c: Likewise.
46513         * lib/md4.c: Likewise.
46514         * lib/memxor.c: Likewise.
46515         * lib/read-file.c: Likewise.
46516         * lib/readline.c: Likewise.
46517         * lib/rijndael-alg-fst.c: Likewise.
46518         * lib/rijndael-api-fst.c: Likewise.
46519         * lib/xgetdomainname.c: Likewise.
46520
46521 2006-10-28  Eric Blake  <ebb9@byu.net>
46522
46523         * lib/xstrndup.c: Assume config.h.
46524
46525 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46526
46527         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
46528         stat-macros.h is now for our own macros, whereas stat_h is for
46529         macros in the <sys/stat.h> name space.
46530         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
46531         (STAT_MACROS_H): Remove.
46532         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
46533         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
46534         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
46535         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
46536         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
46537         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
46538         Move these macros to ...
46539         * lib/stat_.h: here.  Don't include stat-macros.h.
46540         * lib/canonicalize.c: Don't include stat-macros.h.
46541         * lib/chown.c: Likewise.
46542         * lib/euidaccess.c: Likewise.
46543         * lib/file-type.c: Likewise.
46544         * lib/filemode.c: Likewise.
46545         * lib/glob.c: Likewise.
46546         * lib/isapipe.c: Likewise.
46547         * lib/lchown.c: Likewise.
46548         * lib/lstat.c: Likewise.
46549         * lib/mkdir-p.c: Likewise.
46550         * lib/rmdir.c: Likewise.
46551         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
46552         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
46553         unless mkdir isn't declared, to speed up 'configure'.
46554         Always create sys/stat.h, since it's unlikely any real sys/stat.h
46555         would define all the S_* symbols.
46556         * modules/canonicalize (Depends-on):
46557         Depend on sys_stat, not stat-macros.
46558         * modules/chown: Likewise.
46559         * modules/euidaccess: Likewise.
46560         * modules/filemode: Likewise.
46561         * modules/file-type: Likewise.
46562         * modules/glob: Likewise.
46563         * modules/isapipe: Likewise.
46564         * modules/lchown: Likewise.
46565         * modules/lstat: Likewise.
46566         * modules/mkancesdirs: Likewise.
46567         * modules/rmdir: Likewise.
46568         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
46569         * modules/modechange: Likewise.
46570         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
46571         (configure.ac): Remove gl_STAT_MACROS.
46572         * modules/sys_stat (Depends-on): Remove stat-macros.
46573
46574 2006-10-27  Bruno Haible  <bruno@clisp.org>
46575
46576         * m4/signed.m4: Remove file.
46577         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
46578         invocation.
46579         * modules/vasnprintf (Files): Remove m4/signed.m4.
46580
46581 2006-10-27  Bruno Haible  <bruno@clisp.org>
46582
46583         Update to GNU gettext 0.16.
46584         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46585         m4/inttypes-h.m4, m4/signed.m4.
46586         * m4/gettext.m4: Update to GNU gettext 0.16.
46587         * m4/intl.m4: New file, from GNU gettext.
46588         * m4/intldir.m4: New file, from GNU gettext.
46589         * config/srclist.txt: Update
46590
46591 2006-10-27  Eric Blake  <ebb9@byu.net>
46592
46593         * MODULES.html.sh: Document tempname.
46594         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46595         dependencies.
46596         (Files): Move lib/tempname.c...
46597         * modules/tempname: ...to this new module.
46598         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46599         (gl_PREREQ_TEMPNAME): Move...
46600         * m4/tempname.m4: ...to this new file.
46601         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46602         * modules/sys_stat (Depends-on): Add stat-macros.
46603         * lib/stat_.h (includes): Pick up stat macros.
46604         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46605         if stat macros are broken.
46606         * lib/tempname.c (includes): No need to include "stat-macros.h".
46607         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46608         (direxists, __path_search) [!_LIBC]: Don't compile these in
46609         gnulib; the tmpdir module covers that.
46610         * lib/tempname.h: New file.
46611
46612 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46613
46614         * COPYING: Explain how gnulib-tool converts licence headers.
46615         Almost all wording by Eric Blake.
46616
46617 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46618
46619         * lib/mbchar.h (is_basic_table): Make read-only.
46620         * lib/mbchar.c (is_basic_table): Likewise.
46621         Reported by John Darrington.
46622
46623 2006-10-25  Bruno Haible  <bruno@clisp.org>
46624
46625         * lib/progname.h (set_program_name): Undefine before defining.
46626
46627 2006-10-25  Bruno Haible  <bruno@clisp.org>
46628
46629         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46630         false for non-gcc C++ compilers.
46631         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46632
46633 2006-10-24  Bruno Haible  <bruno@clisp.org>
46634
46635         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46636         iconv implementations like Irix iconv.
46637
46638 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46639
46640         * modules/vararrays: New file.
46641         * m4/vararrays.m4: New file, taken from diffutils.
46642         * MODULES.html.sh: New module vararrays.
46643
46644 2006-10-24  Karl Berry  <karl@gnu.org>
46645
46646         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46647         Don't call GNU Unix.
46648
46649 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46650
46651         * users.txt: Add Libtool.
46652
46653         Sync from Libtool:
46654
46655         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46656
46657         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46658         to gnulib's policy of including config.h unconditionally.
46659
46660 2006-10-24  Bruno Haible  <bruno@clisp.org>
46661
46662         * modules/wcwidth (Files): Add m4/wint_t.m4.
46663         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46664         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46665
46666 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46667
46668         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46669         to pacify GCC with some -W flags enabled.  Problem reported by
46670         Bruno Haible.
46671
46672 2006-10-24  Jim Meyering  <jim@meyering.net>
46673
46674         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46675         Reported by Karl Berry.
46676
46677 2006-10-23  Bruno Haible  <bruno@clisp.org>
46678
46679         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46680
46681 2006-10-24  Bruno Haible  <bruno@clisp.org>
46682
46683         * lib/gl_list.h: Use C comment style, not C++ comment style.
46684
46685 2006-10-23  Eric Blake  <ebb9@byu.net>
46686
46687         * lib/getaddrinfo.c (includes): Add missing include.
46688
46689 2006-10-23  Bruno Haible  <bruno@clisp.org>
46690             Paul Eggert  <eggert@cs.ucla.edu>
46691
46692         Ability to rename obstack_free.
46693         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46694         obstack_free.
46695         (obstack_free): Invoke the __obstack_free macro.
46696         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46697
46698 2006-10-23  Bruno Haible  <bruno@clisp.org>
46699             Paul Eggert  <eggert@cs.ucla.edu>
46700
46701         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46702         __argc, __argv from the declaration. (They are defined as macros on
46703         mingw.)
46704
46705 2006-10-22  Bruno Haible  <bruno@clisp.org>
46706
46707         * doc/gnulib-intro.texi: New file.
46708         * doc/gnulib.texi: Include it.
46709
46710 2006-10-21  Bruno Haible  <bruno@clisp.org>
46711
46712         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46713         "Introduction", "Miscellanous Notes", "Particular Modules".
46714
46715 2006-10-21  Bruno Haible  <bruno@clisp.org>
46716
46717         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46718         Change mostlyclean-local rule to avoid sh syntax error from bash
46719         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46720
46721 2006-10-23  Jim Meyering  <jim@meyering.net>
46722
46723         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46724         in place of snprintf.
46725
46726         * modules/inttostr (Files): Add lib/uinttostr.c.
46727         * lib/uinttostr.c (inttostr): New file/function.
46728         * lib/inttostr.h (uinttostr): Declare.
46729         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46730         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46731         Add uinttostr.
46732         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46733
46734 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46735
46736         * lib/canonicalize.c (ELOOP): Define if not already defined.
46737         Problem reported by Bruno Haible in
46738         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46739
46740 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46741
46742         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46743         Problem reported by Perry Smith and Ville Laurikari.
46744
46745         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46746         uses.
46747
46748 2006-10-19  Bruno Haible  <bruno@clisp.org>
46749
46750         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46751         for mingw.
46752
46753 2006-10-19  Bruno Haible  <bruno@clisp.org>
46754
46755         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46756         Needed for mingw.
46757
46758 2006-10-19  Bruno Haible  <bruno@clisp.org>
46759
46760         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46761
46762 2006-10-19  Bruno Haible  <bruno@clisp.org>
46763
46764         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46765         it.
46766
46767 2006-10-19  Bruno Haible  <bruno@clisp.org>
46768
46769         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46770         invocation.
46771
46772 2006-10-19  Bruno Haible  <bruno@clisp.org>
46773
46774         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46775         mountlist by default.
46776
46777 2006-10-16  Bruno Haible  <bruno@clisp.org>
46778
46779         * lib/c-strstr.c: Include c-strstr.h.
46780
46781 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46782
46783         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46784         in a slash.
46785
46786 2006-10-18  Bruno Haible  <bruno@clisp.org>
46787
46788         * lib/lock.h [C++]: Wrap definitions in extern "C".
46789
46790 2006-10-18  Bruno Haible  <bruno@clisp.org>
46791
46792         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46793         gl_LIBOBJS list.
46794
46795 2006-10-18  Bruno Haible  <bruno@clisp.org>
46796
46797         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46798
46799 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46800
46801         * lib/xstrtol.h: Include gettext.h.
46802         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46803         Problem reported by Eric Blake.
46804         * modules/xstrtol (Depends-on): Add gettext-h.
46805
46806 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46807
46808         * lib/strftime.c (advance): New macro.
46809         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46810         incomplete type, so you can't add 0 to it.  Problem and patch
46811         reported by Eelco Dolstra for dietlibc.
46812
46813 2006-10-18  Jim Meyering  <jim@meyering.net>
46814
46815         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46816         type for a local, and rename it: s/up/user_proc/.
46817
46818 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46819
46820         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46821         READ_UTMP_USER_PROCESS.
46822         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46823
46824 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46825
46826         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46827         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46828
46829 2006-10-17  Eric Blake  <ebb9@byu.net>
46830
46831         * lib/sigprocmask.c (sigprocmask): Fix typo.
46832
46833         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
46834
46835         * modules/clean-temp (Makefile.am): Don't add to make output...
46836         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
46837         config.h.
46838
46839 2006-10-17  Bruno Haible  <bruno@clisp.org>
46840
46841         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
46842         differently if DEFAULT_TEXT_DOMAIN is set.
46843
46844 2006-10-16  Bruno Haible  <bruno@clisp.org>
46845
46846         * lib/clean-temp.c: Include fwriteerror.h.
46847
46848 2006-10-16  Bruno Haible  <bruno@clisp.org>
46849
46850         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
46851
46852 2006-10-16  Bruno Haible  <bruno@clisp.org>
46853
46854         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
46855         * lib/sigprocmask.h: Include <sys/types.h>.
46856         (sigset_t): Use the system's definition if present.
46857
46858 2006-10-17  Eric Blake  <ebb9@byu.net>
46859
46860         * lib/xvasprintf.c (includes): Assume config.h.
46861         * lib/xasprintf.c (includes): Likewise.
46862
46863 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46864
46865         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
46866         at least as wide as intmax_t.
46867
46868 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
46869
46870         (Imported from Automake.)
46871         * build-aux/gnupload: Update to version 1.1 of directive file.
46872
46873 2006-10-16  Eric Blake  <ebb9@byu.net>
46874
46875         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
46876         match Automake 1.10a.
46877
46878 2006-10-14  Bruno Haible  <bruno@clisp.org>
46879
46880         * modules/sigprocmask: New file.
46881         * lib/sigprocmask.h: New file.
46882         * lib/sigprocmask.c: New file.
46883         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
46884         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
46885         request sigprocmask.o.
46886         (gl_PREREQ_SIGPROCMASK): New macro.
46887         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
46888         (Depends-on): Add sigprocmask.
46889         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
46890         gt_SIGNALBLOCKING. Test for 'raise' only once.
46891         * lib/fatal-signal.c: Include sigprocmask.h.
46892         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
46893         unblock_fatal_signals): Define always.
46894         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46895         sigprocmask.
46896
46897 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46898
46899         Sync from Automake.
46900         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
46901         which incorrectly sets the mode of an existing destination
46902         directory.  In some cases the unpatched install-sh could do the
46903         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
46904         system.  We hope this is rare in practice, but it's clearly worth
46905         fixing.  Problem reported by Alex Unleashed in
46906         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
46907         Also, don't bother to check for -m bugs unless we're using -m;
46908         suggested by Stepan Kasal.
46909
46910 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46911
46912         Sync from Automake.
46913         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
46914         `-c' flag, so they appear at the same position as in %FASTDEP%
46915         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
46916         which ignores unknown options only after the first non-option.
46917         Bug report against M4 by Nelson H. F. Beebe.
46918
46919 2006-10-13  Jim Meyering  <jim@meyering.net>
46920
46921         Fix a bug in yesterday's change.
46922         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
46923         p->fts_statp->st_dev would be used uninitialized.
46924         Ensures that we always call fts_stat on the very first entry.
46925         Miklos Szeredi reported that find -xdev stopped working.
46926
46927 2006-10-12  Bruno Haible  <bruno@clisp.org>
46928
46929         * gnulib-tool (func_get_automake_snippet): Append an automatically
46930         computed EXTRA_DIST augmentation.
46931         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
46932         * modules/alloca-opt (Makefile.am): Likewise.
46933         * modules/allocsa (Makefile.am): Likewise.
46934         * modules/arcfour (Makefile.am): Likewise.
46935         * modules/arctwo (Makefile.am): Likewise.
46936         * modules/argmatch (Makefile.am): Likewise.
46937         * modules/argz (Makefile.am): Likewise.
46938         * modules/atexit (Makefile.am): Likewise.
46939         * modules/backupfile (Makefile.am): Likewise.
46940         * modules/byteswap (Makefile.am): Likewise.
46941         * modules/c-strtod (Makefile.am): Likewise.
46942         * modules/c-strtold (Makefile.am): Likewise.
46943         * modules/calloc (Makefile.am): Likewise.
46944         * modules/canon-host (Makefile.am): Likewise.
46945         * modules/canonicalize (Makefile.am): Likewise.
46946         * modules/chdir-long (Makefile.am): Likewise.
46947         * modules/chdir-safer (Makefile.am): Likewise.
46948         * modules/check-version (Makefile.am): Likewise.
46949         * modules/chown (Makefile.am): Likewise.
46950         * modules/cloexec (Makefile.am): Likewise.
46951         * modules/close-stream (Makefile.am): Likewise.
46952         * modules/closeout (Makefile.am): Likewise.
46953         * modules/crc (Makefile.am): Likewise.
46954         * modules/csharpexec (Makefile.am): Likewise.
46955         * modules/cycle-check (Makefile.am): Likewise.
46956         * modules/des (Makefile.am): Likewise.
46957         * modules/dev-ino (Makefile.am): Likewise.
46958         * modules/dirfd (Makefile.am): Likewise.
46959         * modules/dirname (Makefile.am): Likewise.
46960         * modules/dup2 (Makefile.am): Likewise.
46961         * modules/eealloc (Makefile.am): Likewise.
46962         * modules/error (Makefile.am): Likewise.
46963         * modules/euidaccess (Makefile.am): Likewise.
46964         * modules/exclude (Makefile.am): Likewise.
46965         * modules/exitfail (Makefile.am): Likewise.
46966         * modules/fcntl-safer (Makefile.am): Likewise.
46967         * modules/fcntl (Makefile.am): Likewise.
46968         * modules/file-type (Makefile.am): Likewise.
46969         * modules/fileblocks (Makefile.am): Likewise.
46970         * modules/filemode (Makefile.am): Likewise.
46971         * modules/filenamecat (Makefile.am): Likewise.
46972         * modules/fnmatch (Makefile.am): Likewise.
46973         * modules/fopen-safer (Makefile.am): Likewise.
46974         * modules/fpending (Makefile.am): Likewise.
46975         * modules/fprintftime (Makefile.am): Likewise.
46976         * modules/free (Makefile.am): Likewise.
46977         * modules/fsusage (Makefile.am): Likewise.
46978         * modules/ftruncate (Makefile.am): Likewise.
46979         * modules/fts (Makefile.am): Likewise.
46980         * modules/gc-arcfour (Makefile.am): Likewise.
46981         * modules/gc-des (Makefile.am): Likewise.
46982         * modules/gc-hmac-md5 (Makefile.am): Likewise.
46983         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
46984         * modules/gc-md4 (Makefile.am): Likewise.
46985         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
46986         * modules/gc-sha1 (Makefile.am): Likewise.
46987         * modules/gc (Makefile.am): Likewise.
46988         * modules/getaddrinfo (Makefile.am): Likewise.
46989         * modules/getcwd (Makefile.am): Likewise.
46990         * modules/getdelim (Makefile.am): Likewise.
46991         * modules/getdomainname (Makefile.am): Likewise.
46992         * modules/getgroups (Makefile.am): Likewise.
46993         * modules/gethostname (Makefile.am): Likewise.
46994         * modules/gethrxtime (Makefile.am): Likewise.
46995         * modules/getline (Makefile.am): Likewise.
46996         * modules/getloadavg (Makefile.am): Likewise.
46997         * modules/getlogin_r (Makefile.am): Likewise.
46998         * modules/getndelim2 (Makefile.am): Likewise.
46999         * modules/getopt (Makefile.am): Likewise.
47000         * modules/getpagesize (Makefile.am): Likewise.
47001         * modules/getpass-gnu (Makefile.am): Likewise.
47002         * modules/getpass (Makefile.am): Likewise.
47003         * modules/getsubopt (Makefile.am): Likewise.
47004         * modules/gettime (Makefile.am): Likewise.
47005         * modules/gettimeofday (Makefile.am): Likewise.
47006         * modules/getugroups (Makefile.am): Likewise.
47007         * modules/getusershell (Makefile.am): Likewise.
47008         * modules/glob (Makefile.am): Likewise.
47009         * modules/group-member (Makefile.am): Likewise.
47010         * modules/hard-locale (Makefile.am): Likewise.
47011         * modules/hash (Makefile.am): Likewise.
47012         * modules/hmac-md5 (Makefile.am): Likewise.
47013         * modules/hmac-sha1 (Makefile.am): Likewise.
47014         * modules/human (Makefile.am): Likewise.
47015         * modules/idcache (Makefile.am): Likewise.
47016         * modules/imaxabs (Makefile.am): Likewise.
47017         * modules/imaxdiv (Makefile.am): Likewise.
47018         * modules/inet_ntop (Makefile.am): Likewise.
47019         * modules/inet_pton (Makefile.am): Likewise.
47020         * modules/intprops (Makefile.am): Likewise.
47021         * modules/inttostr (Makefile.am): Likewise.
47022         * modules/inttypes (Makefile.am): Likewise.
47023         * modules/isapipe (Makefile.am): Likewise.
47024         * modules/javaversion (Makefile.am): Likewise.
47025         * modules/lchmod (Makefile.am): Likewise.
47026         * modules/lchown (Makefile.am): Likewise.
47027         * modules/localcharset (Makefile.am): Likewise.
47028         * modules/long-options (Makefile.am): Likewise.
47029         * modules/lstat (Makefile.am): Likewise.
47030         * modules/malloc (Makefile.am): Likewise.
47031         * modules/mathl (Makefile.am): Likewise.
47032         * modules/mbchar (Makefile.am): Likewise.
47033         * modules/md2 (Makefile.am): Likewise.
47034         * modules/md4 (Makefile.am): Likewise.
47035         * modules/md5 (Makefile.am): Likewise.
47036         * modules/memcasecmp (Makefile.am): Likewise.
47037         * modules/memchr (Makefile.am): Likewise.
47038         * modules/memcmp (Makefile.am): Likewise.
47039         * modules/memcoll (Makefile.am): Likewise.
47040         * modules/memcpy (Makefile.am): Likewise.
47041         * modules/memmem (Makefile.am): Likewise.
47042         * modules/memmove (Makefile.am): Likewise.
47043         * modules/mempcpy (Makefile.am): Likewise.
47044         * modules/memrchr (Makefile.am): Likewise.
47045         * modules/memset (Makefile.am): Likewise.
47046         * modules/memxor (Makefile.am): Likewise.
47047         * modules/mkancesdirs (Makefile.am): Likewise.
47048         * modules/mkdir-p (Makefile.am): Likewise.
47049         * modules/mkdir (Makefile.am): Likewise.
47050         * modules/mkdtemp (Makefile.am): Likewise.
47051         * modules/mkstemp (Makefile.am): Likewise.
47052         * modules/mktime (Makefile.am): Likewise.
47053         * modules/modechange (Makefile.am): Likewise.
47054         * modules/mountlist (Makefile.am): Likewise.
47055         * modules/nanosleep (Makefile.am): Likewise.
47056         * modules/obstack (Makefile.am): Likewise.
47057         * modules/openat (Makefile.am): Likewise.
47058         * modules/pagealign_alloc (Makefile.am): Likewise.
47059         * modules/pathmax (Makefile.am): Likewise.
47060         * modules/physmem (Makefile.am): Likewise.
47061         * modules/poll (Makefile.am): Likewise.
47062         * modules/posixtm (Makefile.am): Likewise.
47063         * modules/posixver (Makefile.am): Likewise.
47064         * modules/putenv (Makefile.am): Likewise.
47065         * modules/quote (Makefile.am): Likewise.
47066         * modules/quotearg (Makefile.am): Likewise.
47067         * modules/raise (Makefile.am): Likewise.
47068         * modules/read-file (Makefile.am): Likewise.
47069         * modules/readline (Makefile.am): Likewise.
47070         * modules/readlink (Makefile.am): Likewise.
47071         * modules/readtokens (Makefile.am): Likewise.
47072         * modules/readutmp (Makefile.am): Likewise.
47073         * modules/realloc (Makefile.am): Likewise.
47074         * modules/regex (Makefile.am): Likewise.
47075         * modules/rename-dest-slash (Makefile.am): Likewise.
47076         * modules/rename (Makefile.am): Likewise.
47077         * modules/rijndael (Makefile.am): Likewise.
47078         * modules/rmdir (Makefile.am): Likewise.
47079         * modules/rpmatch (Makefile.am): Likewise.
47080         * modules/safe-read (Makefile.am): Likewise.
47081         * modules/safe-write (Makefile.am): Likewise.
47082         * modules/same-inode (Makefile.am): Likewise.
47083         * modules/same (Makefile.am): Likewise.
47084         * modules/save-cwd (Makefile.am): Likewise.
47085         * modules/savedir (Makefile.am): Likewise.
47086         * modules/setenv (Makefile.am): Likewise.
47087         * modules/settime (Makefile.am): Likewise.
47088         * modules/sha1 (Makefile.am): Likewise.
47089         * modules/sig2str (Makefile.am): Likewise.
47090         * modules/snprintf (Makefile.am): Likewise.
47091         * modules/stat-macros (Makefile.am): Likewise.
47092         * modules/stat-time (Makefile.am): Likewise.
47093         * modules/stdbool (Makefile.am): Likewise.
47094         * modules/stdint (Makefile.am): Likewise.
47095         * modules/stdlib-safer (Makefile.am): Likewise.
47096         * modules/stpcpy (Makefile.am): Likewise.
47097         * modules/stpncpy (Makefile.am): Likewise.
47098         * modules/strcase (Makefile.am): Likewise.
47099         * modules/strcasestr (Makefile.am): Likewise.
47100         * modules/strchrnul (Makefile.am): Likewise.
47101         * modules/strcspn (Makefile.am): Likewise.
47102         * modules/strdup (Makefile.am): Likewise.
47103         * modules/strerror (Makefile.am): Likewise.
47104         * modules/strftime (Makefile.am): Likewise.
47105         * modules/strndup (Makefile.am): Likewise.
47106         * modules/strnlen (Makefile.am): Likewise.
47107         * modules/strpbrk (Makefile.am): Likewise.
47108         * modules/strsep (Makefile.am): Likewise.
47109         * modules/strstr (Makefile.am): Likewise.
47110         * modules/strtod (Makefile.am): Likewise.
47111         * modules/strtoimax (Makefile.am): Likewise.
47112         * modules/strtok_r (Makefile.am): Likewise.
47113         * modules/strtol (Makefile.am): Likewise.
47114         * modules/strtoll (Makefile.am): Likewise.
47115         * modules/strtoul (Makefile.am): Likewise.
47116         * modules/strtoull (Makefile.am): Likewise.
47117         * modules/strtoumax (Makefile.am): Likewise.
47118         * modules/strverscmp (Makefile.am): Likewise.
47119         * modules/sys_socket (Makefile.am): Likewise.
47120         * modules/sys_stat (Makefile.am): Likewise.
47121         * modules/sysexits (Makefile.am): Likewise.
47122         * modules/time_r (Makefile.am): Likewise.
47123         * modules/timegm (Makefile.am): Likewise.
47124         * modules/timespec (Makefile.am): Likewise.
47125         * modules/tmpfile-safer (Makefile.am): Likewise.
47126         * modules/trim (Makefile.am): Likewise.
47127         * modules/unistd-safer (Makefile.am): Likewise.
47128         * modules/unlinkdir (Makefile.am): Likewise.
47129         * modules/unlocked-io (Makefile.am): Likewise.
47130         * modules/userspec (Makefile.am): Likewise.
47131         * modules/utime (Makefile.am): Likewise.
47132         * modules/utimecmp (Makefile.am): Likewise.
47133         * modules/utimens (Makefile.am): Likewise.
47134         * modules/vasnprintf (Makefile.am): Likewise.
47135         * modules/vasprintf (Makefile.am): Likewise.
47136         * modules/vsnprintf (Makefile.am): Likewise.
47137         * modules/xalloc (Makefile.am): Likewise.
47138         * modules/xgetcwd (Makefile.am): Likewise.
47139         * modules/xnanosleep (Makefile.am): Likewise.
47140         * modules/xreadlink (Makefile.am): Likewise.
47141         * modules/xstrtod (Makefile.am): Likewise.
47142         * modules/xstrtol (Makefile.am): Likewise.
47143         * modules/xstrtold (Makefile.am): Likewise.
47144         * modules/yesno (Makefile.am): Likewise.
47145         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
47146
47147 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47148
47149         * modules/error (Makefile.am): Distribute files through
47150         EXTRA_DIST, not lib_SOURCES.
47151
47152 2006-10-12  Eric Blake  <ebb9@byu.net>
47153
47154         * modules/error (Makefile.am): Distribute files in /lib.
47155         * modules/obstack (Makefile.am): Likewise.
47156
47157 2006-10-12  Bruno Haible  <bruno@clisp.org>
47158
47159         * modules/acl (Makefile.am): Distribute all files in lib/ through
47160         EXTRA_DIST.
47161         * modules/arcfour (Makefile.am): Likewise.
47162         * modules/arctwo (Makefile.am): Likewise.
47163         * modules/argmatch (Makefile.am): Likewise.
47164         * modules/argz (Makefile.am): Likewise.
47165         * modules/atexit (Makefile.am): Likewise.
47166         * modules/backupfile (Makefile.am): Likewise.
47167         * modules/c-strtod (Makefile.am): Likewise.
47168         * modules/c-strtold (Makefile.am): Likewise.
47169         * modules/calloc (Makefile.am): Likewise.
47170         * modules/canon-host (Makefile.am): Likewise.
47171         * modules/canonicalize (Makefile.am): Likewise.
47172         * modules/chdir-long (Makefile.am): Likewise.
47173         * modules/chdir-safer (Makefile.am): Likewise.
47174         * modules/check-version (Makefile.am): Likewise.
47175         * modules/chown (Makefile.am): Likewise.
47176         * modules/cloexec (Makefile.am): Likewise.
47177         * modules/close-stream (Makefile.am): Likewise.
47178         * modules/closeout (Makefile.am): Likewise.
47179         * modules/crc (Makefile.am): Likewise.
47180         * modules/cycle-check (Makefile.am): Likewise.
47181         * modules/des (Makefile.am): Likewise.
47182         * modules/dirfd (Makefile.am): Likewise.
47183         * modules/dirname (Makefile.am): Likewise.
47184         * modules/dup2 (Makefile.am): Likewise.
47185         * modules/euidaccess (Makefile.am): Likewise.
47186         * modules/exclude (Makefile.am): Likewise.
47187         * modules/exitfail (Makefile.am): Likewise.
47188         * modules/fcntl-safer (Makefile.am): Likewise.
47189         * modules/file-type (Makefile.am): Likewise.
47190         * modules/fileblocks (Makefile.am): Likewise.
47191         * modules/filemode (Makefile.am): Likewise.
47192         * modules/filenamecat (Makefile.am): Likewise.
47193         * modules/fnmatch (Makefile.am): Likewise.
47194         * modules/fopen-safer (Makefile.am): Likewise.
47195         * modules/fpending (Makefile.am): Likewise.
47196         * modules/fprintftime (Makefile.am): Likewise.
47197         * modules/free (Makefile.am): Likewise.
47198         * modules/fsusage (Makefile.am): Likewise.
47199         * modules/ftruncate (Makefile.am): Likewise.
47200         * modules/fts (Makefile.am): Likewise.
47201         * modules/gc (Makefile.am): Likewise.
47202         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47203         * modules/getaddrinfo (Makefile.am): Likewise.
47204         * modules/getcwd (Makefile.am): Likewise.
47205         * modules/getdelim (Makefile.am): Likewise.
47206         * modules/getdomainname (Makefile.am): Likewise.
47207         * modules/getgroups (Makefile.am): Likewise.
47208         * modules/gethostname (Makefile.am): Likewise.
47209         * modules/gethrxtime (Makefile.am): Likewise.
47210         * modules/getline (Makefile.am): Likewise.
47211         * modules/getloadavg (Makefile.am): Likewise.
47212         * modules/getlogin_r (Makefile.am): Likewise.
47213         * modules/getopt (Makefile.am): Likewise.
47214         * modules/getpass (Makefile.am): Likewise.
47215         * modules/getpass-gnu (Makefile.am): Likewise.
47216         * modules/getsubopt (Makefile.am): Likewise.
47217         * modules/gettime (Makefile.am): Likewise.
47218         * modules/gettimeofday (Makefile.am): Likewise.
47219         * modules/getugroups (Makefile.am): Likewise.
47220         * modules/getusershell (Makefile.am): Likewise.
47221         * modules/glob (Makefile.am): Likewise.
47222         * modules/group-member (Makefile.am): Likewise.
47223         * modules/hard-locale (Makefile.am): Likewise.
47224         * modules/hash (Makefile.am): Likewise.
47225         * modules/hmac-md5 (Makefile.am): Likewise.
47226         * modules/hmac-sha1 (Makefile.am): Likewise.
47227         * modules/human (Makefile.am): Likewise.
47228         * modules/idcache (Makefile.am): Likewise.
47229         * modules/imaxabs (Makefile.am): Likewise.
47230         * modules/imaxdiv (Makefile.am): Likewise.
47231         * modules/inet_ntop (Makefile.am): Likewise.
47232         * modules/inet_pton (Makefile.am): Likewise.
47233         * modules/inttostr (Makefile.am): Likewise.
47234         * modules/isapipe (Makefile.am): Likewise.
47235         * modules/lchown (Makefile.am): Likewise.
47236         * modules/long-options (Makefile.am): Likewise.
47237         * modules/lstat (Makefile.am): Likewise.
47238         * modules/malloc (Makefile.am): Likewise.
47239         * modules/mathl (Makefile.am): Likewise.
47240         * modules/mbchar (Makefile.am): Likewise.
47241         * modules/md2 (Makefile.am): Likewise.
47242         * modules/md4 (Makefile.am): Likewise.
47243         * modules/md5 (Makefile.am): Likewise.
47244         * modules/memcasecmp (Makefile.am): Likewise.
47245         * modules/memchr (Makefile.am): Likewise.
47246         * modules/memcmp (Makefile.am): Likewise.
47247         * modules/memcoll (Makefile.am): Likewise.
47248         * modules/memcpy (Makefile.am): Likewise.
47249         * modules/memmem (Makefile.am): Likewise.
47250         * modules/memmove (Makefile.am): Likewise.
47251         * modules/mempcpy (Makefile.am): Likewise.
47252         * modules/memrchr (Makefile.am): Likewise.
47253         * modules/memset (Makefile.am): Likewise.
47254         * modules/memxor (Makefile.am): Likewise.
47255         * modules/mkancesdirs (Makefile.am): Likewise.
47256         * modules/mkdir (Makefile.am): Likewise.
47257         * modules/mkdir-p (Makefile.am): Likewise.
47258         * modules/mkdtemp (Makefile.am): Likewise.
47259         * modules/mkstemp (Makefile.am): Likewise.
47260         * modules/mktime (Makefile.am): Likewise.
47261         * modules/modechange (Makefile.am): Likewise.
47262         * modules/mountlist (Makefile.am): Likewise.
47263         * modules/nanosleep (Makefile.am): Likewise.
47264         * modules/openat (Makefile.am): Likewise.
47265         * modules/pagealign_alloc (Makefile.am): Likewise.
47266         * modules/physmem (Makefile.am): Likewise.
47267         * modules/poll (Makefile.am): Likewise.
47268         * modules/posixtm (Makefile.am): Likewise.
47269         * modules/posixver (Makefile.am): Likewise.
47270         * modules/putenv (Makefile.am): Likewise.
47271         * modules/quote (Makefile.am): Likewise.
47272         * modules/quotearg (Makefile.am): Likewise.
47273         * modules/raise (Makefile.am): Likewise.
47274         * modules/read-file (Makefile.am): Likewise.
47275         * modules/readline (Makefile.am): Likewise.
47276         * modules/readlink (Makefile.am): Likewise.
47277         * modules/readtokens (Makefile.am): Likewise.
47278         * modules/readutmp (Makefile.am): Likewise.
47279         * modules/realloc (Makefile.am): Likewise.
47280         * modules/regex (Makefile.am): Likewise.
47281         * modules/rename (Makefile.am): Likewise.
47282         * modules/rename-dest-slash (Makefile.am): Likewise.
47283         * modules/rijndael (Makefile.am): Likewise.
47284         * modules/rmdir (Makefile.am): Likewise.
47285         * modules/rpmatch (Makefile.am): Likewise.
47286         * modules/safe-read (Makefile.am): Likewise.
47287         * modules/safe-write (Makefile.am): Likewise.
47288         * modules/same (Makefile.am): Likewise.
47289         * modules/save-cwd (Makefile.am): Likewise.
47290         * modules/savedir (Makefile.am): Likewise.
47291         * modules/setenv (Makefile.am): Likewise.
47292         * modules/settime (Makefile.am): Likewise.
47293         * modules/sha1 (Makefile.am): Likewise.
47294         * modules/sig2str (Makefile.am): Likewise.
47295         * modules/snprintf (Makefile.am): Likewise.
47296         * modules/stdlib-safer (Makefile.am): Likewise.
47297         * modules/stpcpy (Makefile.am): Likewise.
47298         * modules/stpncpy (Makefile.am): Likewise.
47299         * modules/strcase (Makefile.am): Likewise.
47300         * modules/strcasestr (Makefile.am): Likewise.
47301         * modules/strchrnul (Makefile.am): Likewise.
47302         * modules/strcspn (Makefile.am): Likewise.
47303         * modules/strdup (Makefile.am): Likewise.
47304         * modules/strerror (Makefile.am): Likewise.
47305         * modules/strftime (Makefile.am): Likewise.
47306         * modules/strndup (Makefile.am): Likewise.
47307         * modules/strnlen (Makefile.am): Likewise.
47308         * modules/strpbrk (Makefile.am): Likewise.
47309         * modules/strsep (Makefile.am): Likewise.
47310         * modules/strstr (Makefile.am): Likewise.
47311         * modules/strtod (Makefile.am): Likewise.
47312         * modules/strtoimax (Makefile.am): Likewise.
47313         * modules/strtok_r (Makefile.am): Likewise.
47314         * modules/strtol (Makefile.am): Likewise.
47315         * modules/strtoll (Makefile.am): Likewise.
47316         * modules/strtoul (Makefile.am): Likewise.
47317         * modules/strtoull (Makefile.am): Likewise.
47318         * modules/strtoumax (Makefile.am): Likewise.
47319         * modules/strverscmp (Makefile.am): Likewise.
47320         * modules/time_r (Makefile.am): Likewise.
47321         * modules/timegm (Makefile.am): Likewise.
47322         * modules/tmpfile-safer (Makefile.am): Likewise.
47323         * modules/unistd-safer (Makefile.am): Likewise.
47324         * modules/unlinkdir (Makefile.am): Likewise.
47325         * modules/userspec (Makefile.am): Likewise.
47326         * modules/utime (Makefile.am): Likewise.
47327         * modules/utimecmp (Makefile.am): Likewise.
47328         * modules/utimens (Makefile.am): Likewise.
47329         * modules/vasnprintf (Makefile.am): Likewise.
47330         * modules/vasprintf (Makefile.am): Likewise.
47331         * modules/vsnprintf (Makefile.am): Likewise.
47332         * modules/xalloc (Makefile.am): Likewise.
47333         * modules/xgetcwd (Makefile.am): Likewise.
47334         * modules/xnanosleep (Makefile.am): Likewise.
47335         * modules/xreadlink (Makefile.am): Likewise.
47336         * modules/xstrtod (Makefile.am): Likewise.
47337         * modules/xstrtol (Makefile.am): Likewise.
47338         * modules/xstrtold (Makefile.am): Likewise.
47339         * modules/yesno (Makefile.am): Likewise.
47340
47341 2006-10-12  Jim Meyering  <jim@meyering.net>
47342
47343         * m4/getloadavg.m4: Revert the change below.
47344
47345         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
47346         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
47347         fail with a symlink, which is what coreutils' ./bootstrap now
47348         creates by default.
47349
47350 2006-10-12  Bruno Haible  <bruno@clisp.org>
47351
47352         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
47353         mingw.
47354         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
47355         MSVC and mingw explicitly.
47356
47357 2006-10-11  Simon Josefsson  <jas@extundo.com>
47358             Bruno Haible  <bruno@clisp.org>
47359
47360         Add support for multiple gnulib-tool invocations in the scope of a
47361         single configure.ac file.
47362         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
47363         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
47364         with the same contents as the _LIBADD variable.
47365         (func_emit_initmacro_start, func_emit_initmacro_end,
47366         func_emit_initmacro_done): New functions.
47367         (func_import, func_create_testdir): Invoke them. Allow the identifiers
47368         gl_LIBOBJS and gl_LTLIBOBJS.
47369
47370 2006-10-11  Bruno Haible  <bruno@clisp.org>
47371
47372         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
47373         (func_create_testdir): Don't create po/Makefile.am, don't invoke
47374         autoreconf. Instead, invoke autopoint explicitly but move back the
47375         *.m4 files from gnulib.
47376
47377 2006-10-11  Bruno Haible  <bruno@clisp.org>
47378
47379         * gnulib-tool (func_usage): Make module names after --create-testdir
47380         optional.
47381         (func_create_testdir): If no module was specified, use nearly all
47382         modules.
47383
47384 2006-10-12  Jim Meyering  <jim@meyering.net>
47385
47386         Big performance improvement for fts-based tools that use FTS_NOSTAT.
47387         Avoid spurious inode-mismatch problems on non-POSIX file systems.
47388         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
47389         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
47390         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
47391         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
47392         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
47393         (fts_set_stat_required): New function.
47394         (fts_open): Defer the calls to fts_stat, if possible or requested.
47395         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
47396         into fts_stat itself.
47397         (fts_read): Perform any required (deferred) fts_stat call.
47398         (fts_build): Likewise, for the directory we're about to open and read.
47399         In the readdir loop, carefully decide whether each entry will require
47400         an eventual call to fts_stat, using dirent.d_type info if available.
47401         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
47402         a command line argument into this function.  Update all callers.
47403         Map a return value of FTS_DOT to FTS_D for a command line argument.
47404         * modules/fts (Depends-on): Add d-type.  Alphabetize.
47405         Thanks to Miklos Szeredi for his tenacity and for the initial
47406         bug report about "find" failing on a FUSE-based file system.
47407
47408         * lib/fts.c (fts_open): Use consistent indentation.
47409
47410 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47411
47412         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
47413         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
47414         reported by Jim Meyering.  All uses of cache variables renamed
47415         to match Autoconf's.
47416         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
47417         the other one.
47418
47419         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47420         Fix misspelling in diagnostic.
47421
47422 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47423
47424         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
47425         defined.  Problem reported by Matthew Woehlke.
47426
47427         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
47428         Add support for Tandem NonStop R series.
47429         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
47430         Use new macro.
47431
47432         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
47433         (has_trailing_slash): Omit size arg; all callers changed.
47434         Omit 'inline', since it doesn't help performance and we'd
47435         need to configure it.
47436         Don't count //, ///, etc. as having a trailing slash.
47437         As a side effect, this removes a C99ism reported by Matthew Woehlke.
47438         (rpl_rename_dest_slash): On failure, use rename's errno rather
47439         than (in some cases) an incorrect or junk errno.
47440         Simplify code by removing need to compute length; this does
47441         cause it to make two passes instead of one over the file name,
47442         but it's worth it.
47443
47444         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
47445         change, since Autoconf's version may no longer be appropriate now
47446         that we are using CVS Autoconf's version.  Add support for Tandem.
47447
47448 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47449             Bruno Haible  <bruno@clisp.org>
47450
47451         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
47452         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
47453         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
47454         gl_AC_TYPE_LONG_LONG.
47455
47456         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
47457         instead of HAVE_LONG_LONG.
47458         * lib/printf-args.c (printf_fetchargs): Likewise.
47459         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47460         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47461         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
47462         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
47463         gl_AC_TYPE_LONG_LONG.
47464
47465 2006-10-11  Bruno Haible  <bruno@clisp.org>
47466
47467         * m4/longlong.m4: Add comments.
47468         * m4/ulonglong.m4: Likewise.
47469
47470 2006-10-10  Bruno Haible  <bruno@clisp.org>
47471
47472         Make it possible to #define stpcpy, strdup to aliases.
47473         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
47474         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
47475
47476 2006-10-10  Bruno Haible  <bruno@clisp.org>
47477
47478         Make it possible to #define gcd to an alias.
47479         * lib/gcd.c: Include config.h.
47480
47481 2006-10-10  Bruno Haible  <bruno@clisp.org>
47482
47483         Make it possible to #define c_isascii to an alias.
47484         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
47485         defined. Undefine the macros before defining them, to avoid gcc
47486         warnings.
47487         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
47488         define NO_C_CTYPE_MACROS early.
47489
47490 2006-10-10  Bruno Haible  <bruno@clisp.org>
47491
47492         Make it possible to #define set_program_name to an alias.
47493         * lib/progname.c: Don't undefine set_program_name; instead, undefine
47494         ENABLE_RELOCATABLE early.
47495
47496 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47497
47498         Port to Tandem NSK OSS, which has 64-bit signed int but at most
47499         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
47500         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
47501         More generally, don't assume that 64-bit signed int is available
47502         if unsigned int is, and vice versa.
47503         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
47504         unsigned symbols, not on their signed counterparts.
47505         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
47506         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
47507         (UINT64_C, UINTMAX_C):
47508         Likewise.
47509         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
47510         unsigned counterparts.
47511         (Have_long_long, Unsigned): New macros.
47512         (Int): Renamed from INT.
47513         (strtoimax): Use the new macros.
47514         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
47515         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
47516         * modules/inttypes (inttypes.h): Substitute
47517         HAVE_UNSIGNED_LONG_LONG_INT.
47518         * modules/stdint (stdint.h): Likewise.
47519         (Files): Add m4/ulonglong.m4.
47520
47521 2006-10-10  Bruno Haible  <bruno@clisp.org>
47522
47523         Fix a gcc -Wshadow warning.
47524         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
47525         to 'bucket'.
47526         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47527         gl_linked_indexof_from_to): Likewise.
47528         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
47529         Likewise.
47530         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
47531         Likewise.
47532         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
47533         Reported by Eric Blake.
47534
47535 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
47536
47537         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
47538         for NetBSD.  Problem reported by Bruno Haible.
47539
47540 2006-10-09  Jim Meyering  <jim@meyering.net>
47541
47542         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
47543         Patch from Bruno Haible.
47544
47545 2006-10-09  Jim Meyering  <jim@meyering.net>
47546
47547         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
47548         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
47549         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
47550
47551 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47552
47553         Don't include <config.h> twice; this doesn't work in some cases,
47554         e.g., when config.h has "#define intmax_t long long int" and
47555         we include <config.h>, <inttypes.h>, <config.h> in that order.
47556         Problem reported by Matthew Woehlke in:
47557         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
47558         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
47559         * lib/fts-cycle.c: Don't include config.h.
47560         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
47561         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
47562         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
47563         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
47564         inttypes.h.
47565         * lib/xstrtoumax.c: Likewise.
47566         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47567         __strtol and the like, so that this module is more like its siblings.
47568         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
47569         Remove; no longer needed now that we assume gnulib inttypes.h.
47570
47571 2006-10-08  Bruno Haible  <bruno@clisp.org>
47572
47573         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
47574         option.
47575
47576 2006-10-07  Jim Meyering  <jim@meyering.net>
47577
47578         * modules/inttypes (inttypes.h): Revert what seems to have been
47579         an inadvertent part of today's change: use "|", not "/" in the
47580         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47581
47582 2006-10-07  Bruno Haible  <bruno@clisp.org>
47583
47584         * modules/sublist: New file.
47585
47586 2006-10-07  Bruno Haible  <bruno@clisp.org>
47587
47588         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47589         * modules/argz (argz.h): Likewise.
47590         * modules/arpa_inet (arpa/inet.h): Likewise.
47591         * modules/byteswap (byteswap.h): Likewise.
47592         * modules/configmake (configmake.h): Likewise.
47593         * modules/fcntl (fcntl.h): Likewise.
47594         * modules/fnmatch (fnmatch.h): Likewise.
47595         * modules/getopt (getopt.h): Likewise.
47596         * modules/glob (glob.h): Likewise.
47597         * modules/inttypes (inttypes.h): Likewise.
47598         * modules/netinet_in (netinet/in.h): Likewise.
47599         * modules/poll (poll.h): Likewise.
47600         * modules/stdbool (stdbool.h): Likewise.
47601         * modules/stdint (stdint.h): Likewise.
47602         * modules/sys_select (sys/select.h): Likewise.
47603         * modules/sys_socket (sys/socket.h): Likewise.
47604         * modules/sys_stat (sys/stat.h): Likewise.
47605         * modules/sysexits (sysexits.h): Likewise.
47606         * modules/unistd (unistd.h): Likewise.
47607         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47608         Add a "DO NOT EDIT" comment to the generated file.
47609         (func_import): Likewise for gnulib-comp.m4.
47610
47611 2006-10-07  Bruno Haible  <bruno@clisp.org>
47612
47613         * lib/gl_sublist.h: New file.
47614         * lib/gl_sublist.c: New file.
47615
47616 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47617
47618         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47619         name (relative to the original working directory) and the file
47620         name component (relative to the temporary working directory).  All
47621         callers changed.
47622         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47623         * lib/mkdir-p.c (make_dir_parents): Likewise.
47624         * lib/mkdir-p.h (make_dir_parents): Likewise.
47625
47626 2006-10-06  Eric Blake  <ebb9@byu.net>
47627
47628         Define several macros for use by the clean-temp module.
47629         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47630         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47631         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47632
47633         * lib/clean-temp.h (close_stream_temp): New declaration.
47634         * lib/clean-temp.c (includes): Pull in headers according to what
47635         other modules are in use.
47636         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47637
47638 2006-10-06  Bruno Haible  <bruno@clisp.org>
47639
47640         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47641         instead of fopen, fwriteerror.
47642
47643 2006-10-06  Bruno Haible  <bruno@clisp.org>
47644
47645         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47646         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47647         int.
47648         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47649         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47650         Return an error indicator.
47651         Suggested by Eric Blake.
47652
47653 2006-10-06  Bruno Haible  <bruno@clisp.org>
47654
47655         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47656         Reported by Eric Blake.
47657
47658 2006-10-06  Bruno Haible  <bruno@clisp.org>
47659
47660         * modules/closeout (Description): Mention stderr too.
47661
47662 2006-10-06  Bruno Haible  <bruno@clisp.org>
47663         and Paul Eggert  <eggert@cs.ucla.edu>
47664
47665         * lib/closeout.c (close_stdout): Also close stderr.
47666         * lib/closeout.h: Update comment.
47667
47668 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47669
47670         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47671         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47672         * lib/dirchownmod.c: Include lchown.h.
47673         * lib/lchown.c: Don't include files that lchown.h now includes.
47674         Don't declare chown, since lchown.h now does that.
47675         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47676         (lchown): Define to rpl_chown if lchown is declared but
47677         does not exist.  Declare using a prototype if lchown is not
47678         declared.  Add a copyright notice.
47679         * lib/mkstemp.h: Include <unistd.h>.
47680         * lib/openat.c: Include lchown.h.
47681
47682         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47683         we now test for that separately.
47684         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47685         rather than O_NOFOLLOW, when testing whether it's possible to
47686         avoid a race condition reliably.
47687         * lib/savewd.c (savewd_chdir): Likewise.
47688
47689         Remove macros that are no longer needed now that stdint.h is
47690         reliable.
47691         * lib/fsusage.c (UINTMAX_MAX): Remove.
47692         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47693         * lib/utimecmp.c (SIZE_MAX): Remove.
47694
47695         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47696
47697         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47698         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47699         O_NOATIME works.
47700
47701 2006-10-05  Bruno Haible  <bruno@clisp.org>
47702
47703         * lib/gl_list.h (gl_sortedlist_search_from_to,
47704         gl_sortedlist_indexof_from_to): New declarations.
47705         (gl_list_implementation): New fields sortedlist_search_from_to,
47706         sortedlist_indexof_from_to.
47707         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47708         inline functions.
47709         * lib/gl_list.c (gl_sortedlist_search_from_to,
47710         gl_sortedlist_indexof_from_to): New functions.
47711         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47712         function.
47713         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47714         (gl_array_sortedlist_search_from_to): New function.
47715         (gl_array_list_implementation): Update.
47716         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47717         function.
47718         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47719         (gl_carray_sortedlist_search_from_to): New function.
47720         (gl_carray_list_implementation): Update.
47721         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47722         gl_linked_sortedlist_indexof_from_to): New functions.
47723         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47724         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47725         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47726         gl_tree_sortedlist_indexof_from_to): New functions.
47727         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47728         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47729         Update.
47730         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47731         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47732         Update.
47733
47734 2006-10-05  Bruno Haible  <bruno@clisp.org>
47735
47736         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47737         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47738         (struct gl_list_implementation): Add fields search_from_to,
47739         indexof_from_to. Remove fields search, indexof.
47740         (gl_list_search): Use the search_from_to method.
47741         (gl_list_search_from, gl_list_search_from_to): New functions.
47742         (gl_list_indexof): Use the indexof_from_to method.
47743         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47744         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
47745         (gl_list_search_from, gl_list_search_from_to): New functions.
47746         (gl_list_indexof): Use the indexof_from_to method.
47747         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47748         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47749         gl_array_indexof. Add start_index, end_index arguments.
47750         (gl_array_search_from_to): Renamed from gl_array_search. Add
47751         start_index, end_index arguments.
47752         (gl_array_remove, gl_array_list_implementation): Update.
47753         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47754         gl_carray_indexof. Add start_index, end_index arguments.
47755         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47756         start_index, end_index arguments.
47757         (gl_carray_remove, gl_carray_list_implementation): Update.
47758         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47759         gl_linked_search. Add start_index, end_index arguments.
47760         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47761         start_index, end_index arguments.
47762         (gl_linked_remove): Update.
47763         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47764         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47765         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47766         field to 'size_t'.
47767         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47768         gl_tree_search. Add start_index, end_index arguments.
47769         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47770         start_index, end_index arguments.
47771         (gl_tree_remove): Update.
47772         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47773         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47774         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47775         function.
47776         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47777         gl_tree_search. Add start_index, end_index arguments.
47778         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47779         start_index, end_index arguments.
47780         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47781         Update.
47782         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47783
47784 2006-10-05  Bruno Haible  <bruno@clisp.org>
47785
47786         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47787
47788         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47789         fwriteerror_temp): New declarations.
47790         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47791         (descriptors): New variable.
47792         (cleanup): First, close the descriptors.
47793         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47794         fclose_temp, fwriteerror_temp): New functions.
47795
47796 2006-10-04  Jim Meyering  <jim@meyering.net>
47797
47798         * lib/fts.c (fts_open): Tiny comment change.
47799
47800 2006-10-04  Bruno Haible  <bruno@clisp.org>
47801
47802         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47803         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47804         gl_LOCK_BODY.
47805         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47806         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47807         gl_LOCK_EARLY_BODY.
47808         (gl_LOCK): Require gl_LOCK_BODY.
47809
47810 2006-10-04  Bruno Haible  <bruno@clisp.org>
47811
47812         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47813         (gl_oset_search_atleast): New declaration.
47814         (struct gl_oset_implementation): Add field 'search_atleast'.
47815         (gl_oset_search_atleast): New inline function.
47816         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47817         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47818         (gl_array_oset_implementation): Update.
47819         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47820         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47821         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47822
47823 2006-10-04  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47826
47827 2006-10-03  Bruno Haible  <bruno@clisp.org>
47828
47829         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
47830         from gl_avltreehash_list_implementation.
47831
47832 2006-10-03  Bruno Haible  <bruno@clisp.org>
47833
47834         * lib/gl_oset.c (gl_oset_add): Fix return type.
47835
47836 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
47837
47838         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
47839
47840 2006-10-02  Eric Blake  <ebb9@byu.net>
47841
47842         * modules/strnlen (Depends-on): Add extensions.
47843
47844 2006-10-02  Eric Blake  <ebb9@byu.net>
47845
47846         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
47847         definition in 2.60+.
47848
47849 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
47850
47851         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
47852         checks.
47853
47854 2006-10-02  Bruno Haible  <bruno@clisp.org>
47855
47856         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
47857         to the AUTOMAKE_OPTIONS.
47858         Reported by Jim Meyering.
47859
47860 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47861
47862         Work around bug in Solaris 10 /proc file system:
47863         /proc/self/fd/NNN/.. isn't the parent directory of
47864         the directory whose file descriptor is NNN.  This needs to
47865         be worked around at run time, not compile time, since a
47866         program might be built on Solaris 8, where things work, and
47867         run on Solaris 10.
47868         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
47869         to use the following interface instead:
47870         (OPENAT_BUFFER_SIZE): New macro.
47871         (openat_proc_name): New function.
47872         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
47873         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
47874         Likewise.
47875         * lib/openat-proc.c: New file.
47876         * modules/openat (Files): Add lib/openat-proc.c.
47877         (Depends-on): Add same-inode, stdbool.
47878         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
47879
47880 2006-09-29  Bruno Haible  <bruno@clisp.org>
47881
47882         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
47883         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
47884         argument. Set stdout_closed before testing for ferror, not after.
47885         (fwriteerror, fwriteerror_no_ebadf): New functions.
47886
47887 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47888
47889         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
47890
47891 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
47892
47893         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
47894         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
47895
47896 2006-09-28  Jim Meyering  <jim@meyering.net>
47897
47898         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
47899         Include <unistd.h>.
47900
47901 2006-09-28  Bruno Haible  <bruno@clisp.org>
47902
47903         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
47904         * modules/linkedhash-list (Depends-on): Likewise.
47905         * modules/rbtreehash-list (Depends-on): Likewise.
47906
47907 2006-09-28  Bruno Haible  <bruno@clisp.org>
47908
47909         * lib/strndup.h: Simplify the redefinition of strndup.
47910         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
47911         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
47912
47913 2006-09-28  Bruno Haible  <bruno@clisp.org>
47914
47915         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
47916         * lib/gl_linkedhash_list.c: Likewise.
47917         * lib/gl_rbtreehash_list.c: Likewise.
47918
47919 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47920
47921         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
47922         getaddrinfo.
47923
47924         * lib/__fpending.h: Don't include <stdio_ext.h> unless
47925         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
47926         it causes <stdio_ext.h> to cause a compile-time error.
47927         Problem reported by Nelson H. F. Beebe.
47928         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
47929         of HAVE_DECL___PENDING.
47930
47931         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
47932         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
47933         declaration.
47934
47935 2006-09-27  Jim Meyering  <jim@meyering.net>
47936
47937         This file could end up with a definition for a function
47938         named __strndup, rather than rpl_strndup on a system with
47939         incomplete weak_alias support.
47940         * lib/strndup.c (strndup): Rename from __strndup.
47941         Remove #defines that used to map __strndup to strndup.
47942         Don't use K&R prototypes.
47943         Remove LIBC-related code, since this file is not sync'd with glibc.
47944         * lib/strndup.h: Revamp, accordingly.
47945         * m4/strndup.m4: Modernize.
47946
47947 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47948
47949         * modules/savewd (Depends-on): Add 'raise'.
47950         * lib/savewd.c: Include <signal.h>, for 'raise'.
47951
47952 2006-09-26  Jim Meyering  <jim@meyering.net>
47953
47954         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
47955         when we detect Darwin 8.7.0's acl_get_file bug.
47956         Rearrange to perform the new (below) run-test while $LIBS
47957         contains any acl-related library.  Set USE_ACL at the end.
47958         (gl_ACL_GET_FILE): New function.
47959
47960 2006-09-26  Eric Blake  <ebb9@byu.net>
47961
47962         * lib/verror.c: Include <config.h> unconditionally.
47963
47964 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
47965
47966         * modules/clock-time (Maintainer): Add self.
47967         * modules/getlogin_r (Depends-on): Add extensions.
47968
47969 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47970
47971         * modules/clock-time: New module.
47972         * modules/nanosleep (Depends-on): Add clock-time.
47973         * modules/gethrxtime (Depends-on): Likewise.
47974         * modules/gettime (Depends-on): Likewise.
47975         * modules/settime (Depends-on): Likewise.
47976
47977         * modules/fts-lgpl: Depend on openat.
47978         * modules/mkancesdirs: Depend on savewd.
47979         * modules/mkdir-p: Likewise.
47980
47981 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47982
47983         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
47984
47985         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
47986         `gl_have_arbitrary_file_name_length_limit' to
47987         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
47988         actually works between configure runs.
47989
47990 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47991             Bruno Haible  <bruno@clisp.org>
47992
47993         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
47994
47995 2006-09-25  Jim Meyering  <jim@meyering.net>
47996
47997         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
47998         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
47999
48000 2006-09-25  Eric Blake  <ebb9@byu.net>
48001
48002         * gnulib-tool (func_import, func_create_testdir): Fix typos in
48003         exec's in 2006-09-18 patch when shuffling fds.
48004
48005 2006-09-25  Bruno Haible  <bruno@clisp.org>
48006
48007         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
48008         Reported by Jim Meyering.
48009
48010 2006-09-24  Jim Meyering  <jim@meyering.net>
48011
48012         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
48013         compare a pointer against a literal "0".  That caused failures with
48014         at least HP-UX's hpcc.
48015
48016 2006-09-22  Simon Josefsson  <jas@extundo.com>
48017
48018         * modules/gc-sha1:
48019         * modules/gc-md4:
48020         * modules/gc-hmac-sha1:
48021         * modules/gc-hmac-md5:
48022         * modules/gc-des:
48023         * modules/gc-arcfour: Distribute more files.
48024
48025 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48026
48027         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
48028         (gl_linked_iterator_from_to): Initialize struct completely.
48029         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
48030         (gl_tree_iterator_from_to): Likewise
48031         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
48032         * lib/gl_array_list.c [lint] (gl_array_iterator)
48033         (gl_array_iterator_from_to): Likewise.
48034         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
48035         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
48036         (gl_carray_iterator_from_to): Likewise.
48037
48038         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
48039         * lib/md4.c (md4_process_block): Remove unused variable.
48040         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
48041         parentheses for clarity.
48042
48043 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48044
48045         * modules/bison-i18n (Depends-on): Add gettext.
48046
48047 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48048
48049         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
48050         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
48051         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
48052         also add missing comma that caused broken test.
48053         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
48054         stdlib.h, for `abort'.
48055         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
48056         variables.
48057         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
48058         include unistd.h if present, for `rmdir'.
48059         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
48060         variables.
48061         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
48062         in the process include standard headers for prototypes.
48063         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
48064         gets declared on GNU/Linux.
48065         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
48066         unistd.h, for `rmdir'.
48067         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
48068
48069         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
48070         always true.
48071         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
48072
48073         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
48074
48075 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48076
48077         * gnulib-tool (func_version): Create output all at once.  This
48078         may help avoid triggering unnecessary SIGPIPEs, and at any
48079         rate it doesn't hurt.
48080
48081 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48082             Bruno Haible  <bruno@clisp.org>
48083
48084         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
48085         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48086         * m4/signed.m4 (bh_C_SIGNED): Likewise.
48087
48088         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
48089         (gl_FUNC_VASPRINTF): Invoke it.
48090
48091 2006-09-22  Bruno Haible  <bruno@clisp.org>
48092
48093         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
48094         getloadavg.c as first argument.
48095
48096 2006-09-22  Bruno Haible  <bruno@clisp.org>
48097
48098         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
48099         at the beginning of the gl_INIT macro.
48100         * modules/getloadavg (configure.ac): Pass $gl_source_base to
48101         gl_GETLOADAVG.
48102
48103 2006-09-22  Bruno Haible  <bruno@clisp.org>
48104
48105         * gnulib-tool (func_create_megatestdir): Don't include the config-h
48106         module.
48107         Suggested by Ralf Wildenhues.
48108
48109 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48110
48111         Import this patch from libc:
48112
48113         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
48114
48115         * lib/regex_internal.c (re_string_reconstruct): Handle
48116         offset < pstr->valid_raw_len && pstr->offsets_needed case.
48117         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
48118         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
48119         re_string_context_at.
48120
48121         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
48122         now requires it.
48123         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
48124         gl_REGEX now does it for us.
48125         (gl_REGEX): Add test taken from
48126         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
48127
48128         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
48129         Check that large offsets work.  Modernize Autoconf usages.
48130         Prefer "yes" to mean a good thing rather than a bad.
48131         Don't put "#define mkstemp" in config.h, as this might interfere
48132         with standard system headers that "#define mkstemp mkstemp64".
48133
48134         * modules/mkstemp (Depends-on): Add extensions, so that
48135         mkstemp is visible on some platforms.
48136         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
48137         (Include): Change to "mkstemp.h" from <stdlib.h>.
48138         (Files): Add mkstemp.h.
48139
48140         * lib/mkstemp.h: New file, since some standard headers
48141         #define mkstemp.
48142         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
48143         Include "mkstemp.h".
48144         Make the _LIBC code resemble glibc original more,
48145         e.g., use K&R style.
48146         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
48147         (mkstemp): Remove, since mkstemp.h does this for us.
48148         * lib/stdlib--.h: Include mkstemp.h.
48149
48150         Import this patch from libc:
48151
48152         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48153
48154         * lib/tempname.c (__gen_tempname): Change attempts_min
48155         into a macro.  Use preprocessor to decide how to initialize
48156         attempts [Coverity CID 67].
48157
48158 2006-09-20  Bruno Haible  <bruno@clisp.org>
48159
48160         * lib/mkdtemp.c: Import from libc.
48161         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48162                 * sysdeps/posix/tempname.c (__gen_tempname): Change
48163                 attempts_min into a macro.  Use preprocessor to decide how to
48164                 initialize attempts [Coverity CID 67].
48165         2001-11-27  Paul Eggert  <eggert@twinsun.com>
48166                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
48167                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
48168
48169 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48170
48171         * gnulib-tool (func_exit): New function, to allow to pass the
48172         exit status portably through the trap.  Use everywhere.
48173         (--help, --version): Signal a write error.
48174         (trap): catch SIGPIPE, for write errors.
48175         Exit at the end of the trap, with the correct exit status.
48176
48177 2006-09-19  Karl Berry  <karl@gnu.org>
48178
48179         * doc/gnulib.texi: note about the license texinfo files.
48180
48181 2006-09-19  Eric Blake  <ebb9@byu.net>
48182
48183         * gnulib-tool: Avoid space-tab.
48184
48185 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48186
48187         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
48188         that prevented coreutils 6.1 from building.  Problem reported
48189         by Petter Reinholdtsen.
48190
48191 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48192
48193         * gnulib-tool (avoidlist): Fix typo that broke options like
48194         --avoid=lock that are used by coreutils bootstrap.
48195
48196 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
48197
48198         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
48199         more systematically.
48200
48201 2006-09-18  Jim Meyering  <jim@meyering.net>
48202
48203         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
48204
48205 2006-09-18  Bruno Haible  <bruno@clisp.org>
48206
48207         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
48208
48209 2006-09-18  Bruno Haible  <bruno@clisp.org>
48210
48211         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
48212         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
48213         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
48214         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
48215         * m4/gettext.m4: Require autoconf >= 2.52.
48216         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
48217         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
48218         of gl_cv_header_inttypes_h.
48219
48220 2006-09-18  Bruno Haible  <bruno@clisp.org>
48221
48222         * lib/javaversion.c: Include configmake.h.
48223
48224 2006-09-18  Bruno Haible  <bruno@clisp.org>
48225
48226         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
48227         avoid that the while loops be executed in a subshell.
48228
48229 2006-09-18  Bruno Haible  <bruno@clisp.org>
48230
48231         * MODULES.html.sh (func_module): Break long lines.
48232         Suggested by Bruce Korb <bkorb@gnu.org>.
48233
48234 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48235
48236         Speed up by a factor of 1.12.
48237         * gnulib-tool (nl): New variable.
48238         (func_import): Rewrite include directive extraction to only read each
48239         directive once.
48240
48241 2006-09-17  Bruno Haible  <bruno@clisp.org>
48242
48243         * modules/javaversion (Makefile.am): Remove DEFS setting.
48244         (Depends-on): Add configmake, for PKGDATADIR definition.
48245
48246 2006-09-17  Bruno Haible  <bruno@clisp.org>
48247
48248         * gnulib-tool (func_create_testdir): Rewrite all files at once.
48249
48250 2006-09-17  Bruno Haible  <bruno@clisp.org>
48251
48252         * gnulib-tool (func_append): New function, stolen from libtool.m4.
48253         (func_modules_transitive_closure, func_modules_add_dummy,
48254         func_modules_to_filelist, func_import, func_create_testdir,
48255         func_create_megatestdir, ...): Use it wherever possible.
48256         Suggested by Ralf Wildenhues.
48257
48258 2006-09-16  Karl Berry  <karl@gnu.org>
48259
48260         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
48261         to avoid sectioning errors.
48262         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
48263         [ifinfo]: blank line after @center-ed titles.
48264         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
48265         Spell FSF address consistently with others.
48266         (These changes approved by rms.)
48267
48268 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48269
48270         Speed up by a factor of 1.61.
48271         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
48272         already checked module names again.
48273
48274 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48275
48276         Speed up by a factor of 1.13.
48277         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
48278         for new_files, and the input to func_add_or_update.
48279
48280 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48281
48282         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
48283         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
48284
48285 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48286
48287         * modules/mkancesdirs (Depends-on): Add fcntl.
48288         * modules/savewd: New file.
48289         * MODULES.html.sh (File system functions): Add savewd.
48290
48291         * modules/configmake (Makefile.am): Add support for the
48292         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
48293
48294 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48295
48296         * m4/savewd.m4: New file.
48297
48298 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48299
48300         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
48301         (dirchownmod): New arg FD.  All callers changed.
48302         Use FD rather than opening the directory ourself, as opening is
48303         now the caller's responsibility.
48304         * lib/dirchownmod.h: Likewise.
48305         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
48306         hosts that require <sys/types.h> before <sys/stat.h>.  Include
48307         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
48308         (test_dir): Remove.
48309         (mkancesdirs): Return length of prefix of FILE that has already
48310         been made, or -2 if there is a child doing the work.  Redo
48311         algorithm so that it is O(N) rather than O(N**2).  Optimize away
48312         ".", and treat ".." specially since it might stray back into
48313         already-created areas.  Use a subprocess if necessary.  New arg
48314         WD; all users changed.  MAKE_DIR function should now return 1
48315         if it creates a directory that is not readable.  Return -2 if
48316         a child process is spun off.
48317         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
48318         Adjust signature to match code.
48319         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
48320         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
48321         all users changed.
48322         * lib/savewd.c, lib/savewd.h: New files.
48323
48324 2006-09-15  Jim Meyering  <jim@meyering.net>
48325
48326         * modules/rename-dest-slash: New module.
48327         * MODULES.html.sh (posix_compat): Add it here.
48328
48329         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
48330
48331 2006-09-15  Jim Meyering  <jim@meyering.net>
48332
48333         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
48334         file.
48335
48336         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
48337
48338 2006-09-15  Jim Meyering  <jim@meyering.net>
48339
48340         * lib/rename-dest-slash.c (has_trailing_slash): Use
48341         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
48342         (rpl_rename_dest_slash): Perform the cheaper trailing slash
48343         test before testing whether SRC is a directory.
48344         Suggestions from Bruno Haible.
48345
48346         Avoid a warning about an unused variable.
48347         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
48348         into the #ifdef block where it's used.
48349
48350         * lib/rename-dest-slash.c: New file.
48351
48352 2006-09-14  Bruno Haible  <bruno@clisp.org>
48353
48354         * lib/allocsa.c: Include <config.h> unconditionally.
48355         * lib/asnprintf.c: Likewise.
48356         * lib/asprintf.c: Likewise.
48357         * lib/c-strcasecmp.c: Likewise.
48358         * lib/c-strcasestr.c: Likewise.
48359         * lib/c-strncasecmp.c: Likewise.
48360         * lib/c-strstr.c: Likewise.
48361         * lib/classpath.c: Likewise.
48362         * lib/clean-temp.c: Likewise.
48363         * lib/concatpath.c: Likewise.
48364         * lib/copy-file.c: Likewise.
48365         * lib/csharpcomp.c: Likewise.
48366         * lib/csharpexec.c: Likewise.
48367         * lib/execute.c: Likewise.
48368         * lib/fatal-signal.c: Likewise.
48369         * lib/findprog.c: Likewise.
48370         * lib/fwriteerror.c: Likewise.
48371         * lib/gl_array_list.c: Likewise.
48372         * lib/gl_array_oset.c: Likewise.
48373         * lib/gl_avltree_list.c: Likewise.
48374         * lib/gl_avltree_oset.c: Likewise.
48375         * lib/gl_avltreehash_list.c: Likewise.
48376         * lib/gl_carray_list.c: Likewise.
48377         * lib/gl_linked_list.c: Likewise.
48378         * lib/gl_linkedhash_list.c: Likewise.
48379         * lib/gl_list.c: Likewise.
48380         * lib/gl_oset.c: Likewise.
48381         * lib/gl_rbtree_list.c: Likewise.
48382         * lib/gl_rbtree_oset.c: Likewise.
48383         * lib/gl_rbtreehash_list.c: Likewise.
48384         * lib/imaxabs.c: Likewise.
48385         * lib/imaxdiv.c: Likewise.
48386         * lib/javacomp.c: Likewise.
48387         * lib/javaexec.c: Likewise.
48388         * lib/javaversion.c: Likewise.
48389         * lib/linebreak.c: Likewise.
48390         * lib/localcharset.c: Likewise.
48391         * lib/lock.c: Likewise.
48392         * lib/mbchar.c: Likewise.
48393         * lib/mbswidth.c: Likewise.
48394         * lib/mkdtemp.c: Likewise.
48395         * lib/pipe.c: Likewise.
48396         * lib/printf-args.c: Likewise.
48397         * lib/printf-parse.c: Likewise.
48398         * lib/progname.c: Likewise.
48399         * lib/progreloc.c: Likewise.
48400         * lib/readlink.c: Likewise.
48401         * lib/sh-quote.c: Likewise.
48402         * lib/stpcpy.c: Likewise.
48403         * lib/stpncpy.c: Likewise.
48404         * lib/strcasecmp.c: Likewise.
48405         * lib/strcasestr.c: Likewise.
48406         * lib/strcspn.c: Likewise.
48407         * lib/striconv.c: Likewise.
48408         * lib/strncasecmp.c: Likewise.
48409         * lib/strnlen1.c: Likewise.
48410         * lib/strstr.c: Likewise.
48411         * lib/strtok_r.c: Likewise.
48412         * lib/tls.c: Likewise.
48413         * lib/tmpdir.c: Likewise.
48414         * lib/unicodeio.c: Likewise.
48415         * lib/unsetenv.c: Likewise.
48416         * lib/vasnprintf.c: Likewise.
48417         * lib/vasprintf.c: Likewise.
48418         * lib/wait-process.c: Likewise.
48419         * lib/xallocsa.c: Likewise.
48420         * lib/xsetenv.c: Likewise.
48421         * lib/xstriconv.c: Likewise.
48422
48423 2006-09-13  Simon Josefsson  <jas@extundo.com>
48424
48425         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
48426         that internally, suggested by Ralf Wildenhues
48427         <Ralf.Wildenhues@gmx.de>.
48428
48429 2006-09-13  Simon Josefsson  <jas@extundo.com>
48430
48431         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
48432         @LIBOBJS@.
48433         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48434
48435 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48436
48437         * lib/_fpending.c: Include <config.h> unconditionally, since we no
48438         longer worry about uses that don't define HAVE_CONFIG_H.
48439         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
48440         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
48441         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
48442         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
48443         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
48444         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
48445         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
48446         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
48447         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
48448         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
48449         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
48450         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
48451         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
48452         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
48453         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
48454         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
48455         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
48456         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
48457         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
48458         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
48459         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
48460         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
48461         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
48462         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
48463         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
48464         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
48465         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
48466         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
48467         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
48468         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
48469         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
48470         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
48471         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
48472         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
48473         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
48474         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
48475         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
48476         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
48477         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
48478         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
48479         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
48480         Likewise.
48481
48482 2006-09-13  Eric Blake  <ebb9@byu.net>
48483
48484         * lib/getopt.c: Fix typo in last commit.
48485
48486 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48487
48488         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
48489         dgettext.
48490
48491 2006-09-12  Jim Meyering  <jim@meyering.net>
48492
48493         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
48494         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
48495         Reported by Nelson H. F. Beebe.
48496
48497 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48498
48499         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
48500         program_invocation_name and program_invocation_short_name are
48501         initialized.
48502         * lib/argp-namefrob.h: Move declarations of program_invocation_name
48503         and program_invocation_short_name to argp.h, so they are visible
48504         to user programs.
48505         * lib/argp.h: Likewise
48506
48507 2006-09-10  Bruno Haible  <bruno@clisp.org>
48508
48509         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48510         m4/inttypes_h.m4, m4/uintmax_t.m4.
48511
48512 2006-09-10  Bruno Haible  <bruno@clisp.org>
48513
48514         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
48515         gl_AC_TYPE_UINTMAX_T.
48516
48517 2006-09-10  Bruno Haible  <bruno@clisp.org>
48518
48519         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
48520
48521 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48522
48523         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
48524         convention.  Text proposed by Bruno Haible.
48525         (struct argp_option): Document the use of N_() wrappers.
48526
48527         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
48528         '\v', and translate the two parts separately, instead of feeding
48529         the whole string to gettext.  This allows to exclude
48530         '\v' from the strings visible to the translator by writing doc
48531         strings as N_("..") "\v" N_("..").
48532
48533 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
48534
48535         * config/srclist.txt: Undo latest change; the bug was fixed.
48536
48537 2006-09-09  Bruno Haible  <bruno@clisp.org>
48538
48539         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
48540         assignments if building a library without libtool.
48541         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
48542         in func_emit_lib_Makefile_am.
48543         (func_import): When building a static library libfoo.a, arrange to
48544         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
48545         (func_create_testdir): Likewise.
48546         * modules/gc (configure.ac, Makefile.am): If building statically,
48547         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
48548         * modules/iconvme (configure.ac, Makefile.am): Likewise.
48549         * modules/striconv (configure.ac, Makefile.am): Likewise.
48550         Based on a suggestion by Ralf Wildenhues.
48551
48552 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48553
48554         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48555         Check for unistd.h too, since Autoconf doesn't assume POSIX.
48556         Also:
48557
48558         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48559         Add year_2050_test to catch glibc bug 2821
48560         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48561
48562         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48563         Prefer #ifdef to #if.
48564
48565         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
48566         Return from 'main' instead of calling 'exit'.
48567
48568 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48569
48570         * lib/mktime.c (guess_time_tm): Fix bug where mktime
48571         returned the maximum time_t value rather than (time_t) -1.
48572         Problem originally reported by William Bardwell
48573         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48574
48575         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48576         Moved to here ...
48577         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48578         ... from here.
48579
48580 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48581
48582         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
48583         2821 is fixed.
48584
48585 2006-09-08  Jim Meyering  <jim@meyering.net>
48586
48587         Don't make generated files read-only.  That would bother too many
48588         people.  However, do retain the ability to work when targets are
48589         read-only: remove the destination and temporary files before writing
48590         them (when generated via sed or echo), or by using the -f option for
48591         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48592         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48593         * modules/byteswap, modules/configmake, modules/fcntl:
48594         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48595         * modules/localcharset, modules/netinet_in, modules/poll:
48596         * modules/stdbool, modules/stdint, modules/sys_select:
48597         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48598
48599 2006-09-08  Jim Meyering  <jim@meyering.net>
48600
48601         Avoid new build failure on FreeBSD 6.0.
48602         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48603         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48604         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48605
48606 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48607
48608         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48609
48610 2006-09-07  Jim Meyering  <jim@meyering.net>
48611
48612         Fix global typo in last change: use chmod u-w, not chmod u-x.
48613         Spotted by Paul Eggert and Bruce Korb.
48614         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48615         * modules/byteswap, modules/configmake, modules/fcntl:
48616         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48617         * modules/localcharset, modules/netinet_in, modules/poll:
48618         * modules/stdbool, modules/stdint, modules/sys_select:
48619         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48620
48621 2006-09-06  Jim Meyering  <jim@meyering.net>
48622
48623         Make generated files be read-only.
48624         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48625         Ensure that each generated file is now read-only.
48626         * modules/argz: Likewise.
48627         * modules/arpa_inet: Likewise.
48628         * modules/byteswap: Likewise.
48629         * modules/configmake: Likewise.
48630         * modules/fcntl: Likewise.
48631         * modules/fnmatch: Likewise.
48632         * modules/getopt: Likewise.
48633         * modules/glob: Likewise.
48634         * modules/inttypes: Likewise.
48635         * modules/netinet_in: Likewise.
48636         * modules/poll: Likewise.
48637         * modules/stdbool: Likewise.
48638         * modules/stdint: Likewise.
48639         * modules/sys_select: Likewise.
48640         * modules/sys_socket: Likewise.
48641         * modules/sys_stat: Likewise.
48642         * modules/sysexits: Likewise.
48643         * modules/localcharset: Same as above, but continue using temporary
48644         file named "t-$@" (why different?) rather than the "$@-t" used
48645         everywhere else.
48646
48647         * modules/sysexits (Makefile.am): Replace literal occurrences
48648         of "sysexit.h" more readable, and more consistent, "$@".
48649
48650 2006-09-06  Bruno Haible  <bruno@clisp.org>
48651
48652         * modules/striconv: New file.
48653         * modules/xstriconv: New file.
48654         * MODULES.html.sh (Internationalization functions): Add striconv,
48655         xstriconv.
48656
48657 2006-09-06  Bruno Haible  <bruno@clisp.org>
48658
48659         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48660         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48661         not using libtool correctly.
48662
48663 2006-09-06  Bruno Haible  <bruno@clisp.org>
48664
48665         * lib/striconv.h: New file.
48666         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48667         iconvstring.c.
48668         * lib/xstriconv.h: New file.
48669         * lib/xstriconv.c: New file.
48670
48671 2006-09-06  Bruno Haible  <bruno@clisp.org>
48672
48673         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48674         lib_..._LDFLAGS.
48675
48676 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48677
48678         * lib/argz_.h: Sync from Libtool.
48679
48680         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48681                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48682
48683         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48684
48685 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48686
48687         * modules/trim: New file.
48688
48689 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48690
48691         * lib/trim.h: New file.
48692         * lib/trim.c: New file.
48693
48694 2006-09-05  Bruno Haible  <bruno@clisp.org>
48695
48696         * MODULES.html.sh (String handling): Add trim.
48697
48698 2006-09-04  Karl Berry  <karl@gnu.org>
48699
48700         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48701         until next release.
48702
48703 2006-09-03  Bruno Haible  <bruno@clisp.org>
48704
48705         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48706         correctly.
48707
48708 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48709
48710         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48711         not gl_GETLOADAVG.  Omit unneeded semicolons.
48712         Problems reported by Ralf Wildenhues in
48713         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48714         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48715         at the end, which is the usual gnulib style.
48716
48717         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48718         of doing all the work ourselves.
48719         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48720         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48721
48722 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48723
48724         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48725         Problem reported by Ralf Wildenhues in
48726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48727
48728         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48729         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48730
48731 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48732
48733         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48734         yesterday's patch by changing test -n to test -z.
48735
48736 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48737
48738         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48739         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48740         the former is now obsolescent.
48741
48742         * modules/chdir-long (Depends-on): Add fcntl.
48743
48744 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48745
48746         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48747         obsolescent, and programs should use gnulib instead.
48748         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48749         but with prefixes changed.
48750
48751 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48752
48753         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48754         or stdbool.h, because they might not exist while configuring.
48755
48756         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48757         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48758         does that for us.
48759         (O_DIRECTORY): Remove.
48760
48761 2006-08-31  Eric Blake  <ebb9@byu.net>
48762
48763         * gnulib-tool: Don't let emacs change spaces to TAB.
48764
48765 2006-08-31  Bruno Haible  <bruno@clisp.org>
48766
48767         * gnulib-tool: When calling func_import more than once, do it in a
48768         subshell.
48769         Reported by Eric Blake <ebb9@byu.net>.
48770
48771 2006-08-31  Bruno Haible  <bruno@clisp.org>
48772
48773         * gnulib-tool (nl): Remove variable.
48774         (sed_transform_lib_file): Use more robust test for config-h module.
48775         (func_import): Fix typo in 2006-08-25 patch.
48776
48777 2006-08-31  Bruno Haible  <bruno@clisp.org>
48778
48779         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48780         specified, augment Makefile.am variables instead of assigning them.
48781
48782 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48783
48784         Work around a bug in both the Linux and SunOS 64-bit kernels:
48785         nanosleep mishandles sleeps for longer than 2**31 seconds.
48786         Problem reported by Frank v Waveren in
48787         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48788         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48789         Check for nanosleep bug.
48790         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48791
48792 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48793
48794         Work around a bug in both the Linux and SunOS 64-bit kernels:
48795         nanosleep mishandles sleeps for longer than 2**31 seconds.
48796         Problem reported by Frank v Waveren in
48797         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48798         * lib/nanosleep.c (BILLION): New constant.
48799         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48800         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48801         implementation.
48802
48803 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48804
48805         * modules/nanosleep (Depends-on): Add gettime.
48806
48807 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48808         and Simon Josefsson  <jas@extundo.com>
48809         and Oskar Liljeblad  <oskar@osk.mine.nu>
48810
48811         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48812         * gnulib-tool (func_import): New license type 'unmodifiable license
48813         text'.
48814         * modules/fdl: Use it.  Longer description.
48815         * module/gpl, module/lgpl: New files.
48816
48817 2006-08-30  Jim Meyering  <jim@meyering.net>
48818
48819         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48820         shadowing the parameter.
48821
48822 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48823
48824         Sync from Libtool:
48825
48826         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48827
48828         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
48829         sharing with gnulib.  Report by Eric Blake.
48830
48831 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48832
48833         * modules/isapipe: New file.
48834         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
48835
48836 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48837
48838         * modules/configmake (Makefile.am): Add a comment, and omit
48839         the CONFIGMAKE_ prefix from generated macro names.  Suggested
48840         by Bruno Haible.
48841
48842 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48843
48844         * m4/isapipe.m4: New file.
48845
48846 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48847
48848         * lib/isapipe.c, lib/isapipe.h: New files.
48849
48850 2006-08-29  Jim Meyering  <jim@meyering.net>
48851
48852         * modules/configmake (Makefile.am): Make configmake.h depend on
48853         Makefile.  Otherwise, a stale configmake.h could hang around.
48854
48855 2006-08-29  Eric Blake  <ebb9@byu.net>
48856
48857         * lib/error.c (error_at_line, print_errno_message): Match libc, after
48858         resolution of upstream bug 3044.
48859
48860 2006-08-29  Bruno Haible  <bruno@clisp.org>
48861
48862         * modules/localcharset (Depends-on): Add configmake.
48863         (Makefile.am): Remove setting of LIBDIR through DEFS.
48864
48865 2006-08-29  Bruno Haible  <bruno@clisp.org>
48866
48867         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
48868         defined.
48869
48870 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48871
48872         * modules/fcntl: New file.
48873         * modules/chdir-safer (Depends-on): Add fcntl.
48874         * modules/fts: Likewise.
48875         * modules/mkdir-p: Likewise.
48876
48877         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
48878         This undoes the most recent change, since we're now addressing the
48879         problem in a different way.
48880
48881         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
48882         into output, since the output might be called Makefile.am even
48883         if $makefile_name is something different.
48884         (func_import): Use $makefile_am rather than
48885         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
48886         empty.
48887
48888         * modules/inttypes (Files): Add m4/inttypes-h.m4.
48889
48890 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48891
48892         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
48893         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
48894         recent change to stdint.m4, since we're now addressing the problem in a
48895         different way.
48896
48897 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48898
48899         * m4/fcntl_h.m4: New file.
48900
48901 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48902
48903         * lib/fcntl_.h: New file.
48904         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
48905         the fcntl module.
48906         * lib/dirchownmod.c: Likewise.
48907         * lib/fts.c: Likewise.
48908
48909         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
48910         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
48911         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
48912         just before including <inttypes.h>, to avoid circular inclusion.
48913
48914 2006-08-28  Jim Meyering  <jim@meyering.net>
48915
48916         * doc/visibility.texi: Actually read and correct the grammar of the
48917         sentence affected by yesterday's change.
48918
48919 2006-08-28  Eric Blake  <ebb9@byu.net>
48920
48921         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
48922         needs wrapper.
48923
48924 2006-08-28  Eric Blake  <ebb9@byu.net>
48925
48926         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
48927
48928 2006-08-28  Eric Blake  <ebb9@byu.net>
48929
48930         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
48931
48932 2006-08-28  Bruno Haible  <bruno@clisp.org>
48933
48934         * modules/c-strstr: New file, from GNU gettext.
48935         * MODULES.html.sh (String handling): Add c-strstr.
48936
48937 2006-08-28  Bruno Haible  <bruno@clisp.org>
48938
48939         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
48940         macros.
48941         Reported by Eric Blake.
48942
48943 2006-08-28  Bruno Haible  <bruno@clisp.org>
48944
48945         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
48946         (VASNPRINTF): Return a string of length > INT_MAX without failing.
48947         * lib/vasprintf.c: Include errno.h, limits.h.
48948         (EOVERFLOW): New fallback definition.
48949         (vasprintf): Test here whether the string length is > INT_MAX.
48950         * lib/vsnprintf.c: Include errno.h, limits.h.
48951         (EOVERFLOW): New fallback definition.
48952         (vsnprintf): Fix bug when generated string was too long for the buffer.
48953         Test here whether the string length is > INT_MAX.
48954
48955 2006-08-28  Bruno Haible  <bruno@clisp.org>
48956
48957         * lib/inttypes_.h (SCNX*): Remove definitions.
48958         Reported by Eric Blake.
48959
48960 2006-08-28  Bruno Haible  <bruno@clisp.org>
48961
48962         * lib/c-strstr.h: New file, from GNU gettext.
48963         * lib/c-strstr.c: New file, from GNU gettext.
48964
48965 2006-08-28  Bruno Haible  <bruno@clisp.org>
48966
48967         * gnulib-tool: Reorder some statements.
48968
48969 2006-08-28  Bruno Haible  <bruno@clisp.org>
48970
48971         * gnulib-tool: New option --makefile-name.
48972         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
48973         $makefile_name.
48974         (func_import): Write $makefile_name to the cache file, and read it from
48975         there unless explicitly specified. Use $makefile_name as file name
48976         instead of Makefile.am. Adjust the recommendations accordingly.
48977
48978 2006-08-28  Bruno Haible  <bruno@clisp.org>
48979
48980         * gnulib-tool (func_verify_module): Check against misapplying patch.
48981
48982 2006-08-28  Bruno Haible  <bruno@clisp.org>
48983
48984         * gnulib-tool (func_relativize, func_relconcat): New functions.
48985         Give an error if --local-dir is given with --update.
48986         Remove trailing slashes from $local_gnulib_dir.
48987         (func_import): Store the relativized $local_gnulib_dir in
48988         gnulib-cache.m4, and read it from there if not specified explicitly.
48989
48990 2006-08-28  Bruno Haible  <bruno@clisp.org>
48991
48992         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
48993         is the current directory. Respect also $local_gnulib_dir.
48994
48995 2006-08-28  Bruno Haible  <bruno@clisp.org>
48996             Simon Josefsson  <jas@extundo.com>
48997
48998         BeOS portability.
48999         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
49000
49001 2006-08-27  Jim Meyering  <jim@meyering.net>
49002
49003         * doc/visibility.texi: Remove duplicate word: "pointer".
49004
49005 2006-08-26  Bruno Haible  <bruno@clisp.org>
49006
49007         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
49008         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
49009         (Makefile.am): Create inttypes.h from inttypes_.h.
49010         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
49011
49012         * modules/imaxabs: New file.
49013
49014         * modules/imaxdiv: New file.
49015
49016 2006-08-26  Bruno Haible  <bruno@clisp.org>
49017
49018         * m4/inttypes.m4: New file.
49019         * m4/_inttypes_h.m4: Remove file.
49020         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
49021         PRI_MACROS_BROKEN.
49022         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
49023
49024         * m4/imaxabs.m4: New file.
49025
49026         * m4/imaxdiv.m4: New file.
49027
49028 2006-08-26  Bruno Haible  <bruno@clisp.org>
49029
49030         * lib/inttypes_.h: New file.
49031         * lib/inttypes.h: Remove file.
49032         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
49033
49034         * lib/imaxabs.c: New file.
49035
49036         * lib/imaxdiv.c: New file.
49037
49038 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49039
49040         New config-h module, so that "make" output needn't be cluttered
49041         by -DHAVE_CONFIG_H.
49042         * MODULES.html.sh (Support for building libraries and executables):
49043         Add config-h.
49044         * modules/config-h: New file.
49045         * gnulib-tool (nl, sed_transform_lib_file): New vars.
49046         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
49047         the config-h module is used.
49048
49049         New configmake module, so that "make" output needn't be cluttered
49050         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
49051         * MODULES.html.sh (Support for building libraries and executables):
49052         Add configmake.
49053         * modules/configmake: New file.
49054
49055 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49056
49057         * m4/config-h.m4: New file.
49058
49059 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49060
49061         * config/srclist.txt: Add elisp-comp.
49062
49063 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49064
49065         * MODULES.html.sh (Support for building libraries and executables):
49066         Add elisp-comp.
49067         * build-aux/elisp-comp: New file.
49068         * modules/elisp-comp: New file.
49069
49070 2006-08-24  Bruno Haible  <bruno@clisp.org>
49071
49072         * gnulib-tool (func_create_testdir): Use non-default values of
49073         sourcebase and m4base.
49074
49075 2006-08-24  Bruno Haible  <bruno@clisp.org>
49076
49077         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
49078         HTML structure.
49079
49080 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49081
49082         * modules/openat (Depends-on): Add lchown.
49083
49084 2006-08-23  Bruno Haible  <bruno@clisp.org>
49085
49086         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
49087         of gl_LOCK_EARLY instead of gl_LOCK.
49088
49089 2006-08-23  Bruno Haible  <bruno@clisp.org>
49090
49091         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
49092         on OSF/1 to no.
49093         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
49094
49095 2006-08-23  Bruno Haible  <bruno@clisp.org>
49096
49097         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
49098         as unusable.
49099
49100         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
49101         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
49102         (gl_LOCK): New macro.
49103
49104 2006-08-22  Simon Josefsson  <jas@extundo.com>
49105
49106         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
49107         to md5 module.
49108
49109 2006-08-22  Simon Josefsson  <jas@extundo.com>
49110
49111         * MODULES.html.sh: Add "Support for maintaining and release
49112         projects".
49113
49114         * build-aux/gnupload: New file, from coreutils.
49115
49116 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49117
49118         Avoid the need for AC_LIBSOURCES in m4 macros.
49119         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
49120         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
49121         * modules/check-version (EXTRA_DIST): Add check-version.h.
49122         * modules/crc (EXTRA_DIST): Add crc.h.
49123         * modules/des (EXTRA_DIST): Add des.h.
49124         * modules/gc (EXTRA_DIST): Add gc.h.
49125         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
49126         * modules/getline (EXTRA_DIST): Add getline.h.
49127         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
49128         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
49129         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
49130         * modules/md2 (EXTRA_DIST): Add md2.h.
49131         * modules/md4 (EXTRA_DIST): Add md4.h.
49132         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
49133         * modules/read-file (EXTRA_DIST): Add read-file.h.
49134         * modules/readline (EXTRA_DIST): Add readline.h.
49135         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
49136         rijndael-api-fst.h.
49137
49138 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49139
49140         * m4/rijndael.m4 (gl_ARCFOUR):
49141         * m4/arctwo.m4 (gl_ARCTWO):
49142         * m4/check-version.m4 (gl_CHECK_VERSION):
49143         * m4/crc.m4 (gl_CRC):
49144         * m4/des.m4 (gl_DES):
49145         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
49146         * m4/gc.m4 (gl_GC):
49147         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
49148         * m4/getline.m4 (gl_FUNC_GETLINE):
49149         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
49150         * m4/hmac-md5.m4 (gl_HMAC_MD5):
49151         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
49152         * m4/md2.m4 (gl_MD2):
49153         * m4/md4.m4 (gl_MD4):
49154         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
49155         * m4/read-file.m4 (gl_FUNC_READ_FILE):
49156         * m4/readline.m4 (gl_FUNC_READLINE):
49157         * m4/rijndael.m4 (gl_RIJNDAEL):
49158         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49159         to get the necessary .h files and whatnot.
49160
49161 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49162
49163         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
49164         gnulib rather than the other way around.
49165         * config/srclistvars.sh (COREUTILS): Remove.
49166
49167 2006-08-22  Jim Meyering  <jim@meyering.net>
49168
49169         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
49170
49171         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
49172
49173 2006-08-22  Eric Blake  <ebb9@byu.net>
49174
49175         * modules/regexprops-generic: New file.
49176         * MODULES.html.sh (Support for building documentation): List it.
49177
49178 2006-08-22  Eric Blake  <ebb9@byu.net>
49179
49180         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
49181         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49182         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
49183         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49184
49185 2006-08-22  Bruno Haible  <bruno@clisp.org>
49186
49187         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
49188         and lib_LTLIBRARIES like the other lib_* variables.
49189
49190 2006-08-22  Bruno Haible  <bruno@clisp.org>
49191
49192         * build-aux/x-to-1.in: New file, from GNU gettext.
49193
49194 2006-08-22  Bruno Haible  <bruno@clisp.org>
49195
49196         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
49197         <utmpx.h> exists.
49198
49199 2006-08-22  Bruno Haible  <bruno@clisp.org>
49200
49201         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
49202         <utmpx.h> exists.
49203
49204 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49205
49206         BeOS portability.
49207         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
49208         exist.
49209         Problem reported by Bruno Haible.
49210
49211 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49212
49213         Avoid the need for AC_LIBSOURCES in m4 macros.
49214         * modules/acl (EXTRA_DIST): Add acl.h.
49215         * modules/argmatch (Files): Add m4/argmatch.m4.
49216         (configure.ac): Add gl_ARGMATCH.
49217         (EXTRA_DIST): Renamed from lib_SOURCES, for
49218         consistency with the other modules.  Remove argmatch.c.
49219         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
49220         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
49221         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
49222         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
49223         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
49224         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
49225         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
49226         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
49227         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
49228         * modules/closeout (EXTRA_DIST): Add closeout.h.
49229         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
49230         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
49231         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
49232         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
49233         dirname.h; remove basename.c and stripslash.c.
49234         * modules/exclude (EXTRA_DIST): Add exclude.h.
49235         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
49236         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
49237         * modules/file-type (EXTRA_DIST): Add file-type.h.
49238         * modules/filemode (EXTRA_DIST): Add filemode.h.
49239         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
49240         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49241         * modules/fpending (EXTRA_DIST): Add __fpending.h.
49242         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
49243         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
49244         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
49245         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
49246         * modules/getdate (EXTRA_DIST): Add getdate.c.
49247         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
49248         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
49249         * modules/getpass (EXTRA_DIST): Add getpass.h.
49250         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
49251         * modules/group-member (EXTRA_DIST): Add group-member.h.
49252         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
49253         * modules/hash (EXTRA_DIST): Add hash.h.
49254         * modules/human (EXTRA_DIST): Add human.h.
49255         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
49256         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
49257         * modules/lchown (EXTRA_DIST): Add lchown.h.
49258         * modules/long-options (EXTRA_DIST): Add long-options.h.
49259         * modules/lstat (EXTRA_DIST): Add lstat.h.
49260         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
49261         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
49262         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
49263         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
49264         * modules/memxor (EXTRA_DIST): Add memxor.h.
49265         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
49266         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
49267         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
49268         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
49269         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
49270         * modules/physmem (EXTRA_DIST): Add physmem.h.
49271         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
49272         * modules/posixver (EXTRA_DIST): Add posixver.h.
49273         * modules/quote (EXTRA_DIST): Add quote.h.
49274         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
49275         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
49276         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
49277         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
49278         regex_internal.h regexec.c.
49279         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
49280         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
49281         * modules/same (EXTRA_DIST): Add same.h.
49282         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
49283         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
49284         * modules/savedir (EXTRA_DIST): Add savedir.h.
49285         * modules/sha1 (EXTRA_DIST): Add sha1.h.
49286         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
49287         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
49288         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
49289         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
49290         * modules/strdup (EXTRA_DIST): Add strdup.h.
49291         * modules/strftime (EXTRA_DIST): Add strftime.h.
49292         * modules/strndup (EXTRA_DIST): Add strndup.h.
49293         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
49294         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
49295         * modules/time_r (EXTRA_DIST): Add time_r.h.
49296         * modules/timespec (EXTRA_DIST): Add timespec.h.
49297         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49298         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
49299         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
49300         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
49301         * modules/userspec (EXTRA_DIST): Add userspec.h.
49302         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
49303         * modules/utimens (EXTRA_DIST): Add utimens.h.
49304         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
49305         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
49306         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
49307         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
49308         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
49309         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
49310         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
49311         * modules/yesno (EXTRA_DIST): Add yesno.h.
49312
49313 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49314
49315         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
49316
49317         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
49318         * m4/dev-ino.m4, same-inode.m4: Remove.
49319
49320         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
49321         * m4/acl.m4 (AC_FUNC_ACL):
49322         * m4/backupfile.m4 (gl_BACKUPFILE):
49323         * m4/c-strtod.m4 (gl_C99_STRTOLD):
49324         * m4/canon-host.m4 (gl_CANON_HOST):
49325         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49326         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
49327         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
49328         * m4/cloexec.m4 (gl_CLOEXEC):
49329         * m4/close-stream.m4 (gl_CLOSE_STREAM):
49330         * m4/closeout.m4 (gl_CLOSEOUT):
49331         * m4/dirfd.m4 (gl_FUNC_DIRFD):
49332         * m4/dirname.m4 (gl_DIRNAME):
49333         * m4/exclude.m4 (gl_EXCLUDE):
49334         * m4/exitfail.m4 (gl_EXITFAIL):
49335         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
49336         * m4/file-type.m4 (gl_FILE_TYPE):
49337         * m4/filemode.m4 (gl_FILEMODE):
49338         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
49339         * m4/fpending.m4 (gl_FUNC_FPENDING):
49340         * m4/fprintftime.m4 (gl_FPRINTFTIME):
49341         * m4/fts.m4 (gl_FUNC_FTS):
49342         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
49343         * m4/getdate.m4 (gl_GETDATE):
49344         * m4/gethrxtime.m4 (gl_GETHRXTIME):
49345         * m4/getpagesize.m4 (gl_GETPAGESIZE):
49346         * m4/getpass.m4 (gl_FUNC_GETPASS):
49347         * m4/gettime.m4 (gl_GETTIME):
49348         * m4/getugroups.m4 (gl_GETUGROUPS):
49349         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
49350         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
49351         * m4/hard-locale.m4 (gl_HARD_LOCALE):
49352         * m4/hash.m4 (gl_HASH):
49353         * m4/idcache.m4 (gl_IDCACHE):
49354         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
49355         * m4/lchown.m4 (gl_FUNC_LCHOWN):
49356         * m4/long-options.m4 (gl_LONG_OPTIONS):
49357         * m4/lstat.m4 (gl_FUNC_LSTAT):
49358         * m4/md5.m4 (gl_MD5):
49359         * m4/memcasecmp.m4 (gl_MEMCASECMP):
49360         * m4/memcoll.m4 (gl_MEMCOLL):
49361         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
49362         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
49363         * m4/memxor.m4 (gl_MEMXOR):
49364         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
49365         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
49366         * m4/modechange.m4 (gl_MODECHANGE):
49367         * m4/mountlist.m4 (gl_MOUNTLIST):
49368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49369         * m4/openat.m4 (gl_FUNC_OPENAT):
49370         * m4/pathmax.m4 (gl_PATHMAX):
49371         * m4/physmem.m4 (gl_PHYSMEM):
49372         * m4/posixtm.m4 (gl_POSIXTM):
49373         * m4/posixver.m4 (gl_POSIXVER):
49374         * m4/quote.m4 (gl_QUOTE):
49375         * m4/quotearg.m4 (gl_QUOTEARG):
49376         * m4/readtokens.m4 (gl_READTOKENS):
49377         * m4/readutmp.m4 (gl_READUTMP):
49378         * m4/regex.m4 (gl_REGEX):
49379         * m4/safe-read.m4 (gl_SAFE_READ):
49380         * m4/safe-write.m4 (gl_SAFE_WRITE):
49381         * m4/same.m4 (gl_SAME):
49382         * m4/save-cwd.m4 (gl_SAVE_CWD):
49383         * m4/savedir.m4 (gl_SAVEDIR):
49384         * m4/settime.m4 (gl_SETTIME):
49385         * m4/sha1.m4 (gl_SHA1):
49386         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
49387         * m4/stat-macros.m4 (gl_STAT_MACROS):
49388         * m4/stat-time.m4 (gl_STAT_TIME):
49389         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
49390         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
49391         * m4/strdup.m4 (gl_FUNC_STRDUP):
49392         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
49393         * m4/strndup.m4 (gl_FUNC_STRNDUP):
49394         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
49395         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
49396         * m4/time_r.m4 (gl_TIME_R):
49397         * m4/timespec.m4 (gl_TIMESPEC):
49398         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
49399         * m4/unlinkdir.m4 (gl_UNLINKDIR):
49400         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
49401         * m4/userspec.m4 (gl_USERSPEC):
49402         * m4/utimecmp.m4 (gl_UTIMECMP):
49403         * m4/utimens.m4 (gl_UTIMENS):
49404         * m4/xalloc.m4 (gl_XALLOC):
49405         * m4/xgetcwd.m4 (gl_XGETCWD):
49406         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
49407         * m4/xreadlink.m4 (gl_XREADLINK):
49408         * m4/xstrtod.m4 (gl_XSTRTOD):
49409         * m4/yesno.m4 (gl_YESNO):
49410         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49411         to get the necessary .h files and whatnot.
49412
49413 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
49414             Bruno Haible  <bruno@clisp.org>
49415
49416         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
49417         /bin/sh understanding of '!' conditional negation.
49418
49419 2006-08-21  Jim Meyering  <jim@meyering.net>
49420
49421         * modules/openat (Depends-on): Really alphabetize.
49422
49423         * modules/acl (Depends-on): Add error and quote.
49424
49425         * check-module (find_included_lib_files): Add at-func.c to the
49426         ok-to-include-more-than-once white list.
49427
49428         * modules/openat (Depends-on): Add lstat.  Alphabetize.
49429
49430 2006-08-21  Bruno Haible  <bruno@clisp.org>
49431
49432         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49433         Emit a pkgdata_DATA variable only if some snippets add contents to it.
49434         Reported by Martin Lambers <marlam@marlam.de>.
49435
49436 2006-08-21  Bruno Haible  <bruno@clisp.org>
49437
49438         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
49439         specify an installation location, don't emit a noinst_LIBRARIES or
49440         noinst_LTLIBRARIES assignment.
49441
49442 2006-08-21  Bruno Haible  <bruno@clisp.org>
49443
49444         BeOS portability.
49445         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
49446         BeOS has mbrtowc() but no <wctype.h>.
49447
49448 2006-08-21  Bruno Haible  <bruno@clisp.org>
49449
49450         BeOS portability.
49451         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
49452         exist.
49453
49454 2006-08-21  Bruno Haible  <bruno@clisp.org>
49455
49456         BeOS portability.
49457         * lib/mbchar.h: Include <wctype.h> only if it exists.
49458
49459 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49460
49461         Remove files that are no longer needed by their respective modules.
49462         * m4/obstack.m4: Remove.
49463         * m4/strerror_r.m4: Remove.
49464         * m4/uint32_t.m4: Remove.
49465         * m4/uintptr_t.m4: Remove.
49466         * m4/ullong_max.m4: Remove.
49467         * m4/xstrtoimax.m4: Remove.
49468         * m4/xstrtoumax.m4: Remove.
49469
49470         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
49471         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
49472         dependencies now capture this.
49473
49474         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
49475         Do not use AC_LIBSOURCES, since gnulib modules now do this.
49476         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
49477         * m4/human.m4 (gl_HUMAN): Likewise.
49478         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
49479         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
49480
49481         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
49482
49483         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
49484         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
49485         stdint.
49486         * m4/human.m4 (gl_HUMAN): Likewise.
49487         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
49488         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
49489         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49490         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49491         * m4/xstrtol (gl_XSTRTOL): Likewise.
49492
49493         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
49494         AC_TYPE_LONG_LONG_INT.
49495         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49496         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
49497         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
49498         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49499
49500         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
49501         on stdbool.
49502
49503         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
49504         (gl_PREREQ_XSTRTOUL): Remove.
49505
49506         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
49507
49508         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
49509         mode.
49510
49511 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49512
49513         Add and change modules to make it easier for coreutils to use
49514         gnulib-tool.
49515         * modules/backupfile (Files): Remove m4/d-ino.m4.
49516         (Depends-on): Add d-ino.
49517         * modules/cycle-check (Depends-on): Add stdint.
49518         (lib_SOURCES): Add cycle-check.h.
49519         * modules/d-ino: New module.
49520         * modules/d-type: New module.
49521         * modules/error (Files): Remove m4/strerror_r.m4.
49522         * modules/filemode (Files): Add m4/st_dm_mode.m4.
49523         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49524         m4/inttypes_h.m4, m4/uintmax_t.m4.
49525         (Depends-on): Add stdint.
49526         (lib_SOURCES): Add fsusage.h.
49527         * modules/getcwd (Files): Remove d-ino.m4.
49528         (Depends-on): Add d-ino.
49529         * modules/getndelim2 (Depends-on): Add stdint.
49530         * modules/glob (Files): Remove m4/d-type.m4.
49531         (Depends-on): Add d-type.
49532         * modules/host-os: New module.
49533         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
49534         m4/inttypes_h.m4, m4/uintmax_t.m4.
49535         * Depends-on: Add stdint.
49536         (lib_SOURCES): Add human.h.
49537         * modules/inttostr (Files): Remove m4/intmax_t.m4,
49538         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
49539         m4/uintmax_t.m4, m4/ulonglong.m4.
49540         (Depends-on): Add stdint.
49541         (EXTRA_DIST): Add inttostr.h.
49542         * modules/lchmod: New module.
49543         * modules/link-follow: New module.
49544         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
49545         (Depends-on): Add lchmod.
49546         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
49547         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
49548         (Depends-on): Add stdint.
49549         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
49550         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
49551         (Depends-on): Add stdint.
49552         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
49553         * modules/perl: New module.
49554         * modules/regex (Depends-on): Add stdint.
49555         * modules/rmdir-errno: New module.
49556         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49557         m4/intmax_t.m4.
49558         (Depends-on): Add stdint.
49559         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49560         m4/uintmax_t.m4.
49561         (Depends-on): Add stdint.
49562         * modules/unlink-busy: New module.
49563         * modules/utimecmp (Depends-on): Add stdint.
49564         * modules/uptime: New module.
49565         * modules/winsz-ioctl: New module.
49566         * modules/winsz-termios: New module.
49567         * modules/xnanosleep (Depends-on): Add nanosleep.
49568         * modules/ullong_max: Remove.
49569         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
49570         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
49571         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
49572         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
49573         (Depends-on): Add inttypes.
49574         (lib_SOURCES): Add xstrtol.h.
49575         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
49576         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
49577         * MODULES.html.sh: Move 'assert' into the assert section.
49578         Move 'dummy' into the linking section.
49579         Remove ullong_max.
49580         Add section for compatibility checks for POSIX:2001 functions,
49581         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
49582         winsz-ioctl, and winsz-termios into it.
49583         Add lchmod.
49584         Add top-level Misc section and put host-os, perl, and uptime
49585         into it.
49586
49587 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49588
49589         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49590         now assume the stdint module.  Do not include inttypes.h.
49591         * lib/fsusage.h: Likewise.
49592         * lib/getndelim2.c: Likewise.
49593         * lib/human.h: Likewise.
49594         * lib/inttostr.h: Likewise.
49595         * lib/obstack.c: Likewise.
49596         * lib/regex_internal.h: Likewise.
49597         * lib/tempname.c: Likewise.
49598         * lib/utimecmp.c: Likewise.
49599         * lib/xstrtol.h: Likewise.
49600
49601         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49602
49603         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49604         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49605         * lib/xtime.h: Likewise.
49606
49607 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49608
49609         * modules/openat (Files): Add lib/fchmodat.c.
49610         Fixes problem reported by Jay Youngman.
49611
49612 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49613
49614         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49615         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49616
49617 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49618             Bruno Haible  <bruno@clisp.org>
49619
49620         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49621         and is a script that invokes bison. Tighten the code. Add comments.
49622
49623 2006-08-18  Jim Meyering  <jim@meyering.net>
49624
49625         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49626         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49627         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49628         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49629
49630 2006-08-18  Bruno Haible  <bruno@clisp.org>
49631
49632         * modules/bison-i18n: New file.
49633         * MODULES.html.sh (Internationalization functions): Add it.
49634
49635 2006-08-18  Bruno Haible  <bruno@clisp.org>
49636
49637         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49638         sys/statvfs.h. When getmntinfo was found, check its declaration and
49639         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49640
49641 2006-08-18  Bruno Haible  <bruno@clisp.org>
49642
49643         * m4/bison-i18n.m4: New file, from bison.
49644
49645 2006-08-18  Bruno Haible  <bruno@clisp.org>
49646
49647         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49648         (ME_DUMMY): Treat "kernfs" as a dummy.
49649         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49650
49651 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49652
49653         Update from coreutils.
49654
49655         2006-08-15  Jim Meyering  <jim@meyering.net>
49656
49657         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49658
49659         2006-01-17  Jim Meyering  <jim@meyering.net>
49660
49661         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49662
49663         2006-01-11  Jim Meyering  <jim@meyering.net>
49664
49665         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49666         Check for the lchmod function.
49667
49668 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49669
49670         Update from coreutils.
49671
49672         * lib/__fpending.h: Add copyright notice.
49673         * lib/fprintftime.h: Likewise.
49674         * lib/savedir.c: Use (C) in copyright notice.
49675         * lib/savedir.h: Likewise.
49676
49677         2006-08-15  Jim Meyering  <jim@meyering.net>
49678
49679         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49680         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49681         in support of the EXPECTED_ERRNO macro.
49682         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49683         definitions.  Instead, define the appropriate symbols and include
49684         "at-func.c".
49685         * lib/mkdirat.c (mkdirat): Likewise.
49686         * lib/fchmodat.c (fchmodat): Likewise.
49687         (ENOSYS): Remove definition.
49688         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49689         it.  Don't include "unistd--.h" -- it wasn't ever used.
49690
49691         2006-01-17  Jim Meyering  <jim@meyering.net>
49692
49693         Rewrite fts.c not to change the current working directory,
49694         by using openat, fstatat, fdopendir, etc..
49695
49696         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49697         (HAVE_OPENAT_SUPPORT): Define.
49698         [_LIBC] (fchdir): Don't undef or define; no longer used.
49699         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49700         Now, this `function' always succeeds, and consumes its file descriptor
49701         parameter -- so callers must not close such FDs.  Update callers.
49702         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49703         (diropen): Add parameter, SP.  Adjust all callers.
49704         Implement using diropen_fd, rather than open.
49705         (fts_open): Initialize new member, fts_cwd_fd.
49706         Remove fts_rft-setting code.
49707         (fts_close): Close fts_cwd_fd, if necessary.
49708         (__opendir2): Define in terms of opendir or opendirat,
49709         depending on whether the FST_NOCHDIR flag is set.
49710         (fts_build): Since fts_safe_changedir consumes its FD, and since
49711         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49712         and close the dup'd file descriptor upon failure.
49713         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49714         (fts_safe_changedir): Tweak semantics to reflect that this function
49715         now calls cwd_advance_fd and hence consumes its FD argument.
49716         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49717         [struct FTS] (fts_rft): Remove now-unused member.
49718         [struct FTS] (fts_cycle.state): Improve comment.
49719
49720         * lib/openat.c (openat_needs_fchdir): New function.
49721         * lib/openat.h (openat_needs_fchdir): Declare it.
49722
49723 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49724
49725         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49726         Problem and fix reported by Pádraig Brady in
49727         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49728
49729 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49730
49731         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49732
49733 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49734
49735         * lib/memcoll.c (memcoll): Optimize for the common case where the
49736         arguments are bytewise equal.
49737
49738 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49739
49740         * doc/regexprops-generic.texi: Add a copyright notice.
49741
49742 2006-08-15  Bruno Haible  <bruno@clisp.org>
49743
49744         * modules/tmpdir (License): Change to LGPL.
49745
49746 2006-08-15  Bruno Haible  <bruno@clisp.org>
49747
49748         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49749         module.
49750
49751 2006-08-14  Simon Josefsson  <jas@extundo.com>
49752
49753         * config/srclist.txt: Add gnupload.
49754
49755 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49756
49757         Change copyright notice from LGPL 2 to GPL 2, since that's the
49758         standard form used in the gnulib repository.
49759         * tests/test-lock.c: Likewise.
49760         * tests/test-stdint.c: Likewise.
49761         * tests/test-tls.c: Likewise.
49762
49763         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49764         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49765         Add copyright notice.
49766
49767         * check-module: Add copyright notice.  Output a copyright
49768         notice if "--version" is specified.
49769         * modules/COPYING: New file.
49770         * tests/test-getaddrinfo.c: Add copyright notice.
49771         * tests/test-verify.c: Likewise.
49772
49773 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49774
49775         Change copyright notice from LGPL 2 to GPL 2, since that's the
49776         standard form used in the gnulib repository.
49777         * lib/lock.c: LGPL -> GPL.
49778         * lib/lock.h: Likewise.
49779         * lib/strnlen1.c: Likewise.
49780         * lib/strnlen1.h: Likewise.
49781         * lib/tls.c: Likewise.
49782         * lib/tls.h: Likewise.
49783         * lib/tmpdir.c: Likewise.
49784
49785         * lib/TODO: Remove; this belongs only in coreutils.
49786
49787 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49788
49789         Add copyright notices to long-enough files that lack them, since
49790         otherwise the files aren't clearly free.  Use the same notice that
49791         getdate.texi already uses.
49792         * doc/alloca-opt.texi: Add copyright notice.
49793         * doc/alloca.texi: Likewise.
49794         * doc/ctime.texi: Likewise.
49795         * doc/functions.texi: Likewise.
49796         * doc/gcd.texi: Likewise.
49797         * doc/gnulib-tool.texi: Likewise.
49798         * doc/inet_ntoa.texi: Likewise.
49799         * doc/visibility.texi: Likewise.
49800
49801         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49802         * doc/quote.texi: Add copyright notice.
49803
49804         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49805         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49806         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49807         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49808         is now obsolete, and give a pointer to the Sun list.
49809         Add copyright notice.
49810
49811 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49812
49813         * config/srclistvars.sh: Add copyright notice.
49814
49815 2006-08-14  Eric Blake  <ebb9@byu.net>
49816
49817         Import the following change from libc:
49818
49819         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49820
49821         Upstream bug 2997.
49822         * lib/misc/error.c: Add space between program name and message if file
49823         name is missing.
49824
49825 2006-08-12  Karl Berry  <karl@gnu.org>
49826
49827         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49828         remove, these originate in gnulib now.
49829
49830 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49831
49832         * doc/Makefile (standards.info standards.html standards.dvi):
49833         Also depend on make-stds.texi.
49834
49835 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49836
49837         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
49838         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
49839
49840         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
49841         in wchar_t.  Problem reported by Eric Blake.
49842
49843         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
49844         LEN is smaller than SIZE.  Suggested by Bruno Haible.
49845         Also, help the compiler to keep LEN in a register.
49846
49847 2006-08-11  Eric Blake  <ebb9@byu.net>
49848
49849         * users.txt: Sort.  Add tar.
49850
49851 2006-08-11  Bruno Haible  <bruno@clisp.org>
49852
49853         * users.txt: New file.
49854
49855 2006-08-11  Bruno Haible  <bruno@clisp.org>
49856
49857         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
49858         before <wchar.h>. Needed for OSF/1 and BSD/OS.
49859
49860 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49861
49862         * modules/snprintf (Depends-on): Remove minmax.
49863         (Maintainer): Add self and Bruno.
49864
49865 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49866
49867         * lib/.cppi-disable: Add snprintf.h, socket_.h.
49868         * lib/snprintf.c: Include <errno.h> and <limits.h>.
49869         (EOVERFLOW): Define if the system does not.
49870         Do not include "minmax.h"; it wasn't used.
49871         (snprintf): Don't assume size_t promotes to an unsigned type.
49872         Fix bug when generated string was too long for the buffer: the
49873         buffer's contents are supposed to be the initial prefix of the
49874         output.  Don't assume vasnprintf returns EOVERFLOW if the size
49875         exceeds INT_MAX; do the check ourselves.
49876
49877         Import the following changes from libc:
49878
49879         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
49880
49881         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
49882         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
49883         set wc to the byte which couldn't be converted.
49884         (re_string_reconstruct): Don't clear valid_raw_len before calling
49885         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
49886         tip_context using re_string_context_at.
49887
49888         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
49889
49890         * lib/posix/regex.h: g++ still cannot handled [restrict].
49891
49892         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
49893
49894         * lib/posix/regex.h: Remove special handling for VMS.
49895
49896 2006-08-10  Jim Meyering  <jim@meyering.net>
49897
49898         * modules/same-inode: New module.
49899         * modules/dev-ino: New module.
49900         * modules/cycle-check: Depend on these modules, rather than simply
49901         including their .h files.
49902         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
49903         required via m4/cycle-check.m4.
49904         * modules/same: Depend on new same-inode module, rather than
49905         including same-inode.h.
49906         * modules/chdir-safer: New file.
49907
49908         * modules/chown (Depends-on): Add stat-macros.
49909
49910 2006-08-10  Jim Meyering  <jim@meyering.net>
49911
49912         * m4/cycle-check.m4: New file.
49913         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
49914         * m4/dev-ino.m4, m4/same-inode.m4: New files.
49915
49916 2006-08-10  Eric Blake  <ebb9@byu.net>
49917
49918         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
49919         in from original proposal.
49920
49921 2006-08-10  Eric Blake  <ebb9@byu.net>
49922         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49923
49924         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
49925         namespace.
49926
49927 2006-08-10  Bruno Haible  <bruno@clisp.org>
49928
49929         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
49930         as well.
49931
49932 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49933
49934         Sync from coreutils.
49935
49936         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
49937
49938         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
49939         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
49940
49941 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49942
49943         * modules/restrict: Remove; no longer needed now that we assume
49944         Autoconf 2.59 or later.
49945         * MODULES.html.sh: Remove 'restrict'.
49946         * modules/argp (Depends-on): Remove 'restrict'.
49947         * modules/base64 (Depends-on): Likewise.
49948         * modules/gc (Depends-on): Likewise.
49949         * modules/getaddrinfo (Depends-on): Likewise.
49950         * modules/glob (Depends-on): Likewise.
49951         * modules/inet_ntop (Depends-on): Likewise.
49952         * modules/inet_pton (Depends-on): Likewise.
49953         * modules/memxor (Depends-on): Likewise.
49954         * modules/regex (Depends-on): Likewise.
49955         * modules/strtok_r (Depends-on): Likewise.
49956         * modules/time_r (Depends-on): Likewise.
49957
49958 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49959
49960         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
49961         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
49962         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49963         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
49964         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
49965         * m4/memxor.m4 (gl_MEMXOR): Likewise.
49966         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
49967         gl_C_RESTRICT replaced by AC_C_RESTRICT.
49968
49969         Merge from coreutils.
49970         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
49971         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
49972         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49973         * m4/time_r.m4 (gl_TIME_R): Likewise.
49974
49975 2006-08-09  Karl Berry  <karl@gnu.org>
49976
49977         * config/srclist.txt: no more gettext-tools, per Bruno.
49978
49979 2006-08-08  Eric Blake  <ebb9@byu.net>
49980
49981         * modules/verror: New module.
49982         * MODULES.html.sh: Document it.
49983
49984 2006-08-08  Eric Blake  <ebb9@byu.net>
49985
49986         * lib/verror.h, lib/verror.c: New files.
49987
49988 2006-08-08  Eric Blake  <ebb9@byu.net>
49989
49990         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
49991         verror_at_line output complies with GNU Coding Standards even when
49992         file is NULL.
49993
49994 2006-08-07  Bruno Haible  <bruno@clisp.org>
49995
49996         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
49997         versions of AIX.
49998         Reported by Ralf Wildenhues.
49999
50000 2006-08-07  Bruno Haible  <bruno@clisp.org>
50001
50002         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
50003         in an AC_DEFUN. Needed so that the autoconf snippets can use
50004         AC_REQUIRE.
50005
50006 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50007
50008         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50009         Initialize pkgdata_DATA.
50010         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
50011         overriding it.
50012
50013 2006-08-06  Eric Blake  <ebb9@byu.net>
50014
50015         * lib/error.h: Fold in some upstream changes from glibc.
50016         * lib/error.c: Likewise.
50017
50018 2006-08-04  Bruno Haible  <bruno@clisp.org>
50019
50020         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50021         Make the mostlyclean-local rule depend on mostlyclean-generic.
50022         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
50023
50024 2006-07-31  Bruno Haible  <bruno@clisp.org>
50025
50026         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
50027         <stdlib.h>, <string.h>.
50028
50029 2006-07-30  Bruno Haible  <bruno@clisp.org>
50030
50031         * modules/readlink (License): Change to LGPL.
50032
50033 2006-07-30  Bruno Haible  <bruno@clisp.org>
50034
50035         * modules/javaversion (Makefile.am): Distribute javaversion.java and
50036         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
50037         set PKGDATADIR to point to it.
50038
50039 2006-07-30  Bruno Haible  <bruno@clisp.org>
50040
50041         * modules/csharpexec (configure.ac): Comment out macro invocation.
50042         * modules/javaexec (configure.ac): Likewise.
50043         * modules/javacomp-script (configure.ac): Likewise.
50044
50045         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
50046
50047 2006-07-30  Bruno Haible  <bruno@clisp.org>
50048
50049         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
50050         linked-list.
50051
50052 2006-07-30  Bruno Haible  <bruno@clisp.org>
50053
50054         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
50055
50056 2006-07-30  Bruno Haible  <bruno@clisp.org>
50057
50058         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50059         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
50060         get removed.
50061
50062 2006-07-29  Bruno Haible  <bruno@clisp.org>
50063
50064         Make it possible for gnulib-tool to work with locally modified or
50065         augmented gnulib repositories.
50066         * gnulib-tool (func_usage): Document --local-dir option.
50067         (local_gnulib_dir): New variable.
50068         Handle --local-dir option.
50069         (func_lookup_file): New function.
50070         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
50071         (func_get_description, func_get_filelist, func_get_description,
50072         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
50073         func_get_automake_snippet, func_get_include_directive,
50074         func_get_license, func_get_maintainer): Use func_lookup_file.
50075         (func_import, func_create_testdir): Use func_lookup_file.
50076
50077 2006-07-29  Bruno Haible  <bruno@clisp.org>
50078
50079         * modules/setenv (Depends-on): Add unistd.
50080
50081 2006-07-29  Bruno Haible  <bruno@clisp.org>
50082
50083         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
50084
50085 2006-07-29  Bruno Haible  <bruno@clisp.org>
50086
50087         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
50088
50089 2006-07-29  Bruno Haible  <bruno@clisp.org>
50090
50091         * gnulib-tool (import, update): If there is no Makefile.am, look at
50092         aclocal.m4, instead of bailing out.
50093
50094 2006-07-29  Bruno Haible  <bruno@clisp.org>
50095
50096         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
50097         Categorize the options by when they are useful.
50098
50099 2006-07-29  Bruno Haible  <bruno@clisp.org>
50100
50101         * gnulib-tool (func_usage): Document option --no-libtool.
50102         Handle option --no-libtool.
50103         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
50104         for changed semantics of $libtool variable.
50105         (func_import): Likewise. If libtool is not used, show this through
50106         an option --no-libtool.
50107         (func_create_testdir): Update.
50108
50109 2006-07-29  Bruno Haible  <bruno@clisp.org>
50110
50111         * gnulib-tool (func_import): Extend error message about missing
50112         --doc-base.
50113
50114 2006-07-29  Bruno Haible  <bruno@clisp.org>
50115
50116         * gnulib-tool (func_import): Don't create the $docbase directory if
50117         there is no file to store there.
50118
50119 2006-07-29  Bruno Haible  <bruno@clisp.org>
50120
50121         * gnulib-tool (autoconf_minversion): If a --dir option is given and
50122         relevant, look for configure.ac there, not in the current directory.
50123         Also use a simple search for AC_PREREQ, not "autoconf --trace".
50124
50125 2006-07-29  Bruno Haible  <bruno@clisp.org>
50126
50127         * gnulib-tool (SORT): New variable.
50128         (func_usage): Undocument --assume-autoconf option.
50129         Remove --assume-autoconf option handling.
50130         (autoconf_minversion): Determine from the contents of configure.ac.
50131         (func_import): Remove autoconf_minversion handling.
50132         Suggested by Eric Blake.
50133
50134 2006-07-29  Bruno Haible  <bruno@clisp.org>
50135
50136         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
50137
50138 2006-07-29  Bruno Haible  <bruno@clisp.org>
50139
50140         * config/srclist.txt (*setenv.[ch]): Remove rules.
50141
50142 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50143
50144         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
50145
50146 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50147
50148         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
50149         arpa/inet.h.
50150
50151 2006-07-28  Simon Josefsson  <jas@extundo.com>
50152
50153         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
50154         * modules/inet_pton (Depends-on): Likewise.
50155
50156 2006-07-28  Simon Josefsson  <jas@extundo.com>
50157
50158         * m4/netinet_in_h.m4: New file.
50159
50160 2006-07-28  Simon Josefsson  <jas@extundo.com>
50161
50162         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
50163         #include's.
50164
50165 2006-07-28  Simon Josefsson  <jas@extundo.com>
50166
50167         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
50168         #include's.
50169
50170 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
50171
50172         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
50173         setgid on directories only if they set these bits.
50174         * lib/modechange.h: Remove obsolete comment about masks.
50175
50176 2006-07-28  Eric Blake  <ebb9@byu.net>
50177
50178         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
50179         macro expansion.
50180
50181 2006-07-28  Bruno Haible  <bruno@clisp.org>
50182
50183         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
50184
50185 2006-07-28  Bruno Haible  <bruno@clisp.org>
50186
50187         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
50188
50189 2006-07-28  Bruno Haible  <bruno@clisp.org>
50190
50191         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50192         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50193         Define fallbacks.
50194         Avoids link error on FreeBSD 4.x.
50195         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50196
50197         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
50198         encoding.
50199         * lib/mbswidth.c (iswcntrl): Likewise.
50200
50201 2006-07-27  Bruno Haible  <bruno@clisp.org>
50202
50203         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
50204         test.
50205
50206 2006-07-27  Bruno Haible  <bruno@clisp.org>
50207
50208         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
50209         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
50210         defined.
50211
50212 2006-07-26  Eric Blake  <ebb9@byu.net>
50213
50214         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
50215
50216 2006-07-26  Eric Blake  <ebb9@byu.net>
50217
50218         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
50219         like mingw that lack mkstemp.
50220         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
50221         avoid compilation warning on mingw.
50222
50223 2006-07-26  Bruno Haible  <bruno@clisp.org>
50224
50225         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
50226         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
50227         INT_FAST*_MIN, INTPTR_MIN.
50228
50229 2006-07-25  Bruno Haible  <bruno@clisp.org>
50230
50231         * modules/version-etc (Depends-on): Add stdarg.
50232
50233 2006-07-25  Bruno Haible  <bruno@clisp.org>
50234
50235         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
50236         complex commands.
50237
50238 2006-07-25  Bruno Haible  <bruno@clisp.org>
50239
50240         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
50241         defined in <stdarg.h> or config.h.
50242
50243 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50244
50245         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
50246         (gl_STDIO_SAFER): Remove.
50247
50248 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50249
50250         * MODULES.html.sh (File stream based Input/Output):
50251         Add fopen-safer, tmpfile-safer; remove stdio-safer.
50252         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
50253         * modules/fopen-safer, modules/tmpfile-safer: New files.
50254         * modules/stdio-safer: Remove.
50255
50256 2006-07-24  Bruno Haible  <bruno@clisp.org>
50257
50258         * modules/tmpdir: New file.
50259         * MODULES.html.sh (File system functions): Add it.
50260
50261 2006-07-24  Bruno Haible  <bruno@clisp.org>
50262
50263         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
50264         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
50265
50266 2006-07-24  Bruno Haible  <bruno@clisp.org>
50267
50268         * modules/clean-temp: New file.
50269
50270 2006-07-24  Bruno Haible  <bruno@clisp.org>
50271
50272         * m4/tmpdir.m4: New file, from GNU gettext.
50273
50274 2006-07-24  Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/tmpdir.h: New file, from GNU gettext.
50277         * lib/tmpdir.c: New file, from GNU gettext.
50278
50279 2006-07-24  Bruno Haible  <bruno@clisp.org>
50280
50281         * lib/clean-temp.h: New file, from GNU gettext.
50282         * lib/clean-temp.c: New file, from GNU gettext.
50283
50284 2006-07-23  Eric Blake  <ebb9@byu.net>
50285
50286         * modules/stdio-safer (Files): Add tmpfile-safer.c.
50287         (Depends-on): Add binary-io.
50288
50289 2006-07-23  Eric Blake  <ebb9@byu.net>
50290
50291         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
50292
50293 2006-07-23  Eric Blake  <ebb9@byu.net>
50294
50295         * lib/tmpfile-safer.c: New file.
50296         * lib/stdio-safer.h (fopen_safer): Add prototype.
50297         * lib/stdio--.h (tmpfile): Make safer.
50298
50299 2006-07-23  Bruno Haible  <bruno@clisp.org>
50300
50301         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
50302         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
50303         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
50304         gl_linked_remove_at): Use it.
50305
50306 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50307         and Simon Josefsson <jas@extundo.com>
50308
50309         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
50310
50311         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
50312
50313 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50314
50315         * modules/close-stream: New file.
50316         * modules/closeout (Description): Make it clear that it exits
50317         with a diagnostic on error.
50318         (Depends-on): Add close-stream.  Remove fpending, stdbool.
50319         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
50320
50321 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50322
50323         * m4/close-stream.m4: New file.
50324
50325 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50326
50327         * lib/close-stream.c, lib/close-stream.h: New files.
50328
50329 2006-07-22  Bruno Haible  <bruno@clisp.org>
50330
50331         Merge from GNU gettext 0.15.
50332
50333         2006-05-01  Bruno Haible  <bruno@clisp.org>
50334
50335                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
50336
50337         2006-07-22  Bruno Haible  <bruno@clisp.org>
50338
50339                 * modules/javaversion: New file.
50340                 * MODULES.html.sh (Java): Add javaversion.
50341
50342         2006-03-12  Bruno Haible  <bruno@clisp.org>
50343
50344                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
50345
50346         2005-12-04  Bruno Haible  <bruno@clisp.org>
50347
50348                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
50349                 (untested).
50350
50351         2006-06-21  Bruno Haible  <bruno@clisp.org>
50352
50353                 Avoid warnings from recent versions of mcs.
50354                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
50355                 -o, -L, -r any more. Use options documented since mcs-1.0
50356                 instead. Similarly for -g.
50357
50358         2005-12-04  Bruno Haible  <bruno@clisp.org>
50359
50360                 * build-aux/csharpcomp.sh.in: Suffix for resources is
50361                 .resources, not .resource.
50362
50363         2005-07-09  Bruno Haible  <bruno@clisp.org>
50364
50365                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
50366                 add a .dll suffix.
50367                 Reported by Mark Junker <mjscod@gmx.de>.
50368
50369         2006-07-22  Bruno Haible  <bruno@clisp.org>
50370
50371                 * modules/gettext: Upgrade to gettext-0.15.
50372                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
50373                 m4/visibility.m4.
50374                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
50375
50376 2006-07-22  Bruno Haible  <bruno@clisp.org>
50377
50378         Merge from GNU gettext 0.15.
50379
50380         2006-03-25  Bruno Haible  <bruno@clisp.org>
50381
50382                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
50383
50384         2006-07-21  Bruno Haible  <bruno@clisp.org>
50385
50386                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
50387                 "1.1".
50388
50389         2006-05-09  Bruno Haible  <bruno@clisp.org>
50390
50391                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
50392                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
50393                 for the conftestver execution.
50394
50395         2006-05-01  Bruno Haible  <bruno@clisp.org>
50396
50397                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
50398                 optional target-version argument. Verify that the compiler
50399                 groks source of the specified source-version, or add -source
50400                 option as necessary. Verify that the compiler produces
50401                 bytecode in the specified target-version, or add -target and
50402                 -source options as necessary. Make the result of the test
50403                 available as variable CONF_JAVAC. Also log error output in
50404                 config.log.
50405
50406         2006-03-11  Bruno Haible  <bruno@clisp.org>
50407
50408                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
50409
50410         2006-05-09  Bruno Haible  <bruno@clisp.org>
50411
50412                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
50413                 CLASSPATH_SEPARATOR to a semicolon.
50414
50415         2006-03-12  Bruno Haible  <bruno@clisp.org>
50416
50417                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
50418                 available as variable CONF_JAVA, for subsequent autoconf
50419                 tests. Also log error output in config.log.
50420
50421         2006-07-19  Bruno Haible  <bruno@clisp.org>
50422
50423                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
50424                 that getline works on glibc2 systems. Needed to avoid trouble
50425                 in relocatable.c.
50426                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
50427
50428         2005-12-04  Bruno Haible  <bruno@clisp.org>
50429
50430                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
50431                 launcher (untested).
50432
50433         2005-12-04  Bruno Haible  <bruno@clisp.org>
50434
50435                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
50436
50437         2006-07-22  Bruno Haible  <bruno@clisp.org>
50438
50439                 * gettext.m4: Update from GNU gettext-0.15.
50440                 * nls.m4: Likewise.
50441                 * po.m4: Likewise.
50442                 * inttypes-pri.m4: Likewise.
50443                 * inttypes-h.m4: Renamed from inttypes.m4.
50444                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
50445
50446 2006-07-22  Bruno Haible  <bruno@clisp.org>
50447
50448         Merge from GNU gettext 0.15.
50449
50450         2005-07-05  Bruno Haible  <bruno@clisp.org>
50451
50452                 * printf-args.c (printf_fetchargs): Work around broken
50453                 definition of wint_t on mingw.
50454
50455         2005-02-12  Bruno Haible  <bruno@clisp.org>
50456
50457                 * xallocsa.h: Add extern "C" for C++.
50458
50459         2006-05-17  Bruno Haible  <bruno@clisp.org>
50460
50461                 Cygwin portability.
50462                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
50463
50464         2006-04-30  Bruno Haible  <bruno@clisp.org>
50465
50466                 * progreloc.c: Include <mach-o/dyld.h> if available.
50467                 (find_executable): Use _NSGetExecutablePath when possible.
50468
50469         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50470
50471                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
50472                 function.
50473
50474         2005-12-29  Bruno Haible  <bruno@clisp.org>
50475
50476                 * progreloc.c (set_program_name_and_installdir): Fix
50477                 compilation error.
50478
50479         2005-12-04  Bruno Haible  <bruno@clisp.org>
50480
50481                 Cygwin portability.
50482                 * progreloc.c: Include <windows.h> also on Cygwin.
50483                 (find_executable): Add support for Cygwin.
50484                 (set_program_name_and_installdir): Handle also platforms with
50485                 nonempty EXEEXT.
50486
50487         2006-07-11  Bruno Haible  <bruno@clisp.org>
50488
50489                 * javacomp.c: Fix a comment.
50490                 Reported by Jim Meyering.
50491
50492         2006-04-30  Bruno Haible  <bruno@clisp.org>
50493
50494                 * javacomp.h (compile_java_class): Add source_version,
50495                 target_version arguments.
50496                 * javacomp.c: Rewritten to choose only a compiler that
50497                 respects the specified source_version and target_version.
50498
50499         2006-06-27  Bruno Haible  <bruno@clisp.org>
50500
50501                 Assume correct S_ISDIR macro.
50502                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
50503
50504         2006-07-22  Bruno Haible  <bruno@clisp.org>
50505
50506                 * javaversion.h: New file, from GNU gettext.
50507                 * javaversion.c: New file, from GNU gettext.
50508                 * javaversion.java: New file, from GNU gettext.
50509                 * javaversion.class: New file, from GNU gettext.
50510
50511         2006-05-17  Bruno Haible  <bruno@clisp.org>
50512
50513                 Cygwin portability.
50514                 * javaexec.c (execute_java_class): Test for jview program
50515                 also on Cygwin.
50516
50517         2006-04-09  Bruno Haible  <bruno@clisp.org>
50518
50519                 * fatal-signal.c: Don't include string.h.
50520                 (at_fatal_signal): Use a copying loop instead of memcpy.
50521
50522         2005-12-04  Bruno Haible  <bruno@clisp.org>
50523
50524                 * csharpexec.c: Add support for 'clix' launcher (untested).
50525                 (execute_csharp_using_sscli): New function.
50526                 (execute_csharp_program): Call it.
50527
50528         2006-06-21  Bruno Haible  <bruno@clisp.org>
50529
50530                 Avoid warnings from recent versions of mcs.
50531                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
50532                 -o, -L, -r any more. Use options documented since mcs-1.0
50533                 instead. Similarly for -g.
50534
50535         2005-07-09  Bruno Haible  <bruno@clisp.org>
50536
50537                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
50538                 add a .dll suffix.
50539                 Reported by Mark Junker <mjscod@gmx.de>.
50540
50541         2006-06-17  Bruno Haible  <bruno@clisp.org>
50542
50543                 * config.charset: Update for NetBSD 3.0.
50544
50545         2006-05-17  Bruno Haible  <bruno@clisp.org>
50546
50547                 Cygwin portability.
50548                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
50549
50550         2006-05-16  Bruno Haible  <bruno@clisp.org>
50551
50552                 * localcharset.c [CYGWIN]: Include <windows.h>.
50553                 (get_charset_aliases): For Cygwin, return the same CPxxx
50554                 aliases list as under WIN32.
50555                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
50556                 the environment variables. Fall back to GetACP().
50557
50558         2006-04-05  Bruno Haible  <bruno@clisp.org>
50559
50560                 * config.charset: Update Juan Manuel Guerrero's address.
50561
50562         2005-02-12  Bruno Haible  <bruno@clisp.org>
50563
50564                 * allocsa.h: Add extern "C" for C++.
50565
50566         2005-02-10  Bruno Haible  <bruno@clisp.org>
50567
50568                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
50569                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
50570
50571         2006-07-22  Bruno Haible  <bruno@clisp.org>
50572
50573                 * gettext.h: Update to GNU gettext-0.15.
50574
50575 2006-07-22  Bruno Haible  <bruno@clisp.org>
50576
50577         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
50578         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
50579         lib-prefix.m4, longdouble.m4, ssize_t.m4.
50580
50581 2006-07-21  Eric Blake  <ebb9@byu.net>
50582
50583         * modules/stdlib-safer: New file.
50584         * MODULES.html.sh (File stream based Input/Output): Add
50585         stdlib-safer.
50586
50587 2006-07-21  Eric Blake  <ebb9@byu.net>
50588
50589         * lib/stdlib-safer.h: New file from coreutils, required by
50590         stdlib--.h.
50591
50592 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50593
50594         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50595
50596 2006-07-20  Bruno Haible  <bruno@clisp.org>
50597
50598         * gnulib-tool: Recognize new option --assume-autoconf.
50599         (autoconf_minversion): New variable.
50600         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50601
50602 2006-07-20  Bruno Haible  <bruno@clisp.org>
50603
50604         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50605
50606 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50607
50608         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50609         Reindent and repaginate.
50610
50611 2006-07-19  Derek Price  <derek@ximbiot.com>
50612
50613         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50614         Correct grammar.
50615
50616 2006-07-17  Bruno Haible  <bruno@clisp.org>
50617
50618         * modules/list: New file.
50619         * modules/array-list: New file.
50620         * modules/carray-list, modules/carray-list-tests: New files.
50621         * modules/linked-list, modules/linked-list-tests: New files.
50622         * modules/avltree-list, modules/avltree-list-tests: New files.
50623         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50624         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50625         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50626         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50627         * modules/oset: New file.
50628         * modules/array-oset: New file.
50629         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50630         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50631         * tests/test-carray_list.c: New file.
50632         * tests/test-linked_list.c: New file.
50633         * tests/test-avltree_list.c: New file.
50634         * tests/test-rbtree_list.c: New file.
50635         * tests/test-linkedhash_list.c: New file.
50636         * tests/test-avltreehash_list.c: New file.
50637         * tests/test-rbtreehash_list.c: New file.
50638         * tests/test-avltree_oset.c: New file.
50639         * tests/test-rbtree_oset.c: New file.
50640         * MODULES.html.sh (Container data structures): New section.
50641
50642 2006-07-17  Bruno Haible  <bruno@clisp.org>
50643
50644         * m4/gl_list.m4: New file.
50645
50646 2006-07-17  Bruno Haible  <bruno@clisp.org>
50647
50648         * lib/gl_list.h: New file.
50649         * lib/gl_list.c: New file.
50650         * lib/gl_array_list.h: New file.
50651         * lib/gl_array_list.c: New file.
50652         * lib/gl_carray_list.h: New file.
50653         * lib/gl_carray_list.c: New file.
50654         * lib/gl_linked_list.h: New file.
50655         * lib/gl_linked_list.c: New file.
50656         * lib/gl_anylinked_list1.h: New file.
50657         * lib/gl_anylinked_list2.h: New file.
50658         * lib/gl_avltree_list.h: New file.
50659         * lib/gl_avltree_list.c: New file.
50660         * lib/gl_anyavltree_list1.h: New file.
50661         * lib/gl_anyavltree_list2.h: New file.
50662         * lib/gl_rbtree_list.h: New file.
50663         * lib/gl_rbtree_list.c: New file.
50664         * lib/gl_anyrbtree_list1.h: New file.
50665         * lib/gl_anyrbtree_list2.h: New file.
50666         * lib/gl_anytree_list1.h: New file.
50667         * lib/gl_anytree_list2.h: New file.
50668         * lib/gl_linkedhash_list.h: New file.
50669         * lib/gl_linkedhash_list.c: New file.
50670         * lib/gl_anyhash_list1.h: New file.
50671         * lib/gl_anyhash_list2.h: New file.
50672         * lib/gl_avltreehash_list.h: New file.
50673         * lib/gl_avltreehash_list.c: New file.
50674         * lib/gl_rbtreehash_list.h: New file.
50675         * lib/gl_rbtreehash_list.c: New file.
50676         * lib/gl_anytreehash_list1.h: New file.
50677         * lib/gl_anytreehash_list2.h: New file.
50678
50679         * lib/gl_oset.h: New file.
50680         * lib/gl_oset.c: New file.
50681         * lib/gl_array_oset.h: New file.
50682         * lib/gl_array_oset.c: New file.
50683         * lib/gl_avltree_oset.h: New file.
50684         * lib/gl_avltree_oset.c: New file.
50685         * lib/gl_rbtree_oset.h: New file.
50686         * lib/gl_rbtree_oset.c: New file.
50687         * lib/gl_anytree_oset.h: New file.
50688
50689 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50690
50691         * m4/mkancesdirs.m4: New file.
50692         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50693         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50694         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50695         it.
50696
50697 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50698
50699         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50700         * lib/mkancesdirs.h: New files.
50701         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50702         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50703         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50704         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50705         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50706         callers changed.  Revamp internals significantly, by not
50707         attempting to create directories that are temporarily more
50708         permissive than the final results.  Do not attempt to use
50709         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50710         This removes some race conditions, fixes some bugs, and simplifies
50711         things.  Use new dirchownmod function to do owner and mode changes.
50712         * lib/mkdir-p.h: Likewise.
50713         * lib/modechange.c (octal_to_mode): New function.
50714         (struct mode_change): New member mentioned.
50715         (make_node_op_equals): New arg mentioned.  All callers changed.
50716         (mode_compile): Keep track of which mode bits the user has explicitly
50717         mentioned.
50718         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50719         New arg PMODE_BITS, to keep track of which mode bits the user
50720         mentioned; it treats S_ISUID and S_ISGID speciall.
50721         All callers changed.
50722         * lib/modechange.h: Likewise.
50723
50724 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50725
50726         * MODULES.html.sh: Add mkancestors.
50727         * modules/mkancesdirs: New module.
50728         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50729         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50730         The chdir-safer and afs files are now orphans; I'll remove them
50731         unless someone speaks up.
50732         Add lib/dirchownmod.c, lib/dirchownmod.h.
50733         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50734         Add lchown, mkancesdirs.
50735         (Maintainer): Add self.
50736
50737 2006-07-15  Karl Berry  <karl@gnu.org>
50738
50739         * gnulib-tool: help message wording/arrangement.
50740
50741 2006-07-14  Simon Josefsson  <jas@extundo.com>
50742
50743         * doc/gnulib.texi (Libtool and Windows): New section.
50744
50745 2006-07-12  Simon Josefsson  <jas@extundo.com>
50746
50747         * modules/gendocs (License): Fix license, approved by Karl.
50748
50749 2006-07-12  Eric Blake  <ebb9@byu.net>
50750
50751         * MODULES.html.sh: Add gendocs.
50752
50753 2006-07-11  Eric Blake  <ebb9@byu.net>
50754
50755         * modules/fdl: New module, to install doc/fdl.texi.
50756         * MODULES.html.sh: Add new section for documentation modules.
50757         * gnulib-tool: Avoid space-tab.
50758         (--doc-base): New option, to manage files from doc.
50759
50760 2006-07-11  Eric Blake  <ebb9@byu.net>
50761
50762         * m4/absolute-header.m4: Fix comments to match recent change.
50763
50764 2006-07-11  Eric Blake  <ebb9@byu.net>
50765
50766         * gnulib-tool: List --doc-base before --tests-base.
50767
50768 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50769
50770         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50771
50772 2006-07-11  Bruno Haible  <bruno@clisp.org>
50773
50774         * README: Mention where to put documentation.
50775
50776 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50777
50778         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50779
50780 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50781
50782         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50783         to stdint.m4.
50784
50785 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50786
50787         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50788         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50789         "no/such/file/stdint.h" when there is no such file, so that
50790         the resulting C code can be parsed by dodgy compilers.
50791         Problems reported by Bob Proulx.
50792
50793 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50794
50795         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50796         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50797         macros into the GNU _D_EXACT_NAMLEN.
50798         * lib/savedir.c:  Likewise.
50799         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50800
50801 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50802         and Paul Eggert  <eggert@cs.ucla.edu>
50803
50804         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50805         * m4/savedir.m4:
50806         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50807         macros into the GNU _D_EXACT_NAMLEN.
50808
50809 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50810
50811         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50812         around the absolute name, to work around a problem with the HP-UX
50813         11.23 native C compiler, reported by Bob Proulx.
50814
50815 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50816
50817         * doc/maintain.texi, make-stds.texi: Sync from
50818         <http://savannah.gnu.org/projects/gnustandards>.
50819
50820 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50821
50822         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50823
50824 2006-07-09  Jim Meyering  <jim@meyering.net>
50825
50826         * m4/glob.m4: Remove a doubled word in a comment.
50827
50828 2006-07-09  Jim Meyering  <jim@meyering.net>
50829
50830         * lib/argp-pv.c: Remove a doubled word in a comment.
50831         * lib/check-version.c (check_version): Likewise.
50832         * lib/javacomp.c (compile_java_class): Likewise.
50833
50834 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50835
50836         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
50837         for the benefit of people using Autoconf 2.60.  If you want to
50838         support older Autoconf versions you can copy m4/onceonly_2_57.m4
50839         (or m4/onceonly.m4, if pre-2.57) manually.
50840
50841 2006-07-08  Jim Meyering  <jim@meyering.net>
50842
50843         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
50844         comment.
50845         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
50846         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
50847         comment.
50848
50849 2006-07-08  Jim Meyering  <jim@meyering.net>
50850
50851         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
50852
50853 2006-07-07  Simon Josefsson  <jas@extundo.com>
50854
50855         * tests/test-crc.c: Change expected crc value, the test vector
50856         were probably computed using the old broken crc.c?
50857
50858 2006-07-06  Simon Josefsson  <jas@extundo.com>
50859
50860         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
50861         now the canonical place for the M4 file).
50862
50863         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
50864         from the sys_socket dependency now.
50865
50866         * modules/inet_pton (Files): Ditto.
50867
50868         * modules/inet_ntop (Files): Ditto.
50869
50870 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50871
50872         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
50873         not gl_PREREQ_GETUSERSHELL.
50874
50875 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50876
50877         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
50878         with only one argument, for Autoconf 2.60.
50879         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
50880         expand to nothing, so add a shell command to avoid syntax error.
50881         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50882
50883 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50884
50885         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
50886
50887 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50888
50889         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
50890         no longer needed.  Check for isblank decl.
50891         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
50892         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
50893         of existence.
50894
50895 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50896
50897         * lib/getloadavg.c: Use __VMS, not VMS.
50898         * lib/getopt.c: Likewise.
50899         * lib/getpagesize.h: Likewise.
50900         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
50901         and probably does not work.
50902
50903 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50904
50905         * lib/.cppi-disable: Add wcwidth.
50906         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
50907         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
50908         (ISGRAPH): Remove.  All uses changed to isgraph.
50909         (FOLD) [!defined _LIBC]: Remove special case.
50910         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
50911         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
50912         HAVE_ISBLANK.
50913         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
50914         case.
50915
50916 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50917
50918         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
50919         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
50920         brackets.  Other minor changes to suppress some compiler
50921         warnings.
50922
50923 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50924         and Paul Eggert  <eggert@cs.ucla.edu>
50925
50926         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
50927         of invoking obsolescent AC_HEADER_DIRENT macro.
50928         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
50929         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
50930         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
50931         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
50932         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
50933         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50934         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
50935         * m4/readdir.m4: Remove; no longer needed.
50936
50937 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50938         and Paul Eggert  <eggert@cs.ucla.edu>
50939
50940         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
50941         Don't worry about this obsolete case any more.
50942         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
50943         directories.
50944         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
50945         worry about this obsolete case any more.
50946         * lib/fts.c: Likewise.
50947         * lib/getcwd.c: Likewise.
50948         * lib/glob.h: Likewise.
50949         * lib/savedir.c: Likewise.
50950
50951 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50952
50953         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
50954         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
50955         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
50956         needed.
50957         All uses removed.
50958         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50959         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50960         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
50961         needed.
50962         * m4/getdate.m4 (gl_GETDATE): Likewise.
50963         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50964         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50965         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50966         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50967         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50968         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50969         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
50970         needed.
50971
50972 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50973
50974         * lib/memcasecmp.c: Include <limits.h>.
50975         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
50976         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
50977         Don't assume isdigit succeeds only on '0' through '9'.
50978
50979 2006-07-05  Eric Blake  <ebb9@byu.net>
50980
50981         * modules/getaddrinfo (Depends-on): Add snprintf.
50982
50983 2006-07-05  Eric Blake  <ebb9@byu.net>
50984
50985         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
50986         to avoid 'header present but could not be compiled' on cygwin.
50987
50988 2006-07-05  Eric Blake  <ebb9@byu.net>
50989
50990         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
50991         missing from netdb.h.
50992         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
50993
50994 2006-07-05  Derek R. Price  <derek@ximbiot.com>
50995
50996         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
50997         no longer needed.
50998         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
50999         * m4/getdate.m4 (gl_GETDATE): Likewise.
51000         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51001         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51002         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51003         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51004         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51005
51006 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51007
51008         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
51009         All uses of is_space replaced by isspace.
51010         * lib/exit.h: Don't talk about STDC_HEADERS.
51011         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
51012         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
51013         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
51014         replaced by isprint etc.
51015         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
51016         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51017         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
51018         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
51019         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
51020         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51021
51022 2006-07-05  Bruno Haible  <bruno@clisp.org>
51023
51024         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
51025         the function exists, before testing against AIX.
51026         Reported by Martin Lambers <marlam@marlam.de>.
51027
51028 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51029
51030         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
51031         From Mark D. Baushke.
51032
51033 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51034
51035         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
51036         to the absolute name, not just one, to bypass Sun C 5.8's
51037         "warning: #include of /usr/include/... may be non-portable".
51038
51039 2006-07-04  Eric Blake  <ebb9@byu.net>
51040
51041         * modules/dirname-tests: New test module.
51042         * tests/test-dirname.c: New file, replacing dirname.c
51043         TEST_DIRNAME section that was recently deleted.
51044
51045 2006-07-04  Bruno Haible  <bruno@clisp.org>
51046
51047         Assume ANSI C header files and <ctype.h> functions.
51048         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
51049         (mbsnwidth): Use isprint, iscntrl instead.
51050
51051 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51052
51053         Merge from coreutils.
51054         * MODULES.html.sh: Add xstrtold.
51055         * modules/xstrtold: New file.
51056         * modules/cycle-check (Files): Add lib/same-inode.h.
51057         * modules/dirname (Files): Add m4/double-slash-root.m4.
51058         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
51059         * modules/mkdir-p (Files): Add lib/same-inode.h.
51060         * modules/same (Files): Add lib/same-inode.h.
51061
51062 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51063
51064         * m4/absolute-header.m4: Renamed from full-header-path.m4.
51065         This is to keep the terminology clean; POSIX talks about
51066         "absolute pathnames", not "full pathnames", but the GNU
51067         Coding Standards say to use "path" for something else;
51068         so use "absolute" to keep both sides happy.
51069         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
51070         Set gl_absolute_header, not gl_full_header_path.
51071         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
51072         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
51073         All uses changed.
51074
51075         Merge from coreutils.
51076
51077         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51078
51079         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
51080         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
51081         want to require the building of c-strtod.o.
51082         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
51083         needs -lm directly.
51084         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
51085
51086         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51087
51088         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
51089         --as-needed option if available.  Problem reported by Albert Chin in
51090         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
51091         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
51092         cc merely issues a bunch of annoying warnings for --as-needed
51093         (this problem was reported by Bob Proulx).  Also, try linking with
51094         -lm to detect a bug in binutils 2.16 (this problem was reported
51095         by Ralf Wildenhues).
51096
51097         2006-06-18  Jim Meyering  <jim@meyering.net>
51098
51099         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
51100         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
51101         macro.
51102         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
51103         also check for glibc-2.4's abort-inducing bug.
51104
51105         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
51106         Low-probability clean-up should be to use rmdir to get rid of
51107         the just-created directory, not unlink.
51108
51109         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
51110         configure fail, and request a bug report to inform us about it.
51111         Add a comment that, barring reports to the contrary, in 2007 we'll
51112         assume ftruncate is universally available.
51113
51114         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51115
51116         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
51117
51118         2006-03-12  Jim Meyering  <jim@meyering.net>
51119
51120         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
51121         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
51122         * m4/same.m4 (gl_SAME): Likewise.
51123         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
51124
51125         2006-03-11  Eric Blake  <ebb9@byu.net>
51126
51127         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
51128         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
51129         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
51130         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
51131
51132 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51133
51134         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
51135         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
51136         reported by Mark D. Baushke, one in
51137         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
51138
51139         Merge from coreutils.
51140
51141         * lib/.cppi-disable: Add stdint_.h.
51142         * lib/.cvsignore: Add stdint.h.
51143
51144         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51145
51146         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
51147         both double and long double versions.
51148         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
51149         * lib/xstrtold.c: New file.
51150         * lib/xstrtod.h (xstrtold): New decl.
51151
51152         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51153
51154         * lib/filemode.c (setst): Remove.
51155         (strmode): Rewrite to avoid setst.  This makes the code shorter,
51156         (arguably) clearer, and the generated code is a bit smaller on my
51157         Debian GNU/Linux stable x86 host.
51158
51159         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51160
51161         * lib/filemode.c: Include "filemode.h" first, to test the interface.
51162         Assume that filemode.h includes sys/types.h and sys/stat.h.
51163         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
51164         (ftypelet): Reorder to put common cases first, for efficiency.
51165         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
51166         to do 'M'.
51167         (strmode): Renamed from mode_string, and now stores 12 bytes instead
51168         of 10, for compatibility with FreeBSD.  All callers changed.
51169         (filemodestring): Now stores 12 bytes instead of 10, and sets file
51170         types that can't be deduced solely from st_mode.  First arg is now a
51171         const pointer.
51172         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
51173         (strmode): Renamed from mode_string.
51174         (filemodestring): New decl.
51175         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
51176         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
51177         needed.
51178         (S_ISPORT, S_ISWHT): New macros, if not already defined.
51179
51180         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51181
51182         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
51183         fsusage.h now does that.  Include fsusage.h first, to test interface.
51184         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
51185         at most one method (the old code could have generated decls that
51186         didn't conform to C89, not that this was ever exercised).
51187         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
51188
51189         2006-03-19  Jim Meyering  <jim@meyering.net>
51190
51191         Work even in a chroot where d_ino values for entries in "/"
51192         don't match the stat.st_ino values for the same names.
51193         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
51194         number, iterate through all entries again, using lstat instead.
51195         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
51196         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
51197
51198         * lib/getcwd.c (__getcwd): Clarify a comment.
51199         Use memcpy in place of a call to strcpy.
51200
51201         2006-03-12  Jim Meyering  <jim@meyering.net>
51202
51203         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
51204         matches that of the current directory (which we're about to chdir ".."
51205         out of), then save the dev-ino of the parent, instead.
51206
51207         * lib/same-inode.h (SAME_INODE): New file/macro.
51208         * lib/chdir-safer.c (SAME_INODE): Remove definition.
51209         Include "same-inode.h", instead.
51210         * lib/same.c: Likewise.
51211         * lib/cycle-check.h: Include "same-inode.h".
51212         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
51213         * lib/cycle-check.c (SAME_INODE): Remove definition.
51214         * lib/root-dev-ino.h: Include "same-inode.h".
51215
51216         2006-03-11  Eric Blake  <ebb9@byu.net>
51217
51218         * lib/same.c (same_name): s/base_name/last_component/
51219         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
51220         * lib/filenamecat.c (file_name_concat): Likewise.
51221
51222         2006-03-11  Eric Blake  <ebb9@byu.net>,
51223                     Paul Eggert  <eggert@cs.ucla.edu>
51224
51225         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
51226         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
51227         drive prefix.
51228         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
51229         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
51230         (last_component): New method.
51231         * lib/dirname.c (dir_len): Determine when drive letters need a
51232         subsequent slash.  Preserve // when it is special.
51233         (dir_name): Don't append dot when drive letter is absolute.
51234         [TEST_DIRNAME]: Move into a full-blown gnulib test.
51235         * lib/basename.c (base_name): New semantics - malloc the result.
51236         Preserve // when it is special.  Preserve relative files that look
51237         like drive letters.
51238         (base_len): Preserve // when it is special.
51239         (last_component): New method, similar to old base_name semantics.
51240         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
51241         base_name.  Strip redundant slashes from ///.
51242
51243 2006-07-03  Jim Meyering  <jim@meyering.net>
51244
51245         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
51246         macro is used before the first cycle_check call.
51247
51248 2006-07-03  Eric Blake  <ebb9@byu.net>
51249
51250         * modules/dirname (Depends-on): Add xstrndup.
51251
51252 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51253
51254         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
51255         test cases, so that config.log is a bit easier to follow.
51256
51257 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51258
51259         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
51260         both are 64 bits, since this seems to be the tradition, and this
51261         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
51262         we ever run into a host that prefers long long to long in this
51263         case, we'll need another configure-time test.  Problem reported by
51264         Jim Meyering.
51265
51266 2006-07-02  Eric Blake  <ebb9@byu.net>
51267
51268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
51269
51270 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51271
51272         * modules/inttypes (Depends-on): No longer depends on stdint.
51273         * modules/stdint (Description): Say more about assumptions.
51274         Say that the fast types might differ.  Say macros are used.
51275         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
51276         (Makefile.am): Revise list of substituted symbols to match
51277         new stdint.m4.
51278         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
51279         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
51280         * tests/test-stdint.c (verify_same_types)
51281         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
51282         the code conforms to C99/C89.
51283         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
51284         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
51285
51286 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51287
51288         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
51289         but fix a bug, by requiring at least 64 bits.
51290         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51291         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
51292         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
51293         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
51294
51295         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
51296         changes.  Make 2.59 a prerequisite.  Check and substitute for
51297         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
51298         inttypes.h.  Do not use special include files; just use the
51299         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
51300         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
51301         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
51302         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
51303         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
51304         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
51305         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
51306         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
51307         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
51308         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
51309         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
51310         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
51311         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
51312         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
51313         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
51314         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
51315         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
51316         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
51317         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
51318         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
51319         WINT_MAX.  Check for C99 conformance more strictly, by detecting
51320         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
51321         not check for things that C99 does not require, e.g., int8_t.  If
51322         a test isn't needed unless <stdint.h> isn't working, and is
51323         unlikely to be needed for any other reason, then don't do it
51324         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
51325         size_t, since we assume C89 freestanding at least.  Do not check
51326         for sig_atomic_t, wchar_t, or wint_t, since the code now does
51327         the right thing even if the types are not defined.  Instead use:
51328         (gl_STDINT_TYPE_PROPERTIES): New macro.
51329         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
51330         testing whether <sys/types.h> clashes, as Autoconf does this for
51331         us now.  All uses removed.
51332         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
51333         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
51334         (gl_CHECK_TYPE_SAME):
51335         Remove; no longer needed.
51336         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
51337         exists, since we'll return 0 anyway in that case.
51338         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
51339
51340 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51341
51342         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
51343         possible collision with system files.
51344         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
51345         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
51346         WCHAR_MIN and WCHAR_MAX in this case.
51347         (<stddef.h>): Do not include; no longer needed.
51348         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
51349         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
51350         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
51351         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
51352         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
51353         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
51354         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
51355         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
51356         !defined(__c99))]: Include in this case too, since it's harmless
51357         now.
51358         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
51359         dangerous to do so.
51360         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
51361         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
51362         (_STDINT_MIN, _STDINT_MAX): New macros.
51363         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
51364         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
51365         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
51366         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
51367         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
51368         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
51369         macros, not typedefs; this simplifies things quite a bit.
51370         Use long int for all types narrower than int64_t.
51371         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
51372         Define in terms of long long int or int64_t or long int,
51373         not int64_t or int32_t.  This saves some compile-time testing.
51374         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
51375         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
51376         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
51377         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
51378         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
51379         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
51380         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
51381         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
51382         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
51383         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
51384         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51385         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51386         undef any previous version and define our own version, for
51387         simplicity and consistency with the new macros for types.
51388         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51389         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51390         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
51391         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
51392         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
51393         @WINT_T_SUFFIX@ to keep things simple here.
51394         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
51395         Simplify by assuming typical 8/16/32/64 host, since we're
51396         already doing that elsewhere anyway.
51397         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
51398         and assume long long int is 64 bits if available.  This
51399         speeds up 'configure'.
51400
51401 2006-07-01  Eric Blake  <ebb9@byu.net>
51402
51403         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
51404         Reported by Andreas Buening.
51405
51406 2006-07-01  Eric Blake  <ebb9@byu.net>
51407
51408         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
51409
51410 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51411
51412         * lib/getaddrinfo.c: fixed typo
51413
51414 2006-06-29  Jim Meyering  <jim@meyering.net>
51415
51416         * modules/strftime (Maintainer): Add my name, since with the
51417         FPRINTFTIME changes strftime.c has forked from glibc.
51418
51419 2006-06-29  Eric Blake  <ebb9@byu.net>
51420
51421         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
51422
51423 2006-06-29  Eric Blake  <ebb9@byu.net>
51424
51425         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
51426
51427 2006-06-29  Eric Blake  <ebb9@byu.net>
51428
51429         * lib/stat_.h: New file.
51430
51431 2006-06-29  Eric Blake  <ebb9@byu.net>
51432
51433         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
51434         unused static function.
51435
51436 2006-06-29  Eric Blake  <ebb9@byu.net>
51437
51438         * doc/functions.texi (Function Portability): Document missing lstat
51439         on mingw.
51440
51441 2006-06-29  Eric Blake  <ebb9@byu.net>
51442
51443         * MODULES.html.sh: Add sys_stat.
51444         * modules/sys_stat: New module.
51445         * modules/mkstemp (Depends-on): Add sys_stat.
51446
51447 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51448
51449         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
51450
51451 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51452
51453         * m4/c-bs-a.m4: Removed.
51454
51455 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51456
51457         * lib/strftime.c: Assume strftime() exists.
51458
51459 2006-06-29  Derek Price  <derek@ximbiot.com>
51460
51461         * modules/c-bs-a: Removed - \a is C89.
51462         * MODULES.html.sh: Remove c-bs-a.
51463
51464 2006-06-29  Bruno Haible  <bruno@clisp.org>
51465
51466         * modules/wcwidth (License): Change to LGPL.
51467
51468 2006-06-28  Simon Josefsson  <jas@extundo.com>
51469
51470         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
51471         on _WIN32.
51472
51473         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
51474         getnameinfo.
51475
51476 2006-06-28  Simon Josefsson  <jas@extundo.com>
51477
51478         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
51479
51480 2006-06-28  Simon Josefsson  <jas@extundo.com>
51481
51482         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
51483         functions there.  It will succeed on Windows XP, but on Windows
51484         2000 and (presumably) earlier, it will fail, and use the internal
51485         re-implementation.
51486         (use_win32_p): New function.
51487         (getaddrinfo): Use strtoul on servname, to support numeric ports.
51488         Support AI_NUMERICSERV to disable getservbyname.
51489         (getnameinfo): New function, only supports
51490         NI_NUMERICHOST|NI_NUMERICSERV for now.
51491
51492         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
51493         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
51494         getnameinfo.
51495
51496 2006-06-28  Eric Blake  <ebb9@byu.net>
51497
51498         * modules/wcwidth: New file.
51499         * modules/mbchar (Depends-on): Add wcwidth.
51500         * modules/mbswidth (Depends-on): Add wcwidth.
51501         * MODULES.html.sh: Add wcwidth.
51502
51503 2006-06-28  Eric Blake  <ebb9@byu.net>
51504
51505         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
51506         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
51507
51508 2006-06-28  Eric Blake  <ebb9@byu.net>
51509
51510         * lib/xvasprintf.h: Fix comments.
51511
51512 2006-06-28  Eric Blake  <ebb9@byu.net>
51513
51514         * lib/mbchar.h (wcwidth): Include wcwidth.h.
51515         * lib/mbswidth.c (wcwidth): Move from here...
51516         * lib/wcwidth.h: ...to this new file.
51517
51518 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51519
51520         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
51521
51522         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
51523         it's obsolete.
51524         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
51525
51526 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51527
51528         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
51529         Autoconf 2.60 says this stuff was obsolete.
51530
51531 2006-06-28  Bruno Haible  <bruno@clisp.org>
51532
51533         * modules/wcwidth (Files): Add m4/wchar_t.m4.
51534
51535 2006-06-28  Bruno Haible  <bruno@clisp.org>
51536
51537         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
51538         gt_TYPE_WCHAR_T.
51539
51540 2006-06-28  Bruno Haible  <bruno@clisp.org>
51541
51542         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
51543         declaration for wcwidth.
51544         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
51545
51546 2006-06-28  Bruno Haible  <bruno@clisp.org>
51547
51548         * lib/mkdtemp.c [MINGW]: Include <io.h>.
51549         (mkdir): Define using _mkdir.
51550
51551 2006-06-28  Bruno Haible  <bruno@clisp.org>
51552
51553         * lib/getaddrinfo.h: Fix POSIX URL.
51554         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
51555         _WIN32.
51556         (use_win32_p): Make static.
51557         (getaddrinfo): Reject service name if it is empty or does not consist
51558         solely of decimal digits, or if its value is > 65535.
51559         (getnameinfo): Remove useless casts.
51560
51561 2006-06-27  Simon Josefsson  <jas@extundo.com>
51562
51563         * modules/sys_select: New file, suggested by Bruno Haible, Paul
51564         Eggert and Martin Lambers.
51565
51566 2006-06-27  Simon Josefsson  <jas@extundo.com>
51567
51568         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
51569         Eggert and Martin Lambers.
51570
51571 2006-06-27  Bruno Haible  <bruno@clisp.org>
51572
51573         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
51574         result to 0, not to empty.
51575         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
51576
51577 2006-06-27  Bruno Haible  <bruno@clisp.org>
51578
51579         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
51580
51581 2006-06-26  Simon Josefsson  <jas@extundo.com>
51582
51583         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
51584         present.
51585
51586 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51587
51588         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51589         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51590         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51591
51592 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51593
51594         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51595
51596 2006-06-26  Bruno Haible  <bruno@clisp.org>
51597
51598         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51599
51600 2006-06-26  Bruno Haible  <bruno@clisp.org>
51601
51602         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51603
51604 2006-06-26  Bruno Haible  <bruno@clisp.org>
51605
51606         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51607         SGI C compiler in pre-C99 mode.
51608         Suggested by Mark D. Baushke and Larry Jones.
51609
51610 2006-06-26  Bruno Haible  <bruno@clisp.org>
51611
51612         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51613         WCHAR_MAX.
51614         Reported by Mark D. Baushke and Larry Jones.
51615
51616 2006-06-26  Bruno Haible  <bruno@clisp.org>
51617
51618         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51619         in pre-C99 mode.
51620         Suggested by Mark D. Baushke and Larry Jones.
51621
51622 2006-06-23  Simon Josefsson  <jas@extundo.com>
51623             Bruno Haible  <bruno@clisp.org>
51624
51625         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51626         Emit mostlyclean-local rule.
51627         (func_emit_tests_Makefile_am): Likewise.
51628         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51629
51630 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51631
51632         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51633
51634 2006-06-23  Bruno Haible  <bruno@clisp.org>
51635
51636         * tests/test-stdint.c: Update to match ISO C 99 Technical
51637         Corrigendum 1.
51638
51639 2006-06-23  Bruno Haible  <bruno@clisp.org>
51640
51641         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51642
51643 2006-06-23  Bruno Haible  <bruno@clisp.org>
51644
51645         * lib/stdint_.h: Treat IRIX like OpenBSD.
51646
51647 2006-06-23  Bruno Haible  <bruno@clisp.org>
51648
51649         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51650         ISO C 99 Technical Corrigendum 1.
51651
51652 2006-06-22  Simon Josefsson  <jas@extundo.com>
51653
51654         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51655         MinGW.
51656
51657 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51658
51659         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51660         needed.  Some compiler complained about some of them.  Problem reported
51661         by Larry Jones in
51662         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51663
51664 2006-06-21  Simon Josefsson  <jas@extundo.com>
51665
51666         * tests/test-getaddrinfo.c: New file.
51667
51668         * modules/getaddrinfo-tests: New file.
51669
51670         * MODULES.html.sh: Add inet_pton.
51671
51672         * modules/inet_pton: New file.
51673
51674 2006-06-21  Simon Josefsson  <jas@extundo.com>
51675
51676         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51677         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51678         of using the (limited) gnulib implementation on Windows XP.
51679
51680         * m4/inet_pton.m4: New file.
51681
51682 2006-06-21  Simon Josefsson  <jas@extundo.com>
51683
51684         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51685         variable.
51686
51687         * lib/socket_.h: Don't define WINVER.
51688
51689         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51690         slightly modified to work in gnulib.
51691
51692 2006-06-21  Simon Josefsson  <jas@extundo.com>
51693
51694         * doc/gnulib.texi (Windows sockets): Add.
51695
51696 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51697
51698         * lib/read-file.c (fread_file): Start with buffer allocation of
51699         0 bytes rather than 1 byte; this simplifies the code.
51700         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51701         code to free buffer and save/restore errno.
51702         (internal_read_file): Remove unused local.
51703
51704 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51705
51706         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51707         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51708         Problem reported by Denis Excoffier in
51709         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51710
51711 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51712
51713         * modules/sys_socket, modules/socklen: Include sys/types since
51714         FreeBSD 4.x's sys/socket.h needs it.
51715
51716 2006-06-19  Simon Josefsson  <jas@extundo.com>
51717
51718         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51719
51720 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51721
51722         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51723
51724 2006-06-19  Bruno Haible  <bruno@clisp.org>
51725
51726         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51727         and FULL_PATH_INTTYPES_H in angle brackets.
51728         Reported by Mark D. Baushke <mdb@gnu.org>.
51729
51730 2006-06-17  Eric Blake  <ebb9@byu.net>
51731
51732         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51733         errno.
51734
51735 2006-06-17  Bruno Haible  <bruno@clisp.org>
51736
51737         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51738         <sys/inttypes.h>.
51739
51740 2006-06-17  Bruno Haible  <bruno@clisp.org>
51741
51742         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51743         whether errno is declared. Assume <errno.h> declares errno.
51744
51745 2006-06-17  Bruno Haible  <bruno@clisp.org>
51746
51747         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51748
51749 2006-06-17  Bruno Haible  <bruno@clisp.org>
51750
51751         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51752         problem on Solaris 2.5.1.
51753
51754 2006-06-16  Eric Blake  <ebb9@byu.net>
51755
51756         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51757         * lib/unicodeio.c [!defined errno]: Likewise.
51758         * lib/strtol.c [!defined errno]: Likewise.
51759         * lib/strtod.c [!defined errno]: Likewise.
51760
51761 2006-06-15  Eric Blake  <ebb9@byu.net>
51762
51763         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51764
51765 2006-06-15  Eric Blake  <ebb9@byu.net>
51766
51767         * config/srclist.txt (ssize_t.m4): Lose sync.
51768
51769 2006-06-15  Bruno Haible  <bruno@clisp.org>
51770
51771         * modules/stdint (Files): Include m4/full-header-path.m4,
51772         m4/size_max.m4, m4/wchar_t.m4.
51773         (Makefile.am): Many more substitutions.
51774         * modules/stdint-tests: New file.
51775         * tests/test-stdint.c: New file.
51776
51777 2006-06-15  Bruno Haible  <bruno@clisp.org>
51778
51779         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51780         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51781         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51782         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51783         gl_CHECK_TYPE_SAME): New macros.
51784
51785 2006-06-15  Bruno Haible  <bruno@clisp.org>
51786
51787         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51788
51789 2006-06-15  Bruno Haible  <bruno@clisp.org>
51790
51791         * lib/stdint_.h: Rewritten to be fully auto-configured.
51792         Fixes bug on HP-UX/IA64.
51793
51794 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51795
51796         * lib/getdate.y (__attribute__): Don't define if already defined.
51797         Problem reported by Larry Jones.
51798         * lib/utimens.c (__attribute__): Likewise.
51799
51800 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51801
51802         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51803         reported by Andreas Schwab.
51804
51805 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51806             Bruno Haible  <bruno@clisp.org>
51807
51808         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51809         check for the declaration of strnlen and a run test that exposes the
51810         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51811         rpl_strndup.
51812
51813 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51814             Bruno Haible  <bruno@clisp.org>
51815
51816         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51817
51818 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51819
51820         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51821         compile test, for Tru64 4.0D.
51822
51823 2006-05-28  Karl Berry  <karl@gnu.org>
51824
51825         * config/srclist.txt (printf-args.c): lose sync.
51826
51827 2006-05-26  Martin Lambers  <marlam@marlam.de>
51828
51829         * lib/getpass.c: Updates the test for the native W32 API, and adds
51830         missing includes, thus fixing compilation warnings.
51831
51832 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51833
51834         * lib/exclude.c (exclude_fnmatch): New function.
51835         (excluded_file_name): Call exclude_fnmatch.
51836         * lib/exclude.h (excluded_file_name): New prototype
51837
51838 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
51839
51840         * lib/tempname.c (small_open, large_open): New macros.
51841         (__open, __open64) [!_LIBC]: Remove.
51842         (__gen_tempname): Use small_open and large_open instead of __open
51843         and __open64.  This fixes a portability bug on HP-UX 11.11i
51844         reported by Simon Wing-Tang in
51845         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
51846
51847 2006-05-24  Bruno Haible  <bruno@clisp.org>
51848
51849         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
51850         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
51851         Reported by Thorsten Maerz <torte@netztorte.de> via
51852         Aaron Stone <aaron@serendipity.cx>.
51853
51854 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51855
51856         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
51857         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
51858         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
51859         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
51860         not really conditional on the cache.
51861         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
51862
51863 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51864
51865         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
51866         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
51867         (my_usleep): Don't mishandle maximum value.
51868
51869 2006-05-19  Jim Meyering  <jim@meyering.net>
51870
51871         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
51872
51873 2006-05-17  Bruno Haible  <bruno@clisp.org>
51874
51875         Cygwin portability.
51876         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
51877
51878 2006-05-17  Bruno Haible  <bruno@clisp.org>
51879
51880         * lib/stdint_.h: Fix recognition of Cygwin.
51881
51882 2006-05-15  Bruno Haible  <bruno@clisp.org>
51883
51884         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
51885         on libtool patch by Ralf Wildenhues.
51886
51887 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51888
51889         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
51890         test for C99 conformance; (bool) 0.5 is an integer constant
51891         expression, but (bool) -0.5 is not.  Problem reported by Fedor
51892         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
51893
51894 2006-05-11  Simon Josefsson  <jas@extundo.com>
51895
51896         * m4/xvasprintf.m4: Fix obvious typo.
51897
51898 2006-05-11  Jim Meyering  <jim@meyering.net>
51899
51900         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
51901         James Lemley.
51902
51903 2006-05-10  Simon Josefsson  <jas@extundo.com>
51904
51905         * lib/md4.c: Typo fix, update copyright years.
51906         (K1, K2): Don't use L because it turn computations into 64-bit on
51907         64-bit platforms.
51908
51909 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
51910
51911         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
51912         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
51913         unwanted sign propagation, e.g., on hosts with 64-bit int.
51914         There still are some problems with reeelly weird theoretical hosts
51915         (e.g., 33-bit int) but it's not worth worrying about now.
51916         * lib/sha1.c (rol): Likewise.
51917         (K1, K2, K3, K4): Remove unnecessary L suffix.
51918
51919 2006-05-10  Bruno Haible  <bruno@clisp.org>
51920
51921         * lib/des.c: Cast to avoid warnings.
51922
51923 2006-05-09  Bruno Haible  <bruno@clisp.org>
51924
51925         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
51926         (Depends-on): Depend also on xsize, stdarg.
51927         (configure.ac): Add gl_XVASPRINTF.
51928
51929 2006-05-09  Bruno Haible  <bruno@clisp.org>
51930
51931         * m4/xvasprintf.m4: New file.
51932
51933 2006-05-09  Bruno Haible  <bruno@clisp.org>
51934
51935         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
51936         (EOVERFLOW): Define fallback value.
51937         (xstrcat): New function.
51938         (xvasprintf): Recognize the special case of a string concatenation.
51939
51940 2006-05-08  Eric Blake  <ebb9@byu.net>
51941
51942         * gnulib-tool (func_version): Base copyright year on CVS date.
51943         (func_emit_copyright_notice): New function.
51944         (func_emit_lib_Makefile_am): Use it.
51945         (func_emit_tests_Makefile_am): Likewise.
51946         (func_import): Likewise.
51947
51948 2006-05-08  Bruno Haible  <bruno@clisp.org>
51949
51950         * modules/stdarg: New file.
51951         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
51952
51953 2006-05-08  Bruno Haible  <bruno@clisp.org>
51954
51955         * m4/stdarg.m4: New file, from GNU gettext.
51956
51957 2006-05-08  Bruno Haible  <bruno@clisp.org>
51958
51959         * config/srclist.txt (build-aux/config.rpath): different from latest
51960         release.
51961
51962 2006-05-08  Bruno Haible  <bruno@clisp.org>
51963
51964         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
51965
51966 2006-05-05  Jim Meyering  <jim@meyering.net>
51967
51968         * m4/warning.m4: New file, derived from bison's file by the same name.
51969
51970 2006-05-03  Bruno Haible  <bruno@clisp.org>
51971
51972         * lib/stdint_.h: Shorter URL.
51973         * lib/inttypes.h: Likewise.
51974
51975 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51976
51977         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
51978
51979 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51980
51981         * lib/verify.h: Document the internals better.  Most of this change
51982         was written by Bruno Haible.
51983
51984 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51985
51986         * doc/verify.texi: New file, partly based on a proposal by
51987         Bruno Haible.
51988
51989 2006-05-02  Bruno Haible  <bruno@clisp.org>
51990
51991         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
51992         test from here...
51993         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
51994
51995 2006-04-29  Bruno Haible  <bruno@clisp.org>
51996
51997         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
51998         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
51999
52000 2006-04-29  Bruno Haible  <bruno@clisp.org>
52001
52002         * gnulib-tool: Make --update option actually work.
52003
52004 2006-04-29  Bruno Haible  <bruno@clisp.org>
52005
52006         * doc/gcd.texi: New file.
52007         * doc/gnulib.texi: Include it.
52008
52009 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52010
52011         * lib/getdate.y (get_date): When adding relative date, start with the
52012         initial time, not with the result of the first mktime call.
52013
52014 2006-04-25  Bruno Haible  <bruno@clisp.org>
52015
52016         * gnulib-tool (func_import): Output the include directives in three
52017         blocks, sorted separately.
52018         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52019
52020 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52021
52022         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
52023         to define main with arguments, for C++.  Reported by Eric Blake.
52024         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52025         Prefer 'int main ()' to 'int main (void)', for C++.
52026         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
52027         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
52028         for 'main', for C99 and C++.
52029
52030 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52031
52032         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
52033         Don't assume that exit status -1 is valid.
52034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52035         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52036         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
52037         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
52038         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
52039         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
52040         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
52041         functions can be used without declaring them, or that you can
52042         exit with status -1.
52043         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
52044
52045 2006-04-24  Karl Berry  <karl@gnu.org>
52046
52047         * config/srclist.txt (longdouble.m4): sync lost.
52048
52049 2006-04-24  Eric Blake  <ebb9@byu.net>
52050
52051         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
52052
52053 2006-04-24  Bruno Haible  <bruno@clisp.org>
52054
52055         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
52056         poll() implementation in AIX.
52057         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52058
52059 2006-04-24  Bruno Haible  <bruno@clisp.org>
52060
52061         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
52062         assigned exactly once.
52063
52064 2006-04-23  Claudio Fontana  <claudio@gnu.org>
52065             Bruno Haible  <bruno@clisp.org>
52066
52067         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
52068         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
52069         for AM_CPPFLAGS.
52070
52071 2006-04-23  Bruno Haible  <bruno@clisp.org>
52072
52073         * modules/copy-file: Depend on unistd.
52074         * modules/execute: Likewise.
52075         * modules/fatal-signal: Likewise.
52076         * modules/findprog: Likewise.
52077         * modules/mkdtemp : Likewise.
52078         * modules/pipe: Likewise.
52079         * modules/wait-process: Likewise.
52080
52081 2006-04-23  Bruno Haible  <bruno@clisp.org>
52082
52083         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
52084         condition was already detected.
52085         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52086
52087 2006-04-23  Bruno Haible  <bruno@clisp.org>
52088
52089         * lib/copy-file.c: Include <unistd.h> unconditionally.
52090         * lib/execute.c: Likewise.
52091         * lib/fatal-signal.c: Likewise.
52092         * lib/findprog.c: Likewise.
52093         * lib/mkdtemp.c: Likewise.
52094         * lib/pipe.h: Likewise.
52095         * lib/pipe.c: Likewise.
52096         * lib/wait-process.h: Likewise.
52097
52098 2006-04-23  Bruno Haible  <bruno@clisp.org>
52099
52100         * gnulib-tool (func_usage): Fix --import description. Document
52101         --update.
52102         (func_import): Create temporary file in a temporary directory, if
52103         --dry-run is specified. Silence errors from 'grep' when there are no
52104         m4 files in $m4dir.
52105         (func_create_testdir): Silence errors from 'grep' when there are no
52106         m4 files in $m4dir.
52107         Reported by Karl Berry <karl@freefriends.org>.
52108
52109 2006-04-20  Bruno Haible  <bruno@clisp.org>
52110
52111         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
52112         one argument, so that the code will be portable to Autoconf 2.60.
52113         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
52114         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52115         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
52116
52117 2006-04-19  Derek Price  <derek@ximbiot.com>
52118             Eric Blake  <ebb9@byu.net>
52119
52120         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
52121         rather than "/full/path.h".  Update comment to match.  Shorten &
52122         generalize m4_translit call via AS_TR_CPP.
52123
52124 2006-04-19  Derek Price  <derek@ximbiot.com>
52125             Eric Blake  <ebb9@byu.net>
52126
52127         * lib/inttypes.h: Correct grammar in comment.
52128
52129 2006-04-18  Derek Price  <derek@ximbiot.com>
52130             Paul Eggert  <eggert@cs.ucla.edu>
52131
52132         * modules/inttypes: New file.
52133         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
52134
52135 2006-04-18  Derek Price  <derek@ximbiot.com>
52136             Paul Eggert  <eggert@cs.ucla.edu>
52137
52138         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
52139         New files.
52140
52141 2006-04-18  Derek Price  <derek@ximbiot.com>
52142             Paul Eggert  <eggert@cs.ucla.edu>
52143
52144         * lib/inttypes.h: New file.
52145         * lib/strtoimax.c: Assume <inttypes.h>.
52146
52147 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
52148
52149         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
52150         isn't mounted.  Problem reported by Kir Kolyshkin.
52151
52152 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52153
52154         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
52155         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
52156         Derek R. Price.
52157         * lib/regex.h (RE_DUP_MAX): Update comment to match current
52158         implementation.
52159
52160 2006-04-12  Eric Blake  <ebb9@byu.net>
52161
52162         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
52163         is now done automatically by the corresponding Autoconf macro.
52164
52165 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
52166
52167         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
52168         time_r.h.
52169
52170 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52171
52172         Merge regex changes from libc, removing some of our
52173         POSIX-conformance changes that were rejected and redoing them in a
52174         less-intrusive way.
52175
52176         * lib/regcomp.c (re_compile_internal, init_dfa):
52177         Length arg is now size_t, not Idx.  All uses changed.
52178         (peek_token): Forward decl now says internal_function.
52179         (__re_error_msgid, __re_error_msgid_idx):
52180         Now static rather than extern with attribute_hidden.
52181         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
52182         For some reason libc prefers K&R style defns for external functions.
52183         (regerror) [!defined _LIBC]: Likewise.
52184         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
52185         (seek_collating_symbol_entry, lookup_collation_sequence_value):
52186         (build_range_exp, build_collating_symbol):
52187         Use K&R-style defn.
52188         (re_compile_fastmap): Use '\0' to memset, not 0.
52189         (utf8_sb_map): Make the calculations more obvious.
52190         (init_dfa, parse_bracket_exp, build_charclass_op):
52191         Call calloc and cast result, as glibc does.
52192         (init_word_char, fetch_token, peek_token, peek_token_bracket):
52193         (build_range_exp, build_collating_symbol):
52194         Now internal functions.
52195
52196         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
52197
52198         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
52199         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
52200         Don't depend on VMS; depend on __VMS instead, for POSIX
52201         namespace cleanness.
52202         (regoff_t): Define to ssize_t, not long int.
52203
52204         Remove the REG_ macros named below.  Instead, make the old names
52205         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
52206         __USE_GNU_REGEX.
52207         (REG_BACKSLASH_ESCAPE_IN_LISTS):
52208         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
52209         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
52210         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
52211         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
52212         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
52213         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
52214         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
52215         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
52216         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
52217         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
52218         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
52219         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
52220         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
52221         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
52222         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
52223         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
52224         (REG_NREGS):
52225         Remove.  All uses replaced by the old RE_* names.
52226         (RE_BACKSLASH_ESCAPE_IN_LISTS):
52227         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
52228         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
52229         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
52230         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
52231         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
52232         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
52233         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
52234         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
52235         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
52236         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
52237         Don't bother having these macros be independent of each others'
52238         values, since they no longer exist in the POSIX name space.
52239
52240         Rename the following member names back to their old names,
52241         unless !__USE_GNU_REGEX.  All uses changed back.
52242         (buffer): Renamed from re_buffer.
52243         (allocated): Renamed from re_allocated.
52244         (used): Renamed from re_used.
52245         (syntax): Renamed from re_syntax.
52246         (fastmap): Renamed from re_fastmap.
52247         (translate): Renamed from re_translate.
52248         (can_be_null): Renamed from re_can_be_null.
52249         (regs_allocated): Renamed from re_regs_allocated.
52250         (fastmap_accurate): Renamed from re_fastmap_accurate.
52251         (no_sub): Renamed from re_no_sub.
52252         (not_bol): Renamed from re_not_bol.
52253         (not_eol): Renamed from re_not_eol.
52254         (newline_anchor): Renamed from re_newline_anchor.
52255         (num_regs): Renamed from rm_num_regs.
52256         (start): Renamed from rm_start.
52257         (end): Renamed from rm_end.
52258
52259         (free_state): Move up a bit.
52260
52261         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
52262         #define to be empty.
52263         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
52264         when that is what is intended.
52265         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
52266         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
52267         (MAX): New macro.
52268         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
52269         All uses changed back to re_malloc, etc.  It's now the caller's
52270         responsibility to check for overflow; all callers changed.
52271         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
52272         (re_x2nrealloc): Remove.
52273         (free_state): Remove decl.
52274
52275         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
52276         (re_set_registers, re_exec):
52277         Use K&R-style defn.
52278
52279         2006-01-31  Roland McGrath  <roland@redhat.com>
52280
52281         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
52282         Reported by Mike Frysinger <vapier@gentoo.org>.
52283
52284         2006-01-15  Andreas Jaeger  <aj@suse.de>
52285
52286         [BZ #1950]
52287         * lib/regex_internal.c (re_string_reconstruct): Adjust for
52288         build_wcs_upper_buffer change.
52289         (build_wcs_upper_buffer): Change return type.
52290
52291         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
52292
52293         * lib/regex_internal.h: Include <stdint.h> if available.
52294
52295         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
52296
52297         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
52298
52299         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52300
52301         * lib/regcomp.c: Adjust for changed secondary hash function.
52302
52303         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
52304
52305         * lib/regex.h: Pretty printing.
52306         Clean up namespace a bit.
52307
52308         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
52309
52310         * lib/regexec.c (update_cur_sifted_state, check_arrival,
52311         check_arrival_add_next_nodes): Avoid using uninitialized variable.
52312
52313         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52314                     Ulrich Drepper  <drepper@redhat.com>
52315
52316         [BZ #1302]
52317         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
52318         changed.
52319         (bitset_word_t): Renamed from bitset_word.  All uses changed.
52320
52321         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
52322
52323         [BZ #281]
52324         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
52325         * lib/regcomp.c: Remove unnecessary uses of
52326         unsigned RE_TRANSLATE_TYPE.
52327         * lib/regex_internal.h: Likewise.
52328         * lib/regex_internal.c: Likewise.
52329         * lib/regexec.c: Likewise.
52330         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
52331
52332         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
52333
52334         * lib/regexec.c (find_recover_state): Remove unnecessary
52335         initialization.
52336         (transit_state_bkref): Make DFA a const pointer.
52337         (get_subexp): Likewise.
52338         (check_arrival): Likewise.
52339         (update_cur_sifted_state): Likewise.
52340         (re_search_internal): Likewise.
52341         (prune_impossible_nodes): Likewise.
52342         (acquire_init_state_context): Likewise.
52343         (proceed_next_node): Likewise.
52344         (set_regs): Likewise.
52345         (free_fail_stack_return): Likewise.
52346         (check_arrival_expand_ecl): Mark DFA parameter as const.
52347         (check_arrival_expand_ecl_sub): Likewise.
52348         (check_subexp_limits): Likewise.
52349         (sub_epsilon_src_nodes):  Likewise.
52350         (add_epsilon_src_nodes):  Likewise.
52351         (merge_state_array): Likewise.
52352         (update_regs): Likewise.
52353         (build_trtable): Likewise.
52354         (sift_states_backward): Mark MCTX parameter as const.
52355         (build_sifted_states): Likewise.
52356         (update_cur_sifted_state): Likewise.
52357         (sift_states_mkref): Likewise.
52358         (check_arrival_expand_ecl): Mark eclosure as const.
52359         (check_dst_limits_calc_pos_1): Likewise.
52360         * lib/regex_internal.h (re_match_context_t): Make dfa a const
52361         pointer.
52362
52363         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
52364
52365         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
52366         (transit_state_sb): Likewise.
52367         (transit_state_mb): Likewise.
52368         (sift_states_iter_mb): Likewise.
52369         (check_arrival_add_next_nodes): Likewise.
52370         (check_node_accept_bytes): Change first parameter to pointer-to-const.
52371         [_LIBC] (re_search_2_stub): Use mempcpy.
52372
52373         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
52374         mbrtowc for very simple UTF-8 case.
52375
52376         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
52377         a pointer-to-const.
52378         (re_acquire_state_context): Likewise.
52379         * lib/regex_internal.h: Adjust prototypes.
52380
52381         * lib/regex.c: Prevent using C++ compilers.
52382
52383         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
52384         (re_acquire_state_context): Likewise.
52385
52386 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52387
52388         * modules/regex (Depends-on): Add ssize_t.
52389
52390 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52391
52392         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
52393         translation table.
52394
52395 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52396
52397         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
52398
52399 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
52400             Bruno Haible  <bruno@clisp.org>
52401
52402         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
52403         <sys/types.h> and <inttypes.h>.
52404
52405 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52406
52407         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
52408         `__error_t_defined', so argp.h will not typedef the former.
52409
52410 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
52411
52412         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
52413         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
52414         glibc names.  Even if glibc is changed to conform to POSIX, the
52415         traditional names will be available anyway, since regex depends on
52416         the extensions module.  Also, fix a longstanding typo in the
52417         implementation of Spencer ERE test #75 from grep 2.3.  Problems
52418         reported by Emanuele Giaquinta.  Also, change sense of cached
52419         variable, so that the message makes sense.
52420
52421 2006-03-24  Simon Josefsson  <jas@extundo.com>
52422
52423         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
52424         including some doc fixes.
52425         (base64_encode_alloc): Fix +1 bug on allocation failures.
52426
52427 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52428
52429         * lib/base64.c (base64_encode): Do not read past end of array with
52430         unsanitized input on systems with CHAR_BIT > 8.
52431
52432 2006-03-24  Eric Blake  <ebb9@byu.net>
52433
52434         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
52435
52436 2006-03-22  Karl Berry  <karl@gnu.org>
52437
52438         * config/srclist.txt (*setenv.[ch]): get from coreutils.
52439         * config/srclistvars.sh (COREUTILS): new var.
52440
52441 2006-03-17  Jim Meyering  <jim@meyering.net>
52442
52443         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
52444         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
52445
52446 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52447
52448         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
52449         no longer needs it.  Instead, check that regoff_t is as least
52450         as wide as ptrdiff_t.
52451
52452         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
52453         so that our regex.h stays compatible with the installed regex.
52454         This is helpful for installers who configure --without-included-regex.
52455         Problem reported by Emanuele Giaquinta.
52456
52457 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52458
52459         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
52460         Typedef to long int, not to off_, as POSIX will likely change
52461         in that direction.
52462
52463 2006-03-15  Eric Blake  <ebb9@byu.net>
52464
52465         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
52466
52467 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52468
52469         * lib/argp-help.c (validate_uparams): Fix typo
52470         * lib/argp-parse.c (argp_default_options): Consistently begin help
52471         messages with a lowercase letter.
52472
52473 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
52474
52475         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
52476         overrun buffers and shouldn't be used (much as gets shouldn't be
52477         used).
52478         * lib/time_r.c (asctime_r, ctime_r): Likewise.
52479
52480 2006-03-08  Simon Josefsson  <jas@extundo.com>
52481
52482         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
52483         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52484
52485 2006-03-08  Simon Josefsson  <jas@extundo.com>
52486
52487         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
52488         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52489
52490 2006-03-08  Simon Josefsson  <jas@extundo.com>
52491
52492         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
52493         signal that configure disabled the device.
52494
52495 2006-03-08  Simon Josefsson  <jas@extundo.com>
52496
52497         * build-aux/maint.mk: Fix refresh-po, to handle no translated
52498         languages.
52499
52500 2006-03-07  Simon Josefsson  <jas@extundo.com>
52501
52502         * modules/getopt (Depends-on): Add unistd.
52503
52504         * modules/unistd: New file.
52505
52506 2006-03-07  Simon Josefsson  <jas@extundo.com>
52507
52508         * modules/gc-random: New file.
52509
52510 2006-03-07  Simon Josefsson  <jas@extundo.com>
52511
52512         * m4/unistd_h.m4: New file.
52513
52514 2006-03-07  Simon Josefsson  <jas@extundo.com>
52515
52516         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
52517         test to be side-effect free by storing the result in the cache
52518         variable gl_cv_lib_readline, and moving the assignment of
52519         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
52520         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52521
52522 2006-03-07  Simon Josefsson  <jas@extundo.com>
52523
52524         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
52525         error on missing devices (the functions will return an error).
52526
52527         * m4/gc.m4: Move random stuff to gc-random.m4
52528
52529 2006-03-07  Simon Josefsson  <jas@extundo.com>
52530
52531         * lib/unistd_.h: New file.
52532
52533 2006-03-07  Simon Josefsson  <jas@extundo.com>
52534
52535         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
52536
52537 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52538
52539         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
52540         Problem reported by Juan Manuel Guerrero.
52541
52542 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52543
52544         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
52545         the unistd module.
52546         * lib/getlogin_r.c: Likewise.
52547         * lib/getlogin_r.h: Likewise.
52548         * lib/glob.c: Likewise.
52549         * lib/pagealign_alloc.c: Likewise.
52550         * lib/unistd_.h: Remove; no longer needed.
52551
52552 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52553
52554         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52555         Add unistd.
52556         * modules/c-stack (Depends-on): Add unistd.
52557         * modules/getlogin_r: Likewise.
52558         * modules/glob: Likewise.
52559         * modules/pagealign_alloc: Likewise.
52560         * modules/unistd (Files): Remove lib/unistd_.h.
52561         (EXTRA_DIST): Remove.
52562         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
52563         need unistd_.h.
52564         (MOSTLYCLEANFILES): Remove unistd.h-t.
52565
52566 2006-03-03  Simon Josefsson  <jas@extundo.com>
52567
52568         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
52569
52570 2006-03-03  Simon Josefsson  <jas@extundo.com>
52571
52572         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
52573         libidn and bison.
52574
52575 2006-03-03  Simon Josefsson  <jas@extundo.com>
52576
52577         * build-aux/maint.mk: Add indent target.
52578
52579 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
52580
52581         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
52582         our replacement poll.h in any case, to avoid a differing
52583         declaration from a system header.  Seen on AIX.
52584
52585 2006-03-01  Simon Josefsson  <jas@extundo.com>
52586
52587         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52588         <kasal@ucw.cz>.
52589
52590 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52591
52592         * modules/gettime (Depends-on): Add extensions module.
52593         * modules/nanosleep (Depends-on): Likewise.
52594         * modules/settime (Depends-on): Likewise.
52595
52596 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52597
52598         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52599         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52600         pedantically.
52601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52602         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52603
52604         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52605         not "==".  Reported by Ralf Wildenhues.
52606
52607 2006-03-01  Karl Berry  <karl@gnu.org>
52608
52609         * doc/Copyright/request-*: new files, synced from gnuorg.
52610
52611 2006-03-01  Karl Berry  <karl@gnu.org>
52612
52613         * config/srclist.txt (Copyright/*): new entries.
52614
52615 2006-02-28  Simon Josefsson  <jas@extundo.com>
52616
52617         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52618
52619 2006-02-27  Simon Josefsson  <jas@extundo.com>
52620
52621         * lib/base64.h: Indent #define's.  From Jim Meyering
52622         <jim@meyering.net>.
52623
52624 2006-02-27  Jim Meyering  <jim@meyering.net>
52625
52626         Revert the change of 2006-02-24, so these files can continue
52627         to be sync'd from gettext.
52628         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52629         of `config.h'.
52630
52631 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52632
52633         * modules/intprops: New file.
52634         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52635         Add intprops.
52636         * modules/getloadavg (Files): Remove lib/intprops.h.
52637         (Depends-on): Add intprops.
52638         * modules/human: Likewise.
52639         * modules/inttostr: Likewise.
52640         * modules/openat: Likewise.
52641         * modules/sig2str: Likewise.
52642         * modules/userspec: Likewise.
52643         * modules/utimecmp: Likewise.
52644         * modules/xnanosleep: Likewise.
52645         * modules/xstrtol: Likewise.
52646
52647 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52648
52649         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52650         * modules/lock-tests (TESTS): Use $(EXEEXT).
52651         * modules/tls-tests: Likewise.
52652         * modules/argp-tests: Likewise.
52653         (check_PROGRAMS): New var, replacing...
52654         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52655
52656 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52657
52658         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52659         `config.h'.
52660
52661 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52662
52663         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52664
52665 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52666
52667         Sync from coreutils.
52668         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52669         gl_CHDIR_SAFER.
52670
52671 2006-02-22  Jim Meyering  <jim@meyering.net>
52672
52673         Sync from coreutils.
52674         * m4/chdir-safer.m4: New file.
52675
52676 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52677
52678         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52679         AT_FDCWD exceeds INT_MAX.
52680         * lib/openat.h (AT_FDCWD): Likewise.
52681
52682 2006-02-17  Eric Blake  <address@hidden>
52683
52684         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52685
52686 2006-02-16  Simon Josefsson  <jas@extundo.com>
52687
52688         * modules/getaddrinfo (Depends-on): Add sys_socket.
52689
52690 2006-02-15  Simon Josefsson  <jas@extundo.com>
52691
52692         * build-aux/maint.mk: Add dsyntax-check rule.
52693
52694 2006-02-15  Eric Blake  <ebb9@byu.net>
52695
52696         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52697         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52698         'present but cannot compile' warnings on cygwin.
52699         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52700         use ws2tcpip.h if sys/socket.h works.
52701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52702         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52703
52704 2006-02-14  Simon Josefsson  <jas@extundo.com>
52705
52706         * modules/maintainer-makefile (Files): Rename.
52707
52708         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52709         and (the local) Makefile.cfg to maint-cfg.mk.
52710
52711         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52712         to the latter.
52713
52714         * modules/maintainer-makefile: New module.
52715
52716         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52717         severaly stripped to make it possible to build it up from scratch
52718         with reliable tests.
52719
52720         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52721         fixes to permit overriding the default actions when configure and
52722         makefile are not available.
52723
52724 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52725
52726         Sync from coreutils.
52727         * modules/lstat (Depends-on): Don't depend on xalloc.
52728         (License): Change from GPL to LGPL, since this is now simply a
52729         replacement for a libc function.
52730
52731 2006-02-14  Jim Meyering  <jim@meyering.net>
52732
52733         Sync from coreutils.
52734
52735         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52736         failure on deficient systems, and simplify gnulib lgpl dependencies.
52737         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52738         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52739
52740         * lib/xalloc-die.c: Remove unused definition of N_.
52741
52742 2006-02-14  Jim Meyering  <jim@meyering.net>
52743
52744         Sync from coreutils.
52745         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52746         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52747         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52748         double-quote uses of that variable, to accommodate the rare case in
52749         which getmntent is available in none of the libraries checked.  This
52750         happens at least on FreeBSD 5.0.
52751
52752 2006-02-13  Simon Josefsson  <jas@extundo.com>
52753
52754         * gnulib-tool (Usage): Fix --import, from
52755         karl@freefriends.org (Karl Berry).
52756
52757 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52758
52759         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52760
52761 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52762
52763         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52764         "autoupdate" on 2005-12-12.
52765
52766 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52767
52768         * modules/closeout (Depends-on): Remove atexit.
52769
52770 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52771
52772         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52773         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52774
52775 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52776
52777         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52778         __EXTENSIONS__ if this causes compilation to fail.  Problem
52779         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52780         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52781
52782 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52783
52784         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52785         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52786         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52787         All uses changed.
52788
52789 2006-01-26  Simon Josefsson  <jas@extundo.com>
52790
52791         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52792         prototype is visible on mingw32.
52793
52794         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52795         for mingw32.
52796
52797         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52798         mingw32).
52799
52800 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52801
52802         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52803         attempt to open for write; this always fails, at least on POSIX
52804         hosts.  This reinstates the 2006-01-09 change, which was
52805         inadvertently removed.
52806
52807 2006-01-26  Bruno Haible  <bruno@clisp.org>
52808
52809         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52810         Reported by Paul Eggert.
52811
52812 2006-01-26  Bruno Haible  <bruno@clisp.org>
52813             Paul Eggert  <eggert@cs.ucla.edu>
52814
52815         * lib/stdbool_.h (_Bool)
52816         [(! (defined __cplusplus || defined __BEOS__)
52817           && !defined __GNUC__
52818           && !(defined __HP_cc || defined __xlc__
52819                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52820                || defined __sgi))]:
52821         #define to signed char in these cases too; this simplifies
52822         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52823         etc., separately) and makes it more conservative.
52824
52825 2006-01-25  Simon Josefsson  <jas@extundo.com>
52826
52827         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52828         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
52829         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
52830
52831 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52832
52833         * lib/argp-namefrob.h: Bugfix. Remove stray #
52834
52835 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52836
52837         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
52838         so that we test the test.
52839         Check for yet another HP-UX cc bug involving *bool |= bool.
52840
52841 2006-01-25  Karl Berry  <karl@gnu.org>
52842
52843         * config/srclist.txt (vasnprintf.c): sync lost.
52844
52845 2006-01-25  Jim Meyering  <jim@meyering.net>
52846
52847         Sync from the stable (b5) branch of coreutils:
52848
52849         * lib/fts.c (fts_children): Don't let close() clobber errno from
52850         failed fchdir().
52851
52852         * lib/fts.c (fts_stat): When following a symlink-to-directory,
52853         don't necessarily interpret stat-fails+lstat-succeeds as indicating
52854         a dangling symlink.  That can also happen at least for ELOOP.
52855         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
52856         FYI, this bug predates the inclusion of fts.c in coreutils.
52857
52858         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
52859         in their own block, so pre-c99 compilers don't object.
52860
52861         Avoid the double-free (first in fts_read, second in fts_close) that
52862         would occur when an `active' directory is made inaccessible (e.g.,
52863         via chmod a-x) during a traversal.
52864         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52865         before returning.  Reproduce this failure by
52866         mkdir -p a/b; cd a; chmod a-x . b
52867         Reported by Stavros Passas.
52868
52869 2006-01-25  Jim Meyering  <jim@meyering.net>
52870
52871         * lib/fileblocks.c: Remove more useless parentheses.
52872         * lib/readutmp.h: Likewise.
52873
52874 2006-01-25  Bruno Haible  <bruno@clisp.org>
52875
52876         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
52877         warnings.
52878         Reported by Paul Eggert.
52879
52880 2006-01-25  Bruno Haible  <bruno@clisp.org>
52881
52882         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
52883         rid of a trap command. For Solaris sh.
52884         Reported by Mark D. Baushke <mdb@gnu.org>.
52885
52886 2006-01-24  Simon Josefsson  <jas@extundo.com>
52887
52888         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
52889         Bruno.
52890
52891 2006-01-24  Karl Berry  <karl@gnu.org>
52892
52893         * config/srclist.txt (argp-namefrob.h): sync lost.
52894
52895 2006-01-24  Jim Meyering  <jim@meyering.net>
52896
52897         * modules/openat (Files): Add lib/intprops.h.
52898         From Mark D. Baushke.
52899
52900 2006-01-24  Jim Meyering  <jim@meyering.net>
52901
52902         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
52903         Reported by Mark D. Baushke.
52904
52905 2006-01-24  Jim Meyering  <jim@meyering.net>
52906
52907         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
52908
52909 2006-01-24  Bruno Haible  <bruno@clisp.org>
52910
52911         * modules/strnlen (Maintainer): Change from glibc to all.
52912
52913 2006-01-24  Bruno Haible  <bruno@clisp.org>
52914
52915         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
52916         Patch by Paul Eggert.
52917
52918 2006-01-24  Bruno Haible  <bruno@clisp.org>
52919
52920         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
52921         already has it.
52922         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
52923         2005-11-26.
52924
52925         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
52926         'signed char' to avoid problems with the built-in _Bool type.
52927         Reported by Paul Eggert on 2005-11-26.
52928
52929 2006-01-24  Bruno Haible  <bruno@clisp.org>
52930
52931         * gnulib-tool (func_import): Avoid constructing complicated sed
52932         expressions inside backquote.
52933         Report and solution by Mark D. Baushke <mdb@gnu.org>.
52934
52935 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
52936
52937         These changes imported from libc.
52938         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
52939         test and two separate function calls.
52940         * lib/strndup.c (__strndup): Add libc_hidden_def.
52941
52942 2006-01-23  Simon Josefsson  <jas@extundo.com>
52943
52944         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
52945         Remove the test_*_SOURCES variable: automake infers it by default.
52946         * modules/tls-tests: Likewise.
52947
52948 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52949
52950         Work around porting bugs reported by Dieter in
52951         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
52952         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
52953         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
52954         Include "getopt.h" first, to check interface.
52955         (getenv): Declare only if defined HAVE_DECL_GETENV &&
52956         !HAVE_DECL_GETENV.
52957         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
52958         (__strndup): Revert to K&R-style function dfns, the glibc style.
52959         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
52960         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
52961         Include strnlen.h first, to get prototype properly.
52962         (strnlen): Renamed from __strnlen.
52963         Remove weak alias.
52964
52965 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52966
52967         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
52968
52969 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52970
52971         * config/srclist.txt: Adjust to reflect glibc reorganization.
52972         This affects only comments.
52973
52974 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52975
52976          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
52977          Reported by Bruce Korb <bkorb@gnu.org>.
52978
52979 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52980
52981         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
52982         to pacify gcc -Wswitch-default.
52983
52984 2006-01-22  Bruno Haible  <bruno@clisp.org>
52985
52986         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
52987         temporary buffer for sprintf, take into account the precision also
52988         for 'd', 'i', 'u', 'o', 'x', 'X'.
52989
52990 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52991
52992         * modules/argp-tests: New module
52993         * tests/test-argp.c: New file
52994         * tests/test-argp-2.sh: New file
52995
52996 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52997
52998         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
52999         (__argp_base_name): Removed
53000         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
53001         typo.
53002         (__argp_base_name): Provide macro definition or extern declaration
53003         depending on the configuration
53004
53005 2006-01-20  Simon Josefsson  <jas@extundo.com>
53006
53007         * modules/inet_ntop (Depends-on): Depend on sys_socket.
53008
53009 2006-01-20  Simon Josefsson  <jas@extundo.com>
53010
53011         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
53012
53013 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53014
53015         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
53016         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
53017         Suggested by Bruno Haible.
53018
53019 2006-01-20  Karl Berry  <karl@gnu.org>
53020
53021         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
53022         until changes propagate, I guess.
53023
53024 2006-01-19  Simon Josefsson  <jas@extundo.com>
53025
53026         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
53027
53028 2006-01-19  Simon Josefsson  <jas@extundo.com>
53029
53030         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
53031
53032 2006-01-19  Simon Josefsson  <jas@extundo.com>
53033
53034         * gnulib-tool: Set check_PROGRAMS.
53035
53036         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53037         modules/des-tests, modules/gc-arcfour-tests,
53038         modules/gc-arctwo-tests, modules/gc-des-tests,
53039         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53040         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53041         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53042         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53043         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53044         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
53045         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
53046         test_*_SOURCES.
53047
53048 2006-01-18  Simon Josefsson  <jas@extundo.com>
53049
53050         * modules/socklen (Depends-on): Depend on sys_socket.
53051
53052 2006-01-18  Simon Josefsson  <jas@extundo.com>
53053
53054         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53055         modules/des-tests, modules/gc-arcfour-tests,
53056         modules/gc-arctwo-tests, modules/gc-des-tests,
53057         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53058         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53059         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53060         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53061         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53062         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
53063         $(EXEEXT) to automake TESTS variable, for mingw32.
53064
53065 2006-01-17  Simon Josefsson  <jas@extundo.com>
53066
53067         * modules/socklen (Include): Need sys/socket.h.
53068
53069 2006-01-17  Bruno Haible  <bruno@clisp.org>
53070
53071         * modules/ssize_t (Include): Add <sys/types.h>.
53072
53073 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
53074
53075         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
53076         it's not portable and it doesn't work with cross-compiles.
53077         Problem reported by Bruno Haible.  Fix missing-$ typo in
53078         'test "gl_cv_ignore_unused_libraries" ...' that prevented
53079         -zignore from being used with Sun's C compiler.
53080
53081 2006-01-12  Simon Josefsson  <jas@extundo.com>
53082
53083         * lib/base64.c: Fix warning, reported by Bruno Haible
53084         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
53085
53086 2006-01-12  Bruno Haible  <bruno@clisp.org>
53087
53088         * modules/ldd: New file.
53089         * build-aux/ldd.sh.in: New file.
53090         * MODULES.html.sh (Support for building libraries and executables): Add
53091         ldd.
53092
53093 2006-01-12  Bruno Haible  <bruno@clisp.org>
53094
53095         * m4/ldd.m4: New file.
53096
53097 2006-01-12  Bruno Haible  <bruno@clisp.org>
53098
53099         * gnulib-tool (func_import, func_create_testdir): Don't go into an
53100         endless loop while replacing $auxdir with build-aux.
53101
53102 2006-01-11  Simon Josefsson  <jas@extundo.com>
53103
53104         * lib/stdint_.h (SIZE_MAX): Add missing (.
53105
53106 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
53107
53108         Sync from coreutils.
53109         * lib/md5.c: Fix commentary typos.
53110         (alignof, UNALIGNED_P): No need for a GCC-specific version.
53111         * lib/md5.h (__attribute__): Remove; unused.
53112         * lib/sha1.c: Fix commentary to match md5 better.
53113         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
53114         so that we don't need to worry about alignment.  All uses changed.
53115         This merges the 2005-10-28 md5 change into sha1.
53116
53117 2006-01-11  Jim Meyering  <jim@meyering.net>
53118
53119         Sync from coreutils.
53120         * lib/md5.c (OP): Fix spacing.
53121
53122 2006-01-11  Bruno Haible  <bruno@clisp.org>
53123
53124         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53125         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
53126         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
53127
53128 2006-01-11  Bruno Haible  <bruno@clisp.org>
53129
53130         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53131         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
53132         the "early" section as well.
53133
53134 2006-01-11  Bruno Haible  <bruno@clisp.org>
53135
53136         Avoid "ar: no archive members specified" error on MacOS X.
53137         * gnulib-tool (func_modules_add_dummy): New function.
53138         (func_import, func_create_testdir): Invoke it.
53139
53140 2006-01-11  Bruno Haible  <bruno@clisp.org>
53141
53142         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
53143         with $auxdir in AC_CONFIG_FILES statements.
53144
53145 2006-01-11  Bruno Haible  <bruno@clisp.org>
53146
53147         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53148         Initialize also noinst_HEADERS to empty.
53149
53150 2006-01-11  Bruno Haible  <bruno@clisp.org>
53151
53152         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
53153         variables.
53154         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
53155         autoreconf.
53156
53157 2006-01-11  Bruno Haible  <bruno@clisp.org>
53158
53159         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
53160         overridable by the user.
53161         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53162
53163 2006-01-10  Simon Josefsson  <jas@extundo.com>
53164
53165         * modules/sys_socket: New file.
53166
53167 2006-01-10  Simon Josefsson  <jas@extundo.com>
53168
53169         * m4/sys_socket_h.m4: New file.
53170
53171 2006-01-10  Simon Josefsson  <jas@extundo.com>
53172
53173         * lib/socket_.h: New file.
53174
53175 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53176
53177         * modules/readutmp (Maintainer): Add myself.
53178
53179 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53180
53181         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
53182         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
53183         People who are still concerned with buggy memcmp implementations
53184         can invoke gl_FUNC_MEMCMP themselves.
53185
53186 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53187
53188         * lib/regex_internal.h (BITSET_WORD_BITS):
53189         Work around a bug in 64-bit PGC (before version 6.1-2), where the
53190         preprocessor mishandles large unsigned values as if they were signed.
53191         Problem reported by Claudio Fontana in
53192         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
53193
53194 2006-01-10  Jim Meyering  <jim@meyering.net>
53195
53196         Avoid the double-free (first in fts_read, second in fts_close) that
53197         would occur when an `active' directory is made inaccessible (e.g.,
53198         via chmod a-x) during a traversal.
53199         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53200         before returning.  Reproduce this failure by
53201         mkdir -p a/b; cd a; chmod a-x . b
53202         Reported by Stavros Passas.
53203
53204         Sync from coreutils.
53205         * lib/sha1.c: Tweak grammar in a comment.
53206
53207 2006-01-10  Jim Meyering  <jim@meyering.net>
53208
53209         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
53210         Patch by Joerg Sonnenberger.
53211
53212 2006-01-10  Bruno Haible  <bruno@clisp.org>
53213
53214         * modules/readutmp: Depend on module free.
53215         * modules/strtok_r: Depend on module restrict.
53216
53217 2006-01-10  Bruno Haible  <bruno@clisp.org>
53218
53219         * modules/gettext (configure.ac): Add an invocation of
53220         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
53221
53222 2006-01-10  Bruno Haible  <bruno@clisp.org>
53223
53224         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
53225         Reported by Werner Lemberg <wl@gnu.org>.
53226
53227 2006-01-10  Bruno Haible  <bruno@clisp.org>
53228
53229         * lib/localcharset.c: Update from GNU gettext.
53230
53231 2006-01-10  Bruno Haible  <bruno@clisp.org>
53232
53233         * lib/argp.h (__const): Remove macro. Use const instead.
53234         * lib/argp-fmtstream.h (__const): Likewise.
53235         * lib/glob_.h (__const): Remove macro.
53236         * lib/glob-libc.h: Use const instead of __const.
53237
53238 2006-01-10  Bruno Haible  <bruno@clisp.org>
53239
53240         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
53241         variable.
53242         Needed to avoid an automake error regarding the 'gettext' module.
53243
53244 2006-01-09  Simon Josefsson  <jas@extundo.com>
53245
53246         * modules/inet_ntop (Depends-on): Add restrict.
53247
53248 2006-01-09  Simon Josefsson  <jas@extundo.com>
53249
53250         * modules/gc-rijndael-tests (License): Put under LGPL.
53251
53252         * modules/gc-des-tests (License): Likewise.
53253
53254         * modules/gc-arcfour-tests (License): Likewise.
53255
53256         * modules/gc-arctwo-tests (License): Likewise.
53257
53258         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
53259
53260         * modules/gc-hmac-sha1-tests (Files): Likewise.
53261
53262         * modules/gc-hmac-md5-tests (License): Likewise.
53263
53264         * modules/gc-sha1-tests (License): Likewise.
53265
53266         * modules/gc-md5-tests (License): Likewise.
53267
53268         * modules/gc-md4-tests (License): Likewise.
53269
53270         * modules/gc-md2-tests (License): Likewise.
53271
53272         * modules/gc-tests (License): Likewise.
53273
53274         * modules/des-tests (License): Likewise.
53275
53276         * modules/md4-tests (License): Likewise.
53277
53278         * modules/md2-tests (License): Likewise.
53279
53280 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53281
53282         Sync from coreutils:
53283
53284         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
53285         * modules/lib-ignore: New file.
53286         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
53287         chdir-safer.m4, lchmod.m4.
53288         * modules/openat: Add mkdirat.c, openat-priv.h.
53289
53290 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53291
53292         Sync from coreutils.
53293         * m4/lib-ignore.m4: New file.
53294         * m4/lchmod.m4: New file.
53295
53296 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53297
53298         Sync from coreutils.
53299         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
53300         for write access: POSIX says that must fail.
53301         * lib/fts.c (diropen): Likewise.
53302         * lib/save-cwd.c (save_cwd): Likewise.
53303         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
53304         well, for minor improvements on hosts that lack O_DIRECTORY.
53305         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
53306         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
53307         Fall back on chown if open failed with EACCES.
53308
53309         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
53310         Report an error at compile-time if only a 1-second nominal clock
53311         resolution is found.
53312
53313         * lib/lchmod.h: New file.
53314         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
53315         (make_dir_parents): Use lchown rather than chown, and
53316         lchmod rather than chmod.
53317
53318         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
53319         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
53320         "proc" reported by n0dalus.
53321
53322         * lib/mountlist.c: Include <limits.h>.
53323         (dev_from_mount_options)
53324         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
53325         New function.  It no longer assumes "dev=" has the System V meaning
53326         on Linux (since it doesn't).  It also parses "dev=" more carefully.
53327         (read_file_system_list)
53328         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
53329         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
53330         dev= in that case.
53331
53332         * lib/posixtm.h (PDS_PRE_2000): New macro.
53333         * lib/posixtm.c (year): Arg is now syntax_bits rather than
53334         allow_century.  All usages changed.  Reject dates outside the range
53335         1969-1999 if PDS_PRE_2000 is used.
53336
53337 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53338
53339         Sync from coreutils.
53340         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
53341         (Time of day items): Mention the possibility of leap seconds.
53342         Problem reported by Dr. David Alan Gilbert.
53343
53344 2006-01-09  Jim Meyering  <jim@meyering.net>
53345
53346         Sync from coreutils.
53347
53348         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
53349
53350         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
53351
53352         * lib/modechange.c (mode_compile): Reject an invalid mode string
53353         that starts with an octal digit.  From Andreas Gruenbacher.
53354
53355         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
53356         and dup to open_safer and dup_safer, respectively.
53357         (openat_permissive): Fix typo in comment.
53358
53359         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
53360         "gettext.h"; either no longer needed or are guaranteed by openat.h.
53361         (_): Remove; no longer needed.
53362         (openat): Renamed from rpl_openat; no need for rpl_openat
53363         since openat.h renames openat for us.
53364         Replace most of the body with a call to openat_permissive,
53365         to avoid duplicate code.
53366         Port to (probably hypothetical) environments were mode_t is
53367         wider than int.
53368         (openat_permissive): Require mode arg, so that we can check
53369         types better.  Put it just after flags.  Change cwd failure
53370         indicator from pointer-to-bool to pointer-to-errno-value.
53371         All callers changed.
53372         Invoke openat_save_fail and/or openat_restore_fail if
53373         cwd_errno is null, so that openat can call us.
53374         (openat_permissive, fdopendir, fstatat, unlinkat):
53375         Simplify errno handling to avoid some duplicate code,
53376         as it's OK to set errno on success.
53377         * lib/openat.h: Revamp code so that function macros depend on
53378         __OPENAT_PREFIX only, not also on AT_FDCWD.
53379         (openat_ro): Remove.  Caller changed to use openat_permissive.
53380         (openat_permissive): Now a macro, if not a function.
53381         (openat_restore_fail, openat_save_fail): Now always functions,
53382         since mkdirat needs them even if __OPENAT_PREFIX is defined.
53383
53384         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
53385         and openat.c.
53386         * lib/mkdirat.c: Include openat-priv.h.
53387         Remove definitions of macros defined therein.
53388         * lib/openat.c: Likewise.
53389
53390         * lib/mkdirat.c (mkdirat): New file and function.
53391         * lib/openat.h (mkdirat): Declare.
53392
53393         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
53394
53395         * lib/openat.h (openat_permissive): Declare.
53396         (openat_ro): Define.
53397
53398         * lib/openat.c (EXPECTED_ERRNO): New macro.
53399         (openat_permissive): New function -- used in remove.c rewrite.
53400         (all functions): Set errno just before returning, only if there
53401         was an actual failure.
53402         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
53403
53404         Emulate openat-family functions using Linux's procfs, if possible.
53405         Idea and some code based on Ulrich Drepper's glibc changes.
53406
53407         * lib/openat.c: (BUILD_PROC_NAME): New macro.
53408         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
53409         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
53410         before falling back on save_cwd and restore_cwd.
53411         (fdopendir, fstatat, unlinkat): Likewise.
53412
53413         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
53414         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
53415
53416         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
53417         as second argument to va_arg.  Otherwise, some versions of gcc
53418         warn that `if this code is reached, the program will abort'.
53419
53420 2006-01-09  Jim Meyering  <jim@meyering.net>
53421
53422         Sync from coreutils.
53423         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
53424         Require openat-priv.h.
53425
53426 2006-01-09  Bruno Haible  <bruno@clisp.org>
53427
53428         * modules/strnlen (Include): Use strnlen.h.
53429
53430 2006-01-09  Bruno Haible  <bruno@clisp.org>
53431
53432         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
53433
53434 2006-01-09  Bruno Haible  <bruno@clisp.org>
53435
53436         * lib/sysexit_.h (EX_OK): New macro.
53437         Suggested by Martin Lambers <marlam@marlam.de>.
53438
53439 2006-01-09  Bruno Haible  <bruno@clisp.org>
53440
53441         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
53442         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
53443
53444 2006-01-09  Bruno Haible  <bruno@clisp.org>
53445
53446         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
53447         numbers.
53448
53449 2006-01-09  Bruno Haible  <bruno@clisp.org>
53450
53451         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
53452         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
53453         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
53454         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
53455
53456 2006-01-09  Bruno Haible  <bruno@clisp.org>
53457
53458         * build-aux/javacomp.sh.in: New file, moved from lib/.
53459         * modules/javacomp-script (Files): Update.
53460         (configure.ac): Add AC_CONFIG_FILES invocation.
53461         (EXTRA_DIST): Remove variable.
53462
53463         * build-aux/javaexec.sh.in: New file, moved from lib/.
53464         * modules/javaexec (Files): Update.
53465         (configure.ac): Add AC_CONFIG_FILES invocation.
53466         (EXTRA_DIST): Remove javaexec.sh.in.
53467
53468         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
53469         * modules/csharpcomp-script (Files): Update.
53470         (configure.ac): Add AC_CONFIG_FILES invocation.
53471         (EXTRA_DIST): Remove variable.
53472
53473         * build-aux/csharpexec.sh.in: New file, moved from lib/.
53474         * modules/csharpexec (Files): Update.
53475         (configure.ac): Add AC_CONFIG_FILES invocation.
53476         (EXTRA_DIST): Remove csharpexec.sh.in.
53477
53478 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53479
53480         Sync from coreutils.
53481
53482         Add POSIX ACL support
53483         * lib/acl.h (copy_acl, set_acl): Add declarations.
53484         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
53485         systems other than Linux.
53486         (chmod_or_fchmod): New function: use fchmod when possible,
53487         and chmod otherwise.
53488         (file_has_acl): Add a POSIX ACL implementation, with a
53489         Linux-specific subcase.
53490         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
53491         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
53492         acls are unsupported.
53493         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
53494         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
53495         are unsupported.
53496
53497 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53498
53499         Sync from coreutils.
53500         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
53501
53502 2006-01-07  Bruno Haible  <bruno@clisp.org>
53503
53504         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
53505         gl_EARLY.
53506
53507 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53508
53509         * lib/strftime.c (tzname): Don't declare if it is already #defined.
53510         Problem reported for Mingw by Mark Junker.
53511
53512 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53513
53514         * README: Gnulib normally doesn't generate a tarball.
53515
53516 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53517
53518         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
53519         long int, not int, for nanosecond counts, so that people who are
53520         used to POSIX struct timespec won't be surprised.  Reported by Jim
53521         Meyering.
53522
53523 2005-12-28  Bruno Haible  <bruno@clisp.org>
53524
53525         * build-aux/config.rpath: Update from GNU gettext.
53526
53527 2005-12-16  Jim Meyering  <jim@meyering.net>
53528
53529         * modules/fprintftime: New module.
53530         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
53531
53532 2005-12-16  Jim Meyering  <jim@meyering.net>
53533
53534         * m4/fprintftime.m4: New file.
53535
53536 2005-12-16  Jim Meyering  <jim@meyering.net>
53537
53538         * lib/fprintftime.c, lib/fprintftime.h: New files.
53539
53540 2005-12-15  Simon Josefsson  <jas@extundo.com>
53541
53542         * modules/socklen (configure.ac): Fix M4 macro name, to align with
53543         new m4/socklen.m4.
53544
53545 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53546
53547         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
53548         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
53549
53550 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53551
53552         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
53553         * lib/argp-help.c (fill_in_uparams): Check if the constructed
53554         struct uparams is valid. Fall back to the default values if it is
53555         not.
53556
53557 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53558
53559         * modules/argp (Files): Add argp-pin.c
53560         (Depends-on): dirname
53561         (lib_SOURCES): Add argp-pin.c
53562
53563 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53564
53565         * m4/argp.m4:  Check if program_invocation_name and
53566         program_invocation_short_name are declared and define appropriate
53567         macros if they are not.
53568
53569 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53570
53571         * lib/argp-help.c (__argp_base_name): New function
53572         (__argp_short_program_name): Rewrite using __argp_base_name
53573         * lib/argp-namefrob.h: Define program_invocation_name and
53574         program_invocation_short_name if requested
53575         (__argp_base_name): Add prototype
53576         * lib/argp-parse.c (argp_def): Use gettext wrappers
53577         (argp_default_parser): Use __argp_base_name
53578         * lib/argp-pin.c: New file. Defines program_invocation_name and
53579         program_invocation_short_name on systems that lack them.
53580
53581 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53582
53583         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
53584         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53585         porting problem reported by Georg Schwarz in
53586         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53587
53588 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53589
53590         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
53591         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53592         porting problem reported by Georg Schwarz in
53593         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53594
53595 2005-12-05  Bruno Haible  <bruno@clisp.org>
53596
53597         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53598         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53599         Reported by Mark Junker <mjscod@gmx.de>.
53600
53601 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53602
53603         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53604         Use implementation from Albert Chin, with some
53605         comments/corrections by Stepan Kasal and myself.
53606
53607 2005-12-02  Bruno Haible  <bruno@clisp.org>
53608
53609         * gnulib-tool (func_import): Accept GPLed build tool modules when
53610         --lgpl is given.
53611         * modules/csharpcomp-script: New file.
53612         * modules/csharpcomp: Depend on it.
53613         * modules/javacomp-script: New file.
53614         * modules/javacomp: Depend on it.
53615         Suggested by Simon Josefsson.
53616
53617 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53618
53619         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53620         statement, to work around an HP-UX 10.20 compiler bug reported by
53621         Peter O'Gorman.
53622
53623 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53624
53625         * modules/savedir (Depends-on): Add openat.
53626
53627 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53628
53629         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53630         (uintmax_t) [defined uintmax_t]: Do not declare.
53631         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53632         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53633         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53634         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53635         sake of portability to weird hosts that C allows (though we don't
53636         know of any practical examples).
53637
53638         * lib/savedir.h (fdsavedir): New decl.
53639         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53640         contains most of the former guts of savedir.
53641         (savedir): Use savedirstream.
53642         Include "openat.h".
53643
53644 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53645
53646         * modules/obstack (Files): Add m4/ulonglong.m4.
53647         Problem reported by Davide Angelocola.
53648
53649 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53650
53651         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53652         coreutils no longer futzes with rounding modes.
53653
53654 2005-11-14  Jim Meyering  <jim@meyering.net>
53655
53656         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53657         replacement of mkstemp.
53658
53659 2005-11-10  Simon Josefsson  <jas@extundo.com>
53660
53661         * lib/readline.c: Remove EOL.
53662
53663 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53664
53665         * modules/gethrxtime (Depends-on): Add gettime.
53666
53667 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53668
53669         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53670         or gettimeofday; no longer needed.
53671
53672 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53673
53674         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53675         time business.
53676         (gethrxtime) [! (HAVE_NANOUPTIME
53677         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53678         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53679         our own approximation.
53680
53681 2005-11-08  Eric Blake  <ebb9@byu.net>
53682
53683         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53684
53685 2005-11-08  Eric Blake  <ebb9@byu.net>
53686
53687         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53688
53689 2005-11-04  Bruno Haible  <bruno@clisp.org>
53690
53691         * gnulib-tool: Implement --update mode.
53692
53693 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53694
53695         Fix porting problem reported by Theodoros V. Kalamatianos.
53696         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53697         Don't assume that futimes failing means we must fail.
53698
53699 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53700
53701         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53702         variables to suggest the intended function of the PATH_MAX check.
53703
53704 2005-10-30  Kean Johnston  <jkj@sco.com>
53705
53706         Trivial changes to support SCO systems.
53707         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53708         as PATH_MAX.
53709         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53710         where __ptr is null when no I/O is pending.
53711
53712 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53713
53714         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53715         leave errno alone.  Problem reported by Dmitry V. Levin.
53716
53717 2005-10-28  Simon Josefsson  <jas@extundo.com>
53718
53719         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53720         Test more.
53721
53722         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53723
53724         * modules/md2, modules/md2-tests: New files.
53725
53726 2005-10-28  Simon Josefsson  <jas@extundo.com>
53727
53728         * m4/inet_ntop.m4: More tests.
53729
53730         * m4/gc-md2.m4, md2.m4: New file.
53731
53732 2005-10-28  Simon Josefsson  <jas@extundo.com>
53733
53734         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53735         "restrict" keywords, as per POSIX.  Protect the function
53736         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53737         Don't use K&R prototypes.  Check the sprintf return values.
53738         Re-define EAFNOSUPPORT if not present.  Indent.
53739
53740         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53741         suggested by Bruno Haible <bruno@clisp.org>.
53742
53743         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53744
53745         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53746
53747         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53748         libgcrypt).
53749
53750         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53751
53752         * lib/md2.h, lib/md2.c: New files.
53753
53754 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53755
53756         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53757         errno alone.  Problem reported by Frederic Jolliton.
53758
53759 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53760
53761         * modules/verify (License): Change from GPL to LGPL.  This is a
53762         tiny module and there are apparently near-equivalents that are
53763         under the BSD license.
53764
53765 2005-10-24  Simon Josefsson  <jas@extundo.com>
53766
53767         * modules/sha1: Relicense to LGPL.
53768
53769 2005-10-24  Simon Josefsson  <jas@extundo.com>
53770
53771         * lib/md4.h: Shrink buffer size, now that we changed the type.
53772
53773 2005-10-23  Simon Josefsson  <jas@extundo.com>
53774
53775         * gnulib-tool (func_import): Fix --tests-base.
53776
53777 2005-10-22  Simon Josefsson  <jas@extundo.com>
53778
53779         * modules/arcfour (Depends-on): Need stdint.
53780
53781 2005-10-22  Simon Josefsson  <jas@extundo.com>
53782
53783         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53784         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53785
53786 2005-10-22  Simon Josefsson  <jas@extundo.com>
53787
53788         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53789         suggested by Bruno Haible <bruno@clisp.org>.
53790
53791 2005-10-22  Simon Josefsson  <jas@extundo.com>
53792
53793         * lib/crc.h: Include stddef.h, for size_t.
53794
53795 2005-10-22  Simon Josefsson  <jas@extundo.com>
53796
53797         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53798         arcfour_context struct (simplify test vector testing in GNU
53799         Shishi).
53800
53801 2005-10-21  Simon Josefsson  <jas@extundo.com>
53802
53803         * modules/des, modules/des-tests: New files.
53804
53805         * modules/gc-des, modules/gc-des-tests: New files.
53806
53807         * tests/test-des.c, tests/test-gc-des.c: New file.
53808
53809 2005-10-21  Simon Josefsson  <jas@extundo.com>
53810
53811         * modules/arctwo, modules/arctwo-tests: New files.
53812
53813         * tests/test-arctwo.c: New file.
53814
53815         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53816
53817         * tests/test-gc-arctwo.c: New file.
53818
53819 2005-10-21  Simon Josefsson  <jas@extundo.com>
53820
53821         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53822         Bruno Haible <bruno@clisp.org>.
53823
53824         * m4/gc-des.m4: New file.
53825
53826 2005-10-21  Simon Josefsson  <jas@extundo.com>
53827
53828         * m4/arctwo.m4: New file.
53829
53830         * m4/gc-arctwo.m4: New file.
53831
53832 2005-10-21  Simon Josefsson  <jas@extundo.com>
53833
53834         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
53835         block.
53836
53837 2005-10-21  Simon Josefsson  <jas@extundo.com>
53838
53839         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
53840         <bruno@clisp.org>.
53841
53842         * lib/hmac-sha1.c (hmac_sha1): Likewise.
53843
53844         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
53845         Bruno Haible <bruno@clisp.org>.
53846
53847         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
53848         <bruno@clisp.org>.
53849
53850 2005-10-21  Simon Josefsson  <jas@extundo.com>
53851
53852         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
53853
53854 2005-10-21  Simon Josefsson  <jas@extundo.com>
53855
53856         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
53857
53858 2005-10-21  Simon Josefsson  <jas@extundo.com>
53859
53860         * lib/des.h, lib/des.c: New files.
53861
53862         * lib/gc-gnulib.c: Support DES.c
53863
53864 2005-10-21  Simon Josefsson  <jas@extundo.com>
53865
53866         * lib/arctwo.h, lib/arctwo.c: New files.
53867
53868         * lib/gc-gnulib.c: Support ARCTWO.
53869
53870 2005-10-21  Simon Josefsson  <jas@extundo.com>
53871
53872         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
53873         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53874
53875 2005-10-21  Simon Josefsson  <jas@extundo.com>
53876
53877         * gnulib-tool (func_import, func_create_testdir): Define automake
53878         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
53879         Makefile.am snippet),
53880         suggested by Bruno Haible <bruno@clisp.org>.
53881
53882         * modules/gc (Makefile.am): Use it.
53883
53884 2005-10-21  Bruno Haible  <bruno@clisp.org>
53885
53886         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
53887         patch.
53888
53889 2005-10-19  Simon Josefsson  <jas@extundo.com>
53890
53891         * tests/test-gc-rijndael.c: New file.
53892
53893         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
53894
53895 2005-10-19  Simon Josefsson  <jas@extundo.com>
53896
53897         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
53898         interface too.
53899
53900 2005-10-19  Simon Josefsson  <jas@extundo.com>
53901
53902         * tests/test-gc-arcfour.c: New file.
53903
53904         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
53905
53906 2005-10-19  Simon Josefsson  <jas@extundo.com>
53907
53908         * modules/gc-md4, modules/gc-md4-tests: New file.
53909
53910         * tests/test-gc-md4.c: New file.
53911
53912 2005-10-19  Simon Josefsson  <jas@extundo.com>
53913
53914         * m4/gc-md4.m4: New file.
53915
53916 2005-10-19  Simon Josefsson  <jas@extundo.com>
53917
53918         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
53919         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
53920         <kasal@ucw.cz>.
53921
53922 2005-10-19  Simon Josefsson  <jas@extundo.com>
53923
53924         * m4/gc-arcfour.m4: New file.
53925
53926         * m4/gc-rijndael.m4: New file.
53927
53928 2005-10-19  Simon Josefsson  <jas@extundo.com>
53929
53930         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
53931
53932 2005-10-19  Simon Josefsson  <jas@extundo.com>
53933
53934         * lib/gc-gnulib.c: Support ARCFOUR.
53935
53936 2005-10-19  Simon Josefsson  <jas@extundo.com>
53937
53938         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
53939         support.
53940
53941         * lib/gc.h: Add ECB enum type.
53942
53943         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
53944
53945 2005-10-18  Simon Josefsson  <jas@extundo.com>
53946
53947         * tests/test-md5.c: New file.
53948
53949         * modules/md5-tests: New file.
53950
53951 2005-10-18  Simon Josefsson  <jas@extundo.com>
53952
53953         * tests/test-md4.c: New file.
53954
53955         * modules/md4, modules/md4-tests: New files.
53956
53957 2005-10-18  Simon Josefsson  <jas@extundo.com>
53958
53959         * m4/md4.m4: New file.
53960
53961 2005-10-18  Simon Josefsson  <jas@extundo.com>
53962
53963         * lib/md4.h, lib/md4.c: New files, based on md5.?.
53964
53965 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
53966
53967         * gnulib-tool (func_create_testdir): Omit the second check whether
53968         BUILT_SOURCES in nonempty.
53969
53970 2005-10-17  Simon Josefsson  <jas@extundo.com>
53971
53972         * tests/test-rijndael.c: New file.
53973
53974 2005-10-17  Simon Josefsson  <jas@extundo.com>
53975
53976         * modules/sha1: Depend on stdint instead of md5.
53977
53978         * modules/md5: Depend on stdint, remove uint32_t.
53979
53980 2005-10-17  Simon Josefsson  <jas@extundo.com>
53981
53982         * modules/gc-sha1-tests: New file.
53983
53984         * tests/test-gc-sha1.c: New file.
53985
53986 2005-10-17  Simon Josefsson  <jas@extundo.com>
53987
53988         * m4/md5.m4: Remove call to uint32_t.m4.
53989
53990 2005-10-17  Simon Josefsson  <jas@extundo.com>
53991
53992         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
53993
53994         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
53995         md5.h.
53996
53997         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
53998
53999         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
54000
54001 2005-10-17  Simon Josefsson  <jas@extundo.com>
54002
54003         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
54004
54005 2005-10-17  Simon Josefsson  <jas@extundo.com>
54006
54007         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
54008
54009 2005-10-17  Simon Josefsson  <jas@extundo.com>
54010
54011         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
54012
54013         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
54014
54015 2005-10-17  Bruno Haible  <bruno@clisp.org>
54016
54017         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
54018         that it can also be used in a test.
54019
54020 2005-10-16  Bruno Haible  <bruno@clisp.org>
54021
54022         * gnulib-tool (func_emit_tests_Makefile_am): Also define
54023         TESTS_ENVIRONMENT, so that individual tests can augment it.
54024
54025         * gnulib-tool (func_create_testdir): Use an intermediate target for
54026         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
54027         macros, like $(ALLOCA_H), which cannot be passed through the command
54028         line.
54029
54030 2005-10-15  Simon Josefsson  <jas@extundo.com>
54031
54032         * modules/rijndael-tests: New file.
54033
54034         * modules/rijndael: New file.
54035
54036 2005-10-15  Simon Josefsson  <jas@extundo.com>
54037
54038         * m4/rijndael.m4: New file.
54039
54040 2005-10-15  Simon Josefsson  <jas@extundo.com>
54041
54042         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
54043
54044         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
54045
54046 2005-10-14  Simon Josefsson  <jas@extundo.com>
54047
54048         * tests/test-arcfour.c: New file.
54049
54050         * modules/arcfour, modules/arcfour-tests: New files.
54051
54052 2005-10-14  Simon Josefsson  <jas@extundo.com>
54053
54054         * m4/arcfour.m4: New file.
54055
54056 2005-10-14  Simon Josefsson  <jas@extundo.com>
54057
54058         * lib/arcfour.h, lib/arcfour.c: New files.
54059
54060 2005-10-14  Roland McGrath  <roland@redhat.com>
54061
54062         Import from libc.  [BZ #1331]
54063         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
54064         macro argument.
54065         Reported by Matej Vela <vela@debian.org>.
54066
54067 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54068
54069         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
54070         include <wchar.h>; no longer needed.
54071
54072 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54073
54074         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
54075
54076 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
54077         and  Ulrich Drepper  <drepper@redhat.com>
54078
54079         Import from libc.
54080         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
54081         instead of inline stream orientation test and two separate
54082         function calls.  Pay no attention to USE_IN_LIBIO.
54083
54084 2005-10-13  Simon Josefsson  <jas@extundo.com>
54085
54086         * modules/gc-hmac-md5-tests: New file.
54087
54088         * tests/test-gc-hmac-sha1.c: New file.
54089
54090         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
54091
54092         * modules/gc-hmac-md5-tests: New file.
54093
54094         * tests/test-gc-md5.c: New file.
54095
54096         * modules/gc-md5-tests: New file.
54097
54098 2005-10-13  Simon Josefsson  <jas@extundo.com>
54099
54100         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
54101         Move memory allocation outside of loop.
54102
54103 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
54104
54105         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
54106         intermediate directory is in a read-only file system.  Problem
54107         reported by Eric Blake.
54108
54109 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
54110
54111         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
54112
54113 2005-10-12  Simon Josefsson  <jas@extundo.com>
54114
54115         * tests/test-hmac-sha1.c: New file.
54116
54117         * modules/hmac-sha1-tests: New file.
54118
54119         * modules/hmac-sha1: New file.
54120
54121 2005-10-12  Simon Josefsson  <jas@extundo.com>
54122
54123         * modules/gc-sha1: New file.
54124
54125 2005-10-12  Simon Josefsson  <jas@extundo.com>
54126
54127         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
54128
54129         * tests/test-gc-pbkdf2-sha1.c: New file.
54130
54131 2005-10-12  Simon Josefsson  <jas@extundo.com>
54132
54133         * modules/gc-md5, modules/gc-hmac-md5: New files.
54134
54135         * modules/gc (Files): Remove md5, memxor and hmac files.
54136
54137 2005-10-12  Simon Josefsson  <jas@extundo.com>
54138
54139         * m4/gc-pbkdf2-sha1.m4: New file.
54140
54141         * m4/gc-hmac-sha1.m4: New file.
54142
54143         * m4/gc-sha1: New file.
54144
54145         * m4/hmac-sha1.m4: New file.
54146
54147 2005-10-12  Simon Josefsson  <jas@extundo.com>
54148
54149         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
54150
54151         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
54152
54153 2005-10-12  Simon Josefsson  <jas@extundo.com>
54154
54155         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
54156         suggested by Bruno Haible <bruno@clisp.org>.
54157
54158 2005-10-12  Simon Josefsson  <jas@extundo.com>
54159
54160         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
54161
54162 2005-10-12  Simon Josefsson  <jas@extundo.com>
54163
54164         * lib/gc-pbkdf2-sha1.c: New file.
54165
54166         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
54167
54168 2005-10-12  Simon Josefsson  <jas@extundo.com>
54169
54170         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
54171
54172         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
54173
54174 2005-10-12  Simon Josefsson  <jas@extundo.com>
54175
54176         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
54177         GC_USE_HMAC_MD5, respectively.
54178
54179         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
54180         (gc_md5): Fix typo.
54181
54182         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
54183
54184         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
54185
54186         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
54187
54188 2005-10-12  Bruno Haible  <bruno@clisp.org>
54189
54190         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
54191         Reported by Stepan Kasal <kasal@ucw.cz>.
54192
54193 2005-10-11  Simon Josefsson  <jas@extundo.com>
54194
54195         * tests/test-crc.c: New file.
54196
54197         * modules/crc, modules/crc-tests: New files.
54198
54199 2005-10-11  Simon Josefsson  <jas@extundo.com>
54200
54201         * m4/crc.m4: New file.
54202
54203 2005-10-11  Simon Josefsson  <jas@extundo.com>
54204
54205         * lib/gc.h: Add gc_hash and gc_hash_buffer.
54206
54207         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
54208
54209         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
54210
54211 2005-10-11  Simon Josefsson  <jas@extundo.com>
54212
54213         * lib/crc.h, lib/crc.c: New files.
54214
54215         * lib/gc.h (gc_hash_buffer): Add doc.
54216
54217 2005-10-11  Bruno Haible  <bruno@clisp.org>
54218
54219         * modules/c-strcasestr: New file.
54220         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
54221
54222 2005-10-11  Bruno Haible  <bruno@clisp.org>
54223
54224         * modules/c-strcase: New file.
54225         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
54226
54227 2005-10-11  Bruno Haible  <bruno@clisp.org>
54228
54229         * lib/strcasecmp.c: Include limits.h.
54230         (strcasecmp): Avoid integer overflow on exotic platforms.
54231         * lib/strncasecmp.c: Include limits.h.
54232         (strncasecmp): Avoid integer overflow on exotic platforms.
54233         Reported by Paul Eggert.
54234
54235 2005-10-11  Bruno Haible  <bruno@clisp.org>
54236
54237         * lib/c-strcasestr.h: New file, from GNU gettext.
54238         * lib/c-strcasestr.c: New file, from GNU gettext.
54239
54240 2005-10-11  Bruno Haible  <bruno@clisp.org>
54241
54242         * lib/c-strcase.h: New file, from GNU gettext.
54243         * lib/c-strcasecmp.c: New file, from GNU gettext.
54244         * lib/c-strncasecmp.c: New file, from GNU gettext.
54245
54246 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54247
54248         * modules/mempcpy (License): GPL -> LGPL.
54249         * modules/strchrnul (License): Likewise.
54250         * modules/sysexits (License): Likewise.
54251
54252 2005-10-08  Simon Josefsson  <jas@extundo.com>
54253
54254         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
54255
54256 2005-10-07  Simon Josefsson  <jas@extundo.com>
54257
54258         * m4/memxor.m4: Remove gl_C_RESTRICT call.
54259
54260 2005-10-06  Simon Josefsson  <jas@extundo.com>
54261
54262         * tests/test-hmac-md5.c: New file.
54263
54264         * modules/hmac-md5-tests: New file.
54265
54266         * modules/hmac-md5: New file.
54267
54268 2005-10-06  Simon Josefsson  <jas@extundo.com>
54269
54270         * m4/hmac-md5.m4: New file.
54271
54272         * m4/memxor.m4: Require gl_C_RESTRICT.
54273
54274 2005-10-06  Simon Josefsson  <jas@extundo.com>
54275
54276         * lib/memxor.c (memxor): Avoid casts and warnings.
54277
54278 2005-10-06  Simon Josefsson  <jas@extundo.com>
54279
54280         * lib/hmac-md5.c: New file.
54281
54282         * lib/hmac.h: New file.
54283
54284 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54285
54286         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
54287         promotes to int, not unsigned int, to catch the AIX 5.3
54288         compiler bug.
54289
54290 2005-10-05  Simon Josefsson  <jas@extundo.com>
54291
54292         * modules/memxor: New file.
54293
54294         * modules/iconv (Files): Move config.rpath to havelib, it is used
54295         there.
54296
54297         * modules/havelib (Files): Add config.rpath.
54298
54299 2005-10-05  Simon Josefsson  <jas@extundo.com>
54300
54301         * m4/memxor.m4: New file.
54302
54303 2005-10-05  Simon Josefsson  <jas@extundo.com>
54304
54305         * lib/memxor.c (memxor): Fix compiler error.
54306
54307         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
54308         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
54309
54310         * lib/memxor.h, lib/memxor.c: New files.
54311
54312         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
54313         we assume all systems have it, suggested by Jim Meyering
54314         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
54315         any systems lack sys/socket.h; mingw32 is known to lack it, but we
54316         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
54317         same reasons.
54318
54319 2005-10-05  Simon Josefsson  <jas@extundo.com>
54320
54321         * config/srclist.txt: Add glibc bug 1423 for md5.h.
54322
54323 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54324
54325         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
54326         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
54327         needed, since the source code now assumes these .h files.
54328
54329 2005-10-05  Derek Price  <derek@ximbiot.com>
54330
54331         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
54332
54333 2005-10-05  Bruno Haible  <bruno@clisp.org>
54334
54335         * modules/stdint (License): Change to LGPL.
54336
54337 2005-10-04  Simon Josefsson  <jas@extundo.com>
54338
54339         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
54340         D. Baushke" <mdb@gnu.org>.
54341
54342 2005-10-04  Bruno Haible  <bruno@clisp.org>
54343
54344         * lib/verify.h (verify_true): Provide alternative definition for C++.
54345
54346 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
54347
54348         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
54349         (SSIZE_MAX): New macro, if not already defined.
54350         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
54351         than 2 GiB.
54352
54353 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54354
54355         Sync from coreutils.
54356         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
54357         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
54358         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
54359         ULLONG_MAX doesn't work with 2.7.2.1.
54360
54361 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54362
54363         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
54364         From Ben Pfaff.
54365
54366         * modules/exclude (Depends-on): Depend on verify.
54367         * modules/strtoimax (Depends-on): Likewise.
54368         * modules/utimecmp (Depends-on): Likewise.
54369
54370 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54371
54372         * lib/exclude.c: Include verify.h.
54373         (verify): Remove.  All callers changed to use verify.h's version.
54374         * lib/strtoimax.c: Likewise.
54375         * lib/utimecmp.c: Likewis.e
54376
54377         Sync from coreutils.
54378         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
54379         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
54380         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
54381         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
54382         bother returning ENOSYS if settimeofday or stime fails; just let
54383         them return whatever errno they want to return.
54384         * lib/utimens.c: Include unistd.h, for dup2.
54385         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
54386         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
54387
54388 2005-10-02  Jim Meyering  <jim@meyering.net>
54389
54390         Sync from coreutils.
54391         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
54392         from glibc-2.2.5 that fails for read-only files.
54393
54394 2005-10-02  Jim Meyering  <jim@meyering.net>
54395
54396         Sync from coreutils.
54397         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
54398         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
54399         `#if HAVE_CONFIG_H'.
54400         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
54401         Remove AT_FDCWD test.
54402         Do not consume the fd unless successful.
54403         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
54404         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
54405         block, so that we don't even try to compile it if settimeofday is
54406         available.  This works around a compilation failure on OSF1 V5.1,
54407         due to stime requiring a `long int*' while tv_sec is `int'.
54408
54409 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
54410
54411         Sync from coreutils.
54412         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
54413         against `yes', rather than just testing for nonempty.
54414
54415 2005-10-01  Simon Josefsson  <jas@extundo.com>
54416
54417         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
54418         and Darwin.
54419
54420         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
54421         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
54422         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
54423         freeaddrinfo and gai_strerror are declared by the POSIX headers.
54424         Check if struct addrinfo is declared.
54425
54426 2005-10-01  Simon Josefsson  <jas@extundo.com>
54427
54428         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
54429         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
54430         AI_* and EAI_* definitions.  Protect function declarations.
54431
54432 2005-10-01  Jim Meyering  <jim@meyering.net>
54433
54434         Sync from coreutils.
54435
54436         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
54437         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
54438         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
54439         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54440         in the inet and nsl libraries.  Required on Solaris 5.7.
54441
54442 2005-10-01  Jim Meyering  <jim@meyering.net>
54443
54444         Sync from coreutils.
54445         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54446         in the inet and nsl libraries.  Required on Solaris 5.7.
54447
54448 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
54449
54450         * lib/getdelim.c (getdelim): Remove unused variables.
54451
54452 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54453
54454         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
54455         so that the code works even with ancient cpp.  Portability problem
54456         with GCC 2.7.2.1 reported by Thomas M.Ott.
54457
54458 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54459
54460         * modules/regex (Depends-on): Add strcase.
54461
54462         * modules/gethostname (Licence): Change from GPL to LGPL, since
54463         gethostname.c is a trivial implementation of a standard library
54464         function.
54465         * modules/poll (License): Change from GPL to LGPL, since it's
54466         derived from LGPL code.
54467
54468 2005-09-27  Jim Meyering  <jim@meyering.net>
54469
54470         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
54471         HAVE_CONFIG_H.
54472
54473         * lib/intprops.h (signed_type_or_expr__): Define.
54474         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
54475         for unsigned types.
54476
54477 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54478
54479         * lib/verify.h (verify_expr): Remove, replacing with:
54480         (verify_true): New macro that returns true instead of void.
54481         (verify_type__): Remove.
54482         (verify): Use verify_true rather than verify_type__.
54483
54484 2005-09-26  Bruno Haible  <bruno@clisp.org>
54485
54486         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
54487         is necessary.
54488         (lib_SOURCES): Remove mbchar.c.
54489         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
54490         (Files): Add m4/mbrtowc.m4.
54491         * modules/mbiter: Likewise.
54492         * modules/mbuiter: Likewise.
54493
54494 2005-09-26  Bruno Haible  <bruno@clisp.org>
54495
54496         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
54497         compile mbchar.c if they are not both present.
54498         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
54499         * m4/mbiter.m4 (gl_MBITER): Likewise.
54500         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
54501         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
54502         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
54503
54504 2005-09-25  Jim Meyering  <jim@meyering.net>
54505
54506         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
54507         also uses socklen_t.
54508
54509 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
54510
54511         * lib/utimens.c (ENOSYS): Define if not already defined.
54512         (futimens): Support having a null PATH if the file descriptor
54513         is nonnegative.
54514
54515         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
54516         Remove.
54517         (__attribute): Define to empty unless GCC 3.1 or later.
54518         This works around a core dump on OpenBSD 3.4, which has GCC
54519         2.95.3, which dumps core when given __attribute__(()).  It also
54520         simplifies other tests, since we really don't want to bother with
54521         worrying about which ancient version of GCC supported what.
54522         Original problem reported by Yoann Vandoorselaere, with part of
54523         the fix suggested by Derek Price.
54524
54525 2005-09-24  Jim Meyering  <jim@meyering.net>
54526
54527         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
54528         so we can once again use a positive bitfield width of 1 -- now we
54529         don't have to explain why we were using a bitfield width of 2.
54530
54531 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54532
54533         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
54534         and similarly for the other external symbols.  Problem reported
54535         by James Gallager.
54536
54537         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
54538         bug reported by Jim Meyering.
54539
54540         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
54541         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
54542         not needed, since socklen is a prerequisite module.
54543
54544 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54545
54546         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
54547         Problem reported by Eric Blake.
54548         (getaddrinfo): Initialize se so that it's not garbage.
54549         Redo internal storage allocation so that it doesn't make unportable
54550         assumptions about alignment.
54551         Fix a memory leak.
54552
54553         * lib/utimens.c (futimens): Use futimesat if available.
54554         Prefer it to futimes since it doesn't have the futimes bug.
54555
54556         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
54557         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
54558         Instead, declare a function that returns a pointer to an array,
54559         and use verify_type__ to declare the size of the array.
54560         Problem and germ of a solution reported by Bruno Haible.
54561         (verify_type__): Use 2, not 1, for bitfield size, to avoid
54562         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
54563
54564 2005-09-23  Jim Meyering  <jim@meyering.net>
54565
54566         Sync from coreutils.
54567         Correct build failure (socklen_t not defined) on at least
54568         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
54569         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
54570
54571 2005-09-23  Jim Meyering  <jim@meyering.net>
54572
54573         * modules/getaddrinfo (Depends-on): Add socklen.
54574
54575 2005-09-23  Bruno Haible  <bruno@clisp.org>
54576
54577         * tests/test-verify.c: New file.
54578
54579 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54580
54581         Sync from coreutils.
54582
54583         * modules/argmatch (Depends-on): Add verify.
54584         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54585         unistd-safer.
54586         * modules/save-cwd (Depends-on): Likewise.
54587
54588         * modules/openat (Files): Add lib/openat-die.c.
54589         (Depends-on): Remove error, exitfail.
54590         Add dirname.
54591
54592         * modules/verify: New file.
54593         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54594         with "verify" module.
54595
54596 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54597
54598         Sync from coreutils.
54599
54600         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54601         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54602         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54603         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54604         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54605         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54606         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54607         Don't bother checking for string.h, stdlib.h, unistd.h.
54608         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54609         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54610         module's job.
54611         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54612         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54613
54614         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54615         (gl_GETDATE): Use it.
54616
54617         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54618
54619 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54620
54621         Sync from coreutils.
54622
54623         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54624         stat-time.h.
54625         * lib/argmatch.h: Include verify.h
54626         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54627         (ARGMATCH_ASSERT): Remove; unused.
54628         * lib/canonicalize.c: Assume STDC_HEADERS.
54629         * lib/exclude.c: Include "strcase.h".
54630         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54631         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54632         and stdio-safer.h.
54633         (getusershell): Call fopen, not fopen_safer.
54634         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54635         Do not include unistd-safer.h.
54636         (save_cwd): Don't call fd_safer; no longer needed
54637         now that we include fcntl--.h.
54638
54639         * lib/getdate.y (relative_time): New type.
54640         (RELATIVE_TIME_0): New constant.
54641         (parser_control): Use relative_time instead of doing it ourselves.
54642         (%union): Add new relative_time rel member.
54643         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54644         Now typeless.
54645         (relunit, relunit_snumber): Now of type rel.
54646         (zone, rel, relunit, get_date): Adjust to above changes.
54647
54648         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54649         Do not include unistd-safer.h.
54650         (getloadavg): Don't call fd_safer; no longer needed
54651         now that we include fcntl--.h.
54652
54653         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54654         (make_dir_parents): Treat ENOSYS like EEXIST.
54655
54656         Improve quality of diagnostics on restore_cwd failure.
54657         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54658         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54659         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54660         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54661         each time through the loop.  Do not diagnose restore_cwd failure;
54662         that is the caller's job (and perhaps the caller does not care).
54663
54664         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54665         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54666         If the file already exists but is not a directory, don't bother
54667         to try to make its parents.
54668         Close potential file descriptor leak if we can't chdir("/") (!).
54669         Don't always return true if chdir($PWD) fails; return true only
54670         if the requested action was done successfully (except for the
54671         chdir($PWD)).
54672         Don't log final directory unless we actually made it.
54673         Refactor to avoid duplicate code to fix up permissions.
54674         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54675
54676         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54677         to make it a bit faster and (I hope) clearer.
54678         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54679         Fix bug in formats like %2N.
54680
54681         * lib/verify.h: New file.
54682
54683 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54684
54685         Sync from coreutils.
54686         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54687
54688 2005-09-22  Jim Meyering  <jim@meyering.net>
54689
54690         Sync from coreutils.
54691
54692         * m4/lstat.m4 (gl_FUNC_LSTAT):
54693         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54694         Remove obsolete comment.
54695         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54696         * m4/xstrtod.m4: Likewise.
54697
54698         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54699
54700 2005-09-22  Jim Meyering  <jim@meyering.net>
54701
54702         Sync from coreutils.
54703
54704         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54705
54706         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54707         the .tm_year member, since otherwise gcc-4.0 would now warn about
54708         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54709
54710         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54711         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54712
54713         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54714         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54715         when run in a time zone for which daylight savings time is in effect
54716         for the starting date.
54717
54718         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54719         stop us from restricting permissions of just-created absolute-named
54720         directories.
54721         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54722         to restore initial working directory.
54723         * lib/mkdir-p.c (make_dir_parents): New parameter:
54724         different_working_dir, to tell caller if/when we change the working
54725         directory and are unable to return to the initial one.
54726         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54727         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54728         `return false'.  This fixes a bug introduced on 2004-07-30.
54729
54730         * lib/openat.c (fdopendir): Be sure to close the supplied
54731         file descriptor before returning.  This makes our replacement
54732         implementation a little closer to Solaris's, where fdopendir
54733         ties the file descriptor to the returned DIR* pointer.
54734         * lib/openat.c (unlinkat): New function.
54735         * lib/openat.h (unlinkat): Add prototype.
54736         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54737         (openat_restore_fail): Rename from openat_restore_die.
54738         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54739
54740         Provide an alternative to exiting immediately upon save_cwd or
54741         restore_cwd failure.  Now, an application can arrange e.g.,
54742         to perform a longjump in that case.
54743         * lib/openat.c: Include dirname.h.
54744         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54745         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54746         and openat_restore_die rather than calling error directly.
54747         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54748
54749         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54750         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54751         define.
54752
54753         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54754         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54755                             int utc, int nanoseconds);
54756         Background:
54757         date should not have to allocate a megabyte of virtual memory to
54758         handle a format argument like +%1048575T.  When implemented with
54759         strftime, it must allocate such a buffer, use strftime to fill it
54760         in, print it, then free it.
54761         With fprintftime, it simply prints everything and exits.
54762         With no need for memory allocation, that's one fewer way to fail.
54763         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54764         optional field width, not before, so we accept %9:z, not %:9z.
54765         (my_strftime): Be sure to use L_('x') for literals.
54766
54767         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54768         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54769         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54770         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54771         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54772         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54773         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54774         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54775         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54776         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54777         * lib/xgethostname.c, lib/xreadlink.c:
54778         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54779
54780         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54781         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54782         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54783         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54784         and don't include <sys/file.h>).
54785
54786 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54787
54788         Sync from coreutils.
54789
54790         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54791         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54792         [!LDAV_DONE]: Avoid unused variable warning.
54793
54794 2005-09-21  Bruno Haible  <bruno@clisp.org>
54795
54796         * lib/unicodeio.h (unicode_to_mb): New declaration.
54797
54798 2005-09-20  Derek Price  <derek@ximbiot.com>
54799
54800         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54801         getaddrinfo.h.
54802
54803 2005-09-20  Bruno Haible  <bruno@clisp.org>
54804
54805         * gnulib-tool: Remove trailing slashes from the values specified for
54806         --source-base, --m4-base, --tests-base, --aux-dir.
54807         Suggested by Simon Josefsson <jas@extundo.com>.
54808
54809 2005-09-20  Bruno Haible  <bruno@clisp.org>
54810
54811         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54812         func_modules_to_filelist, func_import, func_create_testdir): Make all
54813         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54814         change when gnulib-tool is invoked in a different locale.
54815
54816 2005-09-19  Simon Josefsson  <jas@extundo.com>
54817
54818         * m4/socklen.m4: Fix typo.
54819
54820 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54821
54822         Use a consistent style for including <config.h>.
54823         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54824         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54825         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54826         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54827         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54828         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
54829         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
54830         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
54831         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
54832         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
54833         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
54834         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
54835         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
54836         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
54837         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
54838         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
54839         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
54840         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
54841         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
54842         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
54843         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
54844         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
54845         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
54846         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
54847         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
54848         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
54849         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
54850         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
54851         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
54852         lib/xstrtoumax.c, lib/yesno.c:
54853         Standardize inclusion of config.h.
54854         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
54855         lib/inttostr.h:  Removed inclusion of config.h from header files.
54856         * lib/inttostr.c:  Adjusted in-tree users.
54857         * lib/timespec.h: Remove superfluous warning to include config.h.
54858         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
54859         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
54860         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
54861         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
54862         config.h with HAVE_CONFIG_H.
54863
54864 2005-09-19  Jim Meyering  <jim@meyering.net>
54865
54866         * modules/pathmax (License): Change to LGPL.
54867
54868 2005-09-19  Derek Price  <derek@ximbiot.com>
54869
54870         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
54871
54872 2005-09-19  Bruno Haible  <bruno@clisp.org>
54873
54874         * gnulib-tool (import): Provide default for --tests-base.
54875
54876 2005-09-19  Bruno Haible  <bruno@clisp.org>
54877
54878         * doc/quote.texi: New file, extracted from gnulib.texi.
54879         * doc/ctime.texi: New file, extracted from gnulib.texi.
54880         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
54881         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
54882         * doc/gnulib.texi: Include them.
54883
54884 2005-09-18  Bruno Haible  <bruno@clisp.org>
54885
54886         Portability fix.
54887         * gnulib-tool (func_readlink): New function.
54888         (func_ln_if_changed): Use it.
54889
54890 2005-09-18  Bruno Haible  <bruno@clisp.org>
54891
54892         * gnulib-tool: Support --with-tests also with --import.
54893         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
54894         (func_import): Use variables $testsbase and $inctests. Emit a
54895         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
54896         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
54897         SUBDIRS += $testsdir.
54898         (func_create_testdir): Update.
54899
54900 2005-09-18  Bruno Haible  <bruno@clisp.org>
54901
54902         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
54903         instead of $dry_run.
54904         (func_cp_if_changed, func_mv_if_changed): Remove functions.
54905         (func_ln_if_changed): Don't handle dry-run here.
54906         (func_import): In dry-run mode, detect more precisely which actions
54907         would be performed, and don't use "...ing" verbs.
54908
54909 2005-09-18  Bruno Haible  <bruno@clisp.org>
54910
54911         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
54912         (func_import): Use join on two temporary files instead of three nested
54913         loops, in order to determine which files are new or old.
54914
54915 2005-09-18  Bruno Haible  <bruno@clisp.org>
54916
54917         * gnulib-tool (func_import): Comment out code that spits out the
54918         new files with --dry-run.
54919
54920 2005-09-18  Bruno Haible  <bruno@clisp.org>
54921
54922         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
54923
54924 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54925
54926         * lib/stat-time.h: New file.
54927         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
54928         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
54929         in a different way.
54930         (timespec_cmp): New function.
54931         * lib/utimecmp.c: Include stat-time.h.
54932         (SYSCALL_RESOLUTION): Depend on whether various struct stat
54933         members exist, not on the obsolescent ST_MTIM_NSEC.
54934         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
54935
54936 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54937
54938         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
54939
54940 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54941
54942         * MODULES.html.sh (File system functions): Add stat-time.
54943         * modules/stat-time: New file.
54944         * modules/timespec (Files): Remove m4/st_mtim.m4; this
54945         is now done in a different way, by the stat-time module.
54946         * modules/utimecmp (Depends-on): Add stat-time.
54947
54948 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54949
54950         * m4/st_mtim.m4: Remove.  Superseded by...
54951         * m4/stat-time.m4: New file.
54952         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
54953         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
54954
54955 2005-09-15  Derek Price  <derek@ximbiot.com>
54956
54957         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
54958
54959 2005-09-15  Derek Price  <derek@ximbiot.com>
54960
54961         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
54962         * lib/regex_internal.c: Ditto, using this...
54963         (__GNUC_PREREQ): ...new macro.
54964         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
54965         using...
54966         (__GNUC_PREREQ): ...this new macro.
54967
54968         * lib/strstr.h: Include string.h. Define strstr as a macro here.
54969
54970 2005-09-15  Derek Price  <derek@ximbiot.com>
54971             Paul Eggert  <eggert@cs.ucla.edu>
54972
54973         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
54974         changes, consolidating in...
54975         * lib/regex_internal.h: ...this file.
54976
54977 2005-09-13  Jim Meyering  <jim@meyering.net>
54978
54979         * lib/canon-host.c: Filter through gnu indent and reword comments
54980         slightly.
54981         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
54982
54983 2005-09-13  Derek Price  <derek@ximbiot.com>
54984
54985         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
54986         failure.
54987         Reported by Jim Meyering  <jim@meyering.net>.
54988
54989 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54990
54991         * lib/base64.c: Typo.
54992         (base64_encode): Put b64str in initialized data section.
54993
54994 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
54995
54996         Merge glibc and coreutils changes into gnulib, plus a few
54997         extra fixes.
54998         * lib/md5.c: Use #error rather than a string.
54999         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
55000         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
55001         (__attribute__): Define to empty for non recent-GCC.
55002         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
55003         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
55004         Renamed from their non-__ counterparts, with new macros replacing
55005         them if not _LIBC.  Add __THROW attribute.
55006         (rol): Remove.
55007         (struct md5_ctx): Align buffer if using GCC.
55008         * lib/sha1.h (struct sha1_ctx): Likewise.
55009         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
55010         The old name was backwards.
55011         (NOTSWAP): Remove; not used.
55012         (rol): New macro, moved here from md5.h.
55013         (sha1_process_block): Remove a FIXME that doesn't make sense.
55014
55015 2005-09-12  Derek Price  <derek@ximbiot.com>
55016
55017         Return usable errors from canon-host.
55018         * lib/canon-host.h: New file.
55019         * lib/canon-host.c (canon_host): Wrap...
55020         (canon_host_r): ...this new function, which now relies exclusively on
55021         getaddrinfo.
55022         (ch_strerror): New function.
55023         (last_cherror): New global.
55024         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
55025         interface.
55026         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
55027         void *.
55028         (freeaddrinfo): Free ai->ai_canonname when set.
55029
55030 2005-09-12  Derek Price  <derek@ximbiot.com>
55031
55032         Make canon-host require getaddrinfo.
55033         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
55034         AC_LIBSOURCE canon-host.h.  Call...
55035         (gl_PREREQ_CANON_HOST): ...this new function, which requires
55036         gl_GETADDRINFO.
55037         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
55038
55039 2005-09-12  Derek Price  <derek@ximbiot.com>
55040
55041         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
55042         LGPL.
55043         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
55044
55045 2005-09-12  Derek Price  <derek@ximbiot.com>
55046
55047         * lib/gai_strerror.c: Include config.h when available.  Include
55048         getaddrinfo.h before other headers to test interface.
55049         Reported by Larry Jones <lawrence.jones@ugs.com>.
55050
55051 2005-09-12  Derek Price  <derek@ximbiot.com>
55052             Paul Eggert  <eggert@cs.ucla.edu>
55053
55054         * modules/glob (Files): Add glob-libc.h.
55055
55056 2005-09-12  Derek Price  <derek@ximbiot.com>
55057             Paul Eggert  <eggert@cs.ucla.edu>
55058
55059         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
55060         glob_.h, glob-libc.h.
55061         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
55062
55063 2005-09-12  Derek Price  <derek@ximbiot.com>
55064             Paul Eggert  <eggert@cs.ucla.edu>
55065
55066         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
55067         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
55068         protecting things that should be done only in gnulib contexts.
55069         * lib/glob_.h: New file, containing only the glob things needed for
55070         gnulib.
55071         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
55072         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
55073         (glob, globfree, glob_pattern_p): Now defined simply in terms of
55074         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
55075         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
55076         and to respect the namespace rules better.
55077
55078 2005-09-08  Simon Josefsson  <jas@extundo.com>
55079
55080         * modules/socklen: New file.
55081
55082 2005-09-08  Simon Josefsson  <jas@extundo.com>
55083
55084         * m4/socklen.m4: New file.
55085
55086 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55087
55088         * modules/utimens (Files): Add m4/utimbuf.m4, since
55089         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
55090         Reported by Sergey Poznyakoff.
55091
55092 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55093
55094         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
55095         definitions, since that's the preferred style in glibc.
55096         Fix a minor spacing issue, and update copyright notice to match
55097         glibc's.
55098
55099 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55100
55101         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
55102
55103 2005-09-06  Simon Josefsson  <jas@extundo.com>
55104
55105         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
55106         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
55107
55108 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55109
55110         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
55111         warning.
55112
55113 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55114
55115         * config/srclist.txt: Add glibc bug 1302.
55116
55117 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
55118
55119         Change bitset word type from unsigned int to unsigned long int,
55120         as this has better performance on typical 64-bit hosts.
55121         Port bitset code to hosts with unusual word sizes.
55122         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
55123         (build_collating_symbol):
55124         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
55125         argument is a bitset.  This is merely a style issue, but it makes
55126         it clearer that an entire array is expected.
55127         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
55128         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
55129         Port to the case where bitset_word is not the same as unsigned int.
55130         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55131         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
55132         Likewise.
55133         * lib/regexec.c (check_dst_limits_calc_pos_1,
55134         check_subexp_matching_top):
55135         (build_trtable, group_nodes_into_DFAstates):
55136         Likewise.
55137         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
55138         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
55139         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
55140         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
55141         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
55142         * lib/regcomp.c (optimize_subexps, lower_subexp):
55143         Work even if bitset_word has holes in its bitwise representation.
55144         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
55145         * lib/regexec.c (check_dst_limits_calc_pos_1,
55146         check_subexp_matching_top):
55147         Likewise.
55148         * lib/regex_internal.c (re_string_reconstruct):
55149         Don't assume UCHAR_MAX == 255.
55150         * lib/regex_internal.h (bitset_set_all): Likewise.
55151         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
55152         All uses changed.
55153         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
55154         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
55155         All uses changed.
55156         (BITSET_WORD_MAX): New macro.
55157         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
55158         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
55159         (bitset_empty, bitset_copy):
55160         Prefer sizeof (bitset) to multiplying it out ourselves.
55161         (bitset_not_merge): Remove; unused.
55162         (bitset_contain): Return bool, not unsigned int with one bit on.
55163         All callers changed.
55164         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
55165         alignment than re_node_set; do this by defining a new internal
55166         type struct dests_alloc and using it to allocate memory.
55167
55168 2005-09-05  Bruno Haible  <bruno@clisp.org>
55169
55170         * gnulib-tool (func_import): Fix comparison in handling of symbolic
55171         links.
55172
55173 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
55174
55175         * modules/size_max (Makefile.am): Add size_max.h
55176
55177 2005-09-04  Derek Price  <derek@ximbiot.com>
55178
55179         * gnulib-tool (func_import): Fix reversed $symbolic logic.
55180
55181 2005-09-03  Simon Josefsson  <jas@extundo.com>
55182
55183         * gnulib-tool: Fix typo.
55184
55185 2005-09-03  Simon Josefsson  <jas@extundo.com>
55186
55187         * config/srclist.txt: Add glibc bug 1293.
55188
55189 2005-09-03  Derek Price  <derek@ximbiot.com>
55190
55191         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
55192         From Larry Jones <lawrence.jones@ugs.com>.
55193
55194 2005-09-02  Simon Josefsson  <jas@extundo.com>
55195
55196         * modules/socklen: New file.
55197
55198 2005-09-02  Simon Josefsson  <jas@extundo.com>
55199
55200         * modules/havelib: New module.
55201
55202         * modules/gettext, modules/iconv, modules/lock, modules/readline:
55203         Use havelib.
55204
55205 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55206
55207         Check for arithmetic overflow when calculating sizes, to prevent
55208         some buffer-overflow issues.  These patches are conservative, in the
55209         sense that when I couldn't determine whether an overflow was possible,
55210         I inserted a run-time check.
55211         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
55212         macros.
55213         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
55214         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
55215         (re_xnrealloc, re_x2nrealloc): New inline functions.
55216         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
55217         parse_bracket_exp):
55218         (build_equiv_class, build_charclass): Check for arithmetic overflow
55219         in size expression calculations.
55220         * lib/regex_internal.c (re_string_realloc_buffers):
55221         (build_wcs_upper_buffer, re_node_set_add_intersect):
55222         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
55223         (re_dfa_add_node, register_state): Likewise.
55224         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
55225         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
55226         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
55227         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
55228
55229 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55230
55231         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55232         m4/ulonglong.m4.  Problem reported by Martin Lambers.
55233
55234 2005-09-02  Bruno Haible  <bruno@clisp.org>
55235
55236         Support for lib vs. lib64 distinction on biarch platforms.
55237         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
55238         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
55239         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
55240
55241 2005-09-02  Bruno Haible  <bruno@clisp.org>
55242
55243         * gnulib-tool (import): In the other first-use case, provide defaults
55244         as well.
55245
55246 2005-09-02  Bruno Haible  <bruno@clisp.org>
55247
55248         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
55249         patches not yet found in the latest gettext release.
55250
55251 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55252
55253         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
55254         to avoid a collision with bits/local_lim.h in glibc.
55255         All uses changed.  Problem reported by Dmitry V. Levin in
55256         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
55257
55258         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
55259         bugs in int versus size_t comparisons.
55260         (re_string_context_at): Fix bug where the code assumed that
55261         Idx is signed.
55262
55263         Use bool where appropriate.
55264         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
55265         All callers changed.
55266         (calc_eclosure_iter): Likewise, for ROOT arg.
55267         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
55268         (build_charclass_op): Likewise, for NON_MATCH arg.
55269         * lib/regex_internal.c (re_string_allocate, re_string_construct):
55270         (re_string_construct_common): Likewise, for ICASE arg.
55271         * lib/regexec.c (re_search_2_stub, re_search_stub):
55272         Likewise, for RET_LEN arg.
55273         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
55274         (set_regs): Likewise, for FL_BACKTRACK arg.
55275         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
55276         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
55277         (calc_eclosure_iter, parse_bracket_exp):
55278         Use bool for internal variables that are booleans.
55279         * lib/regexec.c (re_search_internal, check_matching,
55280         proceed_next_node):
55281         (set_regs, build_sifted_states, sift_states_bkref):
55282         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
55283         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55284         (find_collation_sequence_value):
55285         Likewise.
55286         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
55287         (re_node_set_compare):
55288         Return bool, not int. All callers changed.
55289         * lib/regexec.c (check_halt_node_context, check_dst_limits):
55290         (build_trtable, check_node_accept): Likewise.
55291         * lib/regex_internal.h: Include stdbool.h.
55292
55293         Fix bugs uncovered when converting to bool.
55294         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
55295         failure instead of charging ahead blindly.
55296         * lib/regex_internal.c (register_state): Likewise.
55297         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
55298         for freeing internal storage.
55299         (group_nodes_into_DFA_states): Use unsigned int, not int, for
55300         bitset pieces used as boolean, to avoid undefined behavior
55301         on hosts that do int overflow checking.
55302
55303 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55304
55305         * config/srclist.txt: Add glibc bugs 1285-1287.
55306
55307 2005-09-01  Jim Meyering  <jim@meyering.net>
55308
55309         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
55310         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
55311         Require gl_STAT_MACROS, too.
55312
55313 2005-09-01  Bruno Haible  <bruno@clisp.org>
55314
55315         * gnulib-tool (import): In the first-use case, provide defaults.
55316
55317 2005-09-01  Bruno Haible  <bruno@clisp.org>
55318
55319         * gnulib-tool (func_import): Remove the .tmp files.
55320
55321 2005-09-01  Bruno Haible  <bruno@clisp.org>
55322
55323         * gnulib-tool (func_import): Fix handling of symbolic links.
55324
55325 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55326
55327         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
55328         old glibc regex code mishandles strings longer than 2**31 bytes.
55329         This patch fixes this when the regex code is used in gnulib
55330         (i.e., outside glibc).
55331
55332         This patch should not affect the use of the regex code inside
55333         glibc.  No doubt this problem also needs to be handled for glibc
55334         as well, but the result will be an incompatible change to the
55335         glibc ABI, and the old ABI will have to be supported too.  That
55336         can be the the subject for another patch.
55337
55338         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
55339         governing whether the rest of this patch is active.  By default,
55340         the macro is disabled and the patch has no effect.
55341         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
55342         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
55343         (struct re_pattern_buffer, re_search, re_search_2, re_match):
55344         (re_match_2, re_set_registers): Use the new types.
55345         * lib/regex_internal.h (Idx, re_hashval_t): New types.
55346         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
55347         New macros.
55348         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
55349         (re_string_context_at, bin_tree_t, re_dfastate_t):
55350         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
55351         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
55352         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
55353         (re_string_char_size_at, re_string_wchar_at):
55354         (re_string_elem_size_at):
55355         Use the new types and macros to port to 64-bit hosts.
55356         Use unsigned types for internal values, so that the code
55357         mostly works even for arrays larger than SSIZE_MAX.
55358         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
55359         (search_duplicated_node, calc_eclosure_iter, fetch_number):
55360         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
55361         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
55362         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
55363         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
55364         (calc_inveclosure, parse_dup_op, build_range_exp):
55365         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
55366         (fetch_number, create_token_tree, mark_opt_subexp):
55367         Likewise.
55368         * lib/regex_internal.c (re_string_construct_common,
55369         create_ci_newstate):
55370         (create_cd_newstate, re_string_allocate, re_string_construct):
55371         (re_string_realloc_buffers, build_wcs_upper_buffer):
55372         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55373         (re_string_reconstruct, re_string_peek_byte_case):
55374         (re_string_fetch_byte_case, re_string_context_at):
55375         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55376         (re_node_set_init_copy, re_node_set_add_intersect):
55377         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55378         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55379         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55380         (re_acquire_state, re_acquire_state_context, register_state):
55381         Likewise.
55382         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
55383         search_cur_bkref_entry):
55384         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
55385         (re_search_internal, re_search_2_stub, re_search_stub)
55386         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
55387         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
55388         (update_cur_sifted_state, check_dst_limits):
55389         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55390         (check_subexp_limits, sift_states_bkref, merge_state_array):
55391         (check_subexp_matching_top, get_subexp, get_subexp_sub):
55392         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
55393         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55394         (expand_bkref_cache, check_node_accept_bytes):
55395         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
55396         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
55397         (acquire_init_state_context, check_halt_node_context):
55398         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
55399         (sift_states_backward, clean_state_log_if_needed):
55400         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
55401         (find_recover_state, transit_state_sb, transit_state_mb):
55402         (transit_state_bkref, build_trtable, match_ctx_clean):
55403         Likewise.
55404         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
55405         to work around an assumption that REG_MISSING is negative.
55406
55407         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
55408         (seek_collating_symbol_entry) [defined _LIBC]:
55409         (lookup_collation_sequence_value) [defined _LIBC]:
55410         (build_range_exp, build_collating_symbol) [defined _LIBC]:
55411         Use prototypes rather than old-style function definitions.
55412         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
55413         (transit_state_sb) [0]:
55414         (find_collation_sequence_value) [defined _LIBC]: Likewise.
55415
55416         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
55417         rm_eo.
55418
55419         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
55420         (optimize_subexps, lower_subexp):
55421         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
55422         since the signed shift might overflow.  Use 1u<<31 instead.
55423         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55424         Likewise.
55425         * lib/regexec.c (check_dst_limits_calc_pos_1,
55426         check_subexp_matching_top): Likewise.
55427
55428         * lib/regcomp.c (optimize_subexps, lower_subexp):
55429         Use CHAR_BIT rather than 8, for clarity.
55430         * lib/regexec.c (check_dst_limits_calc_pos_1):
55431         (check_subexp_matching_top): Likewise.
55432         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
55433         have to worry about portability issues when shifting it left.
55434         Remove no-longer-needed test for table_size > 0.
55435         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
55436         in a word, as the resulting behavior is undefined.
55437         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
55438         in one case, a <= should have been an <, and in another case the
55439         whole test was missing.
55440         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
55441         the standard name CHAR_BIT.
55442         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
55443         this is not true on one's complement and signed-magnitude hosts.
55444
55445         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
55446         next_last_offset.
55447         (struct re_dfa_t): Remove unused member states_alloc.
55448         * lib/regcomp.c (init_dfa): Don't initialize unused members.
55449
55450 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55451
55452         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
55453         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
55454         and large-file glibc and in 32-bit large-file Solaris.
55455
55456 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55457
55458         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
55459         lengths fit in regoff_t; this isn't true if regoff_t is the same
55460         width as size_t.
55461         * lib/regex.c (re_search_internal): 5th arg is LAST_START
55462         (= START + RANGE) instead of RANGE.  This avoids overflow
55463         problems when regoff_t is the same width as size_t.
55464         All callers changed.
55465         (re_search_2_stub): Check for overflow when adding the
55466         sizes of the two strings.
55467         (re_search_stub): Check for overflow when adding START
55468         to RANGE; if it occurs, substitute the extreme value.
55469
55470 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
55473
55474 2005-08-31  Jim Meyering  <jim@meyering.net>
55475
55476         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
55477         a pointer-to-const.
55478         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
55479         (register_state): Likewise.
55480         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
55481         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55482         (group_nodes_into_DFAstates): Likewise.
55483
55484 2005-08-31  Jim Meyering  <jim@meyering.net>
55485
55486         * check-module: Add a FIXME comment.
55487
55488 2005-08-31  Eric Blake  <ebb9@byu.net>
55489
55490         * modules/unistd-safer (Files): Add unistd--.h.
55491         * modules/stdio-safer (Files): Add stdio--.h.
55492
55493 2005-08-31  Derek Price  <derek@ximbiot.com>
55494
55495         * lib/getdelim.c (getdelim): Return EOF on EOF.
55496         Reported by Larry Jones <lawrence.jones@ugs.com>.
55497
55498 2005-08-31  Bruno Haible  <bruno@clisp.org>
55499
55500         Avoid unnecessary diffs in the generated lib/Makefile.am.
55501         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
55502         the generated files.
55503         (func_import): Don't set cmd.
55504
55505 2005-08-31  Bruno Haible  <bruno@clisp.org>
55506
55507         * lib/strstr.c: Include <stddef.h>, for NULL.
55508         * lib/strcasestr.c: Likewise.
55509         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55510
55511 2005-08-31  Bruno Haible  <bruno@clisp.org>
55512
55513         * gnulib-tool: New option --macro-prefix.
55514         (func_import): Use macro_prefix.
55515         (import): Handle option --macro-prefix.
55516
55517 2005-08-31  Bruno Haible  <bruno@clisp.org>
55518
55519         * gnulib-tool (import): Rename most ac_* variables to cached_*.
55520         Also use new variables cached_lgpl, cached_libtool.
55521
55522 2005-08-31  Bruno Haible  <bruno@clisp.org>
55523
55524         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
55525         always instantiating them.
55526
55527 2005-08-31  Bruno Haible  <bruno@clisp.org>
55528
55529         * gnulib-tool (func_import): Read the previous cached settings
55530         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
55531         earlier added by gnulib but are now dropped. Warn when a gnulib file
55532         overwrites a non-gnulib file.
55533
55534 2005-08-31  Bruno Haible  <bruno@clisp.org>
55535
55536         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
55537         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
55538         projects that don't keep autogenerated files in CVS. Put into
55539         actioncmd only the specified modules, not the transitive closure.
55540
55541 2005-08-31  Bruno Haible  <bruno@clisp.org>
55542
55543         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
55544         Create directories that shall be filled.
55545         (import): Don't look for gl_* macros in configure.ac. Recurse across
55546         all directories containing a gnulib-cache.m4 files, if meaningful.
55547
55548 2005-08-31  Bruno Haible  <bruno@clisp.org>
55549
55550         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
55551         (import): Set seen_libtool when we see gl_LIBTOOL.
55552
55553 2005-08-31  Bruno Haible  <bruno@clisp.org>
55554
55555         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
55556         declaration macro definitions from generated gnulib.m4.
55557
55558 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
55559
55560         * lib/iconvme.h: Add prototype for iconv_alloc.
55561
55562 2005-08-29  Simon Josefsson  <jas@extundo.com>
55563
55564         * lib/iconvme.c: Fix errno.
55565
55566 2005-08-29  Bruno Haible  <bruno@clisp.org>
55567
55568         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
55569         that it works when the directory contains spaces.
55570
55571 2005-08-29  Bruno Haible  <bruno@clisp.org>
55572
55573         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
55574
55575 2005-08-29  Bruno Haible  <bruno@clisp.org>
55576
55577         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
55578         Emit more advice.
55579
55580 2005-08-29  Bruno Haible  <bruno@clisp.org>
55581         and Stepan Kasal  <kasal@ucw.cz>
55582
55583         * check-module: If more parameters are given, check each of them
55584         separately; add more exceptions, as noted by Jim Meyering.
55585         (check_module): New procedure.
55586         (%exempt_header): Now contains all exceptions.
55587
55588 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55589
55590         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55591
55592 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55593
55594         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55595
55596 2005-08-28  Bruno Haible  <bruno@clisp.org>
55597
55598         * m4/gnulib-tool.m4: New file.
55599
55600 2005-08-27  Jim Meyering  <jim@meyering.net>
55601
55602         * modules/unistd-safer (Files): Add pipe-safer.c.
55603         * modules/fcntl-safer (Files): Add creat-safer.c.
55604
55605 2005-08-27  Jim Meyering  <jim@meyering.net>
55606
55607         * m4/stdlib-safer.m4: New file.  From coreutils.
55608         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55609         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55610         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55611         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55612         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55613
55614 2005-08-27  Jim Meyering  <jim@meyering.net>
55615
55616         * lib/fopen-safer.c: Merge minor changes from coreutils.
55617         * lib/dup-safer.c: Likewise.
55618         * lib/fd-safer.c: Likewise.
55619
55620         Merge from coreutils.
55621         * lib/stdio--.h: New file.
55622         * lib/stdlib--.h: New file.
55623         * lib/mkstemp-safer.c: New file.
55624
55625         GNU tar needs these.
55626         * lib/pipe-safer.c: New file.
55627         * lib/creat-safer.c: New file.
55628         * lib/fcntl--.h (creat): Define to creat_safer.
55629         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55630         * lib/unistd--.h (pipe): Define to pipe_safer.
55631         * lib/unistd-safer.h: Declare pipe_safer.
55632
55633 2005-08-26  Simon Josefsson  <jas@extundo.com>
55634
55635         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55636         Haible <bruno@clisp.org>.
55637
55638 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55639
55640         * lib/regex_internal.h: Remove all references to
55641         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55642         or better.
55643         (bitset_not, bitset_merge, bitset_not_merge):
55644         (bitset_mask, re_string_allocate, re_string_construct):
55645         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55646         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55647         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55648         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55649         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55650         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55651         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55652         (re_acquire_state_context):
55653         Remove unnecessary forward decls.
55654         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55655         Put __attribute at function definition,
55656         now that the function decl has been removed.
55657         * lib/regex_internal.c (re_string_peek_byte_case):
55658         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55659         Likewise.
55660
55661 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55662
55663         * m4/regex.m4: Add AC_PREREQ(2.50).
55664         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55665
55666 2005-08-25  Simon Josefsson  <jas@extundo.com>
55667
55668         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55669         __fsetlocking.
55670
55671 2005-08-25  Simon Josefsson  <jas@extundo.com>
55672
55673         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55674         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55675         GLIBC specific code.
55676
55677 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55678
55679         Make regex safe for g++.  This fixes one real bug (an "err"
55680         that should have been "*err").  g++ problem reported by
55681         Sam Steingold.
55682         * lib/regex_internal.h (re_calloc): New macro, consistent with
55683         re_malloc etc.  All callers of calloc changed to use re_calloc.
55684         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55685         not int.  All callers changed.
55686         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55687         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55688         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55689         (find_recover_state): Change "err" to "*err"; this fixes what
55690         appears to be a real bug.
55691         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55692         versus int.
55693
55694 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55695
55696         * modules/regex (Depends-on): Add malloc, since the code
55697         assumes that !malloc(0) means failure.
55698
55699 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55700
55701         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55702
55703         alloca modernization/simplification for regex.
55704         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55705         needs to be at the start of the file, and can be moved into
55706         regex_internal.h and simplified.
55707         * lib/regex_internal.h: Include <alloca.h>.
55708         (__libc_use_alloca) [!defined _LIBC]: New macro.
55709         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55710         now works outside glibc.
55711
55712 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55713
55714         * config/srclist.txt: Add glibc bugs 1241, 1245.
55715
55716 2005-08-25  Jim Meyering  <jim@meyering.net>
55717
55718         * lib/open-safer.c: Include <config.h>.
55719         Otherwise, we'd lose LARGEFILE support in any file using
55720         e.g. "fcntl--.h"
55721
55722 2005-08-25  Bruno Haible  <bruno@clisp.org>
55723
55724         * m4/minmax.m4: Require autoconf 2.52.
55725         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55726         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55727         alternatives of translit over the alphabet.
55728         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55729
55730 2005-08-24  Simon Josefsson  <jas@extundo.com>
55731
55732         * tests/test-getpass.c: New file.
55733
55734 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55735
55736         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55737         for GNU regex features.
55738
55739 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55740
55741         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55742         * lib/regex.h (regerror): Likewise.
55743
55744         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55745         requires this.  (The code never needed it.)
55746
55747         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55748         All uses of recently-renamed identifiers changed to use the new,
55749         POSIX-compliant names.  The code will build and run just fine
55750         without these changes, but it's better to eat our own dog food
55751         and use the standard-conforming names.
55752
55753         * lib/regex.h: Fix a multitude of POSIX name space violations.
55754         These changes have an effect only for programs that define
55755         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55756         do not change anything for programs compiled in the normal way.
55757         Also, there is no effect on the ABI.
55758
55759         (_REGEX_SOURCE): New macro.
55760         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55761         defined and _GNU_SOURCE is not; this fixes a name space violation.
55762
55763         Rename the following macros to obey POSIX requirements.
55764         The old names are still visible as macros if _REGEX_SOURCE is defined.
55765         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55766         RE_BACKSLASH_ESCAPE_IN_LISTS.
55767         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55768         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55769         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55770         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55771         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55772         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55773         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55774         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55775         (REG_INTERVALS): renamed from RE_INTERVALS.
55776         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55777         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55778         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55779         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55780         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55781         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55782         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55783         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55784         RE_UNMATCHED_RIGHT_PAREN_ORD.
55785         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55786         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55787         (REG_DEBUG): renamed from RE_DEBUG.
55788         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55789         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55790         unusual, since we can't clash with the POSIX REG_ICASE.
55791         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55792         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55793         (REG_NO_SUB): renamed from RE_NO_SUB.
55794         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55795         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55796         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55797         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55798         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55799         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55800         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55801         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55802         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55803         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55804         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55805         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55806         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55807         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55808         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55809         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55810         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55811         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55812         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55813         (REG_FIXED): Renamed from REGS_FIXED.
55814         (REG_NREGS): Renamed from RE_NREGS.
55815
55816         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55817         of other REG_* macros, since POSIX says the user is allowed to
55818         #undef these macros selectively.
55819
55820         (reg_errcode_t): Update comment stating what other tables need
55821         to be consistent.
55822
55823         Rename the following enum values to obey POSIX requirements.
55824         The old names are still visible as macros.
55825         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55826         is not defined, since GNU is supposed to be a superset of POSIX as
55827         much as possible, and since we want reg_errcode_t to be a signed
55828         type for implementation consistency.
55829         (_REG_NOERROR): Renamed from REG_NOERROR.
55830         (_REG_NOMATCH): Renamed from REG_NOMATCH.
55831         (_REG_BADPAT): Renamed from REG_BADPAT.
55832         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
55833         (_REG_ECTYPE): Renamed from REG_ECTYPE.
55834         (_REG_EESCAPE): Renamed from REG_EESCAPE.
55835         (_REG_ESUBREG): Renamed from REG_ESUBREG.
55836         (_REG_EBRACK): Renamed from REG_EBRACK.
55837         (_REG_EPAREN): Renamed from REG_EPAREN.
55838         (_REG_EBRACE): Renamed from REG_EBRACE.
55839         (_REG_BADBR): Renamed from REG_BADBR.
55840         (_REG_ERANGE): Renamed from REG_ERANGE.
55841         (_REG_ESPACE): Renamed from REG_ESPACE.
55842         (_REG_BADRPT): Renamed from REG_BADRPT.
55843         (_REG_EEND): Renamed from REG_EEND.
55844         (_REG_ESIZE): Renamed from REG_ESIZE.
55845         (_REG_ERPAREN): Renamed from REG_ERPAREN.
55846         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
55847         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
55848         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
55849         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
55850
55851         (_REG_RE_NAME, _REG_RM_NAME): New macros.
55852         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
55853         changed.  But support the old name if the new one is not defined
55854         and if _REGEX_SOURCE.
55855
55856         Change the following member names in struct re_pattern_buffer.
55857         The old names are still supported if !_REGEX_SOURCE.
55858         The new names are always supported, regardless of _REGEX_SOURCE.
55859         (re_buffer): Renamed from buffer.
55860         (re_allocated): Renamed from allocated.
55861         (re_used): Renamed from used.
55862         (re_syntax): Renamed from syntax.
55863         (re_fastmap): Renamed from fastmap.
55864         (re_translate): Renamed from translate.
55865         (re_can_be_null): Renamed from can_be_null.
55866         (re_regs_allocated): Renamed from regs_allocated.
55867         (re_fastmap_accurate): Renamed from fastmap_accurate.
55868         (re_no_sub): Renamed from no_sub.
55869         (re_not_bol): Renamed from not_bol.
55870         (re_not_eol): Renamed from not_eol.
55871         (re_newline_anchor): Renamed from newline_anchor.
55872
55873         Change the following member names in struct re_registers.
55874         The old names are still supported if !_REGEX_SOURCE.
55875         The new names are always supported, regardless of _REGEX_SOURCE.
55876         (rm_num_regs): Renamed from num_regs.
55877         (rm_start): Renamed from start.
55878         (rm_end): Renamed from end.
55879
55880         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
55881         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
55882         Prepend __ to parameter names.
55883
55884         Undo yesterday's changes.
55885
55886 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55887
55888         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
55889         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
55890         lib/regex.c.
55891
55892 2005-08-24  Jim Meyering  <jim@meyering.net>
55893
55894         Sync from coreutils.
55895         * m4/fcntl-safer.m4: New file.
55896
55897         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
55898         and object files for this module.
55899
55900 2005-08-24  Jim Meyering  <jim@meyering.net>
55901
55902         Sync from coreutils.
55903         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
55904
55905 2005-08-24  Jim Meyering  <jim@meyering.net>
55906
55907         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
55908         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
55909
55910 2005-08-24  Jim Meyering  <jim@meyering.net>
55911
55912         * modules/fcntl-safer: New module.
55913         * modules/fts (Depends-on): Add fcntl-safer.
55914         * MODULES.html.sh (File descriptor based Input/Output):
55915         Add fcntl-safer.
55916
55917 2005-08-24  Bruno Haible  <bruno@clisp.org>
55918
55919         Support for unit test modules.
55920         * modules/README: Mention tests modules.
55921         * modules/TEMPLATE-TESTS: New file.
55922         * gnulib-tool: New options --extract-tests-module, --with-tests and
55923         --tests-base (unused for the moment).
55924         (testsbase, inctests): New variables.
55925         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
55926         (func_verify_module): Exclude TEMPLATE-TESTS.
55927         (func_verify_nontests_module, func_verify_tests_module): New functions.
55928         (func_get_dependencies): Add implicit dependency for tests modules.
55929         (func_get_tests_module): New function.
55930         (func_modules_transitive_closure): When --with-tests was specified,
55931         include the unit tests as well, unless explicitly avoided.
55932         (func_emit_lib_Makefile_am): Ignore the tests modules here.
55933         (func_emit_tests_Makefile_am): New function.
55934         (func_create_testdir): When --with-tests was specified, emit a
55935         tests/ directory.
55936         * MODULES.html.sh (Future developments): Update.
55937
55938 2005-08-24  Bruno Haible  <bruno@clisp.org>
55939
55940         * modules/tls-tests: New file.
55941         * tests/test-tls.c: New file, from GNU gettext.
55942
55943 2005-08-24  Bruno Haible  <bruno@clisp.org>
55944
55945         * modules/lock-tests: New file.
55946         * tests/test-lock.c: New file, from GNU gettext.
55947
55948 2005-08-24  Bruno Haible  <bruno@clisp.org>
55949
55950         * lib/lock.h: Add multiple inclusion guard.
55951         * lib/tls.h: Add multiple inclusion guard.
55952
55953 2005-08-24  Bruno Haible  <bruno@clisp.org>
55954
55955         * gnulib-tool: Add support for the --aux-dir option to
55956         --create-testdir, --create-megatestdir, --test, --megatest.
55957         (func_create_testdir, func_create_megatestdir): Optionally emit a
55958         AC_CONFIG_AUX_DIR directive.
55959         (create-testdir, create-megatestdir, test, megatest): Provide a
55960         default value for $auxdir.
55961
55962 2005-08-24  Bruno Haible  <bruno@clisp.org>
55963
55964         * gnulib-tool (import): Use compound statement instead of subshell
55965         where possible.
55966
55967 2005-08-24  Bruno Haible  <bruno@clisp.org>
55968
55969         * gnulib-tool (import): Change --aux-dir default to "build-aux".
55970
55971 2005-08-24  Bruno Haible  <bruno@clisp.org>
55972
55973         * gnulib-tool (func_version): Update.
55974
55975 2005-08-24  Bruno Haible  <bruno@clisp.org>
55976
55977         * gnulib-tool (func_import, func_create_testdir,
55978         func_create_megatestdir): Quote all autoconf macro arguments.
55979
55980 2005-08-24  Bruno Haible  <bruno@clisp.org>
55981
55982         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
55983         option --force, because --force causes the aclocal.m4 of each
55984         subdirectory to be newer than the corresponding config.h.in.
55985
55986 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55987
55988         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
55989         All contents moved to gl_REGEX.
55990         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
55991         assume that it does.
55992
55993 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55994
55995         * lib/regex.h (REG_NOSYS)
55996         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
55997         Define, since POSIX requires it as of 2001.
55998         (_REG_ENOSYS)
55999         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
56000         New private symbol, used to keep the enum signed in all cases.
56001         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
56002         Youngman in
56003         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
56004
56005         * lib/regex_internal.c (re_string_skip_chars, register_state):
56006         (calc_state_hash):
56007         Remove forward decls; no longer needed now that we use prototypes.
56008         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
56009         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
56010         (clean_state_log_if_needed): Likewise.
56011
56012 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56013
56014         * config/srclist.txt: Add glibc bugs 1231-1233.
56015
56016 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56017
56018         Fix problems reported by Sam Steingold in
56019         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
56020         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
56021         assumed that reg_errcode_t is a signed type, which is not
56022         necessarily true if _XOPEN_SOURCE is not defined.
56023         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
56024         since some compilers warn about it otherwise.
56025
56026 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56027
56028         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
56029         (init_word_char, create_initial_state, duplicate_node_closure):
56030         (fetch_token, peek_token_bracket, build_range_exp):
56031         (build_collating_symbol): Remove forward decls; no longer needed
56032         now that we use prototypes.
56033
56034         * lib/regcomp.c:
56035         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
56036         (re_compile_fastmap_iter, regcomp, regerror, regfree):
56037         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
56038         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
56039         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
56040         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
56041         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
56042         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
56043         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
56044         (build_range_exp, build_collating_symbol, parse_bracket_exp):
56045         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
56046         (build_charclass, build_charclass_op, fetch_number, create_tree):
56047         (create_token_tree, mark_opt_subexp, duplicate_tree):
56048         Use prototypes rather than old-style definitions.
56049
56050         * lib/regex_internal.c:
56051         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
56052         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
56053         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56054         (re_string_reconstruct, re_string_peek_byte_case):
56055         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
56056         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56057         (re_node_set_init_copy, re_node_set_add_intersect):
56058         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56059         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56060         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56061         (re_acquire_state, re_acquire_state_context, register_state):
56062         (create_ci_newstate, create_cd_newstate, free_state):
56063         Likewise.
56064         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
56065         re_search_2):
56066         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
56067         (re_search_internal, prune_impossible_nodes):
56068         (acquire_init_state_context, check_matching, static):
56069         (check_halt_node_context, check_halt_state_context, proceed_next_node):
56070         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
56071         (update_regs, sift_states_backward, build_sifted_states):
56072         (clean_state_log_if_needed, merge_state_array):
56073         (update_cur_sifted_state, add_epsilon_src_nodes):
56074         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
56075         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
56076         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
56077         (find_recover_state, check_subexp_matching_top, transit_state_mb):
56078         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
56079         (check_arrival, check_arrival_add_next_nodes):
56080         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56081         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56082         (check_node_accept_bytes, check_node_accept, extend_buffers):
56083         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
56084         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
56085         (sift_ctx_init):
56086         Likewise.
56087
56088         * lib/regex_internal.h:
56089         (re_string_allocate, re_string_construct, re_string_reconstruct):
56090         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
56091         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
56092         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
56093         (re_string_context_at, re_string_peek_byte_case):
56094         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
56095         is defined, since we now use prototypes always.
56096
56097         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
56098         C89 or better.  All uses removed.
56099
56100 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56101
56102         * config/srclist.txt: Add glibc bugs 1220-1227.
56103
56104 2005-08-20  Jim Meyering  <jim@meyering.net>
56105
56106         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
56107         of unused local, dfa.
56108
56109 2005-08-20  Bruno Haible  <bruno@clisp.org>
56110
56111         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
56112
56113 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56114
56115         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
56116         (re_node_set_insert_last, re_dfa_add_node):
56117         Rename local variables to avoid GCC shadowing warnings.
56118
56119 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56120
56121         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
56122         [defined lint]: Suppress bogus uninitialized-variable warnings.
56123
56124         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
56125         and let the caller return REG_ESPACE if out of space.  This
56126         removes an uninitialied-variable warning with GCC 4.0.1, and also
56127         avoids taking the address of a local variable.  All callers
56128         changed.
56129
56130 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56131
56132         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
56133         $LIBCSRC/posix/regexec.c.
56134         Add glibc bug 1217 for regcomp.c.
56135
56136 2005-08-19  Jim Meyering  <jim@meyering.net>
56137
56138         * lib/regexec.c (proceed_next_node): Redo local variables to
56139         avoid GCC shadowing warnings.
56140
56141 2005-08-18  Bruno Haible  <bruno@clisp.org>
56142
56143         * lib/strstr.c (strstr): Fix return value in multibyte case.
56144         * lib/strcasestr.c (strcasestr): Likewise.
56145
56146 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56147
56148         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
56149
56150 2005-08-17  Jim Meyering  <jim@meyering.net>
56151
56152         Make the %s format (seconds since the epoch) work for a negative
56153         number and when used with a zero-padded field width, e.g. %015s.
56154
56155         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
56156         label so that it precedes the code to set `digits'.  Otherwise,
56157         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
56158         print `00-22'.  Now, it prints `-0022', as it should.
56159
56160 2005-08-17  Bruno Haible  <bruno@clisp.org>
56161
56162         * modules/strstr (Files): Add m4/mbrtowc.m4.
56163         (Depends-on): Add mbuiter.
56164
56165 2005-08-17  Bruno Haible  <bruno@clisp.org>
56166
56167         * modules/strcasestr: New file.
56168         * MODULES.html.sh (String handling, based on ANSI C 89): Add
56169         strcasestr.
56170
56171 2005-08-17  Bruno Haible  <bruno@clisp.org>
56172
56173         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
56174
56175 2005-08-17  Bruno Haible  <bruno@clisp.org>
56176
56177         * modules/mbuiter: New file.
56178         * MODULES.html.sh (Extended multibyte and wide character utilities):
56179         Add mbuiter.
56180
56181 2005-08-17  Bruno Haible  <bruno@clisp.org>
56182
56183         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
56184         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
56185
56186 2005-08-17  Bruno Haible  <bruno@clisp.org>
56187
56188         * m4/strcasestr.m4: New file.
56189
56190 2005-08-17  Bruno Haible  <bruno@clisp.org>
56191
56192         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
56193         * lib/strstr.c: Completely rewritten, with multibyte locale support.
56194
56195 2005-08-17  Bruno Haible  <bruno@clisp.org>
56196
56197         * lib/strcasestr.h: New file.
56198         * lib/strcasestr.c: New file.
56199
56200 2005-08-17  Bruno Haible  <bruno@clisp.org>
56201
56202         * lib/strcasecmp.c: Use mbuiter.h.
56203
56204 2005-08-17  Bruno Haible  <bruno@clisp.org>
56205
56206         * lib/mbuiter.h: New file.
56207
56208 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56209
56210         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
56211         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
56212         and gl_GETOPT are both invoked via different paths (as happens
56213         with GNU tar CVS because it uses both argp and getopt), the former
56214         wins.
56215
56216 2005-08-16  Bruno Haible  <bruno@clisp.org>
56217
56218         * modules/tls: New file.
56219         * MODULES.html.sh (Multithreading): Add tls.
56220
56221 2005-08-16  Bruno Haible  <bruno@clisp.org>
56222
56223         * modules/strnlen1: New file.
56224         * MODULES.html.sh (String handling): Add strnlen1.
56225
56226 2005-08-16  Bruno Haible  <bruno@clisp.org>
56227
56228         * modules/strcase (Files): Add m4/mbrtowc.m4.
56229         (Depends-on): Add strnlen1, mbchar.
56230
56231 2005-08-16  Bruno Haible  <bruno@clisp.org>
56232
56233         * modules/mbiter: New file.
56234         * MODULES.html.sh (Extended multibyte and wide character utilities):
56235         Add mbiter.
56236
56237 2005-08-16  Bruno Haible  <bruno@clisp.org>
56238
56239         * modules/mbfile: New file.
56240         * MODULES.html.sh (Extended multibyte and wide character utilities):
56241         Add mbfile.
56242
56243 2005-08-16  Bruno Haible  <bruno@clisp.org>
56244
56245         * modules/mbchar: New file.
56246         * MODULES.html.sh (Extended multibyte and wide character utilities):
56247         New section.
56248
56249 2005-08-16  Bruno Haible  <bruno@clisp.org>
56250
56251         * m4/tls.m4: New file, from GNU gettext.
56252
56253 2005-08-16  Bruno Haible  <bruno@clisp.org>
56254
56255         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
56256         always.
56257         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
56258
56259 2005-08-16  Bruno Haible  <bruno@clisp.org>
56260
56261         * m4/mbiter.m4: New file.
56262
56263 2005-08-16  Bruno Haible  <bruno@clisp.org>
56264
56265         * m4/mbfile.m4: New file.
56266
56267 2005-08-16  Bruno Haible  <bruno@clisp.org>
56268
56269         * m4/mbchar.m4: New file.
56270
56271 2005-08-16  Bruno Haible  <bruno@clisp.org>
56272
56273         * lib/tls.h: New file, from GNU gettext.
56274         * lib/tls.c: New file, from GNU gettext.
56275
56276 2005-08-16  Bruno Haible  <bruno@clisp.org>
56277
56278         * lib/strnlen1.h: New file.
56279         * lib/strnlen1.c: New file.
56280
56281 2005-08-16  Bruno Haible  <bruno@clisp.org>
56282
56283         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
56284         (mbi_init): Update.
56285         (mbi_avail, mbi_advance): Let the iteration end before the terminating
56286         NUL byte, not after it.
56287
56288 2005-08-16  Bruno Haible  <bruno@clisp.org>
56289
56290         * lib/strcase.h (strcasecmp): Add note in comments.
56291         * lib/strncasecmp.c: Use code from strcasecmp.c.
56292         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
56293         (strcasecmp): Work correctly in multibyte locales.
56294
56295 2005-08-16  Bruno Haible  <bruno@clisp.org>
56296
56297         * lib/mbiter.h: New file.
56298
56299 2005-08-16  Bruno Haible  <bruno@clisp.org>
56300
56301         * lib/mbfile.h: New file.
56302
56303 2005-08-16  Bruno Haible  <bruno@clisp.org>
56304
56305         * lib/mbchar.h: New file.
56306         * lib/mbchar.c: New file.
56307
56308 2005-08-16  Bruno Haible  <bruno@clisp.org>
56309
56310         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
56311         the valid ones. Makes the comparison operations transitive:
56312         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
56313         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
56314
56315 2005-08-15  Simon Josefsson  <jas@extundo.com>
56316
56317         * modules/ssize_t (License): Change to 'unlimited'.
56318
56319         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
56320
56321 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56322
56323         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
56324         Add comments for each pending glibc patch.
56325
56326 2005-08-15  Bruno Haible  <bruno@clisp.org>
56327
56328         * lib/regex.h (__restrict_arr): Don't define to __restrict if
56329         __cplusplus is defined.
56330
56331 2005-08-14  Jim Meyering  <jim@meyering.net>
56332
56333         Sync from coreutils.
56334
56335         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
56336         Use the hash-table-based cycle-detection code not just when
56337         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
56338         Reported by James Youngman in
56339         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
56340         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
56341         FTS_TIGHT_CYCLE_CHECK.
56342         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
56343         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
56344         once again.
56345         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
56346         * lib/fts.c (fd_safer): Remove decl.
56347         Include fcntl--.h rather than unistd-safer.h
56348         (fts_safe_changedir): Don't call fd_safer; no longer needed
56349         now that we include fcntl--.h.
56350
56351 2005-08-12  Simon Josefsson  <jas@extundo.com>
56352
56353         * modules/getndelim2: Use ssize_t module.
56354         * modules/getnline: Likewise.
56355         * modules/safe-read: Likewise.
56356         * modules/xreadlink: Likewise.
56357
56358         * modules/ssize_t: New file.
56359
56360 2005-08-12  Simon Josefsson  <jas@extundo.com>
56361
56362         * m4/readline.m4: Look for termcap, curses or ncurses if required.
56363
56364 2005-08-12  Simon Josefsson  <jas@extundo.com>
56365
56366         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56367         ssize_t.
56368
56369 2005-08-12  Simon Josefsson  <jas@extundo.com>
56370
56371         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
56372         readline, getdelim and check_version.
56373         (Support for systems lacking ISO C 99: Sizes of integer types):
56374         Add size_max.
56375
56376 2005-08-12  Bruno Haible  <bruno@clisp.org>
56377
56378         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
56379
56380 2005-08-11  Simon Josefsson  <jas@extundo.com>
56381
56382         * modules/readline: New file.
56383
56384         * modules/strnlen (Files): Add strnlen.h.
56385
56386 2005-08-11  Simon Josefsson  <jas@extundo.com>
56387
56388         * m4/readline.m4: New file.
56389
56390 2005-08-11  Simon Josefsson  <jas@extundo.com>
56391
56392         * lib/readline.h, readline.c: New file.
56393
56394 2005-08-11  Simon Josefsson  <jas@extundo.com>
56395
56396         * doc/gnulib.texi (Initial import, Finishing touches): Mention
56397         gl_AVOID.
56398
56399 2005-08-11  Bruno Haible  <bruno@clisp.org>
56400
56401         * lib/strnlen.h (strnlen): Change parameter name to match comment.
56402
56403 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
56404
56405         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
56406
56407 2005-08-10  Simon Josefsson  <jas@extundo.com>
56408
56409         * tests/test-iconvme.c: New file.
56410
56411 2005-08-10  Simon Josefsson  <jas@extundo.com>
56412
56413         * m4/strnlen.m4: New file.
56414
56415         * m4/strndup.m4: Don't check for strnlen declaration, done in
56416         strnlen.m4.
56417
56418 2005-08-10  Simon Josefsson  <jas@extundo.com>
56419
56420         * lib/strndup.c: Use strnlen.h.
56421
56422         * lib/strnlen.h: New file.
56423
56424 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56425
56426         * README: Typos.
56427
56428 2005-08-02  Simon Josefsson  <jas@extundo.com>
56429
56430         * modules/readline: New file.
56431
56432 2005-08-02  Simon Josefsson  <jas@extundo.com>
56433
56434         * modules/getdelim: New file.
56435
56436         * modules/getline: Rewrite, don't use getndelim2.
56437
56438 2005-08-02  Simon Josefsson  <jas@extundo.com>
56439
56440         * m4/getline.m4: Separate out getdelim stuff into separate module.
56441
56442         * m4/getdelim.m4: New file.
56443
56444 2005-08-02  Simon Josefsson  <jas@extundo.com>
56445
56446         * lib/getline.h, getline.c: Rewrite.
56447
56448         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
56449
56450 2005-07-31  Bruno Haible  <bruno@clisp.org>
56451
56452         * lib/lock.h (gl_lock_initializer): New macro.
56453         (gl_lock_define_initialized): Use it.
56454         (gl_rwlock_initializer): New macro.
56455         (gl_rwlock_define_initialized): Use it.
56456         (gl_recursive_lock_initializer): New macro.
56457         (gl_recursive_lock_define_initialized): Use it.
56458
56459 2005-07-30  Karl Berry  <karl@gnu.org>
56460
56461         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
56462         Report from Ben Pfaff, regarding getopt.
56463
56464 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
56465
56466         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
56467         normal way.
56468         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
56469         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
56470         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
56471         (gl_GETOPT): Use the new macros.  Most of the implementation
56472         is moved to the new macros.  This is for programs like Emacs
56473         that don't want all the functionality of gl_GETOPT.
56474
56475 2005-07-26  Bruno Haible  <bruno@clisp.org>
56476
56477         * m4/lock.m4: Update from GNU gettext.
56478
56479 2005-07-26  Bruno Haible  <bruno@clisp.org>
56480
56481         * lib/lock.h: Update from GNU gettext.
56482         * lib/lock.c: Update from GNU gettext.
56483
56484 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
56485
56486         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
56487         obsolescent AC_TRY_RUN.  Include the default includes files, for
56488         'exit'.
56489
56490 2005-07-24  Bruno Haible  <bruno@clisp.org>
56491
56492         * modules/visibility: New file.
56493         * MODULES.html.sh (Misc): Add visibility.
56494
56495 2005-07-24  Bruno Haible  <bruno@clisp.org>
56496
56497         * m4/visibility.m4: New file.
56498
56499 2005-07-24  Bruno Haible  <bruno@clisp.org>
56500
56501         * doc/visibility.texi: New file.
56502
56503 2005-07-22  Bruno Haible  <bruno@clisp.org>
56504
56505         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
56506         $(ALLOCA_H), redundant through BUILT_SOURCES.
56507         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
56508         redundant through BUILT_SOURCES.
56509         * modules/byteswap (Makefile.am): Remove explicit dependency on
56510         $(BYTESWAP_H), redundant through BUILT_SOURCES.
56511         * modules/fnmatch (Makefile.am): Remove explicit dependency on
56512         $(FNMATCH_H), redundant through BUILT_SOURCES.
56513         * modules/getopt (Makefile.am): Remove explicit dependency on
56514         $(GETOPT_H), redundant through BUILT_SOURCES.
56515         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
56516         redundant through BUILT_SOURCES.
56517         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
56518         redundant through BUILT_SOURCES.
56519         * modules/stdbool (Makefile.am): Remove explicit dependency on
56520         $(STDBOOL_H), redundant through BUILT_SOURCES.
56521         * modules/stdint (Makefile.am): Remove explicit dependency on
56522         $(STDINT_H), redundant through BUILT_SOURCES.
56523         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
56524         Remove explicit dependency on $(SYSEXITS_H).
56525         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
56526
56527 2005-07-18  Simon Josefsson  <jas@extundo.com>
56528
56529         * lib/check-version.c (check_version): Accept identical versions too.
56530
56531 2005-07-18  Bruno Haible  <bruno@clisp.org>
56532
56533         * modules/lock: New file.
56534         * MODULES.html.sh (Multithreading): New section.
56535
56536 2005-07-18  Bruno Haible  <bruno@clisp.org>
56537
56538         * m4/lock.m4: New file, from GNU gettext.
56539
56540 2005-07-18  Bruno Haible  <bruno@clisp.org>
56541
56542         * lib/lock.h: New file, from GNU gettext.
56543         * lib/lock.c: New file, from GNU gettext.
56544
56545 2005-07-18  Bruno Haible  <bruno@clisp.org>
56546
56547         * lib/lock.h (gl_once_t): New type.
56548         (gl_once_define, gl_once): New macros.
56549         * lib/lock.c (fresh_once): New variable.
56550         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
56551         functions.
56552
56553 2005-07-16  Simon Josefsson  <jas@extundo.com>
56554
56555         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
56556         workaround, suggested by Bruno.
56557
56558 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56559
56560         * modules/xalloc (Depends-on): Add xalloc-die.
56561         * modules/xvasprintf (Depends-on): Add xalloc-die.
56562
56563 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56564
56565         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
56566         with a minor change.
56567
56568 2005-07-15  Bruno Haible  <bruno@clisp.org>
56569
56570         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
56571         When using lib/poll.c, define poll as rpl_poll.
56572
56573 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
56574
56575         * modules/argp (Depends-on): Remove unlocked-io.
56576
56577 2005-07-14  Derek Price  <derek@ximbiot.com>
56578
56579         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
56580         for glob symlink bug.
56581
56582 2005-07-14  Bruno Haible  <bruno@clisp.org>
56583
56584         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56585         Instead, test for *_unlocked function declarations directly.
56586
56587 2005-07-11  Simon Josefsson  <jas@extundo.com>
56588
56589         * modules/size_max: New file.
56590
56591         * modules/xsize: Depend on size_max module for size_max.m4.
56592
56593 2005-07-11  Simon Josefsson  <jas@extundo.com>
56594
56595         * lib/size_max.h: New file.
56596
56597 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56598
56599         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56600         copyright symbol and the year.
56601         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56602         (version_etc_va): Use parameterized copyright notice.
56603         Reword to conform to the current GNU coding standards.
56604
56605 2005-07-11  Karl Berry  <karl@gnu.org>
56606
56607         * doc/gnulib.texi (Quoting): new node.
56608         (Initial import): more info, from Patrice.
56609
56610 2005-07-11  Bruno Haible  <bruno@clisp.org>
56611
56612         * gnulib-tool (func_usage): Document option --avoid.
56613         (Command line options): Handle --avoid.
56614         (func_acceptable): New function.
56615         (func_modules_transitive_closure): Use it.
56616
56617 2005-07-11  Bruno Haible  <bruno@clisp.org>
56618
56619         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56620         Reported by Jim Meyering.
56621
56622 2005-07-10  Bruno Haible  <bruno@clisp.org>
56623
56624         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56625         Needed when size_t is smaller than 'unsigned int'.
56626         Reported by Paul Eggert.
56627
56628 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56629
56630         * modules/argp (Depends-on): Add unlocked-io
56631
56632 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56633
56634         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56635         block of defines.
56636
56637 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56638
56639         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56640         fix now.
56641
56642 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56643         and Paul Eggert  <eggert@cs.ucla.edu>
56644
56645         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56646         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56647
56648 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56649
56650         * modules/regex (Files): Add lib/regex_internal.c,
56651         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56652         (Depends-on): Add extensions.
56653         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56654
56655 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56656
56657         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56658         pathconf.
56659         * m4/same.m4 (gl_SAME): Likewise.
56660         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56661
56662         * m4/regex.m4: Adjust to new libc regex implementation.
56663         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56664         all the .c and .h parts of (the new) regex.
56665         Quote the m4 stuff better.
56666         Check for RE_ICASE bug of old gnulib.
56667         Check for REG_STARTEND of recent libc.
56668         Rename local variables from jm_* to gl_*.
56669         Quote operand of "test -f".
56670         Say "recent enough" version of libc, not "version 2".
56671         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56672         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56673         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56674         Remove check for btowc, isascii.
56675         Require AM_LANGINFO_CODESET.
56676
56677 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56678
56679         * lib/regex.c, regex.h: Sync from libc.
56680         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56681         * lib/regexec.c:
56682         New files, synced from libc, except that regex_internal.h
56683         currently has a small porting fix.
56684
56685 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56686
56687         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56688         regex_internal.c, regexec.c.
56689         Add regex_internal.h too, but as a comment, since the libc version
56690         is currently broken in gnulib mode.
56691
56692 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56693
56694         Support programs like Emacs that use gnulib but not gettext.
56695         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56696         * modules/gettext-h: New file.
56697         * modules/gettext (Files): Remove lib/gettext.h.
56698         (Depends-on): Add gettext-h.
56699         (Makefile.am): Remove lib_SOURCES.
56700         * modules/argmatch, modules/c-stack, modules/closeout:
56701         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56702         * modules/execute, modules/file-type, modules/getaddrinfo:
56703         * modules/getopt, modules/human, modules/javacomp:
56704         * modules/javaexec, modules/mkdir-p, modules/obstack:
56705         * modules/openat, modules/pagealign_alloc, modules/pipe:
56706         * modules/quotearg, modules/regex, modules/rpmatch:
56707         * modules/unicodeio, modules/userspec, modules/version-etc:
56708         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56709         * modules/xsetenv:
56710         Depend on gettext-h, not gettext.
56711
56712 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56713
56714         * gnulib-tool (func_import): Add support for 'public domain' license.
56715         * modules/alloca, modules/atexit, modules/memmove:
56716         Now public domain, not GPL.
56717         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56718         * modules/realloc, modules/strerror, modules/strtod:
56719         Now LGPL, not GPL.
56720
56721 2005-07-05  Bruno Haible  <bruno@clisp.org>
56722
56723         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56724         autoconf CVS. Needed for mingw.
56725
56726 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56727
56728         Remove the dependency of the strftime module on the tzset module.
56729         * modules/strftime (Depends-on): Remove dependency on tzset.
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         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56735         gl_FUNC_TZSET_CLOBBER.
56736
56737 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56738
56739         Remove the dependency of the strftime module on the tzset module.
56740         * lib/strftime.c (my_strftime)
56741         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56742         Copy the input structure, to work around some of the bug with
56743         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56744         Solaris releases, you should also use the tzset module, but we won't
56745         require it as a dependency any more since we don't want LGPLed code
56746         to depend on GPLed code.
56747
56748 2005-07-02  Jim Meyering  <jim@meyering.net>
56749
56750         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56751         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56752         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56753         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56754
56755 2005-07-02  Jim Meyering  <jim@meyering.net>
56756
56757         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56758
56759 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56760
56761         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56762         declares only 'struct timespec;' (!).
56763
56764 2005-07-01  Jim Meyering  <jim@meyering.net>
56765
56766         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56767         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56768         * lib/save-cwd.c, tempname.c:
56769         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56770         and don't include <sys/file.h>).
56771
56772 2005-06-29  Jim Meyering  <jim@meyering.net>
56773
56774         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56775         type name.  Use the variable name instead.
56776         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56777         Likewise.
56778
56779 2005-06-28  Simon Josefsson  <jas@extundo.com>
56780
56781         * modules/check-version (Files): Add check-version.m4.
56782
56783 2005-06-28  Simon Josefsson  <jas@extundo.com>
56784
56785         * m4/check-version.m4: New file, suggested by Jim Meyering
56786         <jim@meyering.net>.
56787
56788 2005-06-28  Simon Josefsson  <jas@extundo.com>
56789
56790         * lib/check-version.h, lib/check-version.c: New files.
56791
56792 2005-06-28  Simon Josefsson  <jas@extundo.com>
56793
56794         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56795         collision with global variable.  Better indentation.  Don't
56796         increment buffer pointer beyond buffer end.  Based on comments
56797         from Paul Eggert <eggert@cs.ucla.edu>.
56798
56799         * lib/base64.h: Indent.
56800
56801 2005-06-28  Simon Josefsson  <jas@extundo.com>
56802
56803         * doc/gnulib.texi (Library version handling): New section.
56804
56805 2005-06-28  Jim Meyering  <jim@meyering.net>
56806
56807         * check-module (find_included_lib_files): Hard-code another
56808         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56809         but modules/fts-lgpl (correctly) does not list those files.
56810
56811         * modules/canonicalize (Files): Add lib/pathmax.h.
56812
56813 2005-06-25  Simon Josefsson  <jas@extundo.com>
56814
56815         * modules/check-version: New file.
56816
56817 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56818
56819         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56820         initializer of struct addrinfo, as an indication that we don't
56821         care how many members the structure has.
56822
56823 2005-06-24  Derek Price  <derek@ximbiot.com>
56824         and Bruno Haible  <bruno@clisp.org>
56825
56826         Remove stat module & update lstat.
56827         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56828         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56829         * m4/stat.m4: Remove this file.
56830
56831 2005-06-24  Derek Price  <derek@ximbiot.com>
56832         and Bruno Haible  <bruno@clisp.org>
56833
56834         Remove stat module & update lstat.
56835         * lib/stat.c: Remove this file...
56836         (slash_aware_lstat): ...moving this content and its support...
56837         * lib/lstat.c (rpl_lstat): ...into here.
56838         * lib/lstat.h: New file.
56839
56840 2005-06-24  Derek Price  <derek@ximbiot.com>
56841         and Bruno Haible  <bruno@clisp.org>
56842
56843         Remove stat module & update lstat.
56844         * config/srclist.txt (libc sources): Remove stat.
56845
56846 2005-06-24  Derek Price  <derek@ximbiot.com>
56847         and Bruno Haible  <bruno@clisp.org>
56848
56849         Remove stat module & update lstat.
56850         * MODULES.html.sh (stat): Remove.
56851         * MODULES.html: Regenerated.
56852         * modules/lstat (Description): Correct function name.
56853         (Files): Add "lstat.h".
56854         (Depends-on): Remove stat, add xalloc, stat-macros.
56855         * modules/stat: Remove this file.
56856         (Include): Add "lstat.h", remove <sys/stat.h>.
56857
56858 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56859
56860         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
56861         (ranged_convert): Don't save conversion in a temporary struct.
56862         This causes a warning with GCC 4.0.0, and anyway in the typical
56863         case it's not worth the extra 100 bytes or so of code.
56864         (ranged_convert, __mktime_internal): When calling a function via a
56865         pointer P, use P () rather than (*P) (), as we now assume C89 or
56866         better.
56867
56868 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56869
56870         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
56871         "who -r" failed to give output.  Problem reported by Tim Waugh.
56872
56873         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
56874         (xcalloc): Use it to avoid needless tests.
56875         Problem reported by Jim Meyering.
56876
56877 2005-06-20  Derek Price  <derek@ximbiot.com>
56878
56879         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
56880         unnecessary for Autoconfs > 2.59c.
56881
56882 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56883
56884         * lib/argp.h (__option_is_short): Check upper limit of
56885         __key. Isprint() requires its argument to have the value
56886         of an unsigned char or EOF.
56887
56888 2005-06-16  Jim Meyering  <jim@meyering.net>
56889
56890         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
56891         when either N or S is zero.
56892
56893 2005-06-16  Derek Price  <derek@ximbiot.com>
56894
56895         * m4/bison.m4: Declare YACC & YFLAGS precious.
56896
56897 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
56898
56899         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
56900         multibyte string or pattern, fall back on unibyte matching.
56901         Problem reported by James Youngman.
56902
56903 2005-06-08  Bruno Haible  <bruno@clisp.org>
56904
56905         * modules/csharpcomp: New file.
56906         * MODULES.html.sh (C#): Add csharpcomp.
56907
56908 2005-06-08  Bruno Haible  <bruno@clisp.org>
56909
56910         * m4/csharpcomp.m4: New file, from GNU gettext.
56911
56912 2005-06-08  Bruno Haible  <bruno@clisp.org>
56913
56914         * lib/csharpcomp.h: New file, from GNU gettext.
56915         * lib/csharpcomp.c: New file, from GNU gettext.
56916         * lib/csharpcomp.sh.in: New file, from GNU gettext.
56917
56918 2005-06-08  Bruno Haible  <bruno@clisp.org>
56919
56920         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
56921         warning on mingw.
56922
56923 2005-06-07  Derek Price  <derek@ximbiot.com>
56924
56925         Sync from CVS.
56926         * lib/glob_.h: Indent nested #ifdef.
56927
56928 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56929
56930         Sync from coreutils.
56931         Use "file name" when talking about file names, instead of "filename"
56932         or "path", as per the GNU coding standards.
56933         * lib/mkdir-p.c: Renamed from makepath.c.
56934         (make_dir_parents): Renamed from make_path.  All callers changed.
56935         * lib/mkdir-p.h: Likewise.  All includers changed.
56936         * lib/filenamecat.c: Renamed from path-concat.c.
56937         (file_name_concat): Renamed from path_concat.  All callers changed.
56938         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
56939         * lib/filenamecat.h: Likewise.  All includers changed.
56940         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
56941         in comments or local variable names.
56942         * lib/basename.c: Likewise.
56943         * lib/canonicalize.c, canonicalize.h: Likewise.
56944         * lib/dirname.c, dirname.h: Likewise.
56945         * lib/euidaccess.c: Likewise.
56946         * lib/exclude.c: Likewise
56947         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
56948         * lib/fsusage.c, fsuage.h: Likewise.
56949         * lib/fts.c, fts_.h: Likewise.
56950         * lib/getcwd.c: Likewise.
56951         * lib/getloadavg.c: Likewise.
56952         * lib/mkstemp.c: Likewise.
56953         * lib/mountlist.c, mountlist.h: Likewise.
56954         * lib/openat.c, openat.h: Likewise.
56955         * lib/readlink-stub.c: Likewise.
56956         * lib/readutmp.c, readutmp.h: Likewise.
56957         * lib/rename.c: Likewise.
56958         * lib/rmdir.c: Likewise.
56959         * lib/same.c: Likewise.
56960         * lib/savedir.c: Likewise.
56961         * lib/stripslash.c: Likewise.
56962         * lib/tempname.c: Likewise.
56963         * lib/xreadlink.c: Likewise.
56964         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
56965         All uses changed.
56966         * lib/exclude.h: Likewise.
56967
56968         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
56969         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56970         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
56971         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56972         * lib/pathmax.h: Include <limits.h> unconditionally, since other
56973         files have been getting away with it for years (MORE/BSD 4.3
56974         is extinct now).
56975         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
56976         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56977
56978         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
56979         Define to 256, not 255, as per modern POSIX.
56980
56981 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56982
56983         Sync from coreutils.
56984         Use "file name" when talking about file names, instead of "filename"
56985         or "path", as per the GNU coding standards.
56986         * MODULES.html.sh: mkdir-p renamed from makepath.
56987         filenamecat renamed from path-concat.
56988         * modules/filenamecat: Renamed from modules/path-concat.
56989         (Files): filenamecat.h and filenamecat.c renamed from
56990         path-concat.h and path-concat.c.
56991         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
56992         (Include): filenamecat.h, not path-concat.h.
56993         * modules/mkdir-p: Renamed from modules/makepath.
56994         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
56995         makepath.c.
56996         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
56997         (Include): mkdir-p.h, not makepath.h.
56998
56999 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57000
57001         Sync from coreutils.
57002         * m4/mkdir-p.m4: Renamed from makepath.m4.
57003         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
57004         Rename files from makepath.c to mkdir-p.c, and from
57005         makepath.h to mkdir-p.h.
57006         * m4/filenamecat.m4: Renamed from path-concat.m4.
57007         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
57008         Rename files from path-concat.c to filenamecat.c,
57009         and from path-concat.h to filenamecat.h.
57010         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
57011         "file name" in local variables or comments.
57012         * m4/rename.m4: Likewise.
57013
57014 2005-06-01  Bruno Haible  <bruno@clisp.org>
57015
57016         * modules/csharpexec: New file.
57017         * MODULES.html.sh (C#): New section.
57018
57019 2005-06-01  Bruno Haible  <bruno@clisp.org>
57020
57021         * m4/csharp.m4: New file, from GNU gettext.
57022         * m4/csharpexec.m4: New file, from GNU gettext.
57023
57024 2005-06-01  Bruno Haible  <bruno@clisp.org>
57025
57026         * lib/csharpexec.h: New file, from GNU gettext.
57027         * lib/csharpexec.c: New file, from GNU gettext.
57028         * lib/csharpexec.sh.in: New file, from GNU gettext.
57029
57030 2005-05-31  Derek Price  <derek@ximbiot.com>
57031             Paul Eggert  <eggert@cs.ucla.edu>
57032
57033         Sync from cvs.
57034         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57035
57036 2005-05-31  Derek Price  <derek@ximbiot.com>
57037             Paul Eggert  <eggert@cs.ucla.edu>
57038
57039         Sync from cvs.
57040         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57041
57042 2005-05-29  Derek Price  <derek@ximbiot.com>
57043
57044         * config/srclist.txt (glob_.h, glob.c): Add these files.
57045
57046 2005-05-29  Derek Price  <derek@ximbiot.com>
57047
57048         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
57049         * modules/glob: New file.
57050         * modules/getlogin_r: Add link to POSIX spec in description.
57051
57052 2005-05-29  Derek Price  <derek@ximbiot.com>
57053             Paul Eggert  <eggert@cs.ucla.edu>
57054
57055         * m4/glob.m4: New file.
57056
57057 2005-05-29  Derek Price  <derek@ximbiot.com>
57058             Paul Eggert  <eggert@cs.ucla.edu>
57059
57060         * lib/glob_.h, lib/glob.c: New files.
57061
57062 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57063
57064         * modules/fts (Files): Remove m4/inttypes-pri.m4.
57065         * modules/fts-lgpl (Depends-on): Remove gettext.
57066
57067 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57068
57069         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
57070         and don't require gt_INTTYPES_PRI.
57071
57072 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57073
57074         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
57075
57076         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
57077         the configuration hassle isn't worth it.
57078         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
57079         (LONGEST_MODIFIER, PRIuMAX): Remove.
57080
57081 2005-05-27  Bruno Haible  <bruno@clisp.org>
57082
57083         * lib/getlogin_r.h: Remove second include of <stddef.h>.
57084
57085 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
57086
57087         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
57088         _POSIX_PTHREAD_SEMANTICS for Solaris.
57089
57090 2005-05-25  Derek Price  <derek@ximbiot.com>
57091
57092         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
57093
57094 2005-05-25  Derek Price  <derek@ximbiot.com>
57095             Paul Eggert  <eggert@cs.ucla.edu>
57096
57097         * modules/getlogin_r, m4/getlogin_r.m4: New files.
57098         * lib/getlogin_r.c, getlogin_r.h: New files.
57099
57100 2005-05-25  Bruno Haible  <bruno@clisp.org>
57101             Derek Price  <derek@ximbiot.com>
57102
57103         * lib/getlogin_r.h: Simplify API documentation.
57104
57105 2005-05-23  Derek Price  <derek@ximbiot.com>
57106
57107         * modules/minmax (Files): Add m4/minmax.m4.
57108         (configure.ac): Add gl_MINMAX.
57109
57110 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57111
57112         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
57113         so that unistd-safer.h (GPL'ed code) need not be included.
57114
57115 2005-05-22  Bruno Haible  <bruno@clisp.org>
57116
57117         * m4/minmax.m4: New file.
57118         Based on a patch by Derek Price <derek@ximbiot.com>.
57119
57120 2005-05-22  Bruno Haible  <bruno@clisp.org>
57121
57122         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
57123         (INT64_MIN): Fix definition.
57124         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
57125
57126         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
57127         NEED_SIGNED_INT_TYPES.
57128
57129         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
57130         HAVE_SYSTEM_INTTYPES.
57131
57132 2005-05-22  Bruno Haible  <bruno@clisp.org>
57133
57134         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
57135         Also include <sys/param.h> if it defines MIN, MAX.
57136         Based on a patch by Derek Price <derek@ximbiot.com>.
57137
57138 2005-05-21  Jim Meyering  <jim@meyering.net>
57139
57140         * modules/fts (Files): Add m4/inttypes-pri.m4.
57141         (Depends-on): Add lstat and remove gettext.  Alphabetize.
57142
57143 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57144
57145         New fts module.
57146         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
57147         (setup_dir, free_dir): New functions.
57148         (enter_dir, leave_dir): Define trivial
57149         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
57150         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
57151         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
57152         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
57153         Move to fts-cycle.c.
57154         (fts_open): Use setup_dir.
57155         (fts_close): Use free_dir.
57156         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
57157         This adds a label and some gotos, but the alternatives were messier.
57158         Check for memory allocation failure when entering a dir.
57159         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
57160         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
57161         (FTS): New member fts_cycle, that is a union that contains the
57162         old active_dir_ht and cycle_state.  All uses changed to mention
57163         fts_cycle.ht and fts_cycle.state.
57164         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
57165         fts.c, with the following changes:
57166         (setup_dir, free_dir): New functions.
57167         (enter_dir): Now returns bool.  Return true if successful, false
57168         if memory exhausted.  All callers changed.
57169         Do not bother partly cleaning up on
57170         memory allocation failure; that is free_dir's job.
57171         However, free ad if hash_insert fails, to avoid memory leak.
57172         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
57173         fts->fts_options to see which union member to use.
57174
57175 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57176
57177         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
57178         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
57179
57180 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57181
57182         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
57183
57184 2005-05-20  Jim Meyering  <jim@meyering.net>
57185
57186         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
57187         Now a macro, to pacify GCC.
57188
57189 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57190
57191         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
57192         of -1.
57193
57194 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57195
57196         * lib/chown.c (rpl_chown): Return -1 on failure.
57197
57198 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57199
57200         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
57201         Don't check for stddef.h.
57202         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
57203         don't use its results.
57204         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
57205         since we include them unconditionally.  Don't require
57206         AM_STDBOOL_H, since stdbool is a prerequisite.
57207         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
57208         since we assume C89 or better.
57209         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
57210         as we don't use their results.
57211         Don't check for fchdir, memmove, memset, strrchr, as we use
57212         them unconditionally.
57213         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
57214         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
57215
57216 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57217
57218         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
57219         Include <stddef.h> unconditionally, since we assume C89 now.
57220         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
57221         * lib/fts.c: Include fts_.h first, to check interface.
57222         Do not include intprops.h; no longer needed.
57223         Include cycle-check.h and hash.h, since fts_.h no longer does.
57224         Remove unnecessary casts of closedir to void.
57225         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
57226         decide whether to decrement nlinks.
57227         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
57228         (FTS): Use struct hash_table * instead of Hash_table, so that
57229         we no longer need to include hash.h here.
57230
57231 2005-05-18  Jim Meyering  <jim@meyering.net>
57232
57233         * modules/dirfd (License): Change to LGPL.  Most of the code
57234         is already in the public domain.
57235
57236 2005-05-18  Jim Meyering  <jim@meyering.net>
57237
57238         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
57239         Reported by Yoann Vandoorselaere.
57240
57241 2005-05-17  Jim Meyering  <jim@meyering.net>
57242
57243         * m4/fts.m4: New file, from coreutils.
57244
57245 2005-05-17  Jim Meyering  <jim@meyering.net>
57246
57247         * lib/fts.c, lib/fts_.h: New files, from coreutils.
57248
57249 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57250
57251         Sync from coreutils.
57252         * m4/unlinkdir.m4: New file.
57253
57254 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57255
57256         Sync from coreutils.
57257         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
57258         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
57259         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
57260         White space changes only.
57261         * lib/makepath.c (make_path): Port to hosts where leading "//" is
57262         special.
57263         * lib/yesno.c: Include getline.h, not ctype.h.
57264         (yesno): Don't remove leading white space; POSIX doesn't allow it.
57265         Use getline to remove arbitrary restriction on response length.
57266
57267 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57268
57269         * config/srclist-update: Spell out "Street" in FSF postal
57270         mail address; this is the style the FSF seems to prefer.
57271
57272         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
57273         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
57274         this updates FSF postal mail address.
57275
57276         Sync from coreutils.
57277         * modules/unlinkdir: New file.
57278         * modules/yesno (Depends-on): Add getline.
57279         * MODULES.html.sh (File system functions): Add unlinkdir.
57280
57281 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57282
57283         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
57284         lib/strsep.h:
57285         Change the initial comment to refer to GPL, not LGPL.
57286         gnulib-tool will change it to LGPL as needed.
57287
57288         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
57289         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
57290         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
57291         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
57292         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
57293         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
57294         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
57295         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
57296         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
57297         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
57298         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
57299         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
57300         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
57301         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
57302         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
57303         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
57304         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
57305         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
57306         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
57307         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
57308         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
57309         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
57310         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
57311         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
57312         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
57313         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
57314         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
57315         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
57316         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
57317         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
57318         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
57319         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
57320         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
57321         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
57322         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
57323         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
57324         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
57325         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
57326         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
57327         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
57328         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
57329         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
57330         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
57331         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
57332         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
57333         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
57334         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
57335         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
57336         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
57337         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
57338         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
57339         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
57340         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
57341         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
57342         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
57343         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
57344         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
57345         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
57346         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
57347         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
57348         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
57349         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
57350         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
57351         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
57352         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
57353         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
57354         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
57355         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
57356         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
57357         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
57358         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
57359         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
57360         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
57361         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
57362         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
57363         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
57364         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
57365         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
57366         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
57367         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
57368         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
57369         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
57370         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
57371         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
57372         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
57373         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
57374         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
57375         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
57376         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
57377         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
57378         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
57379         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
57380         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
57381         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
57382         lib/yesno.c, lib/yesno.h:
57383         Update FSF postal mail address.
57384
57385 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57386
57387         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
57388         tests/test-memmem.c, tests/test-stpncpy.c:
57389         Update FSF postal mail address.
57390
57391 2005-05-13  Bruno Haible  <bruno@clisp.org>
57392
57393         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
57394         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
57395         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
57396         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
57397         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
57398         Add support for 64-bit integers in the MSVC compiler.
57399
57400 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57401
57402         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
57403
57404 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
57405
57406         * gnulib-tool (func_import): Sort and uniquify recommended includes.
57407
57408 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
57409
57410         * doc/getdate.texi (General date syntax): Don't say that date
57411         date --iso-8601=ns generates acceptable dates; it doesn't yet.
57412         Problem reported by Nic Ferrier.
57413
57414 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57415
57416         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
57417         specified in ai_socktype. Fix invalid ai_protocol
57418         check. ai_protocol is usually set to 0 or depending on
57419         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
57420         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
57421         ai_socktype / ai_protocol in the returned addrinfo structure.
57422
57423 2005-05-10  Simon Josefsson  <jas@extundo.com>
57424
57425         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
57426         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57427
57428 2005-05-10  Karl Berry  <karl@gnu.org>
57429
57430         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
57431         (from http://www.gnu.org/licenses).
57432         * doc/COPYING.LIB: also rename to COPYING.LESSER.
57433         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
57434         fdl.texi suffices.
57435
57436 2005-05-10  Karl Berry  <karl@gnu.org>
57437
57438         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
57439         (COPYING.DOC): remove.
57440
57441         * config/srclist-update: new FSF address.
57442
57443 2005-05-10  Derek Price  <derek@ximbiot.com>
57444
57445         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
57446         possible.
57447
57448 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57449             Bruno Haible  <bruno@clisp.org>
57450
57451         * modules/inet_ntop: New file.
57452         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57453         inet_ntop.
57454
57455 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57456             Bruno Haible  <bruno@clisp.org>
57457
57458         * m4/inet_ntop.m4: New file.
57459
57460 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57461             Bruno Haible  <bruno@clisp.org>
57462
57463         * lib/inet_ntop.h: New file.
57464         * lib/inet_ntop.c: New file, from glibc with modifications.
57465
57466 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
57467
57468         * modules/time_r (License): Change to LGPL.
57469         * modules/extensions (License): Change to LGPL.  Actually,
57470         the license is more permissive than that, but currently gnulib-tool
57471         doesn't know how to handle more-permissive licenses.
57472
57473         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
57474         Problem reported by Dave Love.
57475
57476 2005-05-08  Jim Meyering  <jim@meyering.net>
57477
57478         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
57479         blank.
57480
57481 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57482
57483         * modules/argmatch (Depends-on): Add stdbool.
57484         * modules/backupfile (Depends-on): Likewise.
57485         * modules/chdir-long (Depends-on): Likewise.
57486         * modules/closeout (Depends-on): Likewise.
57487         * modules/cycle-check (Depends-on): Likewise.
57488         * modules/dirname (Depends-on): Likewise.
57489         * modules/fnmatch (Depends-on): Likewise.
57490         * modules/fsusage (Depends-on): Likewise.
57491         * modules/fwriteerror (Depends-on): Likewise.
57492         * modules/getcwd (Depends-on): Likewise.
57493         * modules/getloadavg (Depends-on): Likewise.
57494         * modules/hard-locale (Depends-on): Likewise.
57495         * modules/makepath (Depends-on): Likewise.
57496         * modules/mountlist (Depends-on): Likewise.
57497         * modules/nanosleep (Depends-on): Likewise.
57498         * modules/posixtm (Depends-on): Likewise.
57499         * modules/quotearg (Depends-on): Likewise.
57500         * modules/readtokens (Depends-on): Likewise.
57501         * modules/readtokens0 (Depends-on): Likewise.
57502         * modules/readutmp (Depends-on): Likewise.
57503         * modules/save-cwd (Depends-on): Likewise.
57504         * modules/strftime (Depends-on): Likewise.
57505         * modules/userspec (Depends-on): Likewise.
57506         * modules/utimecmp (Depends-on): Likewise.
57507         * modules/xgetcwd (Depends-on): Likewise.
57508         * modules/xnanosleep (Depends-on): Likewise.
57509         * modules/xstrtod (Depends-on): Likewise.
57510         * modules/yesno (Depends-on): Likewise.
57511
57512 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57513
57514         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
57515         needless checks.
57516
57517 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57518
57519         Merge from coreutils.  Among other things,
57520         add bulletproofing for cases where stdin, stdout, or stderr are closed.
57521         * lib/fd-safer.c: New file.
57522         * lib/fcntl-safer.h, open-safer.c: Remove.
57523         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
57524         * lib/dup-safer.c: Include unistd-safer.h first.
57525         Don't include errno.h.
57526         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
57527         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
57528         * lib/file-type.c: Rely on file-type.h change.
57529         * lib/getloadavg.c: Include unistd-safer.h.
57530         (getloadavg): Use safer open.
57531         * lib/getusershell.c: Include "stdio-safer.h".
57532         (getusershell): Use safer fopen.
57533         * lib/long-options.c (long_options): Use NULL rather than 0.
57534         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
57535         'free'.
57536         * lib/modechange.c: Likewise.
57537         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
57538         (MODE_DONE): New constant.
57539         (struct mode_change): Remove 'next' member.
57540         (make_node_op_equals): New function; like the old one of the
57541         same name, except it allocates an array.
57542         (mode_compile, mode_create_from_ref): Use it.
57543         (mode_compile): Allocate result as an array, not a linked list.
57544         Parse octal string ourself, so that we catch mistakes like "+0".
57545         (mode_adjust): Arg is an array, not a linked list.
57546         * lib/modechange.c: Include stat-macros.h, xalloc.h.
57547         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
57548         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
57549         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
57550         Remove.  This is now stat-macros.h's job.
57551         (talloc): Remove.  All callers replaced by xalloc, so that
57552         our invokers don't have to worry about reporting memory failures.
57553         (make_node_op_equals): Remove.
57554         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57555         New constants.
57556         (struct mode_change): Moved here from modechange.h.
57557         (mode_append_entry): Remove.
57558         (mode_compile): Remove MASKED_OPS arg, since it encouraged
57559         apps to have incorrect behavior.  Use simpler algorithm for head
57560         and tail.  Don't futz with umask; that's now the job of mode_adjust.
57561         Detect more invalid usages rather than having somewhat-random behavior.
57562         Don't insert an "a=" action, as that leads to incorrect behavior.
57563         (mode_compile, mode_create_from_ref): Return NULL on error instead
57564         of an enum, since now there's only one way to have an error.  All
57565         callers changed.
57566         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
57567         at the correct time.  Simplify calculation of "+u" and its ilk.
57568         Don't mishandle "+X".
57569         (mode_free): Remove "register" and localize decls.
57570         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57571         (struct mode_change): Move to modechange.c; callers don't
57572         need to see this stuff.
57573         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
57574         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
57575         (mode_change, mode_adjust): Reflect the new signatures noted above.
57576         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
57577         that might redefine system include files.
57578         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
57579         (my_usleep): Use NULL rather than (void *) 0.
57580         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
57581         Use siginterrupt to specify that system calls should be interrupted.
57582         (rpl_nanosleep): Move initialization of suspended closer to call of
57583         my_usleep.
57584         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57585         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57586         (desirable_utmp_entry): New function.
57587         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57588         using x2nrealloc, to simplify logic.
57589         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57590         size calculation.  Do not assume utmp file is a regular file.
57591         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57592         (READ_UTMP_CHECK_PIDS): New constant.
57593         * lib/save-cwd.c: Include unistd-safer.h.
57594         (save_cwd): Use fd_safer.
57595         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57596         [!_LIBC] Include "stat-macros.h" instead.
57597         * lib/unistd-safer.h (fd_safer): New decl.
57598
57599 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57600
57601         * modules/getloadavg (Depends-on): Add unistd-safer.
57602         * modules/getusershell (Depends-on): Add stdio-safer.
57603         * modules/lstat (Depends-on): Remove xalloc.
57604         * modules/mkstemp (Depends-on): Add stat-macros.
57605         * modules/modechange (Depends-on): Remove xstrtol.
57606         Add stat-macros, xalloc.
57607         * modules/save-cwd (Depends-on): Add unistd-safer.
57608         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57609         * modules/unistd-safer (Files): Add lib/fd-safer.c
57610         (Makefile.am): Remove lib_SOURCES.
57611
57612         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57613         Remove fcntl-safer; unistd-safer supersedes it.
57614
57615 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57616
57617         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57618         AC_HEADER_STAT.
57619         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57620         (gl_PREREQ_CHOWN): Remove.
57621         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57622         it.  Don't require AC_HEADER_STAT.
57623         (gl_PREREQ_LSTAT): Remove.
57624         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57625         Don't require AC_HEADER_STAT.
57626         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57627         (gl_PREREQ_RMDIR): Remove.
57628         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57629         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57630         the stat-macros module a prerequisite.
57631         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57632         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57633         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57634         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57635         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57636         variable names.
57637         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57638         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57639         variable prefixes.
57640         * m4/fcntl-safer.m4: Remove.
57641         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57642         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57643         Invoke gl_PREREQ_FD_SAFER.
57644         (gl_PREREQ_FD_SAFER): New macro.
57645         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57646         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57647         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57648         Remove duplicate call to AC_LIBOBJ(readutmp).
57649         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57650
57651         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57652         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57653
57654 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57655
57656         * MODULES.html.sh (Misc): Add byteswap.
57657
57658 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57659
57660         * modules/getcwd (Depends-on): Add extensions.
57661         * modules/openat (Depends-on): Likewise.
57662
57663 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57664
57665         * modules/byteswap: New file.
57666
57667 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57668
57669         * m4/byteswap.m4: New file.
57670
57671 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57672
57673         * lib/byteswap_.h: New file.
57674
57675 2005-04-25  Karl Berry  <karl@gnu.org>
57676
57677         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57678
57679 2005-04-25  Albert Chin  <china@thewrittenword.com>
57680
57681         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57682         Toolkit C bug.
57683
57684 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57685
57686         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57687         (func_ln_if_changed) Remove forcibly for no error message
57688         in case file does not exist.
57689
57690 2005-04-19  Simon Josefsson  <jas@extundo.com>
57691
57692         * gnulib-tool (Options): Make --symlink mean --symbolic.
57693
57694 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57695
57696         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57697
57698 2005-04-16  Simon Josefsson  <jas@extundo.com>
57699
57700         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57701
57702 2005-04-15  Simon Josefsson  <jas@extundo.com>
57703
57704         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57705
57706 2005-04-15  Simon Josefsson  <jas@extundo.com>
57707
57708         * gnulib-tool: Rename --symlink to --symbolic.
57709
57710 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57711
57712         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57713         symbolic links to files instead of copying/moving.  Add --aux-dir,
57714         specifying directory relative --dir where auxiliary build tools
57715         are placed.
57716
57717 2005-04-14  Bruno Haible  <bruno@clisp.org>
57718
57719         * modules/allocsa (License): Change to LGPL.
57720         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57721
57722 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57723
57724         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57725         that "UTC +1 second" continues to work.  Problem reported
57726         by Dmitry V. Levin.
57727         (relunit_snumber): New rule.
57728         (relunit): Use it.
57729
57730 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57731
57732         * lib/getdate.y (universal_time_zone_table): New constant.
57733         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57734         universal_time_zone_table.
57735         (lookup_zone): Prefer universal_time_zone_table to
57736         local_time_zone_table, so that "GMT" time stamps are allowed in
57737         London during the summer.  Problem reported by Ian Abbott.
57738
57739 2005-04-12  Jim Meyering  <jim@meyering.net>
57740
57741         * lib/human.c (humblock): Set *options even when returning due to
57742         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57743         warning from gcc-4.
57744
57745 2005-04-09  Jim Meyering  <jim@meyering.net>
57746
57747         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57748         -Wuninitialized: initialize tm0.tm_year.
57749
57750 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57751
57752         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57753         count, since there's no maximum.  All uses changed.
57754         Add member dsts_seen.
57755         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57756         not being INT_MAX.
57757         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57758         Use pc_rels_seen to decide whther a date is absolute.
57759
57760         * lib/getdate.y (number): Don't overwrite year.
57761         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57762         check.
57763
57764 2005-04-02  Simon Josefsson  <jas@extundo.com>
57765
57766         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57767         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57768
57769 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57770
57771         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57772         where no absolute path name can be longer than PATH_MAX.
57773
57774 2005-03-27  Jim Meyering  <jim@meyering.net>
57775
57776         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57777
57778 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57779
57780         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57781         "one's complement" -> "ones' complement" in comment, as per Knuth.
57782         "value of type" -> "type or expression" in comment.
57783         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57784
57785 2005-03-26  Jim Meyering  <jim@meyering.net>
57786
57787         Comment nits.
57788         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57789         Correct typos: s/or/of/.
57790
57791 2005-03-26  Jim Meyering  <jim@meyering.net>
57792
57793         * modules/check-include-files: Move to ../ and rename to...
57794         * check-module: ...this.
57795
57796 2005-03-25  Jim Meyering  <jim@meyering.net>
57797
57798         * modules/xvasprintf (Files): Add xalloc.h.
57799
57800 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57801
57802         * modules/gettext (Files): config/config.rpath ->
57803         build-aux/config.rpath
57804         * modules/iconv (Files): Likewise.
57805         Problem reported by Oskar Liljeblad.
57806
57807 2005-03-23  Jim Meyering  <jim@meyering.net>
57808
57809         * modules/check-include-files: New script to check for
57810         missing dependencies, multiple includes, etc.
57811
57812         * modules/c-strtold (Depends-on): Add xalloc.
57813         * modules/c-strtod (Depends-on): Add xalloc.
57814         * modules/hash (Depends-on): Add xalloc.
57815         (Files): Remove lib/xalloc.h.
57816
57817         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57818         * modules/userspec (Files): Add lib/inttostr.h.
57819
57820 2005-03-23  Jim Meyering  <jim@meyering.net>
57821
57822         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57823
57824 2005-03-22  Jim Meyering  <jim@meyering.net>
57825
57826         * modules/stat-macros: New module.
57827         * modules/canonicalize, modules/euidaccess, modules/file-type,
57828         * modules/filemode, modules/lchown, modules/makepath,
57829         * modules/rmdir, modules/stat: Depend on new stat-macros module
57830         rather than listing lib/stat-macros.h manually.
57831         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
57832
57833 2005-03-22  Jim Meyering  <jim@meyering.net>
57834
57835         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
57836
57837 2005-03-22  Bruno Haible  <bruno@clisp.org>
57838
57839         * config/srclist.txt: Replace target directory 'config' with
57840         'build-aux'.
57841         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
57842         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
57843         ../build-aux/.
57844
57845 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
57846
57847         * modules/chdir-long (Depends-on): Add mempcpy.
57848
57849         * modules/acl, modules/backupfile, modules/c-strtod,
57850         modules/c-strtold, modules/canon-host, modules/canonicalize,
57851         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
57852         modules/exclude, modules/exitfail, modules/file-type,
57853         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
57854         modules/getdate, modules/getline, modules/getpagesize,
57855         modules/getpass, modules/getugroups, modules/group-member,
57856         modules/hard-locale, modules/hash, modules/human, modules/idcache,
57857         modules/inttostr, modules/long-options, modules/makepath,
57858         modules/md5, modules/memcasecmp, modules/memcoll,
57859         modules/modechange, modules/mountlist, modules/path-concat,
57860         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
57861         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
57862         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
57863         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
57864         modules/strftime, modules/strndup, modules/strverscmp,
57865         modules/timespec, modules/unlocked-io, modules/userspec,
57866         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
57867         modules/yesno:
57868         Remove lib_SOURCES line from Makefile.am section, as this is now
57869         done automatically by the corresponding Autoconf macro.
57870
57871 2005-03-21  Jim Meyering  <jim@meyering.net>
57872
57873         Changes imported from coreutils.
57874
57875         * lib/cycle-check.c: Don't include xalloc.h.
57876
57877         * lib/path-concat.c: Don't include assert.h.
57878         (path_concat): Remove assertion that would have triggered
57879         for ABASE starting with more than one slash.
57880         Reported by Andreas Schwab.
57881
57882         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
57883         properly when ABASE is an absolute file name.
57884         Correct the description of this function.
57885         Include <assert.h>.
57886         Add an assertion and a test driver.
57887         This fixes a bug introduced on 2004-07-02.
57888         Andreas Schwab reported the resulting failure of cp --parents:
57889         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
57890
57891 2005-03-21  Jim Meyering  <jim@meyering.net>
57892
57893         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
57894         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
57895
57896 2005-03-21  Jim Meyering  <jim@meyering.net>
57897         and  Paul Eggert  <eggert@cs.ucla.edu>
57898
57899         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
57900         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
57901         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
57902         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
57903         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
57904         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
57905         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
57906         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
57907         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
57908         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
57909         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
57910         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
57911         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
57912         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
57913         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
57914         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
57915         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
57916         for these modules.
57917
57918 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
57919
57920         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
57921         (which shouldn't happen), generate nothing instead of returning 0
57922         immediately, so that nstrftime (NULL, ...) doesn't return 0.
57923
57924 2005-03-16  Bruno Haible  <bruno@clisp.org>
57925
57926         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
57927         HAVE_LONGLONG_64BIT.
57928
57929 2005-03-16  Bruno Haible  <bruno@clisp.org>
57930
57931         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
57932         HAVE_LONGLONG_64BIT.
57933
57934 2005-03-16  Bruno Haible  <bruno@clisp.org>
57935
57936         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
57937         HAVE_LONGLONG_64BIT.
57938
57939 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57940
57941         * lib/strftime.c (my_strftime): Prepend space to format so that we can
57942         reliably distinguish strftime failure from empty output on POSIX
57943         hosts.
57944
57945 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57946
57947         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
57948         (iconv_string): Don't guess a size-zero buffer, as that might cause
57949         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
57950         result would be 'too large', where 'too large' is (heuristically)
57951         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
57952         overflow concerns.  This will prevent some unwanted malloc failures
57953         when the inputs are very large.
57954
57955 2005-03-15  Karl Berry  <karl@gnu.org>
57956
57957         * config/srclist.txt (config.rpath): from gettext.
57958         * config/config.rpath: update.
57959
57960 2005-03-15  Bruno Haible  <bruno@clisp.org>
57961
57962         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
57963         to 'negate'.
57964
57965         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
57966         variable.
57967
57968         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
57969         results.
57970
57971 2005-03-14  Simon Josefsson  <jas@extundo.com>
57972
57973         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
57974         <fx@gnu.org>.
57975
57976 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
57977
57978         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
57979         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
57980         intprops.h.
57981         * lib/strtol.c: Likewise.
57982
57983 2005-03-14  Jim Meyering  <jim@meyering.net>
57984
57985         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
57986         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
57987         to be nonzero so that we (and caller) can detect the difference
57988         between a valid zero-length expansion and an error return, even
57989         when the underlying strftime fails before writing anything into
57990         that location.
57991
57992 2005-03-14  Bruno Haible  <bruno@clisp.org>
57993
57994         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
57995         Update from GNU gettext 0.14.3.
57996
57997 2005-03-10  Jim Meyering  <jim@meyering.net>
57998
57999         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
58000
58001 2005-03-10  Jim Meyering  <jim@meyering.net>
58002
58003         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
58004         so that this module works on systems without fchdir.
58005
58006 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
58007
58008         Factor int-properties macros into a single file, except for
58009         glibc-related files.
58010         * lib/intprops.h: New file.
58011         * lib/getloadavg.c: Include it instead of limits.h.
58012         (INT_STRLEN_BOUND): Remove.
58013         * lib/human.c: Include intprops.h.
58014         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
58015         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
58016         302/1000.
58017         * lib/inttostr.h: Include intprops.h instead of limits.h.
58018         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
58019         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
58020         for consistency with intprops.h.
58021         (time_t_is_integer, twos_complement_arithmetic): Use them.
58022         * lib/sig2str.h: Include <signal.h>, intprops.h.
58023         (INT_STRLEN_BOUND): Remove.
58024         * lib/strftime.c (TYPE_SIGNED): Remove.
58025         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
58026         * lib/strtol.c: Adjust comments to match intprops.h.
58027         * lib/userspec.c: Include intprops.h.
58028         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
58029         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
58030         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
58031         instead of rolling our own expressions.
58032         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
58033
58034         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
58035         instead of int.
58036         (my_strftime): Do not mishandle years close to INT_MAX, by doing
58037         the right thing even if adding 1900 would overflow.  Similarly
58038         for tm_mon + 1 and tm_yday + 1.
58039         Make %Y always equivalent to %C%y, and similarly for %G and %g.
58040         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
58041         (DO_SIGNED_NUMBER): New macro.
58042         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
58043
58044 2005-03-07  Bruno Haible  <bruno@clisp.org>
58045
58046         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
58047
58048 2005-03-07  Bruno Haible  <bruno@clisp.org>
58049
58050         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
58051
58052 2005-03-04  Derek R. Price  <derek@ximbiot.com>
58053
58054         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
58055         (func_import): Only replace files via --import when they have actually
58056         changed.
58057
58058 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58059
58060         * m4/mmap-anon.m4: New file.
58061         * m4/pagealign_alloc.m4: New file.
58062
58063 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58064             Bruno Haible  <bruno@clisp.org>
58065
58066         * modules/pagealign_alloc: New file.
58067         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
58068
58069 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58070             Bruno Haible  <bruno@clisp.org>
58071
58072         * lib/pagealign_alloc.h: New file.
58073         * lib/pagealign_alloc.c: New file.
58074
58075 2005-03-03  Bruno Haible  <bruno@clisp.org>
58076
58077         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
58078         Use an all-permissive copyright notice, recommended by RMS.
58079
58080 2005-03-02  Bruno Haible  <bruno@clisp.org>
58081
58082         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
58083         of AIX, the replacement has to be done only after <string.h> is
58084         included, therefore not in config.h. stpncpy.h does the replacement,
58085         and stpncpy.c uses it.
58086
58087 2005-03-02  Bruno Haible  <bruno@clisp.org>
58088
58089         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
58090         stpncpy.c uses it.
58091
58092 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58093
58094         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
58095         The workaround isn't strictly needed for POSIX conformance, and
58096         it's too much of a pain to configure and maintain.  We'll ask
58097         people to fix their kernels instead.
58098         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
58099         (NANOSLEEP_BUG_WORKAROUND): Remove.
58100         (xnanosleep): Remove the workaround.
58101
58102 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58103
58104         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
58105         Reported by Derek Price.
58106         (Include): Add "timespec.h".
58107
58108         * modules/xnanosleep (Depends-on): Remove gethrxtime.
58109
58110 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58111
58112         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
58113         to detect nanosleep bug.
58114
58115 2005-03-01  Bruno Haible  <bruno@clisp.org>
58116
58117         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
58118
58119 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58120
58121         * modules/gethrxtime: New file.
58122         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
58123         (Depends-on): Add gethrxtime.
58124         (configure.ac): Add gl_XNANOSLEEP.
58125         (Makefile.am): Remove lib_SOURCES line.
58126
58127 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58128
58129         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
58130         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
58131
58132 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58133
58134         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
58135         * lib/timespec.h (gettime): Return void, since it always
58136         succeeds now.  All uses changed.
58137         * lib/gettime.c (gettime) Likewise.
58138         [HAVE_NANOTIME]: Prefer nanotime.
58139         Assume gettimeofday succeeds, as POSIX requires.
58140         Assime time () succeeds, since other code already does.
58141         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
58142         (timespec_subtract): Remove.
58143         (NANOSLEEP_BUG_WORKAROUND): New constant.
58144         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
58145         things considerably.  Use it only on GNU/Linux hosts, since the
58146         workaround shouldn't be needed elsewhere.
58147
58148 2005-02-24  Bruno Haible  <bruno@clisp.org>
58149
58150         * modules/gettext (Files): Add m4/glibc2.m4.
58151
58152 2005-02-24  Bruno Haible  <bruno@clisp.org>
58153
58154         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
58155         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
58156         * m4/progtest.m4:
58157         Update from GNU gettext 0.14.2.
58158         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
58159
58160 2005-02-24  Bruno Haible  <bruno@clisp.org>
58161
58162         * lib/localcharset.c: Update from GNU gettext 0.14.2.
58163         * lib/config.charset: Update from GNU gettext 0.14.2.
58164
58165 2005-02-24  Bruno Haible  <bruno@clisp.org>
58166
58167         * lib/gettext.h: Update from GNU gettext 0.14.2.
58168
58169 2005-02-23  Simon Josefsson  <jas@extundo.com>
58170
58171         * m4/iconvme.m4: New file.
58172
58173 2005-02-23  Jim Meyering  <jim@meyering.net>
58174
58175         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
58176         change.
58177         Thanks to Bruno Haible for catching it.
58178
58179 2005-02-22  Simon Josefsson  <jas@extundo.com>
58180
58181         * modules/iconvme: New file.
58182
58183         * MODULES.html.sh: Add iconvme.
58184
58185 2005-02-22  Simon Josefsson  <jas@extundo.com>
58186
58187         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
58188
58189 2005-02-22  Simon Josefsson  <jas@extundo.com>
58190
58191         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
58192
58193 2005-02-22  Jim Meyering  <jim@meyering.net>
58194
58195         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
58196         s/ifndef/ifdef/.
58197
58198 2005-02-20  Neil Conway  <neilc@samurai.com>
58199
58200         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
58201         returned by OSX/Darwin if the specified buffer is not large
58202         enough for the hostname.
58203
58204 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58205
58206         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
58207         pass it to _help, otherwise the latter coredumps trying to
58208         dereference state.root_argp.
58209
58210 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58211
58212         * modules/chdir-long (Depends-on): Add memrchr.
58213         * modules/memrchr (Files): Add lib/memrchr.h.
58214         (Include): "memrchr.h".
58215
58216 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58217
58218         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
58219
58220 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58221
58222         * lib/memrchr.h: New file.
58223         * lib/chdir-long.c: Include it.
58224         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
58225         Don't bother including stddef.h.
58226
58227 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58228
58229         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
58230         inclusion.
58231         Include <sys/types.h>, for dev_t.
58232         (ME_DUMMY, ME_REMOTE): Move from here....
58233         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
58234         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
58235         Dmitry V. Levin.
58236         Include mountlist.h first, to test the interface.
58237
58238 2005-01-29  Bruno Haible  <bruno@clisp.org>
58239
58240         * lib/progname.c (program_name): Initialize.
58241         Needed when linking statically on MacOS X.
58242
58243 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58244
58245         Sync from coreutils.
58246         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
58247         (Depends-on): Add c-strtod.
58248         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
58249
58250 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58251
58252         Sync from coreutils.
58253         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
58254
58255         Remove files that are specific to coreutils.
58256         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
58257
58258 2005-01-28  Bruno Haible  <bruno@clisp.org>
58259
58260         * modules/javacomp: New file.
58261         * MODULES.html.sh (Java): Add javacomp.
58262
58263 2005-01-28  Bruno Haible  <bruno@clisp.org>
58264
58265         * m4/javacomp.m4: New file, from GNU gettext.
58266
58267 2005-01-28  Bruno Haible  <bruno@clisp.org>
58268
58269         * lib/javacomp.sh.in: New file, from GNU gettext.
58270         * lib/javacomp.h: New file, from GNU gettext.
58271         * lib/javacomp.c: New file, from GNU gettext.
58272
58273 2005-01-26  Simon Josefsson  <jas@extundo.com>
58274
58275         * lib/gai_strerror.c: Use GPL in header.
58276
58277 2005-01-26  Bruno Haible  <bruno@clisp.org>
58278
58279         * modules/javaexec: New file.
58280         * MODULES.html.sh (Java): Add javaexec.
58281
58282 2005-01-26  Bruno Haible  <bruno@clisp.org>
58283
58284         * m4/javaexec.m4: New file, from GNU gettext.
58285
58286 2005-01-26  Bruno Haible  <bruno@clisp.org>
58287
58288         * lib/javaexec.sh.in: New file, from GNU gettext.
58289         * lib/javaexec.h: New file, from GNU gettext.
58290         * lib/javaexec.c: New file, from GNU gettext.
58291
58292 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58293
58294         * modules/lchown (Depends-on): Remove lchown.h
58295
58296 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58297
58298         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
58299         must be defined if the header file was not found, in order
58300         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
58301
58302 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58303
58304         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
58305         initializers for struct pentry_state.
58306         (__argp_error): Check return value of __asprintf
58307         (__argp_failure): Translate error message
58308
58309         * lib/argp-parse.c: Removed braces around the expansion of N_()
58310
58311 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58312
58313         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
58314         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
58315         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
58316         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
58317         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
58318         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
58319         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
58320         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
58321         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
58322         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
58323         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
58324         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
58325         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
58326         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
58327         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
58328         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
58329         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
58330         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
58331         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
58332         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
58333         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
58334         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
58335         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
58336         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
58337         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
58338         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
58339         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
58340         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
58341         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
58342         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
58343         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
58344         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
58345         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
58346         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
58347         xstrtol.m4, xstrtoumax.m4, yesno.m4:
58348         Use an all-permissive copyright notice, recommended by RMS.
58349
58350 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
58351
58352         * modules/chdir-long (Depends-on): Remove mempcpy.
58353
58354 2005-01-21  Jim Meyering  <jim@meyering.net>
58355
58356         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
58357         same value as for Solaris 9.
58358
58359         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
58360         component length.  This included changing the parameter to be
58361         of type `char *' rather than `char const *'.
58362         * lib/chdir-long.h (chdir_long): Update prototype.
58363
58364         * lib/openat.c (fdopendir, fstatat): New functions.
58365         * lib/openat.h: Include headers required for use of DIR and struct
58366         stat.
58367         [AT_SYMLINK_NOFOLLOW]: Define.
58368         (fdopendir, fstatat): Add prototypes.
58369
58370 2005-01-21  Bruno Haible  <bruno@clisp.org>
58371
58372         * modules/classpath: New file.
58373         * MODULES.html.sh (Java): Add classpath.
58374
58375 2005-01-21  Bruno Haible  <bruno@clisp.org>
58376
58377         * lib/classpath.h: New file, from GNU gettext.
58378         * lib/classpath.c: New file, from GNU gettext.
58379
58380 2005-01-20  Simon Josefsson  <jas@extundo.com>
58381
58382         * modules/version-etc-fsf: New file.
58383
58384 2005-01-20  Simon Josefsson  <jas@extundo.com>
58385
58386         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
58387         * lib/version-etc.c: Remove version_etc_copyright.
58388         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
58389         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
58390
58391 2005-01-20  Simon Josefsson  <jas@extundo.com>
58392
58393         * lib/base64.h (isbase64): Add.
58394
58395         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
58396         using a unsigned prototype, don't inline.
58397         (base64_decode): Use it.
58398
58399 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58400
58401         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
58402         it.
58403
58404 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58405
58406         * lib/save-cwd.c (save_cwd): Remove code to support the case
58407         where fchdir is missing or flaky.
58408
58409 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58410
58411         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
58412
58413 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58414
58415         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
58416         AC_LIBSOURCES now does this.
58417         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
58418         with new ullong_max module.
58419
58420 2005-01-19  Bruno Haible  <bruno@clisp.org>
58421
58422         * modules/sh-quote: New file.
58423         * MODULES.html.sh (Executing programs): Add sh-quote.
58424
58425 2005-01-19  Bruno Haible  <bruno@clisp.org>
58426
58427         * lib/sh-quote.h: New file, from GNU gettext.
58428         * lib/sh-quote.c: New file, from GNU gettext.
58429
58430 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58431
58432         Merge from coreutils.
58433         * m4/ullong_max.m4: New file.
58434         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
58435         (gl_MACROS): Assume localeconv exists.
58436
58437 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58438
58439         Merge changes from coreutils, as described below in several
58440         changelogs dated today.
58441
58442         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
58443         (O_DIRECTORY): Remove; not needed here, since "." must be
58444         a directory.  All uses removed.
58445         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
58446         universal on Suns, and we also need to test for IRIX.
58447         Revamp code to use 'if' rather than '#if'.
58448         Avoid unnecessary comparison of cwd->desc to 0.
58449
58450         * lib/utimens.c (futimens): Robustify the previous patch, by checking
58451         for known valid error numbers rather than observed invalid ones.
58452
58453 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58454
58455         * modules/ullong_max: New file.
58456
58457         * modules/chdir-long, modules/openat: New files.
58458         * modules/save-cwd (Depends-on): Depend on chdir-long.
58459         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
58460
58461 2005-01-18  Jim Meyering  <jim@meyering.net>
58462
58463         Merge from coreutils.
58464         * m4/chdir-long.m4, m4/openat.m4: New files.
58465         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
58466         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
58467         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
58468         is sane and DOES follow symlinks.  Besides, testing 20 different
58469         systems found no broken chown implementations.
58470         Prompted by a change in rsync's copy of this macro.
58471         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
58472
58473         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
58474
58475         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
58476         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
58477         NULL-means-set-to-current-time semantics.
58478         Remove temporary file immediately, rather than waiting
58479         for configure's at-exit trap code to do it.
58480
58481 2005-01-18  Jim Meyering  <jim@meyering.net>
58482
58483         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58484
58485         * lib/utimens.c (futimens): Account for the fact that futimes
58486         can also fail with errno == ENOSYS or errno == ENOENT.
58487         Patch from Dmitry V. Levin.
58488
58489         Change the name of the robust chdir function from chdir to chdir_long.
58490         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
58491         (restore_cwd): Use chdir_long, not chdir.
58492         * lib/chdir-long.c: Renamed from chdir.c.
58493         * lib/chdir-long.h: Renamed from chdir.h.
58494         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
58495         Hurd.
58496
58497 2005-01-18  Bruno Haible  <bruno@clisp.org>
58498
58499         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
58500         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
58501         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
58502         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
58503         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
58504         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
58505         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
58506         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
58507         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
58508         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
58509         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
58510         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
58511         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
58512         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
58513         Use an all-permissive copyright notice, recommended by RMS.
58514
58515 2005-01-18  Bob Proulx  <bob@proulx.com>
58516
58517         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
58518         simplify offsetof() macro construct to avoid compile failure with
58519         native HP-UX 11.0 ANSI C compiler.
58520
58521 2005-01-17  Bruno Haible  <bruno@clisp.org>
58522
58523         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
58524         redundant because stpncpy.m4 takes care of it.
58525
58526 2005-01-17  Bruno Haible  <bruno@clisp.org>
58527
58528         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
58529
58530 2005-01-17  Bruno Haible  <bruno@clisp.org>
58531
58532         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
58533         used.
58534
58535 2005-01-17  Bruno Haible  <bruno@clisp.org>
58536
58537         * lib/fwriteerror.h (fwriteerror): Change specification to include
58538         fclose.
58539         * lib/fwriteerror.c: Include <stdbool.h>.
58540         (fwriteerror): At the end, close the file stream. Record whether
58541         stdout was already closed.
58542
58543 2005-01-17  Bruno Haible  <bruno@clisp.org>
58544
58545         * lib/execute.c (environ): Declare if needed.
58546         * lib/pipe.c (environ): Likewise.
58547         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
58548
58549 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58550
58551         * modules/argp: Depend on vsnprintf
58552
58553 2005-01-10  Jim Meyering  <jim@meyering.net>
58554
58555         * modules/closeout (Depends-on): Add atexit.
58556
58557 2005-01-06  Bruno Haible  <bruno@clisp.org>
58558
58559         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
58560
58561 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58562
58563         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
58564         definitions to be after all include files, to avoid collisions.
58565         Problem reported by Bob Proulx.
58566
58567 2005-01-04  Jim Meyering  <jim@meyering.net>
58568
58569         Changes imported from coreutils.
58570         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
58571         as the mkstemp template, use a temporary directory and an
58572         8.3-friendly template to avoid trouble on systems like DJGPP.
58573         Reported by Juan M. Guerrero via Stepan Kasal.
58574         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
58575         close. Remove the temporary directory right away, rather than waiting
58576         for configure's at-exit trap code to do it.
58577         Suggestion from Stepan Kasal.
58578
58579 2005-01-01  Simon Josefsson  <jas@extundo.com>
58580
58581         * gnulib-tool: Print #include directives when --import'ing.
58582
58583 2004-12-28  Simon Josefsson  <jas@extundo.com>
58584
58585         * tests/test-base64.c: Include required header files.  Remove
58586         unused variables.
58587
58588 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58589
58590         * modules/error (Depends-on): Remove gettext.
58591
58592 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58593
58594         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58595         not needed.  This removes a dependency on the gettext module.
58596         [defined _LIBC]: Do not include <libintl.h>; not needed.
58597
58598 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58599
58600         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58601         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58602
58603 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58604
58605         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58606         HAVE_DECL_STRTOLD.
58607
58608 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58609
58610         * modules/getdate (Depends-on): Remove alloca-opt.
58611
58612 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58613
58614         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58615
58616 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58617
58618         * lib/argp-parse.c: Include <stddef.h>.
58619         (alignof, alignto): New macros.
58620         (parser_init): Don't assume that void * is aligned sufficiently
58621         for struct option.
58622
58623         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58624         need to extend the stack.
58625         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58626         large.
58627
58628 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58629
58630         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58631
58632 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58633
58634         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58635         (2004-10-24) change.  Apparently this was a false alarm.
58636
58637         * modules/getdate: Depend on alloca-opt, not alloca.
58638
58639 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58640
58641         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58642         Remove now-obsolete comment about AIX.
58643         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58644         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58645         (YYMAXDEPTH): New macro.
58646
58647 2004-12-18  Simon Josefsson  <jas@extundo.com>
58648
58649         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58650
58651 2004-12-18  Bruno Haible  <bruno@clisp.org>
58652
58653         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58654
58655 2004-12-18  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/fatal-signal.c (fatal_signals): Make non-const.
58658         (init_fatal_signals): New function.
58659         (uninstall_handlers, install_handlers): Ignore signals that were set to
58660         SIG_IGN.
58661         (at_fatal_signal): Call init_fatal_signals.
58662         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58663         SIG_IGN.
58664         Reported by Paul Eggert.
58665
58666 2004-12-18  Bruno Haible  <bruno@clisp.org>
58667
58668         * doc/alloca.texi: New file.
58669         * doc/alloca-opt.texi: New file.
58670
58671 2004-12-17  Jim Meyering  <jim@meyering.net>
58672
58673         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58674         Otherwise, install-sh could exit with improper exit status when
58675         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58676
58677 2004-12-16  Simon Josefsson  <jas@extundo.com>
58678
58679         * tests/test-base64.c: Add license.
58680
58681 2004-12-15  Stepan Kasal  <address@hidden>
58682
58683         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58684
58685 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58686
58687         * modules/getcwd (Files): Add m4/d-ino.m4.
58688         Suggested by Mark D. Baushke.
58689
58690 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58691
58692         * lib/getdate.y (textint): New member "negative".
58693         (time_zone_hhmm): New function.
58694         Expect 14 shift-reduce conflicts, not 13.
58695         (o_colon_minutes): New rule.
58696         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58697         (yylex): Set the "negative" member of signed numbers.
58698
58699 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58700
58701         * doc/getdate.texi (Time of day items, Time zone items):
58702         Describe new formats +00:00, UTC+00:00.
58703
58704 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58705
58706         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58707         spurious "-l"s.  Problem reported by Stepan Kasal.
58708
58709 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58710
58711         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58712         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58713
58714 2004-12-04  Simon Josefsson  <jas@extundo.com>
58715
58716         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58717         Vandoorselaere <yoann@prelude-ids.org>.
58718
58719 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58720
58721         Changes imported from coreutils.
58722         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58723         exist.
58724         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58725
58726 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58727
58728         Changes imported from coreutils.
58729         * lib/hard-locale.c: Assume <locale.h> exists.
58730         Include "strdup.h".
58731         (GLIBC_VERSION): New macro.
58732         (hard_locale): Assume setlocale exists.
58733         Rewrite to avoid #ifdef.
58734         Use strdup rather than malloc + strcpy.
58735         * lib/human.c: Assume <locale.h> exists.
58736         (human_readable): Assume localeconv exists.
58737
58738 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58739
58740         * modules/hard-locale (Depends-on): Add strdup.
58741
58742 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58743
58744         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58745         convert T2, not T.  (Imported from libc.)
58746
58747 2004-11-30  Simon Josefsson  <jas@extundo.com>
58748
58749         * modules/restrict (License): Change to LGPL.
58750
58751 2004-11-30  Simon Josefsson  <jas@extundo.com>
58752
58753         * m4/restrict.m4: Add copyright and copying conditions.
58754
58755 2004-11-30  Simon Josefsson  <jas@extundo.com>
58756
58757         * m4/base64.m4: New file.
58758
58759 2004-11-30  Simon Josefsson  <jas@extundo.com>
58760
58761         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58762         base64.
58763
58764         * tests/test-base64.c: New file.
58765
58766         * modules/base64: New file.
58767
58768 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58769
58770         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58771         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58772
58773         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58774
58775 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58776
58777         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58778         (__getcwd.c): Don't restore errno; glibc doesn't.
58779         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58780         first, falling back to our code only if its results look suspicious.
58781         Ensure that the resulting buffer is only as large as necessary.
58782
58783         * lib/readutmp.c: Include readutmp.h first.
58784         Include <errno.h>, since readutmp.h no longer does that.
58785         * lib/readutmp.h: Don't include <errno.h>,
58786         <sys/param.h>, <time.h>; not needed to establish interface.
58787         (errno): Remove decl.
58788         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58789         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58790         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58791
58792 2004-11-28  Simon Josefsson  <jas@extundo.com>
58793
58794         * lib/base64.h, base64.c: New file.
58795
58796 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58797
58798         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58799
58800 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58801
58802         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58803         (Depends-on): Remove pathmax, same.  Add mempcpy.
58804         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58805         (Makefile.am): Append getcwd.h to lib_SOURCES.
58806         (Include): Add getcwd.h.
58807         (Maintainer): Change from Jim Meyering to "all, glibc",
58808         since getdate now uses intended-for-glibc code.
58809         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58810         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58811
58812 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58813
58814         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58815         HP's ANSI C compiler.
58816         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58817         Declaring int functions causes warnings on some modern systems and
58818         shouldn't be needed to compile on ancient ones.
58819         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58820         defined.
58821
58822         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58823         with the following changes.
58824         (__set_errno): Parenthesize properly.
58825         Include <stdbool.h>.
58826         (MIN, MAX, MATCHING_INO): New macros.
58827         (__getcwd): Define with prototype, not K&R form.
58828         Use heuristics to allocate default buffer on stack if possible.
58829         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
58830         behavior, and to avoid the PATH_MAX limit when computing
58831         ../../../../...
58832         Use MATCHING_INO to compare inode number to file.
58833         Check for arithmetic overflow in size calculations.
58834         Fix bug in reallocation of dot array that caused getcwd to fail
58835         on directories nested deeper than 75.
58836         Be more careful about saving errno on error.
58837         Do not use realloc; use only free+malloc, as this is a bit
58838         more flexible and avoids a needless copy operation.
58839         Do not inspect st_dev and st_ino for symbolic links; POSIX
58840         doesn't specify the latter.
58841         Check for closedir errors.
58842         Avoid needless casts.
58843         Use "#ifdef weak_alias" around weak_alias, to be like other
58844         glibc code.
58845         The following changes to getcwd.c have effect only when used in
58846         gnulib; they have no effect inside glibc proper.
58847         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
58848         as alloca isn't used.
58849         (alloca, __alloca): Likewise.
58850         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
58851         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58852         unconditionally, as gnulib assumes C89 or better.
58853         Do not include <sys/param.h>.
58854         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
58855         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
58856         better.
58857         (NULL) [!defined NULL]: Remove; we assume C89 or better.
58858         Include <dirent.h> in a way that is compatible with modern Autoconf.
58859         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
58860         New macros, if not already defined.
58861         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
58862         Use "_LIBC", not "defined _LIBC", for consistency.
58863         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
58864         a mempcpy module.
58865         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
58866         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
58867         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
58868         credit only to Jim Meyering and adjust the copyright dates.
58869         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
58870         <stdlib.h>, <unistd.h>, "pathmax.h".
58871         Instead, include "xgetcwd.h" (first) and "getcwd.h".
58872         (INITIAL_BUFFER_SIZE): Remove.
58873         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
58874
58875 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58876
58877         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
58878         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
58879         Use the _ONCE methods, for efficiency.
58880         Check for fcntl.h.  In test program, include <errno.h>
58881         and <fcntl.h> if available.  Remove old K&R cruft from
58882         test program.  Check for common errors in GNU/Linux,
58883         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
58884         don't do AC_LIBOBJ, as that's getcwd.m4's job.
58885         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
58886         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
58887         name accordingly.
58888         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
58889         accommodate new getcwd.c.
58890         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
58891         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
58892         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
58893         that's all we need now.
58894
58895 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58896
58897         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
58898         argp-parse.c depends on getopt internals, that means we should
58899         always use our getopt, to be on the safe side.
58900         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
58901         order not to spoil the result of an eventual previous invocation
58902         of gl_GETOPT_SUBSTITUTE.
58903
58904 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58905
58906         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
58907         redefinition warnings. To avoid them, include the defines
58908         in `#if !defined __need_getopt ... #endif'. The only place
58909         where __getopt_argv_const is used is in definitions
58910         of getopt_long and getopt_long_only below, which are as well
58911         protected by `#ifndef __need_getopt'.
58912         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
58913         __need_getopt after including <stdio.h> and <unistd.h> These
58914         headers might have defined it.
58915
58916 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58917
58918         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
58919
58920 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58921
58922         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
58923         (futimens): New function, which uses futimes if available.
58924         (futimens, utimens): Support timespec==NULL, with same semantics
58925         as utime and utimens.
58926         * lib/utimens.h (futimens): New decl.
58927
58928 2004-11-23  Jim Meyering  <jim@meyering.net>
58929
58930         * lib/getopt_.h: Remove trailing blanks.
58931
58932 2004-11-23  Jim Meyering  <jim@meyering.net>
58933
58934         * lib/__fpending.c: Add comment.
58935
58936 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
58937
58938         * modules/canonicalize (Depends-on): Add xreadlink.
58939         Problem reported by James Youngman.
58940
58941 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58942
58943         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
58944         New macros.
58945         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
58946         optopt): Use them instead of invoking ## directly; otherwise, the
58947         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
58948
58949 2004-11-19  Bruno Haible  <bruno@clisp.org>
58950
58951         * lib/strtok_r.c: Move comments from here...
58952         * lib/strtok_r.h: ... to here.
58953
58954 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58955
58956         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
58957         implementations that mishandle size_t overflow.
58958
58959 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58960
58961         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
58962         might fail.  Problem reported by Yoann Vandoorselaere.
58963         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
58964         implementations that mishandle size_t overflow.
58965
58966 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58967
58968         * modules/canon-host (Depends-on): Add strdup.
58969
58970 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58971
58972         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
58973
58974 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58975
58976         * lib/canon-host.c: Include "strdup.h".
58977         (canon_host): Use getaddrinfo if available, so that IPv6 works.
58978         Use strdup instead of malloc/strcpy to duplicate strings.
58979
58980         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
58981         (human_space_before_unit): New constant.
58982         * lib/human.c (human_readable): Support it.
58983
58984         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
58985         (xgetcwd): Set errno correctly when failing.
58986         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
58987         the failure is actually due to a PATH_MAX problem.
58988
58989         Further getopt changes to make it more likely that glibc will
58990         buy the changes back.
58991         * lib/getopt.c (POSIXLY_CORRECT): New constant.
58992         (getopt): Use it, so to preserve glibc semantic
58993         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
58994         when compiling for libc.
58995         * lib/getopt_.h (__getopt_argv_const): Bring it back.
58996         (getopt_long, getopt_long_only): Use it.
58997
58998         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
58999         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
59000         (getopt): Argv is now char * const *, as per standard.
59001         (_getopt_internal_r, _getopt_internal): Argv is now char **,
59002         not char *__getopt_argv_const *.
59003         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59004         _getopt_long_only_r): Likewise.
59005         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
59006         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59007         _getopt_long_r, _getopt_long_only_r): Likewise.
59008         * lib/getopt_.h (__getopt_argv_const): Remove.
59009         (getopt): Argv is now char * const *, as per standard.
59010
59011         * lib/getdate.y (tORDINAL): New token.
59012         (day, relunit): Allow it for relative times.
59013         (relative_time_table): Use tORDINAL for ordinals.
59014
59015 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59016
59017         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
59018         Document that "second" isn't allowed as an ordinal number.
59019
59020 2004-11-16  Jim Meyering  <jim@meyering.net>
59021
59022         * modules/closeout (Depends-on): Add fpending.
59023
59024 2004-11-15  Jim Meyering  <jim@meyering.net>
59025
59026         * lib/closeout.c: Include "__fpending.h" once again.
59027         Include <stdbool.h>.
59028         (close_stdout): Don't fail just because stdout was closed initially,
59029         since some programs don't write to stdout in the normal course of
59030         operation (other than --version and --help), and we don't want this
59031         function to make e.g. `touch file >&-' fail.
59032         But do fail if it was closed and someone has tried to write to it.
59033         E.g., `printf foo >&-' must fail.
59034
59035 2004-11-13  Jim Meyering  <jim@meyering.net>
59036
59037         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
59038
59039 2004-11-12  Simon Josefsson  <jas@extundo.com>
59040
59041         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
59042         small doc fix is still pending.
59043
59044 2004-11-11  Simon Josefsson  <jas@extundo.com>
59045
59046         * modules/strtok_r: New file.
59047
59048         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59049         strtok_r.
59050
59051 2004-11-11  Simon Josefsson  <jas@extundo.com>
59052
59053         * m4/strtok_r.m4: New file.
59054
59055         * m4/getopt.m4: Replace opterr.
59056
59057 2004-11-11  Simon Josefsson  <jas@extundo.com>
59058
59059         * lib/strtok_r.h, strtok_r.c: New file.
59060
59061 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59062
59063         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
59064         of replacing opterr, getopt, etc.  This should handle the
59065         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
59066
59067 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59068
59069         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
59070         we can stop lying to compilers about the constness of argv when we
59071         are compiled outside glibc.
59072         (getopt, getopt_long, getopt_long_only): Use it.
59073         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59074         _getopt_internal, getopt): Likewise.
59075         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59076         _getopt_long_only_r): Likewise.
59077         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59078         _getopt_long_r, _getopt_long_only_r): Likewise.
59079
59080         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
59081         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
59082         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
59083         the other external symbols.
59084         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
59085         declaration, since the above renaming now works around collisions.
59086
59087 2004-11-11  Jim Meyering  <jim@meyering.net>
59088
59089         * lib/linebreak.c: Remove trailing blanks.
59090         * lib/alloca_.h: Likewise.
59091         * lib/acosl.c: Likewise.
59092         * lib/euidaccess.c: Likewise.
59093         * lib/allocsa.h: Likewise.
59094
59095 2004-11-10  Simon Josefsson  <jas@extundo.com>
59096
59097         * m4/getaddrinfo.m4: New file.
59098
59099 2004-11-10  Simon Josefsson  <jas@extundo.com>
59100
59101         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
59102
59103 2004-11-10  Simon Josefsson  <jas@extundo.com>
59104
59105         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59106         getaddrinfo.
59107
59108         * modules/getaddrinfo: New file.
59109
59110 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59111
59112         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
59113
59114 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59115
59116         * lib/mktime.c (SHR): New macro, which is a portable
59117         substitute for >> that should work even on Crays.
59118         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
59119         Problem reported by Mark D. Baushke in
59120         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
59121         * lib/getdate.y (SHR): Likewise.
59122         (tm_diff): Use it.
59123         * lib/strftime.c (SHR): Likewise.
59124         (tm_diff): Use it.
59125         * lib/quotearg.c (struct quoting_options): Use unsigned int for
59126         quote_these_too, so that right shifts are well defined.  All uses
59127         changed.
59128
59129 2004-11-10  Jim Meyering  <jim@meyering.net>
59130
59131         Ensure that no close failure goes unreported.
59132         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
59133         return early when it seems there's nothing to flush.
59134         Don't include __fpending.h.
59135
59136 2004-11-10  Jim Meyering  <jim@meyering.net>
59137
59138         * modules/closeout (Depends-on): Remove fpending.
59139
59140 2004-11-10  Jim Meyering  <jim@meyering.net>
59141
59142         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
59143
59144 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59145
59146         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
59147         gl_FUNC_STRFTIME.
59148         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
59149         and AC_REQUIRE when possible, to avoid duplicate checks.
59150         Check for <wchar.h>.
59151
59152 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59153
59154         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
59155
59156 2004-11-09  Bruno Haible  <bruno@clisp.org>
59157
59158         * m4/sockpfaf.m4: New file.
59159
59160 2004-11-05  Bruno Haible  <bruno@clisp.org>
59161
59162         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
59163         Reported by Mark D. Baushke <mdb@cvshome.org>.
59164
59165 2004-11-04  Bruno Haible  <bruno@clisp.org>
59166
59167         2004-09-11  Bruno Haible  <bruno@clisp.org>
59168                 * allocsa.valgrind: New file.
59169         2004-02-06  Bruno Haible  <bruno@clisp.org>
59170                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
59171                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
59172                 Reported by Christopher Seip <chris.seip@hp.com>.
59173
59174 2004-11-04  Bruno Haible  <bruno@clisp.org>
59175
59176         * modules/allocsa (Files): Add lib/allocsa.valgrind.
59177         (Makefile.am): Distribute it.
59178
59179 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59180
59181         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
59182         with errno == ERANGE if the buffer is too small.
59183         Problem reported by Mark D. Baushke.
59184
59185 2004-11-03  Albert Chin  <china@thewrittenword.com>
59186             Paul Eggert  <eggert@cs.ucla.edu>
59187
59188         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
59189         equivalent, substitute $ac_type for equivalent type rather than
59190         blindly using uint32_t *always* which won't work if uint32_t is not
59191         available.  Define _UINT32_T to work around typedef of uint32_t if
59192         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
59193         2.5.1.
59194
59195 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59196
59197         * m4/jm-macros.m4: Sync from coreutils.
59198         (gl_MACROS): Check for mbrlen, for pathchk.
59199         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
59200
59201 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59202
59203         * lib/xreadlink.c (MAXSIZE): New macro.
59204         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
59205         size does not exceed MAXSIZE.  Avoid cast.
59206         As suggested by Mark D. Baushke in
59207         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
59208         if readlink fails with buffer size just under MAXSIZE, try again
59209         with MAXSIZE.
59210
59211 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59212
59213         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
59214
59215 2004-11-02  Derek R. Price  <derek@ximbiot.com>
59216         and  Paul Eggert  <eggert@cs.ucla.edu>
59217
59218         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
59219         (get_date): Overparenthesize to avoid GCC warning.
59220
59221 2004-11-02  Bruno Haible  <bruno@clisp.org>
59222
59223         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
59224         returns void.
59225
59226 2004-11-02  Bruno Haible  <bruno@clisp.org>
59227
59228         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
59229         function returns void.
59230
59231 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59232
59233         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
59234         fflush_unlocked, flockfile, funlockfile, funlockfile,
59235         fputs_unlocked, putc_unlocked.
59236
59237 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59238
59239         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59240         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
59241         already declared.
59242
59243 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59244
59245         * modules/getdate (Files): Add doc/getdate.texi.
59246         (Depends-on): Add setenv, xalloc.
59247
59248 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59249
59250         * lib/getdate.y: Add support for TZ="foo" within a date string.
59251         Fix some bugs near time_t boundaries.  Reject dates with
59252         out-of-range components, e.g., "Sept 31".
59253         Include <stdlib.h>, "setenv.h", "xalloc.h".
59254         (ISDIGIT_LOCALE): Remove; unused.
59255         Note that the TZ and time functions used here are not reentrant.
59256         (mktime_ok, get_tz): New functions.
59257         (TZBUFSIZE): New constant.
59258         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
59259         This requires that we sometimes generate our own TZ="XXX..." setting.
59260
59261 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59262
59263         * doc/getdate.texi: New file, from coreutils with modifications for
59264         the new TZ parsing.
59265
59266 2004-10-27  Derek R. Price  <derek@ximbiot.com>
59267
59268         * lib/mktime.c (not_equal_tm): Remove redundant check.
59269
59270 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59271
59272         * modules/regex (lib_SOURCES): Add regex.c.
59273         Reported by James Youngman in
59274         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
59275
59276 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59277
59278         * lib/getdate.y: Use Bison 1.875 features, and some minor
59279         code cleanups.  This change does not affect semantics.
59280         Don't include <stdlib.h>; no longer needed.
59281         Don't include unlocked-io.h; only the "#if TEST" code uses
59282         stdio, and performance isn't crucial there.
59283         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
59284         Bison 1.875 features as described below.
59285         All uses of "PC." replaced by "pc->".
59286         (YYSTYPE): Add a forward declaration.
59287         (yylex, yyerror): Use full prototypes in forward decls.
59288         Use "%pure-parser" rather than obsolescent "%pure_parser".
59289         Use %parse-param and %lex-param instead of obsolescent
59290         YYPARSE_PARAM and YYLEX_PARAM.
59291         (meridian_table, month_and_day_table, time_units_table,
59292         relative_time_table, time_zone_table, military_table,
59293         lookup_zone, lookup_word, get_date):
59294         Use NULL instead of 0 where appropriate.
59295         (to_hour): Avoid abort (), to avoid a dependency on
59296         stdlib.h.
59297         (yyerror, yylex): Now accepts parser_control * arg.
59298         (main) [TEST]: Use '\0' rather than 0 for char.
59299
59300 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59301
59302         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
59303
59304 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59305
59306         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
59307         It's now the caller's responsibility to handle the case where
59308         !HAVE_GETPAGESIZE && !defined getpagesize.
59309
59310         * lib/mktime.c (leapyear): Arg is long int, not int.
59311
59312 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
59313
59314         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
59315
59316 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59317
59318         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
59319         missing.  Problem reported by James Youngman.
59320
59321 2004-10-16  Simon Josefsson  <jas@extundo.com>
59322
59323         * gnulib-tool: Fix comments.  Fix parse problem.
59324         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
59325
59326 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
59327
59328         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
59329         implementation of getopt_long.  Problem reported by Alexander Taler in:
59330         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
59331
59332 2004-10-15  Bruno Haible  <bruno@clisp.org>
59333
59334         * gnulib-tool: Untabify. Initialize supplied_libname.
59335         (func_usage): More homogenous output.
59336         (func_modules_transitive_closure, func_modules_to_filelist,
59337         func_emit_lib_Makefile_am): New functions.
59338         (func_import): New function, extracted from big case statement. Use
59339         func_get_license, func_modules_transitive_closure,
59340         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
59341         opt_lgpl. Don't use test -a, as it's not portable.
59342         (func_create_testdir): Use func_modules_transitive_closure,
59343         func_modules_to_filelist, func_emit_lib_Makefile_am.
59344
59345 2004-10-15  Bruno Haible  <bruno@clisp.org>
59346
59347         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
59348
59349 2004-10-15  Bruno Haible  <bruno@clisp.org>
59350
59351         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
59352         the portions belonging to each module.
59353         Suggested by Derek Robert Price <derek@ximbiot.com>.
59354
59355 2004-10-12  Simon Josefsson  <jas@extundo.com>
59356
59357         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59358         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
59359         to real functions.
59360
59361 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59362
59363         * modules/vsnprintf: New file.
59364
59365 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59366
59367         * m4/vsnprintf.m4: New file.
59368
59369 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59370
59371         * lib/vsnprintf.h: New file.
59372         * lib/vsnprintf.c: New file.
59373
59374 2004-10-11  Bruno Haible  <bruno@clisp.org>
59375
59376         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
59377         vsnprintf.
59378
59379 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59380
59381         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
59382
59383 2004-10-07  Bruno Haible  <bruno@clisp.org>
59384
59385         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
59386         fits into the provided buffer.
59387
59388 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59389
59390         * lib/diacrit.c, diacrit.h: Add GPL notice.
59391
59392         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
59393         notice.
59394         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
59395         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
59396         This avoids a potential constant-folding bug.
59397
59398 2004-10-05  Bruno Haible  <bruno@clisp.org>
59399
59400         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
59401         for the declaration of strsep.
59402
59403 2004-10-05  Bruno Haible  <bruno@clisp.org>
59404
59405         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
59406
59407 2004-10-04  Simon Josefsson  <jas@extundo.com>
59408
59409         * modules/memmem: New file.
59410         * tests/test-memmem.c: New file.
59411         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
59412
59413 2004-10-04  Simon Josefsson  <jas@extundo.com>
59414
59415         * m4/memmem.m4: New file.
59416
59417 2004-10-04  Simon Josefsson  <jas@extundo.com>
59418
59419         * lib/memmem.h: New file.
59420         * lib/memmem.c: New file, taken from glibc.
59421
59422 2004-10-04  Simon Josefsson  <jas@extundo.com>
59423
59424         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
59425         '#ifdef USE_UNLOCKED_IO'.
59426
59427 2004-10-04  Simon Josefsson  <jas@extundo.com>
59428
59429         * config/srclist.txt: Add memmem from glibc.
59430
59431 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59432
59433         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
59434
59435         * modules/argmatch, modules/argp, modules/closeout, modules/error,
59436         modules/exclude, modules/getdate, modules/getline,
59437         modules/getndelim2, modules/getpass, modules/getpass-gnu,
59438         modules/getusershell, modules/linebuffer, modules/md5,
59439         modules/mountlist, modules/posixtm, modules/readtokens,
59440         modules/readutmp, modules/regex, modules/sha1,
59441         modules/version-etc, modules/yesno:
59442         Remove dependency on unlocked-io.
59443
59444 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59445
59446         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
59447
59448         * m4/unlocked-io.m4: Add copyright notice.
59449         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
59450
59451 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59452
59453         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
59454         * lib/xmalloc.c (xmemdup): Likewise.
59455         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
59456         XFREE): Remove these long-obsolescent macros.
59457         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
59458         * lib/xstrdup.c: Remove.
59459
59460         * lib/regex.c (re_comp): Cast gettext return value to char *,
59461         Problem reported by Martin Neitzel via Mark D. Baushke.
59462
59463 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59464
59465         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
59466         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
59467         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
59468         regex.c, sha1.c, version-etc.c, yesno.c:
59469         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
59470         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
59471         the includer's responsibility.
59472
59473         Sync from coreutils.
59474
59475         * lib/modechange.c (mode_compile): Don't decrement a pointer that
59476         points to the start of a string, as the C Standard says the
59477         resulting behavior is undefined.
59478
59479         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
59480         simple -> simple_backups, numbered_existing ->
59481         numbered_existing_backups, numbered -> numbered_backups
59482         to avoid shadowing problems.  All uses changed.
59483         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
59484         * lib/backupfile.c (check_extension, numbered_backup):
59485         Rename locals to avoid shadowing 'basename'.
59486         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
59487         once.
59488
59489         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
59490         * lib/.cvsignore: Add getopt.h.
59491
59492 2004-10-04  Bruno Haible  <bruno@clisp.org>
59493
59494         * modules/README: New file.
59495         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
59496         not a module.
59497
59498 2004-10-02  Jim Meyering  <jim@meyering.net>
59499
59500         * lib/dirfd.h, getpagesize.h: Add copyright notice.
59501
59502 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59503
59504         * modules/strsep: New file.
59505
59506 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59507
59508         * m4/strsep.m4: New file.
59509
59510 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59511
59512         * lib/strsep.h: New file.
59513         * lib/strsep.c: New file.
59514
59515 2004-10-01  Simon Josefsson  <jas@extundo.com>
59516
59517         * lib/snprintf.c (snprintf): Handle size==0.
59518
59519 2004-10-01  Simon Josefsson  <jas@extundo.com>
59520             Bruno Haible  <bruno@clisp.org>
59521
59522         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
59523         (snprintf): Declare 'args'.
59524
59525 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
59526
59527         * lib/snprintf.c: Remove comments as to why each header is needed.
59528
59529 2004-10-01  Bruno Haible  <bruno@clisp.org>
59530
59531         * MODULES.html.sh: Add strsep.
59532
59533 2004-09-30  Simon Josefsson  <jas@extundo.com>
59534
59535         * modules/snprintf: New file.
59536
59537 2004-09-30  Simon Josefsson  <jas@extundo.com>
59538
59539         * m4/snprintf.m4: New file.
59540
59541 2004-09-30  Simon Josefsson  <jas@extundo.com>
59542
59543         * lib/snprintf.h, lib/snprintf.c: New files.
59544
59545 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59546
59547         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
59548         (hol_entry_help): Never translate an empty string.
59549         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
59550         * lib/argp.h (OPTION_NO_TRANS): New option.
59551
59552 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59553
59554         * modules/argp (Maintainer): Replace Simon Josefsson
59555         by Sergey Poznyakoff.
59556
59557 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59558
59559         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
59560         changes merged back into glibc.
59561
59562 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59563
59564         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
59565
59566 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59567
59568         * lib/xvasprintf.c: Include xalloc.h.
59569         (xvasprintf): Use xalloc_die, not xmalloc_die.
59570
59571 2004-09-29  Bruno Haible  <bruno@clisp.org>
59572
59573         * modules/alloca-opt: New file, derived from modules/alloca.
59574         * modules/allocsa: Depend on alloca-opt instead of alloca.
59575         * modules/setenv: Likewise.
59576         * modules/vasnprintf: Likewise.
59577         * MODULES.html.sh: Add alloca-opt.
59578
59579 2004-09-28  Simon Josefsson  <jas@extundo.com>
59580
59581         * gnulib-tool: New parameter --lgpl, to asseert that modules are
59582         LGPL, and to replace license template from GPL to LGPL.
59583
59584 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59585
59586         * modules/dummy: Change license to LGPL.
59587
59588 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59589
59590         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59591
59592 2004-09-24  Simon Josefsson  <jas@extundo.com>
59593
59594         * modules/minmax (License): Change from GPL to LGPL.
59595
59596 2004-09-23  Simon Josefsson  <jas@extundo.com>
59597
59598         * gnulib-tool (--import): Typo.
59599
59600 2004-09-23  Simon Josefsson  <jas@extundo.com>
59601
59602         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59603
59604 2004-09-22  Bruno Haible  <bruno@clisp.org>
59605
59606         * modules/*: Add 'License' field.
59607         * gnulib-tool: Accept --extract-license option.
59608         (func_get_license): New function.
59609
59610 2004-09-21  Bruno Haible  <bruno@clisp.org>
59611
59612         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59613         Reported by Simon Josefsson.
59614
59615 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59616
59617         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59618         gl_AC_TYPE_LONG_LONG.
59619
59620 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59623
59624 2004-09-18  Simon Josefsson  <jas@extundo.com>
59625         and  Paul Eggert  <eggert@cs.ucla.edu>
59626
59627         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59628         calls with autoreconf.  Define GL_LIB.
59629
59630 2004-09-14  Karl Berry  <karl@gnu.org>
59631
59632         * config/srclist.txt: unsync setenv.c, sigh.
59633
59634 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59635
59636         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59637         Problem reported by Bruno Haible in:
59638         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59639
59640 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59641
59642         * config/srclist.txt: Comment out argp-pvh.c.
59643
59644 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59645
59646         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59647         in case some system header has #define'd it.  Problem reported by
59648         Soeren D. Schulze in
59649         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59650
59651 2004-09-09  Karl Berry  <karl@gnu.org>
59652
59653         * regex.[ch]: delete from the root.  These were supposed to be
59654                 synced with emacs cvs, but this has not happened for about
59655                 a year, and anyway nothing else uses emacs regex.[ch].
59656                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59657                 lib/regex[.ch] is untouched.
59658
59659 2004-09-09  Bruno Haible  <bruno@clisp.org>
59660
59661         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59662
59663 2004-09-09  Bruno Haible  <bruno@clisp.org>
59664
59665         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59666         modifications.
59667         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59668
59669 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59670
59671         * modules/xvasprintf: New file.
59672         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59673
59674 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59675
59676         * lib/xvasprintf.h: New file.
59677         * lib/xvasprintf.c: New file.
59678         * lib/xasprintf.c: New file.
59679
59680 2004-09-08  Bruno Haible  <bruno@clisp.org>
59681
59682         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59683
59684 2004-09-08  Bruno Haible  <bruno@clisp.org>
59685
59686         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59687         length is > INT_MAX.
59688         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59689         more.
59690
59691 2004-09-08  Bruno Haible  <bruno@clisp.org>
59692
59693         * lib/stdint_.h: New file, taken from GNU clisp.
59694
59695 2004-09-08  Bruno Haible  <bruno@clisp.org>
59696             Oskar Liljeblad  <oskar@osk.mine.nu>
59697
59698         * modules/stdint: New file.
59699         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59700
59701 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59702
59703         Import from coreutils.
59704         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59705         strings on unbounded length.  alloca's performance benefits aren't
59706         that important here.
59707         (V_STRDUP): Remove.
59708         (parse_with_separator): New function, with most of the internals
59709         of the old parse_user_spec.  Allow user to omit both user and group,
59710         for compatibility with FreeBSD.
59711         Clone only the user name, not the entire spec.
59712         Do not set *uid, *gid unless entirely successful.
59713         Avoid memory leak in some failing cases.
59714         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59715         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59716         (parse_user_spec): Rewrite to use parse_with_separator.
59717
59718 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59719
59720         * modules/userspec: Don't depend on alloca.
59721
59722 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59723
59724         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59725
59726 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59727
59728         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59729         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59730         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59731
59732 2004-08-16  Simon Josefsson  <jas@extundo.com>
59733
59734         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59735         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59736         Add --dry-run for --import.
59737         Let user provided command line parameters override configure.ac
59738         settings.
59739
59740 2004-08-12  Simon Josefsson  <jas@extundo.com>
59741
59742         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59743         as discussed with Paul Eggert in threads rooted at
59744         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59745         and
59746         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59747         Before, the test was empty, and relied on ELIDE_CODE in source
59748         code.)
59749         (gl_PREREQ_GETOPT): New macro.
59750         (gl_GETOPT): Use them.
59751
59752 2004-08-12  Simon Josefsson  <jas@extundo.com>
59753
59754         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59755         * lib/getopt_.h: Renamed from getopt.h.
59756
59757 2004-08-12  Simon Josefsson  <jas@extundo.com>
59758
59759         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59760         Change default library name from libfoo to libgnu.
59761         Now, if you have a configure.ac that says:
59762                 gl_SOURCE_BASE(gl)
59763                 gl_M4_BASE(gl/m4)
59764                 gl_MODULES(error getopt etcetera)
59765                 gl_INIT
59766         you can import all you need by running:
59767                 ../gnulib/gnulib-tool --import
59768
59769         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59770         (Makefile.am): Rewrite, use logic from argz.
59771         (Include): Use <getopt.h> instead of "getopt.h".
59772
59773 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59774
59775         * modules/argp (Files): Add m4/unlocked-io.m4.
59776         (Depends-on): Add extensions.
59777
59778 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59779
59780         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59781         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59782         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59783         Check for program_invocation_name, program_invocation_short_name,
59784         flockfile, funlockfile, features.h, _getopt_long_only_r.
59785
59786 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59787
59788         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59789         its complicated substitute.
59790         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59791         and program_invocation_name.
59792         (__argp_basename) [!_LIBC]: Remove; the only use was
59793         replaced by its body.
59794         (__argp_short_program_name): Change condition from
59795         !defined __argp_short_program_name to
59796         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59797         to match argp-namefrob.h.
59798         (__argp_failure): Don't assume strerror_r returns char *.
59799         * lib/argp-parse.c (N_): Define unconditionally.
59800         (argp_default_options): Fill out initializers with 0 to avoid
59801         gcc warnings.
59802
59803 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59804
59805         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59806         getopt1.c.
59807
59808 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59809
59810         Merge from coreutils.
59811
59812         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59813
59814         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59815         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59816
59817 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59818
59819         Merge from coreutils.
59820
59821         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59822         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59823         for Reliant Unix 5.43.
59824
59825         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59826         (union fooround): Use uintmax_t, not long int.
59827         The rest is a merge from libc:
59828         [defined _LIBC]: Include <shlib-compat.h>.
59829         (_obstack) [defined _LIBC]: Remove after 2.3.4.
59830
59831         * lib/settime.c (settime): Recode to avoid warning with
59832         Sun Forte C 6U2.
59833
59834         * lib/strverscmp.c: Convert to UTF-8.
59835
59836 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59837
59838         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59839         m4/uintmax_t.m4.
59840
59841 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59842
59843         * modules/xalloc-die: New file.
59844         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
59845
59846         * modules/md5 (Files): Add m4/uint32_t.m4.
59847         * modules/sha1: Renamed from modules/sha.
59848         (Files):
59849         Rename lib/sha.h to lib/sha1.h.
59850         Rename lib/sha.c to lib/sha1.c.
59851         Rename m4/sha.m4 to m4/sha1.m4.
59852         (lib_SOURCES): Likewise.
59853         (configure.ac): Rename gl_SHA to gl_SHA1.
59854         (Include): sha.h -> sha1.h.
59855
59856 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59857
59858         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
59859         * m4/sha1.m4: Renamed from sha.m4.
59860         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
59861
59862 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59863
59864         * lib/obstack.h (obstack_empty_p):
59865         Don't assume that chunk->contents is suitably aligned.
59866         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
59867         Likewise. Problem reported by Benno in
59868         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
59869
59870         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
59871         readable.  This could be improved further but it'd take some work.
59872
59873 2004-08-08  Simon Josefsson  <jas@extundo.com>
59874
59875         * modules/xgethostname (Depends-on): Remove exit and error (not
59876         used).
59877
59878         * modules/getpass-gnu: Add getpass.h.
59879         (Depends-on): Add stdbool.
59880         * modules/getpass: Add getpass.h.
59881
59882 2004-08-08  Simon Josefsson  <jas@extundo.com>
59883
59884         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
59885         Check getpass declaration.
59886
59887 2004-08-08  Simon Josefsson  <jas@extundo.com>
59888
59889         * lib/xgethostname.c: Don't include error.h (not used).
59890
59891         * lib/getpass.h: Add.
59892         * lib/getpass.c: Include getpass.h first.
59893
59894 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
59895
59896         * lib/xalloc-die.c: New file.
59897         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
59898         All uses removed.
59899         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
59900         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
59901         xalloc-die.c.
59902         (_, N_, xalloc_die): Move to xalloc-die.c.
59903         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
59904         so that we needn't mess with xalloc_msg_memory_exhausted.
59905
59906         * lib/sha1.h: Renamed from sha.h.
59907         (SHA1_H): Renamed from _SHA_H.
59908         (sha1_ctx): Renamed from sha_ctx.
59909         (sha1_init_ctx): Renamed from sha_init_ctx.
59910         (sha1_process_block): Renamed from sha_process_block.
59911         (sha1_process_bytes): Renamed from sha_process_bytes.
59912         (sha1_finish_ctx): Renamed from sha_finish_ctx.
59913         (sha1_read_ctx): Renamed from sha_read_ctx.
59914         (sha1_stream): Renamed from sha_stream.
59915         (sha1_buffer): Renamed from sha_buffer.
59916         * lib/sha1.c: Likewise; renamed from sha.c.
59917         Do not include <sys/types.h>.
59918         Include <stddef.h> rather than <stdlib.h>.
59919
59920 2004-08-08  Bruno Haible  <bruno@clisp.org>
59921
59922         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
59923         FILESYSTEM_PREFIX_LEN.
59924         * lib/progreloc.c: Likewise.
59925         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
59926
59927 2004-08-06  Simon Josefsson  <jas@extundo.com>
59928
59929         * modules/progname (Depends-on): Don't depend on stdbool.
59930
59931 2004-08-06  Simon Josefsson  <jas@extundo.com>
59932
59933         * modules/getsubopt: New file.
59934         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59935         getsubopt.
59936
59937 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59938
59939         More merge from coreutils.
59940
59941         * m4/utimens.m4, m4/utimecmp.m4: New files.
59942         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
59943         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
59944         prereq.m4, sha.m4: Import changes from coreutils.
59945
59946 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59947
59948         More merge from coreutils.
59949         * modules/raise, modules/readtokens0, modules/utimens:
59950         * modules/utimecmp, module/xnanosleep: New files.
59951         * modules/strftime: Add lib/strftime.h.
59952         Change include from <time.h> to "strftime.h".
59953         * modules/yesno: Add lib/yesno.h.
59954         * modules/backupfile: Remove lib/addext.c.
59955         * modules/euidaccess: Add stat-macros.h.
59956         * modules/canonicalize, modules/euidaccess,
59957         modules/filemode, modules/lchown, modules/makepath,
59958         modules/rmdir, modules/stat: Likewise.
59959
59960 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59961
59962         Merge from tar.
59963         * lib/argp-help.c (make_hol, hol_append): Don't assume that
59964         SIZE_MAX is a valid preprocessor constant.
59965         (__argp_basename): Change from "#ifndef _LIBC"
59966         to "#ifndef __argp_short_program_name", so that
59967         we don't compile these functions for tar.
59968
59969         More merges from coreutils.
59970         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
59971         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
59972         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
59973         * lib/addext.c: Remove; no longer needed.
59974         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
59975         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
59976         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
59977         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
59978         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
59979         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
59980         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
59981         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
59982         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
59983         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59984         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
59985         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
59986         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
59987         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
59988         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
59989         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
59990         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
59991         Import changes from coreutils.
59992
59993 2004-08-05  Simon Josefsson  <jas@extundo.com>
59994
59995         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
59996
59997 2004-08-05  Simon Josefsson  <jas@extundo.com>
59998
59999         * m4/getsubopt.m4: New file.
60000
60001 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60002
60003         Merge from coreutils.
60004
60005         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
60006         * m4/getcwd-path-max.m4: New files.
60007
60008         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
60009         FILESYSTEM_PREFIX_LEN ->
60010         FILE_SYSTEM_PREFIX_LEN.
60011         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
60012         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
60013         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
60014         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
60015
60016         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
60017         prerequisite modules now handle the DOS stuff.
60018         Don't check for unistd.h.
60019
60020 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60021
60022         Merge from coreutils.
60023
60024         * lib/.gdb-history: Remove; this doesn't belong here.
60025
60026         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
60027         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
60028         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
60029         * lib/getcwd.c: New files.
60030
60031         * lib/dirname.h: Include <stdbool.h>.
60032         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
60033         for consistency with POSIX terminology.  All uses changed.
60034         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
60035         (strip_trailing_slashes): Use bool for booleans.
60036         * lib/stripslash.c (strip_trailing_slashes): Likewise.
60037
60038         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
60039         sometimes returns a positive errno value even when it succeeds.
60040         (print_errno_message) [!LIBC]: Fall back on strerror if
60041         __strerror_r fails.
60042
60043         * lib/path-concat.c (mempcpy): Don't define if a system header defines
60044         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
60045         (longest_relative_suffix): New function.
60046         (path_concat): Use it.  Assume first argument is not NULL.
60047         Port to DOS.  Omit redundant separators.
60048         Report an error instead of returning NULL.
60049         Use mempcpy instead of memcpy.
60050         (xpath_concat): Remove: not declared or used.
60051
60052         * lib/same.h: Include <stdbool.h>
60053         (same_name): Return bool, not int.
60054         * lib/same.c (same_name): Likewise.
60055         (errno): Don't declare; we assume C89 or better now.
60056
60057         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
60058         if not already defined.
60059
60060         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
60061         * lib/dup-safer.c (errno): Likewise.
60062
60063 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60064
60065         Merge from coreutils.
60066         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
60067         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
60068         * modules/path-concat: Don't depend on strdup.
60069
60070 2004-08-03  Simon Josefsson  <jas@extundo.com>
60071
60072         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
60073         * lib/progname.h: Don't include stdbool.h.
60074
60075 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60076
60077         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
60078         * MODULES.html.sh (func_all_modules): Remove fatal.
60079
60080 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60081
60082         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
60083
60084 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60085
60086         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
60087         working.
60088
60089 2004-08-02  Simon Josefsson  <jas@extundo.com>
60090
60091         * lib/getsubopt.h: New file, with comments from Bruno Haible.
60092         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
60093         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
60094
60095 2004-08-01  Simon Josefsson  <jas@extundo.com>
60096
60097         * lib/xgetdomainname.c: Include stdlib.h, for free().
60098
60099 2004-07-19  Bruno Haible  <bruno@clisp.org>
60100
60101         * MODULES.html.sh (func_all_modules): Add dummy.
60102
60103 2004-07-16  Simon Josefsson  <jas@extundo.com>
60104
60105         * modules/dummy: New file.
60106
60107 2004-07-16  Simon Josefsson  <jas@extundo.com>
60108
60109         * lib/dummy.c: New file.
60110
60111 2004-07-16  Bruno Haible  <bruno@clisp.org>
60112
60113         * lib/backupfile.h: Add extern "C" for C++.
60114         * lib/closeout.h: Likewise.
60115         * lib/copy-file.h: Likewise.
60116         * lib/findprog.h: Likewise.
60117         * lib/full-write.h: Likewise.
60118         * lib/pathname.h: Likewise.
60119         * lib/progname.h: Likewise.
60120         * lib/stpcpy.h: Likewise.
60121         * lib/stpncpy.h: Likewise.
60122         * lib/strcase.h: Likewise.
60123         * lib/strstr.h: Likewise.
60124         * lib/xalloc.h: Likewise.
60125
60126         * lib/mbswidth.h: Add extern "C" for C++.
60127         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
60128
60129 2004-07-13  Robert Millan  <robertmh@gnu.org>
60130
60131         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
60132
60133 2004-07-09  Simon Josefsson  <jas@extundo.com>
60134
60135         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
60136         failed without this.)
60137
60138 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60139
60140         * modules/chown (Files): Add lib/fchown-stub.c, since
60141         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
60142
60143 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60144
60145         * lib/fchown-stub.c: New file.
60146
60147 2004-06-24  Jim Meyering  <jim@meyering.net>
60148
60149         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
60150
60151 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60152
60153         * modules/argz: Omit "#include".
60154
60155         * MODULES.html.sh (func_all_modules): Add calloc, to match
60156         2004-06-01 addition of calloc module.
60157
60158 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60159
60160         * m4/argz.m4: New file, which is autoupdated from libtool.
60161
60162 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60163
60164         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
60165         libtool.
60166
60167 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60168
60169         * config/srclist-update: Don't insist on "USA." before the
60170         close-comment, as libtool omits the period and puts the */ on a
60171         separate line.
60172         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
60173         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
60174
60175 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
60176
60177         * modules/argz: New file.
60178         * MODULES.html.sh (func_all_modules): Add argz.
60179
60180 2004-06-12  Jim Meyering  <jim@meyering.net>
60181         and  Paul Eggert  <eggert@cs.ucla.edu>
60182
60183         * modules/hash (Files): Add lib/xalloc.h.
60184         * modules/pipe (Depends-on): Add wait-process.
60185         * modules/stat (Depends-on): Add xalloc.
60186         * modules/userspec (Files): Add lib/userspec.h.
60187         * modules/xstrto
60188
60189         Upgrade from gettext-0.13.
60190         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
60191         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
60192         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
60193
60194 2004-06-10  Jim Meyering  <jim@meyering.net>
60195
60196         * lib/calloc.c: New file.
60197
60198 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60199
60200         * lib/getdate.y (yylex): Allow space between sign and number.
60201         Problem reported by Dan Jacobson.
60202
60203 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60204
60205         Merge from coreutils CVS.
60206
60207         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
60208         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
60209         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
60210         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
60211         xstrtol.m4: Fix copyright date and/or serial number.
60212
60213         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
60214         See if we need an fchown replacement.
60215         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
60216         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
60217         and use the replacement function if we detect either defect.
60218
60219         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
60220         gl_UTIMECMP.
60221
60222 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60223         and  Jim Meyering  <jim@meyering.net>
60224
60225         Merge from coreutils CVS.
60226
60227         * lib/stat-macros.h: New file, with contents from file-type.h
60228         and coreutils' system.h.
60229         * lib/file-type.c: Include "stat-macros.h".
60230         * lib/file-type.h (file_type): Move all macro definitions to new file,
60231         stat-macros.h.
60232
60233         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
60234         Wrap old code with this conditional.
60235         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
60236         function that does not dereference symlinks.
60237         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
60238
60239         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
60240         dependency problems.
60241         (xreadlink): Accept new arg SIZE, for efficiency.
60242         All decls and uses changed.
60243         * lib/xreadlink.h: Include <stddef.h>, for size_t.
60244
60245         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
60246         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
60247
60248         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
60249         sysexits.h.
60250
60251 2004-06-01  Jim Meyering  <jim@meyering.net>
60252
60253         * m4/calloc.m4: New file.
60254
60255 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
60256
60257         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
60258         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
60259         Also, fix a typo in a diagnostic.
60260
60261 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60262
60263         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
60264         or AC_FUNC_REALLOC.
60265
60266 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60267
60268         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
60269         macros to be defined.
60270         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
60271         the allocator returns NULL because the requested size is zero.
60272
60273 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60274
60275         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
60276         var.  Add comment explaining why libc still defines it.  This
60277         merges the following patch from glibc:
60278         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
60279
60280 2004-05-20  Andreas Schwab  <schwab@suse.de>
60281
60282         * m4/free.m4: Replace free if it not known to work, not the other
60283         way round.
60284
60285 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60286
60287         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
60288         present in glibc since revision 1.1 of this file.
60289         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
60290         obstack_alignment_mask, obstack_alloc, obstack_base,
60291         obstack_blank, obstack_blank_fast, obstack_chunk_size,
60292         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
60293         obstack_grow0, obstack_init, obstack_int_grow,
60294         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
60295         obstack_next_free, obstack_object_size, obstack_ptr_grow,
60296         obstack_ptr_grow_fast, obstack_room): Remove declarations of
60297         nonexistent functions.
60298
60299 2004-05-18  Karl Berry  <karl@gnu.org>
60300
60301         * config/srclist.txt: break link for vasnprintf.c.
60302
60303 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60304
60305         Port obstack to the AS/400, where pointers are 16 bytes wide and
60306         you cannot cast an integer to a valid pointer.  This patch is
60307         currently waiting to be integrated into glibc; see
60308         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
60309
60310         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
60311         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
60312         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
60313         (struct obstack): temp member is now a union of a pointer and
60314         an integer, instead of an integer.  All integer uses changed.
60315         This does not affect the physical layout of struct obstack,
60316         except on hosts (like the AS/400) where the size or alignment of
60317         void * is greater than that of ptrdiff_t.
60318         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
60319         __STDC__)]: Store temporary in pointer member of union, not
60320         integer member.
60321         * lib/obstack.c: Include <stddef.h>, for offsetof.
60322         (struct fooalign): Remove; it doesn't need a name.
60323         (union fooround): Change double to long double, and add void *.
60324         (DEFAULT_ALIGNMENT): Use offsetof to compute.
60325         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
60326         not a macro.  Hence the values are always int; so remove all
60327         casts-to-int in uses.
60328
60329 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60330
60331         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
60332         we can get this patch merged into glibc.
60333
60334 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60335             Paul Eggert  <eggert@cs.ucla.edu>
60336
60337         * m4/argp: Depend on alloca.
60338
60339 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60340             Paul Eggert  <eggert@cs.ucla.edu>
60341
60342         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
60343         freecoding.
60344
60345 2004-05-17  Bruno Haible  <bruno@clisp.org>
60346
60347         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
60348         precision that consists of a '.' followed by an empty digit string.
60349         Patch by Tor Lillqvist <tml@iki.fi>.
60350
60351 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60352
60353         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
60354         for backward compatibility with older code.  We need our own
60355         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
60356         it under some other name, and our alloca.h will define it.
60357
60358 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60359             Derek Price  <derek@ximbiot.com>
60360
60361         * lib/alloca.c: Include <alloca.h>, to get our interface.
60362         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
60363         include <alloca.h> first.  Use C89 prototype for alloca; this
60364         requires including <stddef.h> for size_t.  Use extern "C" if C++.
60365         Use #elif for simplicity, since we can assume C89 now.
60366         Don't try to source the system alloca.h since it will not be found
60367         and to prevent recursively including its replacement.
60368         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
60369         * lib/regex.c: Likewise.
60370
60371 2004-05-16  Derek Price  <derek@ximbiot.com>
60372             Paul Eggert  <eggert@cs.ucla.edu>
60373
60374         getline cleanup.  This changes the getndelim2 API: both order of
60375         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
60376         no delimiter).
60377
60378         * lib/getline.c: Don't include stddef.h or stdio.h, since our
60379         interface does that.
60380         (getline): Always use getdelim, so that we don't have two
60381         copies of this code.
60382         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
60383         if available.
60384         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
60385         (GETNDELIM2_MAXIMUM): New macro.
60386         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
60387         instead of the old practice of delim2==0.  All callers changed.
60388         Return -1 on overflow, instead of returning junk.
60389         Do not set *linesize unless allocation succeeds.
60390         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
60391         that we include sys/types.h.
60392         * lib/getnline.h: Likewise.
60393         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
60394         (getndelim2): Reorder arguments.
60395         * lib/getnline.c (getnline, getndelim):
60396         Don't discard the NMAX argument.
60397         (getnline): Invoke getndelim, to avoid code duplication.
60398         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
60399         of (size_t) -1 by callers of the getnline family.
60400
60401 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60402
60403         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
60404         Check for gettimeofday.
60405         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
60406         Check for settimeofday, stime.
60407
60408 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60409
60410         * lib/nanosleep.c (suspended): Change its type from int to
60411         sig_atomic_t volatile.
60412         (first_call): Make it private to rpl_nanosleep, and have it
60413         be zero initially as that's a bit faster.
60414         (my_usleep): Round up fractional times instead of truncating them,
60415         as this is the usual meaning for 'sleep'.
60416
60417         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
60418         doesn't work.
60419         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
60420         (ENOSYS): Define if not defined.
60421         (settime): Fall back on stime if it exists and settimeofday fails.
60422         But don't bother with fallbacks if a method fails with errno == EPERM.
60423
60424 2004-05-11  Jim Meyering  <jim@meyering.net>
60425
60426         Prior to this change, the save_cwd caller required read access to the
60427         current directory on most systems (ones with the fchdir function).
60428
60429         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
60430         fails, try write-only, and finally, resort to using xgetcwd.
60431
60432 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60433
60434         * lib/obstack.c, obstack.h: Import changes from libc.
60435
60436 2004-04-28  Bruno Haible  <bruno@clisp.org>
60437
60438         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
60439         also implicitly appends .exe to executables.
60440         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
60441         accepts Windows pathnames.
60442         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60443         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60444         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60445         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60446         Reported by Derek Robert Price <derek@ximbiot.com>.
60447
60448 2004-04-21  Karl Berry  <karl@gnu.org>
60449
60450         * config/srclist.txt (localcharset.c): break sync.
60451
60452 2004-04-20  Paul Eggert  <eggert@twinsun.com>
60453
60454         * m4/host-os.m4: Add a copyright notice.
60455
60456 2004-04-20  Jim Meyering  <jim@meyering.net>
60457
60458         Change UTILS_ to gl_ in AC_DEFINE'd names.
60459         Change utils_- and jm_-prefixed variables, too.
60460         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
60461         UTILS_FUNC_MKDIR_TRAILING_SLASH.
60462         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
60463
60464         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
60465         Don't emit trailing blanks.
60466         Also rename jm_-prefixed variables to have gl_ prefix.
60467
60468         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
60469         Also rename jm_-prefixed variables to have gl_ prefix.
60470
60471         * m4/jm-macros.m4: Reflect the renamings.
60472         * m4/prereq.m4: Likewise.
60473
60474 2004-04-20  Jim Meyering  <jim@meyering.net>
60475
60476         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
60477         memory.
60478
60479 2004-04-20  Jim Meyering  <jim@meyering.net>
60480             Bruno Haible  <bruno@clisp.org>
60481
60482         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
60483         memory when realloc fails.
60484
60485 2004-04-19  Jim Meyering  <jim@meyering.net>
60486
60487         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
60488         now that readutmp.c may call `free (0)'.
60489
60490 2004-04-19  Bruno Haible  <bruno@clisp.org>
60491
60492         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
60493         * m4/inttypes_h.m4: Likewise.
60494         * m4/stdint_h.m4: Likewise.
60495         * m4/intmax_t.m4: Likewise.
60496         * m4/uintmax_t.m4: Likewise.
60497
60498 2004-04-18  Jim Meyering  <jim@meyering.net>
60499
60500         * m4/prereq.m4: Don't forbid jm_ prefix.
60501
60502         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
60503         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
60504         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
60505         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
60506         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
60507         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
60508         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
60509         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
60510         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
60511         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
60512         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
60513         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
60514         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
60515         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
60516         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
60517         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
60518         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
60519         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
60520         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
60521
60522 2004-04-18  Jim Meyering  <jim@meyering.net>
60523
60524         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
60525         failure, don't leak memory and do call END_UTMP_ENT.
60526
60527 2004-04-16  Jim Meyering  <jim@meyering.net>
60528
60529         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
60530         coreutils' stat program.
60531         (gl_PREREQ): Don't require jm_PREREQ_STAT.
60532
60533 2004-04-11  Paul Eggert  <eggert@twinsun.com>
60534
60535         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
60536         C89.
60537         (CHAR_BIT): Remove, since we assume C89.
60538         Include <stdint.h> if available, as per current Autoconf CVS advice.
60539
60540 2004-03-31  Jim Meyering  <jim@meyering.net>
60541
60542         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
60543         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
60544         * m4/xalloc.m4: Likewise.
60545
60546 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60547
60548         Merge from coreutils.
60549
60550         * m4/inttostr.m4: New file.
60551         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
60552         Require AM_STDBOOL_H and gl_TIMESPEC instead.
60553         Require gl_CLOCK_TIME.
60554         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
60555
60556 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60557
60558         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
60559         not bool, to be more consistent with Unix conventions.
60560         Suggested by Bruno Haible.
60561
60562         Merge from coreutils.
60563
60564         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
60565         * lib/umaxtostr.c: New files.
60566
60567         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
60568         the usual <time.h> dance.
60569         (get_date): Change signature to support fractional time stamps.
60570         All callers changed.
60571         * lib/getdate.y: Include "getdate.h" first, as we can now
60572         assume C89 and don't need to worry about 'const'.
60573         Similarly, include "unlocked-io.h" near start, not in middle.
60574         Include <limits.h>.
60575         (textint.value): Use long int rather than int.
60576         (textint.digits): Use size_t rather than int.
60577         (BILLION, LOG10_BILLION): New constants.
60578         (parser_control): New member rel_ns.  Members day_ordinal,
60579         time_zone, month, day, hour, minutes, rel_year, rel_month,
60580         rel_day, rel_hour, rel_minutes, rel_seconds
60581         are now long int, not int.  Member seconds is now struct timespec,
60582         not int.  New member timespec_seen.  Members dates_seen, days_seen,
60583         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
60584         not int.
60585         (%union.intval): Now long int, not int.
60586         New member timespec.
60587         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60588         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60589         (spec): Now is a timespec or an item list.
60590         (timespec, items): New nonterminals.
60591         (time, rel, relunit, number, get_date):
60592         Add support for fractional seconds.
60593         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60594         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60595         (to_hour): First arg is now long int, not int.
60596         (to_year): Returns long int, not int.
60597         Don't treat year -70 like 70.
60598         (tm_diff): Returns long int, not int.
60599         (lookup_word): Use bool instead of int when appropriate.
60600         (yylex): Use size_t for count, not int.
60601         Detect overflow when parsing large integer constants.
60602         Add support for fractions.
60603         (get_date): Make pointers 'const' if possible.
60604         Use more-portable code to detect integer overflow.
60605         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60606         Don't use ctime; it's not reliable if the year has >4 digits.
60607
60608         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60609         This is for compatibility with BSD.
60610
60611         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60612         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60613         From coreutils' system.h.
60614
60615         * lib/userspec.c: Don't include "posixver.h".
60616         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60617         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60618         compatible extension.  Simplify code by removing a boolean int
60619         that was always nonzero if a string was nonnull.
60620
60621 2004-03-30  Jim Meyering  <jim@meyering.net>
60622
60623         Merge from coreutils.
60624
60625         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60626         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60627         on some systems one must include <grp.h> before it.
60628         Reported by Christian Krackowizer.
60629
60630 2004-03-30  Jim Meyering  <jim@meyering.net>
60631
60632         Merge from coreutils.
60633
60634         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60635
60636         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60637         an empty input stream.
60638
60639         * lib/readtokens.c: Include <stdbool.h>.
60640         (readtoken): Use `size_t' rather than int/long.
60641         All callers adjusted.
60642         Use `bool' rather than `int' where appropriate.
60643         Use memset rather than an explicit loop.
60644         Use x2nrealloc rather than xrealloc.
60645         Allow the use of `\0' as a delimiter.
60646         (readtokens): Likewise.
60647         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60648
60649 2004-03-30  Jim Meyering  <jim@meyering.net>
60650
60651         * m4/realloc.m4: Remove file, since now it does no more than
60652         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60653         the `configure.ac' section of module/realloc.
60654         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60655
60656 2004-03-30  Bruno Haible  <bruno@clisp.org>
60657
60658         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60659         nonnull.
60660
60661 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60662
60663         Merge changes to getloadavg.c from coreutils and Emacs.
60664
60665         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60666         Define to an expression, not to the empty string.
60667         Include cloexec.h and xalloc.h.
60668         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60669         Use set_cloexec_flag rather than rolling our own.
60670         * lib/cloexec.c, lib/cloexec.h: New files.
60671
60672 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60673
60674         * m4/cloexec.m4: New file.
60675
60676 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60677
60678         * lib/getopt.h: Sync with libc CVS.
60679
60680 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60681             Bruno Haible  <bruno@clisp.org>
60682
60683         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60684         mbswidth.
60685
60686 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60687             Bruno Haible  <bruno@clisp.org>
60688
60689         * lib/mbswidth.h: Include <wchar.h> only if
60690         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60691         <wchar.h>.
60692         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60693
60694 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60695
60696         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60697         Sync with libc CVS.
60698         * lib/getopt_int.h: New file, also synced from libc.
60699
60700 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60701
60702         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60703         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60704         Bring back getopt.c, getopt.h, getopt1.c.
60705
60706 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60707
60708         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60709         All uses changed.  Check for sa_sigaction member; this fixes
60710         a bug first reported by Jason Andrade in
60711         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60712
60713 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60714
60715         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60716         '#if' expressions.  Unlike the code it replaces, it does not
60717         depend on (defined _SC_PAGESIZE).  However, it does depend on
60718         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60719         first reported by Jason Andrade in
60720         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60721
60722 2004-02-25  Simon Josefsson  <jas@extundo.com>
60723
60724         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60725
60726 2004-02-25  Simon Josefsson  <jas@extundo.com>
60727
60728         * lib/strdup.h: New file.
60729         * lib/strdup.c: Include it.
60730         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60731         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60732
60733 2004-02-23  Karl Berry  <karl@gnu.org>
60734
60735         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60736         (from fencepost.gnu.org:/gd/gnuorg).
60737
60738 2004-02-23  Karl Berry  <karl@gnu.org>
60739
60740         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60741         * config/srclist.txt: add maintain/standards documents.
60742
60743 2004-02-18  Bruno Haible  <bruno@clisp.org>
60744
60745         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60746         Reported by Derek Robert Price <derek@ximbiot.com>.
60747
60748 2004-02-16  Karl Berry  <karl@gnu.org>
60749
60750         * config/mkinstalldirs, install-sh: update from automake.
60751
60752 2004-02-06  Karl Berry  <karl@gnu.org>
60753
60754         * m4/po.m4: update from gettext 0.14.1.
60755
60756 2004-02-06  Karl Berry  <karl@gnu.org>
60757
60758         * lib/config.charset: update from gettext 0.14.1.
60759
60760 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60761
60762         Add comments and code, prompted by suggestions from Bruno Haible
60763         for sh-quote.
60764         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60765         describing the enum quoting_style values.
60766         * lib/quotearg.c (quotearg_alloc): New function.
60767         (quotearg_buffer_restyled): Treat lone { and } as special.
60768         Treat = as special.  Work around bug with older shells
60769         that "see" a '\' that is really the 2nd byte of a multibyte char.
60770         Quote empty string with shell_quoting_style.
60771
60772 2004-02-03  Bruno Haible  <bruno@clisp.org>
60773
60774         * m4/pipe.m4: New file, from GNU gettext.
60775
60776 2004-02-03  Bruno Haible  <bruno@clisp.org>
60777
60778         * lib/pipe.h: New file, from GNU gettext.
60779         * lib/pipe.c: New file, from GNU gettext.
60780
60781 2004-01-27  Bruno Haible  <bruno@clisp.org>
60782
60783         * m4/execute.m4: New file, from GNU gettext.
60784
60785 2004-01-27  Bruno Haible  <bruno@clisp.org>
60786
60787         * lib/execute.h: New file, from GNU gettext.
60788         * lib/execute.c: New file, from GNU gettext.
60789         * lib/w32spawn.h: New file, from GNU gettext.
60790
60791 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60792
60793         Merge from diffutils.
60794
60795         * lib/file-type.c (file_type): Add typed memory objects.
60796         * lib/file-type.h (S_TYPEISTMO): New macro.
60797
60798         * lib/c-stack.h (c_stack_action): Remove argv argument.
60799         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60800         (die): Don't calculate message unless segv_action returns.
60801         (get_stack_location, min_address_from_argv, max_address_from_argv,
60802         volatile stack_base, volatile_stack_size): Remove.
60803         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60804         that every segmentation violation is a stack overflow.  (Ouch!)
60805         See Debian bug 136249 (still outstanding) for more info about why
60806         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60807
60808 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60809
60810         Exit-status fix from coreutils.
60811
60812         Use exit_failure consistently in place of EXIT_FAILURE,
60813         so that program exit statuses are consistent on failure.
60814
60815         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60816         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60817         * lib/argmatch.h: Comment fix to match the above.
60818         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60819         Now a macro referring to exit_failure, instead of a separate
60820         variable.  Include "exitfail.h" to get it.
60821         * lib/xstrtol.h: Include "exitfail.h".
60822         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60823
60824         * lib/long-options.c (parse_long_options): Use prototype
60825         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60826         for clarity.
60827
60828 2004-01-21  Jim Meyering  <jim@meyering.net>
60829
60830         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
60831         so as not to conflict with a different-sized __mktime_internal
60832         function in GNU libc.
60833         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
60834         Problem building statically-linked `ls' reported by Michael Brunnbauer.
60835
60836 2004-01-20  Karl Berry  <karl@gnu.org>
60837
60838         * config/config.guess: update from config.
60839
60840         * config/srclistvars.sh: GNUWWWLICENSES for karl.
60841
60842 2004-01-20  Bruno Haible  <bruno@clisp.org>
60843
60844         Safer stack allocation.
60845         * lib/setenv.c: Include allocsa.h.
60846         (alloca): Remove fallback definition.
60847         (freea): Remove macro.
60848         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
60849         instead of freea.
60850
60851 2004-01-20  Bruno Haible  <bruno@clisp.org>
60852
60853         * m4/eealloc.m4: New file, from GNU gettext.
60854
60855 2004-01-20  Bruno Haible  <bruno@clisp.org>
60856
60857         * m4/allocsa.m4: New file, from GNU gettext.
60858
60859 2004-01-20  Bruno Haible  <bruno@clisp.org>
60860
60861         * lib/xallocsa.h: New file, from GNU gettext.
60862         * lib/xallocsa.c: New file, from GNU gettext.
60863
60864 2004-01-20  Bruno Haible  <bruno@clisp.org>
60865
60866         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
60867
60868 2004-01-20  Bruno Haible  <bruno@clisp.org>
60869
60870         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
60871         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
60872         specially.
60873
60874 2004-01-20  Bruno Haible  <bruno@clisp.org>
60875
60876         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
60877         patch.
60878
60879 2004-01-20  Bruno Haible  <bruno@clisp.org>
60880
60881         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
60882
60883 2004-01-20  Bruno Haible  <bruno@clisp.org>
60884
60885         * lib/eealloc.h: New file.
60886
60887 2004-01-20  Bruno Haible  <bruno@clisp.org>
60888
60889         * lib/binary-io.h: Avoid warnings on Cygwin.
60890
60891 2004-01-20  Bruno Haible  <bruno@clisp.org>
60892
60893         * lib/allocsa.h: New file, from GNU gettext.
60894         * lib/allocsa.c: New file, from GNU gettext.
60895
60896 2004-01-18  Karl Berry  <karl@gnu.org>
60897
60898         * doc/gpl.texi, doc/lgpl.texi: new files.
60899
60900 2004-01-18  Karl Berry  <karl@gnu.org>
60901
60902         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
60903         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
60904
60905 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60906
60907         Merge from coreutils.
60908
60909         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
60910         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
60911         (gl_DEFAULT_POSIX2_VERSION): Move
60912         the documentation from 'configure' into 'config.hin',
60913         so that 'configure --help' isn't burdened by it and
60914         we don't have to worry about its formatting there.
60915         Reword the documentation so that it's more succinct
60916         and can be run together into a single paragraph.
60917         * m4/same.m4 (gl_SAME): Check for pathconf.
60918
60919 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60920
60921         Merge from coreutils.
60922
60923         * lib/posixver.c: Include posixver.h.
60924
60925         * lib/same.c: Include <stdbool.h>, <limits.h>.
60926         (_POSIX_NAME_MAX): Define if not defined.
60927         (MIN): New macro.
60928         (same_name): If file names are silently truncated, report
60929         that the file names are the same if they are the same after
60930         the silent truncation.
60931
60932         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
60933         conversion function.
60934         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
60935         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
60936         longer needed.
60937
60938 2004-01-15  Jim Meyering  <jim@meyering.net>
60939
60940         Merge from coreutils.
60941
60942         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
60943         if no library is required.
60944         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
60945         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
60946         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
60947         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
60948         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
60949         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
60950         value, $ac_cv_search_crypt, if it's "none required".
60951         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
60952         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
60953         not gl_FUNC_GETLOADAVG.
60954         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
60955         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
60956
60957 2004-01-15  Jim Meyering  <jim@meyering.net>
60958
60959         Merge from coreutils.
60960
60961         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
60962         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
60963         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
60964
60965         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
60966         optional configure-time default.
60967
60968         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60969
60970         * lib/xreadlink.c (xreadlink): Correct outdated comment.
60971
60972 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
60973
60974         Merge from coreutils.
60975
60976         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
60977         value, $ac_cv_search_nanosleep, if it's "none required".
60978
60979 2004-01-14  Paul Eggert  <eggert@twinsun.com>
60980
60981         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
60982         with like-named macro in fnmatch.c.
60983         (EXT): Use an internal constant instead.
60984
60985         Merge fnmatch patches from glibc.
60986         * lib/fnmatch.c (mbsinit): Remove define.
60987         Add libc_hidden_ver (__fnmatch, fnmatch).
60988         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
60989         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
60990
60991 2004-01-14  Karl Berry  <karl@gnu.org>
60992
60993         * config/install-sh: update from automake.
60994
60995 2004-01-13  Karl Berry  <karl@gnu.org>
60996
60997         * config/install-sh: update from automake.
60998
60999 2004-01-09  Karl Berry  <karl@gnu.org>
61000
61001         * config/install-sh: update from automake.
61002
61003 2004-01-05  Karl Berry  <karl@gnu.org>
61004
61005         * config/config.{sub,guess}: update from config.
61006
61007 2003-12-31  Karl Berry  <karl@gnu.org>
61008
61009         * config/depcomp: update from automake.
61010
61011 2003-12-14  Karl Berry  <karl@gnu.org>
61012
61013         * lib/config.charset: update from gettext-runtime.
61014
61015 2003-12-03  Paul Eggert  <eggert@twinsun.com>
61016
61017         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
61018         Bug reported by Alfred M. Szmidt.
61019
61020 2003-12-03  Bruno Haible  <bruno@clisp.org>
61021
61022         * m4/gettext.m4: Upgrade from gettext-0.13.
61023         * m4/po.m4: Upgrade from gettext-0.13.
61024         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
61025         * m4/intmax.m4: New file, from gettext-0.13.
61026         * m4/printf-posix.m4: New file, from gettext-0.13.
61027
61028 2003-11-29  Karl Berry  <karl@gnu.org>
61029
61030         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
61031
61032 2003-11-25  Paul Eggert  <eggert@twinsun.com>
61033             Bruno Haible  <bruno@clisp.org>
61034
61035         * lib/printf-parse.h: Don't include sys/types.h.
61036         (ARG_NONE): New macro.
61037         (char_directive): Change type of *arg_index fields to size_t.
61038         * lib/printf-parse.c: Don't include sys/types.h.
61039         (SSIZE_MAX): Remove macro.
61040         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
61041         Remove unnecessary overflow check.
61042         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
61043         fields.
61044
61045 2003-11-25  Bruno Haible  <bruno@clisp.org>
61046
61047         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
61048
61049 2003-11-25  Bruno Haible  <bruno@clisp.org>
61050
61051         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
61052         gt_TYPE_SSIZE_T.
61053
61054 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61055
61056         * modules/alloca: Remove dependency on xalloc.
61057
61058 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61059
61060         * lib/alloca.c: Remove dependency on xalloc module.
61061         (xalloc_die): Remove.
61062         (memory_full) [!defined emacs]: New macro.
61063         [!defined emacs]: Don't include xalloc.h.
61064         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
61065         address arithmetic overflows.  Change datatypes a bit to avoid
61066         unnecessary casts.
61067
61068 2003-11-22  Jim Meyering  <jim@meyering.net>
61069
61070         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
61071         s/size/size_t/.
61072
61073 2003-11-21  Karl Berry  <karl@gnu.org>
61074
61075         * config/config.{sub,guess}: update from config.
61076
61077 2003-11-18  Karl Berry  <karl@gnu.org>
61078
61079         * config/config.{sub,guess}: update from config.
61080
61081         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
61082
61083 2003-11-17  Paul Eggert  <eggert@twinsun.com>
61084
61085         * README: Mention that S+T cannot overflow if S is the size of
61086         an existing object and T is sufficiently small.
61087
61088 2003-11-17  Jim Meyering  <jim@meyering.net>
61089
61090         On systems without utime and without a utimes function capable of
61091         dealing with a NULL struct utimbuf* argument, this utime replacement
61092         could -- in unusual circumstances -- leak a file descriptor.
61093         * lib/utime.c: Include <unistd.h> and <errno.h>.
61094         (utime_null): Be sure to close `fd' and to preserve errno.
61095         Reported by Geoff Collyer via Arnold Robbins.
61096
61097 2003-11-17  Bruno Haible  <bruno@clisp.org>
61098
61099         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
61100         (Depends-on): Add xsize.
61101
61102 2003-11-17  Bruno Haible  <bruno@clisp.org>
61103
61104         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
61105
61106 2003-11-17  Bruno Haible  <bruno@clisp.org>
61107
61108         * lib/vasnprintf.c (alloca): Remove fallback definition.
61109         (freea): Remove definition.
61110         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
61111         Reported by Paul Eggert.
61112
61113 2003-11-16  Paul Eggert  <eggert@twinsun.com>
61114             Bruno Haible  <bruno@clisp.org>
61115
61116         Protect against address arithmetic overflow.
61117         * lib/printf-args.h: Include stddef.h.
61118         (arguments): Change type of field 'count' to size_t.
61119         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
61120         'unsigned int' where appropriate.
61121         * lib/printf-parse.h: Include sys/types.h.
61122         (char_directive): Change type of *arg_index fields to ssize_t.
61123         (char_directives): Change type of fields 'count', max_*_length to
61124         size_t.
61125         * lib/printf-parse.c: Include sys/types.h and xsize.h.
61126         (SSIZE_MAX): Define fallback value.
61127         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
61128         instead of 'int' where appropriate. Check a_allocated, d_allocated
61129         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
61130         * lib/vasnprintf.c: Include xsize.h.
61131         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
61132         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
61133         overflow. Avoid wraparound when converting a width or precision from
61134         decimal to binary.
61135
61136 2003-11-16  Bruno Haible  <bruno@clisp.org>
61137
61138         Update from GNU gettext.
61139         * lib/printf-parse.c: Generalize to it can be compiled for wide
61140         strings.
61141         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
61142         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
61143         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
61144         SNPRINTF): New macros.
61145         Don't include <alloca.h> if the file is used inside libintl.
61146         (local_wcslen): New function, for Solaris 2.5.1.
61147         (VASNPRINTF): Use it instead of wcslen.
61148
61149 2003-11-16  Bruno Haible  <bruno@clisp.org>
61150
61151         * lib/xsize.h (xmax): New function.
61152         (xsum, xsum3, xsum4): Declare as "pure" functions.
61153
61154 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61155
61156         * modules/xalloc (Files): Undo latest change, since xalloc.h
61157         no longer needs SIZE_MAX or PTRDIFF_MAX.
61158
61159 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61160
61161         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
61162         gl_PTRDIFF_MAX.
61163
61164 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61165
61166         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
61167         "return", to pacify some unknown compiler.  Problem reported
61168         by Joerg Schilling.
61169
61170 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61171
61172         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
61173         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
61174         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
61175         heuristic is just as accurate as far as we know, and it removes a
61176         dependency on size_max.m4 and ptrdiff_max.m4.
61177
61178 2003-11-11  Bruno Haible  <bruno@clisp.org>
61179
61180         * modules/xsize (Files): Add m4/size_max.m4.
61181         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
61182
61183 2003-11-11  Bruno Haible  <bruno@clisp.org>
61184
61185         * m4/size_max.m4: New file.
61186         * m4/ptrdiff_max.m4: New file.
61187         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
61188         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
61189         (gl_XALLOC): Invoke it.
61190
61191 2003-11-11  Bruno Haible  <bruno@clisp.org>
61192
61193         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
61194         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
61195         defined.
61196
61197 2003-11-10  Paul Eggert  <eggert@twinsun.com>
61198
61199         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
61200         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
61201         rejected some allocations of exactly SIZE_MAX - 2 bytes.
61202         From Bruno Haible.
61203         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
61204         not (size_t) -1, since it's defined here.
61205
61206 2003-11-09  Karl Berry  <karl@gnu.org>
61207
61208         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
61209
61210 2003-11-06  Paul Eggert  <eggert@twinsun.com>
61211
61212         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
61213         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
61214         Reject sizes of exactly SIZE_MAX bytes.
61215         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
61216         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
61217
61218 2003-11-05  Bruno Haible  <bruno@clisp.org>
61219
61220         * lib/xsize.h: Include limits.h, to avoid a possible collision with
61221         SIZE_MAX defined in <limits.h> on Solaris.
61222
61223 2003-11-04  Jim Meyering  <jim@meyering.net>
61224
61225         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
61226         variable names, rather than @VAR@.
61227         * modules/poll: Likewise.
61228
61229 2003-11-04  Bruno Haible  <bruno@clisp.org>
61230
61231         * modules/xsize: New file.
61232         * modules/linebreak: Depend on xsize.
61233         * MODULES.html.sh (func_all_modules): Add xsize.
61234
61235 2003-11-04  Bruno Haible  <bruno@clisp.org>
61236
61237         * m4/xsize.m4: New file.
61238
61239 2003-11-04  Bruno Haible  <bruno@clisp.org>
61240
61241         * lib/xsize.h: New file.
61242         * lib/linebreak.c: Include xsize.h.
61243         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
61244         argument for overflow.
61245         Suggested by Paul Eggert.
61246
61247 2003-11-03  Karl Berry  <karl@gnu.org>
61248
61249         * config/config.{guess,sub}: update from config.
61250
61251 2003-11-03  Jim Meyering  <jim@meyering.net>
61252
61253         * modules/userspec (lib_SOURCES): Add userspec.h.
61254         (Include): Add "userspec.h".
61255         Improve description.
61256
61257 2003-11-03  Jim Meyering  <jim@meyering.net>
61258
61259         * lib/userspec.c: Include "userspec.h".
61260         * lib/userspec.h: New file.
61261
61262 2003-11-03  Bruno Haible  <bruno@clisp.org>
61263
61264         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
61265
61266 2003-11-03  Bruno Haible  <bruno@clisp.org>
61267
61268         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
61269         available, to avoid (extremely rare) race condition.
61270         Suggested by Paul Eggert.
61271
61272 2003-11-02  Karl Berry  <karl@gnu.org>
61273
61274         * config/srclist.txt (vasprintf.c): sync broken, sigh.
61275
61276 2003-10-31  Paul Eggert  <eggert@twinsun.com>
61277
61278         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
61279         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
61280         (read_filesystem_list): Set and use me_type_malloced.
61281         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
61282         whatever the type happens to be), for brevity and consistency.
61283         Check for size calculation overflow on Alphas running OSF/1.
61284
61285 2003-10-31  Jim Meyering  <jim@meyering.net>
61286
61287         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
61288
61289         * lib/linebuffer.c: Include <string.h> for declaration of memset.
61290
61291 2003-10-30  Paul Eggert  <eggert@twinsun.com>
61292             Bruno Haible  <bruno@clisp.org>
61293
61294         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
61295         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
61296
61297 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61298
61299         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
61300         netbsd*-gnu*.  Suggested by Robert Millan.
61301
61302 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61303
61304         * modules/group-member: Depend on stdbool.
61305
61306 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61307
61308         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
61309
61310 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61311
61312         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
61313         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
61314         after the 'gnu' in these cases.  This fixes some bugs in the
61315         previous change, and is based on suggestions by Robert Millan.
61316
61317 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61318
61319         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
61320         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
61321         no longer needed.
61322         * lib/quotearg.c (quotearg_n_options): Use it.
61323         * lib/group-member.c: Include <stdbool.h>.
61324         (free_group_info): Arg is now const *; don't free arg.
61325         (get_group_info): Now returns bool and accepts struct group_info *,
61326         rather than returning a malloc'ed struct group_info *.
61327         All uses changed.  Check for overflow in internal size calculation.
61328
61329         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
61330         rather than xmalloc/xrealloc.
61331         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
61332         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
61333         conformance bug: the old code used a pointer after freeing the
61334         storage that it addressed.
61335         * lib/hash.c (hash_initialize): Simplify the code by using
61336         xalloc_oversized rather than doing it by hand.
61337         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
61338         the buffer preserved.  Use free and xmalloc instead.
61339         * lib/quotearg.c (quotearg_n_options): Likewise.
61340         Use a simpler test for size overflow.  Don't use xalloc_oversized
61341         because unsigned int might be wider than size_t (!); this suggests
61342         that we should switch from unsigned int to size_t for slot numbers.
61343
61344 2003-10-28  Paul Eggert  <eggert@twinsun.com>
61345
61346         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
61347         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
61348         NetBSD kernels.  Requested by Richard Stallman.
61349
61350 2003-10-27  Paul Eggert  <eggert@twinsun.com>
61351
61352         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
61353         to allocate the returned structure.  Do not allocate a subarray,
61354         as x2nrealloc will do that.
61355         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
61356         instead of xnrealloc.
61357         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
61358
61359 2003-10-27  Bruno Haible  <bruno@clisp.org>
61360
61361         * lib/stdbool_.h: Better support for BeOS.
61362
61363 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61364
61365         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
61366         now uses inline.
61367
61368 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61369
61370         * lib/xalloc.h (xalloc_oversized): New static inline function, for
61371         callers that want to do their own size-overflow checking.  Include
61372         <stdbool.h>, since xalloc_oversized returns bool.
61373         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
61374         to use xalloc_oversized.
61375
61376         Add two functions x2realloc, x2nrealloc, for programs that grow
61377         arrays dynamically by doubling their sizes.
61378         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
61379         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
61380         New functions.
61381
61382         Port to C99 semantics for 'inline' of external functions.
61383         Bug reported by Bruno Haible.
61384         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
61385         with the old contents of xnmalloc.
61386         (xnmalloc, xmalloc): Use it.
61387         (xnrealloc_inline): New static inline function,
61388         with the old contents of xnrealloc.
61389         (xnrealloc, xrealloc): Use it.
61390
61391         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
61392         that.
61393
61394 2003-10-26  Karl Berry  <karl@gnu.org>
61395
61396         * config/srclist.txt (COPYING.DOC): no longer available from
61397         /gd/gnuorg; don't know where the ultimate source is.
61398
61399 2003-10-25  Paul Eggert  <eggert@twinsun.com>
61400
61401         Fix several address-calculation bugs in the hash modules,
61402         plus some minor code cleanup.
61403
61404         * lib/hash.h: Include <stdbool.h>, for bool.
61405         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
61406         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
61407         hash_get_n_entries, hash_get_max_bucket_length,
61408         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
61409         hash_rehash): Use size_t rather than unsigned.
61410         * lib/hash.c (struct hash_table, hash_get_n_buckets,
61411         hash_get_n_buckets_used, hash_get_n_entries,
61412         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
61413         hash_get_entries, hash_do_for_each, hash_string, is_prime,
61414         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
61415         Likewise.
61416         (SIZE_MAX): Define if not defined.
61417         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
61418         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
61419         hash_print):
61420         Use const * when possible.
61421         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
61422         (check_tuning): Fix bug: if tuning parameters were very close to
61423         0 or 1, rounding errors could have caused subscript violations.
61424         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
61425         (hash_initialize): Add 'fail:' label
61426         to free table and return NULL, and use it to simplify code.
61427         Use calloc rather than clearing the storage ourself.
61428         (hash_initialize, hash_rehash): Check for arithmetic overflow in
61429         buffer size calculations.
61430         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
61431         Include <stddef.h>, for size_t.
61432         * lib/hash-pjw.c (hash_pjw): Likewise.
61433         Switch to method described by Bruno Haible.
61434         Include <limits.h>, for CHAR_BIT.
61435         (SIZE_BITS): New macro.
61436
61437 2003-10-23  Paul Eggert  <eggert@twinsun.com>
61438
61439         * m4/getline.m4 (AM_FUNC_GETLINE):
61440         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
61441         hosts.  Problem reported by Derek Robert Price in
61442         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
61443         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
61444         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
61445
61446 2003-10-21  Paul Eggert  <eggert@twinsun.com>
61447
61448         * lib/getndelim2.c (getndelim2): When size calculation overflows,
61449         ceiling the allocation at NMAX bytes rather than silently
61450         discarding input bytes before NMAX is reached.  This makes
61451         a difference only if NMAX exceeds SIZE_MAX / 2.
61452
61453         * lib/obstack.c: Merge from glibc.
61454         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
61455         Add libc_hidden_def (_obstack_newchunk).
61456         (_obstack_free) [! defined _LIBC]: Remove.
61457         [defined _LIBC]: Make a strong alias from obstack_free, rather than
61458         a clone of the function body.
61459         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
61460         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
61461
61462         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
61463         glibc.
61464         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
61465         arg to memcpy.
61466
61467         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
61468         (obstack_ptr_grow_fast, obstack_int_grow_fast):
61469         Don't use lvalue casts, as GCC plans to remove support for them
61470         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
61471         was also present in the non-GCC version, indicating that this
61472         code had always been buggy and had never been widely used.
61473         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
61474         Use the fast variant of each macro, rather than copying the
61475         definiens of the fast variant; that way, we'll be more likely to
61476         catch future bugs in the fast variants.
61477
61478 2003-10-20  Bruno Haible  <bruno@clisp.org>
61479
61480         * modules/wait-process: New file.
61481         * MODULES.html.sh (func_all_modules): Add wait-process.
61482
61483 2003-10-20  Bruno Haible  <bruno@clisp.org>
61484
61485         * m4/wait-process.m4: New file.
61486
61487 2003-10-20  Bruno Haible  <bruno@clisp.org>
61488
61489         * lib/wait-process.h: New file, from GNU gettext.
61490         * lib/wait-process.c: New file, from GNU gettext.
61491
61492 2003-10-19  Jim Meyering  <jim@meyering.net>
61493
61494         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
61495         HPUX 10.20.
61496
61497 2003-10-18  Karl Berry  <karl@gnu.org>
61498
61499         * config/config.guess: update from config.
61500
61501 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61502
61503         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
61504         (getgroups): First arg is int, not size_t.
61505         Don't let 'free' mangle errno.
61506
61507 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61508
61509         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
61510
61511 2003-10-16  Karl Berry  <karl@gnu.org>
61512
61513         * config/config.{guess,sub}: update from config.
61514
61515 2003-10-16  Jim Meyering  <jim@meyering.net>
61516
61517         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
61518         memcpy.
61519
61520 2003-10-15  Paul Eggert  <eggert@twinsun.com>
61521
61522         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
61523         (SIZE_MAX): Remove.
61524         (new_exclude, add_exclude_file): Initial size no longer needs to
61525         be a power of 2.
61526         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
61527         our own address arithmetic overflow checking.
61528
61529         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
61530         (fnmatch): Do not alloca more than 2000 wide characters;
61531         instead, use malloc for large buffers.
61532         Check for address arithmetic overflow, and return -1
61533         with errno set to ENOMEM in that case.
61534         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
61535         (NEW_PATTERN): Do not alloca more than 8000 bytes;
61536         instead, return -1.  Check for address arithmetic overflow.
61537
61538 2003-10-14  Paul Eggert  <eggert@twinsun.com>
61539
61540         Handle invalid suffixes and overflow independently, so that
61541         callers can treat them independently as needed.  Fix some bugs in
61542         suffix handling, e.g., "100k@" was not diagnosed as an invalid
61543         suffix for a human-readable blocksize.  The major caller-visible
61544         change is the addition of a new
61545         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
61546         that both overflow and suffix chars were found.
61547
61548         * lib/human.c (humblock): Don't check separately for invalid suffix
61549         char; that is xstrtoumax's job (now that its bug is fixed).
61550         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
61551         INTMAX_MAX]: New macros.
61552         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
61553         TYPE_MAXIMUM): New macros.
61554         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
61555         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
61556         if overflow occurs, as it's what __strtol does and it's more useful
61557         in practice.
61558         (__xstrtol): If __strtol reports some error other than ERANGE,
61559         reflect it to the caller as LONGINT_INVALID.  If it reports
61560         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
61561         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
61562         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
61563         value.
61564         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
61565         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
61566         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
61567         [defined UINTMAX_MAX]: New macros.
61568
61569 2003-10-14  Bruno Haible  <bruno@clisp.org>
61570
61571         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
61572
61573 2003-10-14  Bruno Haible  <bruno@clisp.org>
61574
61575         * m4/sig_atomic_t: New file, from GNU gettext.
61576         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
61577
61578 2003-10-14  Bruno Haible  <bruno@clisp.org>
61579
61580         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
61581         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
61582         Also use volatile where needed.
61583
61584 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61585
61586         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61587         Change maintainer from Bruno Haible to 'all'.
61588
61589 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61590
61591         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61592
61593 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61594
61595         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61596         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61597         and define in terms of the other primitives.
61598         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61599         (SIZE_MAX): Define if not already defined.
61600         (array_size_overflow): New function.
61601         (xalloc_die): Abort instead of exiting if 'error' returns.
61602         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61603         (xmalloc, xrealloc): Use them.
61604         (xcalloc): Check for address arithmetic overflow.
61605         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61606         a bit faster than strcpy.
61607
61608 2003-10-10  Simon Josefsson  <jas@extundo.com>
61609
61610         * modules/argp (Depends-on): Add restrict and strcase.
61611
61612 2003-10-10  Simon Josefsson  <jas@extundo.com>
61613
61614         * m4/argp.m4: Add AC_C_INLINE.
61615
61616 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61617
61618         Merge getpass from libc, plus a few fixes.
61619
61620         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61621         Include <stdbool.h>.
61622         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61623         __fsetlocking to empty.
61624         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61625         do include <bits/libc-lock.h>.
61626         Do not include <fcntl.h>; not needed.
61627         [_LIBC]: Include <wchar.h>.
61628         (NOTCANCEL_MODE): New macro.
61629         (flockfile, funlockfile) [_LIBC]: New macros.
61630         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61631         [!_LIBC]: New macros.
61632         (call_fclose): New function.
61633         (getpass): Use it.  Save tty stream separately; this simplifies the
61634         code and makes it more reliable if stdin happens to equal stdout.
61635         Invoke __fsetlocking on tty.
61636         Handle thread cancellation if needed.
61637         Namespace cleanup (use __tcgetattr, __getline).
61638         Use bool for Booleans.
61639         [USE_IN_LIBIO]: Handle wide streams.
61640         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61641         stream might go where.
61642
61643         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61644         doesn't have to include <stdio.h> before us.
61645         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61646         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61647         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61648         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61649         if not declared, so that we can use getpass.c code from libc without
61650         rewriting it.
61651         (flockfile, ftrylockfile, funlockfile): New macros.
61652
61653 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61654
61655         * modules/getpass: Depend on stdbool.
61656
61657 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61658
61659         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61660
61661 2003-10-07  Karl Berry  <karl@gnu.org>
61662
61663         * config/config.{guess,sub}: update from config.
61664
61665 2003-10-06  Jim Meyering  <jim@meyering.net>
61666             Bruno Haible  <bruno@clisp.org>
61667
61668         This lets translators provide better translations for the
61669         "Written by ..." part of --version output.
61670         * lib/version-etc.h: Include stdarg.h.
61671         (version_etc_copyright): Declare as readonly.
61672         (version_etc): Make this function variadic with a NULL-terminated list
61673         of author name strings.
61674         (version_etc_va): New declaration.
61675         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61676         (version_etc_copyright): Declare as readonly.
61677         (version_etc_va): New function. Provide a different translatable string
61678         for each possible number of authors < 10. Abbreviate when there are 10
61679         authors or more.
61680         (version_etc): Make this function variadic. Call version_etc_va.
61681         Suggestion from Gary V. Vaughan.
61682
61683         * lib/long-options.h (parse_long_options): Change prototype: the
61684         authors string is moved to the end and becomes variadic.
61685         * lib/long-options.c: Include stdarg.h.
61686         (parse_long_options): Make this function variadic, too.
61687         Call version_etc_va, not version_etc.
61688
61689 2003-10-06  Bruno Haible  <bruno@clisp.org>
61690
61691         * modules/version-etc-2: Remove file.
61692         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61693
61694 2003-10-06  Bruno Haible  <bruno@clisp.org>
61695
61696         * modules/fatal-signal: New file.
61697         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61698
61699 2003-10-06  Bruno Haible  <bruno@clisp.org>
61700
61701         * m4/fatal-signal.m4: New file.
61702         * m4/signalblocking.m4: New file, from GNU gettext.
61703
61704 2003-10-06  Bruno Haible  <bruno@clisp.org>
61705
61706         * lib/version-etc-2.h: Remove file.
61707         * lib/version-etc-2.c: Remove file.
61708
61709 2003-10-06  Bruno Haible  <bruno@clisp.org>
61710
61711         * lib/fatal-signal.h: New file, from GNU gettext.
61712         * lib/fatal-signal.c: New file, from GNU gettext.
61713
61714 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61715
61716         * README: Rework advice for preventing empty .o files.
61717         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61718         not <sys/types.h>.
61719
61720 2003-10-04  Karl Berry  <karl@gnu.org>
61721
61722         * lib/argp*: update from libc.
61723
61724 2003-10-04  Karl Berry  <karl@gnu.org>
61725
61726         * config/config.{guess,sub}: update from config.
61727
61728 2003-10-02  Bruno Haible  <bruno@clisp.org>
61729
61730         * modules/lchown (Include): Add lchown.h.
61731         * modules/time_r (Include): Use "..." syntax.
61732         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61733
61734 2003-10-01  Simon Josefsson  <jas@extundo.com>
61735
61736         * MODULES.html.sh (func_all_modules): Move gethostname from section
61737         'based on' to section 'lacking' POSIX:2001.
61738
61739 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61740
61741         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61742         to output mode on the same stream.
61743
61744 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61745
61746         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61747         Fix arg typo in previous patch.
61748
61749 2003-09-28  Jim Meyering  <jim@meyering.net>
61750
61751         * lib/error.c: Correct cpp indentation.
61752
61753 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61754
61755         * modules/free: New file.
61756
61757 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61758
61759         * m4/free.m4: New file.
61760
61761 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61762
61763         * lib/minmax.h (MIN, MAX)
61764         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61765         Omit the special code that used __typeof__, since we worry that
61766         it could be more trouble than it's worth.  See:
61767         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61768         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61769
61770         * lib/free.c: New file.
61771
61772 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61773
61774         Trivial fixes to Makefile.am parts of module listings.
61775         * modules/strstr: Append strstr.h to lib_SOURCES.
61776         * modules/strcase: Likewise, for strcase.h.
61777
61778 2003-09-27  Karl Berry  <karl@gnu.org>
61779
61780         * config/mkinstalldirs: update from automake.
61781
61782 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61783
61784         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61785         (error_tail): Do not loop, reallocating temporary buffer, since
61786         the output cannot contain more wide characters than the input
61787         contains bytes, the size must be big enough already.  This avoids
61788         one potential size overflow calculation.  Check for size overflow
61789         when calculating temporary buffer size.  Free temporary buffer
61790         when done, if it was allocated with malloc; this plugs a memory
61791         leak.  Remove casts from void * to pointers, that are no longer
61792         needed now that we're assuming C89 or better.
61793
61794         Merge error changes from glibc.
61795
61796         * lib/error.c, error.h: Update copyright notice header to match glibc.
61797         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61798         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61799         Disable cancellation while printing error.
61800         * lib/error.h: Prepend __ to parameter names.
61801
61802 2003-09-26  Jim Meyering  <jim@meyering.net>
61803
61804         * lib/error.c (error_tail): Move some declarations
61805         into inner scope where the local variables are used.
61806
61807 2003-09-26  Bruno Haible  <bruno@clisp.org>
61808
61809         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61810         stpncpy().
61811         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61812
61813 2003-09-26  Bruno Haible  <bruno@clisp.org>
61814
61815         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61816         (stpncpy): Define as alias for gnu_stpncpy.
61817         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61818
61819 2003-09-25  Simon Josefsson  <jas@extundo.com>
61820
61821         * lib/xgetdomainname.h: New file.
61822         * lib/xgetdomainname.c: New file.
61823
61824 2003-09-25  Simon Josefsson  <jas@extundo.com>
61825             Bruno Haible  <bruno@clisp.org>
61826
61827         * modules/getdomainname: New file.
61828         * modules/xgetdomainname: New file.
61829         * MODULES.html.sh (func_all_modules): Add getdomainname,
61830         xgetdomainname.
61831
61832 2003-09-25  Simon Josefsson  <jas@extundo.com>
61833             Bruno Haible  <bruno@clisp.org>
61834
61835         * m4/getdomainname.m4: New file.
61836
61837 2003-09-25  Simon Josefsson  <jas@extundo.com>
61838             Bruno Haible  <bruno@clisp.org>
61839
61840         * lib/getdomainname.h: New file.
61841         * lib/getdomainname.c: New file.
61842
61843 2003-09-25  Karl Berry  <karl@gnu.org>
61844
61845         * lib/argp-fmtstream.c, argp-help.c: update from libc.
61846
61847 2003-09-25  Karl Berry  <karl@gnu.org>
61848
61849         * config/install-sh: update from automake.
61850
61851 2003-09-25  Bruno Haible  <bruno@clisp.org>
61852
61853         * modules/version-etc-2: New file, from modules/version-etc with
61854         modifications.
61855         * MODULES.html.sh (func_all_modules): Add version-etc-2.
61856
61857 2003-09-25  Bruno Haible  <bruno@clisp.org>
61858
61859         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
61860         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
61861
61862 2003-09-24  Simon Josefsson  <jas@extundo.com>
61863
61864         * modules/xgethostname: Add xgethostname.h.
61865
61866 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61867
61868         * lib/linebuffer.c (freebuffer): Don't free the argument, just
61869         the buffer associated with the argument.  Bug reported by
61870         Simon Josefsson.
61871
61872 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61873
61874         * README: Document assumptions that 'int' is at least 32 bits
61875         wide, that integer arithmetic is 2's complement without overflow,
61876         that there are no holes in integer values, that adding sizes of
61877         two nonoverlapping objects can't overflow, and that all-bits-zero
61878         yields scalar zero.  Fix spelling and capitalization typos.
61879
61880 2003-09-19  Karl Berry  <karl@gnu.org>
61881
61882         * lib/argp.h: update from libc.
61883
61884 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61885
61886         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
61887         to avoid spurious warnings like "AC_RUN_IFELSE was called before
61888         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
61889
61890 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61891
61892         * gnulib-tool: Use "test -h", not "test -L", for portability
61893         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
61894         (tags_regexp): Remove, since \| doesn't conform to POSIX.
61895         (sed_extract_prog): Issue s commands one-by-one, rather than
61896         using \| in one s command.
61897
61898 2003-09-16  Paul Eggert  <eggert@twinsun.com>
61899
61900         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
61901         input error, instead of returning NULL the next time we are called
61902         (and therefore losing track of errno).
61903
61904 2003-09-16  Bruno Haible  <bruno@clisp.org>
61905
61906         * gnulib-tool (func_create_testdir): Warn about duplicated
61907         dependencies.
61908
61909 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61910
61911         * modules/argmatch, modules/fatal, modules/obstack,
61912         modules/xalloc, modules/xgethostname: Sort dependencies by
61913         importance, not alphabetically.
61914
61915 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61916
61917         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
61918         fails, so that the caller gets the proper errno.
61919
61920         * lib/readutmp.c (read_utmp): Likewise.
61921         Check for fstat error.  Close stream and free storage
61922         when failing.
61923
61924 2003-09-14  Karl Berry  <karl@gnu.org>
61925
61926         * config/srclist.txt (strdup.c): disable for c89 changes.
61927
61928 2003-09-14  Jim Meyering  <jim@meyering.net>
61929
61930         * lib/getloadavg.c: Correct cpp indentation.
61931         * lib/strdup.c: Likewise.
61932         * lib/vasnprintf.c: Likewise.
61933
61934 2003-09-14  Bruno Haible  <bruno@clisp.org>
61935
61936         * modules/fwriteerror: New file.
61937         * MODULES.html.sh (func_all_modules): Add fwriteerror.
61938
61939 2003-09-14  Bruno Haible  <bruno@clisp.org>
61940
61941         * lib/fwriteerror.h: New file.
61942         * lib/fwriteerror.c: New file.
61943
61944 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61945
61946         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
61947         modules/xgethostname, modules/xalloc: Depend on exit.
61948
61949 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61950
61951         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
61952
61953         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
61954         and AC_MINIX, too, so that their extensions are available.
61955
61956         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
61957         This macro has been superseded by gl_BACKUPFILE.
61958
61959         More patches to assume C89 or better.
61960
61961         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
61962
61963         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
61964         unconditionally.
61965         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
61966         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
61967         Include <string.h>, <stdlib.h> unconditionally.
61968         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
61969         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
61970         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
61971         headers or for string.h.
61972         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
61973         or strtoul.
61974
61975         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
61976         headers.
61977         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
61978         * m4/userspec.m4 (gl_USERSPEC): Likewise.
61979         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
61980         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
61981         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61982         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
61983         memcpy, memset.
61984         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
61985         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
61986         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
61987         strtol.
61988         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
61989         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
61990         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
61991         strtoul.
61992
61993 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61994
61995         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
61996         * lib/obstack.c [!defined _LIBC]: Likewise.
61997         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
61998         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
61999         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
62000
62001         More changes to assume C89 or better.
62002
62003         * lib/error.c (error_tail): Assume vprintf.
62004
62005         * lib/argmatch.c (getenv): Remove decl.
62006         * lib/progreloc.c (get_full_program_name): Define via prototype.
62007         * lib/setenv.c (clearenv): Likewise.
62008         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
62009         needed.
62010         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
62011         (malloc, memcpy): Remove decls.
62012         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
62013         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
62014         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62015         (memcpy): Remove macro.
62016         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
62017         (__P): Remove.  All uses removed.
62018         (PTR): Remove.  All uses changed to void *.
62019         (CHAR_BIT, NULL): Remove.
62020         (spaces, zeros, memset_space, memset_zero)
62021         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
62022         Remove.
62023         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
62024         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
62025         Define with prototype.
62026         Remove now-unnecessary prototype decl.
62027         (extra_args_spec): Assume ANSI C.  All uses changed.
62028         (extra_args_spec_iso): Remove.
62029         (my_strftime, emacs_strftimeu): Define via prototype.
62030         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
62031         unconditionally.
62032         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
62033         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
62034         (strtoul, strtol): Remove decls.
62035         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
62036         LONG_MAX): Remove.
62037         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62038         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
62039         (LOCALE_PARAM_PROTO): New macro.
62040         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
62041         (INTERNAL (strtol), strtol): Define with a prototype.
62042         (PARAMS): Remove.  All uses removed.
62043         * lib/tempname.c: Include <string.h> unconditionally.
62044         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
62045         * lib/xgethostname.c (main): Define with a prototype.
62046         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
62047         Include <stdlib.h> unconditionally.
62048         (calloc, malloc, realloc, free): Remove decls.
62049         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
62050         Include <stdlib.h> unconditionally.  Sort include file names.
62051         (strtod): Remove.
62052         (xstrtod): Define with a prototype.
62053         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
62054         (strtol, strtoul): Remove decls.
62055
62056 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62057
62058         More patches to assume C89 or better.
62059         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
62060         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
62061         string.h, memchr, STDC_HEADERS.
62062
62063 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62064
62065         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
62066         Include <stdlib.h>, <string.h> unconditionally.
62067         Remove now-unnecessary cast to char *.
62068         * lib/strnlen.c: Include <string.h> unconditionally.
62069         * lib/yesno.c (yesno): Define with a prototype.
62070
62071 2003-09-11  Bruno Haible  <bruno@clisp.org>
62072
62073         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
62074
62075 2003-09-10  Jim Meyering  <jim@meyering.net>
62076
62077         * lib/error.c: Correct indentation of cpp directives.
62078
62079 2003-09-10  Bruno Haible  <bruno@clisp.org>
62080
62081         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
62082         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
62083         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
62084         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
62085         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
62086         <stdlib.h> and <string.h> checks.
62087         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
62088         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
62089
62090 2003-09-10  Bruno Haible  <bruno@clisp.org>
62091
62092         * lib/strcspn.c: Include <string.h> unconditionally.
62093         * lib/strpbrk.c: Include <string.h> unconditionally.
62094         * lib/strstr.c: Include <string.h> unconditionally.
62095         * lib/unicodeio.c: Include <string.h> unconditionally.
62096         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
62097         * lib/unsetenv.c: Likewise.
62098         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
62099         * lib/yesno.c: Include <stdlib.h> unconditionally.
62100         (rpmatch): Add prototype.
62101
62102 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62103
62104         More patches to assume C89 or better.
62105         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
62106         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
62107         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
62108         or for string.h.
62109         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
62110         stdlib.h.
62111         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
62112         C headers.
62113         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
62114         string.h.
62115         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
62116         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
62117         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
62118         or for string.h.
62119         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
62120         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
62121         C headers.
62122         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
62123         memcpy.
62124         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
62125         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
62126         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
62127         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
62128         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
62129         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
62130         string.h, free.
62131         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
62132         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
62133         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
62134         C headers, or for string.h.
62135         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
62136         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
62137         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
62138         headers, memory.h, stdlib.h, string.h, strings.h.
62139         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
62140         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
62141         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
62142         strchr.
62143         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
62144         headers, memory.h, string.h.
62145         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
62146         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
62147         free.
62148         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
62149         headers.
62150         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
62151         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
62152         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
62153         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
62154         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
62155
62156 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62157
62158         More K&R removal.
62159
62160         * lib/acosl.c (main): Use a prototype.
62161         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
62162         tanl.c: Likewise.
62163
62164         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
62165
62166         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
62167         (getopt, etopt_long, getopt_long_only, _getopt_internal)
62168         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
62169         with a prototype.
62170         * lib/getopt.c (const): Remove macro.
62171         Include <string.h> unconditionally.
62172         (my_index): Remove; all uses changed to strchr.
62173         (strlen): Remove decl.
62174         (exchange): Remove forward decl; no longer needed.
62175         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
62176         Define with prototype.
62177         * lib/getopt1.c (const): Remove macro.
62178         (getopt_long, getopt_long_only, main): Define with prototype.
62179
62180         * lib/getugroups.c: Include <string.h> unconditionally.
62181
62182         * lib/getusershell.c: Include <stdlib.h> unconditionally.
62183         (getusershell, setusershell, endusershell, readname, main):
62184         Define with prototypes.
62185
62186         * lib/group-member.c: Include group-member.h first.
62187         Include <stdlib.h> unconditionally.
62188
62189         * lib/hard-locale.c: Include hard-locale.h first.
62190         Include <stdlib.h>, <string.h> unconditionally.
62191
62192         * lib/hash.c (free, malloc): Remove decls.
62193         Include <stdlib.h> unconditionally.
62194
62195         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
62196         (getenv): Do not declare.
62197
62198         * lib/idcache.c: Include <string.h> unconditionally.
62199
62200         * lib/long-options.c: Include long-options.h first, to test interface.
62201         Include <stdlib.h> unconditionally.
62202
62203         * lib/makepath.c: Include makepath.h first, to test interface.
62204         Include <stdlib.h> and <string.h> unconditionally.
62205
62206         * lib/linebuffer.c: Include <stdlib.h>.
62207         (free): Remove decl.
62208
62209         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
62210         stddef.h. rpl_malloc returns void *, not char *.
62211         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
62212         prototype.
62213
62214         * lib/md5.h: Include <limits.h> unconditionally.
62215         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
62216         (__P): Remove; all uses removed.
62217         * lib/md5.c: Include "md5.h" first.
62218         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
62219         md5_buffer, md5_process_bytes, md5_process_block):
62220         Define with prototypes.
62221         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
62222         * lib/sha.c: Include "sha.h" first.
62223         Include <stdlib.h>, <string.h> unconditionally.
62224
62225         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
62226         * lib/memcmp.c (__ptr_t): Likewise.
62227         * lib/memrchr.c (__ptr_t): Likewise.
62228         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
62229         Include <string.h> unconditionally.
62230         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
62231         * lib/memchr.c: Include <stdlib.h> unconditionally.
62232         * lib/memchr.c (LONG_MAX): Remove.
62233         * lib/memrchr.c (LONG_MAX): Likewise.
62234         * lib/memchr.c (__memchr): Define via a prototype.
62235         * lib/memrchr.c (__memrchr): Likewise.
62236         * lib/memcmp.c (__P): Remove, and remove all uses.
62237         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
62238         Remove forward decls; no longer needed.
62239         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
62240         Use types required by C89 in prototype.
62241
62242         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
62243         * lib/savedir.c: Likewise.
62244         * lib/mkdir.c (free): Remove decl.
62245         * lib/rmdir.c (rmdir): Define with a prototype.
62246         * lib/savedir.c: Include savedir.h first, to test interface.
62247
62248         * lib/mktime.c (STDC_HEADERS): Remove.
62249         Include <stdlib.h>, <string.h> unconditionally.
62250
62251         * lib/modechange.c: Include <stdlib.h> unconditionally.
62252         (malloc): Remove decl.
62253
62254         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
62255         (free): Remove decl.
62256
62257         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
62258         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
62259         (This type really should be intptr_t, but that's a C99ism.)
62260         (_obstack_memcpy): Remove: all uses changed to memcpy.
62261         Include <string.h> unconditionally.
62262         (struct obstack): Assume __STDC__ for types of members
62263         chunkfun, freefun, extra_arg.
62264         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
62265         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
62266         obstack_begin, obstack_specify_allocation,
62267         obstack_specify_allocation_with_arg, obstack_chunkfun,
62268         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
62269         Remove unprototyped decls and the macros that use them.
62270         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
62271         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
62272         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
62273         (defined __STDC__ && __STDC__)]:
62274         Remove nonprototyped code.
62275         Include <stdlib.h> unconditionally.
62276         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
62277         _obstack_allocated_p, _obstack_free, obstack_free,
62278         _obstack_memory_used, print_and_abort):
62279         Define using prototypes.
62280         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
62281         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
62282         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
62283         obstack_next_free, obstack_object_size, obstack_room) [0]:
62284         Remove unused, unprototyped code.
62285
62286         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
62287
62288         * lib/physmem.c (physmem_total, physmem_available, main): Define
62289         with prototypes.
62290
62291         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
62292         (main): Define with a prototype.
62293
62294         * lib/posixver.c (getenv): Remove decl.
62295
62296         * lib/putenv.c (malloc): Returns void *, not char *.
62297         Include <string.h> unconditionally.
62298         (strchr, memcpy, NULL): Do not define.
62299
62300         * lib/readtokens.c: Include readtokens.h first, to test interface.
62301         Include <stdlib.h>, <string.h> unconditionally.
62302         (init_tokenbuffer): Define with a prototype.
62303
62304         * lib/regex.c (PARAMS): Remove.  All uses removed.
62305         All uses of _RE_ARGS removed, too.
62306         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62307         unconditionally.
62308         (bzero): Assume memset exists.
62309         (memcmp, memcpy, NULL): Remove.
62310         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
62311         char, or assignments to local vars of type signed char.
62312         (init_syntax_once, PREFIX(extract_number_and_incr),
62313         PREFIX(print_partial_compiled_pattern),
62314         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
62315         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
62316         PREFIX(regex_grow_registers), PREFIX(regex_compile),
62317         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
62318         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
62319         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
62320         wcs_compile_range, byte_compile_range, truncate_wchar,
62321         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
62322         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
62323         count_mbs_length, wcs_re_match_2_internal,
62324         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
62325         PREFIX(alt_match_null_string_p),
62326         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
62327         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
62328         regfree, PREFIX(extract_number)): Define with prototype.  Remove
62329         now-unnecessary declaration, if any.
62330         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
62331         regcomp, regexec):
62332         Remove now-unnecessary casts among pointer types.
62333         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
62334
62335         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
62336         (free): Remove decl.
62337
62338         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
62339
62340         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
62341         (free): Remove decl.
62342
62343         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
62344         * lib/xgetcwd.c: Likewise.
62345
62346         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
62347         (free): Remove decl.
62348
62349         * lib/strchrnul.c (strchrnul): Define with a prototype.
62350         Fix bug: c_in was not converted to char before searching.
62351
62352         The following changes are not K&R related:
62353
62354         * lib/group-member.h: Include <sys/types.h>, so that this file is
62355         self-contained.
62356         * lib/makepath.h: Likewise.
62357
62358         * lib/getusershell.c (readname, default_index, line_size, readname):
62359         Use size_t, not int, for sizes.
62360         (readname): If the size overflows, report an error instead of
62361         looping forever.
62362
62363 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62364
62365         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
62366         libc.
62367
62368 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62369
62370         * README: New section: portability guidelines.
62371
62372 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62373
62374         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
62375         C89 spec.
62376
62377 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62378
62379         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
62380
62381 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62382
62383         Assume C89 or better; remove K&R cruft.
62384         A few of these changes were first proposed by Derek Robert Price
62385         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
62386
62387         * lib/addext.c: Include <string.h> unconditionally.
62388         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
62389         Don't declare getenv or malloc.
62390
62391         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
62392         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
62393         (NULL): Remove.
62394         (find_stack_direction, alloca): Use prototypes.
62395
62396         * lib/atexit.c (atexit): Define using a prototype.
62397
62398         * lib/basename.c, dirname.c, stripslash.c:
62399         Include <string.h> unconditionally.
62400
62401         * lib/bcopy.c: Include <stddef.h>.
62402         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
62403
62404         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
62405
62406         * lib/error.h (error, error_at_line, error_print_progname)
62407         [! (defined (__STDC__) && __STDC__)]: Remove decls.
62408         * lib/error.c: Include error.h first, to check interface.
62409         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62410         (VA_START): Remove; all uses changeed to va_start.
62411         (exit, strerror): Remove decls.
62412         (error_print_progname): Prototype uncondionally.
62413         Don't include <errno.h>; no longer needed.
62414         (private_strerror): Remove.
62415         (error_tail): Always define.
62416         (error, error_at_line): Assume C89 or better; always use prototypes.
62417         * lib/fatal.c: Include "fatal.h" first, to test interface.
62418         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62419         (VA_START): Remove; all uses changed to va_start.
62420         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
62421         this case.
62422         (exit): Remove decl.
62423         (fatal): Prototype unconditionally.  Assume va_start works.
62424         Abort at end, to pacify gcc.
62425
62426         * lib/euidaccess.c (main): Define with a prototype.
62427
62428         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
62429
62430         * lib/exitfail.c: Include <stdlib.h> unconditionally.
62431
62432         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
62433         prototypes.
62434         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
62435         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
62436         (getenv): Remove decl.
62437         (fnmatch): Define using a prototype.
62438         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
62439         (FCT): Define using a prototype.
62440
62441         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
62442
62443         * lib/gethostname.c: Include <stddef.h>.
62444         (gethostname): Define with prototype.  Length is size_t, not int.
62445
62446 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62447
62448         Assume C89 or better; remove K&R cruft.
62449         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
62450         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
62451         string.h, getenv, malloc.
62452         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
62453         headers.
62454         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
62455         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
62456         do not check for strerror.
62457         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
62458         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
62459         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
62460         do not check for doprnt or vprintf.
62461         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
62462         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
62463
62464 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62465
62466         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
62467         getversion.c should have been removed then, but was accidentally
62468         preserved.
62469
62470         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
62471         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
62472
62473 2003-09-08  Karl Berry  <karl@gnu.org>
62474
62475         * config/config.sub, config.guess, srclistvars.sh: update from savannah
62476                 config, forget about prep.
62477
62478         * config/depcomp, missing: update from automake.
62479
62480 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62481
62482         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
62483         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62484
62485 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62486
62487         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
62488         copy_tm_result.  Bug reported by Simon Josefsson in
62489         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62490
62491 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62492
62493         * m4/time_r.m4: New file.
62494         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
62495         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
62496         is. Check for timegm declaration.
62497         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
62498         Do not check for gmtime_r.
62499         Replace mktime if __mktime_internal does not exist and if mktime
62500         hasn't been replaced already.
62501
62502 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62503
62504         * lib/time_r.c, lib/time_r.h: New files.
62505
62506         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
62507         __localtime_r.
62508         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
62509         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
62510
62511         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
62512         __gmtime_r.
62513         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
62514         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
62515         Include <time_r.h>.
62516
62517         * lib/timegm.c: Switch to glibc implementation, with the following
62518         changes:
62519         [defined HAVE_CONFIG_H]: Include <config.h>.
62520         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
62521         (__mktime_internal) [!defined _LIBC]: New decl.
62522         (__gmtime_r) [!defined _LIBC]: New macro and function.
62523         (timegm): Use a prototype, since gnulib assumes C89.
62524         Do not bother declaring tmp to be const, as it's not really usefu.
62525         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
62526         (timegm): Declare only if HAVE_DECL_TIMEGM.
62527
62528 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62529
62530         * MODULES.html.sh (func_all_modules): Add time_r.
62531         * modules/time_r: New file.
62532         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
62533         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
62534
62535 2003-09-03  Paul Eggert  <eggert@twinsun.com>
62536
62537         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
62538         Bug reported by Lute Kamstra in
62539         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
62540
62541         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
62542         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
62543         course with correspondingly smaller numbers for tomorrow and
62544         yesterday.  From Tadayoshi Funaba.  Originally installed into
62545         sh-utils on 1999-08-07, but the patch got lost (I guess during the
62546         coreutils merge?).
62547
62548 2003-08-31  Simon Josefsson  <jas@extundo.com>
62549
62550         * modules/timegm: New file.
62551         * MODULES.html.sh (func_all_modules): Add timegm.
62552
62553 2003-08-31  Simon Josefsson  <jas@extundo.com>
62554
62555         * m4/timegm.m4: New file.
62556
62557 2003-08-31  Simon Josefsson  <jas@extundo.com>
62558
62559         * lib/timegm.h: New file.
62560         * lib/timegm.c: New file.  Based on
62561         wget-1.8.2/src/http.c:mktime_from_utc.
62562
62563 2003-08-31  Karl Berry  <karl@gnu.org>
62564
62565         * lib/argp.h: update from libc.
62566
62567 2003-08-28  Bruno Haible  <bruno@clisp.org>
62568
62569         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
62570         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
62571         followed by '#define fnmatch fnmatch_posix' gives an error.
62572
62573 2003-08-28  Bruno Haible  <bruno@clisp.org>
62574
62575         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
62576         warning on QNX, which defines O_BINARY to 000000.
62577
62578 2003-08-27  Jim Meyering  <jim@meyering.net>
62579
62580         * m4/mkstemp.m4: Require that the system mkstemp be able to create
62581         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
62582         would fail after 32.  Reported by Danny Levinson.  Details here:
62583         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
62584
62585 2003-08-24  Bruno Haible  <bruno@clisp.org>
62586
62587         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62588         MSVC7 <stdio.h> is included later.
62589
62590 2003-08-22  Simon Josefsson  <jas@extundo.com>
62591
62592         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62593
62594 2003-08-20  Karl Berry  <karl@gnu.org>
62595
62596         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62597
62598 2003-08-20  Bruno Haible  <bruno@clisp.org>
62599
62600         * modules/progname: New file.
62601         * MODULES.html.sh (func_all_modules): Add progname.
62602
62603 2003-08-20  Bruno Haible  <bruno@clisp.org>
62604
62605         * lib/progname.h: New file, from GNU gettext.
62606         * lib/progname.c: New file, from GNU gettext.
62607         * lib/progreloc.c: New file, from GNU gettext.
62608
62609 2003-08-19  Jim Meyering  <jim@meyering.net>
62610
62611         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62612         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62613
62614 2003-08-19  Bruno Haible  <bruno@clisp.org>
62615
62616         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62617         more.
62618
62619 2003-08-19  Bruno Haible  <bruno@clisp.org>
62620
62621         * lib/xstrdup.c: Assume <string.h> exists.
62622
62623 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62624
62625         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62626         in makefile rules.
62627
62628 2003-08-18  Jim Meyering  <jim@meyering.net>
62629
62630         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62631         * m4/lib-ld.m4: Likewise.
62632
62633 2003-08-18  Jim Meyering  <jim@meyering.net>
62634
62635         * lib/setenv.h: Indent nested cpp directive.
62636         * lib/vasnprintf.c: Remove trailing blanks.
62637
62638 2003-08-17  Simon Josefsson  <jas@extundo.com>
62639
62640         * modules/xstrndup: New file.
62641         * MODULES.html.sh (func_all_modules): Add xstrndup.
62642
62643 2003-08-17  Simon Josefsson  <jas@extundo.com>
62644
62645         * modules/argp: Fix autoconf macro name. Add more dependencies.
62646
62647 2003-08-17  Simon Josefsson  <jas@extundo.com>
62648
62649         * m4/xstrndup.m4: New file.
62650
62651 2003-08-17  Simon Josefsson  <jas@extundo.com>
62652
62653         * m4/argp.m4: New file.
62654
62655 2003-08-17  Simon Josefsson  <jas@extundo.com>
62656             Bruno Haible  <bruno@clisp.org>
62657
62658         * lib/xstrndup.h: New file.
62659         * lib/xstrndup.c: New file.
62660
62661 2003-08-17  Bruno Haible  <bruno@clisp.org>
62662
62663         * modules/strndup (Files, Include): Add lib/strndup.h.
62664
62665 2003-08-17  Bruno Haible  <bruno@clisp.org>
62666
62667         * modules/euidaccess (Files): Add lib/euidaccess.h.
62668
62669 2003-08-17  Bruno Haible  <bruno@clisp.org>
62670
62671         * lib/strndup.h: New file.
62672
62673 2003-08-17  Bruno Haible  <bruno@clisp.org>
62674
62675         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62676         like AC_GNU_SOURCE.
62677         * modules/extensions (configure.ac): Comment out the invocation of
62678         gl_USE_SYSTEM_EXTENSIONS.
62679
62680 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62681
62682         Merges from coreutils, etc.
62683         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62684         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62685         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62686         fixing a typo.
62687         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62688         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62689
62690 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62691
62692         Document merge from coreutils.
62693         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62694         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62695         * modules/utime: Add m4/utimes-null.m4.
62696
62697 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62698
62699         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62700         space, undoing this 2003-08-12 change:
62701         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62702
62703 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62704
62705         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62706         strtoul.c from libc, undoing this 2003-08-12 change:
62707         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62708
62709 2003-08-16  Jim Meyering  <jim@meyering.net>
62710
62711         Merges from coreutils.
62712         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62713         prefix.  Adjust cache variables similarly.  Create 500 rather than
62714         just 300 files, to exercise bug on Darwin6.5, too.
62715         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62716         $missing_dir.
62717         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62718         AM_SYS_POSIX_TERMIOS.
62719         Reported by mkc@mathdogs.com.
62720         Also change use of $am_cv_sys_posix_termios
62721         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62722         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62723         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62724         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62725         in /proc/mounts until it finds one with matching device number.  This
62726         is unnecessary when the FILE argument *is* a mount point.  No stat call
62727         is necessary in that case.  So, disable the statvfs-testing code on
62728         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62729         as RedHat bug# 84846.
62730         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62731         to 1MB, so as not to render systems with no stack size limit (e.g.,
62732         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62733         Include <unistd.h>.  On some systems,
62734         it is required for the definition of _SC_PAGESIZE.
62735
62736 2003-08-16  Jim Meyering  <jim@meyering.net>
62737
62738         Merge from coreutils.
62739         * lib/xstrtoimax.c: #else #if -> #elif.
62740         * lib/xstrtoumax.c: Likewise.
62741
62742 2003-08-16  Jim Meyering  <jim@meyering.net>
62743
62744         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62745         * m4/utimes.m4: Removed.
62746         * m4/utimes-null.m4: Renamed from utimes.m4.
62747
62748         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62749         to 1MB, so as not to render systems with no stack size limit (e.g.,
62750         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62751         Include <unistd.h>.  On some systems,
62752         it is required for the definition of _SC_PAGESIZE.
62753
62754 2003-08-16  Jim Meyering  <jim@meyering.net>
62755         and Paul Eggert  <eggert@cs.ucla.edu>
62756
62757         Merges from coreutils, etc.
62758
62759         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62760         using the latest version from cvs.  This avoids problems with #line
62761         directives using a vendor (Sun) compiler.
62762         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62763         Don't set GETGROUPS_LIB here; now it's
62764         done via getgroups.m4's wrapper function.
62765         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62766         rather than just in sh-util/configure.in, so that the
62767         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62768         same.
62769         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62770         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62771         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62772         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62773         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62774         Remove code that is now done by the newly-required macros.
62775         Append $(EXEEXT) to DF_PROG.
62776         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62777         Do not invoke or require the following here,
62778         since prereq.m4 or some gnulib .m4 now does this for us:
62779         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62780         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62781         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62782         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62783         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62784         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62785         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62786         AC_FUNC_OBSTACK.
62787         Do not replace the following functions, as this is now the job
62788         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62789         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62790         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62791         atexit getpass, strdup, getpagesize.
62792         Replace 'raise'.
62793         Do not check for the following functions, as this is now the job
62794         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62795         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62796         setregid.
62797         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62798         Check for sys/sysctl.h.
62799         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62800         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62801         of checking for ssize_t ourselves.
62802
62803         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62804         Require every macro that gnulib/modules/* suggests for us.
62805         (jm_PREREQ_ADDEXT): New macro.
62806         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62807         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62808
62809         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62810         (gl_PHYSMEM): Use it.
62811         Also check for `table' function.
62812         Check for new headers and functions.
62813         Add check for sys/sysmp.h.
62814         With suggestions from Kaveh Ghazi.
62815         Ignore headers that are present but cannot be compiled.  This
62816         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62817         C 5.4.
62818
62819 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62820
62821         Document merge from coreutils.
62822         * modules/userspec: Depend on posixver.
62823         * modules/strftime: Depend on tzset.
62824
62825 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62826
62827         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62828         rather than tab, after '#' in shell-script copyright notices.
62829         Suggested by Bruno Haible.
62830
62831 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62832
62833         * config/srclist-update: Use three spaces, rather than tab, after '#'
62834         in shell-script copyright notices.  Suggested by Bruno Haible.
62835         Remove unnecessary parenthesization in regular expression.
62836
62837 2003-08-15  Jim Meyering  <jim@meyering.net>
62838
62839         Merge from coreutils.
62840         * lib/xgethostname.c: Include <stdlib.h>.
62841         (xghostname): Don't exit for anything other than memory-related
62842         failure; just return NULL.
62843         * lib/userspec.c: Include "posixver.h".
62844         (parse_user_spec): Accept `.' as a separator only
62845         in pre-POSIX-200112 mode.
62846         * lib/strtoimax.c: Use #elif rather than #else #if.
62847         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
62848         Remove function, now that we can rely on a working tzset function.
62849         [!_LIBC]: Ensure that the required autoconf test has been run.
62850         [!defined _NL_CURRENT && HAVE_STRFTIME]:
62851         Use underlying_strftime for %r.
62852         * lib/sha.c: Merge in some clean-up and optimization changes from
62853         glibc.
62854         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
62855         Ensure that it is a multiple of 64.
62856         Rearrange loop exit tests so as to avoid performing an
62857         additional fread after encountering an error or EOF.
62858         * lib/realloc.c: Update copyright date.
62859
62860 2003-08-15  Jim Meyering  <jim@meyering.net>
62861         and Paul Eggert  <eggert@twinsun.com>
62862
62863         Merge from coreutils.
62864         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
62865         member but strut utmpx does not.  Needed for AIX 4.3.3.
62866         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
62867
62868 2003-08-15  Jim Meyering  <jim@meyering.net>
62869         and Paul Eggert  <eggert@cs.ucla.edu>
62870
62871         Merges from coreutils, etc.
62872         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
62873         Require gl_FUNC_TZSET_CLOBBER.
62874         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
62875         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
62876         members.
62877
62878 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62879
62880         Help the merge from coreutils.
62881         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
62882         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
62883         * m4/tzset.m4: Use it too.
62884
62885 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62886
62887         * modules/tzset: New file.
62888
62889 2003-08-14  Jim Meyering  <jim@meyering.net>
62890
62891         Merges from coreutils.
62892         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
62893         variable names, rather than @FNMATCH_H@.
62894         * modules/alloca: Likewise for $(ALLOCA_H).
62895
62896         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
62897         the three copies of the literal target, `fnmatch.h'.
62898         * modules/alloca (alloca.h): Likewise.
62899
62900 2003-08-14  Jim Meyering  <jim@meyering.net>
62901
62902         Merge from coreutils.
62903         * m4/tzset.m4: New file.
62904         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
62905         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
62906         otherwise, AIX 5.1 systems would end up using the latter.
62907         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
62908         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
62909         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
62910         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
62911
62912 2003-08-14  Jim Meyering  <jim@meyering.net>
62913
62914         Merge from coreutils.
62915         * lib/obstack.h: Whitespace changes.
62916         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
62917         and xcalloc return values.
62918         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
62919         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
62920         hang on OSF/1 5.1 for DIR on both local and remote file systems.
62921         Reported by (and fix confirmed by) Nelson H. F. Beebe.
62922         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62923         error from mntctl.
62924         Use mntctl's return value to drive the entry-processing loop, since
62925         we can't rely on the value of the vmt_length member in the last
62926         entry.  On some systems doing so could result in exhausting
62927         virtual memory.  Based in part on a patch from Mike Jetzer.
62928
62929 2003-08-14  Jim Meyering  <jim@meyering.net>
62930         and Paul Eggert  <eggert@twinsun.com>
62931
62932         Merges from coreutils, plus other fixes.
62933         * lib/physmem.c: Merge in portability changes from gcc/libiberty
62934         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
62935         for credits and details.  Thanks to Kaveh Ghazi for helping
62936         to keep these files in sync.
62937         (ARRAY_SIZE): Define it.
62938         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
62939         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
62940         (memcasecmp): Don't assume size_t fits in unsigned int.
62941         Remove casts and duplicate code.
62942         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
62943         (memcpy): Remove definition.
62944         Merge in some clean-up and optimization changes from glibc.
62945         [BLOCKSIZE]: Move definition to top of file.
62946         Ensure that it is a multiple of 64.
62947         Rearrange loop exit tests so as to avoid performing an
62948         additional fread after encountering an error or EOF.
62949         * lib/md5.h (md5_uintptr): Define.
62950         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
62951         return to the initial working directory.  Preserve errno
62952         for caller.
62953         * lib/idcache.c: Include "xalloc.h".
62954         (xmalloc, xrealloc): Remove decls.
62955         (getuser): Remove casts no longer required in C89.
62956         * lib/human.c: Include stdio.h, for sprintf.
62957         * lib/group-member.c: Include "xalloc.h".
62958         (xmalloc, xrealloc): Remove decls.
62959         (get_group_info): Remove casts no longer required in C89.
62960         * lib/getusershell.c (readname): Remove casts no longer required in
62961         C89.
62962         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
62963         * lib/getline.c: Whitespace fix, from coreutils.
62964
62965 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62966
62967         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
62968         Check for isascii.
62969
62970         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62971         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62972         Undo previous (whitespace-only) change.
62973
62974 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62975
62976         * lib/exclude.c: Include <ctype.h>
62977         (IN_CTYPE_DOMAIN): New macro.
62978         (is_space): New fn.
62979         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
62980         and empty lines.
62981
62982         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62983         Undo previous (whitespace-only) change.
62984
62985 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62986
62987         * config/srclist-update: Change update back to the old behavior,
62988         leaving whitespace alone.  Use one 'sed' command rather than a
62989         pipeline.
62990         (fixlicense): Now a variable, not a function.
62991         (remove_trailing_blanks): Remove.
62992         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
62993         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
62994         Undo previous (whitespace-only) change.
62995
62996 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62997
62998         Merge from coreutils.
62999         * modules/euidaccess: Add lib_SOURCES, include for new
63000         file euidaccess.h
63001
63002 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63003
63004         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63005         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63006         Normalize leading white space and remove trailing white space.
63007
63008         Merge from coreutils
63009         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
63010
63011         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
63012         0.12.1.  These files are now being upgraded automatically by
63013         ../config/srclist-update.
63014
63015 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63016
63017         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63018         Normalize leading white space and remove trailing white space.
63019         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
63020         notice, as per ../config/srclist-update.
63021
63022         Merge from coreutils.
63023         * lib/euidaccess.h: New file.
63024         * lib/euidaccess.c: Include it.
63025         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
63026         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
63027         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
63028
63029 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63030
63031         * config/srclist-update: Add copyright notice.
63032         (remove_id_lines, remove_trailing_blanks): New constants.
63033         (fixfile): Use them to normalize spacing a bit in copied files.
63034         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63035         Normalize leading white space and remove trailing white space.
63036
63037         * config/texinfo.tex: Sync with texinfo.
63038
63039         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
63040         strtoul.c from libc, to merge coreutils whitespace changes.
63041
63042         * config/srclist.txt: Get the following m4 files from gettext:
63043         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
63044         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
63045         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
63046         wint_t.m4.
63047
63048 2003-08-12  Karl Berry  <karl@gnu.org>
63049
63050         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
63051         been made.
63052
63053 2003-08-11  Paul Eggert  <eggert@twinsun.com>
63054
63055         * modules/gnu-source, m4/gnu-source.m4:
63056         Remove; we're assuming Autoconf 2.54 or later now.
63057         Suggested by Bruno Haible.
63058         * MODULES.html.sh (func_all_modules): Remove gnu-source.
63059
63060 2003-08-11  Bruno Haible  <bruno@clisp.org>
63061
63062         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
63063
63064 2003-08-11  Bruno Haible  <bruno@clisp.org>
63065
63066         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
63067         (vasnprintf): Use it instead of wcslen.
63068
63069 2003-08-11  Bruno Haible  <bruno@clisp.org>
63070
63071         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
63072         value to ensure that _Bool promotes to int. Use #define for _Bool when
63073         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
63074
63075 2003-08-10  Karl Berry  <karl@gnu.org>
63076
63077         * lib/regex.h: update from libc (whitespace fix).
63078
63079 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63080
63081         Merge some files from coreutils.  These changes were
63082         originally made by Jim Meyering.
63083         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
63084         many older Unixes require this.
63085         * lib/alloca.c (alloca): Remove cast to argument of free;
63086         no longer needed in C89.
63087         * lib/alloca_.h, regex.h: Fix white space to match
63088         what GNU indent does.
63089
63090 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63091
63092         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
63093         apparently Emacs's Unicode mode got confused before my 2003-08-05
63094         checkin.
63095
63096 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63097
63098         * m4/extensions.m4: New file.
63099         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
63100         Require gl_USE_SYSTEM_EXTENSIONS.
63101         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
63102         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
63103
63104 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63105
63106         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
63107         * modules/extensions, modules/gnu-source: New files.
63108         * modules/timespec, modules/unlocked-io: Depend on extensions.
63109
63110 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63111
63112         * modules/restrict: New file.
63113         * MODULES.html.sh (func_all_modules): Add restrict.
63114         * modules/regex: Depend on restrict.
63115
63116 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63117
63118         * m4/restrict.m4: New file.
63119         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
63120
63121 2003-08-07  Bruno Haible  <bruno@clisp.org>
63122
63123         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
63124         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
63125
63126 2003-08-07  Bruno Haible  <bruno@clisp.org>
63127
63128         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
63129         makes the module 'getndelim2' compatible with the module 'getline'.
63130
63131 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63132
63133         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
63134         byte with "\201" to avoid glitches when editing that source file
63135         with multi-gnome-terminal.
63136
63137 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63138
63139         * lib/bumpalloc.h: Remove.
63140
63141 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63142
63143         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
63144         * modules/bumpalloc: Remove.
63145
63146 2003-08-04  Paul Eggert  <eggert@twinsun.com>
63147
63148         * lib/getloadavg.c: Change copyright notice and spacing to conform to
63149         GNU coding style.
63150
63151         Merge from coreutils.
63152         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
63153         1. From glibc.
63154         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
63155         from Karl Berry, implemented by Jim Meyering.
63156         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
63157         from Dmitry V. Levin.
63158         Remove anachronistic cast of xrealloc.
63159         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
63160         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
63161         type. Otherwise, it wouldn't compile with at least /bin/cc on
63162         ymp-cray-unicos9.0.2.X.
63163         Combine two mostly-identical uses of alloca into one.
63164         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
63165
63166 2003-08-04  Dave Love  <d.love@dl.ac.uk>
63167
63168         [From Emacs.]
63169
63170         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
63171         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
63172         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
63173         obsolete NLIST_NAME_UNION.
63174         [__GNU__]: Undef BSD and FSCALE.
63175         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
63176
63177 2003-08-03  Paul Eggert  <eggert@twinsun.com>
63178
63179         * lib/stdbool_.h (_Bool): Make it signed char, instead of
63180         an enum type, so that it's guaranteed to promote to int.  See:
63181         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
63182
63183 2003-08-03  Karl Berry  <karl@gnu.org>
63184
63185         * config/depcomp: update from automake.
63186
63187 2003-07-31  Paul Eggert  <eggert@twinsun.com>
63188
63189         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
63190         (strerror): Don't assume that a printable int fits in 14 bytes.
63191
63192 2003-07-31  Bruno Haible  <bruno@clisp.org>
63193
63194         * modules/getpass-gnu: New file.
63195         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
63196
63197 2003-07-31  Bruno Haible  <bruno@clisp.org>
63198
63199         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
63200
63201 2003-07-24  Karl Berry  <karl@gnu.org>
63202
63203         * config/missing: update from automake.
63204
63205 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
63206             Bruno Haible  <bruno@clisp.org>
63207
63208         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
63209         * lib/getline.c (getline, getdelim): Likewise.
63210         Remove _GNU_SOURCE define; now it's defined in config.h through
63211         m4/getline.m4.
63212
63213 2003-07-23  Karl Berry  <karl@gnu.org>
63214
63215         * config/config.sub: update from prep.
63216
63217 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63218
63219         * modules/xalloc (Depends-on): Add exitfail.
63220         * modules/xmemcoll: Likewise.
63221
63222 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63223
63224         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
63225         over-parenthesization in macros.
63226
63227         Sync with coreutils.
63228
63229         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
63230         required by C99.
63231
63232         Use `exit_failure' for xalloc and xmemcoll instead of their own
63233         private exit-failure variables.
63234         * lib/xalloc.h (xalloc_exit_failure): Remove.
63235         * lib/xmalloc.c: Likewise.  Include exitfail.h.
63236         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
63237         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
63238         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
63239         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
63240
63241 2003-07-20  Jim Meyering  <jim@meyering.net>
63242
63243         * modules/closeout (Depends-on): Add exitfail.
63244         Suggestion from Bruno Haible.
63245
63246 2003-07-19  Karl Berry  <karl@gnu.org>
63247
63248         * config/config.sub: update from prep.
63249
63250 2003-07-18  Paul Eggert  <eggert@twinsun.com>
63251
63252         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
63253         Remove.
63254         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
63255         to test that it can stand by itself.  Include "exitfail.h".
63256         Clients should set exit_failure instead.
63257         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
63258
63259 2003-07-18  Bruno Haible  <bruno@clisp.org>
63260
63261         * modules/getndelim2: New file.
63262         * modules/getline: Share files with module getndelim2.
63263         * modules/getnline: Depend on getndelim2 instead of sharing files with
63264         it. Add getnline.c to lib_SOURCES.
63265         * MODULES.html.sh (func_all_modules): Add getndelim2.
63266
63267 2003-07-18  Bruno Haible  <bruno@clisp.org>
63268
63269         * m4/getndelim2.m4: New file.
63270         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
63271         invoke gl_PREREQ_GETNDELIM2.
63272         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
63273         gl_PREREQ_GETNDELIM2.
63274         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
63275         gl_GETNDELIM2.
63276
63277 2003-07-18  Bruno Haible  <bruno@clisp.org>
63278
63279         * lib/getndelim2.h: New file.
63280         * lib/getndelim2.c: Make into a module of its own. Include config.h,
63281         getndelim2.h.
63282         (getndelim2): Make non-static. Change return type to ssize_t.
63283         * lib/getline.h: Change argument names.
63284         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
63285         * lib/getnline.c: Include getndelim2.h.
63286
63287 2003-07-18  Andreas Schwab  <schwab@suse.de>
63288
63289         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
63290
63291 2003-07-17  Karl Berry  <karl@gnu.org>
63292
63293         * config/config.sub: update from prep.
63294
63295 2003-07-17  Bruno Haible  <bruno@clisp.org>
63296
63297         * modules/getnline: New file.
63298         * modules/getline: Add lib/getndelim2.c to source file list.
63299         * MODULES.html.sh (func_all_modules): Add getnline.
63300
63301 2003-07-17  Bruno Haible  <bruno@clisp.org>
63302
63303         * m4/getnline.m4: New file.
63304
63305 2003-07-17  Bruno Haible  <bruno@clisp.org>
63306
63307         * m4/Makefile.am.in: Remove file.
63308         * m4/Makefile.am: Remove file.
63309         * m4/Makefile.in: Remove file.
63310
63311 2003-07-17  Bruno Haible  <bruno@clisp.org>
63312
63313         * lib/getnline.h: New file.
63314         * lib/getnline.c: New file.
63315         * lib/getndelim2.c: New file, extracted from getline.c.
63316         (getndelim2): Renamed from getdelim2, with added nmax argument.
63317         * lib/getline.c: Include getndelim2.c.
63318         (getdelim2): Moved out to getndelim2.c.
63319         (getline, getdelim): Update.
63320
63321 2003-07-17  Bruno Haible  <bruno@clisp.org>
63322
63323         * lib/Makefile.am: Remove file.
63324         * lib/Makefile.in: Remove file.
63325
63326 2003-07-17  Bruno Haible  <bruno@clisp.org>
63327
63328         * configure.in: Remove file.
63329         * Makefile.in: Remove file.
63330
63331 2003-07-17  Bruno Haible  <bruno@clisp.org>
63332
63333         * MODULES.html.sh: Put the </BODY> right before </HTML>.
63334
63335 2003-07-16  Karl Berry  <karl@gnu.org>
63336
63337         * config/srclist-update: was running fixlicense twice, which caused
63338                 texinfo.tex to be nullified for some reason.  Simplify,
63339                 $gplsrc is no longer needed as far as I can see?
63340
63341 2003-07-16  Jim Meyering  <jim@meyering.net>
63342
63343         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
63344
63345 2003-07-15  Paul Eggert  <eggert@twinsun.com>
63346
63347         * config/srclist.txt: Get the following files from gettext-runtime/intl
63348         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
63349         ref-del.sin.  From Bruno Haible.
63350         * config/srclist-update (fixfile): Change grep pattern again, since the
63351         previous fix didn't work (there was another trailing $).  Use
63352         '[$]' to escape the $s.
63353
63354 2003-07-15  Karl Berry  <karl@gnu.org>
63355
63356         * lib/vasnprintf.c: update from gettext.
63357
63358 2003-07-15  Karl Berry  <karl@gnu.org>
63359
63360         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
63361         gets expanded when surrounded by '$'.
63362
63363 2003-07-15  Jim Meyering  <jim@meyering.net>
63364
63365         * modules/save-cwd: Don't depend on error.  From Derek Price.
63366
63367 2003-07-15  Jim Meyering  <jim@meyering.net>
63368
63369         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
63370
63371 2003-07-14  Simon Josefsson  <jas@extundo.com>
63372
63373         * modules/mempcpy: New file.
63374         * MODULES.html.sh (func_all_modules): Add mempcpy.
63375
63376 2003-07-14  Simon Josefsson  <jas@extundo.com>
63377
63378         * m4/mempcpy.m4: New file.
63379
63380 2003-07-14  Simon Josefsson  <jas@extundo.com>
63381
63382         * lib/mempcpy.h: New file.
63383         * lib/mempcpy.c: New file.
63384
63385 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63386
63387         * modules/getdate, modules/posixtm: Depend on mktime.
63388
63389 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63390
63391         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
63392         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
63393         unicodeio.c, unicodeio.h, unlocked-io.h:
63394         Switch from LGPL to GPL.
63395
63396 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63397
63398         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
63399         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
63400         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
63401         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
63402         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
63403         updated automatically by ../config/srclist-update.  This changes
63404         their license from LPGL to GPL.
63405
63406 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63407
63408         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
63409         assumed to refer to the root of the most recent stable gettext version.
63410         * config/srclistvars.sh: Add defaults for eggert.
63411         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
63412         Match "This program" as well as "The program".  This is needed
63413         for gettext.
63414
63415 2003-07-14  Jim Meyering  <jim@meyering.net>
63416
63417         Don't emit diagnostics.  Let callers do that.
63418         * lib/save-cwd.c: Don't include "error.h".
63419         (save_cwd): Don't call error.  Ensure that errno is valid
63420         when returning nonzero.
63421
63422         * lib/save-cwd.h (restore_cwd): Update prototype.
63423         * lib/save-cwd.c (restore_cwd): Remove two parameters.
63424         Simplify.  Don't call error upon failure.  Let callers do that.
63425         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
63426         when auditing is enabled.  But don't bother updating the #if.
63427
63428 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
63429
63430         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
63431         it breaks C++ compilation.
63432         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
63433
63434 2003-07-10  Simon Josefsson  <jas@extundo.com>
63435
63436         * modules/strchrnul (Makefile.am): Add strchrnul.h.
63437
63438 2003-07-10  Jim Meyering  <jim@meyering.net>
63439
63440         * m4/clock_time.m4: Remove trailing blank.
63441         * m4/intmax_t.m4: Likewise.
63442
63443 2003-07-10  Jim Meyering  <jim@meyering.net>
63444
63445         * lib/vasnprintf.c: Remove trailing blanks.
63446         Make cpp indentation consistent.
63447
63448 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63449
63450         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
63451         posixver.c, strftime.c, strnlen.c, strverscmp.c:
63452         Switch from LGPL to GPL.
63453
63454 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63455
63456         * config/srclist.txt: Sort sublists.  Add
63457         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
63458         that differ from gnulib for one reason or another; we'd like this list
63459         to be smaller but for now let's document what we have.
63460
63461 2003-07-08  Paul Eggert  <eggert@twinsun.com>
63462
63463         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
63464         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
63465         and sweeter "eval x=$x".
63466         * config/srclist.txt: Get lib/argp* from glibc.
63467
63468 2003-07-07  Paul Eggert  <eggert@twinsun.com>
63469
63470         * lib/mktime.c: Fix some boundary cases and remove need for floating
63471         point.
63472
63473         Issue a compile-time diagnostic if time_t is floating point, or if
63474         two's complement arithmetic is not in effect, or if arithmetic
63475         right shift does not propagate the sign.  These assumptions were
63476         all in the original code but they weren't checked.
63477
63478         (TIME_T_MIDPOINT, verify): New macros.
63479         (__isleap): Remove; it has integer overflow problems.
63480         (leapyear): New function, without those problems.
63481         (ydhms_tm_diff): Remove; splitting into two parts.
63482         (ydhms_diff): New function, containing the arithmetic part of
63483         the old ydhms_tm_diff function.  Issue a compile-time
63484         diagnostic if we are not using C99 integer division.
63485         Avoid casts when possible.
63486         (guess_time_tm): New function, containing the checking part of
63487         the old ydhms_tm_diff function.  Return the new value, rather than
63488         the difference between it and the old.  Accept a new argument T
63489         so that *T specifies the old value.  Check for overflow in the result.
63490
63491         (__mktime_internal): Use a time_t offset, not a long int offset.
63492         This undoes the 2003-06-04 change, which is no longer needed now
63493         that we have better overflow checking.
63494         (localtime_offset): Likewise.
63495
63496         (__mktime_internal): Avoid harmful overflow on hosts where time_t
63497         and long are 64-bit but int is only 32-bit.
63498         (ydhms_diff): Use long int to store year1 and yday1.
63499         Issue a compile-time diagnostic if long int is not wide enough.
63500
63501         (__mktime_internal): Use long int to store adjusted year and yday.
63502         Use plain C rather than preprocessor commands, if that doesn't
63503         affect efficiency.
63504         Check for overflow (and try to repair) after each probe
63505         rather than checking only at the very end.  This avoids some bugs
63506         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
63507         does not equal GMT offset at maximum time).
63508         Use integer to check for overflow rather than floating point; this
63509         is more portable to non-IEEE hosts, and is a tad faster.
63510         When we detect that we are oscillating between two values,
63511         don't check whether tm_isdst has the requested value, since
63512         we already know the answer.  When tm_isdst has the wrong value,
63513         use a different heuristic to find the right one, based on the
63514         extreme values actually observed in practice in tz2003a,
63515         rather than the (overly optimistic) "previous 3 calendar quarters".
63516
63517         (not_equal_tm, print_tm, check_result): Use "const T" rather than
63518         "T const" to accommodate glibc style.
63519         (check_result): Use less-confusing report format.  "long" -> "long int.
63520         (main): Likewise.
63521         Don't loop if the iteration overflows time_t.
63522         Allow a negative step in the iteration.
63523
63524 2003-07-06  Karl Berry  <karl@gnu.org>
63525
63526         * config/depcomp: update from automake.
63527         * config/config.sub: update from prep.
63528
63529 2003-07-03  Karl Berry  <karl@gnu.org>
63530
63531         * config/config.guess: update from prep.
63532
63533 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63534
63535         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
63536         xreadlink.c now includes it unconditionally.
63537
63538 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63539
63540         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
63541         having it depend on HAVE_SYS_TYPES_H.
63542
63543 2003-07-01  Bruno Haible  <bruno@clisp.org>
63544
63545         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
63546         <sys/types.h> should be sufficient.
63547         Reported by Paul Eggert.
63548
63549 2003-06-26  Karl Berry  <karl@gnu.org>
63550
63551         * config/depcomp: update from automake.
63552
63553 2003-06-26  Bruno Haible  <bruno@clisp.org>
63554
63555         * modules/human: Depend on module stdbool.
63556
63557 2003-06-25  Bruno Haible  <bruno@clisp.org>
63558
63559         * modules/readlink: New file.
63560         * modules/xreadlink: Depend on it.
63561         * MODULES.html.sh (func_all_modules): Add readlink.
63562
63563 2003-06-25  Bruno Haible  <bruno@clisp.org>
63564
63565         * m4/readlink.m4: New file.
63566
63567 2003-06-25  Bruno Haible  <bruno@clisp.org>
63568
63569         * lib/readlink.c: New file.
63570
63571 2003-06-22  Karl Berry  <karl@gnu.org>
63572
63573         * config/srclist.txt: update mkinstalldirs from automake.
63574         * config/mkinstalldirs: update.
63575
63576 2003-06-22  Bruno Haible  <bruno@clisp.org>
63577
63578         Portability to mingw32.
63579         * m4/ssize_t.m4: New file, from GNU gettext.
63580         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
63581         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
63582
63583 2003-06-22  Bruno Haible  <bruno@clisp.org>
63584
63585         * modules/safe-read: Add m4/ssize_t.m4.
63586         * modules/xreadlink: Add m4/ssize_t.m4.
63587
63588 2003-06-20  Bruno Haible  <bruno@clisp.org>
63589
63590         Assume C89, so PARAMS isn't needed.
63591         * lib/unicodeio.h (PARAMS): Remove.
63592         * lib/unicodeio.c: Don't use PARAMS.
63593
63594 2003-06-18  Karl Berry  <karl@gnu.org>
63595
63596         * config/config.{guess,sub}: update from prep.
63597
63598 2003-06-18  Jim Meyering  <jim@meyering.net>
63599
63600         Merge changes from coreutils.
63601         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63602         Remove explicit declarations of xmalloc and realloc.
63603         Include xalloc.h.
63604         (read_utmp): Remove anachronistic cast of xmalloc.
63605
63606 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63607
63608         Assume C89, so PARAMS isn't needed.
63609         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63610         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63611         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63612         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63613         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63614         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63615         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63616         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63617         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63618         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63619         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63620         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63621         no longer needed. Anyway, config.h should always be included before any
63622         other file.
63623
63624 2003-06-11  Simon Josefsson  <jas@extundo.com>
63625
63626         * modules/sysexits: New file.
63627         * MODULES.html.sh (func_all_modules): Add sysexits.
63628
63629 2003-06-11  Simon Josefsson  <jas@extundo.com>
63630
63631         * lib/sysexit_.h: New file.
63632
63633 2003-06-11  Derek Price  <derek@ximbiot.com>
63634
63635         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63636         necessary.
63637
63638 2003-06-11  Bruno Haible  <bruno@clisp.org>
63639
63640         * m4/sysexits.m4: New file.
63641
63642 2003-06-10  Simon Josefsson  <jas@extundo.com>
63643
63644         * lib/argp.h: New file, from glibc.
63645         * lib/argp-ba.c: New file, from glibc.
63646         * lib/argp-eexst.c: New file, from glibc.
63647         * lib/argp-fmtstream.c: New file, from glibc.
63648         * lib/argp-fmtstream.h: New file, from glibc.
63649         * lib/argp-fs-xinl.c: New file, from glibc.
63650         * lib/argp-help.c: New file, from glibc.
63651         * lib/argp-namefrob.h: New file, from glibc.
63652         * lib/argp-parse.c: New file, from glibc.
63653         * lib/argp-pv.c: New file, from glibc.
63654         * lib/argp-pvh.c: New file, from glibc.
63655         * lib/argp-xinl.c: New file, from glibc.
63656
63657 2003-06-10  Simon Josefsson  <jas@extundo.com>
63658
63659         * modules/strchrnul: New file.
63660
63661 2003-06-10  Simon Josefsson  <jas@extundo.com>
63662
63663         * modules/argp: New file.
63664
63665 2003-06-10  Simon Josefsson  <jas@extundo.com>
63666
63667         * m4/strchrnul.m4: New file.
63668
63669 2003-06-10  Simon Josefsson  <jas@extundo.com>
63670
63671         * lib/strchrnul.h: New file.
63672         * lib/strchrnul.c: New file.
63673
63674 2003-06-10  Bruno Haible  <bruno@clisp.org>
63675
63676         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63677
63678 2003-06-07  Karl Berry  <karl@gnu.org>
63679
63680         * config/config.{guess,sub}: update from prep.
63681
63682 2003-06-07  Jim Meyering  <jim@meyering.net>
63683
63684         * modules/strtod: Use $(...) notation, not @...@ for
63685         AC_REPLACE'd variables.
63686         * modules/localcharset: Likewise.
63687
63688 2003-06-07  Jim Meyering  <jim@meyering.net>
63689
63690         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63691         in place of my name in the copyright comment.
63692         Remove definition and uses of __P.
63693
63694         From coreutils.
63695         * lib/stat.c: Don't declare xmalloc explicitly.
63696         Instead, include "xalloc.h".
63697         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63698         xrealloc, and xcalloc return values.
63699         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63700         Improve comment.
63701         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63702
63703 2003-06-07  Bruno Haible  <bruno@clisp.org>
63704
63705         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63706         avoid AC_CONFIG_LINKS.
63707         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63708         fnmatch.h, to avoid AC_CONFIG_LINKS.
63709         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63710
63711 2003-06-07  Bruno Haible  <bruno@clisp.org>
63712
63713         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63714         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63715         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63716         directory.
63717         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63718         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63719         directory.
63720
63721 2003-06-06  Jim Meyering  <jim@meyering.net>
63722
63723         Merge from coreutils.
63724         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63725         Consolidate declarations and initializations of *_base* locals.
63726
63727         Merge from coreutils.
63728         This avoids a core dump on systems without GNU putenv,
63729         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63730         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63731         (unsetenv): New static function, from GNU libc.
63732         (rpl_putenv): Use it.
63733
63734         * lib/modechange.c: Remove trailing blanks.
63735
63736         Merge from coreutils.
63737         * lib/fsusage.c: Remove declaration of statfs.
63738         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63739
63740         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63741
63742 2003-06-06  Jim Meyering  <jim@meyering.net>
63743
63744         * lib/stdbool_.h: Renamed from stdbool.h.in.
63745
63746 2003-06-06  Jim Meyering  <jim@meyering.net>
63747             Bruno Haible  <bruno@clisp.org>
63748
63749         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63750         Adjust Makefile.am snippet not to redirect directly to target.
63751         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63752
63753 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63754
63755         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63756         mismatch, look in future quarters as well as past.  This fixes a
63757         bug when processing fall-backwards gaps immediately after a long
63758         period of daylight-saving time.
63759
63760         * lib/mktime.c: Assume freestanding C89 or better.
63761         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63762         (__P): Remove; not used.
63763         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63764         (mktime, not_equal_tm, print_tm, check_result,
63765         main): Use prototypes.  Use const * where appropriate.
63766         (main): Fix typo in testing code that uncovered by above changes.
63767         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63768
63769 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63770
63771         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63772         locale.h, localeconv.  This merges changes from coreutils.
63773
63774         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63775         It can be removed after the next Autoconf is released.
63776         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63777         needed.
63778
63779 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63780
63781         * lib/mktime.c: Fix Debian bug 177940
63782         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63783         (localtime_offset): Now long int, not time_t, because we want it
63784         to be guaranteed to be signed.  All uses changed.
63785         (__mktime_internal): If overflow would occur when adding offset,
63786         don't add it.
63787
63788         Merge 'human' changes from coreutils.  Rewrite to support
63789         locale-specific notations like thousands separators.
63790         * lib/human.c: Simplify authorship notice.
63791         Include human.h immediately after config.h.
63792         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63793         <limits.h>: Do not include, since human.h does.
63794         (SIZE_MAX, UINTMAX_MAX): New macros.
63795         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63796         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63797         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63798         (power_letter): Renamed from suffixes.
63799         (generate_suffix_backwards): Remove.
63800         (adjust_value): Now takes int style (because of human.h changes)
63801         and long double value (for greater precision on some platforms).
63802         (group_number): New function.
63803         (human_readable): Use it.  Use integer options, not enum.
63804         Put the options before the sizes in the arg list.
63805         Support all the new options.
63806         The old human_readable function has been removed;
63807         use inttostr.h instead.
63808         (human_readable, default_block_size, humblock):
63809         Use uintmax_t, not int, for block sizes.
63810         (human_readable_inexact, block_size_types): Remove.
63811         (block_size_opts): New constant.
63812         (human_options): Renamed from human_block_size, with new signature
63813         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63814         * lib/human.h: Add copyright and authorship notice.
63815         Include <limits.h> and <stdbool.h> unconditionally.
63816         (PARAMS): Remove.  All uses removed.
63817         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63818         (enum human_inexact_style): Remove tag; now a nameless enum.
63819         (human_floor, human_ceiling, human_round_to_even): Now have
63820         values 2, 0, 1 rather than -1, 1, 0.
63821         (human_group_digits, human_suppress_point_zero, human_autoscale,
63822         human_base_1024, human_SI, human_B): New constants.
63823         (human_readable_inexact, human_block_size): Remove.
63824         (human_readable): Size args are now uintmax_t, not int.
63825         (human_options): New decl.
63826
63827         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63828         unnecessary now that we assume C89 or better.  This change
63829         imported from coreutils.
63830
63831         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63832         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
63833         in the 2003-05-30 sync from glibc.
63834
63835         .h files should stand alone, but we shouldn't include <sys/types.h>
63836         if we can get away with just <stddef.h>.
63837
63838         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
63839         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
63840         rather than <sys/types.h>, as we merely need size_t.
63841         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
63842         to get size_t.
63843         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
63844         Include <stdio.h>, to get FILE.
63845         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
63846         memcasecmp.h has included <stddef.h> and all we need is size_t.
63847         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
63848         our interface, instead of including <sys/types.h>
63849
63850 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63851
63852         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
63853         now, as glibc mktime is buggy on non-glibc systems.
63854
63855 2003-06-03  Karl Berry  <karl@gnu.org>
63856
63857         * config/config.sub: update from prep.
63858
63859 2003-06-02  Paul Eggert  <eggert@twinsun.com>
63860
63861         [from coreutils]
63862         Fix some minor time-related bugs with POSIX time arguments.
63863         Some valid time stamps were being rejected (notably -1, and
63864         time stamps before 1900 on 64-bit hosts).  And some invalid
63865         time stamps were being accepted, e.g. September 31.
63866
63867         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
63868         that we can return (time_t) -1 successfully.
63869         * lib/posixtm.c: Likewise.
63870         [HAVE_STDBOOL_H]: Include <stdbool.h>.
63871         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
63872         (t): Remove static var.
63873         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
63874         of static var.  All uses changed.
63875         (year): Do not reject years before 1900; they can occur with
63876         64-bit time_t.
63877         (posix_time_parse): Do not check for out-of-range components;
63878         that is now the caller's responsibility, since our checks were
63879         only approximations.
63880         (posixtime): Use mktime to check for out-of-range components,
63881         since it knows them exactly.
63882         If mktime returns (time_t) -1, check whether an error actually occurred
63883         by invoking localtime on -1.
63884         (main) [TEST_POSIXTIME]: Check for input data errors, and report
63885         posixtime failures better.
63886         Improve the test data (in comments only).
63887
63888 2003-06-02  Karl Berry  <karl@gnu.org>
63889
63890         * config/mkinstalldirs (version): new variable.
63891         (--version): new option.
63892         (usage): improve message.
63893
63894 2003-05-30  Karl Berry  <karl@gnu.org>
63895
63896         * lib/mktime.c: update from libc.
63897
63898 2003-05-30  Bruno Haible  <bruno@clisp.org>
63899
63900         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
63901         * config/config.rpath: Upgrade to gettext-0.12.1.
63902
63903 2003-05-30  Bruno Haible  <bruno@clisp.org>
63904
63905         * m4/gettext.m4: Upgrade to gettext-0.12.1.
63906         * m4/nls.m4: New file, from gettext-0.12.1.
63907         * m4/po.m4: New file, from gettext-0.12.1.
63908         * m4/progtest.m4: Upgrade to gettext-0.12.1.
63909
63910 2003-05-30  Bruno Haible  <bruno@clisp.org>
63911
63912         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
63913         * lib/localcharset.h: Likewise.
63914         * lib/localcharset.c: Likewise.
63915
63916 2003-05-29  Karl Berry  <karl@gnu.org>
63917
63918         * config/config.rpath: update from gettext.
63919
63920 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63921
63922         Assume the headers required for C89 freestanding compilers.
63923         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
63924         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
63925         * m4/human.m4 (gl_HUMAN): Likewise.
63926         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
63927         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
63928         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63929         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
63930         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63931         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
63932
63933 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63934
63935         Assume the headers required for C89 freestanding compilers.
63936         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
63937         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
63938         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
63939         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
63940         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
63941         define, since <limits.h> is guaranteed to do that.
63942         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
63943         * lib/exclude.c: Include <stdbool.h> unconditionally.
63944         * lib/tempname.c: Include <stddef.h> unconditionally.
63945         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
63946         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
63947         <stddef.h> does that.
63948         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
63949         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
63950         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
63951         needed.
63952         * lib/xstrtol.c: Likewise.
63953         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
63954         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
63955
63956         * lib/addext.c (addext): Use assignment rather than cast, to avoid
63957         warnings on some platforms.
63958
63959         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63960         arbitrarily.
63961
63962 2003-05-26  Jim Meyering  <jim@meyering.net>
63963
63964         Merge in a change from coreutils:
63965         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
63966         that is guaranteed to be `no'.  Use `no_such_member' to indicate
63967         that condition, rather than `-1' which is slightly misleading.
63968         Change the name of the cache variable to have the gl_ prefix.
63969         Prompted by a patch from Richard Dawe for DJGPP.
63970
63971 2003-05-24  Karl Berry  <karl@gnu.org>
63972
63973         * config/config.guess: update from prep.
63974
63975 2003-05-22  Karl Berry  <karl@gnu.org>
63976
63977         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
63978
63979 2003-05-20  Karl Berry  <karl@gnu.org>
63980
63981         * config/config.guess: update from prep.
63982
63983 2003-05-18  Karl Berry  <karl@gnu.org>
63984
63985         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
63986         might actually be set by the user.
63987
63988         * config/depcomp, install-sh, mdate-sh: update from automake.
63989
63990 2003-05-17  Bruno Haible  <bruno@clisp.org>
63991
63992         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
63993         invalid expansion for AC_EGREP_CPP.
63994         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
63995         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63996         Suggested by Akim Demaille <akim@epita.fr> in
63997         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
63998
63999 2003-05-12  Jim Meyering  <jim@meyering.net>
64000
64001         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
64002         the space-padded-by-default conversion specifiers, %e, %k, %l.
64003
64004 2003-05-12  Bruno Haible  <bruno@clisp.org>
64005
64006         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
64007         the string is longer than 4 KB.
64008
64009 2003-05-11  Karl Berry  <karl@gnu.org>
64010
64011         * config/config.{guess,sub}: update from prep.
64012
64013 2003-05-09  Bruno Haible  <bruno@clisp.org>
64014
64015         * modules/error: Add m4/strerror_r.m4 to file list.
64016
64017 2003-05-03  Bruno Haible  <bruno@clisp.org>
64018
64019         Upgrade to Unicode-4.0.
64020         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
64021         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
64022         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
64023         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
64024         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
64025         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
64026         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
64027         Change width of U+E0100..U+E01EF from 1 to 0.
64028
64029 2003-04-25  Jim Meyering  <jim@meyering.net>
64030
64031         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
64032         of type size_t, not int.
64033
64034 2003-04-25  Bruno Haible  <bruno@clisp.org>
64035
64036         * lib/copy-file.c: Include <stddef.h>, for size_t.
64037
64038 2003-04-21  Paul Eggert  <eggert@twinsun.com>
64039
64040         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
64041         code which expansion is under static control.  Patch imported from
64042         Akim Demaille's patch to Bison; see
64043         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
64044
64045 2003-04-14  Bruno Haible  <bruno@clisp.org>
64046
64047         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
64048
64049 2003-04-11  Jim Meyering  <jim@meyering.net>
64050
64051         Merge changes from Coreutils.
64052
64053         2003-03-22  Jim Meyering  <jim@meyering.net>
64054
64055         * lib/strftime.c (widen): Cast alloca return value to proper type.
64056
64057         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
64058
64059         From GNU libc.
64060         * lib/strftime.c (my_strftime): Handle very large width
64061         specifications for numeric values correctly.  Improve checks for
64062         overflow.
64063
64064         2003-01-19  Jim Meyering  <jim@meyering.net>
64065
64066         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
64067         definitions.
64068         (nl_get_alt_digit) [! defined my_strftime]: Define.
64069         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
64070         _nl_get_alt_digit and _nl_get_walt_digit.
64071
64072         * lib/strftime.c (my_strftime): Merge in locale-related changes from
64073         libc. These changes have no effect outside of _LIBC.
64074
64075 2003-04-10  Bruno Haible  <bruno@clisp.org>
64076
64077         * modules/findprog: New file.
64078         * MODULES.html.sh (func_all_modules): Add it.
64079
64080 2003-04-10  Bruno Haible  <bruno@clisp.org>
64081
64082         * m4/findprog.m4: New file.
64083         * m4/eaccess.m4: New file.
64084
64085 2003-04-10  Bruno Haible  <bruno@clisp.org>
64086
64087         * lib/findprog.h: New file, from GNU gettext.
64088         * lib/findprog.c: New file, from GNU gettext.
64089
64090 2003-04-05  Jim Meyering  <jim@meyering.net>
64091
64092         Merge changes from Coreutils.
64093
64094         * lib/exclude.h (PARAMS): Remove definition and uses.
64095         * lib/exclude.c: Remove uses of `PARAMS'.
64096
64097         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
64098         Add test-cases for DOS filenames. Declare program_name.
64099         (main): Set up program_name.  Patch by Rich Dawe.
64100
64101         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64102         error from mntctl.
64103         Use mntctl's return value to drive the entry-processing loop, since
64104         we can't rely on the value of the vmt_length member in the last
64105         entry.  On some systems doing so could result in exhausting
64106         virtual memory.  Based in part on a patch from Mike Jetzer.
64107
64108 2003-04-04  Bruno Haible  <bruno@clisp.org>
64109
64110         * modules/linebreak: New file.
64111         * MODULES.html.sh (func_all_modules): Add it.
64112
64113 2003-04-04  Bruno Haible  <bruno@clisp.org>
64114
64115         * m4/linebreak.m4: New file.
64116
64117 2003-04-04  Bruno Haible  <bruno@clisp.org>
64118
64119         * lib/linebreak.h: New file, from GNU gettext.
64120         * lib/linebreak.c: New file, from GNU gettext with slight
64121         modifications.
64122         * lib/lbrkprop.h: New file, from GNU gettext.
64123
64124 2003-04-03  Bruno Haible  <bruno@clisp.org>
64125
64126         * modules/utf8-ucs4: New file.
64127         * modules/utf16-ucs4: New file.
64128         * modules/ucs4-utf8: New file.
64129         * modules/ucs4-utf16: New file.
64130         * MODULES.html.sh (func_all_modules): Add them.
64131
64132 2003-04-03  Bruno Haible  <bruno@clisp.org>
64133
64134         * m4/utf-ucs4.m4: New file.
64135         * m4/ucs4-utf.m4: New file.
64136
64137 2003-04-03  Bruno Haible  <bruno@clisp.org>
64138
64139         * lib/utf8-ucs4.h: New file, from GNU gettext.
64140         * lib/utf16-ucs4.h: New file, from GNU gettext.
64141         * lib/ucs4-utf8.h: New file, from GNU gettext.
64142         * lib/ucs4-utf16.h: New file, from GNU gettext.
64143
64144 2003-04-02  Bruno Haible  <bruno@clisp.org>
64145
64146         * modules/binary-io: New file.
64147         * MODULES.html.sh (func_all_modules): Add it.
64148
64149 2003-04-02  Bruno Haible  <bruno@clisp.org>
64150
64151         * lib/binary-io.h: New file, from GNU gettext.
64152
64153 2003-04-01  Bruno Haible  <bruno@clisp.org>
64154
64155         * modules/pathname: New file.
64156         * MODULES.html.sh (func_all_modules): Add it.
64157
64158 2003-04-01  Bruno Haible  <bruno@clisp.org>
64159
64160         * lib/pathname.h: New file, from GNU gettext.
64161         * lib/concatpath.c: New file, from GNU gettext.
64162
64163 2003-03-30  Bruno Haible  <bruno@clisp.org>
64164
64165         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
64166
64167 2003-03-30  Bruno Haible  <bruno@clisp.org>
64168
64169         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
64170         function chown() doesn't exist.
64171
64172 2003-03-28  Bruno Haible  <bruno@clisp.org>
64173
64174         * modules/copy-file: New file.
64175         * MODULES.html.sh (func_all_modules): Add it.
64176
64177 2003-03-28  Bruno Haible  <bruno@clisp.org>
64178
64179         * m4/copy-file.m4: New file.
64180
64181 2003-03-28  Bruno Haible  <bruno@clisp.org>
64182
64183         * lib/copy-file.h: New file, from GNU gettext.
64184         * lib/copy-file.c: New file, from GNU gettext.
64185
64186 2003-03-18  Jim Meyering  <jim@meyering.net>
64187
64188         * lib/quote.c (quote_n): Fix typo in comment.
64189
64190 2003-03-18  Bruno Haible  <bruno@clisp.org>
64191
64192         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
64193         checking.
64194         * m4/onceonly_2_57.m4: Likewise.
64195
64196 2003-03-17  Bruno Haible  <bruno@clisp.org>
64197
64198         * m4/onceonly.m4: Require autoconf 2.54 or newer.
64199         (m4_quote): Remove macro.
64200         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
64201
64202 2003-03-14  Jim Meyering  <jim@meyering.net>
64203
64204         Merge changes from Coreutils.
64205         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
64206         to be const, in order to avoid warnings.
64207         (obstack_room): Likewise.
64208         (obstack_empty_p): Likewise.
64209
64210 2003-03-14  Bruno Haible  <bruno@clisp.org>
64211
64212         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
64213         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
64214
64215 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64216
64217         Merge changes from Bison.
64218         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
64219         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
64220         when compiling Bison 1.875's `bitset bset = obstack_alloc
64221         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
64222         * lib/hash.c: Include <stdbool.h> unconditionally.
64223
64224 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64225
64226         * m4/onceonly.m4 (m4_quote): New macro.
64227         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
64228         Quote AC_FOREACH variable-expansions properly.
64229
64230 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64231
64232         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
64233
64234 2003-03-09  Paul Eggert  <eggert@twinsun.com>
64235
64236         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
64237         Reported by Bruce Becker; see:
64238         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
64239
64240 2003-03-03  Paul Eggert  <eggert@twinsun.com>
64241             Bruno Haible  <bruno@clisp.org>
64242
64243         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
64244         Reported by John Hughes, see
64245         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
64246
64247 2003-02-20  Bruno Haible  <bruno@clisp.org>
64248
64249         * MODULES.html.sh (func_all_modules): Add poll.
64250
64251 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64252
64253         * modules/poll: New file.
64254
64255 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64256
64257         * lib/poll_.h: New file.
64258         * lib/poll.c: New file.
64259
64260 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64261
64262         * m4/poll.m4: New file.
64263
64264 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64265
64266         * modules/mathl: New file.
64267
64268 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64269
64270         * lib/mathl.h: New file.
64271         * lib/acosl.c: New file.
64272         * lib/asinl.c: New file.
64273         * lib/atanl.c: New file.
64274         * lib/ceill.c: New file.
64275         * lib/cosl.c: New file.
64276         * lib/expl.c: New file.
64277         * lib/floorl.c: New file.
64278         * lib/frexpl.c: New file.
64279         * lib/ldexpl.c: New file.
64280         * lib/logl.c: New file.
64281         * lib/sincosl.c: New file.
64282         * lib/sinl.c: New file.
64283         * lib/sqrtl.c: New file.
64284         * lib/tanl.c: New file.
64285         * lib/trigl.c: New file.
64286         * lib/trigl.h: New file.
64287
64288 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64289
64290         * m4/mathl.m4: New file.
64291
64292 2003-02-18  Bruno Haible  <bruno@clisp.org>
64293
64294         * MODULES.html.sh (func_all_modules): Add mathl.
64295
64296 2003-02-17  Bruno Haible  <bruno@clisp.org>
64297
64298         * modules/mkdtemp: New module.
64299         * MODULES.html.sh (func_all_modules): Add it.
64300
64301 2003-02-17  Bruno Haible  <bruno@clisp.org>
64302
64303         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
64304
64305 2003-02-17  Bruno Haible  <bruno@clisp.org>
64306
64307         * lib/mkdtemp.h: New file, from GNU gettext.
64308         * lib/mkdtemp.c: New file, from GNU gettext.
64309
64310 2003-02-02  Jim Meyering  <jim@meyering.net>
64311
64312         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
64313         e.g. glibc-2.2.93.
64314
64315 2003-01-31  Bruno Haible  <bruno@clisp.org>
64316
64317         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
64318         'rpl_rename'.
64319         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
64320         'rpl_strnlen'.
64321         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
64322         'rpl_strtod'.
64323         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
64324         'rpl_utime'.
64325
64326 2003-01-31  Bruno Haible  <bruno@clisp.org>
64327
64328         * lib/rename.c: #undef rename before defining rpl_rename.
64329         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
64330
64331 2003-01-30  Bruno Haible  <bruno@clisp.org>
64332
64333         * modules/vasnprintf, modules/vasprintf: New modules.
64334         * MODULES.html.sh (func_all_modules): Add them.
64335
64336 2003-01-30  Bruno Haible  <bruno@clisp.org>
64337
64338         * m4/signed.m4: New file, from GNU gettext.
64339         * m4/longdouble.m4: New file, from GNU gettext.
64340         * m4/wchar_t.m4: New file, from GNU gettext.
64341         * m4/wint_t.m4: New file, from GNU gettext.
64342         * m4/vasnprintf.m4: New file.
64343         * m4/vasprintf.m4: New file.
64344
64345 2003-01-30  Bruno Haible  <bruno@clisp.org>
64346
64347         * lib/printf-args.h: New file, from GNU gettext.
64348         * lib/printf-args.c: New file, from GNU gettext.
64349         * lib/printf-parse.h: New file, from GNU gettext.
64350         * lib/printf-parse.c: New file, from GNU gettext.
64351         * lib/vasnprintf.h: New file, from GNU gettext.
64352         * lib/vasnprintf.c: New file, from GNU gettext.
64353         * lib/asnprintf.c: New file, from GNU gettext.
64354         * lib/vasprintf.h: New file, from GNU gettext with modifications.
64355         * lib/vasprintf.c: New file, from GNU gettext.
64356         * lib/asprintf.c: New file, from GNU gettext.
64357
64358 2003-01-29  Bruno Haible  <bruno@clisp.org>
64359
64360         * modules/stpncpy: New module.
64361         * MODULES.html.sh (func_all_modules): Add it.
64362
64363 2003-01-29  Bruno Haible  <bruno@clisp.org>
64364
64365         * m4/stpncpy.m4: New file.
64366
64367 2003-01-29  Bruno Haible  <bruno@clisp.org>
64368
64369         * lib/stpncpy.h: New file, from GNU gettext with modifications.
64370         * lib/stpncpy.c: New file, from GNU gettext with modifications.
64371
64372 2003-01-28  Bruno Haible  <bruno@clisp.org>
64373
64374         * modules/c-ctype: New module.
64375         * MODULES.html.sh (func_all_modules): Add it.
64376
64377 2003-01-28  Bruno Haible  <bruno@clisp.org>
64378
64379         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
64380         Paul Eggert.
64381         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
64382         Paul Eggert.
64383
64384 2003-01-27  Bruno Haible  <bruno@clisp.org>
64385
64386         * modules/xsetenv: New module.
64387         * MODULES.html.sh (func_all_modules): Add it.
64388
64389 2003-01-27  Bruno Haible  <bruno@clisp.org>
64390
64391         * lib/xsetenv.h: New file, from GNU gettext.
64392         * lib/xsetenv.c: New file, from GNU gettext.
64393
64394 2003-01-23  Jim Meyering  <jim@meyering.net>
64395
64396         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
64397         from working on systems without dirfd (at least Irix and OSF1/Tru64).
64398
64399 2003-01-23  Bruno Haible  <bruno@clisp.org>
64400
64401         * modules/minmax: New module.
64402         * MODULES.html.sh (func_all_modules): Add it.
64403
64404 2003-01-23  Bruno Haible  <bruno@clisp.org>
64405
64406         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
64407         Eggert.
64408
64409 2003-01-22  Bruno Haible  <bruno@clisp.org>
64410
64411         * modules/exit: New module.
64412         * MODULES.html.sh (func_all_modules): Add it.
64413
64414 2003-01-22  Bruno Haible  <bruno@clisp.org>
64415
64416         * lib/exit.h: New file, from GNU gettext.
64417
64418 2003-01-19  Bruno Haible  <bruno@clisp.org>
64419
64420         * gnulib-tool: Recognize option --extract-maintainer.
64421         (func_get_maintainer): New function.
64422         * modules/*: Add Maintainer entry.
64423
64424 2003-01-16  Jim Meyering  <jim@meyering.net>
64425
64426         * m4/regex.m4: The `regex' struct is both input and output.
64427         Initialize it before each use.  Patch by Tim Waugh.
64428
64429 2003-01-16  Bruno Haible  <bruno@clisp.org>
64430
64431         * MODULES.html.sh: Add a table of contents. Add the module name as
64432         leftmost column. Add hyperlinks.
64433
64434 2003-01-15  Bruno Haible  <bruno@clisp.org>
64435
64436         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
64437
64438 2003-01-15  Bruno Haible  <bruno@clisp.org>
64439
64440         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
64441         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
64442         suffix.
64443
64444 2003-01-15  Bruno Haible  <bruno@clisp.org>
64445
64446         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
64447
64448 2003-01-15  Bruno Haible  <bruno@clisp.org>
64449
64450         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
64451         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
64452
64453 2003-01-14  Jim Meyering  <jim@meyering.net>
64454
64455         * lib/same.c (same_name): Tweak a comment.
64456
64457 2003-01-14  Bruno Haible  <bruno@clisp.org>
64458
64459         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
64460         when a string comparison is sufficient.
64461
64462 2003-01-14  Bruno Haible  <bruno@clisp.org>
64463
64464         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
64465         'unsigned int'.
64466
64467 2003-01-14  Bruno Haible  <bruno@clisp.org>
64468
64469         * lib/hash-pjw.c: Add comment about low quality of this function.
64470
64471 2003-01-13  Bruno Haible  <bruno@clisp.org>
64472
64473         * modules/stpcpy: Distribute lib/stpcpy.h.
64474         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
64475
64476 2003-01-13  Bruno Haible  <bruno@clisp.org>
64477
64478         * modules/*: Add a description.
64479         * modules/strpbrk: Fix Makefile.am snippet.
64480         * modules/strtoimax: Fix dependencies.
64481         * modules/strtoumax: Likewise.
64482
64483 2003-01-13  Bruno Haible  <bruno@clisp.org>
64484
64485         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
64486         * modules/alloca (Makefile.am): All object files depend on alloca.h.
64487         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
64488
64489 2003-01-13  Bruno Haible  <bruno@clisp.org>
64490
64491         * gnulib-tool (func_create_testdir): Store config/* files in the main
64492         directory.
64493         * config.rpath: Move to ...
64494         * config/config.rpath: ... here.
64495         * modules/gettext: Contains config/config.rpath, not config.rpath.
64496         * modules/iconv: Likewise.
64497
64498 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64499
64500         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64501         to avoid collisions with libcurses and libreadline.
64502
64503         * m4/getstr.m4: Remove.
64504         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
64505
64506 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64507
64508         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64509         to avoid collisions with libcurses and libreadline.
64510
64511         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
64512         * lib/getstr.h, getstr.c: Remove.
64513         * lib/getline.c: Include "getline.h", to check interface.
64514         Move body of old getstr.c here: this defines MIN_CHUNK and
64515         declares getdelim2, which is renamed from getstr.
64516         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
64517
64518         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
64519         All uses changed.
64520         * lib/linebuffer.h: Likewise.
64521         (readline): Remove backward-compatibility macro.
64522
64523 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64524
64525         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64526         to avoid collisions with libcurses and libreadline.
64527         * getstr: Remove.
64528         * MODULES.html.sh: Remove getstr.
64529         * modules/getline: Depend on unlocked-io, not getstr.
64530
64531 2003-01-12  Jim Meyering  <jim@meyering.net>
64532
64533         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
64534
64535 2003-01-10  Bruno Haible  <bruno@clisp.org>
64536
64537         * modules/alloca: Change Makefile.am requirements. Simplify Include
64538         requirements. Add lib/alloca_.h to file list.
64539
64540 2003-01-10  Bruno Haible  <bruno@clisp.org>
64541
64542         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
64543
64544 2003-01-10  Bruno Haible  <bruno@clisp.org>
64545
64546         * lib/alloca_.h: New file.
64547         * lib/getdate.y: Unconditionally include alloca.h.
64548         * lib/makepath.c: Likewise.
64549         * lib/setenv.c: Likewise.
64550         * lib/userspec.c: Likewise.
64551
64552 2003-01-09  Karl Berry  <karl@gnu.org>
64553
64554         * MODULES.html.sh: include `dirname $0` in PATH, to find
64555         gnulib-tool.
64556
64557 2003-01-09  Bruno Haible  <bruno@clisp.org>
64558
64559         * modules/stdbool: Change configure.ac, Makefile.am requirements.
64560         Simplify Include requirements. Add lib/stdbool.h.in to file list.
64561
64562 2003-01-09  Bruno Haible  <bruno@clisp.org>
64563
64564         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
64565
64566 2003-01-09  Bruno Haible  <bruno@clisp.org>
64567
64568         * lib/stdbool.h.in: New file.
64569
64570 2003-01-09  Bruno Haible  <bruno@clisp.org>
64571
64572         * gnulib-tool (func_all_modules): Ignore files ending in ~.
64573         * MODULES.html.sh: Likewise.
64574
64575 2003-01-08  Jim Meyering  <jim@meyering.net>
64576
64577         * lib/full-write.c: Undefine and define-away `const' after inclusion
64578         of errno.h, not before.  Suggestion from Bruno Haible.
64579
64580 2003-01-08  Bruno Haible  <bruno@clisp.org>
64581
64582         * modules/full-read: Depend on full-write.
64583
64584 2003-01-08  Bruno Haible  <bruno@clisp.org>
64585
64586         * lib/safe-read.c: Include specification header first, to ensure its
64587         selfcontainedness.
64588         * lib/full-write.c: Likewise.
64589
64590 2003-01-07  Jim Meyering  <jim@meyering.net>
64591
64592         * lib/full-write.c: Rework so that it may serve to define full_read,
64593         too.
64594         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64595
64596 2003-01-07  Bruno Haible  <bruno@clisp.org>
64597
64598         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64599         <inttypes.h>.
64600         * lib/xstrtol.h: Likewise.
64601         * lib/xstrtoimax.c: Likewise.
64602         * lib/xstrtoumax.c: Likewise.
64603         * lib/human.h: Likewise.
64604
64605         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64606         on systems that have <inttypes.h> but not <stdint.h>.
64607
64608 2003-01-07  Bruno Haible  <bruno@clisp.org>
64609
64610         * MODULES.html.sh: Add copyright notice.
64611         (missed_files): Omit CVS directory entries.
64612         (func_module): Make it work with sed-3.02.
64613         * MODULES.txt: Remove file.
64614
64615 2003-01-06  Jim Meyering  <jim@meyering.net>
64616
64617         * lib/version-etc.c: Update year in translatable copyright string.
64618
64619 2003-01-03  Karl Berry  <karl@gnu.org>
64620
64621         * config/config.{guess,sub}: update from prep.
64622
64623 2003-01-02  Karl Berry  <karl@gnu.org>
64624
64625         * doc/COPYING.DOC: belatedly updated to 1.2.
64626
64627 2003-01-01  Karl Berry  <karl@gnu.org>
64628
64629         * gnulib-tool (func_verify_module): report module name $module in
64630         error message, not $1.
64631         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64632         be created, only if it doesn't exist.
64633         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64634
64635 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64636
64637         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64638
64639 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64640
64641         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64642         memcmp if strcoll doesn't work.
64643
64644 2002-12-31  Bruno Haible  <bruno@clisp.org>
64645
64646         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64647         nonempty.
64648
64649 2002-12-31  Bruno Haible  <bruno@clisp.org>
64650
64651         * lib/memcoll.c (STRCOLL): New macro.
64652         (memcoll): Use it.
64653
64654 2002-12-31  Bruno Haible  <bruno@clisp.org>
64655
64656         * lib/localcharset.h: New file.
64657         * lib/localcharset.c: Include it.
64658         * lib/unicodeio.c: Likewise.
64659
64660 2002-12-31  Bruno Haible  <bruno@clisp.org>
64661
64662         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64663         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64664
64665 2002-12-31  Bruno Haible  <bruno@clisp.org>
64666
64667         * lib/getline.h: Include <stddef.h>, for size_t.
64668
64669         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64670         * lib/unicodeio.c: Don't include <stddef.h>.
64671
64672 2002-12-31  Bruno Haible  <bruno@clisp.org>
64673
64674         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64675         HAVE_TM_ZONE.
64676
64677 2002-12-24  Karl Berry  <karl@gnu.org>
64678
64679         * config/config.guess: update from prep.
64680
64681 2002-12-24  Bruno Haible  <bruno@clisp.org>
64682
64683         General infrasructure.
64684         * m4/README: Rewritten.
64685         * m4/onceonly.m4: New file.
64686         * m4/onceonly_2_57.m4: New file.
64687
64688         Module atexit.
64689         * m4/atexit.m4: New file.
64690
64691         Module strtod.
64692         * m4/strtod.m4: New file.
64693
64694         Module strtol.
64695         * m4/strtol.m4: New file.
64696
64697         Module strtoul.
64698         * m4/strtoul.m4: New file.
64699
64700         Module memchr.
64701         * m4/memchr.m4: New file.
64702
64703         Module memcmp.
64704         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64705         (jm_FUNC_MEMCMP): Invoke it.
64706
64707         Module memcpy.
64708         * m4/memcpy.m4: New file.
64709
64710         Module memmove.
64711         * m4/memmove.m4: New file.
64712
64713         Module memset.
64714         * m4/memset.m4: New file.
64715
64716         Module strcspn.
64717         * m4/strcspn.m4: New file.
64718
64719         Module strpbrk.
64720         * m4/strpbrk.m4: New file.
64721
64722         Module strstr.
64723         * m4/strstr.m4: New file.
64724
64725         Module strerror.
64726         * m4/strerror.m4: New file.
64727
64728         Module mktime.
64729         * m4/mktime.m4: Renamed from jm-mktime.m4.
64730         (gl_PREREQ_MKTIME): New macro.
64731         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64732
64733         Module malloc.
64734         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64735         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64736         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64737
64738         Module realloc.
64739         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64740         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64741         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64742
64743         Module strftime.
64744         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64745         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64746         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64747         gl_TM_GMTOFF.
64748         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64749
64750         Module xalloc.
64751         * m4/xalloc.m4: New file.
64752
64753         Module alloca.
64754         * m4/alloca.m4: New file.
64755
64756         Module putenv.
64757         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64758         (jm_FUNC_PUTENV): Invoke it.
64759
64760         Module setenv.
64761         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64762         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64763         when invoked twice.
64764         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64765         gt_FUNC_SETENV.
64766
64767         Module memrchr.
64768         * m4/memrchr.m4: New file.
64769
64770         Module stpcpy.
64771         * m4/stpcpy.m4: New file.
64772
64773         Module strcase.
64774         * m4/strcase.m4: New file.
64775
64776         Module strdup.
64777         * m4/strdup.m4: New file.
64778
64779         Module strnlen.
64780         * m4/strnlen.m4: New file.
64781
64782         Module strndup.
64783         * m4/strndup.m4: New file.
64784
64785         Module xstrtod.
64786         * m4/xstrtod.m4: New file.
64787
64788         Module xstrtol.
64789         * m4/xstrtol.m4: New file.
64790
64791         Module getdate.
64792         * m4/getdate.m4: New file.
64793
64794         Module unlocked-io.
64795         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64796         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64797         * m4/jm-glibc-io.m4n: Remove file.
64798
64799         Module long-options.
64800         * m4/long-options.m4: New file.
64801
64802         Module md5.
64803         * m4/md5.m4: New file.
64804
64805         Module sha.
64806         * m4/sha.m4: New file.
64807
64808         Module getstr.
64809         * m4/getstr.m4: New file.
64810
64811         Module getline.
64812         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64813         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64814         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64815         simply getline. Infoke gl_PREREQ_GETLINE.
64816
64817         Module obstack.
64818         * m4/obstack.m4: New file.
64819
64820         Module hash.
64821         * m4/hash.m4: New file.
64822
64823         Module readtokens.
64824         * m4/readtokens.m4: New file.
64825
64826         Module strverscmp.
64827         * m4/strverscmp.m4: New file.
64828
64829         Module stdbool.
64830         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
64831         OSF/1.
64832
64833         Module strtoll.
64834         * m4/strtoll.m4: New file.
64835
64836         Module strtoull.
64837         * m4/strtoull.m4: New file.
64838
64839         Module strtoimax.
64840         * m4/strtoimax.m4: New file.
64841
64842         Module strtoumax.
64843         * m4/strtoumax.m4: New file.
64844
64845         Module xstrtoimax.
64846         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
64847         jm_AC_PREREQ_XSTRTOIMAX.
64848         Moved the strtol prerequisites to strtol.m4.
64849         Moved the strtoll prerequisites to strtoll.m4.
64850         Moved the strtoimax prerequisites to strtoimax.m4.
64851
64852         Module xstrtoumax.
64853         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
64854         jm_AC_PREREQ_XSTRTOUMAX.
64855         Moved the strtoul prerequisites to strtoul.m4.
64856         Moved the strtoull prerequisites to strtoull.m4.
64857         Moved the strtoumax prerequisites to strtoumax.m4.
64858
64859         Module chown.
64860         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
64861         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
64862
64863         Module dup2.
64864         * m4/dup2.m4: New file.
64865
64866         Module ftruncate.
64867         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
64868         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
64869
64870         Module getgroups.
64871         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
64872         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
64873
64874         Module gettimeofday.
64875         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
64876         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
64877         gl_PREREQ_GETTIMEOFDAY.
64878
64879         Module mkdir.
64880         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
64881         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
64882
64883         Module mkstemp.
64884         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
64885         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
64886         jm_AC_TYPE_UINTMAX_T.
64887         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
64888
64889         Module stat.
64890         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
64891         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
64892
64893         Module lstat.
64894         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
64895         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
64896
64897         Module timespec.
64898         * m4/timespec.m4 (gl_TIMESPEC): New macro.
64899         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
64900         * m4/st_mtim.m4: Indentation.
64901
64902         Module nanosleep.
64903         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
64904         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
64905         gl_PREREQ_NANOSLEEP.
64906
64907         Module regex.
64908         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
64909         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
64910         (gl_REGEX): New macro.
64911
64912         Module rename.
64913         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
64914         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
64915
64916         Module rmdir.
64917         * m4/rmdir.m4: New file.
64918
64919         Module utime.
64920         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
64921         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
64922         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
64923
64924         Module dirname.
64925         * m4/dirname.m4: New file.
64926
64927         Module getopt.
64928         * m4/getopt.m4: New file.
64929
64930         Module unistd-safer.
64931         * m4/unistd-safer.m4: New file.
64932
64933         Module fnmatch.
64934         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
64935         declaration.
64936         (gl_PREREQ_FNMATCH_EXTRA): New macro.
64937         (gl_FUNC_FNMATCH_POSIX): New macro.
64938         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
64939         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
64940         simply fnmatch.
64941
64942         Module exclude.
64943         * m4/exclude.m4: New file.
64944
64945         Module human.
64946         * m4/human.m4: New file.
64947
64948         Module acl.
64949         * m4/acl.m4: Nop.
64950
64951         Module backupfile.
64952         * m4/backupfile.m4: New file.
64953         * m4/d-ino.m4: Indentation.
64954
64955         Module fsusage.
64956         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
64957         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
64958         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
64959
64960         Module dirfd.
64961         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
64962         requirements.
64963
64964         Module euidaccess.
64965         * m4/euidaccess.m4: New file.
64966
64967         Module file-type.
64968         * m4/file-type.m4: New file.
64969
64970         Module fileblocks.
64971         * m4/fileblocks.m4: New file.
64972
64973         Module filemode.
64974         * m4/filemode.m4: New file.
64975
64976         Module isdir.
64977         * m4/isdir.m4: New file.
64978
64979         Module lchown.
64980         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
64981         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
64982
64983         Module makepath.
64984         * m4/makepath.m4: New file.
64985
64986         Module modechange.
64987         * m4/modechange.m4: New file.
64988
64989         Module mountlist.
64990         * m4/mountlist.m4: New file.
64991         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
64992         Indentation.
64993
64994         Module path-concat.
64995         * m4/path-concat.m4: New file.
64996
64997         Module pathmax.
64998         * m4/pathmax.m4: New file.
64999
65000         Module same.
65001         * m4/same.m4: New file.
65002
65003         Module save-cwd.
65004         * m4/save-cwd.m4: New file.
65005
65006         Module savedir.
65007         * m4/savedir.m4: New file.
65008
65009         Module xgetcwd.
65010         * m4/xgetcwd.m4: New file.
65011         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
65012
65013         Module xreadlink.
65014         * m4/xreadlink.m4: New file.
65015
65016         Module safe-read.
65017         * m4/safe-read.m4: New file.
65018
65019         Module safe-write.
65020         * m4/safe-write.m4: New file.
65021
65022         Module closeout.
65023         * m4/closeout.m4: New file.
65024
65025         Module stdio-safer.
65026         * m4/stdio-safer.m4: New file.
65027
65028         Module getpass.
65029         * m4/getpass.m4: New file.
65030
65031         Module getugroups.
65032         * m4/getugroups.m4: New file.
65033
65034         Module group-member.
65035         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
65036         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
65037
65038         Module idcache.
65039         * m4/idcache.m4: New file.
65040
65041         Module userspec.
65042         * m4/userspec.m4: New file.
65043
65044         Module gettime.
65045         * m4/clock_time.m4: New file.
65046         * m4/gettime.m4: New file.
65047
65048         Module settime.
65049         * m4/settime.m4: New file.
65050
65051         Module posixtm.
65052         * m4/posixtm.m4: New file.
65053
65054         Module gethostname.
65055         * m4/gethostname.m4: New file.
65056
65057         Module canon-host.
65058         * m4/canon-host.m4: New file.
65059
65060         Module gettext.
65061         * m4/codeset.m4: New file, from gettext-0.11.5.
65062         * m4/gettext.m4: New file, from gettext-0.11.5.
65063         * m4/glibc21.m4: New file, from gettext-0.11.5.
65064         * m4/iconv.m4: New file, from gettext-0.11.5.
65065         * m4/intdiv0.m4: New file, from gettext-0.11.5.
65066         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
65067         * m4/inttypes.m4: New file, from gettext-0.11.5.
65068         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
65069         * m4/isc-posix.m4: New file, from gettext-0.11.5.
65070         * m4/lcmessage.m4: New file, from gettext-0.11.5.
65071         * m4/lib-ld.m4: New file, from gettext-0.11.5.
65072         * m4/lib-link.m4: New file, from gettext-0.11.5.
65073         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
65074         * m4/progtest.m4: New file, from gettext-0.11.5.
65075         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
65076         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
65077         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
65078
65079         Module localcharset.
65080         * m4/localcharset.m4: New file.
65081
65082         Module hard-locale.
65083         * m4/hard-locale.m4: New file.
65084
65085         Module mbswidth.
65086         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
65087         onceonly macros.
65088         * m4/mbrtowc.m4: Add comment.
65089
65090         Module memcasecmp.
65091         * m4/memcasecmp.m4: New file.
65092
65093         Module memcoll.
65094         * m4/memcoll.m4: New file.
65095
65096         Module unicodeio.
65097         * m4/unicodeio.m4: New file.
65098
65099         Module rpmatch.
65100         * m4/rpmatch.m4: New file.
65101
65102         Module yesno.
65103         * m4/yesno.m4: New file.
65104
65105         Module exitfail.
65106         * m4/exitfail.m4: New file.
65107
65108         Module c-stack.
65109         * m4/c-stack.m4 (gl_C_STACK): New macro.
65110         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
65111
65112         Module error.
65113         * m4/error.m4 (gl_ERROR): New macro.
65114         (jm_PREREQ_ERROR): Use onceonly macros.
65115
65116         Module fatal.
65117         * m4/fatal.m4: New file.
65118
65119         Module getloadavg.
65120         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
65121         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
65122
65123         Module getpagesize.
65124         * m4/getpagesize.m4: New file.
65125
65126         Module getusershell.
65127         * m4/getusershell.m4: New file.
65128
65129         Module physmem.
65130         * m4/physmem.m4: New file.
65131
65132         Module posixver.
65133         * m4/posixver.m4: New file.
65134
65135         Module quotearg.
65136         * m4/quotearg.m4: New file.
65137
65138         Module quote.
65139         * m4/quote.m4: New file.
65140
65141         Module readutmp.
65142         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
65143
65144         Module sig2str.
65145         * m4/sig2str.m4: New file.
65146
65147         Other.
65148         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
65149         ulonglong.m4.
65150         * m4/intmax_t.m4: New file.
65151         * m4/d-type.m4: Indentation.
65152         * m4/jm-macros.m4: Update.
65153         * m4/prereq.m4 (jm_PREREQ): Update.
65154         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
65155         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
65156         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
65157         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
65158         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
65159         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
65160         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
65161         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
65162         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
65163         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
65164         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
65165         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
65166         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
65167         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
65168         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
65169         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
65170         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
65171         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
65172         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
65173
65174 2002-12-24  Bruno Haible  <bruno@clisp.org>
65175
65176         * MODULES.txt: Update according to m4/ changes.
65177
65178         Module gettext.
65179         * config.rpath: New file, from gettext-0.11.5.
65180
65181         * modules/*: New module descriptions.
65182         * gnulib-tool: New file.
65183         * MODULES.html.sh: New file.
65184
65185 2002-12-21  Karl Berry  <karl@gnu.org>
65186
65187         * doc/fdl.texi: update to version 1.2.
65188
65189 2002-12-19  Karl Berry  <karl@gnu.org>
65190
65191         * config/config.guess: update from prep.
65192
65193 2002-12-18  Bruno Haible  <bruno@clisp.org>
65194
65195         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
65196         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
65197
65198 2002-12-17  Bruno Haible  <bruno@clisp.org>
65199
65200         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
65201         stdlib.h, string.h.
65202
65203 2002-12-17  Bruno Haible  <bruno@clisp.org>
65204
65205         * lib/canon-host.c (strdup): Remove unused declaration.
65206
65207         * lib/fsusage.c: Include full_read.h.
65208         (get_fs_usage): Use full_read instead of safe_read.
65209
65210         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
65211
65212 2002-12-12  Karl Berry  <karl@gnu.org>
65213
65214         * config/config.guess: update from prep.
65215
65216 2002-12-11  Bruno Haible  <bruno@clisp.org>
65217
65218         * m4/setenv.m4: New file, from gettext-0.11.5.
65219
65220 2002-12-11  Bruno Haible  <bruno@clisp.org>
65221
65222         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
65223         not unsetenv().
65224         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
65225         modifications:
65226
65227         2002-12-11  Bruno Haible  <bruno@clisp.org>
65228
65229                 * setenv.c (alloca): Fall back to malloc.
65230                 (freea): New macro.
65231                 (setenv): Use freea() to free memory allocated with alloca().
65232
65233         2002-11-13  Bruno Haible  <bruno@clisp.org>
65234
65235                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
65236                 function declarations.
65237                 * unsetenv.c (unsetenv): Likewise.
65238
65239         2002-03-04  Bruno Haible  <bruno@clisp.org>
65240
65241                 Portability to AIX 4.3.3.
65242                 * unsetenv.c: New file, extracted from setenv.c.
65243                 * setenv.c: Move the unsetenv() function to unsetenv.c.
65244
65245         2001-12-20  Bruno Haible  <bruno@clisp.org>
65246
65247                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
65248                 use malloc instead. For SunOS 4.
65249
65250         2001-12-11  Bruno Haible  <bruno@clisp.org>
65251
65252                 * setenv.c: Declare alloca.
65253                 (compar_fn_t): New typedef.
65254                 (KNOWN_VALUE, STORE_VALUE): Use it.
65255
65256         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
65257         setenv.h.
65258
65259 2002-12-10  Paul Eggert  <eggert@twinsun.com>
65260
65261         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
65262         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
65263         Choose values that are less likely to collide with system fnmatch
65264         options.
65265         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
65266         defined (e.g., a pure POSIX system).
65267         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
65268         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
65269
65270 2002-12-06  Paul Eggert  <eggert@twinsun.com>
65271
65272         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
65273         a pain in practice to deal with generated m4 files.  This change
65274         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
65275
65276         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
65277         and jm-glibc-io.m4, as they are no longer a special case.
65278         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
65279         kludge and the auto-generation stuff.  Check only whether the
65280         functions are declared, not whether they exist, since older hosts
65281         that don't declare the functions can't use the optimization anyway.
65282
65283 2002-12-06  Jim Meyering  <jim@meyering.net>
65284
65285         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
65286
65287         Merge in changes from libc's misc/error.c, in preparation
65288         for the merge of gnulib's changes back into libc.
65289
65290         * lib/error.c (_): Define only if not already defined.
65291         Move definition to follow all #include directives.
65292         Include unlocked-io.h only if !_LIBC.
65293         [_LIBC]: Include <libio/libioP.h>.
65294         [USE_IN_LIBIO]: Include <libio/iolibio.h>
65295         (fflush): Tweak definition to use INTUSE.
65296         (putc): Define.
65297
65298 2002-12-05  Paul Eggert  <eggert@twinsun.com>
65299
65300         * lib/alloca.c [defined emacs]: Include "lisp.h".
65301         (xalloc_die) [defined emacs]: New macro.
65302         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
65303         [! defined emacs]: Include <xalloc.h>.
65304         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
65305         (pointer): Typedef to POINTER_TYPE *.
65306         (malloc): Remove decl; we now always use xmalloc.
65307         (alloca): Use old-style definition, since Emacs needs this.
65308         Check for arithmetic overflow when computing combined size.
65309
65310 2002-12-04  Paul Eggert  <eggert@twinsun.com>
65311
65312         Do not generate unlocked-io.h automatically, since it's easier to
65313         maintain it by hand.
65314
65315         * lib/unlocked-io.h: New file, from GNU diffutils,
65316         but with proper copyright notice and attribution.
65317         * lib/gen-uio: Remove.
65318         * lib/Makefile.am: Add copyright notice.
65319         (libfetish_a_SOURCES): Add unlocked-io.h.
65320         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
65321         (DISTCLEANFILES, io_functions): Remove macros.
65322         (EXTRA_DIST): Remove gen_uio.
65323         (unlocked-io.h): Remove rule.
65324
65325 2002-12-04  Jim Meyering  <jim@meyering.net>
65326
65327         Reflect the fact that stat.c and lstat.c are no longer generated.
65328         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
65329         (DISTCLEANFILES): Likewise.
65330         (EXTRA_DIST): Likewise.
65331         (all_local): Don't depend on stat.c or lstat.c.
65332         (stat.c, lstat.c): Remove rules.
65333         (EXTRA_DIST): Remove xstat.in.
65334
65335         * lib/xstat.in: Remove file.  Contents moved into stat.c.
65336         * lib/stat.c: New file.  Contents mostly from xstat.in.
65337         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
65338         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
65339
65340         * lib/safe-read.c: Rework so that it may serve to define safe_write,
65341         too.
65342         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
65343
65344 2002-12-03  Jim Meyering  <jim@meyering.net>
65345
65346         * lib/safe-read.c, safe-write.c: Change variable names and comments,
65347         but not semantics, to minimize the differences between these two files.
65348         (safe_read): Change comment to mention SAFE_READ_ERROR.
65349
65350         * lib/safe-read.c (IS_EINTR): Define.
65351         (safe_read): Use IS_EINTR in place of in-function cpp directives.
65352
65353 2002-12-02  Jim Meyering  <jim@meyering.net>
65354
65355         * lib/safe-read.c (EINTR): Define.
65356         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
65357         (INT_MAX): Provide fallback.
65358         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
65359
65360         * lib/safe-read.h (SAFE_READ_ERROR): Define.
65361
65362 2002-12-02  Bruno Haible  <bruno@clisp.org>
65363
65364         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
65365         Define, taken from safe-read.c.
65366         (INT_MAX): Provide fallback.
65367         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
65368         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
65369
65370         * lib/safe-read.c (EINTR): Remove definition.
65371         (safe_read): Don't use EINTR if it is absent.
65372
65373 2002-12-01  Jim Meyering  <jim@meyering.net>
65374
65375         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
65376         zero.
65377         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
65378
65379 2002-11-27  Paul Eggert  <eggert@twinsun.com>
65380
65381         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
65382         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
65383         with `if (! (value < limit)) abort ();', for readability.
65384
65385 2002-11-26  Karl Berry  <karl@gnu.org>
65386
65387         * lib/strdup.c: copy from libc again, with jim's ok.
65388         * lib/.cppi-disable: re-add strdup.c
65389
65390 2002-11-25  Karl Berry  <karl@gnu.org>
65391
65392         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
65393         instead of "strtol.c".
65394
65395 2002-11-25  Karl Berry  <karl@gnu.org>
65396
65397         * config/install-sh: update from automake for variable quoting, $0 in
65398         error msgs, etc.
65399
65400         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
65401         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
65402         entry.
65403
65404 2002-11-25  Jim Meyering  <jim@meyering.net>
65405
65406         * lib/mktime.c: Sync from libc, now that it has the latest fix.
65407
65408 2002-11-24  Karl Berry  <karl@gnu.org>
65409
65410         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
65411         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
65412
65413 2002-11-24  Jim Meyering  <jim@meyering.net>
65414
65415         Update from coreutils:
65416
65417         * lib/mktime.c: Merge in changes from libc.
65418
65419         Avoid a link-time failure on some Linux systems.
65420         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
65421         (otherwise).
65422         (__mon_yday): Declare with the STATIC attribute.
65423         (__mktime_internal): Likewise.
65424         Based on a report from Greg Schafer.
65425
65426 2002-11-23  Jim Meyering  <jim@meyering.net>
65427
65428         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
65429         Use `unsigned', not `int', as type of index.
65430
65431         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
65432
65433         * lib/fsusage.c: Remove unneeded parentheses around operands of
65434         `defined'.
65435
65436 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65437
65438         * lib/quotearg.h: Allow multiple inclusion by surrounding with
65439         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
65440         so that we can be included first.
65441         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
65442         * lib/quotearg.c: Include quotearg.h immediately after config.h.
65443         No need to include stddef.h or sys/types.h any more.
65444         Surround local include files with "", not "<>".
65445         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
65446         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
65447         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
65448         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
65449         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
65450         (ISPRINT): Remove; no longer needed now that we assume C89.
65451
65452         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
65453         Preserve errno.
65454
65455         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
65456         quotearg_char): Use SIZE_MAX rather than
65457         (size_t) -1 when we are talking about "infinity".
65458
65459         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
65460
65461 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65462
65463         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
65464         hint that one should use `if (! x) abort ();' rather than `assert
65465         (x);', and anyway it's one less thing to worry about configuring.
65466         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
65467         hash_rehash, hash_insert): Use abort rather than assert.
65468
65469 2002-11-22  Bruno Haible  <bruno@clisp.org>
65470
65471         * lib/safe-read.h: Assume C89. Add comments.
65472         (safe_read): Change return type to size_t.
65473         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
65474         byte counts > SSIZE_MAX correctly.
65475         * lib/safe-write.h: New file.
65476         * lib/safe-write.c: New file.
65477         * lib/full-read.h: New file.
65478         * lib/full-read.c: New file.
65479         * lib/full-write.h: Assume C89. Add comments.
65480         * lib/full-write.c: Include safe-write.h.
65481         (full_write): Rewritten to use safe_write.
65482         Suggested by Jim Meyering and Paul Eggert.
65483
65484 2002-11-21  Jim Meyering  <jim@meyering.net>
65485
65486         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
65487
65488         Merge in changes from the coreutils.
65489
65490         2002-09-25  Paul Eggert  <eggert@twinsun.com>
65491         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
65492         <stdint.h>.
65493         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
65494         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
65495         int.  Work more efficiently if X is the same width as uintmax_t.
65496         Do not compare X to -1, to avoid bogus compiler warning.
65497         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
65498         Don't assume that f_frsize and f_bsize are the same type.
65499
65500         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
65501         warning on FreeBSD.
65502
65503         * lib/makepath.c (make_path): Restore umask *before* creating the final
65504         component.
65505         (make_path): Minor reformatting.
65506
65507         * lib/xmalloc.c: Adjust to work with new autoconf macros,
65508         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
65509         HAVE_MALLOC/HAVE_REALLOC.
65510
65511         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
65512         dummy ones.  At least on GNU/Linux systems, `auto' means something
65513         else.
65514         From Michael Stone.
65515
65516 2002-11-21  Bruno Haible  <bruno@clisp.org>
65517
65518         Remove case insensitive option matching.
65519         * lib/argmatch.h (argcasematch): Remove declaration.
65520         (ARGCASEMATCH): Remove macro.
65521         (__xargmatch_internal): Remove case_sensitive argument.
65522         (XARGMATCH): Update.
65523         (XARGCASEMATCH): Remove macro.
65524         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
65525         case_sensitive argument.
65526         (argcasematch): Remove function.
65527         (__xargmatch_internal): Remove case_sensitive argument.
65528         (main): Use XARGMATCH instead of XARGCASEMATCH.
65529
65530         * lib/xmalloc.c: Change compile-time error message. Add comment about
65531         required autoconf version.
65532
65533 2002-11-20  Paul Eggert  <eggert@twinsun.com>
65534
65535         Merge argmatch cleanups from Bison.  Assume C89.
65536
65537         * lib/argmatch.c: Include config.h here, not in argmatch.h.
65538         Include stdlib.h, for EXIT_FAILURE.
65539         Always include <string.h>, since we assume C89.
65540         (EXIT_FAILURE): Remove pre-C89 bug workaround.
65541         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
65542         Include <stddef.h> instead, since it's all we need for size_t.
65543         (PARAMS): Remove.  All uses removed.
65544         (ARRAY_CARDINALITY): Do not bother to #undef.
65545         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
65546         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65547         Remove unnecessary parentheses.
65548         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65549         Insert necessary parentheses.
65550         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
65551         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
65552
65553 2002-11-19  Bruno Haible  <bruno@clisp.org>
65554
65555         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
65556         * lib/mbswidth.h: Include <stddef.h>, for size_t.
65557
65558         * lib/mbswidth.h (PARAMS): Remove macro.
65559         (mbswidth, mbsnwidth): Use ANSI C function declarations.
65560         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
65561
65562         * lib/gcd.h (PARAMS): Remove macro.
65563         (gcd): Use ANSI C function declarations.
65564         * lib/gcd.c (gcd): Likewise.
65565
65566 2002-11-15  Bruno Haible  <bruno@clisp.org>
65567
65568         * lib/strcspn.c: Include <stddef.h>.
65569         (strcspn): Use ANSI C function declaration. Change return type to
65570         size_t. Use NULL.
65571         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
65572         (strpbrk): Use NULL.
65573         * lib/strpbrk.h (PARAMS): Remove macro.
65574         (strpbrk): Use ANSI C function declaration.
65575         * lib/strstr.c: Don't include <sys/types.h>.
65576         * lib/strstr.h (PARAMS): Remove macro.
65577         (strstr): Use ANSI C function declarations.
65578
65579 2002-11-14  Karl Berry  <karl@gnu.org>
65580
65581         * config/mkinstalldirs: `do' on separate line, instead of
65582         `for var; do'.
65583
65584 2002-11-06  Bruno Haible  <bruno@clisp.org>
65585
65586         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65587         * lib/gcd.c (gcd): Likewise.
65588
65589 2002-11-05  Bruno Haible  <bruno@clisp.org>
65590
65591         * lib/gcd.h: New file, from gettext-0.11.5.
65592         * lib/gcd.c: New file, from gettext-0.11.5.
65593
65594 2002-11-05  Bruno Haible  <bruno@clisp.org>
65595
65596         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65597         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65598         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65599         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65600
65601         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65602         <libintl.h>.
65603         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65604         <libintl.h>.
65605
65606         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65607         * lib/human.c: Include gettext.h instead of <libintl.h>.
65608         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65609         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65610         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65611         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65612         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65613         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65614         (textdomain): Remove definition.
65615         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65616
65617         * lib/long-options.c: Remove include of <libintl.h> and definition of
65618         _.
65619         * lib/same.c: Remove include of <libintl.h> and definition of _.
65620
65621 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65622
65623         * lib/config.charset: A few additions for Solaris.
65624
65625 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65626
65627         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65628         * lib/localcharset.c (locale_charset): Declare as extern "C".
65629
65630 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65631
65632         * lib/config.charset: msdos in uk_UA uses CP1125.
65633
65634 2002-11-04  Bruno Haible  <bruno@clisp.org>
65635
65636         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65637         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65638         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65639         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65640         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65641
65642 2002-11-04  Bruno Haible  <bruno@clisp.org>
65643
65644         * lib/localcharset.c (locale_charset): Don't return an empty string.
65645
65646 2002-11-04  Bruno Haible  <bruno@clisp.org>
65647
65648         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65649         aliases.
65650
65651 2002-11-04  Bruno Haible  <bruno@clisp.org>
65652
65653         * lib/config.charset: Update for newest glibc. Add canonical names
65654         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65655
65656 2002-11-04  Bruno Haible  <bruno@clisp.org>
65657
65658         * lib/config.charset: Add support for NetBSD.
65659
65660 2002-11-04  Bruno Haible  <bruno@clisp.org>
65661
65662         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65663
65664 2002-11-01  Bruno Haible  <bruno@clisp.org>
65665
65666         * configure.in: Add AC_CONFIG_AUX_DIR call.
65667         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65668         test/Makefile.
65669         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65670
65671 2002-09-28  Karl Berry  <karl@gnu.org>
65672
65673         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65674         installed automake until the next release, since changes have been
65675         made.
65676
65677 2002-09-25  Karl Berry  <karl@gnu.org>
65678
65679         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65680         * lib/getopt*: copy from libc/posix.
65681         * lib/gettext.h: copy from gettext.
65682         * lib/.cppi-disable: add strdup.c, gettext.h.
65683
65684 2002-09-25  Karl Berry  <karl@gnu.org>
65685
65686         * config/srclist.txt: enable gettext.h check.
65687         * config/config.{guess,sub}: update from prep.
65688         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65689                 from automake 1.6.3.
65690         See srclist*.
65691
65692 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65693
65694         * regex.c (PATFETCH): Remove the translating fetch.
65695         (PATFETCH_RAW): Rename to PATFETCH.
65696         (set_image_of_range): New fun.
65697         (SET_RANGE_TABLE_WORK_AREA): Use it.
65698         (regex_compile): Don't translate the pattern chars so eagerly.
65699         Only do it when inserting an `exactn' bytecode or when handling
65700         a char-range.
65701         (mutually_exclusive_p): Avoid empty statement.
65702
65703 2002-07-06  Jim Meyering  <meyering@lucent.com>
65704
65705         * m4/README: Don't mention Makefile.am.in.
65706         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65707
65708 2002-07-01  Jim Meyering  <meyering@lucent.com>
65709
65710         * lib/c-stack.c: Include sys/time.h.
65711         From Volker Borchert.
65712
65713 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65714
65715         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65716
65717 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65718
65719         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65720         New macro.  Use it uniformly instead of
65721         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65722         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65723         reported by Vin Shelton.
65724
65725 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65726
65727         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65728         Do not assume SA_SIGINFO behavior.
65729         Bug reported by Jim Meyering on NetBSD 1.5.2.
65730
65731 2002-06-22  Jim Meyering  <meyering@lucent.com>
65732
65733         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65734         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65735
65736         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65737         now that configure.ac uses AC_GNU_SOURCE.
65738         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65739         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65740
65741         Update to latest tools.  Suggestions from Paul Eggert.
65742         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65743         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65744         * m4/fnmatch.m4: Likewise.
65745         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65746         to AC_HEADER_STDBOOL
65747
65748 2002-06-22  Jim Meyering  <meyering@lucent.com>
65749
65750         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65751         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65752
65753 2002-06-22  Jim Meyering  <meyering@lucent.com>
65754
65755         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65756
65757         * lib/exitfail.c, exitfail.h: Likewise.
65758         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65759
65760         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65761         of fnmatch.h.
65762         (EXTRA_DIST): Add fnmatch_loop.c.
65763         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65764
65765         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65766         * lib/fnmatch.c: Update from diffutils-2.8.2.
65767         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65768         * lib/fnmatch.h: Remove file.
65769
65770 2002-06-21  Jim Meyering  <meyering@lucent.com>
65771
65772         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65773         * m4/mbrtowc.m4: Likewise.
65774
65775         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65776         * m4/mbswidth.m4: Reflect name change:
65777         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65778         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65779
65780         * m4/lib-link.m4: Update from gettext-0.11.2.
65781         * m4/gettext.m4: Likewise.
65782
65783         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65784         From Alfred M. Szmidt.
65785
65786 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65787
65788         * lib/file-type.h: Report an error if neither S_ISREG nor
65789         S_IFREG is defined, instead of using a test specific to glibc
65790         2.2.  This should be safe, since POSIX requires S_ISREG and
65791         Unix Version 7 had S_IFREG.  We don't need to check for
65792         <sys/types.h> since we don't use any symbols that it defines.
65793
65794 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65795
65796         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65797         $@-t, so that each temporary file name is unique and valid in the first
65798         8 characters, for operation under DOS.
65799
65800 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65801
65802         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65803
65804 2002-06-15  Jim Meyering  <meyering@lucent.com>
65805
65806         Work even with DJGPP 2.03, which lacks support for symlinks.
65807         From Richard Dawe.
65808         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65809         is defined.
65810         * lib/lchown.c (S_ISLNK): Likewise.
65811
65812 2002-06-15  Jim Meyering  <meyering@lucent.com>
65813
65814         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65815         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65816         have been included before this file.
65817
65818 2002-06-14  Jim Meyering  <meyering@lucent.com>
65819
65820         * lib/file-type.h: Use the version from diffutils-2.8.2.
65821         * lib/file-type.c: Likewise.
65822
65823 2002-06-07  Jim Meyering  <meyering@lucent.com>
65824
65825         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65826         They're needed at least for NetBSD 1.5.2.
65827         ($statxfs_includes): Include those same headers.
65828         ($statxfs_includes): Include sys/vfs.h if available.
65829         ($statxfs_includes): Likewise for sys/statvfs.h.
65830         Check for the following members in both structs statfs and statvfs:
65831         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
65832
65833 2002-06-01  Jim Meyering  <meyering@lucent.com>
65834
65835         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
65836         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
65837
65838 2002-05-28  Jim Meyering  <meyering@lucent.com>
65839
65840         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
65841         Reported by Volker Borchert.
65842
65843 2002-05-27  Jim Meyering  <meyering@lucent.com>
65844
65845         Fix a problem seen only on nonconforming systems whereby ls.c's
65846         use of localtime, and then of gettimeofday would cause trouble:
65847         the localtime call used to initialize rpl_gettimeofday's save
65848         mechanism would clobber ls's current local time information so
65849         that in any long listing the first file would always be listed
65850         with date 1970-01-01.  Analysis by Volker Borchert.
65851
65852         * lib/gettimeofday.c (localtime): Undefine.
65853         (rpl_localtime): New function.
65854
65855 2002-05-27  Jim Meyering  <meyering@lucent.com>
65856
65857         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
65858         localtime.
65859
65860         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
65861         use the replacement function; it wouldn't resolve at link time.
65862         Reported by Volker Borchert.
65863
65864 2002-05-22  Jim Meyering  <meyering@lucent.com>
65865
65866         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
65867         file-type.h.
65868         * lib/file-type.h: New file.
65869         * lib/file-type.c (file_type): New file/function.  Extracted from
65870         diffutils.
65871
65872 2002-04-30  Jim Meyering  <meyering@lucent.com>
65873
65874         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
65875
65876 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65877
65878         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
65879
65880 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65881
65882         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
65883         Do not check for alloca.h (no longer used) or stdbool.h (was never
65884         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
65885
65886 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65887
65888         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
65889
65890 2002-04-29  Jim Meyering  <meyering@lucent.com>
65891
65892         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
65893         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
65894         Use AC_FUNC_STRNLEN here instead.
65895
65896         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
65897         With autoconf-2.53a, it's part of AC_PROG_CC.
65898
65899 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65900
65901         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
65902         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
65903
65904 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65905
65906         * lib/sig2str.h, lib/sig2str.c: New files.
65907         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
65908
65909 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65910
65911         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
65912         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
65913         of 127, since 64 is the largest conceivable number for ancient
65914         nonstandard hosts.
65915         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
65916
65917 2002-04-28  Jim Meyering  <meyering@lucent.com>
65918
65919         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
65920
65921 2002-04-24  Jim Meyering  <meyering@lucent.com>
65922
65923         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
65924         (jm_PREREQ): Use it.
65925
65926         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
65927         mach/mach.h fcntl.h.
65928         Check for this function: setlocale.
65929
65930 2002-04-24  Jim Meyering  <meyering@lucent.com>
65931
65932         * lib/gettext.h: New file, from Gettext.
65933         * lib/Makefile.am (INCLUDES): Remove -I../intl.
65934         (libfetish_a_SOURCES): Add gettext.h.
65935
65936 2002-04-16  Jim Meyering  <meyering@lucent.com>
65937
65938         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
65939         ut_pid, ut_id, ut_exit.
65940
65941 2002-04-16  Jim Meyering  <meyering@lucent.com>
65942
65943         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
65944         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
65945         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
65946
65947 2002-04-12  Jim Meyering  <meyering@lucent.com>
65948
65949         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
65950         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
65951         existence of the getmntinfo function.  Needed for Darwin 5.3.
65952
65953         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
65954         This is necessary at least on Darwin 5.3.
65955
65956         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
65957         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
65958         strnlen.o in the library, and that makes some versions of ranlib
65959         object.
65960
65961 2002-04-12  Jim Meyering  <meyering@lucent.com>
65962
65963         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
65964
65965 2002-04-09  Jim Meyering  <meyering@lucent.com>
65966
65967         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
65968         to be more precise.  Rather than saying we're checking whether the
65969         function `works', say what we're testing.
65970         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
65971         Reported by Bruno Haible.
65972
65973 2002-03-10  Jim Meyering  <meyering@lucent.com>
65974
65975         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
65976         Suggestion from Santiago Vila.
65977
65978 2002-03-08  Jim Meyering  <meyering@lucent.com>
65979
65980         * lib/rename.c: Mention that this wrapper is needed also on
65981         mips-dec-ultrix4.4 systems.
65982
65983 2002-03-02  Jim Meyering  <meyering@lucent.com>
65984
65985         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
65986         not HAVE_CLOCK_SETTIME.
65987
65988 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65989
65990         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
65991         Check for clock_settime.
65992
65993 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65994
65995         * lib/nanosleep.h: Rename to....
65996         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
65997
65998         * lib/gettime.c: New file.
65999         * lib/settime.c: New file.
66000         * lib/stime.c: Remove.
66001
66002         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
66003         timespec.h.  Remove nanosleep.h.
66004
66005 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66006
66007         * m4/acl.m4: New file.
66008         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
66009         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
66010
66011 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66012
66013         * lib/acl.c, lib/acl.h: New files.
66014         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
66015
66016 2002-02-24  Jim Meyering  <meyering@lucent.com>
66017
66018         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
66019         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
66020         cause trouble.  Reported by Nelson Beebe.
66021
66022 2002-02-23  Paul Eggert  <eggert@twinsun.com>
66023
66024         * lib/path-concat.c (xpath_concat): Reorder code to pacify
66025         compilers that don't know that xalloc_die never returns.
66026
66027 2002-02-20  Jim Meyering  <meyering@lucent.com>
66028
66029         * lib/getdate.c: Regenerate using bison-1.33.
66030
66031 2002-02-17  Jim Meyering  <meyering@lucent.com>
66032
66033         * config/config.guess (main): Don't use `head -1'; it's no longer
66034         portable. Use `sed 1q' instead.
66035
66036 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
66037
66038         * m4/codeset.m4: Upgrade to gettext-0.11.
66039         * m4/gettext.m4: Upgrade to gettext-0.11.
66040         * m4/glibc21.m4: Upgrade to gettext-0.11.
66041         * m4/iconv.m4: Upgrade to gettext-0.11.
66042         * m4/isc-posix.m4: Upgrade to gettext-0.11.
66043         * m4/lcmessage.m4: Upgrade to gettext-0.11.
66044         * m4/lib-ld.m4: New file, from gettext-0.11.
66045         * m4/lib-link.m4: New file, from gettext-0.11.
66046         * m4/lib-prefix.m4: New file, from gettext-0.11.
66047         * m4/progtest.m4: Upgrade to gettext-0.11.
66048
66049 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66050
66051         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
66052         (jm_PREREQ): Use it.
66053
66054 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66055
66056         * lib/posixver.c, lib/posixver.h: New files.
66057         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66058
66059 2002-02-02  Paul Eggert  <eggert@twinsun.com>
66060             Bruno Haible  <bruno@clisp.org>
66061
66062         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
66063         (fwrite_success_callback): New declaration.
66064         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
66065         print_unicode_char. Call failure callback instead of error.
66066         (fwrite_success_callback): New function.
66067         (exit_failure_callback): New function.
66068         (fallback_failure_callback): New function.
66069         (print_unicode_char): Call unicode_to_mb.
66070
66071 2002-01-26  Jim Meyering  <meyering@lucent.com>
66072
66073         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
66074         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
66075
66076 2002-01-26  Jim Meyering  <meyering@lucent.com>
66077
66078         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
66079
66080 2002-01-22  Paul Eggert  <eggert@twinsun.com>
66081
66082         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
66083
66084 2002-01-22  Jim Meyering  <meyering@lucent.com>
66085
66086         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
66087         Otherwise, some versions of automake would omit the rule that makes
66088         Makefile from Makefile.in.
66089
66090 2002-01-21  Paul Eggert  <eggert@twinsun.com>
66091
66092         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
66093         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66094         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
66095         (memcoll): Set errno to zero if there is no error.
66096
66097         * lib/quotearg.c (quotearg_buffer_restyled):
66098         Fix bug with quoting buffers containing NUL when backslashing escapes.
66099         This bug was exposed by the other changes in this patch.
66100         (quotearg_n_options): New arg ARGSIZE.
66101         All callers changed.
66102         (quoting_options_from_style): New function.
66103         (quotearg_n_style): Use it.
66104         (quotearg_n_style_mem): New function.
66105
66106         * lib/quotearg.h (quotearg_n_style_mem): New function.
66107
66108 2002-01-19  Jim Meyering  <meyering@lucent.com>
66109
66110         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
66111         Remove useless quotes: DF_PROG="df".
66112         * m4/strnlen.m4: New file.
66113
66114 2002-01-16  Paul Eggert  <eggert@twinsun.com>
66115
66116         * lib/backupfile.c (ISDIGIT): Comment fix.
66117         * lib/getdate.y (ISDIGIT): Likewise.
66118         * lib/posixtm.c (ISDIGIT, year): Likewise.
66119         * lib/strverscmp.c (ISDIGIT): Likewise.
66120         * lib/userspec.c (ISDIGIT): Likewise.
66121
66122 2002-01-16  Jim Meyering  <meyering@lucent.com>
66123
66124         * lib/getdate.y: Add three semicolons, each just before a closing
66125         brace. Bison (as of version 1.31) no longer papers over that mistake.
66126
66127 2002-01-05  Jim Meyering  <meyering@lucent.com>
66128
66129         * lib/version-etc.c (version_etc_copyright): Update copyright year.
66130
66131 2001-12-19  Paul Eggert  <eggert@twinsun.com>
66132
66133         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
66134         not silently exit merely because the output buffer happens to
66135         have nothing pending.
66136
66137 2001-12-18  Paul Eggert  <eggert@twinsun.com>
66138
66139         See the big note in ../ChangeLog.
66140         * lib/human.c (suffixes): Prefer K to k for 1024.
66141         (generate_suffix_backwards): New function.
66142         (human_readable_inexact): Use it.
66143         * lib/xstrtol.c (__xstrtol): If there is no number but there
66144         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
66145         Accept 'K' as well as 'k'.
66146
66147 2001-12-15  Jim Meyering  <meyering@lucent.com>
66148
66149         * lib/regex.h (__restrict_arr): Update from libc.
66150
66151         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
66152         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
66153         (STREQ): Define.
66154
66155 2001-12-14  Jim Meyering  <meyering@lucent.com>
66156
66157         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
66158         Suggestion from Bruno Haible.
66159
66160 2001-12-10  Jim Meyering  <meyering@lucent.com>
66161
66162         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
66163         xrealloc, Instead, include "xalloc.h".
66164         (initbuffer): Don't cast xmalloc return value to char*.
66165         (readline): Reword comment.
66166         Don't cast xrealloc return value to char*
66167         Return NULL, not 0.
66168
66169 2001-12-09  Jim Meyering  <meyering@lucent.com>
66170
66171         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
66172         about `signed and unsigned type in conditional expression'.
66173         * lib/posixtm.c (posix_time_parse): Likewise.
66174
66175         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
66176
66177         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
66178         to avoid a pedantic warning.
66179
66180         * lib/getstr.c: Don't include assert.h.
66181         (getstr): Remove warning-evoking assertions.
66182         Return -1 if offset parameter is out of bounds.
66183         Change the type of a local from int to size_t.
66184
66185         * lib/strftime.c (my_strftime_localtime_r): Include this function
66186         definition in the `#if ! HAVE_TM_GMTOFF' block.
66187
66188         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
66189         Include xalloc.h instead.
66190
66191 2001-12-02  Jim Meyering  <meyering@lucent.com>
66192
66193         * lib/tempname.c: Don't declare getenv, thus reverting the change of
66194         2001-11-18.  It's no longer necessary, now that stdlib.h is always
66195         included.
66196
66197         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
66198         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
66199
66200 2001-11-30  Akim Demaille  <akim@epita.fr>
66201
66202         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
66203         before being defined.
66204
66205 2001-11-27  Paul Eggert  <eggert@twinsun.com>
66206
66207         * lib/quotearg.h (quotearg_n, quotearg_n_style):
66208         First arg is int, not unsigned.
66209         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
66210         (SIZE_MAX, UINT_MAX): New macros.
66211         (quotearg_n_options): Abort if N is negative.
66212         Avoid overflow check on hosts where size_t is 64 bits and int
66213         is 32 bits, as overflow is impossible there.
66214         Fix off-by-one typo that caused unnecessary reallocation.
66215
66216 2001-11-27  Jim Meyering  <meyering@lucent.com>
66217
66218         * lib/tempname.c: Merge with version from libc.
66219         * lib/regex.c: Likewise.
66220
66221         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
66222         systems for which STDC_HEADERS is 0, it was not included, resulting in
66223         a warning about an integer-to-pointer conversion problem with getenv.
66224         Reported by Volker Borchert.
66225
66226 2001-11-26  Jim Meyering  <meyering@lucent.com>
66227
66228         * lib/gtod.h: Remove file.
66229         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
66230         * lib/gettimeofday.c: Don't include gtod.h.
66231         (GTOD_init): Remove function.
66232         (rpl_gettimeofday): Do its job here instead, rather than aborting.
66233         Suggestion from Volker Borchert.
66234
66235 2001-11-23  Jim Meyering  <meyering@lucent.com>
66236
66237         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
66238         it.
66239         * lib/hash.c (struct hash_table): Define it here instead.
66240
66241 2001-11-22  Jim Meyering  <meyering@lucent.com>
66242
66243         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
66244
66245 2001-11-20  Jim Meyering  <meyering@lucent.com>
66246
66247         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
66248         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
66249
66250 2001-11-19  Jim Meyering  <meyering@lucent.com>
66251
66252         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
66253         directory.  Use "conftestXXXXXX" as the template.
66254         Suggestion from Paul Eggert.
66255
66256         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
66257         immediately, so the test doesn't mistakenly hit the max-open-files
66258         limit.
66259
66260 2001-11-18  Paul Eggert  <eggert@twinsun.com>
66261
66262         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
66263         (TEMPORARIES): New macro.
66264         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
66265         removes an artificial limitation (e.g. HP-UX 10.20, where
66266         TMP_MAX is 17576).
66267
66268 2001-11-18  Jim Meyering  <meyering@lucent.com>
66269
66270         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
66271
66272 2001-11-18  Jim Meyering  <meyering@lucent.com>
66273
66274         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
66275         on SunOS 4.
66276
66277         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
66278         files will be created before anything else.
66279
66280 2001-11-17  Paul Eggert  <eggert@twinsun.com>
66281
66282         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
66283         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
66284
66285 2001-11-17  Jim Meyering  <meyering@lucent.com>
66286
66287         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
66288         Prompted by a report from Bob Proulx.
66289
66290         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
66291         Instead, require UTILS_FUNC_MKSTEMP.
66292
66293 2001-11-17  Jim Meyering  <meyering@lucent.com>
66294
66295         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
66296         Now, that's done as part of AC_FUNC_STRTOD.
66297
66298 2001-11-17  Jim Meyering  <meyering@lucent.com>
66299
66300         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
66301         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
66302         rather than group writable.  Patch by Juan F. Codagnone.
66303
66304         * lib/readtokens.c: Remove explicit declarations of xmalloc and
66305         xrealloc, Instead, include "xalloc.h".
66306
66307         * lib/mountlist.c: Include unlocked-io.h after all system headers.
66308         Remove explicit declarations of xmalloc, xrealloc,
66309         and xstrdup.  Instead, include "xalloc.h".
66310
66311         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
66312         unlocked-io.h.
66313         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
66314         Likewise.
66315         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
66316
66317         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
66318         Reported by Padraig Brady.
66319
66320         * lib/mkstemp.c: #undef mkstemp.
66321         Include config.h.
66322         (rpl_mkstemp): Rename from mkstemp.
66323         Protoize.
66324
66325 2001-11-16  Jim Meyering  <meyering@lucent.com>
66326
66327         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
66328         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
66329         determine the amount of total physical memory, use pstat_getstatic.
66330         HPUX-11 doesn't define _SC_PHYS_PAGES.
66331         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
66332         If sysconf couldn't be used to determine the amount of available
66333         physical memory, use both pstat_getstatic and pstat_getdynamic.
66334         Based on a patch from Bob Proulx.
66335
66336 2001-11-10  Jim Meyering  <meyering@lucent.com>
66337
66338         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
66339         (jm_PREREQ): Use it.
66340
66341 2001-11-09  Jim Meyering  <meyering@lucent.com>
66342
66343         * m4/jm-macros.m4: Require autoconf-2.52f.
66344         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
66345         Use these AC_-prefixed names, not the AM_-prefixed ones.
66346
66347         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
66348
66349 2001-11-05  Jim Meyering  <meyering@lucent.com>
66350
66351         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
66352
66353 2001-11-04  Jim Meyering  <meyering@lucent.com>
66354
66355         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
66356         $DEFS.
66357
66358 2001-11-03  Jim Meyering  <meyering@lucent.com>
66359
66360         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
66361         of AC_DEFUN.
66362
66363         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
66364         know the name of the variable in the macro definition.
66365
66366 2001-11-03  Jim Meyering  <meyering@lucent.com>
66367
66368         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
66369         in argmatch_to_argument call.
66370
66371         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
66372         argument.
66373
66374         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
66375         e.g., a fault due to an attempt to free a NULL pointer.
66376
66377 2001-11-01  Jim Meyering  <meyering@lucent.com>
66378
66379         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
66380         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
66381
66382 2001-11-01  Jim Meyering  <meyering@lucent.com>
66383
66384         * lib/dirfd.c, lib/dirfd.h: New files.
66385         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
66386
66387         * lib/hash.c (hash_print) [TESTING]: Clean up.
66388
66389 2001-10-22  Paul Eggert  <eggert@twinsun.com>
66390
66391         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
66392         to avoid a warning if -Wall.
66393
66394 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
66395
66396         * README: New file
66397         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
66398         (per RMS's instructions, this is now the canonical source)
66399         * lgpl/, gpl/: New directories.
66400
66401 2001-10-21  Paul Eggert  <eggert@twinsun.com>
66402
66403         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
66404
66405 2001-10-21  Jim Meyering  <meyering@lucent.com>
66406
66407         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
66408         this code would end up calling gettext even in packages built
66409         with --disable-nls.
66410         * lib/getopt.c (_): Likewise.
66411         * lib/regex.c (_): Likewise.
66412
66413 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66414
66415         * m4/error.m4 (jm_PREREQ_ERROR):
66416         Do not invoke AC_CHECK_FUNCS with strerror_r, as
66417         AC_FUNC_STRERROR_R does that.
66418         Check for strerror declaration.
66419
66420         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
66421         are supposed to have them these days.
66422         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
66423         Merge changes from latest Autoconf CVS.
66424         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
66425         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
66426         POSIX decided to standardize on the int flavor of strerror_r.
66427
66428 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66429
66430         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
66431         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
66432         Use strerror_r that is only a macro, even if it is not a function.
66433         (strerror): Check for HAVE_DECL_STRERROR before declaring.
66434         (private_strerror): Use prototypes, not old-style function definition.
66435         (print_errno_message): New function.
66436         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
66437         char*-flavored one.
66438         (error_tail, error, error_at_line): Use it.
66439
66440 2001-10-11  Jim Meyering  <meyering@lucent.com>
66441
66442         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
66443         and quote_n (1, ... to avoid clobbering a buffer.
66444
66445 2001-10-05  Jim Meyering  <meyering@lucent.com>
66446
66447         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
66448         hash-pjw.h.
66449         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
66450         * lib/hash-pjw.h: New file.
66451
66452 2001-09-30  Jim Meyering  <meyering@lucent.com>
66453
66454         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
66455         `struct fsstat' has the `f_fstypename' member.
66456         Use that to define FS_TYPE, which is now used to make
66457         the getfsstat link test tighter.
66458
66459 2001-09-30  Jim Meyering  <meyering@lucent.com>
66460
66461         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
66462         Include <sys/ucred.h>, for Apple Darwin.
66463         Include sys/mount.h and sys/fs_types.h only if available.
66464         (FS_TYPE): Define.
66465         (read_filesystem_list): Use FS_TYPE.
66466
66467 2001-09-29  Paul Eggert  <eggert@twinsun.com>
66468
66469         * lib/exclude.c (excluded_filename): 0 -> false, since it's
66470         a boolean context.
66471
66472 2001-09-29  Jim Meyering  <meyering@lucent.com>
66473
66474         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66475         [one-argument getmntent function]): Include stdio.h before mntent.h.
66476         SunOS 4.1.x needs it for the declaration of `FILE'.
66477         Patch by Volker Borchert.
66478
66479         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66480         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
66481         sys/fs_types.h, and make the link-test for getfsstat guard #include
66482         directives with appropriate #if HAVE_*_H tests so that we can
66483         detect getfsstat on Apple Darwin1.3.7 systems.
66484         Reported by Nelson Beebe.
66485         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
66486
66487 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66488
66489         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66490         #defines strtoimax.  Also treat the other strto* functions
66491         like strtoimax.
66492
66493         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66494         Check for strtoul and strtoumax,
66495         as those declarations are made even in the signed case.
66496         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
66497         Likewise, for strtol and strtoimax.
66498
66499 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66500
66501         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66502         #defines strtoimax.  Also treat the other strto* functions
66503         like strtoimax.
66504
66505         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
66506         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
66507         (strtoimax, strtoumax): Do not declare if already defined as a macro.
66508
66509 2001-09-26  Jim Meyering  <meyering@lucent.com>
66510
66511         Most macros in unlocked-io.h had the wrong number of arguments.
66512         * lib/gen-uio: New script.
66513         (USE_UNLOCKED_IO): Define to 1 if not already defined.
66514         * lib/unlocked-io.hin: Remove file.
66515         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
66516         rather than trying to embed it here.
66517         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
66518         Reported by Padraig Brady.
66519
66520 2001-09-25  Volker Borchert  <bt@teknon.de>
66521
66522         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
66523         `result'.
66524
66525 2001-09-24  Jim Meyering  <meyering@lucent.com>
66526
66527         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
66528
66529 2001-09-23  Jim Meyering  <meyering@lucent.com>
66530
66531         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
66532         instead of the mere test for existence of mntent.h.  The latter
66533         would get a false-positive on AIX 3.4 systems.
66534         In the outer getmntent if-block, don't die if neither of the getmntent
66535         tests succeeds.  Instead, just fall through and continue with the
66536         remaining tests.
66537
66538 2001-09-23  Jim Meyering  <meyering@lucent.com>
66539
66540         * lib/mountlist.c: Remove useless parentheses in #if directives.
66541         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
66542         the deprecated MOUNTED symbol is no longer defined in mntent.h.
66543
66544 2001-09-22  Jim Meyering  <meyering@lucent.com>
66545
66546         * m4/gettext.m4: New file.  From gettext.
66547         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
66548         * m4/progtest.m4: Likewise
66549         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
66550         * m4/glibc21.m4: Likewise.
66551
66552         * m4/libintl.m4: Remove.  No longer used.
66553
66554 2001-09-22  Jim Meyering  <meyering@lucent.com>
66555
66556         * lib/localcharset.c: Update from latest gettext.
66557         * lib/config.charset: Likewise.
66558
66559 2001-09-20  Jim Meyering  <meyering@lucent.com>
66560
66561         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
66562         strtoimax.
66563         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
66564         strtoumax.
66565
66566 2001-09-20  Jim Meyering  <meyering@lucent.com>
66567
66568         * lib/xstrtol.c (strtoimax): Guard declaration with
66569         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
66570         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
66571         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
66572         (strtoumax): Likewise, for completeness (it wasn't necessary).
66573
66574 2001-09-17  Paul Eggert  <eggert@twinsun.com>
66575
66576         * lib/strtoimax.c (HAVE_LONG_LONG):
66577         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
66578         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
66579         to work around bug in IBM C compiler.
66580
66581 2001-09-17  Jim Meyering  <meyering@lucent.com>
66582
66583         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
66584         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66585         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66586         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66587         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66588         whenever the right hand side need not be expanded by the shell.
66589
66590 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66591
66592         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66593         library.  It's not correct, as some older glibcs are buggy.
66594         fnmatch wasn't fixed until glibc 2.2.
66595
66596         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66597         special shell magic here.
66598
66599 2001-09-16  Jim Meyering  <meyering@lucent.com>
66600
66601         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66602         * m4/jm-macros.m4: Require it.
66603
66604 2001-09-16  Jim Meyering  <meyering@lucent.com>
66605
66606         * lib/mkdir.c: New file.
66607
66608 2001-09-15  Jim Meyering  <meyering@lucent.com>
66609
66610         * m4/jm-macros.m4: Check for help2man.
66611
66612 2001-09-11  Jim Meyering  <meyering@lucent.com>
66613
66614         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66615         The body, by Paul Eggert, was moved here from configure.in.
66616         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66617
66618 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66619
66620         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66621         (jm_PREREQ): Use it.
66622
66623 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66624
66625         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66626         Use ssize_t, not int, to store result of readlink.
66627         Check for ssize_t overflow as well as size_t overflow,
66628         as POSIX says the result of readlink is implementation-defined
66629         when ssize_t overflows.
66630         Remove unnecessary cast to char*.
66631         Use free+malloc instead of realloc, as the storage doesn't need
66632         to be preserved and it's clearer and can be more efficient that way.
66633         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66634         * lib/xreadlink.h (xreadlink): Update prototype.
66635
66636 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66637
66638         * lib/xgetcwd.c: Revert some of the previous change; intead,
66639         fix the HAVE_GETCWD_NULL code to behave more like the
66640         !HAVE_GETCWD_NULL code used to.
66641
66642         Include "xalloc.h".
66643         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66644         invoke xalloc_die.
66645
66646 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66647
66648         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66649         sys/param.h, as pathmax.h includes them.
66650
66651 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66652
66653         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66654         (jm_PREREQ_XGETCWD): New macro.
66655
66656         * m4/getcwd.m4: New file.
66657
66658 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66659
66660         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66661         like the HAVE_GETCWD_NULL code.
66662         Include pathmax.h if not HAVE_GETCWD.
66663         Do not include xalloc.h.
66664         (INITIAL_BUFFER_SIZE): New symbol.
66665         Do not use xmalloc / xrealloc, since the caller is responsible for
66666         handling errors.  Preserve errno around `free' during failure.
66667         Do not overrun buffer when using getwd.
66668
66669 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66670
66671         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66672         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66673         getcwd (NULL, 0).
66674
66675 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66676
66677         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66678         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66679         spotted by Jim Meyering.
66680
66681 2001-09-03  Jim Meyering  <meyering@lucent.com>
66682
66683         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66684         failure.
66685
66686 2001-09-02  Jim Meyering  <meyering@lucent.com>
66687
66688         * lib/error.c: Update from GNU libc.
66689
66690 2001-09-01  Jim Meyering  <meyering@lucent.com>
66691
66692         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66693         Used by df.
66694
66695 2001-09-01  Jim Meyering  <meyering@lucent.com>
66696
66697         * lib/xreadlink.c: New file.
66698         * lib/xreadlink.h: New file.
66699         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66700         xreadlink.h.
66701
66702         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66703         doesn't conflict with sparc Solaris 7's definition in
66704         /usr/include/sys/int_types.h.
66705
66706         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66707         files.
66708         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66709         and strncasecmp as r-values.  Unixware didn't have declarations.
66710
66711 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66712
66713         * lib/xstrtol.h: Add copyright notice.
66714         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66715         LONGINT_INVALID_SUFFIX_CHAR.
66716
66717 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66718
66719         * lib/xstrtol.c (strtoimax): New decl.
66720
66721 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66722
66723         * lib/xgetcwd.c: Don't include pathmax.h.
66724         Include stdlib.h and unistd.h if available.
66725         Include xalloc.h.
66726         (xmalloc, xstrdup, free): Remove decls.
66727         (xgetcwd): Don't assume sizes fit in unsigned.
66728         Check for overflow when computing sizes.
66729         Simplify reallocation code.
66730
66731 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66732
66733         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66734         a directory's st_size can have an arbitrary value, so the old
66735         usage could waste an arbitrary amount of memory.  All uses
66736         changed.
66737         * lib/savedir.h: Update prototype.
66738
66739 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66740
66741         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66742
66743         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66744         old strtoimax.c.
66745
66746         Also, make the following further changes to make this file's
66747         configuration more similar to that of strtol.c:
66748         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66749         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66750         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66751         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66752         changed to signed values.
66753
66754         And make the following changes as well:
66755         Fix copyright notice, as 1999 was missing.
66756         (verify): New macro.
66757         (strtoimax): Check sizes at compile-time, not run-time.
66758         Prefer strtol to strtoll if both work.
66759         (main): Remove; it was not that useful and was a pain to maintain.
66760
66761         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66762
66763 2001-08-31  Jim Meyering  <meyering@lucent.com>
66764
66765         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66766         Use an initial, malloc'd, buffer of length 128 rather than
66767         a statically allocated one of length 1024.
66768
66769 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66770
66771         Simplify code, partly by assuming autoconf 2.52 semantics.
66772
66773         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66774
66775         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66776         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66777         All uses removed.
66778         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66779         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66780         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66781         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66782         jm_AC_HEADER_INTTYPES_H.
66783         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66784
66785         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66786
66787         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66788         Quote first arg of AC_DEFUN.
66789         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66790         since they are needed to parse the include file even if we need
66791         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66792         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66793         but with opposite signedness.
66794
66795 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66796
66797         Merge 'exclude' changes from tar 1.13.22.
66798         This fixes one or two unlikely storage allocation overflow bugs,
66799         but doesn't change user-visible behavior otherwise.
66800
66801 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66802
66803         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66804         (jm_PREREQ_EXCLUDE): New macro.
66805
66806 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66807
66808         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66809         tm to be declared.
66810
66811 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66812
66813         * lib/hash.c: Remove '2001' from copyright notice.
66814
66815 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66816
66817         * lib/full-write.h: New file.
66818         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66819         * lib/full-write.c: Correct credits, as cccp.c no longer
66820         exists and anyway it was so heavily changed from the old cccp
66821         code as to be unrecognizable.  Include full-write.h.
66822         (full_write) Return size_t, with short writes meaning failure.
66823         All callers changed.  This fixes a bug with large buffers
66824         on 64-bit hosts.
66825         * lib/utime.c: Include full-write.h.
66826
66827 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66828
66829         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
66830         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
66831         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
66832         Include if available.
66833         (<xalloc.h>): Include
66834         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
66835         (verify): New macro.  Use it to verify that EXCLUDE macros do not
66836         collide with FNM macros.
66837         (struct patopts): New struct.
66838         (struct exclude): Use it, as exclude patterns now come with options.
66839         (new_exclude): Support above changes.
66840         (new_exclude, add_exclude_file):
66841         Initial size must now be a power of two to simplify overflow checking.
66842         (free_exclude, fnmatch_no_wildcards): New function.
66843         (excluded_filename): No longer requires options arg, as the options
66844         are determined by add_exclude.  Now returns bool, not int.
66845         (excluded_filename, add_exclude):
66846         Add support for the fancy new exclusion options.
66847         (add_exclude, add_exclude_file): Now takes int options arg.
66848         Check for arithmetic overflow when computing sizes.
66849         (add_exclude_file): xrealloc might modify errno, so don't
66850         realloc until after errno might be used.
66851
66852         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
66853         New macros.
66854         (free_exclude): New decl.
66855         (add_exclude, add_exclude_file): Now takes int options arg.
66856         (excluded_filename): No longer requires options arg, as the options
66857         are determined by add_exclude.  Now returns bool, not int.
66858
66859 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66860
66861         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
66862
66863 2001-08-27  Jim Meyering  <meyering@lucent.com>
66864
66865         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
66866
66867         * lib/version-etc.c (N_): Remove definition.
66868         Revert most of last change.
66869         Instead, simply don't mark the `Copyright...' string for translation.
66870         Based on advice from Paul Eggert.
66871
66872         * lib/strtoxmax.c: Tweak comment.
66873
66874 2001-08-26  Jim Meyering  <meyering@lucent.com>
66875
66876         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
66877
66878         * m4/xstrtoimax.m4: New file.
66879         * m4/xstrtoumax.m4: Add comments explaining why we
66880         AC_REPLACE_FUNCS(strtol).
66881
66882 2001-08-26  Jim Meyering  <meyering@lucent.com>
66883
66884         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
66885         of copyright with `%s' so translators don't get an untranslated
66886         message in 2002.
66887         (COPYRIGHT_YEAR): Define.
66888         (version_etc): Use fprintf rather than fputs.
66889         Suggestion from Ulrich Drepper.
66890
66891         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
66892
66893         * lib/strtoll.c: New file, from GNU libc.
66894         * lib/xstrtoimax.c: New file.
66895
66896         * lib/xstrtol.h: Add xstrtoimax.
66897         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
66898         * lib/strtoimax.c: New file.  Likewise, but first define
66899         STRTOUXMAX_SIGNED.
66900
66901         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
66902         ...
66903         * lib/strtoxmax.c: ... then renamed to this.
66904
66905 2001-08-18  Paul Eggert  <eggert@twinsun.com>
66906
66907         * m4/inttypes.m4: Add AC_PREREQ(2.13).
66908         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
66909         (jm_AC_TYPE_INTMAX_T): New macro.
66910         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
66911
66912         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
66913
66914         * m4/longlong.m4: Renamed from ulonglong.m4.
66915         * m4/inttypes.m4: Renamed from inttypes_h.m4.
66916         * m4/uintmax_t.m4: Removed.
66917
66918 2001-08-13  Paul Eggert  <eggert@twinsun.com>
66919
66920         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
66921         Port to Solaris 8, where 'sed' requires a space after the 'r'
66922         command, and where sh dislikes "$/".  Clean up the spacing a bit.
66923         Redirect output to $tmp just once.
66924
66925 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
66926
66927         * lib/addext.c (<errno.h>): Include.
66928         (errno): Declare if not defined.
66929         (addext): Work correctly when pathconf returns -1 and leaves
66930         errno alone because there is no limit.  Also, work even if
66931         pathconf returns a value greater than SIZE_MAX.
66932
66933 2001-08-12  Jim Meyering  <meyering@lucent.com>
66934
66935         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
66936         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
66937         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
66938         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
66939         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
66940         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
66941         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
66942         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
66943         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
66944         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
66945         utime.m4, utimes.m4, xstrtoumax.m4:
66946         Quote the first argument in each use of AC_DEFUN.
66947
66948 2001-08-12  Jim Meyering  <meyering@lucent.com>
66949
66950         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
66951         Simply `return getcwd (NULL, 0);'.
66952         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
66953         Use 1300 as initial value for length, not PATH_MAX.
66954
66955         * lib/pathmax.h: Clean up cpp syntax.
66956
66957 2001-08-12  Jim Meyering  <meyering@lucent.com>
66958
66959         * lib/gettimeofday.c: New file.
66960         * lib/gtod.h: New file.
66961         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
66962
66963 2001-08-05  Jim Meyering  <meyering@lucent.com>
66964
66965         * m4/jm-macros.m4: Require autoconf-2.52.
66966
66967 2001-08-04  Jim Meyering  <meyering@lucent.com>
66968
66969         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
66970         stmt, to get in sync with glibc.
66971
66972 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66973
66974         The following changes are from gettext 0.10.39 as maintained by
66975         Bruno Haible.
66976
66977         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
66978         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
66979         with inverted sense.  All uses changed.
66980
66981         * lib/mbswidth.c: Don't include <limits.h>.
66982         Include <stdlib.h> and <string.h> unconditionally.
66983         (iswcntrl, mbsinit, ISCNTRL): New macros.
66984         (mbsnwidth): Use K&R style function declarations.
66985         Don't bother checking for MB_LEN_MAX == 1, since the compiler
66986         can optimize it when MB_CUR_MAX == 1.
66987         The width of control characters is zero, not 1.
66988
66989 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66990
66991         The following changes are from gettext 0.10.39 as maintained by
66992         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
66993
66994         * m4/codeset.m4: Upgrade to serial AM1.
66995         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
66996         all uses changed.  Quote first arg of AC_DEFUN.
66997         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
66998
66999         * m4/iconv.m4: Upgrade to serial AM2.
67000         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
67001         Add --with-libconv-prefix.
67002         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
67003         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
67004         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
67005         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
67006         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
67007
67008         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
67009         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
67010         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
67011         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
67012         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
67013         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
67014         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67015         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
67016         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67017
67018         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
67019         string.h any more.
67020
67021         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
67022         not the default value.
67023
67024         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
67025         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
67026         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
67027         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
67028         Also check for iswcntrl, used for wcwidth fallback.
67029         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
67030         to Autoconf 2.13.
67031
67032 2001-08-03  Jim Meyering  <meyering@lucent.com>
67033
67034         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
67035         as it was in the original.  Reported by Paul Eggert.
67036
67037 2001-07-16  Jim Meyering  <meyering@lucent.com>
67038
67039         * m4/gettimeofday.m4: New file.
67040         Prompted by a report from Bernhard Baehr.
67041
67042 2001-07-15  Jim Meyering  <meyering@lucent.com>
67043
67044         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
67045         stuff. Now it's in ../Makefile.cfg.
67046
67047 2001-07-15  Jim Meyering  <meyering@lucent.com>
67048
67049         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
67050         (BUILT_SOURCES): Add unlocked-io.h.
67051         (io_functions): Define.
67052         (unlocked-io.h): New rule.
67053         (DISTCLEANFILES): Add unlocked-io.h.
67054         (all-local): Depend on unlocked-io.h, to ensure it is created.
67055
67056         * lib/unlocked-io.hin: New file
67057
67058         * lib/regex.c: Update from glibc.
67059
67060 2001-07-05  Jim Meyering  <meyering@lucent.com>
67061
67062         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
67063         recommendation.
67064         (libfetish_a_SOURCES): Put all .h files here instead.
67065         Remove a thus-exposed (better checks in automake) duplicate and
67066         two unnecessary .h files.
67067
67068 2001-07-04  Jim Meyering  <meyering@lucent.com>
67069
67070         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
67071         that generates jm-glibc-io.m4 so that it doesn't trigger any make
67072         distcheck failure.
67073
67074 2001-07-02  Jim Meyering  <meyering@lucent.com>
67075
67076         The following changes were prompted by suggestions from Bruno Haible.
67077
67078         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
67079         is now generated.
67080         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
67081         definition of EXTRA_DIST.
67082         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
67083         ensure that the generated file is created/updated whenever the list
67084         of $(unlocked_functions) is changed.
67085         (jm-glibc-io.m4): New rule.
67086         (unlocked-io.h): New rule -- currently unused.
67087
67088 2001-06-24  Jim Meyering  <meyering@lucent.com>
67089
67090         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
67091         unmatched right bracket, rather than kludging it with an extra,
67092         falsely-matching quote in a comment.  Patch by Akim Demaille.
67093
67094 2001-06-11  Jim Meyering  <meyering@lucent.com>
67095
67096         * lib/regex.c: Update from GNU libc.
67097
67098 2001-05-27  Jim Meyering  <meyering@lucent.com>
67099
67100         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
67101         Check for ut_type in struct utmp.
67102
67103 2001-05-27  Jim Meyering  <meyering@lucent.com>
67104
67105         * lib/readutmp.h (UT_TYPE): Define.
67106
67107 2001-05-24  Jim Meyering  <meyering@lucent.com>
67108
67109         * lib/argmatch.c: Include "quote.h".
67110         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
67111         quote function.  Reported by Göran Uddeborg.
67112
67113 2001-05-22  Jim Meyering  <meyering@lucent.com>
67114
67115         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
67116         now that we use the package-supplied version unconditionally.
67117         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
67118
67119 2001-05-21  Jim Meyering  <meyering@lucent.com>
67120
67121         * m4/regex.m4: Change a couple backticks to single quotes to avoid
67122         shell syntax errors.
67123
67124 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67125
67126         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
67127
67128 2001-05-20  Paul Eggert  <eggert@twinsun.com>
67129
67130         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
67131         Don't bother to check library strftime, since
67132         we'll be using our own my_strftime function anyway.
67133         Define my_strftime instead of strftime.
67134
67135 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
67136
67137         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
67138         which is not yet declared.
67139
67140 2001-05-15  Jim Meyering  <meyering@lucent.com>
67141
67142         * m4/regex.m4: Use proper quoting so brackets appear in the test
67143         program.
67144         Reported by, and with help from, Bruno Haible.
67145
67146 2001-05-13  Jim Meyering  <meyering@lucent.com>
67147
67148         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
67149         undefined.
67150
67151 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67152
67153         dirname code cleanup.  base_name now behaves more compatibly
67154         with POSIX basename when given file names that have trailing
67155         slashes, and similarly for dir_name.  Add new primitives
67156         base_len and dir_len.  Put the directory-name-related decls
67157         into dirname.h.
67158
67159         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
67160         * lib/backupfile.c (base_name): Likewise.
67161         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
67162         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
67163         * lib/makepath.c (strip_trailing_slashes): Likewise.
67164         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
67165         ISSLASH): Likewise.
67166         * lib/rename.c (strip_trailing_slashes): Likewise.
67167         * lib/same.c (base_name): Likewise.
67168         * lib/stripslash.c (ISSLASH): Likewise.
67169
67170         * lib/addext.c: Include <dirname.h> after size_t is defined.
67171         * lib/backupfile.c: Likewise.
67172
67173         * lib/addext.c (addext): Use base_len to trim redundant
67174         trailing slashes instead of doing it ourselves.
67175         But do not trim the last slash if it is not redundant.
67176
67177         * lib/backupfile.c (find_backup_file_name,
67178         max_backup_version): Use base_len instead of rolling it ourselves.
67179         Handle the case of "" and (on DOS) "C:" correctly.
67180
67181         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
67182         needed. Include <string.h>, <dirname.h>.
67183         (base_name): Allow file names ending in slashes, other than names
67184         that are all slashes.  In this case, return the basename followed
67185         by the slashes.  This is more general, and can be used in places
67186         where the original base_name purposely had an assertion failure.
67187         (base_len): New function.
67188
67189         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
67190         Do not include <assert.h>; no longer needed.
67191         Include xalloc.h.
67192         (memrchr): Remove decl.
67193         (dir_name_r): Remove.
67194         (dir_len): Renamed from dirlen.  All callers changed.
67195         Rewrite in terms of base_name, for simplicity and consistency.
67196         (dir_name): Never return NULL.  All callers changed.
67197         Do not include <stdlib.h> in test program; no longer needed.
67198         return 0; is fine for test program.
67199
67200         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
67201         New macros.
67202         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
67203
67204         * lib/path-concat.c (path_concat): Use base_len to compute
67205         base length, not strlen; this means we cannot rely on memcpy
67206         to null-terminate.
67207
67208         * lib/same.c (STREQ): Remove.
67209         (same_name): Handle the case where the basename ends in trailing '/'.
67210
67211         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
67212         a slash was stripped.  Do not strip the last slash after a
67213         file system prefix.
67214
67215 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67216
67217         * lib/Makefile.am (libfetish_a_SOURCES):
67218         Add strftime.c, since we now compile it on all hosts.
67219
67220         * lib/strftime.c (my_strftime):
67221         Define to nstrftime if emacs, but only if my_strftime is not defined.
67222         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
67223         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
67224         Add one more extra argument: a nanoseconds value.
67225         All uses changed.
67226         (ns): New macro.
67227         (my_strftime function): Add %N format.
67228         (emacs_strftimeu): Renamed from emacs_strftime,
67229         with extra ut argument.
67230
67231 2001-05-09  Paul Eggert  <eggert@twinsun.com>
67232
67233         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
67234
67235 2001-04-21  Jim Meyering  <meyering@lucent.com>
67236
67237         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
67238         doesn't interfere.
67239
67240 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67241
67242         * m4/ftruncate.m4: Check for chsize.
67243         Link with ftruncate.o unconditionally if ftruncate is missing.
67244         This was required when cross-compiling to i586-mingw32msvc.
67245
67246 2001-04-08  Jim Meyering  <meyering@lucent.com>
67247
67248         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
67249         recomputed; that's necessary when the offset spans a DST transition.
67250         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
67251
67252 2001-04-02  Jim Meyering  <meyering@lucent.com>
67253
67254         * lib/regex.h, regex.c: Update from GNU libc.
67255
67256 2001-03-24  Jim Meyering  <meyering@lucent.com>
67257
67258         * m4/jm-macros.m4: Require autoconf-2.49d.
67259
67260 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
67261
67262         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
67263
67264 2001-03-19  Paul Eggert  <eggert@twinsun.com>
67265
67266         * lib/version-etc.c (version_etc_copyright): Update to 2001.
67267
67268 2001-03-17  Jim Meyering  <meyering@lucent.com>
67269
67270         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
67271         now that the version in autoconf is equivalent.
67272         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
67273
67274         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
67275         Suggestion from Akim Demaille.
67276
67277         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
67278         (jm_PREREQ_TEMPNAME): New function.
67279
67280 2001-03-16  Paul Eggert  <eggert@twinsun.com>
67281
67282         * lib/tempname.c (uint64_t): Define to uintmax_t if
67283         not defined, and if UINT64_MAX is not defined.
67284         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
67285         Reported by John David Anglin.
67286
67287 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
67288
67289         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
67290         resolve alias if codeset is empty.
67291         * lib/config.charset (BeOS): Use wildcard syntax.
67292
67293 2001-03-13  Jim Meyering  <meyering@lucent.com>
67294
67295         * lib/path-concat.c (path_concat)
67296         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
67297         concatenating e.g., `C:' and `foo'.
67298         From Bruno Haible.
67299
67300 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67301
67302         * lib/localcharset.c (locale_charset): Don't use
67303         setlocale(LC_CTYPE,NULL). Don't return NULL.
67304         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
67305
67306 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67307
67308         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
67309         support for DOS/DJGPP.
67310
67311 2001-03-01  Paul Eggert  <eggert@twinsun.com>
67312
67313         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
67314         lacks mkstemp.  Compile our own tempname.c if we compile our own
67315         mkstemp.c, as mkstemp relies on tempname.
67316
67317 2001-03-01  Jim Meyering  <meyering@lucent.com>
67318
67319         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
67320         AH_VERBATIM really does output its argument verbatim.
67321
67322 2001-02-28  Paul Eggert  <eggert@twinsun.com>
67323
67324         * lib/Makefile.am (libfetish_a_SOURCES):
67325         Add dup-safer.c, fopen-safer.c.
67326         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
67327
67328         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
67329         * lib/unistd-safer.h: New files.
67330
67331 2001-02-25  Paul Eggert  <eggert@twinsun.com>
67332
67333         The mkstemp replacement is taken from glibc 2.2.2, with some
67334         portability fixes for use outside glibc, as follows:
67335
67336         * lib/tempname.c (struct_stat64): New macro.
67337         (direxists, __gen_tempname): Use it.
67338         This avoids a portability problem with Solaris 8.
67339
67340         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
67341         (<stddef.h>, <stdint.h>, <string.h>):
67342         Include only if STDC_HEADERS || _LIBC.
67343         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
67344         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
67345         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
67346         (__set_errno): Define this macro if <errno.h> doesn't.
67347         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
67348         Define these macros if <stdio.h> doesn't.
67349         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
67350         Define these macros if <sys/stat.h>
67351         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
67352         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
67353         __xstat64): Define if not _LIBC.
67354         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
67355         (__gen_tempname): Invoke gettimeofday only if
67356         HAVE_GETTIMEOFDAY || _LIBC;
67357         otherwise, fall back on plain "time".
67358         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
67359
67360         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
67361
67362         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
67363
67364 2001-02-18  Paul Eggert  <eggert@twinsun.com>
67365
67366         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
67367
67368 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67369
67370         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
67371         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
67372         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
67373         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67374
67375 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67376
67377         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
67378         Remove workaround macros for hosts that have mbrtowc but not
67379         mbstate_t, as we now insist on proper declarations for both
67380         before using mbrtowc.
67381
67382 2001-02-17  Jim Meyering  <meyering@lucent.com>
67383
67384         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
67385         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
67386         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
67387         UnixWare 7.1.1.
67388
67389         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
67390         rather than AC_CACHE_VAL.
67391
67392 2001-02-17  Jim Meyering  <meyering@lucent.com>
67393
67394         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
67395         around included file name.
67396
67397         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
67398
67399         * lib/strftime.c: Update from GNU libc (the only changes were to
67400         comments).
67401
67402 2001-02-17  Jim Meyering  <meyering@lucent.com>
67403
67404         * lib/regex.c: Update from libc.
67405
67406 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
67407
67408         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
67409         clash.
67410
67411 2001-02-16  Paul Eggert  <eggert@twinsun.com>
67412
67413         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
67414         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
67415         Reported by Mark Hounschell via Paul Eggert.
67416
67417 2001-02-07  Jim Meyering  <meyering@lucent.com>
67418
67419         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
67420
67421 2001-02-05  Jim Meyering  <meyering@lucent.com>
67422
67423         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
67424         it includes the patch required for `large file' support with at least
67425         HP-UX's 10.20 /bin/cc.
67426
67427 2001-02-03  Jim Meyering  <meyering@lucent.com>
67428
67429         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
67430         AS_IF, now that it works once again (mysteriously).
67431         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67432
67433 2001-01-30  Jim Meyering  <meyering@lucent.com>
67434
67435         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
67436         * m4/chown.m4: Rename conftestchown to conftest.chown.
67437         * m4/rename.m4: s/conftestdir/conftest.d1/ and
67438         s/conftestdir2/conftest.d2/.
67439         * m4/utimes.m4: s/conftestdata/conftest.data/
67440         Inspired by Pavel Roskin's change in autoconf.
67441
67442 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
67443
67444         * lib/config.charset: Update for FreeBSD 4.2.
67445
67446 2001-01-27  Jim Meyering  <meyering@lucent.com>
67447
67448         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
67449         a use of AS_IF.
67450         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67451
67452 2001-01-26  Jim Meyering  <meyering@lucent.com>
67453
67454         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
67455         quotearg.c includes it.
67456
67457 2001-01-26  Jim Meyering  <meyering@lucent.com>
67458
67459         * lib/quotearg.c: Include stddef.h.
67460         * lib/quote.c: Include stddef.h.
67461         Reported by Axel Kittenberger.
67462
67463         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
67464         line in double quotes so that it evokes a better diagnostic.
67465         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
67466         Reported by Axel Kittenberger.
67467
67468 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
67469
67470         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
67471         as if it was a `charset'.
67472
67473 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67474
67475         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
67476         has const.
67477
67478 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67479
67480         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
67481         to avoid a warning.  Add back 'const' to inptr.
67482
67483 2001-01-20  Jim Meyering  <meyering@lucent.com>
67484
67485         Be sure that headers are checked before used in code compiled
67486         for the type checks.
67487         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
67488         In place of that, invoke jm_CHECK_ALL_TYPES.
67489         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
67490         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
67491         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
67492         The check for ssize_t was mistakenly run before the test for unistd.h.
67493
67494         The configure-time check for stdbool.h was missing.
67495         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
67496         (jm_PREREQ_HASH): New function.
67497
67498 2001-01-17  Jim Meyering  <meyering@lucent.com>
67499
67500         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
67501         for autoconf-2.49c.
67502         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
67503
67504 2001-01-16  Jim Meyering  <meyering@lucent.com>
67505
67506         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
67507         From Bruno Haible.
67508
67509 2001-01-14  Jim Meyering  <meyering@lucent.com>
67510
67511         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
67512         foo and bar.  Create conftestdir/ in the script, not in the C code.
67513         Remove directories in the script, not in the C code.
67514         Remove conftestdir{,2} before trying to create the directory.
67515         Make the entire configure script fail if the mkdir fails.
67516
67517 2001-01-14  Jim Meyering  <meyering@lucent.com>
67518
67519         * lib/rename.c: New file.  From Volker Borchert.
67520         Include stdlib.h, string.h or strings.h, and xalloc.h.
67521         Use strip_trailing_slashes rather than open-coding it.
67522
67523 2001-01-03  Paul Eggert  <eggert@twinsun.com>
67524
67525         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
67526
67527 2001-01-03  Jim Meyering  <meyering@lucent.com>
67528
67529         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
67530         of local `inptr' to avoid warning with some system declarations of
67531         iconv.
67532
67533 2001-01-02  Volker Borchert  <bt@teknon.de>
67534
67535         * m4/rename.m4: New file.
67536         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
67537
67538 2001-01-01  Jim Meyering  <meyering@lucent.com>
67539
67540         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
67541         even on systems with utmpx.h.  It's necessary for the declaration of
67542         utmp's ut_user member.  Reported by Andreas Jaeger.
67543
67544         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
67545         available. They are required for the declarations of getgrgid and
67546         getpwuid resp.
67547         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
67548         Reported by Andreas Jaeger.
67549
67550 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
67551
67552         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
67553         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
67554         so `make install' also works in VPATH builds.
67555
67556 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
67557
67558         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
67559         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
67560         can be used in subdirectories.
67561
67562 2000-12-29  Paul Eggert  <eggert@twinsun.com>
67563
67564         * lib/modechange.c: Do not assume that mode_t uses the
67565         traditional octal encoding.  E.g. "chmod 1 FOO" should set
67566         the other-execute bit of FOO even if S_IXOTH != 1.
67567
67568         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
67569         WOTH, XOTH, ALLM): New macros.
67570         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
67571          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
67572         Use them.
67573         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
67574         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
67575         (mode_compile):
67576         No need to use uintmax_t; unsigned long is long enough.
67577         Don't bother to get suffix since we don't use it.
67578
67579 2000-12-26  Jim Meyering  <meyering@lucent.com>
67580
67581         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
67582         better with autoheader.
67583
67584 2000-12-24  Jim Meyering  <meyering@lucent.com>
67585
67586         * lib/hash.c (is_prime): Return explicit boolean values.
67587         (hash_get_first): Return NULL to appease Irix5.6's 89.
67588         Reported by Nelson Beebe.
67589
67590 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67591
67592         * lib/localcharset.c (locale_charset): Add support for Win32.
67593
67594 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67595
67596         * lib/physmem.h, lib/physmem.c: New files.
67597
67598         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67599         (noinst_HEADERS): Add physmem.h.
67600
67601         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67602         't' for compatibility with Solaris 8 sort.
67603
67604 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67605
67606         * lib/config.charset: Add support for BeOS.
67607
67608 2000-12-17  Jim Meyering  <meyering@lucent.com>
67609
67610         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67611         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67612
67613 2000-12-16  Jim Meyering  <meyering@lucent.com>
67614
67615         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67616         N and M) would have treated it like `chown N:N FILE'.
67617
67618         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67619
67620 2000-12-16  Jim Meyering  <meyering@lucent.com>
67621
67622         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67623         SHELLS_FILE to a file name that's useful on djgpp systems.
67624         Include stdlib.h.
67625         (ADDITIONAL_DEFAULT_SHELLS): Define.
67626         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67627         Based mostly on a patch from Prashant TR.
67628
67629 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67630
67631         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67632         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67633         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67634
67635 2000-12-08  Andreas Schwab  <schwab@suse.de>
67636
67637         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67638         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67639
67640 2000-12-07  Jim Meyering  <meyering@lucent.com>
67641
67642         * lib/stripslash.c (ISSLASH): Define.
67643         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67644         `/'.
67645         From Prashant TR.
67646
67647         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67648         (dir_name_r): Declare this function as static.
67649         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67650         manifest itself on a name containing a mix of slashes and
67651         backslashes.
67652         Make this function work with names starting with a DOS-style
67653         drive letter and colon prefix.
67654         (dir_name): Append `.' if necessary.
67655         Based mostly on patches from Prashant TR and Eli Zaretskii.
67656
67657         * lib/dirname.h (dir_name_r): Remove prototype.
67658
67659 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67660
67661         * m4/off_t-format.m4: Remove this file.
67662         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67663
67664 2000-12-06  Jim Meyering  <meyering@lucent.com>
67665
67666         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67667         replacement strtoull, we may well need the replacement strtoul, too.
67668         Check for declarations of strtoul and strtoull.
67669         Check for strtol.  Mainly as a cue to cause automake to include
67670         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67671         Check for limits.h -- strtol.c needs it.
67672
67673 2000-12-05  Jim Meyering  <meyering@lucent.com>
67674
67675         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67676
67677 2000-12-04  Jim Meyering  <meyering@lucent.com>
67678
67679         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67680         Also include memory.h, stdlib.h, unistd.h if appropriate.
67681         Reported by Andreas Jaeger (conflicting declaration of malloc).
67682
67683 2000-12-02  Jim Meyering  <meyering@lucent.com>
67684
67685         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67686         * m4/jm-macros.m4 (jm_MACROS): require it.
67687
67688 2000-12-02  Jim Meyering  <meyering@lucent.com>
67689
67690         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67691
67692 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67693
67694         * lib/memrchr.c: Include <config.h> before any system include file.
67695
67696 2000-11-30  Jim Meyering  <meyering@lucent.com>
67697
67698         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67699
67700 2000-11-30  Jim Meyering  <meyering@lucent.com>
67701
67702         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67703
67704 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67705
67706         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67707
67708 2000-11-26  Jim Meyering  <meyering@lucent.com>
67709
67710         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67711
67712 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67713
67714         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67715         size of (size_t) -1; it's not portable.
67716
67717 2000-11-17  Jim Meyering  <meyering@lucent.com>
67718
67719         * lib/strstr.c: Update from GNU libc.
67720
67721 2000-11-17  Akim Demaille  <akim@epita.fr>
67722
67723         * lib/obstack.h: Formatting changes.
67724         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67725         prevent type checking.
67726         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67727         cast the value to (void *): assigning a `foo *' to a `void *'
67728         variable is valid.
67729         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67730
67731 2000-11-16  Jim Meyering  <meyering@lucent.com>
67732
67733         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67734
67735 2000-11-11  Jim Meyering  <meyering@lucent.com>
67736
67737         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67738
67739 2000-11-10  Jim Meyering  <meyering@lucent.com>
67740
67741         * lib/obstack.h: Update from GNU libc.
67742         * lib/obstack.c: Likewise.
67743
67744 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67745
67746         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67747
67748 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67749
67750         * lib/getusershell.c (setusershell): Use rewind rather than
67751         fseek/fseeko, to avoid configuration hassles with fseeko.
67752         Don't bother opening SHELLS_FILE if shellstream is NULL;
67753         it's not necessary.
67754
67755 2000-11-05  Jim Meyering  <meyering@lucent.com>
67756
67757         * lib/makepath.h (make_dir): Declare.
67758         * lib/makepath.c (make_dir): Remove `static' attribute.
67759         Tweak a comment.
67760
67761 2000-11-04  Jim Meyering  <meyering@lucent.com>
67762
67763         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67764
67765 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67766
67767         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67768         last one in a bucket, advance to the next bucket.
67769
67770 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67771
67772         * lib/fnmatch.c: Do not comment out all the code if we are using
67773         the GNU C library, because in some cases we are replacing buggy
67774         code in the GNU C library itself.
67775
67776 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67777
67778         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67779         (regex_compile): Catch bogus \(\1\).
67780
67781 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67782
67783         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67784         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67785         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67786
67787 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67788
67789         * lib/error.h, getline.h, modechange.h:
67790         Remove "2000" from Copyright line, as the file hasn't been
67791         changed this year other than in the copyright notice.
67792
67793         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67794         was changed this year.
67795
67796 2000-10-29  Jim Meyering  <meyering@lucent.com>
67797
67798         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67799         renaming.
67800         * m4/ls-mntd-fs.m4: Likewise
67801
67802 2000-10-29  Jim Meyering  <meyering@lucent.com>
67803
67804         * lib/xstat.in: Fix grammar in comment.
67805
67806 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67807
67808         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67809         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67810         doesn't define __restrict_arr.
67811
67812 2000-10-28  Jim Meyering  <meyering@lucent.com>
67813
67814         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67815         (jm_PREREQ_MEMCHR): New function.
67816
67817 2000-10-28  Jim Meyering  <meyering@lucent.com>
67818
67819         * lib/memchr.c: Update from libc.
67820         Adjust for portability:
67821         [HAVE_STDLIB_H]: Include stdlib.h.
67822         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67823         Undef __memchr, too.
67824         [!weak_alias]: Define __memchr to memchr.
67825
67826         * lib/regex.c: Update from libc.
67827         * lib/regex.h: Likewise.
67828         * lib/getopt1.c: Likewise.
67829         * lib/memcmp.c: Likewise.
67830
67831         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
67832         Avoid using fseek, when possible -- it's broken by design.
67833         Patch by Ulrich Drepper.
67834
67835 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
67836
67837         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
67838         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
67839         Giving in to popular pressure to shut up the compiler with casts.
67840
67841 2000-10-26  Jim Meyering  <meyering@lucent.com>
67842
67843         * lib/strftime.c: Update from libc.
67844
67845 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
67846
67847         * regex.c: More `unsigned char' -> `re_char' changes.
67848         Also change several `int' into `re_wchar_t'.
67849         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
67850         (PUSH_FAILURE_POINTER): Don't cast any more.
67851         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
67852         We want GCC to complain, since this piece of code makes
67853         re_match non-reentrant, which *should* be fixed.
67854         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
67855         (EXTEND_BUFFER): Use RETALLOC.
67856         (SET_LIST_BIT): Don't cast.
67857         (re_wchar_t): New type.
67858         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
67859         that those two functions will always properly return.
67860         (IMMEDIATE_QUIT_CHECK): Cast to void.
67861         (analyse_first): Use recursion rather than an explicit stack.
67862         (re_compile_fastmap): Can't fail anymore.
67863         (re_search_2): Don't check re_compile_fastmap for failure.
67864         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
67865         Now also sets the new value (passed in a new argument).
67866         (re_match_2_internal): Use it.
67867         Also, use a new var `reg' of type size_t when looping through regs
67868         rather than reuse the inappropriate `mcnt'.
67869
67870 2000-10-25  Jim Meyering  <meyering@lucent.com>
67871
67872         * lib/obstack.c: Update from libc.
67873
67874 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
67875
67876         * regex.c (regex_compile): Change the way of handling a range from
67877         a char less than 256 to a char not less than 256.
67878
67879 2000-10-24  Andrew Innes  <andrewi@gnu.org>
67880
67881         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
67882         NT-Emacs only.
67883         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
67884         so that re_search functions only quit when callers expect them to.
67885
67886 2000-10-23  Jim Meyering  <meyering@lucent.com>
67887
67888         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
67889         wrong.  That set_locale call must not have any side effects.
67890         From Paul Eggert.
67891
67892 2000-10-22  Jim Meyering  <meyering@lucent.com>
67893
67894         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
67895         [CYCLIC]: Remove now-unused definition.
67896
67897         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
67898         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
67899         Suggestion from Ulrich Drepper.
67900
67901 2000-10-21  Jim Meyering  <meyering@lucent.com>
67902
67903         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
67904         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
67905         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
67906
67907 2000-10-21  Jim Meyering  <meyering@lucent.com>
67908
67909         * lib/dirname.c (memrchr): Declare if necessary.
67910         (dir_name): Remove the restriction that there be no
67911         trailing slashes.  Now, this code skips past them, effectively
67912         ignoring them.
67913         [TEST_DIRNAME] (main): New unit tests.
67914
67915         * lib/memrchr.c: New file from GNU libc.
67916         Undef __memrchr, too.
67917         [!weak_alias]: Define __memrchr to memrchr.
67918         Guard weak_alias use with `#ifdef weak_alias'.
67919
67920 2000-10-21  Jim Meyering  <meyering@lucent.com>
67921
67922         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
67923         (dir_name): Use dir_name_r.
67924         * lib/dirname.h (dir_name_r): Declare it.
67925
67926 2000-10-17  Jim Meyering  <meyering@lucent.com>
67927
67928         * lib/quote.h (PARAMS): Define and use.
67929         Reported by Akim Demaille.
67930
67931         * lib/getopt.c: Update from libc.
67932
67933 2000-10-16  Jim Meyering  <meyering@lucent.com>
67934
67935         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
67936         setlocale.
67937         From Jan Fedak.
67938
67939 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
67940
67941         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
67942
67943 2000-09-25  Jim Meyering  <meyering@lucent.com>
67944
67945         * lib/md5.h (rol): Define (from GnuPG).
67946
67947         * lib/sha.c: Give credit (GnuPG) where due.
67948         (M): Use rol rather than open-coding it.
67949         Add a FIXME comment.
67950
67951 2000-09-21  Jim Meyering  <meyering@lucent.com>
67952
67953         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
67954         Reported by Michael Stone.
67955
67956 2000-09-20  Jim Meyering  <meyering@lucent.com>
67957
67958         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
67959         (noinst_HEADERS): Add sha.h.
67960         Based on code from Scott G. Miller and from GnuPG.
67961
67962 2000-09-18  Jim Meyering  <meyering@lucent.com>
67963
67964         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
67965         LIBS. Otherwise, everyone ends up linking with -lelf for some
67966         configurations.
67967         Reported by Mike Stone.
67968
67969 2000-09-15  Jim Meyering  <meyering@lucent.com>
67970
67971         * lib/regex.c: Update from libc.
67972
67973 2000-09-10  Jim Meyering  <meyering@lucent.com>
67974
67975         * lib/getopt.c (_getopt_internal): Update from glibc.
67976
67977 2000-09-09  Jim Meyering  <meyering@lucent.com>
67978
67979         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
67980         think it should be used as a general replacement for isascii.
67981         * lib/fnmatch.c: Likewise.
67982         * lib/mbswidth.c: Likewise
67983         * lib/regex.c: Likewise.
67984
67985         Don't use atoi.
67986         * lib/userspec.c: Include sys/param.h and limits.h.
67987         Include xstrtol.h.
67988         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67989         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
67990         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
67991         UID, GID.  Check range.
67992
67993 2000-09-06  Jim Meyering  <meyering@lucent.com>
67994
67995         * lib/getopt.c (_getopt_internal): Update from glibc.
67996
67997 2000-08-30  Jim Meyering  <meyering@lucent.com>
67998
67999         * lib/strftime.c: Merge in changes from GNU libc.
68000
68001 2000-08-26  Jim Meyering  <meyering@lucent.com>
68002
68003         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
68004         * m4/fpending.m4: New file.
68005
68006 2000-08-26  Jim Meyering  <meyering@lucent.com>
68007
68008         * lib/closeout.c: Include "__fpending.h".
68009         (close_stdout_status): Return right away if there's nothing to flush.
68010
68011         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
68012         * lib/__fpending.c: New file.
68013         * lib/__fpending.h: New file.
68014
68015 2000-08-20  Jim Meyering  <meyering@lucent.com>
68016
68017         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
68018         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
68019         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
68020
68021 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
68022
68023         Improve fileutils installation on systems where running
68024         programs (like install) can't be unlinked.
68025         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
68026         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
68027
68028 2000-08-07  Paul Eggert  <eggert@twinsun.com>
68029
68030         Standardize on "memory exhausted" instead of "Memory exhausted"
68031         or "virtual memory exhausted".
68032         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
68033         "virtual memory exhausted".
68034         * lib/same.c (same_name): Invoke xalloc_die instead of printing
68035         our own message.
68036         * lib/userspec.c (parse_user_spec): Likewise.
68037         * lib/bumpalloc.h: comment fix
68038         * lib/same.c, userspec.c: Include xalloc.h.
68039
68040         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
68041         not char *const and pointing to a constant array.
68042         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
68043         (xrealloc): Comment fix.
68044
68045         * lib/userspec.c (parse_user_spec):
68046         Don't translate a message until just before returning,
68047         to avoid unnecessary translation.
68048
68049 2000-08-07  Jim Meyering  <meyering@lucent.com>
68050
68051         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
68052         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
68053         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
68054         getgroups.c, gethostname.c, getopt.h, group-member.c,
68055         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
68056         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
68057         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
68058         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
68059         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
68060         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
68061         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
68062         yesno.c: Back out Copyright date changes for each file with no change
68063         this year.  This eases coordination with other programs using the same
68064         source code modules.  From Paul Eggert.
68065
68066 2000-08-06  Paul Eggert  <eggert@twinsun.com>
68067
68068         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
68069         not char, for compatibility with glibc 2.1.3 strftime.c.
68070
68071 2000-08-03  Greg McGary  <greg@mcgary.org>
68072
68073         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
68074         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
68075         (EXTEND_BUFFER): Use them.
68076
68077 2000-08-01  Jim Meyering  <meyering@lucent.com>
68078
68079         * lib/dirname.c (ISSLASH): Define.
68080         (BACKSLASH_IS_PATH_SEPARATOR): Define.
68081         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
68082         both `\' and `/' may be use as path separators.
68083         Based on a patch from Prashant TR.
68084
68085 2000-07-31  Paul Eggert  <eggert@twinsun.com>
68086
68087         * lib/quotearg.c (quotearg_n_options): Don't make the initial
68088         slot vector a constant, since it might get modified.
68089
68090 2000-07-31  Jim Meyering  <meyering@lucent.com>
68091
68092         * lib/xmalloc.c: Use `virtual memory exhausted', not
68093         `Memory exhausted'.
68094         * lib/obstack.c (print_and_abort): Likewise.
68095
68096 2000-07-30  Paul Eggert  <eggert@twinsun.com>
68097
68098         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
68099         buffer, so that the caller can always quote one small
68100         component of a "memory exhausted" message in slot 0.
68101         From a suggestion by Jim Meyering.
68102
68103 2000-07-30  Jim Meyering  <meyering@lucent.com>
68104
68105         * lib/makepath.c (make_path): Quote the other instance, too.
68106
68107         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
68108         (STATIC_BUF_SIZE): Define.
68109         (quotearg_n_options): Use only statically allocated storage when
68110         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
68111         than STATIC_BUF_SIZE.
68112
68113 2000-07-29  Jim Meyering  <meyering@lucent.com>
68114
68115         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
68116         * lib/dirname.c (dir_name): Likewise.
68117
68118         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
68119         `/'.
68120
68121         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
68122         (dir_name): Assert that there are no trailing slashes.
68123
68124 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
68125
68126         * lib/mbswidth.h (mbswidth): Add a flags argument.
68127         (mbswidth): New declaration.
68128         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
68129         * lib/mbswidth.c (mbswidth): Add a flags argument.
68130         (mbsnwidth): New function.
68131
68132 2000-07-24  Jim Meyering  <meyering@lucent.com>
68133
68134         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
68135
68136 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68137
68138         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
68139
68140 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68141
68142         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
68143         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
68144         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
68145         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
68146         invoke multibyte primitives.
68147
68148 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68149
68150         * lib/quotearg.c:
68151         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
68152         so that mbstate_t is always defined.
68153
68154         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
68155         be 1 in at least one GCC installation, and this configuration
68156         error is likely to be common.  Ignoring MB_LEN_MAX hurts
68157         performance on hosts that have mbrtowc but have only unibyte
68158         locales, but I assume these hosts are rare.
68159
68160 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68161
68162         * lib/mbswidth.c (_XOPEN_SOURCE):
68163         Don't define; this causes problems on Solaris 7.
68164         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
68165
68166 2000-07-23  Jim Meyering  <meyering@lucent.com>
68167
68168         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
68169         too: getgrgid, getpwuid, getuid.
68170
68171 2000-07-23  Jim Meyering  <meyering@lucent.com>
68172
68173         * lib/basename.c (base_name): Add an assertion.
68174
68175 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
68176
68177         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
68178         shadow its mbsinit function.
68179
68180 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68181
68182         * lib/mbswidth.h: New file.
68183         * lib/mbswidth.c: New file.
68184         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
68185         (noinst_HEADERS): Add mbswidth.h.
68186
68187 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68188
68189         * lib/config.charset: Add support for FreeBSD. Improve support for
68190         HP-UX and IRIX 6.
68191
68192 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
68193
68194         * m4/mbswidth.m4: New file.
68195         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
68196
68197 2000-07-15  Jim Meyering  <meyering@lucent.com>
68198
68199         * lib/makepath.c: Include quote.h.
68200         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
68201         corresponding argument in a `quote (...)' call.
68202         Give better diagnostics.
68203
68204         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
68205         (noinst_HEADERS): Add quote.h.
68206
68207         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
68208         from tar's src/misc.c.
68209         * lib/quote.h: New file.  Prototypes for same.
68210
68211 2000-07-14  Paul Eggert  <eggert@twinsun.com>
68212
68213         From a suggestion by Bruno Haible.
68214         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
68215         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
68216         to decide whether to define the BeOS workaround macro;
68217         this adjusts to the change to AC_MBSTATE_T.
68218
68219 2000-07-14  Jim Meyering  <meyering@lucent.com>
68220
68221         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
68222         jm_AC_TYPE_UINTMAX_T.
68223
68224 2000-07-13  Paul Eggert  <eggert@twinsun.com>
68225
68226         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
68227
68228         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
68229         quotearg_buffer_restyled): Add support for
68230         clocale_quoting_style.  Undo previous change to
68231         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
68232         and "{RIGHT QUOTATION MARK}" msgids.
68233
68234 2000-07-10  Paul Eggert  <eggert@twinsun.com>
68235
68236         From a suggestion by Bruno Haible.
68237         * m4/mbstate_t.m4 (AC_MBSTATE_T):
68238         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
68239         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
68240         and mbstate_t, to a single-part test that simply defines mbstate_t.
68241         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
68242         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
68243
68244 2000-07-10  Jim Meyering  <meyering@lucent.com>
68245
68246         * m4/strerror_r.m4: Mirror the correction made in autoconf.
68247
68248         * m4/gnu-source.m4: Output to confdefs.h directly.
68249         Suggestion from Akim Demaille.
68250
68251 2000-07-09  Paul Eggert  <eggert@twinsun.com>
68252
68253         The old behavior of quoting `like this' doesn't look good with
68254         newer, ISO-style fonts.  See:
68255         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
68256
68257         Instead, quote "like this" by default.  Let the translator
68258         tailor the locale-specific quoting behavior by providing
68259         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
68260
68261         * lib/quotearg.c (N_): New macro.
68262         (gettext_default): New function.
68263         (quotearg_buffer_restyled): Use
68264         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
68265         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
68266
68267 2000-07-09  Jim Meyering  <meyering@lucent.com>
68268
68269         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
68270         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
68271
68272         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
68273         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
68274
68275 2000-07-09  Jim Meyering  <meyering@lucent.com>
68276
68277         * lib/Most files: Update copyright dates to include 2000.
68278
68279 2000-07-08  Jim Meyering  <meyering@lucent.com>
68280
68281         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
68282         if not defined.
68283         (xgethostname): Remove now-unnecessary #ifdef.
68284         Move declaration of `err' into loop where it's used.
68285
68286 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68287         and Bruno Haible  <haible@clisp.cons.org>
68288
68289         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
68290         only if the test for an object-type mbstate_t fails.  This
68291         prevents us from mistakenly reporting that mbstate_t is a
68292         system object type after we "#define mbstate_t int" to work
68293         around its lack.
68294
68295 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68296         and Bruno Haible  <haible@clisp.cons.org>
68297
68298         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
68299
68300 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68301
68302         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
68303         to strerror_r.
68304         Include <ctype.h> for use of isalpha.
68305
68306 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68307
68308         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
68309         by allocating a larger buffer. Test the gethostname return value for
68310         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
68311         returns an error and ENAMETOOLONG isn't defined.
68312
68313 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68314
68315         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
68316         dimension.
68317
68318 2000-07-04  Jim Meyering  <meyering@lucent.com>
68319
68320         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
68321         of the deprecated AC_CHECKING.
68322
68323 2000-07-04  Jim Meyering  <meyering@lucent.com>
68324
68325         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
68326         Reported by Bruno Haible.
68327
68328 2000-07-04  Jim Meyering  <meyering@lucent.com>
68329
68330         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
68331         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
68332         lacks mbrtowc.
68333
68334 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68335
68336         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
68337         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
68338
68339 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68340         and Bruno Haible  <haible@clisp.cons.org>
68341
68342         * lib/quotearg.c (mbrtowc):
68343         Assign to *pwc, and return 1 only if result is nonzero.
68344         (iswprint): Use ISPRINT when substituting our own mbrtowc.
68345
68346 2000-07-03  Jim Meyering  <meyering@lucent.com>
68347
68348         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
68349
68350 2000-07-03  Jim Meyering  <meyering@lucent.com>
68351
68352         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
68353         This is necessary to get a definition of e.g., UTMP_FILE on
68354         HP-UX 10.20.
68355         From Bob Proulx.
68356
68357 2000-07-02  Jim Meyering  <meyering@lucent.com>
68358
68359         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
68360
68361         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
68362         AC_LIBOBJ(function_name).
68363         * m4/chown.m4: Likewise.
68364         * m4/fnmatch.m4: Likewise.
68365         * m4/ftruncate.m4: Likewise.
68366         * m4/getgroups.m4: Likewise.
68367         * m4/getline.m4: Likewise.
68368         * m4/group-member.m4: Likewise.
68369         * m4/jm-macros.m4: Likewise.
68370         * m4/lstat.m4: Likewise.
68371         * m4/malloc.m4: Likewise.
68372         * m4/memcmp.m4: Likewise.
68373         * m4/nanosleep.m4: Likewise.
68374         * m4/putenv.m4: Likewise.
68375         * m4/realloc.m4: Likewise.
68376         * m4/regex.m4: Likewise.
68377         * m4/stat.m4: Likewise.
68378         * m4/strftime.m4: Likewise.
68379
68380 2000-07-02  Jim Meyering  <meyering@lucent.com>
68381
68382         * lib/quotearg.c (mbstate_t): Don't define here.
68383
68384 2000-07-02  Jim Meyering  <meyering@lucent.com>
68385
68386         * lib/nanosleep.c (SIGCONT): Define if not already defined.
68387
68388 2000-07-01  Jim Meyering  <meyering@lucent.com>
68389
68390         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
68391
68392 2000-07-01  Jim Meyering  <meyering@lucent.com>
68393
68394         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
68395         problem.
68396
68397 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68398
68399         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
68400         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
68401
68402 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68403
68404         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
68405         per change in ../m4/ls-mntd-fs.m4.
68406         (read_filesystem_list): Ignore symbolic links.
68407
68408 2000-06-29  Jim Meyering  <meyering@lucent.com>
68409
68410         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
68411         for declaration of strcmp.
68412
68413         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
68414
68415         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
68416         Avoid warning by casting result to `char *' to remove `const'.
68417
68418 2000-06-28  Jim Meyering  <meyering@lucent.com>
68419
68420         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
68421         included by quotearg.c, for which we perform this test.  From
68422         Bruno Haible.
68423
68424 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68425
68426         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
68427         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
68428         <utmpx.h> exists, put readutmp.o into LIBOBJS.
68429
68430 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68431
68432         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
68433
68434 2000-06-26  Paul Eggert  <eggert@twinsun.com>
68435
68436         savedir now sets errno on failure and invokes xmalloc to get memory.
68437         Fix a couple of other minor bugs while we're at it.
68438
68439         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
68440         (NAMLEN): Remove macro.
68441         (malloc, realloc): Remove decls.
68442         (stpcpy): Likewise.
68443         ("xalloc.h"): Include.
68444         (NAME_SIZE_DEFAULT): New macro.
68445         (savedir): Use xmalloc / xrealloc to allocate memory.
68446         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
68447         Skip "" directory entries.
68448         Use strlen to calculate directory entry length, since the old method
68449         is rarely used these days and isn't worth supporting.
68450         Don't use a pointer after freeing it.
68451         Check for integer overflow when calculating allocation size.
68452         Use memcpy to copy entries, instead of stpcpy.
68453         Set errno properly when returning NULL.
68454         Check for readdir error.
68455
68456 2000-06-26  Jim Meyering  <meyering@lucent.com>
68457
68458         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
68459
68460 2000-06-25  Jim Meyering  <meyering@lucent.com>
68461
68462         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
68463         Linux header bug when _XOPEN_SOURCE is defined to 500.
68464
68465 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68466
68467         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
68468         deficiency.
68469
68470 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68471
68472         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
68473         Include xalloc.h.
68474         Don't include <stdlib.h>.  Don't declare malloc, realloc.
68475
68476 2000-06-24  Jim Meyering  <meyering@lucent.com>
68477
68478         * m4/strerror_r.m4: Revive this file -- to try out an experimental
68479         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
68480         for which strerror does return char*, but which lacks a conveniently
68481         accessible declaration of the function.  If the compile-test says
68482         strerror_r doesn't work, then resort to a `run'-test that works on
68483         BeOS and segfaults on DEC Unix.
68484
68485 2000-06-24  Jim Meyering  <meyering@lucent.com>
68486
68487         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
68488
68489 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68490
68491         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
68492         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
68493
68494 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68495
68496         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
68497         (mbrtowc, mbstate_t): Define substitutes if
68498         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
68499         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
68500         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
68501
68502 2000-06-23  Jim Meyering  <meyering@lucent.com>
68503
68504         * m4/afs.m4: Add missing AC_MSG_RESULT.
68505         Reported by Bruno Haible.
68506
68507         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
68508         Suggestion from Bruno Haible.
68509
68510 2000-06-23  Jim Meyering  <meyering@lucent.com>
68511
68512         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
68513
68514 2000-06-21  Jim Meyering  <meyering@lucent.com>
68515
68516         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
68517
68518 2000-06-21  Jim Meyering  <meyering@lucent.com>
68519
68520         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
68521         (noinst_HEADERS): Add getstr.h.
68522
68523         * lib/getline.c (getstr): Move into a separate file.
68524         * lib/getstr.c (getstr): New file, extracted from getline.c, with
68525         the following changes: new parameter, delim2; both delim[12]
68526         parameters have type `int', not `char'.  The latter would lose
68527         with 8-bit delimiters.
68528         * lib/getstr.h: New file.
68529
68530 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68531
68532         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
68533         than 1024, return a memory chunk of least possible size, instead
68534         of size PATH_MAX + 2. In the loop, increment the size proportionally.
68535         Use free/xmalloc instead of xrealloc to avoid copying for very long
68536         paths.
68537
68538 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68539
68540         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
68541         the empty string.
68542
68543 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68544
68545         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
68546         address, not strdup.  Include <stdlib.h> and don't declare free().
68547
68548 2000-06-19  Jim Meyering  <meyering@lucent.com>
68549
68550         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
68551
68552 2000-06-18  Jim Meyering  <meyering@lucent.com>
68553
68554         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
68555
68556         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
68557         `checking whether...' message to be consistent with that of the
68558         lstat test.
68559
68560 2000-06-18  Jim Meyering  <meyering@lucent.com>
68561
68562         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
68563         Besides, these days every porting target provides a mkdir function.
68564
68565         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
68566         needed. (this snippet comes from src/system.h).
68567
68568 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
68569
68570         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
68571
68572 2000-06-15  Paul Eggert  <eggert@twinsun.com>
68573
68574         * lib/human.c (adjust_value): New function.
68575         (human_readable_inexact): Apply rounding style even when
68576         printing approximate values.
68577
68578 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68579
68580         * lib/human.c (human_readable_inexact): Allow an input block
68581         size that is not a multiple of the output block size, and vice versa.
68582         Reported by Piergiorgio Sartor.
68583
68584 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68585
68586         * lib/getdate.y (get_date): Apply relative times after time
68587         zone indicator, not before.  Reported by Todd A. Jacobs.
68588
68589 2000-06-13  Jim Meyering  <meyering@lucent.com>
68590
68591         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68592
68593         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68594
68595 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68596
68597         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68598
68599 2000-06-12  Jim Meyering  <meyering@lucent.com>
68600
68601         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68602         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68603         optional argument.
68604         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68605         the optional argument, `lib'.
68606
68607 2000-06-08  Jim Meyering  <meyering@lucent.com>
68608
68609         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68610
68611 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68612
68613         Rewrite largefile configuration so that we don't need to run
68614         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68615         AC_CANONICAL_HOST in configure.in -- jmm]
68616
68617         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68618         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68619         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68620         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68621         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68622         All uses changed.
68623         Instead of inspecting the output of getconf, try to compile the
68624         test program without and with the macro definition.
68625         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68626         for getconf.  Instead, check for the needed flags by compiling
68627         test programs.
68628
68629 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68630
68631         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68632
68633 2000-06-04  Jim Meyering  <meyering@lucent.com>
68634
68635         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68636         SunOS 4.1.4 for which gid_t is an unsigned type.
68637
68638 2000-06-03  Jim Meyering  <meyering@lucent.com>
68639
68640         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68641         now that autoconf requires that.
68642
68643         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68644         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68645         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68646
68647 2000-06-03  Jim Meyering  <meyering@lucent.com>
68648
68649         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68650
68651 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68652
68653         * m4/glibc21.m4: New file.
68654         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68655
68656 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68657
68658         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68659         newer, don't install charset.alias.
68660         * lib/config.charset: Change the Linux/glibc rules so they become empty
68661         on glibc-2.1 or newer.
68662
68663 2000-06-02  Jim Meyering  <meyering@lucent.com>
68664
68665         * lib/mountlist.c: Back out last change.  Instead, do this...
68666         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68667         me_dummy member using the same `ignore'-testing code.
68668         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68669         fs_type strings.
68670         From Mark D. Roth.
68671
68672 2000-05-29  Jim Meyering  <meyering@lucent.com>
68673
68674         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68675         mounts with the `ignore' attribute.  Based on a patch from
68676         Mark D. Roth.
68677
68678 2000-05-28  Jim Meyering  <meyering@lucent.com>
68679
68680         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68681         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68682         * m4/stat.m4: Likewise.
68683         * m4/lstat.m4: Likewise.
68684         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68685
68686         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68687         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68688
68689 2000-05-26  Jim Meyering  <meyering@lucent.com>
68690
68691         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68692
68693 2000-05-24  Jim Meyering  <meyering@lucent.com>
68694
68695         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68696         autoconf requires that.
68697         * m4/lib-check.m4: Likewise.
68698         * m4/jm-macros.m4: Likewise.
68699         * m4/strftime.m4: Likewise.
68700
68701         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68702         AC_CHECK_DECLS, now that autoconf requires that.
68703
68704 2000-05-22  Jim Meyering  <meyering@lucent.com>
68705
68706         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68707         * m4/lstat.m4: Likewise.
68708
68709 2000-05-22  Jim Meyering  <meyering@lucent.com>
68710
68711         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68712
68713 2000-05-20  Jim Meyering  <meyering@lucent.com>
68714
68715         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68716         (jm_PREREQ): Use it.
68717
68718 2000-05-18  Jim Meyering  <meyering@lucent.com>
68719
68720         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68721         back, too, since it may have been modified by allocate_entry.
68722         (hash_delete): Rewrite to use neither the assignment operator
68723         nor the comma operator in an if-expression.
68724
68725 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68726
68727         * lib/closeout.c:
68728         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68729         Remove; no longer needed.
68730         "quotearg.h": Add include.
68731         (file_name): Do not bother to explicitly initialize to NULL; it's less
68732         efficient on some hosts.
68733         (close_stdout_status): Remove test as to whether stdout was already
68734         closed; it breaks for the case "echo x | sort >&-".
68735         Quote file name colons.
68736         Do not assume that _("write error") lacks format strings.
68737
68738 2000-05-15  Jim Meyering  <meyering@lucent.com>
68739
68740         * lib/version-etc.c (version_etc_copyright): Update the copyright
68741         string used in all --version output.
68742
68743 2000-05-14  Jim Meyering  <meyering@lucent.com>
68744
68745         * lib/closeout.c (close_stdout_set_file_name): New function.
68746         (close_stdout_status): Use new file-scoped global.
68747         Return right away if fstat says the stdout file descriptor is invalid.
68748         * lib/closeout.h (close_stdout_set_file_name): Declare.
68749
68750 2000-05-10  Jim Meyering  <meyering@lucent.com>
68751
68752         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68753         (close_stdout_set_status): New function.
68754         * lib/closeout.h (close_stdout_set_status): Declare.
68755
68756 2000-05-09  Jim Meyering  <meyering@lucent.com>
68757
68758         * m4/gettext.m4: Rename this...
68759         * m4/libintl.m4: ...to this.
68760
68761 2000-05-08  Jim Meyering  <meyering@lucent.com>
68762
68763         * lib/long-options.c: Don't include closeout.h.
68764         (parse_long_options): Don't call close_stdout for --version.
68765
68766 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68767
68768         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68769         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68770         2.1.3 bug.  This avoids a clash when files like regex.c define
68771         _GNU_SOURCE.
68772
68773 2000-05-06  Jim Meyering  <meyering@lucent.com>
68774
68775         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68776         (AC_REPLACE_FUNCS): Add strnlen.
68777
68778         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68779         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68780
68781         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68782         AC_SEARCH_LIBS call for nanosleep.
68783         (LIB_NANOSLEEP): Set and AC_SUBST.
68784
68785 2000-05-06  Jim Meyering  <meyering@lucent.com>
68786
68787         * lib/strnlen.c: Undefine __strnlen and strnlen.
68788         [!weak_alias]: Define __strnlen to strnlen.
68789
68790         * lib/atexit.c: New file, from libiberty.
68791
68792 2000-05-06  Jim Meyering  <meyering@lucent.com>
68793
68794         * lib/closeout.c (close_stdout_status): Also check for errors on the
68795         stderr stream.
68796
68797 2000-05-05  Jim Meyering  <meyering@lucent.com>
68798
68799         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68800         AC_SEARCH_LIBS call for clock_gettime.
68801         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68802
68803         * m4/search-libs.m4: Update from autoconf.
68804
68805         su doesn't work on Solaris 2.6.
68806         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68807         <shadow.h>.  Reported by Dragos Harabor.
68808
68809 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68810
68811         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68812         memcpy instead of xmalloc, xrealloc, path_concat.
68813         (locale_charset): Treat empty environment variables as absent.
68814         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68815
68816 2000-05-04  Jim Meyering  <meyering@lucent.com>
68817
68818         * lib/getopt.c: Update from glibc.
68819         * lib/obstack.c: Likewise.
68820         * lib/obstack.h: Likewise.
68821         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68822         file
68823
68824         * lib/regex.h: Likewise.
68825         * lib/strndup.c: Likewise.
68826         * lib/strnlen.c: New file, from glibc.
68827
68828 2000-05-03  Jim Meyering  <meyering@lucent.com>
68829
68830         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
68831
68832 2000-05-02  Paul Eggert  <eggert@twinsun.com>
68833
68834         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
68835         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
68836         compile-time test, rather than inspecting host and OS, to
68837         decide whether to define _LARGEFILE_SOURCE.
68838
68839 2000-05-01  Jim Meyering  <meyering@lucent.com>
68840
68841         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
68842
68843         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
68844         Based on a patch from Bruno Haible.
68845
68846 2000-05-01  Jim Meyering  <meyering@lucent.com>
68847
68848         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
68849
68850 2000-04-29  Jim Meyering  <meyering@lucent.com>
68851
68852         * lib/path-concat.c: Declare strdup only if it's not defined.
68853         * lib/canon-host.c: Likewise.
68854
68855 2000-04-28  Jim Meyering  <meyering@lucent.com>
68856
68857         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
68858         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
68859         is included first, then limits.h is included by locale.h by libintl.h.
68860         From John David Anglin.
68861
68862 2000-04-25  Jim Meyering  <meyering@lucent.com>
68863
68864         * lib/makepath.c (S_IRWXUGO): Define.
68865         (make_path): Always perform explicit chmod if MODE specifies any
68866         of the `special' permission bits.  Prompted by a bug report against
68867         install from Mate Wierdl and Joost van Baal.
68868
68869 2000-04-18  Jim Meyering  <meyering@lucent.com>
68870
68871         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
68872         (jm_PREREQ): Use it.
68873
68874 2000-04-18  Jim Meyering  <meyering@lucent.com>
68875
68876         * lib/README: New file.
68877
68878         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
68879         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
68880
68881 2000-04-17  Jim Meyering  <meyering@lucent.com>
68882
68883         Get it right :-)
68884         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
68885         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
68886         Suggestion from Akim Demaille.
68887
68888 2000-04-17  Jim Meyering  <meyering@lucent.com>
68889
68890         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
68891         the definition of it to rpl_strftime also defined-away the system's
68892         declaration.
68893
68894 2000-04-15  Jim Meyering  <meyering@lucent.com>
68895
68896         Use `C' to denote so-called `contiguous' files, the same way
68897         that tar does.
68898         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
68899         (ftypelet): Use S_ISCTG.
68900         From Michael Deutschmann.
68901
68902 2000-04-14  Jim Meyering  <meyering@lucent.com>
68903
68904         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
68905         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
68906         clobbered.
68907
68908 2000-04-14  Jim Meyering  <meyering@lucent.com>
68909
68910         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
68911
68912 2000-04-13  Jim Meyering  <meyering@lucent.com>
68913
68914         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
68915         AH_VERBATIM to insert required #ifndef into config.h.in.
68916         Suggestion from Akim Demaille.
68917
68918 2000-04-12  Jim Meyering  <meyering@lucent.com>
68919
68920         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
68921         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
68922         Christian Krackowizer.
68923
68924         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
68925         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
68926         (AC_SYS_LARGEFILE): Require.
68927         (AM_C_PROTOTYPES): Require.
68928
68929 2000-04-08  Jim Meyering  <meyering@lucent.com>
68930
68931         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
68932         names don't conflict.  Reported by Eli Zaretskii.
68933
68934 2000-04-07  Jim Meyering  <meyering@lucent.com>
68935
68936         * lib/putenv.c: Move inclusion of errno.h so it follows that of
68937         sys/types.h, to work around system header problems on AIX 3.2.5.
68938         From Bruno Haible.
68939
68940 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
68941
68942         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
68943         bug.  Deal with the different error behavior of Irix iconv.
68944
68945 2000-04-05  Paul Eggert  <eggert@twinsun.com>
68946
68947         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
68948         IRIX if the installer said otherwise.
68949
68950 2000-04-05  Jim Meyering  <meyering@lucent.com>
68951
68952         Portability tweaks required for ultrix4.3.
68953         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
68954         (jm_CHECK_DECLS): Add getutent to the list of functions.
68955         (_jm_DECL_HEADERS): Add utmpx.h.
68956         From John David Anglin.
68957
68958         * m4/strftime.m4: Back out the 2000-04-02 change.
68959         Instead of that change, simply undefine putenv in the test program.
68960
68961 2000-04-05  Jim Meyering  <meyering@lucent.com>
68962
68963         Portability tweaks required for ultrix4.3.
68964         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
68965         getutent.
68966         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
68967         * lib/canon-host.c: Declare strdup.
68968         * lib/path-concat.c: Likewise.
68969         From John David Anglin.
68970
68971 2000-04-04  Jim Meyering  <meyering@lucent.com>
68972
68973         Be more DOS 8.3-friendly.
68974         * lib/ref-add.sin: Renamed from ref-add.sed.in.
68975         * lib/ref-del.sin: Renamed from ref-del.sed.in.
68976         * lib/Makefile.am: Reflect renaming.
68977         Reported by Eli Zaretskii.
68978
68979         Use a temporary file name that won't clash with `charset.alias'
68980         in the DOS 8.3 name space.
68981         * lib/Makefile.am (charset_tmp): Define.
68982         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
68983         (uninstall-local): Likewise.
68984         Reported by Eli Zaretskii.
68985
68986 2000-04-03  Jim Meyering  <meyering@lucent.com>
68987
68988         * m4/gettext.m4: Fix typo in comment.
68989
68990         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
68991         textutils/configure.in).  Suggestion from Paul Eggert.
68992         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
68993
68994 2000-04-02  Paul Eggert  <eggert@twinsun.com>
68995
68996         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
68997         variable in the shell rather than using putenv, which isn't
68998         portable.  This avoids the configure-time inter-test dependency
68999         on the potentially-renamed putenv function.
69000
69001 2000-03-30  Paul Eggert  <eggert@twinsun.com>
69002
69003         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
69004         before checking struct stat.st_blksize, so that
69005         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
69006
69007 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69008
69009         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
69010         since strftime.c uses HAVE_STRFTIME to decide whether to use
69011         the underlying strftime.
69012
69013 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69014
69015         * lib/time/strftime.c (my_strftime): Make sure we call the system
69016         strftime, not ourselves, when invoking the underlying strftime.
69017
69018 2000-03-24  Jim Meyering  <meyering@lucent.com>
69019
69020         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
69021         (charset_alias): Define.
69022         (install-exec-local): Factor out common code.
69023         (uninstall-local): Split lines longer than 80.
69024         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
69025         (SUFFIXES): Define.
69026         (.sed.in.sed): New rule.  Don't redirect directly to $@.
69027         (CLEANFILES): Add ref-add.sed and ref-del.sed.
69028
69029 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
69030
69031         * lib/config.charset: Output a line containing "Packages using this
69032         file".
69033         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
69034         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
69035         ref-del.sed): New rules.
69036
69037 2000-03-17  Jim Meyering  <meyering@lucent.com>
69038
69039         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
69040         Otherwise, include <strings.h>
69041
69042 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
69043
69044         * lib/unicodeio.c (utf8_wctomb): New function.
69045         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
69046         format instead of in UCS-4 with platform dependent endianness.
69047
69048 2000-03-10  Jim Meyering  <meyering@lucent.com>
69049
69050         * m4/lib-check.m4: Look for getspnam in -lgen, too.
69051         From Marco Franzen.
69052
69053 2000-03-07  Paul Eggert  <eggert@twinsun.com>
69054
69055         * lib/savedir.c (savedir): Work even if directory size is
69056         negative; this can happen with some screwy NFS configurations.
69057
69058 2000-03-06  Jim Meyering  <meyering@lucent.com>
69059
69060         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
69061         if it's NULL (because we ran out of memory).  From Bruno Haible.
69062
69063 2000-03-05  Jim Meyering  <meyering@lucent.com>
69064
69065         * lib/localcharset.c ("path-concat.h"): Include.
69066         (get_charset_aliases): Use path_concat instead of ANSI string
69067         concatenation.
69068
69069         * lib/unicodeio.h (PARAMS): Define.
69070         Use it to guard prototype.
69071
69072 2000-03-04  Jim Meyering  <meyering@lucent.com>
69073
69074         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
69075         for lib/localcharset.c.
69076
69077 2000-03-04  Jim Meyering  <meyering@lucent.com>
69078
69079         * lib/Makefile.am (install-exec-local): Create $(libdir) before
69080         installing into it.
69081         (uninstall-local): Uncomment this rule so `make distcheck' works
69082         once again.
69083
69084         * lib/unicodeio.c (<errno.h>): Include it.
69085         (errno): Declare if not defined.
69086
69087         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
69088
69089         * lib/config.charset: New version, incorporating remarks from a linux
69090         i18n mailing list.  From Bruno Haible.
69091
69092 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
69093
69094         * m4/codeset.m4: New file.
69095         * m4/iconv.m4: New file.
69096         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
69097
69098 2000-03-03  Jim Meyering  <meyering@lucent.com>
69099
69100         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
69101
69102 2000-03-02  Jim Meyering  <meyering@lucent.com>
69103
69104         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
69105         the messages come out on separate lines.
69106
69107         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
69108         rather than jm_CHECK_DECLARATIONS.
69109         * m4/decl.m4: Remove now-unused file.
69110
69111         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
69112         geteuid.
69113
69114 2000-03-02  Jim Meyering  <meyering@lucent.com>
69115
69116         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
69117
69118 2000-03-01  Jim Meyering  <meyering@lucent.com>
69119
69120         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
69121         * lib/unicodeio.c: Likewise.
69122
69123 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
69124
69125         * lib/config.charset: New file.
69126         * lib/localcharset.c: New file.
69127         * lib/unicodeio.h, lib/unicodeio.c: New files.
69128         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
69129         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
69130         (noinst_HEADERS): Add unicodeio.h.
69131         (all-local, install-exec-local, charset.alias): New targets.
69132
69133 2000-02-28  Paul Eggert  <eggert@twinsun.com>
69134
69135         * lib/quotearg.c (ALERT_CHAR): New macro.
69136         (quotearg_buffer_restyled): Use it.
69137
69138 2000-02-27  Jim Meyering  <meyering@lucent.com>
69139
69140         * m4/check-decl.m4: Add getenv to the list.
69141
69142 2000-02-27  Jim Meyering  <meyering@lucent.com>
69143
69144         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
69145         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
69146
69147         * lib/backupfile.c: Guard inclusion of stdlib.h with
69148         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
69149         Declare malloc if needed.
69150
69151         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
69152         `#ifndef HAVE_DECL..'
69153         now that autoconf always defines the HAVE_DECL_ symbols.
69154         * lib/human.c: Likewise.
69155         * lib/same.c: Likewise.
69156         * lib/strtoumax.c: Likewise.
69157
69158         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
69159         declaration check was not run.
69160         * lib/hash.c: Likewise.
69161         * lib/human.c: Likewise.
69162         * lib/same.c: Likewise.
69163         * lib/strtoumax.c: Likewise.
69164
69165         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
69166         `.', then first look up the entire `.'-containing string as a login
69167         name.
69168
69169 2000-02-23  Jim Meyering  <meyering@lucent.com>
69170
69171         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
69172         in place of my hack.
69173
69174 2000-02-18  Paul Eggert  <eggert@twinsun.com>
69175
69176         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
69177         (textint): New typedef.
69178         (parser_control): Member year changed from int to textint.
69179         All uses changed.
69180         (YYSTYPE): Removed; replaced by %union with int and textint members.
69181         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
69182         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
69183         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
69184         (tSNUMBER, tUNUMBER): Now of type <textintval>.
69185         (date, number, to_year): Use width of number in digits, not its value,
69186         to determine whether it's a 2-digit year, or a 2-digit time.
69187         (yylex): Store number of digits of numeric tokens.
69188         Reported by John Kendall.
69189
69190         (parser_control): Changed from struct parser_control to typedef (for
69191         consistency).  All uses changed.
69192
69193         (tID): Removed; not used.
69194         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
69195
69196 2000-02-14  Paul Eggert  <eggert@twinsun.com>
69197
69198         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
69199         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
69200
69201 2000-02-12  Jim Meyering  <meyering@lucent.com>
69202
69203         * lib/userspec.c (ISDIGIT): Define it.
69204         (isdigit): Remove definition.
69205         (is_number): Use ISDIGIT, not isdigit.
69206         <libintl.h>: Include.
69207         (_ and N_): Define.
69208         (parse_user_spec): Mark translatable strings.
69209
69210 2000-02-10  Jim Meyering  <meyering@lucent.com>
69211
69212         With these changes, nanosleep.[ch] are finally enough like the other
69213         lib/* replacement files to compile on a few more losing systems.
69214
69215         * lib/nanosleep.h: Don't include config.h.
69216         Remove prototype from declaration of nanosleep.
69217         (PARAMS): Remove now-unneeded definition.
69218         * lib/nanosleep.c: #undef nanosleep.
69219         (rpl_nanosleep): Rename from nanosleep.
69220
69221 2000-02-10  Jim Meyering  <meyering@lucent.com>
69222
69223         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
69224         gnu_nanosleep to rpl_nanosleep.
69225
69226 2000-02-09  Jim Meyering  <meyering@lucent.com>
69227
69228         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
69229         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
69230
69231 2000-02-08  Akim Demaille  <akim@epita.fr>
69232
69233         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
69234         `[' and `]' and remove uses of `changequote'.
69235         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
69236         (AC_SYS_LARGEFILE): Likewise.
69237         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69238         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
69239         of changequote.
69240         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
69241         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
69242         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
69243         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
69244
69245 2000-02-05  Jim Meyering  <meyering@lucent.com>
69246
69247         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
69248         Remove explicit use of AC_HEADER_TIME.  It is required by
69249         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
69250         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
69251         in autoconf whereby the expansion of the latter ended up preceding
69252         the expansion of its prerequisite, AC_HEADER_TIME.
69253         Reported by Volker Borchert.
69254
69255 2000-02-03  Jim Meyering  <meyering@lucent.com>
69256
69257         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
69258
69259 2000-02-03  Jim Meyering  <meyering@lucent.com>
69260
69261         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
69262         rather than with `#if HAVE_UTMPNAME'.
69263
69264 2000-02-02  Jim Meyering  <meyering@lucent.com>
69265
69266         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
69267         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
69268         Reported by Eli Zaretskii.
69269
69270 2000-02-01  Jim Meyering  <meyering@lucent.com>
69271
69272         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
69273
69274 2000-01-31  Jim Meyering  <meyering@lucent.com>
69275
69276         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
69277         functions.  Add the time.h and sys/time.h headers along with the
69278         AC_REQUIRE'ment of AC_HEADER_TIME.
69279
69280 2000-01-31  Jim Meyering  <meyering@lucent.com>
69281
69282         * lib/nanosleep.h (nanosleep): Guard declaration with
69283         `#if ! HAVE_DECL_NANOSLEEP'.
69284         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
69285         the declaration in that vendor's sys/timers.h.
69286         Reported by Christian Krackowizer.
69287
69288         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
69289         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
69290         (ISPRINT): Likewise.
69291         Reported by Tom Tromey.
69292
69293 2000-01-30  Jim Meyering  <meyering@lucent.com>
69294
69295         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
69296
69297         * m4/prereq.m4 (utmp_includes): Define.
69298         Check for ut_user and ut_name members in both struct utmpx
69299         and struct utmp.
69300
69301 2000-01-30  Jim Meyering  <meyering@lucent.com>
69302
69303         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
69304         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
69305         header files where only utmpx.ut_user is declared.
69306
69307         * lib/readutmp.h (UT_USER): Define.
69308
69309 2000-01-29  Jim Meyering  <meyering@lucent.com>
69310
69311         * m4/lib-check.m4: New file containing library-related checks from
69312         fileutils and sh-utils (textutils had none).
69313
69314 2000-01-28  Jim Meyering  <meyering@lucent.com>
69315
69316         * m4/perl.m4: Change format of warning message to look more like that
69317         from the missing script.  Suggestion from François Pinard.
69318
69319 2000-01-25  Jim Meyering  <meyering@lucent.com>
69320
69321         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
69322         well as time.h in the compile check.
69323         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
69324         Fix typo in cross-compiling case: s/yes/no/.
69325
69326 2000-01-23  Jim Meyering  <meyering@lucent.com>
69327
69328         * m4/jm-macros.m4: Move df-related tests here from
69329         fileutils/configure.in
69330
69331         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
69332         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
69333
69334         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
69335         s/space/ac_fsusage_space/.
69336         (jm_FILE_SYSTEM_USAGE): Take two parameters.
69337
69338         * m4/ftruncate.m4: New file (derived from part of
69339         fileutils/configure.in).
69340         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
69341         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
69342
69343         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
69344         AC_SUBST these here, rather than just in sh-util/configure.in, so
69345         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
69346         all the same.
69347         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
69348         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
69349         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
69350         (AC_SUBST(POW_LIBM)): Likewise.
69351         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
69352
69353 2000-01-23  Jim Meyering  <meyering@lucent.com>
69354
69355         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
69356         obstack.c.
69357
69358 2000-01-22  Jim Meyering  <meyering@lucent.com>
69359
69360         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
69361
69362         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
69363
69364         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
69365         configure.in
69366         (AC_CHECK_HEADERS): Likewise for sh-utils.
69367         (AC_CHECK_HEADERS): Likewise for textutils.
69368         Merge the three lists of headers.
69369
69370         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
69371         from fileutils' configure.in.
69372
69373         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
69374         code. Moved tests into their own function (_jm_DECL_HEADERS) in
69375         check-decl.m4.
69376
69377         * m4/check-decl.m4: Use #if rather than #ifdef.
69378         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
69379         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
69380         (_jm_DECL_HEADERS): Define new function.
69381         (jm_CHECK_DECLARATIONS): Require it.
69382
69383 2000-01-22  Jim Meyering  <meyering@lucent.com>
69384
69385         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
69386         [! HAVE_DECL_STRTOULL]: Declare strtoull.
69387         Required for some AIX systems.  Reported by Christian Krackowizer.
69388         [TESTING] (main): New function.
69389
69390         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
69391         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
69392         letters.
69393
69394         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
69395         iswprint.
69396
69397         * lib/strverscmp.c (ISDIGIT): Define.
69398         (strverscmp): Use ISDIGIT, not isdigit.
69399
69400 2000-01-19  Jim Meyering  <meyering@lucent.com>
69401
69402         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
69403         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
69404         defines `struct timespec' in <sys/time.h>
69405
69406         * m4/c-bs-a.m4: Remove uses of changequote altogether.
69407         Thanks to Akim for explaining.
69408
69409 2000-01-17  Paul Eggert  <eggert@twinsun.com>
69410
69411         * lib/nanosleep.c (nanosleep):
69412         Don't use SA_INTERRUPT to decide whether to call sigaction, as
69413         POSIX.1 doesn't require SA_INTERRUPT and some systems
69414         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
69415         it's been part of POSIX.1 since day 1 (in 1988).
69416
69417 2000-01-17  Jim Meyering  <meyering@lucent.com>
69418
69419         * lib/interlock: Remove unused file.  Reported by François Pinard.
69420
69421 2000-01-16  Paul Eggert  <eggert@twinsun.com>
69422
69423         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
69424         alert, backslash, formfeed, and vertical tab unnecessarily in
69425         shell quoting style.
69426
69427 2000-01-16  Jim Meyering  <meyering@lucent.com>
69428
69429         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
69430         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
69431         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
69432         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
69433
69434 2000-01-16  Jim Meyering  <meyering@lucent.com>
69435
69436         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
69437         because the latter didn't work.
69438
69439 2000-01-15  Jim Meyering  <meyering@lucent.com>
69440
69441         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
69442         (AC_REPLACE_FUNCS): Add memcpy and memset.
69443         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
69444         Add strpbrk.
69445         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
69446
69447 2000-01-12  Jim Meyering  <meyering@lucent.com>
69448
69449         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
69450         (jm_PREREQ): Use it.
69451         (jm_PREREQ_READUTMP): New macro.
69452         (jm_PREREQ): Use it.
69453
69454 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69455
69456         Quote multibyte characters correctly.
69457         * m4/c-bs-a.m4: New file.
69458         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
69459         (jm_PREREQ): Use it.
69460
69461 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69462
69463         * m4/uintmax_t.m4: Port to autoconf 2.13.
69464
69465 2000-01-08  Jim Meyering  <meyering@ascend.com>
69466
69467         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
69468         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
69469
69470 2000-01-04  Jim Meyering  <meyering@ascend.com>
69471
69472         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
69473         jm_STRUCT_DIRENT_D_TYPE.
69474         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
69475         jm_STRUCT_DIRENT_D_INO.
69476         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
69477         jm_STRUCT_UTIMBUF.
69478         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
69479         renamings.
69480         * m4/utime.m4: Likewise.
69481
69482         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
69483         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
69484
69485 2000-01-03  Paul Eggert  <eggert@twinsun.com>
69486
69487         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
69488         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
69489
69490 2000-01-02  Jim Meyering  <meyering@ascend.com>
69491
69492         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
69493         remember if this is necessary.
69494
69495 1999-12-26  Jim Meyering  <meyering@ascend.com>
69496
69497         * m4/jm-macros.m4: Use it here.
69498         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
69499
69500 1999-12-23  Jim Meyering  <meyering@ascend.com>
69501
69502         * m4/jm-macros.m4: Check for clock_gettime (moved from
69503         fileutils/configure.in)
69504         Check for gettimeofday.
69505
69506 1999-12-20  Jim Meyering  <meyering@ascend.com>
69507
69508         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
69509         autoconf-2.14a-1999-12-20.
69510
69511 1999-12-19  Jim Meyering  <meyering@ascend.com>
69512
69513         * m4/lstat-slash.m4: New file.
69514         * m4/jm-macros.m4: Use the new macro:
69515         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69516
69517 1999-12-07  Jim Meyering  <meyering@ascend.com>
69518
69519         * m4/perl.m4: Require that File::Compare be available, too.
69520         Too many systems seem to lack it.
69521
69522         * m4/strftime.m4: Add checks for most of the cpp macros tested in
69523         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
69524
69525 1999-11-18  Paul Eggert  <eggert@twinsun.com>
69526
69527         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
69528         problem with the QNX 4.25 shell, which doesn't propagate exit
69529         status of failed commands inside shell assignments.
69530
69531 1999-11-17  Jim Meyering  <meyering@ascend.com>
69532
69533         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
69534
69535 1999-11-07  Jim Meyering  <meyering@ascend.com>
69536
69537         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
69538
69539 1999-11-06  Jim Meyering  <meyering@ascend.com>
69540
69541         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
69542         * m4/jm-macros.m4 (jm_MACROS): Use it here.
69543
69544 1999-11-05  Jim Meyering  <meyering@ascend.com>
69545
69546         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
69547         configure.in of textutils, fileutils, and sh-utils into this one
69548         (shared between those packages) file.
69549         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
69550         AC_STRUCT_ST_BLKSIZE.
69551
69552 1999-11-03  Jim Meyering  <meyering@ascend.com>
69553
69554         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
69555         of AC_CHECK_TYPE checks includes unistd.h.
69556         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
69557         Suggestion from Akim Demaille.
69558
69559 1999-10-30  Jim Meyering  <meyering@ascend.com>
69560
69561         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
69562         m4-quoted string.
69563         * m4/ls-mntd-fs.m4: Likewise.
69564         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
69565         * m4/jm-winsz1.m4: Likewise.
69566
69567         * m4/const.m4: Remove file, since the fix made it into the experimental
69568         version of autoconf.
69569         * m4/mktime.m4: Likewise.
69570
69571         * m4/check-type.m4: Remove file, now that the latest version of
69572         AC_CHECK_TYPE takes a third arg to specify additional #includes.
69573
69574         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
69575         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
69576         AC_CHECK_TYPE.
69577
69578 1999-10-04  Jim Meyering  <meyering@ascend.com>
69579
69580         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
69581
69582 1999-09-22  Paul Eggert  <eggert@twinsun.com>
69583
69584         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69585         2.95.1 bug with HP-UX 10.20.
69586
69587 1999-09-17  Jim Meyering  <meyering@ascend.com>
69588
69589         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69590         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69591         due to missing strdup (against sh-utils-2.0).
69592
69593 1999-08-29  Jim Meyering  <meyering@ascend.com>
69594
69595         * m4/jm-macros.m4: Require jm_BISON.
69596         * m4/bison.m4: New file.
69597
69598 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69599
69600         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69601         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69602
69603 1999-08-05  Jim Meyering  <meyering@ascend.com>
69604
69605         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69606         to avoid conflicts with `conftest' on 8+3 filesystems.
69607         Suggestion from Eli Zaretskii.
69608
69609 1999-08-04  Jim Meyering  <meyering@ascend.com>
69610
69611         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69612         fileutils and sh-utils (textutils's getline test was inadequate).
69613         (AM_FUNC_GETLINE): Run this test.
69614         (AC_CHECK_FUNCS): Check for getdelim.
69615         Reported by Bob Proulx.
69616
69617 1999-08-02  Jim Meyering  <meyering@ascend.com>
69618
69619         * m4/jm-macros.m4: Add a comment.
69620
69621 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69622
69623         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69624         <inttypes.h> defines strtoumax as a macro (and not as a
69625         function).
69626
69627 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69628
69629         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69630         that we can shift, multiply and divide unsigned long long
69631         values; Ultrix cc can't do it.
69632
69633 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69634
69635         * m4/mktime.m4: New file, which is a preview of what should appear
69636         in the next public autoconf release.
69637
69638 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69639
69640         * m4/lfs.m4: Remove this file.
69641         * m4/largefile.m4: New file.  It contains the old contents of
69642         lfs.m4, except that all names with prefix AC_LFS have been
69643         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69644         compatible with future autoconf versions.  Also, some minor m4
69645         quoting problems have been fixed.
69646
69647 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69648
69649         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69650         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69651         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69652         and simplify the shell code.
69653
69654 1999-08-01  Jim Meyering  <meyering@ascend.com>
69655
69656         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69657         m4.
69658
69659 1999-07-20  Jim Meyering  <meyering@ascend.com>
69660
69661         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69662
69663 1999-07-15  Jim Meyering  <meyering@ascend.com>
69664
69665         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69666
69667 1999-05-22  Jim Meyering  <meyering@ascend.com>
69668
69669         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69670
69671 1999-05-20  Jim Meyering  <meyering@ascend.com>
69672
69673         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69674         Add a colon after each `then' in case $4 is empty.
69675
69676 1999-05-16  Jim Meyering  <meyering@ascend.com>
69677
69678         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69679
69680 1999-05-10  Jim Meyering  <meyering@ascend.com>
69681
69682         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69683
69684         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69685         AC_FUNC_MKTIME.
69686
69687 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69688
69689         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69690
69691 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69692
69693         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69694         not CPPFLAGS, so that linking works correctly in IRIX.
69695
69696 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69697
69698         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69699
69700 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69701
69702         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69703         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69704         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69705         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69706         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69707
69708         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69709
69710 1999-04-20  Jim Meyering  <meyering@ascend.com>
69711
69712         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69713         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69714         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69715
69716 1999-04-18  Jim Meyering  <meyering@ascend.com>
69717
69718         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69719         * m4/jm-macros.m4: Use it.
69720
69721 1999-04-06  Jim Meyering  <meyering@ascend.com>
69722
69723         * m4/strftime.m4: Remove test for %f.
69724
69725 1999-03-29  Jim Meyering  <meyering@ascend.com>
69726
69727         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69728         superset of the AC_TYPE_* checks in the textutils, fileutils,
69729         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69730         AC_TYPE_PID_T.
69731
69732 1999-03-28  Jim Meyering  <meyering@ascend.com>
69733
69734         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69735         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69736         replaced e.g., in the *.sh files of the sh-utils.
69737
69738 1999-03-20  Jim Meyering  <meyering@ascend.com>
69739
69740         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69741         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69742         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69743
69744 1999-03-19  Jim Meyering  <meyering@ascend.com>
69745
69746         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69747
69748 1999-03-12  Jim Meyering  <meyering@ascend.com>
69749
69750         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69751
69752 1999-03-07  Jim Meyering  <meyering@ascend.com>
69753
69754         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69755         declared.
69756
69757 1999-02-17  Jim Meyering  <meyering@ascend.com>
69758
69759         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69760         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69761
69762 1999-02-07  Jim Meyering  <meyering@ascend.com>
69763
69764         * m4/group-member.m4: New file -- extracted from sh-utils'
69765         configure.in.
69766
69767         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69768         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69769
69770 1999-02-06  Jim Meyering  <meyering@ascend.com>
69771
69772         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69773         * m4/fnmatch.m4: Likewise.
69774         * m4/getgroups.m4: Likewise.
69775         * m4/lstat.m4: Likewise.
69776         * m4/malloc.m4: Likewise.
69777         * m4/putenv.m4: Likewise.
69778         * m4/realloc.m4: Likewise.
69779         * m4/regex.m4: Likewise.
69780         * m4/stat.m4: Likewise.
69781         * m4/strftime.m4: Likewise.
69782         Suggestion from Alain Magloire.
69783
69784         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69785         * m4/fnmatch.m4: Likewise.
69786         * m4/getgroups.m4: Likewise.
69787         * m4/getline.m4: Likewise.
69788         * m4/lstat.m4: Likewise.
69789         * m4/malloc.m4: Likewise.
69790         * m4/memcmp.m4: Likewise.
69791         * m4/putenv.m4: Likewise.
69792         * m4/realloc.m4: Likewise.
69793         * m4/regex.m4: Likewise.
69794         * m4/stat.m4: Likewise.
69795         * m4/strftime.m4: Likewise.
69796         Suggestion from Alain Magloire.
69797
69798         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69799         an argument.
69800
69801         * m4/regex.m4: Add a run-time Test for proper operation of
69802         re_compile_pattern.
69803
69804 1999-01-31  Jim Meyering  <meyering@ascend.com>
69805
69806         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69807
69808 1999-01-30  Jim Meyering  <meyering@ascend.com>
69809
69810         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69811
69812         * m4/jm-mktime.m4: Make this a wrapper around the official
69813         AM_FUNC_MKTIME rather than my private copy, now that the official one
69814         is up to date.
69815         * m4/mktime.m4: Remove file.
69816
69817         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69818         * m4/uptime.m4: Likewise.
69819         * m4/uintmax_t.m4: Likewise.
69820
69821 1999-01-28  Jim Meyering  <meyering@ascend.com>
69822
69823         * m4/jm-macros.m4: Use jm_AFS.
69824         * m4/afs.m4: New file (from fileutils' configure.in).
69825
69826         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69827         * m4/chown.m4: Likewise.
69828         * m4/d-ino.m4: Likewise.
69829         * m4/d-type.m4: Likewise.
69830         * m4/fnmatch.m4: Likewise.
69831         * m4/getgroups.m4: Likewise.
69832         * m4/gettext.m4: Likewise.
69833         * m4/jm-mktime.m4: Likewise.
69834         * m4/jm-winsz2.m4: Likewise.
69835         * m4/lcmessage.m4: Likewise.
69836         * m4/ls-mntd-fs.m4: Likewise.
69837         * m4/malloc.m4: Likewise.
69838         * m4/memcmp.m4: Likewise.
69839         * m4/putenv.m4: Likewise.
69840         * m4/realloc.m4: Likewise.
69841         * m4/st_mtim.m4: Likewise.
69842         * m4/strftime.m4: Likewise.
69843
69844 1999-01-16  Jim Meyering  <meyering@ascend.com>
69845
69846         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
69847         (ARGMATCH_DIE_DECL): Define.
69848
69849 1999-01-12  Jim Meyering  <meyering@ascend.com>
69850
69851         * m4/Makefile.am.in: Rewrite to avoid using fmt.
69852         Reported by Lars Hecking.
69853
69854 1999-01-10  Jim Meyering  <meyering@ascend.com>
69855
69856         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
69857         gross kludge.
69858         * m4/inttypes_h.m4: Likewise.
69859         * m4/lstat.m4: Likewise.
69860         * m4/malloc.m4: Likewise.
69861         * m4/readdir.m4: Likewise.
69862         * m4/realloc.m4: Likewise.
69863         * m4/st_dm_mode.m4: Likewise.
69864         * m4/stat.m4: Likewise.
69865         * m4/utimbuf.m4: Likewise.
69866         * m4/utimes.m4: Likewise.
69867
69868         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
69869         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
69870         comments in config.h.in are meaningful.
69871
69872         * m4/jm-macros.m4: Require autoconf-2.13 here.
69873
69874         * m4/regex.m4: By default, don't use the included regex.c on systems
69875         with glibc 2.  Suggestion from Uli Drepper.
69876
69877 1999-01-02  Jim Meyering  <meyering@ascend.com>
69878
69879         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
69880
69881 1998-12-18  Jim Meyering  <meyering@ascend.com>
69882
69883         * m4/Makefile.am.in (Makefile.am): Simplify rule.
69884         Based on a suggestion from Lars Hecking.
69885
69886 1998-11-16  Paul Eggert  <eggert@twinsun.com>
69887
69888         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
69889
69890 1998-11-16  Jim Meyering  <meyering@ascend.com>
69891
69892         * m4/lfs.m4: Double-quote the `uname...` expression.
69893
69894 1998-11-14  Jim Meyering  <meyering@ascend.com>
69895
69896         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
69897         * m4/stat.m4: Likewise.
69898
69899 1998-11-03  Jim Meyering  <meyering@ascend.com>
69900
69901         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
69902         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
69903
69904 1998-10-18  Jim Meyering  <meyering@ascend.com>
69905
69906         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
69907
69908 1998-10-17  Jim Meyering  <meyering@ascend.com>
69909
69910         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
69911         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
69912         calls for those previously hard-coded headers.  Instead, take a new
69913         parameter.
69914         (jm_CHECK_DECLARATIONS): Reflect interface change.
69915         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
69916         (jm_CHECK_DECL_LOCALTIME_R): New macro.
69917
69918         * m4/mktime.m4: Test for spring-forward gap before long-running test.
69919
69920 1998-10-14  Jim Meyering  <meyering@ascend.com>
69921
69922         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
69923         instead of "TZ=America/Vancouver".  From Paul Eggert.
69924
69925 1998-10-11  Jim Meyering  <meyering@ascend.com>
69926
69927         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
69928         This adds a test for a recently added compatibility fix for mktime.c.
69929         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
69930
69931 1998-09-27  Jim Meyering  <meyering@ascend.com>
69932
69933         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
69934
69935         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
69936         ../configure.in, including a change from Gordon Matzigkeit to allow
69937         cross-compiling for the Hurd.
69938
69939         * m4/glibc.m4: New file/macro to test for the GNU C Library
69940         versions 1 and 2.  From Gordon Matzigkeit.
69941         Indent.
69942
69943 1998-09-21  Jim Meyering  <meyering@ascend.com>
69944
69945         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
69946
69947 1998-08-18  Paul Eggert  <eggert@twinsun.com>
69948
69949         Port nanosecond-resolution times to UnixWare 2.1.2 and
69950         pedantic Solaris 2.6.
69951
69952         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
69953         AC_STRUCT_ST_MTIM.
69954         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
69955         Generate name of ns member, instead of just 1 or undef.
69956         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
69957
69958 1998-08-15  Jim Meyering  <meyering@ascend.com>
69959
69960         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
69961         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
69962         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
69963         instead of jm_TYPE_SSIZE_T.
69964
69965 1998-08-12  Jim Meyering  <meyering@ascend.com>
69966
69967         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
69968
69969 1998-08-02  Jim Meyering  <meyering@ascend.com>
69970
69971         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
69972         in acconfig.h manually.
69973
69974 1998-07-31  Paul Eggert  <eggert@twinsun.com>
69975
69976         * m4/st_mtim.m4: New file.
69977
69978 1998-07-28  Jim Meyering  <meyering@ascend.com>
69979
69980         * m4/utimes.m4: Undef stat.
69981
69982 1998-07-25  Jim Meyering  <meyering@ascend.com>
69983
69984         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
69985         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
69986
69987 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
69988
69989         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
69990         uid and gid actually remain unchanged.
69991
69992 1998-07-07  Jim Meyering  <meyering@ascend.com>
69993
69994         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
69995
69996 1998-07-04  Jim Meyering  <meyering@ascend.com>
69997
69998         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
69999         to prove that this macro can be used in packages without regex.c.
70000
70001 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
70002
70003         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
70004         is to be used.
70005
70006 1998-07-03  Jim Meyering  <meyering@ascend.com>
70007
70008         * m4/gettext.m4: Add -lintl if it's found to be necessary.
70009
70010         * m4/gettext.m4: New file -- from gettext-0.10.35.
70011         * m4/lcmessage.m4: Likewise.
70012         * m4/progtest.m4: Likewise.
70013
70014         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
70015         * m4/jm-macros.m4: Require the new macro.
70016
70017 1998-06-29  Jim Meyering  <meyering@ascend.com>
70018
70019         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
70020         for the definition of NGROUPS (used in a system header included
70021         by sys/mount.h).
70022
70023 1998-06-28  Jim Meyering  <meyering@ascend.com>
70024
70025         * m4/ls-mntd-fs.m4: New file.
70026         * m4/fstypename.m4: New file.
70027
70028         * m4/jm-macros.m4: Require the new macro.
70029         * m4/jm-glibc-io.m4: New file.
70030
70031 1998-05-19  Jim Meyering  <meyering@ascend.com>
70032
70033         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
70034         * m4/lchown.m4: New file.
70035
70036         * m4/Makefile.am.in: New file.
70037         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
70038
70039 1998-05-14  Jim Meyering  <meyering@ascend.com>
70040
70041         * m4/Makefile.am (EXTRA_DIST): Add them.
70042         * m4/jm-macros.m4: New file.
70043         * m4/utimbuf.m4: New file.
70044
70045 1998-05-12  Jim Meyering  <meyering@ascend.com>
70046
70047         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
70048
70049 1998-05-11  Jim Meyering  <meyering@ascend.com>
70050
70051         * m4/isc-posix.m4: New file.
70052
70053 1998-05-10  Jim Meyering  <meyering@ascend.com>
70054
70055         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
70056
70057 1998-05-09  Jim Meyering  <meyering@ascend.com>
70058
70059         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
70060         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
70061         with automake.
70062
70063         * m4/ssize_t.m4: New file.
70064         * m4/mktime.m4: Remove file -- the new automake has this now.
70065
70066 1998-04-26  Jim Meyering  <meyering@ascend.com>
70067
70068         * m4/assert.m4: New file.
70069         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
70070
70071 1998-04-05  Jim Meyering  <meyering@ascend.com>
70072
70073         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
70074         (jm_PREREQ): Use it here.
70075
70076 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
70077
70078         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
70079         in acconfig.h.
70080
70081 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
70082
70083         * m4/prereq.m4: New file.
70084         * m4/error.m4: New file.
70085         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
70086
70087 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
70088
70089         * m4/getline.m4: Don't set am_cv_func_working_getline before the
70090         cache-check for the same variable -- that defeated the purpose of
70091         the test; the test program was never run.  This was a problem only
70092         on systems with losing getline functions -- HP-UX 10.20 is one.
70093         Reported by Bjorn Helgaas.
70094
70095 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
70096
70097         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
70098
70099 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
70100
70101         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
70102
70103         * m4/const.m4: New file.  Use an initializer in this declaration
70104         typedef int charset[2]; const charset x;
70105         Reported by Bob Glickstein.
70106
70107 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
70108
70109         * m4/chown.m4: Fix reversed types on -1 args to chown.
70110         From Kaveh Ghazi.
70111
70112 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
70113
70114         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
70115         Add lseek and memchr.
70116
70117         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
70118         T.E.Dickey <dickey@clark.net> said that some older preprocessors
70119         have a 20-character limit on names.
70120
70121 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
70122
70123         * m4/inttypes_h.m4: New file.
70124         * m4/uintmax_t.m4: New file.
70125         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
70126
70127
70128         -----
70129
70130         Local Variables:
70131         coding: utf-8
70132         End:
70133
70134         Copyright (C) 1997-2010 Free Software Foundation, Inc.
70135
70136         Copying and distribution of this file, with or without
70137         modification, are permitted provided the copyright notice
70138         and this notice are preserved.